[03:04:35]OFD Sender: No OFD packet to send [03:04:40]OFD Sender: No OFD packet to send [03:04:45]OFD Sender: No OFD packet to send [03:04:50]OFD Sender: No OFD packet to send [03:04:55]OFD Sender: No OFD packet to send [03:05:00]OFD Sender: No OFD packet to send [03:05:05]OFD Sender: No OFD packet to send [03:05:10]OFD Sender: No OFD packet to send [03:05:15]OFD Sender: No OFD packet to send [03:05:20]OFD Sender: No OFD packet to send [03:05:25]OFD Sender: No OFD packet to send [03:05:30]OFD Sender: No OFD packet to send [03:05:35]OFD Sender: No OFD packet to send [03:05:40]OFD Sender: No OFD packet to send [03:05:45]OFD Sender: No OFD packet to send [03:05:50]OFD Sender: No OFD packet to send [03:05:55]OFD Sender: No OFD packet to send [03:06:00]OFD Sender: No OFD packet to send [03:06:05]OFD Sender: No OFD packet to send [03:06:10]OFD Sender: No OFD packet to send [03:06:15]OFD Sender: No OFD packet to send [03:06:20]OFD Sender: No OFD packet to send [03:06:25]OFD Sender: No OFD packet to send [03:06:30]OFD Sender: No OFD packet to send [03:06:35]OFD Sender: No OFD packet to send [03:06:40]OFD Sender: No OFD packet to send [03:06:45]OFD Sender: No OFD packet to send [03:06:50]OFD Sender: No OFD packet to send [03:06:55]OFD Sender: No OFD packet to send [03:07:00]OFD Sender: No OFD packet to send [03:07:05]OFD Sender: No OFD packet to send [03:07:10]OFD Sender: No OFD packet to send [03:07:15]OFD Sender: No OFD packet to send [03:07:20]OFD Sender: No OFD packet to send [03:07:25]OFD Sender: No OFD packet to send [03:07:30]OFD Sender: No OFD packet to send [03:07:35]OFD Sender: No OFD packet to send [03:07:40]OFD Sender: No OFD packet to send [03:07:45]OFD Sender: No OFD packet to send [03:07:50]OFD Sender: No OFD packet to send [03:07:55]OFD Sender: No OFD packet to send [03:08:00]OFD Sender: No OFD packet to send [03:08:05]OFD Sender: No OFD packet to send [03:08:10]OFD Sender: No OFD packet to send [03:08:15]OFD Sender: No OFD packet to send [03:08:20]OFD Sender: No OFD packet to send [03:08:25]OFD Sender: No OFD packet to send [03:08:30]OFD Sender: No OFD packet to send [03:08:35]OFD Sender: No OFD packet to send [03:08:40]OFD Sender: No OFD packet to send [03:08:45]OFD Sender: No OFD packet to send [03:08:50]OFD Sender: No OFD packet to send [03:08:55]OFD Sender: No OFD packet to send [03:09:00]OFD Sender: No OFD packet to send [03:09:05]OFD Sender: No OFD packet to send [03:09:10]OFD Sender: No OFD packet to send [03:09:15]OFD Sender: No OFD packet to send [03:09:20]OFD Sender: No OFD packet to send [03:09:25]OFD Sender: No OFD packet to send [03:09:30]OFD Sender: No OFD packet to send [03:09:35]OFD Sender: No OFD packet to send [03:09:40]OFD Sender: No OFD packet to send [03:09:45]OFD Sender: No OFD packet to send [03:09:50]OFD Sender: No OFD packet to send [03:09:55]OFD Sender: No OFD packet to send [03:10:00]OFD Sender: No OFD packet to send [03:10:05]OFD Sender: No OFD packet to send [03:10:10]OFD Sender: No OFD packet to send [03:10:15]OFD Sender: No OFD packet to send [03:10:20]OFD Sender: No OFD packet to send [03:10:25]OFD Sender: No OFD packet to send [03:10:30]OFD Sender: No OFD packet to send [03:10:35]OFD Sender: No OFD packet to send [03:10:40]OFD Sender: No OFD packet to send [03:10:45]OFD Sender: No OFD packet to send [03:10:50]OFD Sender: No OFD packet to send [03:10:55]OFD Sender: No OFD packet to send [03:11:00]OFD Sender: No OFD packet to send [03:11:05]OFD Sender: No OFD packet to send [03:11:10]OFD Sender: No OFD packet to send [03:11:15]OFD Sender: No OFD packet to send [03:11:20]OFD Sender: No OFD packet to send [03:11:25]OFD Sender: No OFD packet to send [03:11:30]OFD Sender: No OFD packet to send [03:11:35]OFD Sender: No OFD packet to send [03:11:40]OFD Sender: No OFD packet to send [03:11:45]OFD Sender: No OFD packet to send [03:11:50]OFD Sender: No OFD packet to send [03:11:55]OFD Sender: No OFD packet to send [03:12:00]OFD Sender: No OFD packet to send [03:12:05]OFD Sender: No OFD packet to send [03:12:10]OFD Sender: No OFD packet to send [03:12:15]OFD Sender: No OFD packet to send [03:12:20]OFD Sender: No OFD packet to send [03:12:25]OFD Sender: No OFD packet to send [03:12:30]OFD Sender: No OFD packet to send [03:12:35]OFD Sender: No OFD packet to send [03:12:40]OFD Sender: No OFD packet to send [03:12:45]OFD Sender: No OFD packet to send [03:12:50]OFD Sender: No OFD packet to send [03:12:55]OFD Sender: No OFD packet to send [03:13:00]OFD Sender: No OFD packet to send [03:13:05]OFD Sender: No OFD packet to send [03:13:10]OFD Sender: No OFD packet to send [03:13:15]OFD Sender: No OFD packet to send [03:13:20]OFD Sender: No OFD packet to send [03:13:25]OFD Sender: No OFD packet to send [03:13:30]OFD Sender: No OFD packet to send [03:13:35]OFD Sender: No OFD packet to send [03:13:40]OFD Sender: No OFD packet to send [03:13:45]OFD Sender: No OFD packet to send [03:13:50]OFD Sender: No OFD packet to send [03:13:55]OFD Sender: No OFD packet to send [03:14:00]OFD Sender: No OFD packet to send [03:14:05]OFD Sender: No OFD packet to send [03:14:10]OFD Sender: No OFD packet to send [03:14:15]OFD Sender: No OFD packet to send [03:14:20]OFD Sender: No OFD packet to send [03:14:25]OFD Sender: No OFD packet to send [03:14:30]OFD Sender: No OFD packet to send [03:14:35]OFD Sender: No OFD packet to send [03:14:40]OFD Sender: No OFD packet to send [03:14: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:26]OFD Sender: No OFD packet to send [03:21:31]OFD Sender: No OFD packet to send [03:21:36]OFD Sender: No OFD packet to send [03:21:41]OFD Sender: No OFD packet to send [03:21:46]OFD Sender: No OFD packet to send [03:21:51]OFD Sender: No OFD packet to send [03:21:56]OFD Sender: No OFD packet to send [03:22:01]OFD Sender: No OFD packet to send [03:22:06]OFD Sender: No OFD packet to send [03:22:11]OFD Sender: No OFD packet to send [03:22:16]OFD Sender: No OFD packet to send [03:22:21]OFD Sender: No OFD packet to send [03:22:26]OFD Sender: No OFD packet to send [03:22:31]OFD Sender: No OFD packet to send [03:22:36]OFD Sender: No OFD packet to send [03:22:41]OFD Sender: No OFD packet to send [03:22:46]OFD Sender: No OFD packet to send [03:22:51]OFD Sender: No OFD packet to send [03:22:56]OFD Sender: No OFD packet to send [03:23:01]OFD Sender: No OFD packet to send [03:23:06]OFD Sender: No OFD packet to send [03:23:11]OFD Sender: No OFD packet to send [03:23:16]OFD Sender: No OFD packet to send [03:23:21]OFD Sender: No OFD packet to send [03:23:26]OFD Sender: No OFD packet to send [03:23:31]OFD Sender: No OFD packet to send [03:23:36]OFD Sender: No OFD packet to send [03:23:41]OFD Sender: No OFD packet to send [03:23:46]OFD Sender: No OFD packet to send [03:23:51]OFD Sender: No OFD packet to send [03:23:56]OFD Sender: No OFD packet to send [03:24:01]OFD Sender: No OFD packet to send [03:24:06]OFD Sender: No OFD packet to send [03:24:11]OFD Sender: No OFD packet to send [03:24:16]OFD Sender: No OFD packet to send [03:24:21]OFD Sender: No OFD packet to send [03:24:26]OFD Sender: No OFD packet to send [03:24:31]OFD Sender: No OFD packet to send [03:24:36]OFD Sender: No OFD packet to send [03:24:41]OFD Sender: No OFD packet to send [03:24:46]OFD Sender: No OFD packet to send [03:24:51]OFD Sender: No OFD packet to send [03:24:56]OFD Sender: No OFD packet to send [03:25:01]OFD Sender: No OFD packet to send [03:25:06]OFD Sender: No OFD packet to send [03:25:11]OFD Sender: No OFD packet to send [03:25:16]OFD Sender: No OFD packet to send [03:25:21]OFD Sender: No OFD packet to send [03:25:26]OFD Sender: No OFD packet to send [03:25:31]OFD Sender: No OFD packet to send [03:25:36]OFD Sender: No OFD packet to send [03:25:41]OFD Sender: No OFD packet to send [03:25:46]OFD Sender: No OFD packet to send [03:25:51]OFD Sender: No OFD packet to send [03:25:56]OFD Sender: No OFD packet to send [03:26:01]OFD Sender: No OFD packet to send [03:26:06]OFD Sender: No OFD packet to send [03:26:11]OFD Sender: No OFD packet to send [03:26:16]OFD Sender: No OFD packet to send [03:26:21]OFD Sender: No OFD packet to send [03:26:26]OFD Sender: No OFD packet to send [03:26:31]OFD Sender: No OFD packet to send [03:26:36]OFD Sender: No OFD packet to send [03:26:41]OFD Sender: No OFD packet to send [03:26:46]OFD Sender: No OFD packet to send [03:26:51]OFD Sender: No OFD packet to send [03:26:56]OFD Sender: No OFD packet to send [03:27:01]OFD Sender: No OFD packet to send [03:27:06]OFD Sender: No OFD packet to send [03:27:11]OFD Sender: No OFD packet to send [03:27:16]OFD Sender: No OFD packet to send [03:27:21]OFD Sender: No OFD packet to send [03:27:26]OFD Sender: No OFD packet to send [03:27:31]OFD Sender: No OFD packet to send [03:27:36]OFD Sender: No OFD packet to send [03:27:41]OFD Sender: No OFD packet to send [03:27:46]OFD Sender: No OFD packet to send [03:27:51]OFD Sender: No OFD packet to send [03:27:56]OFD Sender: No OFD packet to send [03:28:01]OFD Sender: No OFD packet to send [03:28:06]OFD Sender: No OFD packet to send [03:28:11]OFD Sender: No OFD packet to send [03:28:16]OFD Sender: No OFD packet to send [03:28:21]OFD Sender: No OFD packet to send [03:28:26]OFD Sender: No OFD packet to send [03:28:31]OFD Sender: No OFD packet to send [03:28:36]OFD Sender: No OFD packet to send [03:28:41]OFD Sender: No OFD packet to send [03:28:46]OFD Sender: No OFD packet to send [03:28:51]OFD Sender: No OFD packet to send [03:28:56]OFD Sender: No OFD packet to send [03:29:01]OFD Sender: No OFD packet to send [03:29:06]OFD Sender: No OFD packet to send [03:29:11]OFD Sender: No OFD packet to send [03:29:16]OFD Sender: No OFD packet to send [03:29:21]OFD Sender: No OFD packet to send [03:29:26]OFD Sender: No OFD packet to send [03:29:31]OFD Sender: No OFD packet to send [03:29:36]OFD Sender: No OFD packet to send [03:29:41]OFD Sender: No OFD packet to send [03:29:46]OFD Sender: No OFD packet to send [03:29:51]OFD Sender: No OFD packet to send [03:29: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]accept exits with 9 [03:39:06]New connection [03:39:06]New thread 3067514212 created [03:39:06]Thread 3067370852 joined [03:39:06]Waiting for new connection... [03:39:06] Sock 9.Parse request [03:39:06]Sock 9.Check first char [03:39:06]Sock 9.First char is OK [03:39:06]request: POST /json_proto HTTP/1.0 [03:39:06]Method: POST [03:39:06]URL: /json_proto [03:39:06]Method is POST - this is cgi request [03:39:06]url: /json_proto [03:39:06]query_string will be loaded in cgi processing [03:39:06]execute_cgi json_proto POST (null) [03:39:06]execute_cgi path=json_proto method=POST [03:39:06]POST find Content-Length [03:39:06]Host: 172.17.51.3:8080 [03:39:06]Content-Length: 677 [03:39:06]Content-Type: application/json [03:39:06] [03:39:06]POST finish read [03:39:06]Found Content-Length = 677 [03:39:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342615", "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" : 7.280, "sum" : 540.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 540.00, "total" : 540.00, "payments": [ { "type": 0, "sum" : 540.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:39:06]execute_script... [03:39:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342615", "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" : 7.280, "sum" : 540.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 540.00, "total" : 540.00, "payments": [ { "type": 0, "sum" : 540.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:39:06]POST & json_proto [03:39:06]process_json_proto [03:39:06]json parsed OK: [03:39:06]protocol is kg_v1.0 [03:39:06]action value=close_receipt [03:39:06]process_action close_receipt [03:39:06]cmd_close_receipt [03:39:06]MH_GetDate [03:39:06]Write to MH i2c: F0 00 00 80 63 D2 [03:39:06]Write i2c OK [03:39:06]MH_I2C_Read... [03:39:06]Read from MH i2c: F0 [03:39:06]MH_I2C_Read... [03:39:06]Read from MH i2c: F0 09 00 [03:39:06]MH_I2C_Read... [03:39:06]Read from MH i2c: F0 09 00 80 63 00 61 7B 14 67 04 C1 95 66 F2 [03:39:06]GetLastDocTimeStamp 1729390621 [03:39:06]current date 1729395553 [03:39:06]FM_GetShiftState [03:39:06]SAM_PROTO_GetShiftState [03:39:06]wFMCommunicate request_size=4 [03:39:06]MH_SAM_APDU [03:39:06]CAPDU: 80 13 01 00 [03:39:06]Write to MH i2c: E2 08 00 81 63 80 13 01 00 00 00 00 00 61 [03:39:06]Write i2c OK [03:39:06]MH_I2C_Read... [03:39:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:39:06]Read from MH i2c: E2 [03:39:06]MH_I2C_Read... [03:39:06]Read from MH i2c: E2 0E 00 [03:39:06]MH_I2C_Read... [03:39:06]Read from MH i2c: E2 0E 00 81 63 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 47 [03:39:06]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [03:39:06]wFMCommunicate OK [03:39:06]SAM_PROTO_GetShiftState done [03:39:06]FM_GetShiftState done [03:39:06]opened in 1729384718 [03:39:06]opened+sec_in_day 1729471118 [03:39:06]quantity*price = 54017 [03:39:06]sum+1 = 54019 [03:39:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.18 ИТОГО: 540.00 Внесено: 540.00 СДАЧА: 0.00 НСП 1% : 4.78 НДС 12% : 57.36 Наличными: 540.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 8 20.10.2024 03:39 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30226 ФПД: 65567819572820 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T033914&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30226&fm=65567819572820&tin=02508201610067®Number=0000000000186857&sum=54000 [03:39:07]StoreToDocumentArchive [03:39:07]shift 114 fd 30226 [03:39:07]save to /storage/0114/doc_00030226 [03:39:07]save last doc name /storage/0114/doc_00030226 to /storage/kkm_last_doc_name [03:39:07]save OK [03:39:07]Clear old archive folders... [03:39:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [03:39:07]tlvbuf is 00A8DF90 [03:39:07]SAM_PROTO_ClearQueue [03:39:07]wFMCommunicate request_size=4 [03:39:07]MH_SAM_APDU [03:39:07]CAPDU: 80 09 00 00 [03:39:07]Write to MH i2c: E2 08 00 8E 63 80 09 00 00 00 00 00 00 63 [03:39:07]Write i2c OK [03:39:07]MH_I2C_Read... [03:39:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:39:07]Read from MH i2c: E2 [03:39:07]MH_I2C_Read... [03:39:07]Read from MH i2c: E2 03 00 [03:39:07]MH_I2C_Read... [03:39:07]Read from MH i2c: E2 03 00 8E 63 00 90 00 65 [03:39:07]RAPDU: 90 00 [03:39:07]wFMCommunicate OK [03:39:07]SAM_PROTO_ClearQueue done [03:39:07]KKMCreateOFDPacket [03:39:07]OFDProtocolAddRootSTLVToBuf [03:39:07]FM_MakeSignedData [03:39:07]FM_MakeSignedData [03:39:07]SAM_PROTO_SignData [03:39:07]wFMCommunicate request_size=4 [03:39:07]MH_SAM_APDU [03:39:07]CAPDU: 80 0D 01 02 [03:39:07]Write to MH i2c: E2 08 00 8F 63 80 0D 01 02 00 00 00 00 6B [03:39:07]Write i2c OK [03:39:07]MH_I2C_Read... [03:39:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:39:08]Read from MH i2c: E2 [03:39:08]MH_I2C_Read... [03:39:08]Read from MH i2c: E2 03 00 [03:39:08]MH_I2C_Read... [03:39:08]Read from MH i2c: E2 03 00 8F 63 00 90 00 66 [03:39:08]RAPDU: 90 00 [03:39:08]wFMCommunicate OK [03:39:08]wFMCommunicate request_size=255 [03:39:08]MH_SAM_APDU [03:39: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 70 1C 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 02 D3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 D2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 68 16 00 00 00 00 07 04 06 00 F0 D2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 62 7B 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 3B [03:39:08]Write to MH i2c: E2 02 01 90 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 70 1C 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 02 D3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 D2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 68 16 00 00 00 00 07 04 06 00 F0 D2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 62 7B 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 3B 00 00 6B [03:39:08]Write i2c OK [03:39:08]MH_I2C_Read... [03:39:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:39:08]Read from MH i2c: E2 [03:39:08]MH_I2C_Read... [03:39:08]Read from MH i2c: E2 03 00 [03:39:08]MH_I2C_Read... [03:39:08]Read from MH i2c: E2 03 00 90 63 00 90 00 67 [03:39:08]RAPDU: 90 00 [03:39:08]wFMCommunicate OK [03:39:08]wFMCommunicate request_size=10 [03:39:08]MH_SAM_APDU [03:39:08]CAPDU: 80 0D 02 02 05 A2 32 98 26 54 [03:39:08]Write to MH i2c: E2 0D 00 91 63 80 0D 02 02 05 00 A2 32 98 26 54 00 00 5E [03:39:08]Write i2c OK [03:39:08]MH_I2C_Read... [03:39:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:39:08]Read from MH i2c: E2 [03:39:08]MH_I2C_Read... [03:39:08]Read from MH i2c: E2 03 00 [03:39:08]MH_I2C_Read... [03:39:08]Read from MH i2c: E2 03 00 91 63 00 90 00 68 [03:39:08]RAPDU: 90 00 [03:39:08]wFMCommunicate OK [03:39:08]wFMCommunicate request_size=4 [03:39:08]MH_SAM_APDU [03:39:08]CAPDU: 80 0D 03 02 [03:39:08]Write to MH i2c: E2 08 00 92 63 80 0D 03 02 00 00 00 00 70 [03:39:08]Write i2c OK [03:39:08]MH_I2C_Read... [03:39:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:39:08]Read from MH i2c: E2 [03:39:08]MH_I2C_Read... [03:39:08]Read from MH i2c: E2 0B 00 [03:39:08]MH_I2C_Read... [03:39:08]Read from MH i2c: E2 0B 00 92 63 00 AF 89 00 DD 4D F9 35 AF 90 00 B0 [03:39:08]RAPDU: AF 89 00 DD 4D F9 35 AF 90 00 [03:39:08]wFMCommunicate OK [03:39:08]SAM_PROTO_SignData done [03:39:08]FM_MakeSignedData done [03:39:08]CreateOFDProtocolMessage [03:39:08]wFMCommunicate request_size=4 [03:39:08]MH_SAM_APDU [03:39:08]CAPDU: 80 11 00 00 [03:39:08]Write to MH i2c: E2 08 00 93 63 80 11 00 00 00 00 00 00 70 [03:39:08]Write i2c OK [03:39:08]MH_I2C_Read... [03:39:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:39:08]Read from MH i2c: E2 [03:39:08]MH_I2C_Read... [03:39:08]Read from MH i2c: E2 17 00 [03:39:08]MH_I2C_Read... [03:39:08]Read from MH i2c: E2 17 00 93 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 BE [03:39:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [03:39:08]wFMCommunicate OK [03:39:08]CreateOFDProtocolMessage done [03:39:08]OFDSenderStorePacket 30226 [03:39:08]StoreOFDPacket docnum=30226 [03:39: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 CE E0 07 01 D8 68 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 70 1C 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 02 D3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 D2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 68 16 00 00 00 00 07 04 06 00 F0 D2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 62 7B 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 3B A2 32 98 26 54 AF 89 00 DD 4D F9 35 AF [03:39:08]CheckFolder [03:39:08]dirname=/storage/ofd_packets [03:39:08]CheckFolder done [03:39:08]ProducePacketName [03:39:08]name=ofd_packets/00030226 [03:39:08]NVStorageSaveData ofd_packets/00030226 [03:39:08]File name is /storage/ofd_packets/00030226 [03:39:08]Write 301 bytes [03:39:08]NVStorageSaveData done [03:39:08]OFDSenderStorePacket done [03:39:08]KKMCreateOFDPacket done [03:39:08]NVStorageSaveData kkm_last_timestamp [03:39:08]File name is /storage/kkm_last_timestamp [03:39:08]Write 4 bytes [03:39:08]NVStorageSaveData done [03:39:08]ExternCall_PrintAddStr [03:39:08]wPrintStart [03:39:08]Write to MH i2c: 01 00 00 94 63 F7 [03:39:08]Write i2c OK [03:39:08]MH_I2C_Read... [03:39:08]Read from MH i2c: 01 [03:39:08]MH_I2C_Read... [03:39:08]Read from MH i2c: 01 07 00 [03:39:08]MH_I2C_Read... [03:39:08]Read from MH i2c: 01 07 00 94 63 00 00 00 00 00 FF 0F 0C [03:39:08]RasterBufferAndPrint [03:39:08]line Счет N : (1)342615 [03:39:08]line ИНН: 02508201610067 [03:39:08]line Контрольно-Кассовый Чек [03:39:08]line ПРОДАЖА [03:39:08]line ТРК (МРК, ГНК) : 52 [03:39:08]line Товар: 2710124500 [03:39:08]line Аи-95-К-3 [03:39:08]line 7.280 * 74.20 [03:39:08]line = 540.18 [03:39:08]line НДС 12% НСП 1% [03:39:08]line > о реализуемом товаре [03:39:08]line ОКРУГЛЕНИЕ: -0.18 [03:39:08]line ИТОГО: 540.00 [03:39:08]line Внесено: 540.00 [03:39:08]line СДАЧА: 0.00 [03:39:08]line НСП 1% : 4.78 [03:39:08]line НДС 12% : 57.36 [03:39:08]line Наличными: 540.00 [03:39:08]line Безнал.: 0.00 [03:39:08]line Место: АЗС № 78 "Партнер Нефть" [03:39:08]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [03:39:08]line СНО: Общий режим [03:39:08]line Чек 8 20.10.2024 03:39 [03:39:08]line Смена: 114 ФФД: 1.0 [03:39:08]line ЗНМ: 0300000137 [03:39:08]line РНМ: 0000000000186857 [03:39:08]line Версия ККМ: v1.0 [03:39:08]line ФМ: 0000000002094219 [03:39:08]line ФД: 30226 [03:39:08]line ФПД: 65567819572820 [03:39:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T033914&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30226&fm=65567819572820&tin=02508201610067®Number=0000000000186857&sum=54000 [03:39:08]OFD Sender: Processing packet 30226 [packets to send 10, broken 9] [03:39:08]ProducePacketName [03:39:08]name=ofd_packets/00030226 [03:39:08]OFD Sender: To server: pG, [03:39:08]CommunicateWithHost lk.salyk.kg:30040 [03:39:08]ConnectInit lk.salyk.kg [03:39:08]written 0, free lines is 4095 [03:39:08]Connected sock=10 [03:39: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 CE E0 07 01 D8 68 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 70 1C 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 02 D3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 D2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 68 16 00 00 00 00 07 04 06 00 F0 D2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 62 7B 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 3B A2 32 98 26 54 AF 89 00 DD 4D F9 35 AF [03:39: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 EE 30 47 00 79 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 12 76 00 00 F4 03 04 00 E7 25 14 67 B6 04 01 00 00 51 C0 1A 39 97 67 22 7E [03:39:09]CommunicateWithHost err = 0 [03:39:09]CheckOFDResponse [03:39:09]1017 (14) - 77093643461234 [03:39:09]1041 (16) - 0000000002094219 [03:39:09]1040 (4) - 30226 [03:39:09]1012 (4) - 19.10.2024 21:34 [03:39:09]1206 (1) - 0 [03:39:09]OFD Sender: Remove packet 30226 [03:39:09]ProducePacketName [03:39:09]name=ofd_packets/00030226 [03:39:09]NVStorageDeleteData [03:39:09]Write to MH i2c: 01 00 00 BF 63 22 [03:39:09]Write i2c OK [03:39:09]MH_I2C_Read... [03:39:09]Read from MH i2c: 01 [03:39:09]MH_I2C_Read... [03:39:09]Read from MH i2c: 01 07 00 [03:39:09]MH_I2C_Read... [03:39:09]Read from MH i2c: 01 07 00 BF 63 00 00 00 00 00 F0 0C 25 [03:39:09]RasterBufferAndPrint [03:39:09]line [03:39:09]line [03:39:09]line [03:39:09]line [03:39:09]line [03:39:09]written 0, free lines is 3318 [03:39:09]MH_Cut [03:39:09]Write to MH i2c: D1 01 00 C6 63 01 FB [03:39:09]Write i2c OK [03:39:09]MH_I2C_Read... [03:39:09]Read from MH i2c: D1 [03:39:09]MH_I2C_Read... [03:39:09]Read from MH i2c: D1 01 00 [03:39:09]MH_I2C_Read... [03:39:09]Read from MH i2c: D1 01 00 C6 63 00 FA [03:39:09]Write to MH i2c: 01 00 00 C7 63 2A [03:39:09]Write i2c OK [03:39:09]MH_I2C_Read... [03:39:09]OFD Sender: No OFD packet to send [03:39:09]*** Cut start [03:39:09]*** Partial cut [03:39:09]*** CUTSNS_PIN = 1 [03:39:09]*** CUTSNS_PIN = 0 [03:39:10]*** Brake cut motor [03:39:10]Read from MH i2c: 01 [03:39:10]MH_I2C_Read... [03:39:10]*** Stop cut motor [03:39:10]*** Cut end [03:39:10]Read from MH i2c: 01 07 00 [03:39:10]MH_I2C_Read... [03:39:10]Read from MH i2c: 01 07 00 C7 63 00 00 00 00 00 FF 0F 3F [03:39:10]process_action close_receipt done [03:39:10]requested_data is exist [03:39:10]produce_requested_data [03:39:10]requested_item fm.sn is exist - process it [03:39:10]wFMCommunicate request_size=4 [03:39:10]MH_SAM_APDU [03:39:10]CAPDU: 80 11 00 00 [03:39:10]Write to MH i2c: E2 08 00 C8 63 80 11 00 00 00 00 00 00 A5 [03:39:10]Write i2c OK [03:39:10]MH_I2C_Read... [03:39:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:39:10]Read from MH i2c: E2 [03:39:10]MH_I2C_Read... [03:39:10]Read from MH i2c: E2 17 00 [03:39:10]MH_I2C_Read... [03:39:10]Read from MH i2c: E2 17 00 C8 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 F3 [03:39:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [03:39:10]wFMCommunicate OK [03:39:10]requested_item fd.num is exist - process it [03:39:10]SAM_PROTO_GetFieldsCounters [03:39:10]wFMCommunicate request_size=4 [03:39:10]MH_SAM_APDU [03:39:10]CAPDU: 80 13 00 00 [03:39:10]Write to MH i2c: E2 08 00 C9 63 80 13 00 00 00 00 00 00 A8 [03:39:10]Write i2c OK [03:39:10]MH_I2C_Read... [03:39:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:39:10]Read from MH i2c: E2 [03:39:10]MH_I2C_Read... [03:39:10]Read from MH i2c: E2 62 00 [03:39:10]MH_I2C_Read... [03:39:10]Read from MH i2c: E2 62 00 C9 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 76 00 00 0E 04 04 00 72 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 E0 [03:39: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 12 76 00 00 0E 04 04 00 72 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 [03:39:10]wFMCommunicate OK [03:39:10]SAM_PROTO_GetFieldsCounters done [03:39:10]requested_item shift.num is exist - process it [03:39:10]requested_item shift.opened is exist - process it [03:39:10]req_shift_opened [03:39:10]FM_GetShiftState [03:39:10]SAM_PROTO_GetShiftState [03:39:10]wFMCommunicate request_size=4 [03:39:10]MH_SAM_APDU [03:39:10]CAPDU: 80 13 01 00 [03:39:10]Write to MH i2c: E2 08 00 CA 63 80 13 01 00 00 00 00 00 AA [03:39:10]Write i2c OK [03:39:10]MH_I2C_Read... [03:39:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:39:10]Read from MH i2c: E2 [03:39:10]MH_I2C_Read... [03:39:10]Read from MH i2c: E2 0E 00 [03:39:10]MH_I2C_Read... [03:39:10]Read from MH i2c: E2 0E 00 CA 63 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 90 [03:39:10]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [03:39:10]wFMCommunicate OK [03:39:10]SAM_PROTO_GetShiftState done [03:39:10]FM_GetShiftState done [03:39:10]req_shift_opened done [03:39:10]requested_item shift.open_date is exist - process it [03:39:10]req_shift_open_date [03:39:10]req_shift_open_date done [03:39:10]produce_requested_data done [03:39:10]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30226,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [03:39:10]process_action_free close_receipt [03:39:10]json_value_free [03:39:10]json_value_free done [03:39:10]process_json_proto returns [03:39:10]Send response to host [03:39:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30226,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [03:39:10]free response buf [03:39:10]execute_script done [03:39:10]execute_script returns [03:39:10]free content buf [03:39:10]Sock 9.Close socket [03:39:10]Sock 9.Thread stoped [03:39:14]OFD Sender: No OFD packet to send [03:39:19]OFD Sender: No OFD packet to send [03:39:24]OFD Sender: No OFD packet to send [03:39:29]OFD Sender: No OFD packet to send [03:39:34]OFD Sender: No OFD packet to send [03:39:39]OFD Sender: No OFD packet to send [03:39:44]OFD Sender: No OFD packet to send [03:39:49]OFD Sender: No OFD packet to send [03:39:54]OFD Sender: No OFD packet to send [03:39:59]OFD Sender: No OFD packet to send [03:40:04]OFD Sender: No OFD packet to send [03:40:09]OFD Sender: No OFD packet to send [03:40:14]OFD Sender: No OFD packet to send [03:40:19]OFD Sender: No OFD packet to send [03:40:24]OFD Sender: No OFD packet to send [03:40:29]OFD Sender: No OFD packet to send [03:40:34]OFD Sender: No OFD packet to send [03:40:39]OFD Sender: No OFD packet to send [03:40:44]OFD Sender: No OFD packet to send [03:40:49]OFD Sender: No OFD packet to send [03:40:54]OFD Sender: No OFD packet to send [03:40:59]OFD Sender: No OFD packet to send [03:41:04]OFD Sender: No OFD packet to send [03:41:09]OFD Sender: No OFD packet to send [03:41:14]OFD Sender: No OFD packet to send [03:41:19]OFD Sender: No OFD packet to send [03:41:24]OFD Sender: No OFD packet to send [03:41:29]OFD Sender: No OFD packet to send [03:41:34]OFD Sender: No OFD packet to send [03:41:39]OFD Sender: No OFD packet to send [03:41:44]OFD Sender: No OFD packet to send [03:41:49]OFD Sender: No OFD packet to send [03:41:54]OFD Sender: No OFD packet to send [03:41:59]OFD Sender: No OFD packet to send [03:42:04]OFD Sender: No OFD packet to send [03:42:09]OFD Sender: No OFD packet to send [03:42:14]OFD Sender: No OFD packet to send [03:42:19]OFD Sender: No OFD packet to send [03:42:24]OFD Sender: No OFD packet to send [03:42:29]OFD Sender: No OFD packet to send [03:42:34]OFD Sender: No OFD packet to send [03:42:39]OFD Sender: No OFD packet to send [03:42:44]OFD Sender: No OFD packet to send [03:42:49]OFD Sender: No OFD packet to send [03:42:54]OFD Sender: No OFD packet to send [03:42:59]OFD Sender: No OFD packet to send [03:43:04]OFD Sender: No OFD packet to send [03:43:09]OFD Sender: No OFD packet to send [03:43:14]OFD Sender: No OFD packet to send [03:43:19]OFD Sender: No OFD packet to send [03:43:24]OFD Sender: No OFD packet to send [03:43:29]OFD Sender: No OFD packet to send [03:43:34]OFD Sender: No OFD packet to send [03:43:39]OFD Sender: No OFD packet to send [03:43:44]OFD Sender: No OFD packet to send [03:43:49]OFD Sender: No OFD packet to send [03:43:54]OFD Sender: No OFD packet to send [03:43:59]OFD Sender: No OFD packet to send [03:44:04]OFD Sender: No OFD packet to send [03:44:09]OFD Sender: No OFD packet to send [03:44:14]OFD Sender: No OFD packet to send [03:44:19]OFD Sender: No OFD packet to send [03:44:24]OFD Sender: No OFD packet to send [03:44:29]OFD Sender: No OFD packet to send [03:44:34]OFD Sender: No OFD packet to send [03:44:39]OFD Sender: No OFD packet to send [03:44:44]OFD Sender: No OFD packet to send [03:44:49]OFD Sender: No OFD packet to send [03:44:54]OFD Sender: No OFD packet to send [03:44:59]OFD Sender: No OFD packet to send [03:45:04]OFD Sender: No OFD packet to send [03:45:09]OFD Sender: No OFD packet to send [03:45:14]OFD Sender: No OFD packet to send [03:45:19]OFD Sender: No OFD packet to send [03:45:24]OFD Sender: No OFD packet to send [03:45:29]OFD Sender: No OFD packet to send [03:45:34]OFD Sender: No OFD packet to send [03:45:39]OFD Sender: No OFD packet to send [03:45:44]OFD Sender: No OFD packet to send [03:45:49]OFD Sender: No OFD packet to send [03:45:54]OFD Sender: No OFD packet to send [03:45:59]OFD Sender: No OFD packet to send [03:46:04]OFD Sender: No OFD packet to send [03:46:09]OFD Sender: No OFD packet to send [03:46:14]OFD Sender: No OFD packet to send [03:46:19]OFD Sender: No OFD packet to send [03:46:24]OFD Sender: No OFD packet to send [03:46:29]OFD Sender: No OFD packet to send [03:46:35]OFD Sender: No OFD packet to send [03:46:40]OFD Sender: No OFD packet to send [03:46:45]OFD Sender: No OFD packet to send [03:46:50]OFD Sender: No OFD packet to send [03:46:55]OFD Sender: No OFD packet to send [03:47:00]OFD Sender: No OFD packet to send [03:47:05]OFD Sender: No OFD packet to send [03:47:10]OFD Sender: No OFD packet to send [03:47:15]OFD Sender: No OFD packet to send [03:47:20]OFD Sender: No OFD packet to send [03:47:25]OFD Sender: No OFD packet to send [03:47:30]OFD Sender: No OFD packet to send [03:47:35]OFD Sender: No OFD packet to send [03:47:40]OFD Sender: No OFD packet to send [03:47:45]OFD Sender: No OFD packet to send [03:47:50]OFD Sender: No OFD packet to send [03:47:55]OFD Sender: No OFD packet to send [03:48:00]OFD Sender: No OFD packet to send [03:48:05]OFD Sender: No OFD packet to send [03:48:10]OFD Sender: No OFD packet to send [03:48:15]OFD Sender: No OFD packet to send [03:48:20]OFD Sender: No OFD packet to send [03:48:25]OFD Sender: No OFD packet to send [03:48:30]OFD Sender: No OFD packet to send [03:48:35]OFD Sender: No OFD packet to send [03:48:40]OFD Sender: No OFD packet to send [03:48:45]OFD Sender: No OFD packet to send [03:48:50]OFD Sender: No OFD packet to send [03:48:55]OFD Sender: No OFD packet to send [03:49:00]OFD Sender: No OFD packet to send [03:49:05]OFD Sender: No OFD packet to send [03:49:10]OFD Sender: No OFD packet to send [03:49:15]OFD Sender: No OFD packet to send [03:49:20]OFD Sender: No OFD packet to send [03:49:25]OFD Sender: No OFD packet to send [03:49:30]OFD Sender: No OFD packet to send [03:49:35]OFD Sender: No OFD packet to send [03:49:40]OFD Sender: No OFD packet to send [03:49:45]OFD Sender: No OFD packet to send [03:49:50]OFD Sender: No OFD packet to send [03:49:55]OFD Sender: No OFD packet to send [03:50:00]OFD Sender: No OFD packet to send [03:50:05]OFD Sender: No OFD packet to send [03:50:10]OFD Sender: No OFD packet to send [03:50:15]OFD Sender: No OFD packet to send [03:50:20]OFD Sender: No OFD packet to send [03:50:25]OFD Sender: No OFD packet to send [03:50:30]OFD Sender: No OFD packet to send [03:50:35]OFD Sender: No OFD packet to send [03:50:40]OFD Sender: No OFD packet to send [03:50:45]OFD Sender: No OFD packet to send [03:50:50]OFD Sender: No OFD packet to send [03:50:55]OFD Sender: No OFD packet to send [03:51:00]OFD Sender: No OFD packet to send [03:51:05]OFD Sender: No OFD packet to send [03:51:10]OFD Sender: No OFD packet to send [03:51:15]OFD Sender: No OFD packet to send [03:51:20]OFD Sender: No OFD packet to send [03:51:25]OFD Sender: No OFD packet to send [03:51:30]OFD Sender: No OFD packet to send [03:51:35]OFD Sender: No OFD packet to send [03:51:40]OFD Sender: No OFD packet to send [03:51:45]OFD Sender: No OFD packet to send [03:51:50]OFD Sender: No OFD packet to send [03:51:55]OFD Sender: No OFD packet to send [03:52:00]OFD Sender: No OFD packet to send [03:52:05]OFD Sender: No OFD packet to send [03:52:10]OFD Sender: No OFD packet to send [03:52:15]OFD Sender: No OFD packet to send [03:52:20]OFD Sender: No OFD packet to send [03:52:25]OFD Sender: No OFD packet to send [03:52:30]OFD Sender: No OFD packet to send [03:52:35]OFD Sender: No OFD packet to send [03:52:40]OFD Sender: No OFD packet to send [03:52:45]OFD Sender: No OFD packet to send [03:52:50]OFD Sender: No OFD packet to send [03:52:55]OFD Sender: No OFD packet to send [03:53:00]OFD Sender: No OFD packet to send [03:53:05]OFD Sender: No OFD packet to send [03:53:10]OFD Sender: No OFD packet to send [03:53:15]OFD Sender: No OFD packet to send [03:53:20]OFD Sender: No OFD packet to send [03:53:25]OFD Sender: No OFD packet to send [03:53:30]OFD Sender: No OFD packet to send [03:53:35]OFD Sender: No OFD packet to send [03:53:40]OFD Sender: No OFD packet to send [03:53:45]OFD Sender: No OFD packet to send [03:53:50]OFD Sender: No OFD packet to send [03:53:55]OFD Sender: No OFD packet to send [03:54:00]OFD Sender: No OFD packet to send [03:54:05]OFD Sender: No OFD packet to send [03:54:10]OFD Sender: No OFD packet to send [03:54:15]OFD Sender: No OFD packet to send [03:54:20]OFD Sender: No OFD packet to send [03:54:25]OFD Sender: No OFD packet to send [03:54:30]OFD Sender: No OFD packet to send [03:54:35]OFD Sender: No OFD packet to send [03:54:40]OFD Sender: No OFD packet to send [03:54:45]OFD Sender: No OFD packet to send [03:54:50]OFD Sender: No OFD packet to send [03:54:55]OFD Sender: No OFD packet to send [03:55:00]OFD Sender: No OFD packet to send [03:55:05]OFD Sender: No OFD packet to send [03:55:10]OFD Sender: No OFD packet to send [03:55:15]OFD Sender: No OFD packet to send [03:55:20]OFD Sender: No OFD packet to send [03:55:25]OFD Sender: No OFD packet to send [03:55:30]OFD Sender: No OFD packet to send [03:55:35]OFD Sender: No OFD packet to send [03:55:40]OFD Sender: No OFD packet to send [03:55:45]OFD Sender: No OFD packet to send [03:55:50]OFD Sender: No OFD packet to send [03:55:55]OFD Sender: No OFD packet to send [03:56:00]OFD Sender: No OFD packet to send [03:56:05]OFD Sender: No OFD packet to send [03:56:10]OFD Sender: No OFD packet to send [03:56:15]OFD Sender: No OFD packet to send [03:56:20]OFD Sender: No OFD packet to send [03:56:25]OFD Sender: No OFD packet to send [03:56:30]OFD Sender: No OFD packet to send [03:56:35]OFD Sender: No OFD packet to send [03:56:40]OFD Sender: No OFD packet to send [03:56:45]OFD Sender: No OFD packet to send [03:56:50]OFD Sender: No OFD packet to send [03:56:55]OFD Sender: No OFD packet to send [03:57:00]OFD Sender: No OFD packet to send [03:57:05]OFD Sender: No OFD packet to send [03:57:10]OFD Sender: No OFD packet to send [03:57:15]OFD Sender: No OFD packet to send [03:57:20]OFD Sender: No OFD packet to send [03:57:25]OFD Sender: No OFD packet to send [03:57:30]OFD Sender: No OFD packet to send [03:57:35]OFD Sender: No OFD packet to send [03:57:40]OFD Sender: No OFD packet to send [03:57:45]OFD Sender: No OFD packet to send [03:57:50]OFD Sender: No OFD packet to send [03:57:55]OFD Sender: No OFD packet to send [03:58:00]OFD Sender: No OFD packet to send [03:58:05]OFD Sender: No OFD packet to send [03:58:10]OFD Sender: No OFD packet to send [03:58:15]OFD Sender: No OFD packet to send [03:58:20]OFD Sender: No OFD packet to send [03:58:25]OFD Sender: No OFD packet to send [03:58:30]OFD Sender: No OFD packet to send [03:58:35]OFD Sender: No OFD packet to send [03:58:40]OFD Sender: No OFD packet to send [03:58:45]OFD Sender: No OFD packet to send [03:58:50]OFD Sender: No OFD packet to send [03:58:55]OFD Sender: No OFD packet to send [03:59:00]OFD Sender: No OFD packet to send [03:59:05]OFD Sender: No OFD packet to send [03:59:10]OFD Sender: No OFD packet to send [03:59:15]OFD Sender: No OFD packet to send [03:59:20]OFD Sender: No OFD packet to send [03:59:25]OFD Sender: No OFD packet to send [03:59:30]OFD Sender: No OFD packet to send [03:59:35]OFD Sender: No OFD packet to send [03:59:40]OFD Sender: No OFD packet to send [03:59:45]OFD Sender: No OFD packet to send [03:59:50]OFD Sender: No OFD packet to send [03:59:55]OFD Sender: No OFD packet to send [04:00:00]OFD Sender: No OFD packet to send [04:00:05]OFD Sender: No OFD packet to send [04:00:10]OFD Sender: No OFD packet to send [04:00:15]OFD Sender: No OFD packet to send [04:00:20]OFD Sender: No OFD packet to send [04:00:25]OFD Sender: No OFD packet to send [04:00:30]OFD Sender: No OFD packet to send [04:00:35]OFD Sender: No OFD packet to send [04:00:40]OFD Sender: No OFD packet to send [04:00:45]OFD Sender: No OFD packet to send [04:00:50]OFD Sender: No OFD packet to send [04:00:55]OFD Sender: No OFD packet to send [04:01:00]OFD Sender: No OFD packet to send [04:01:05]OFD Sender: No OFD packet to send [04:01:10]OFD Sender: No OFD packet to send [04:01:15]OFD Sender: No OFD packet to send [04:01:20]OFD Sender: No OFD packet to send [04:01:25]OFD Sender: No OFD packet to send [04:01:30]OFD Sender: No OFD packet to send [04:01:35]OFD Sender: No OFD packet to send [04:01:40]OFD Sender: No OFD packet to send [04:01:45]OFD Sender: No OFD packet to send [04:01:50]OFD Sender: No OFD packet to send [04:01:55]OFD Sender: No OFD packet to send [04:02:00]OFD Sender: No OFD packet to send [04:02:05]OFD Sender: No OFD packet to send [04:02:10]OFD Sender: No OFD packet to send [04:02:15]OFD Sender: No OFD packet to send [04:02:20]OFD Sender: No OFD packet to send [04:02:25]OFD Sender: No OFD packet to send [04:02:30]OFD Sender: No OFD packet to send [04:02:35]OFD Sender: No OFD packet to send [04:02:40]OFD Sender: No OFD packet to send [04:02:45]OFD Sender: No OFD packet to send [04:02:50]OFD Sender: No OFD packet to send [04:02:55]OFD Sender: No OFD packet to send [04:03:00]OFD Sender: No OFD packet to send [04:03:05]OFD Sender: No OFD packet to send [04:03:10]OFD Sender: No OFD packet to send [04:03:15]OFD Sender: No OFD packet to send [04:03:20]OFD Sender: No OFD packet to send [04:03:25]OFD Sender: No OFD packet to send [04:03:30]OFD Sender: No OFD packet to send [04:03:35]OFD Sender: No OFD packet to send [04:03:40]OFD Sender: No OFD packet to send [04:03:45]OFD Sender: No OFD packet to send [04:03:50]OFD Sender: No OFD packet to send [04:03:55]OFD Sender: No OFD packet to send [04:04:00]OFD Sender: No OFD packet to send [04:04:05]OFD Sender: No OFD packet to send [04:04:10]OFD Sender: No OFD packet to send [04:04:15]OFD Sender: No OFD packet to send [04:04:20]OFD Sender: No OFD packet to send [04:04:25]OFD Sender: No OFD packet to send [04:04:30]OFD Sender: No OFD packet to send [04:04:35]OFD Sender: No OFD packet to send [04:04:40]OFD Sender: No OFD packet to send [04:04:45]OFD Sender: No OFD packet to send [04:04:50]OFD Sender: No OFD packet to send [04:04:55]OFD Sender: No OFD packet to send [04:05:00]OFD Sender: No OFD packet to send [04:05:05]OFD Sender: No OFD packet to send [04:05:10]OFD Sender: No OFD packet to send [04:05:15]OFD Sender: No OFD packet to send [04:05:20]OFD Sender: No OFD packet to send [04:05:25]OFD Sender: No OFD packet to send [04:05:30]OFD Sender: No OFD packet to send [04:05:35]OFD Sender: No OFD packet to send [04:05:40]OFD Sender: No OFD packet to send [04:05:45]OFD Sender: No OFD packet to send [04:05:50]OFD Sender: No OFD packet to send [04:05:55]OFD Sender: No OFD packet to send [04:06:00]OFD Sender: No OFD packet to send [04:06:05]OFD Sender: No OFD packet to send [04:06:10]OFD Sender: No OFD packet to send [04:06:15]OFD Sender: No OFD packet to send [04:06:20]OFD Sender: No OFD packet to send [04:06:25]OFD Sender: No OFD packet to send [04:06:30]OFD Sender: No OFD packet to send [04:06:35]OFD Sender: No OFD packet to send [04:06:40]OFD Sender: No OFD packet to send [04:06:45]OFD Sender: No OFD packet to send [04:06:50]OFD Sender: No OFD packet to send [04:06:55]OFD Sender: No OFD packet to send [04:07:00]OFD Sender: No OFD packet to send [04:07:05]OFD Sender: No OFD packet to send [04:07:10]OFD Sender: No OFD packet to send [04:07:15]OFD Sender: No OFD packet to send [04:07:20]OFD Sender: No OFD packet to send [04:07:25]OFD Sender: No OFD packet to send [04:07:30]OFD Sender: No OFD packet to send [04:07:35]OFD Sender: No OFD packet to send [04:07:40]OFD Sender: No OFD packet to send [04:07:46]OFD Sender: No OFD packet to send [04:07:51]OFD Sender: No OFD packet to send [04:07:56]OFD Sender: No OFD packet to send [04:08:01]OFD Sender: No OFD packet to send [04:08:06]OFD Sender: No OFD packet to send [04:08:11]OFD Sender: No OFD packet to send [04:08:16]OFD Sender: No OFD packet to send [04:08:21]OFD Sender: No OFD packet to send [04:08:26]OFD Sender: No OFD packet to send [04:08:31]OFD Sender: No OFD packet to send [04:08:36]OFD Sender: No OFD packet to send [04:08:41]OFD Sender: No OFD packet to send [04:08:46]OFD Sender: No OFD packet to send [04:08:51]OFD Sender: No OFD packet to send [04:08:56]OFD Sender: No OFD packet to send [04:09:01]OFD Sender: No OFD packet to send [04:09:06]OFD Sender: No OFD packet to send [04:09:11]OFD Sender: No OFD packet to send [04:09:16]OFD Sender: No OFD packet to send [04:09:21]OFD Sender: No OFD packet to send [04:09:26]OFD Sender: No OFD packet to send [04:09:31]OFD Sender: No OFD packet to send [04:09:36]OFD Sender: No OFD packet to send [04:09:41]OFD Sender: No OFD packet to send [04:09:46]OFD Sender: No OFD packet to send [04:09:51]OFD Sender: No OFD packet to send [04:09:56]OFD Sender: No OFD packet to send [04:10:01]OFD Sender: No OFD packet to send [04:10:06]OFD Sender: No OFD packet to send [04:10:11]OFD Sender: No OFD packet to send [04:10:16]OFD Sender: No OFD packet to send [04:10:21]OFD Sender: No OFD packet to send [04:10:26]OFD Sender: No OFD packet to send [04:10:31]OFD Sender: No OFD packet to send [04:10:36]OFD Sender: No OFD packet to send [04:10:41]OFD Sender: No OFD packet to send [04:10:46]OFD Sender: No OFD packet to send [04:10:51]OFD Sender: No OFD packet to send [04:10:56]OFD Sender: No OFD packet to send [04:11:01]OFD Sender: No OFD packet to send [04:11:06]OFD Sender: No OFD packet to send [04:11:11]OFD Sender: No OFD packet to send [04:11:16]OFD Sender: No OFD packet to send [04:11:21]OFD Sender: No OFD packet to send [04:11:26]OFD Sender: No OFD packet to send [04:11:31]OFD Sender: No OFD packet to send [04:11:36]OFD Sender: No OFD packet to send [04:11:41]OFD Sender: No OFD packet to send [04:11:46]OFD Sender: No OFD packet to send [04:11:51]OFD Sender: No OFD packet to send [04:11:56]OFD Sender: No OFD packet to send [04:12:01]OFD Sender: No OFD packet to send [04:12:06]OFD Sender: No OFD packet to send [04:12:11]OFD Sender: No OFD packet to send [04:12:16]OFD Sender: No OFD packet to send [04:12:21]OFD Sender: No OFD packet to send [04:12:26]OFD Sender: No OFD packet to send [04:12:31]OFD Sender: No OFD packet to send [04:12:36]OFD Sender: No OFD packet to send [04:12:41]OFD Sender: No OFD packet to send [04:12:46]OFD Sender: No OFD packet to send [04:12:51]OFD Sender: No OFD packet to send [04:12:56]OFD Sender: No OFD packet to send [04:13:01]OFD Sender: No OFD packet to send [04:13:06]OFD Sender: No OFD packet to send [04:13:11]OFD Sender: No OFD packet to send [04:13:16]OFD Sender: No OFD packet to send [04:13:21]OFD Sender: No OFD packet to send [04:13:26]OFD Sender: No OFD packet to send [04:13:31]OFD Sender: No OFD packet to send [04:13:36]OFD Sender: No OFD packet to send [04:13:41]OFD Sender: No OFD packet to send [04:13:46]OFD Sender: No OFD packet to send [04:13:51]OFD Sender: No OFD packet to send [04:13:56]OFD Sender: No OFD packet to send [04:14:01]OFD Sender: No OFD packet to send [04:14:06]OFD Sender: No OFD packet to send [04:14:11]OFD Sender: No OFD packet to send [04:14:16]OFD Sender: No OFD packet to send [04:14:21]OFD Sender: No OFD packet to send [04:14:26]OFD Sender: No OFD packet to send [04:14:31]OFD Sender: No OFD packet to send [04:14:36]OFD Sender: No OFD packet to send [04:14:41]OFD Sender: No OFD packet to send [04:14:46]OFD Sender: No OFD packet to send [04:14:51]OFD Sender: No OFD packet to send [04:14:56]OFD Sender: No OFD packet to send [04:15:01]OFD Sender: No OFD packet to send [04:15:06]OFD Sender: No OFD packet to send [04:15:11]OFD Sender: No OFD packet to send [04:15:16]OFD Sender: No OFD packet to send [04:15:21]OFD Sender: No OFD packet to send [04:15:26]OFD Sender: No OFD packet to send [04:15:31]OFD Sender: No OFD packet to send [04:15:36]OFD Sender: No OFD packet to send [04:15:41]OFD Sender: No OFD packet to send [04:15:46]OFD Sender: No OFD packet to send [04:15:51]OFD Sender: No OFD packet to send [04:15:56]OFD Sender: No OFD packet to send [04:16:01]OFD Sender: No OFD packet to send [04:16:06]OFD Sender: No OFD packet to send [04:16:11]OFD Sender: No OFD packet to send [04:16:16]OFD Sender: No OFD packet to send [04:16:21]OFD Sender: No OFD packet to send [04:16:26]OFD Sender: No OFD packet to send [04:16:31]OFD Sender: No OFD packet to send [04:16:36]OFD Sender: No OFD packet to send [04:16:41]OFD Sender: No OFD packet to send [04:16:46]OFD Sender: No OFD packet to send [04:16:51]OFD Sender: No OFD packet to send [04:16:56]OFD Sender: No OFD packet to send [04:17:01]OFD Sender: No OFD packet to send [04:17:06]OFD Sender: No OFD packet to send [04:17:11]OFD Sender: No OFD packet to send [04:17:16]OFD Sender: No OFD packet to send [04:17:21]OFD Sender: No OFD packet to send [04:17:26]OFD Sender: No OFD packet to send [04:17:31]OFD Sender: No OFD packet to send [04:17:36]OFD Sender: No OFD packet to send [04:17:41]OFD Sender: No OFD packet to send [04:17:46]OFD Sender: No OFD packet to send [04:17:51]OFD Sender: No OFD packet to send [04:17:56]OFD Sender: No OFD packet to send [04:18:01]OFD Sender: No OFD packet to send [04:18:06]OFD Sender: No OFD packet to send [04:18:11]OFD Sender: No OFD packet to send [04:18:16]OFD Sender: No OFD packet to send [04:18:21]OFD Sender: No OFD packet to send [04:18:26]OFD Sender: No OFD packet to send [04:18:31]OFD Sender: No OFD packet to send [04:18:36]OFD Sender: No OFD packet to send [04:18:41]OFD Sender: No OFD packet to send [04:18:46]OFD Sender: No OFD packet to send [04:18:51]OFD Sender: No OFD packet to send [04:18:56]OFD Sender: No OFD packet to send [04:19:01]OFD Sender: No OFD packet to send [04:19:06]OFD Sender: No OFD packet to send [04:19:11]OFD Sender: No OFD packet to send [04:19:16]OFD Sender: No OFD packet to send [04:19:21]OFD Sender: No OFD packet to send [04:19:26]OFD Sender: No OFD packet to send [04:19:31]OFD Sender: No OFD packet to send [04:19:36]OFD Sender: No OFD packet to send [04:19:41]OFD Sender: No OFD packet to send [04:19:46]OFD Sender: No OFD packet to send [04:19:51]OFD Sender: No OFD packet to send [04:19:56]OFD Sender: No OFD packet to send [04:20:01]OFD Sender: No OFD packet to send [04:20:06]OFD Sender: No OFD packet to send [04:20:11]OFD Sender: No OFD packet to send [04:20:16]OFD Sender: No OFD packet to send [04:20:21]OFD Sender: No OFD packet to send [04:20:26]OFD Sender: No OFD packet to send [04:20:31]OFD Sender: No OFD packet to send [04:20:36]OFD Sender: No OFD packet to send [04:20:41]OFD Sender: No OFD packet to send [04:20:46]OFD Sender: No OFD packet to send [04:20:51]OFD Sender: No OFD packet to send [04:20:56]OFD Sender: No OFD packet to send [04:21:01]OFD Sender: No OFD packet to send [04:21:06]OFD Sender: No OFD packet to send [04:21:11]OFD Sender: No OFD packet to send [04:21:16]OFD Sender: No OFD packet to send [04:21:21]OFD Sender: No OFD packet to send [04:21:26]OFD Sender: No OFD packet to send [04:21:31]OFD Sender: No OFD packet to send [04:21:36]OFD Sender: No OFD packet to send [04:21:41]OFD Sender: No OFD packet to send [04:21:46]OFD Sender: No OFD packet to send [04:21:51]OFD Sender: No OFD packet to send [04:21:56]OFD Sender: No OFD packet to send [04:22:01]OFD Sender: No OFD packet to send [04:22:06]OFD Sender: No OFD packet to send [04:22:11]OFD Sender: No OFD packet to send [04:22:16]OFD Sender: No OFD packet to send [04:22:21]OFD Sender: No OFD packet to send [04:22:26]OFD Sender: No OFD packet to send [04:22:31]OFD Sender: No OFD packet to send [04:22:36]OFD Sender: No OFD packet to send [04:22:41]OFD Sender: No OFD packet to send [04:22:46]OFD Sender: No OFD packet to send [04:22:51]OFD Sender: No OFD packet to send [04:22:56]OFD Sender: No OFD packet to send [04:23:01]OFD Sender: No OFD packet to send [04:23:06]OFD Sender: No OFD packet to send [04:23:11]OFD Sender: No OFD packet to send [04:23:16]OFD Sender: No OFD packet to send [04:23:21]OFD Sender: No OFD packet to send [04:23:26]OFD Sender: No OFD packet to send [04:23:31]OFD Sender: No OFD packet to send [04:23:36]OFD Sender: No OFD packet to send [04:23:41]OFD Sender: No OFD packet to send [04:23:46]OFD Sender: No OFD packet to send [04:23:51]OFD Sender: No OFD packet to send [04:23:56]OFD Sender: No OFD packet to send [04:24:01]OFD Sender: No OFD packet to send [04:24:06]OFD Sender: No OFD packet to send [04:24:11]OFD Sender: No OFD packet to send [04:24:16]OFD Sender: No OFD packet to send [04:24:21]OFD Sender: No OFD packet to send [04:24:26]OFD Sender: No OFD packet to send [04:24:31]OFD Sender: No OFD packet to send [04:24:36]OFD Sender: No OFD packet to send [04:24:41]OFD Sender: No OFD packet to send [04:24:46]OFD Sender: No OFD packet to send [04:24:51]OFD Sender: No OFD packet to send [04:24:56]OFD Sender: No OFD packet to send [04:25:01]OFD Sender: No OFD packet to send [04:25:06]OFD Sender: No OFD packet to send [04:25:11]OFD Sender: No OFD packet to send [04:25:16]OFD Sender: No OFD packet to send [04:25:21]OFD Sender: No OFD packet to send [04:25:26]OFD Sender: No OFD packet to send [04:25:31]OFD Sender: No OFD packet to send [04:25:36]OFD Sender: No OFD packet to send [04:25:41]OFD Sender: No OFD packet to send [04:25:46]OFD Sender: No OFD packet to send [04:25:51]OFD Sender: No OFD packet to send [04:25:56]OFD Sender: No OFD packet to send [04:26:01]OFD Sender: No OFD packet to send [04:26:06]OFD Sender: No OFD packet to send [04:26:11]OFD Sender: No OFD packet to send [04:26:16]OFD Sender: No OFD packet to send [04:26:21]OFD Sender: No OFD packet to send [04:26:26]OFD Sender: No OFD packet to send [04:26:31]OFD Sender: No OFD packet to send [04:26:36]OFD Sender: No OFD packet to send [04:26:41]OFD Sender: No OFD packet to send [04:26:46]OFD Sender: No OFD packet to send [04:26:51]OFD Sender: No OFD packet to send [04:26:56]OFD Sender: No OFD packet to send [04:27:01]OFD Sender: No OFD packet to send [04:27:06]OFD Sender: No OFD packet to send [04:27:11]OFD Sender: No OFD packet to send [04:27:16]OFD Sender: No OFD packet to send [04:27:21]OFD Sender: No OFD packet to send [04:27:26]OFD Sender: No OFD packet to send [04:27:31]OFD Sender: No OFD packet to send [04:27:36]OFD Sender: No OFD packet to send [04:27:41]OFD Sender: No OFD packet to send [04:27:46]OFD Sender: No OFD packet to send [04:27:51]OFD Sender: No OFD packet to send [04:27:56]OFD Sender: No OFD packet to send [04:28:01]OFD Sender: No OFD packet to send [04:28:06]OFD Sender: No OFD packet to send [04:28:11]OFD Sender: No OFD packet to send [04:28:16]OFD Sender: No OFD packet to send [04:28:21]OFD Sender: No OFD packet to send [04:28:26]OFD Sender: No OFD packet to send [04:28:31]OFD Sender: No OFD packet to send [04:28:36]OFD Sender: No OFD packet to send [04:28: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:57]OFD Sender: No OFD packet to send [04:29:02]OFD Sender: No OFD packet to send [04:29:07]OFD Sender: No OFD packet to send [04:29:12]OFD Sender: No OFD packet to send [04:29:17]OFD Sender: No OFD packet to send [04:29:22]OFD Sender: No OFD packet to send [04:29:27]OFD Sender: No OFD packet to send [04:29:30]accept exits with 7 [04:29:30]New connection [04:29:30]New thread 3067370852 created [04:29:30]Thread 3067514212 joined [04:29:30]Waiting for new connection... [04:29:30] Sock 7.Parse request [04:29:30]Sock 7.Check first char [04:29:30]Sock 7.First char is OK [04:29:30]request: POST /json_proto HTTP/1.0 [04:29:30]Method: POST [04:29:30]URL: /json_proto [04:29:30]Method is POST - this is cgi request [04:29:30]url: /json_proto [04:29:30]query_string will be loaded in cgi processing [04:29:30]execute_cgi json_proto POST (null) [04:29:30]execute_cgi path=json_proto method=POST [04:29:30]POST find Content-Length [04:29:30]Host: 172.17.51.3:8080 [04:29:30]Content-Length: 677 [04:29:30]Content-Type: application/json [04:29:30] [04:29:30]POST finish read [04:29:30]Found Content-Length = 677 [04:29:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342616", "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" ] } } [04:29:30]execute_script... [04:29: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)342616", "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" ] } } [04:29:30]POST & json_proto [04:29:30]process_json_proto [04:29:30]json parsed OK: [04:29:30]protocol is kg_v1.0 [04:29:30]action value=close_receipt [04:29:30]process_action close_receipt [04:29:30]cmd_close_receipt [04:29:30]MH_GetDate [04:29:30]Write to MH i2c: F0 00 00 CB 63 1D [04:29:30]Write i2c OK [04:29:30]MH_I2C_Read... [04:29:30]Read from MH i2c: F0 [04:29:30]MH_I2C_Read... [04:29:30]Read from MH i2c: F0 09 00 [04:29:30]MH_I2C_Read... [04:29:30]Read from MH i2c: F0 09 00 CB 63 00 32 87 14 67 04 C1 95 66 1A [04:29:30]GetLastDocTimeStamp 1729395554 [04:29:30]current date 1729398578 [04:29:30]FM_GetShiftState [04:29:30]SAM_PROTO_GetShiftState [04:29:30]wFMCommunicate request_size=4 [04:29:30]MH_SAM_APDU [04:29:30]CAPDU: 80 13 01 00 [04:29:30]Write to MH i2c: E2 08 00 CC 63 80 13 01 00 00 00 00 00 AC [04:29:30]Write i2c OK [04:29:30]MH_I2C_Read... [04:29:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:29:31]Read from MH i2c: E2 [04:29:31]MH_I2C_Read... [04:29:31]Read from MH i2c: E2 0E 00 [04:29:31]MH_I2C_Read... [04:29:31]Read from MH i2c: E2 0E 00 CC 63 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 92 [04:29:31]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [04:29:31]wFMCommunicate OK [04:29:31]SAM_PROTO_GetShiftState done [04:29:31]FM_GetShiftState done [04:29:31]opened in 1729384718 [04:29:31]opened+sec_in_day 1729471118 [04:29:31]quantity*price = 50010 [04:29:31]sum+1 = 50012 [04:29:31]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 СНО: Общий режим Чек 9 20.10.2024 04:29 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30227 ФПД: 111345617543503 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T042938&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30227&fm=111345617543503&tin=02508201610067®Number=0000000000186857&sum=50000 [04:29:32]StoreToDocumentArchive [04:29:32]shift 114 fd 30227 [04:29:32]save to /storage/0114/doc_00030227 [04:29:32]save last doc name /storage/0114/doc_00030227 to /storage/kkm_last_doc_name [04:29:32]save OK [04:29:32]Clear old archive folders... [04:29:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [04:29:32]tlvbuf is 00C6E230 [04:29:32]SAM_PROTO_ClearQueue [04:29:32]wFMCommunicate request_size=4 [04:29:32]MH_SAM_APDU [04:29:32]CAPDU: 80 09 00 00 [04:29:32]Write to MH i2c: E2 08 00 D9 63 80 09 00 00 00 00 00 00 AE [04:29:32]Write i2c OK [04:29:32]MH_I2C_Read... [04:29:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:29:32]Read from MH i2c: E2 [04:29:32]MH_I2C_Read... [04:29:32]Read from MH i2c: E2 03 00 [04:29:32]MH_I2C_Read... [04:29:32]Read from MH i2c: E2 03 00 D9 63 00 90 00 B0 [04:29:32]RAPDU: 90 00 [04:29:32]wFMCommunicate OK [04:29:32]SAM_PROTO_ClearQueue done [04:29:32]KKMCreateOFDPacket [04:29:32]OFDProtocolAddRootSTLVToBuf [04:29:32]FM_MakeSignedData [04:29:32]FM_MakeSignedData [04:29:32]SAM_PROTO_SignData [04:29:32]wFMCommunicate request_size=4 [04:29:32]MH_SAM_APDU [04:29:32]CAPDU: 80 0D 01 02 [04:29:32]Write to MH i2c: E2 08 00 DA 63 80 0D 01 02 00 00 00 00 B6 [04:29:32]Write i2c OK [04:29:32]MH_I2C_Read... [04:29:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:29:32]Read from MH i2c: E2 [04:29:32]MH_I2C_Read... [04:29:32]Read from MH i2c: E2 03 00 [04:29:32]MH_I2C_Read... [04:29:32]Read from MH i2c: E2 03 00 DA 63 00 90 00 B1 [04:29:32]RAPDU: 90 00 [04:29:32]wFMCommunicate OK [04:29:32]wFMCommunicate request_size=255 [04:29:32]MH_SAM_APDU [04:29: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 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 09 00 00 00 F4 03 04 00 32 87 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 65 [04:29:32]Write to MH i2c: E2 02 01 DB 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 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 09 00 00 00 F4 03 04 00 32 87 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 65 00 00 BD [04:29:32]Write i2c OK [04:29:32]MH_I2C_Read... [04:29:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:29:32]Read from MH i2c: E2 [04:29:32]MH_I2C_Read... [04:29:32]Read from MH i2c: E2 03 00 [04:29:32]MH_I2C_Read... [04:29:32]Read from MH i2c: E2 03 00 DB 63 00 90 00 B2 [04:29:32]RAPDU: 90 00 [04:29:32]wFMCommunicate OK [04:29:32]wFMCommunicate request_size=10 [04:29:32]MH_SAM_APDU [04:29:32]CAPDU: 80 0D 02 02 05 44 AB FB 21 4F [04:29:32]Write to MH i2c: E2 0D 00 DC 63 80 0D 02 02 05 00 44 AB FB 21 4F 00 00 1D [04:29:32]Write i2c OK [04:29:32]MH_I2C_Read... [04:29:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:29:32]Read from MH i2c: E2 [04:29:32]MH_I2C_Read... [04:29:32]Read from MH i2c: E2 03 00 [04:29:32]MH_I2C_Read... [04:29:32]Read from MH i2c: E2 03 00 DC 63 00 90 00 B3 [04:29:32]RAPDU: 90 00 [04:29:32]wFMCommunicate OK [04:29:32]wFMCommunicate request_size=4 [04:29:32]MH_SAM_APDU [04:29:32]CAPDU: 80 0D 03 02 [04:29:32]Write to MH i2c: E2 08 00 DD 63 80 0D 03 02 00 00 00 00 BB [04:29:32]Write i2c OK [04:29:32]MH_I2C_Read... [04:29:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:29:32]Read from MH i2c: E2 [04:29:32]MH_I2C_Read... [04:29:32]Read from MH i2c: E2 0B 00 [04:29:32]MH_I2C_Read... [04:29:32]Read from MH i2c: E2 0B 00 DD 63 00 DC 1C E5 24 2C 3D D1 97 90 00 8E [04:29:32]RAPDU: DC 1C E5 24 2C 3D D1 97 90 00 [04:29:32]wFMCommunicate OK [04:29:32]SAM_PROTO_SignData done [04:29:32]FM_MakeSignedData done [04:29:32]CreateOFDProtocolMessage [04:29:32]wFMCommunicate request_size=4 [04:29:32]MH_SAM_APDU [04:29:32]CAPDU: 80 11 00 00 [04:29:32]Write to MH i2c: E2 08 00 DE 63 80 11 00 00 00 00 00 00 BB [04:29:32]Write i2c OK [04:29:32]MH_I2C_Read... [04:29:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:29:32]Read from MH i2c: E2 [04:29:32]MH_I2C_Read... [04:29:32]Read from MH i2c: E2 17 00 [04:29:32]MH_I2C_Read... [04:29:32]Read from MH i2c: E2 17 00 DE 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 09 [04:29: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:29:32]wFMCommunicate OK [04:29:32]CreateOFDProtocolMessage done [04:29:32]OFDSenderStorePacket 30227 [04:29:32]StoreOFDPacket docnum=30227 [04:29: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 70 75 07 01 04 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 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 09 00 00 00 F4 03 04 00 32 87 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 65 44 AB FB 21 4F DC 1C E5 24 2C 3D D1 97 [04:29:32]CheckFolder [04:29:32]dirname=/storage/ofd_packets [04:29:32]CheckFolder done [04:29:32]ProducePacketName [04:29:32]name=ofd_packets/00030227 [04:29:32]NVStorageSaveData ofd_packets/00030227 [04:29:32]File name is /storage/ofd_packets/00030227 [04:29:32]Write 301 bytes [04:29:32]NVStorageSaveData done [04:29:32]OFDSenderStorePacket done [04:29:32]KKMCreateOFDPacket done [04:29:32]NVStorageSaveData kkm_last_timestamp [04:29:32]File name is /storage/kkm_last_timestamp [04:29:32]Write 4 bytes [04:29:32]NVStorageSaveData done [04:29:32]ExternCall_PrintAddStr [04:29:32]wPrintStart [04:29:32]Write to MH i2c: 01 00 00 DF 63 42 [04:29:32]Write i2c OK [04:29:32]MH_I2C_Read... [04:29:32]Read from MH i2c: 01 [04:29:32]MH_I2C_Read... [04:29:32]Read from MH i2c: 01 07 00 [04:29:32]MH_I2C_Read... [04:29:32]Read from MH i2c: 01 07 00 DF 63 00 00 00 00 00 FF 0F 57 [04:29:32]RasterBufferAndPrint [04:29:32]line Счет N : (1)342616 [04:29:32]line ИНН: 02508201610067 [04:29:32]line Контрольно-Кассовый Чек [04:29:32]line ПРОДАЖА [04:29:32]line ТРК (МРК, ГНК) : 52 [04:29:32]line Товар: 2710124500 [04:29:32]line Аи-95-К-3 [04:29:32]line 6.740 * 74.20 [04:29:32]line = 500.11 [04:29:32]line НДС 12% НСП 1% [04:29:32]line > о реализуемом товаре [04:29:32]line ОКРУГЛЕНИЕ: -0.11 [04:29:32]line ИТОГО: 500.00 [04:29:32]line Внесено: 500.00 [04:29:32]line СДАЧА: 0.00 [04:29:32]line НСП 1% : 4.43 [04:29:32]line НДС 12% : 53.11 [04:29:32]line Наличными: 500.00 [04:29:32]line Безнал.: 0.00 [04:29:32]line Место: АЗС № 78 "Партнер Нефть" [04:29:32]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [04:29:32]line СНО: Общий режим [04:29:32]line Чек 9 20.10.2024 04:29 [04:29:32]line Смена: 114 ФФД: 1.0 [04:29:32]line ЗНМ: 0300000137 [04:29:32]line РНМ: 0000000000186857 [04:29:32]line Версия ККМ: v1.0 [04:29:32]line ФМ: 0000000002094219 [04:29:32]line ФД: 30227 [04:29:32]line ФПД: 111345617543503 [04:29:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T042938&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30227&fm=111345617543503&tin=02508201610067®Number=0000000000186857&sum=50000 [04:29:33]OFD Sender: Processing packet 30227 [packets to send 10, broken 9] [04:29:33]ProducePacketName [04:29:33]name=ofd_packets/00030227 [04:29:33]OFD Sender: To server: pG, [04:29:33]CommunicateWithHost lk.salyk.kg:30040 [04:29:33]ConnectInit lk.salyk.kg [04:29:33]written 0, free lines is 4095 [04:29:33]Connected sock=10 [04:29: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 70 75 07 01 04 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 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 09 00 00 00 F4 03 04 00 32 87 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 65 44 AB FB 21 4F DC 1C E5 24 2C 3D D1 97 [04:29: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 FC FA 47 00 6F 31 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 13 76 00 00 F4 03 04 00 B7 31 14 67 B6 04 01 00 00 0B 72 F1 04 59 EA 96 F4 [04:29:33]CommunicateWithHost err = 0 [04:29:33]CheckOFDResponse [04:29:33]1017 (14) - 77093643461234 [04:29:33]1041 (16) - 0000000002094219 [04:29:33]1040 (4) - 30227 [04:29:33]1012 (4) - 19.10.2024 22:24 [04:29:33]1206 (1) - 0 [04:29:33]OFD Sender: Remove packet 30227 [04:29:33]ProducePacketName [04:29:33]name=ofd_packets/00030227 [04:29:33]NVStorageDeleteData [04:29:33]Write to MH i2c: 01 00 00 0A 64 6E [04:29:33]Write i2c OK [04:29:33]MH_I2C_Read... [04:29:33]Read from MH i2c: 01 [04:29:33]MH_I2C_Read... [04:29:33]Read from MH i2c: 01 07 00 [04:29:33]MH_I2C_Read... [04:29:33]Read from MH i2c: 01 07 00 0A 64 00 00 00 00 00 EC 0C 6D [04:29:33]RasterBufferAndPrint [04:29:33]line [04:29:33]line [04:29:33]line [04:29:33]line [04:29:33]line [04:29:33]written 0, free lines is 3314 [04:29:33]MH_Cut [04:29:33]Write to MH i2c: D1 01 00 11 64 01 47 [04:29:33]Write i2c OK [04:29:33]MH_I2C_Read... [04:29:33]Read from MH i2c: D1 [04:29:33]MH_I2C_Read... [04:29:33]Read from MH i2c: D1 01 00 [04:29:33]MH_I2C_Read... [04:29:33]Read from MH i2c: D1 01 00 11 64 00 46 [04:29:33]Write to MH i2c: 01 00 00 12 64 76 [04:29:33]Write i2c OK [04:29:33]MH_I2C_Read... [04:29:33]OFD Sender: No OFD packet to send [04:29:34]*** Cut start [04:29:34]*** Partial cut [04:29:34]*** CUTSNS_PIN = 1 [04:29:34]*** CUTSNS_PIN = 0 [04:29:34]*** Brake cut motor [04:29:34]Read from MH i2c: 01 [04:29:34]MH_I2C_Read... [04:29:34]*** Stop cut motor [04:29:34]*** Cut end [04:29:34]Read from MH i2c: 01 07 00 [04:29:34]MH_I2C_Read... [04:29:34]Read from MH i2c: 01 07 00 12 64 00 00 00 00 00 FF 0F 8B [04:29:34]process_action close_receipt done [04:29:34]requested_data is exist [04:29:34]produce_requested_data [04:29:34]requested_item fm.sn is exist - process it [04:29:34]wFMCommunicate request_size=4 [04:29:34]MH_SAM_APDU [04:29:34]CAPDU: 80 11 00 00 [04:29:34]Write to MH i2c: E2 08 00 13 64 80 11 00 00 00 00 00 00 F1 [04:29:34]Write i2c OK [04:29:34]MH_I2C_Read... [04:29:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:29:34]Read from MH i2c: E2 [04:29:34]MH_I2C_Read... [04:29:34]Read from MH i2c: E2 17 00 [04:29:34]MH_I2C_Read... [04:29:34]Read from MH i2c: E2 17 00 13 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 3F [04:29: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:29:34]wFMCommunicate OK [04:29:34]requested_item fd.num is exist - process it [04:29:34]SAM_PROTO_GetFieldsCounters [04:29:34]wFMCommunicate request_size=4 [04:29:34]MH_SAM_APDU [04:29:34]CAPDU: 80 13 00 00 [04:29:34]Write to MH i2c: E2 08 00 14 64 80 13 00 00 00 00 00 00 F4 [04:29:34]Write i2c OK [04:29:34]MH_I2C_Read... [04:29:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:29:34]Read from MH i2c: E2 [04:29:34]MH_I2C_Read... [04:29:34]Read from MH i2c: E2 62 00 [04:29:34]MH_I2C_Read... [04:29:34]Read from MH i2c: E2 62 00 14 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 13 76 00 00 0E 04 04 00 72 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 30 [04:29: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 13 76 00 00 0E 04 04 00 72 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:29:34]wFMCommunicate OK [04:29:34]SAM_PROTO_GetFieldsCounters done [04:29:34]requested_item shift.num is exist - process it [04:29:34]requested_item shift.opened is exist - process it [04:29:34]req_shift_opened [04:29:34]FM_GetShiftState [04:29:34]SAM_PROTO_GetShiftState [04:29:34]wFMCommunicate request_size=4 [04:29:34]MH_SAM_APDU [04:29:34]CAPDU: 80 13 01 00 [04:29:34]Write to MH i2c: E2 08 00 15 64 80 13 01 00 00 00 00 00 F6 [04:29:34]Write i2c OK [04:29:34]MH_I2C_Read... [04:29:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:29:34]Read from MH i2c: E2 [04:29:34]MH_I2C_Read... [04:29:34]Read from MH i2c: E2 0E 00 [04:29:34]MH_I2C_Read... [04:29:34]Read from MH i2c: E2 0E 00 15 64 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 DC [04:29:34]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [04:29:34]wFMCommunicate OK [04:29:34]SAM_PROTO_GetShiftState done [04:29:34]FM_GetShiftState done [04:29:34]req_shift_opened done [04:29:34]requested_item shift.open_date is exist - process it [04:29:34]req_shift_open_date [04:29:34]req_shift_open_date done [04:29:34]produce_requested_data done [04:29:34]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30227,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [04:29:34]process_action_free close_receipt [04:29:34]json_value_free [04:29:34]json_value_free done [04:29:34]process_json_proto returns [04:29:34]Send response to host [04:29:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30227,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [04:29:34]free response buf [04:29:34]execute_script done [04:29:34]execute_script returns [04:29:34]free content buf [04:29:34]Sock 7.Close socket [04:29:34]Sock 7.Thread stoped [04:29:38]OFD Sender: No OFD packet to send [04:29:43]OFD Sender: No OFD packet to send [04:29:48]OFD Sender: No OFD packet to send [04:29:53]OFD Sender: No OFD packet to send [04:29:58]OFD Sender: No OFD packet to send [04:30:03]OFD Sender: No OFD packet to send [04:30:08]OFD Sender: No OFD packet to send [04:30:13]OFD Sender: No OFD packet to send [04:30:18]OFD Sender: No OFD packet to send [04:30:23]OFD Sender: No OFD packet to send [04:30:28]OFD Sender: No OFD packet to send [04:30:33]OFD Sender: No OFD packet to send [04:30:38]OFD Sender: No OFD packet to send [04:30:43]OFD Sender: No OFD packet to send [04:30:48]OFD Sender: No OFD packet to send [04:30:53]OFD Sender: No OFD packet to send [04:30:58]OFD Sender: No OFD packet to send [04:31:03]OFD Sender: No OFD packet to send [04:31:08]OFD Sender: No OFD packet to send [04:31:13]OFD Sender: No OFD packet to send [04:31:18]OFD Sender: No OFD packet to send [04:31:23]OFD Sender: No OFD packet to send [04:31:28]OFD Sender: No OFD packet to send [04:31:33]OFD Sender: No OFD packet to send [04:31:38]OFD Sender: No OFD packet to send [04:31:43]OFD Sender: No OFD packet to send [04:31:48]OFD Sender: No OFD packet to send [04:31:53]OFD Sender: No OFD packet to send [04:31:58]OFD Sender: No OFD packet to send [04:32:03]OFD Sender: No OFD packet to send [04:32:08]OFD Sender: No OFD packet to send [04:32:13]OFD Sender: No OFD packet to send [04:32:18]OFD Sender: No OFD packet to send [04:32:23]OFD Sender: No OFD packet to send [04:32:28]OFD Sender: No OFD packet to send [04:32:33]OFD Sender: No OFD packet to send [04:32:39]OFD Sender: No OFD packet to send [04:32:44]OFD Sender: No OFD packet to send [04:32:49]OFD Sender: No OFD packet to send [04:32:54]OFD Sender: No OFD packet to send [04:32:58]accept exits with 9 [04:32:58]New connection [04:32:58]New thread 3067514212 created [04:32:58]Thread 3067370852 joined [04:32:58]Waiting for new connection... [04:32:58] Sock 9.Parse request [04:32:58]Sock 9.Check first char [04:32:58]Sock 9.First char is OK [04:32:58]request: POST /json_proto HTTP/1.0 [04:32:58]Method: POST [04:32:58]URL: /json_proto [04:32:58]Method is POST - this is cgi request [04:32:58]url: /json_proto [04:32:58]query_string will be loaded in cgi processing [04:32:58]execute_cgi json_proto POST (null) [04:32:58]execute_cgi path=json_proto method=POST [04:32:58]POST find Content-Length [04:32:58]Host: 172.17.51.3:8080 [04:32:58]Content-Length: 751 [04:32:58]Content-Type: application/json [04:32:58] [04:32:58]POST finish read [04:32:58]Found Content-Length = 751 [04:32:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342617", "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" : 0.00, "quantity" : 45.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\u000A30138319", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:32:58]execute_script... [04:32: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)342617", "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" : 0.00, "quantity" : 45.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\u000A30138319", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:32:58]POST & json_proto [04:32:58]process_json_proto [04:32:58]json parsed OK: [04:32:58]protocol is kg_v1.0 [04:32:58]action value=close_receipt [04:32:58]process_action close_receipt [04:32:58]cmd_close_receipt [04:32:58]MH_GetDate [04:32:58]Write to MH i2c: F0 00 00 16 64 69 [04:32:58]Write i2c OK [04:32:58]MH_I2C_Read... [04:32:58]Read from MH i2c: F0 [04:32:58]MH_I2C_Read... [04:32:58]Read from MH i2c: F0 09 00 [04:32:58]MH_I2C_Read... [04:32:58]Read from MH i2c: F0 09 00 16 64 00 02 88 14 67 04 C1 95 66 37 [04:32:58]GetLastDocTimeStamp 1729398578 [04:32:58]current date 1729398786 [04:32:58]FM_GetShiftState [04:32:58]SAM_PROTO_GetShiftState [04:32:58]wFMCommunicate request_size=4 [04:32:58]MH_SAM_APDU [04:32:58]CAPDU: 80 13 01 00 [04:32:58]Write to MH i2c: E2 08 00 17 64 80 13 01 00 00 00 00 00 F8 [04:32:58]Write i2c OK [04:32:58]MH_I2C_Read... [04:32:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:32:58]Read from MH i2c: E2 [04:32:58]MH_I2C_Read... [04:32:58]Read from MH i2c: E2 0E 00 [04:32:58]MH_I2C_Read... [04:32:58]Read from MH i2c: E2 0E 00 17 64 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 DE [04:32:58]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [04:32:58]wFMCommunicate OK [04:32:58]SAM_PROTO_GetShiftState done [04:32:58]FM_GetShiftState done [04:32:58]opened in 1729384718 [04:32:58]opened+sec_in_day 1729471118 [04:32:58]quantity*price = 0 [04:32:58]sum+1 = 1 [04:32:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 10 20.10.2024 04:33 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30138319 ФМ: 0000000002094219 ФД: 30228 ФПД: 192999195967580 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T043306&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30228&fm=192999195967580&tin=02508201610067®Number=0000000000186857&sum=0 [04:33:00]StoreToDocumentArchive [04:33:00]shift 114 fd 30228 [04:33:00]save to /storage/0114/doc_00030228 [04:33:00]save last doc name /storage/0114/doc_00030228 to /storage/kkm_last_doc_name [04:33:00]save OK [04:33:00]Clear old archive folders... [04:33:00]ProcessDocumentItem done err = 0, tmpTLVsize=248 [04:33:00]tlvbuf is 00AD6350 [04:33:00]SAM_PROTO_ClearQueue [04:33:00]wFMCommunicate request_size=4 [04:33:00]MH_SAM_APDU [04:33:00]CAPDU: 80 09 00 00 [04:33:00]Write to MH i2c: E2 08 00 24 64 80 09 00 00 00 00 00 00 FA [04:33:00]Write i2c OK [04:33:00]MH_I2C_Read... [04:33:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:33:00]Read from MH i2c: E2 [04:33:00]MH_I2C_Read... [04:33:00]Read from MH i2c: E2 03 00 [04:33:00]MH_I2C_Read... [04:33:00]Read from MH i2c: E2 03 00 24 64 00 90 00 FC [04:33:00]RAPDU: 90 00 [04:33:00]wFMCommunicate OK [04:33:00]SAM_PROTO_ClearQueue done [04:33:00]KKMCreateOFDPacket [04:33:00]OFDProtocolAddRootSTLVToBuf [04:33:00]FM_MakeSignedData [04:33:00]FM_MakeSignedData [04:33:00]SAM_PROTO_SignData [04:33:00]wFMCommunicate request_size=4 [04:33:00]MH_SAM_APDU [04:33:00]CAPDU: 80 0D 01 02 [04:33:00]Write to MH i2c: E2 08 00 25 64 80 0D 01 02 00 00 00 00 02 [04:33:00]Write i2c OK [04:33:00]MH_I2C_Read... [04:33:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:33:00]Read from MH i2c: E2 [04:33:00]MH_I2C_Read... [04:33:00]Read from MH i2c: E2 03 00 [04:33:00]MH_I2C_Read... [04:33:00]Read from MH i2c: E2 03 00 25 64 00 90 00 FD [04:33:00]RAPDU: 90 00 [04:33:00]wFMCommunicate OK [04:33:00]wFMCommunicate request_size=255 [04:33:00]MH_SAM_APDU [04:33: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 C8 AF 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 0A 00 00 00 F4 03 04 00 02 88 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 AF 88 20 84 [04:33:00]Write to MH i2c: E2 02 01 26 64 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 AF 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 0A 00 00 00 F4 03 04 00 02 88 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 AF 88 20 84 00 00 BE [04:33:00]Write i2c OK [04:33:00]MH_I2C_Read... [04:33:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:33:00]Read from MH i2c: E2 [04:33:00]MH_I2C_Read... [04:33:00]Read from MH i2c: E2 03 00 [04:33:00]MH_I2C_Read... [04:33:00]Read from MH i2c: E2 03 00 26 64 00 90 00 FE [04:33:00]RAPDU: 90 00 [04:33:00]wFMCommunicate OK [04:33:00]wFMCommunicate request_size=7 [04:33:00]MH_SAM_APDU [04:33:00]CAPDU: 80 0D 02 02 02 80 5C [04:33:00]Write to MH i2c: E2 0A 00 27 64 80 0D 02 02 02 00 80 5C 00 00 E5 [04:33:00]Write i2c OK [04:33:00]MH_I2C_Read... [04:33:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:33:00]Read from MH i2c: E2 [04:33:00]MH_I2C_Read... [04:33:00]Read from MH i2c: E2 03 00 [04:33:00]MH_I2C_Read... [04:33:00]Read from MH i2c: E2 03 00 27 64 00 90 00 FF [04:33:00]RAPDU: 90 00 [04:33:00]wFMCommunicate OK [04:33:00]wFMCommunicate request_size=4 [04:33:00]MH_SAM_APDU [04:33:00]CAPDU: 80 0D 03 02 [04:33:00]Write to MH i2c: E2 08 00 28 64 80 0D 03 02 00 00 00 00 07 [04:33:00]Write i2c OK [04:33:00]MH_I2C_Read... [04:33:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:33:00]Read from MH i2c: E2 [04:33:00]MH_I2C_Read... [04:33:00]Read from MH i2c: E2 0B 00 [04:33:00]MH_I2C_Read... [04:33:00]Read from MH i2c: E2 0B 00 28 64 00 9D 5D C1 C6 8C 09 9D 77 90 00 32 [04:33:00]RAPDU: 9D 5D C1 C6 8C 09 9D 77 90 00 [04:33:00]wFMCommunicate OK [04:33:00]SAM_PROTO_SignData done [04:33:00]FM_MakeSignedData done [04:33:00]CreateOFDProtocolMessage [04:33:00]wFMCommunicate request_size=4 [04:33:00]MH_SAM_APDU [04:33:00]CAPDU: 80 11 00 00 [04:33:00]Write to MH i2c: E2 08 00 29 64 80 11 00 00 00 00 00 00 07 [04:33:00]Write i2c OK [04:33:00]MH_I2C_Read... [04:33:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:33:00]Read from MH i2c: E2 [04:33:00]MH_I2C_Read... [04:33:00]Read from MH i2c: E2 17 00 [04:33:00]MH_I2C_Read... [04:33:00]Read from MH i2c: E2 17 00 29 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 55 [04:33:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [04:33:00]wFMCommunicate OK [04:33:00]CreateOFDProtocolMessage done [04:33:00]OFDSenderStorePacket 30228 [04:33:00]StoreOFDPacket docnum=30228 [04:33: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 65 A3 04 01 8A 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 C8 AF 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 0A 00 00 00 F4 03 04 00 02 88 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 AF 88 20 84 80 5C 9D 5D C1 C6 8C 09 9D 77 [04:33:00]CheckFolder [04:33:00]dirname=/storage/ofd_packets [04:33:00]CheckFolder done [04:33:00]ProducePacketName [04:33:00]name=ofd_packets/00030228 [04:33:00]NVStorageSaveData ofd_packets/00030228 [04:33:00]File name is /storage/ofd_packets/00030228 [04:33:00]Write 298 bytes [04:33:00]NVStorageSaveData done [04:33:00]OFDSenderStorePacket done [04:33:00]KKMCreateOFDPacket done [04:33:00]NVStorageSaveData kkm_last_timestamp [04:33:00]File name is /storage/kkm_last_timestamp [04:33:00]Write 4 bytes [04:33:00]NVStorageSaveData done [04:33:00]ExternCall_PrintAddStr [04:33:00]wPrintStart [04:33:00]Write to MH i2c: 01 00 00 2A 64 8E [04:33:00]Write i2c OK [04:33:00]MH_I2C_Read... [04:33:00]Read from MH i2c: 01 [04:33:00]MH_I2C_Read... [04:33:00]Read from MH i2c: 01 07 00 [04:33:00]MH_I2C_Read... [04:33:00]Read from MH i2c: 01 07 00 2A 64 00 00 00 00 00 FF 0F A3 [04:33:00]RasterBufferAndPrint [04:33:00]line Счет N : (1)342617 [04:33:00]line ИНН: 02508201610067 [04:33:00]line Контрольно-Кассовый Чек [04:33:00]line ПРОДАЖА [04:33:00]line ТРК (МРК, ГНК) : 34 [04:33:00]line Товар: 2710194210 [04:33:00]line ДТ-К-2 [04:33:00]line 45.000 * 0.00 [04:33:00]line = 0.00 [04:33:00]line НДС 12% НСП 1% [04:33:00]line > о реализуемом товаре [04:33:00]line ИТОГО: 0.00 [04:33:00]line НСП 1% : 0.00 [04:33:00]line НДС 12% : 0.00 [04:33:00]line Наличными: 0.00 [04:33:00]line Безнал.: 0.00 [04:33:00]line Место: АЗС № 78 "Партнер Нефть" [04:33:00]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [04:33:00]line СНО: Общий режим [04:33:00]line Чек 10 20.10.2024 04:33 [04:33:00]line Смена: 114 ФФД: 1.0 [04:33:00]line ЗНМ: 0300000137 [04:33:00]line РНМ: 0000000000186857 [04:33:00]line Версия ККМ: v1.0 [04:33:00]line Талоны: ТК ГПНА Online [04:33:00]line 30138319 [04:33:00]line ФМ: 0000000002094219 [04:33:00]line ФД: 30228 [04:33:00]line ФПД: 192999195967580 [04:33:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T043306&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30228&fm=192999195967580&tin=02508201610067®Number=0000000000186857&sum=0 [04:33:00]OFD Sender: Processing packet 30228 [packets to send 10, broken 9] [04:33:00]ProducePacketName [04:33:00]name=ofd_packets/00030228 [04:33:00]OFD Sender: To server: pG, [04:33:00]CommunicateWithHost lk.salyk.kg:30040 [04:33:00]ConnectInit lk.salyk.kg [04:33:00]written 0, free lines is 4095 [04:33:00]Connected sock=10 [04:33: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 65 A3 04 01 8A 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 C8 AF 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 0A 00 00 00 F4 03 04 00 02 88 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 AF 88 20 84 80 5C 9D 5D C1 C6 8C 09 9D 77 [04:33: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 68 64 47 00 86 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 14 76 00 00 F4 03 04 00 87 32 14 67 B6 04 01 00 00 F9 25 64 55 F1 E9 77 6F [04:33:01]CommunicateWithHost err = 0 [04:33:01]CheckOFDResponse [04:33:01]1017 (14) - 77093643461234 [04:33:01]1041 (16) - 0000000002094219 [04:33:01]1040 (4) - 30228 [04:33:01]1012 (4) - 19.10.2024 22:28 [04:33:01]1206 (1) - 0 [04:33:01]OFD Sender: Remove packet 30228 [04:33:01]ProducePacketName [04:33:01]name=ofd_packets/00030228 [04:33:01]NVStorageDeleteData [04:33:01]Write to MH i2c: 01 00 00 54 64 B8 [04:33:01]Write i2c OK [04:33:01]MH_I2C_Read... [04:33:01]Read from MH i2c: 01 [04:33:01]MH_I2C_Read... [04:33:01]Read from MH i2c: 01 07 00 [04:33:01]MH_I2C_Read... [04:33:01]Read from MH i2c: 01 07 00 54 64 00 00 00 00 00 FD 0C C8 [04:33:01]RasterBufferAndPrint [04:33:01]line [04:33:01]line [04:33:01]line [04:33:01]line [04:33:01]line [04:33:01]written 0, free lines is 3331 [04:33:01]MH_Cut [04:33:01]Write to MH i2c: D1 01 00 5B 64 01 91 [04:33:01]Write i2c OK [04:33:01]MH_I2C_Read... [04:33:01]Read from MH i2c: D1 [04:33:01]MH_I2C_Read... [04:33:01]Read from MH i2c: D1 01 00 [04:33:01]MH_I2C_Read... [04:33:01]Read from MH i2c: D1 01 00 5B 64 00 90 [04:33:01]Write to MH i2c: 01 00 00 5C 64 C0 [04:33:01]Write i2c OK [04:33:01]MH_I2C_Read... [04:33:01]OFD Sender: No OFD packet to send [04:33:01]*** Cut start [04:33:01]*** Partial cut [04:33:01]*** CUTSNS_PIN = 1 [04:33:02]*** CUTSNS_PIN = 0 [04:33:02]*** Brake cut motor [04:33:02]Read from MH i2c: 01 [04:33:02]MH_I2C_Read... [04:33:02]*** Stop cut motor [04:33:02]*** Cut end [04:33:02]Read from MH i2c: 01 07 00 [04:33:02]MH_I2C_Read... [04:33:02]Read from MH i2c: 01 07 00 5C 64 00 00 00 00 00 FF 0F D5 [04:33:02]process_action close_receipt done [04:33:02]requested_data is exist [04:33:02]produce_requested_data [04:33:02]requested_item fm.sn is exist - process it [04:33:02]wFMCommunicate request_size=4 [04:33:02]MH_SAM_APDU [04:33:02]CAPDU: 80 11 00 00 [04:33:02]Write to MH i2c: E2 08 00 5D 64 80 11 00 00 00 00 00 00 3B [04:33:02]Write i2c OK [04:33:02]MH_I2C_Read... [04:33:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:33:02]Read from MH i2c: E2 [04:33:02]MH_I2C_Read... [04:33:02]Read from MH i2c: E2 17 00 [04:33:02]MH_I2C_Read... [04:33:02]Read from MH i2c: E2 17 00 5D 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 89 [04:33:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [04:33:02]wFMCommunicate OK [04:33:02]requested_item fd.num is exist - process it [04:33:02]SAM_PROTO_GetFieldsCounters [04:33:02]wFMCommunicate request_size=4 [04:33:02]MH_SAM_APDU [04:33:02]CAPDU: 80 13 00 00 [04:33:02]Write to MH i2c: E2 08 00 5E 64 80 13 00 00 00 00 00 00 3E [04:33:02]Write i2c OK [04:33:02]MH_I2C_Read... [04:33:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:33:02]Read from MH i2c: E2 [04:33:02]MH_I2C_Read... [04:33:02]Read from MH i2c: E2 62 00 [04:33:02]MH_I2C_Read... [04:33:02]Read from MH i2c: E2 62 00 5E 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 76 00 00 0E 04 04 00 72 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 7E [04:33: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 14 76 00 00 0E 04 04 00 72 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:33:02]wFMCommunicate OK [04:33:02]SAM_PROTO_GetFieldsCounters done [04:33:02]requested_item shift.num is exist - process it [04:33:02]requested_item shift.opened is exist - process it [04:33:02]req_shift_opened [04:33:02]FM_GetShiftState [04:33:02]SAM_PROTO_GetShiftState [04:33:02]wFMCommunicate request_size=4 [04:33:02]MH_SAM_APDU [04:33:02]CAPDU: 80 13 01 00 [04:33:02]Write to MH i2c: E2 08 00 5F 64 80 13 01 00 00 00 00 00 40 [04:33:02]Write i2c OK [04:33:02]MH_I2C_Read... [04:33:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:33:02]Read from MH i2c: E2 [04:33:02]MH_I2C_Read... [04:33:02]Read from MH i2c: E2 0E 00 [04:33:02]MH_I2C_Read... [04:33:02]Read from MH i2c: E2 0E 00 5F 64 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 26 [04:33:02]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [04:33:02]wFMCommunicate OK [04:33:02]SAM_PROTO_GetShiftState done [04:33:02]FM_GetShiftState done [04:33:02]req_shift_opened done [04:33:02]requested_item shift.open_date is exist - process it [04:33:02]req_shift_open_date [04:33:02]req_shift_open_date done [04:33:02]produce_requested_data done [04:33:02]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30228,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [04:33:02]process_action_free close_receipt [04:33:02]json_value_free [04:33:02]json_value_free done [04:33:02]process_json_proto returns [04:33:02]Send response to host [04:33:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30228,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [04:33:02]free response buf [04:33:02]execute_script done [04:33:02]execute_script returns [04:33:02]free content buf [04:33:02]Sock 9.Close socket [04:33:02]Sock 9.Thread stoped [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:26]OFD Sender: No OFD packet to send [04:39:31]OFD Sender: No OFD packet to send [04:39:36]OFD Sender: No OFD packet to send [04:39:41]OFD Sender: No OFD packet to send [04:39:46]OFD Sender: No OFD packet to send [04:39:51]OFD Sender: No OFD packet to send [04:39:56]OFD Sender: No OFD packet to send [04:40:01]OFD Sender: No OFD packet to send [04:40:06]OFD Sender: No OFD packet to send [04:40:11]OFD Sender: No OFD packet to send [04:40:16]OFD Sender: No OFD packet to send [04:40:21]OFD Sender: No OFD packet to send [04:40:26]OFD Sender: No OFD packet to send [04:40:31]OFD Sender: No OFD packet to send [04:40:36]OFD Sender: No OFD packet to send [04:40:41]OFD Sender: No OFD packet to send [04:40:46]OFD Sender: No OFD packet to send [04:40:51]OFD Sender: No OFD packet to send [04:40: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:32]OFD Sender: No OFD packet to send [04:58:37]OFD Sender: No OFD packet to send [04:58:42]OFD Sender: No OFD packet to send [04:58:47]OFD Sender: No OFD packet to send [04:58:52]OFD Sender: No OFD packet to send [04:58:57]OFD Sender: No OFD packet to send [04:59:02]OFD Sender: No OFD packet to send [04:59:07]OFD Sender: No OFD packet to send [04:59:12]OFD Sender: No OFD packet to send [04:59:17]OFD Sender: No OFD packet to send [04:59:22]OFD Sender: No OFD packet to send [04:59:27]OFD Sender: No OFD packet to send [04:59:32]OFD Sender: No OFD packet to send [04:59:37]OFD Sender: No OFD packet to send [04:59:42]OFD Sender: No OFD packet to send [04:59:47]OFD Sender: No OFD packet to send [04:59:52]OFD Sender: No OFD packet to send [04:59:57]OFD Sender: No OFD packet to send [05:00:02]OFD Sender: No OFD packet to send [05:00:07]OFD Sender: No OFD packet to send [05:00:12]OFD Sender: No OFD packet to send [05:00:17]OFD Sender: No OFD packet to send [05:00:22]OFD Sender: No OFD packet to send [05:00:27]OFD Sender: No OFD packet to send [05:00:32]OFD Sender: No OFD packet to send [05:00:37]OFD Sender: No OFD packet to send [05:00:42]OFD Sender: No OFD packet to send [05:00:47]OFD Sender: No OFD packet to send [05:00:52]OFD Sender: No OFD packet to send [05:00:57]OFD Sender: No OFD packet to send [05:01:02]OFD Sender: No OFD packet to send [05:01:07]OFD Sender: No OFD packet to send [05:01:12]OFD Sender: No OFD packet to send [05:01:17]OFD Sender: No OFD packet to send [05:01:22]OFD Sender: No OFD packet to send [05:01:27]OFD Sender: No OFD packet to send [05:01:32]OFD Sender: No OFD packet to send [05:01:37]OFD Sender: No OFD packet to send [05:01:42]OFD Sender: No OFD packet to send [05:01:47]OFD Sender: No OFD packet to send [05:01:52]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:53]OFD Sender: No OFD packet to send [05:02:58]OFD Sender: No OFD packet to send [05:03:03]OFD Sender: No OFD packet to send [05:03:08]OFD Sender: No OFD packet to send [05:03:13]OFD Sender: No OFD packet to send [05:03:18]OFD Sender: No OFD packet to send [05:03:23]OFD Sender: No OFD packet to send [05:03:28]OFD Sender: No OFD packet to send [05:03:33]OFD Sender: No OFD packet to send [05:03:38]OFD Sender: No OFD packet to send [05:03:43]OFD Sender: No OFD packet to send [05:03:48]OFD Sender: No OFD packet to send [05:03:53]OFD Sender: No OFD packet to send [05:03:58]OFD Sender: No OFD packet to send [05:04:03]OFD Sender: No OFD packet to send [05:04:08]OFD Sender: No OFD packet to send [05:04:13]OFD Sender: No OFD packet to send [05:04:18]OFD Sender: No OFD packet to send [05:04:23]OFD Sender: No OFD packet to send [05:04:28]OFD Sender: No OFD packet to send [05:04:33]OFD Sender: No OFD packet to send [05:04:38]OFD Sender: No OFD packet to send [05:04:43]OFD Sender: No OFD packet to send [05:04:48]OFD Sender: No OFD packet to send [05:04:53]OFD Sender: No OFD packet to send [05:04:58]OFD Sender: No OFD packet to send [05:05:03]OFD Sender: No OFD packet to send [05:05:08]OFD Sender: No OFD packet to send [05:05:13]OFD Sender: No OFD packet to send [05:05:18]OFD Sender: No OFD packet to send [05:05:23]OFD Sender: No OFD packet to send [05:05:28]OFD Sender: No OFD packet to send [05:05:33]OFD Sender: No OFD packet to send [05:05:38]OFD Sender: No OFD packet to send [05:05:43]OFD Sender: No OFD packet to send [05:05:48]OFD Sender: No OFD packet to send [05:05:53]OFD Sender: No OFD packet to send [05:05:58]OFD Sender: No OFD packet to send [05:06:03]OFD Sender: No OFD packet to send [05:06:08]OFD Sender: No OFD packet to send [05:06:13]OFD Sender: No OFD packet to send [05:06:18]OFD Sender: No OFD packet to send [05:06:23]OFD Sender: No OFD packet to send [05:06:28]OFD Sender: No OFD packet to send [05:06:33]OFD Sender: No OFD packet to send [05:06:38]OFD Sender: No OFD packet to send [05:06:43]OFD Sender: No OFD packet to send [05:06:48]OFD Sender: No OFD packet to send [05:06:53]OFD Sender: No OFD packet to send [05:06:58]OFD Sender: No OFD packet to send [05:07:03]OFD Sender: No OFD packet to send [05:07:08]OFD Sender: No OFD packet to send [05:07:13]OFD Sender: No OFD packet to send [05:07:18]OFD Sender: No OFD packet to send [05:07:23]OFD Sender: No OFD packet to send [05:07:28]OFD Sender: No OFD packet to send [05:07:33]OFD Sender: No OFD packet to send [05:07:38]OFD Sender: No OFD packet to send [05:07:43]OFD Sender: No OFD packet to send [05:07:48]OFD Sender: No OFD packet to send [05:07:53]OFD Sender: No OFD packet to send [05:07:58]OFD Sender: No OFD packet to send [05:08:03]OFD Sender: No OFD packet to send [05:08:08]OFD Sender: No OFD packet to send [05:08:13]OFD Sender: No OFD packet to send [05:08:18]OFD Sender: No OFD packet to send [05:08:23]OFD Sender: No OFD packet to send [05:08:28]OFD Sender: No OFD packet to send [05:08:33]OFD Sender: No OFD packet to send [05:08:38]OFD Sender: No OFD packet to send [05:08:43]OFD Sender: No OFD packet to send [05:08:48]OFD Sender: No OFD packet to send [05:08:53]OFD Sender: No OFD packet to send [05:08:58]OFD Sender: No OFD packet to send [05:09:03]OFD Sender: No OFD packet to send [05:09:08]OFD Sender: No OFD packet to send [05:09:13]OFD Sender: No OFD packet to send [05:09:18]OFD Sender: No OFD packet to send [05:09:23]OFD Sender: No OFD packet to send [05:09:28]OFD Sender: No OFD packet to send [05:09:33]OFD Sender: No OFD packet to send [05:09:38]OFD Sender: No OFD packet to send [05:09:43]OFD Sender: No OFD packet to send [05:09:48]OFD Sender: No OFD packet to send [05:09:53]OFD Sender: No OFD packet to send [05:09:58]OFD Sender: No OFD packet to send [05:10:03]OFD Sender: No OFD packet to send [05:10:08]OFD Sender: No OFD packet to send [05:10:13]OFD Sender: No OFD packet to send [05:10:18]OFD Sender: No OFD packet to send [05:10:23]OFD Sender: No OFD packet to send [05:10:28]OFD Sender: No OFD packet to send [05:10:33]OFD Sender: No OFD packet to send [05:10:38]OFD Sender: No OFD packet to send [05:10:43]OFD Sender: No OFD packet to send [05:10:48]OFD Sender: No OFD packet to send [05:10:53]OFD Sender: No OFD packet to send [05:10:58]OFD Sender: No OFD packet to send [05:11:03]OFD Sender: No OFD packet to send [05:11:08]OFD Sender: No OFD packet to send [05:11:13]OFD Sender: No OFD packet to send [05:11:18]OFD Sender: No OFD packet to send [05:11:23]OFD Sender: No OFD packet to send [05:11:28]OFD Sender: No OFD packet to send [05:11:33]OFD Sender: No OFD packet to send [05:11:38]OFD Sender: No OFD packet to send [05:11:43]OFD Sender: No OFD packet to send [05:11:48]OFD Sender: No OFD packet to send [05:11:53]OFD Sender: No OFD packet to send [05:11:58]OFD Sender: No OFD packet to send [05:12:03]OFD Sender: No OFD packet to send [05:12:08]OFD Sender: No OFD packet to send [05:12:13]OFD Sender: No OFD packet to send [05:12:18]OFD Sender: No OFD packet to send [05:12:23]OFD Sender: No OFD packet to send [05:12:28]OFD Sender: No OFD packet to send [05:12:33]OFD Sender: No OFD packet to send [05:12:38]OFD Sender: No OFD packet to send [05:12:43]OFD Sender: No OFD packet to send [05:12:48]OFD Sender: No OFD packet to send [05:12:53]accept exits with 7 [05:12:53]New connection [05:12:53]New thread 3067370852 created [05:12:53]Thread 3067514212 joined [05:12:53]Waiting for new connection... [05:12:53] Sock 7.Parse request [05:12:53]Sock 7.Check first char [05:12:53]Sock 7.First char is OK [05:12:53]request: POST /json_proto HTTP/1.0 [05:12:53]Method: POST [05:12:53]URL: /json_proto [05:12:53]Method is POST - this is cgi request [05:12:53]url: /json_proto [05:12:53]query_string will be loaded in cgi processing [05:12:53]execute_cgi json_proto POST (null) [05:12:53]execute_cgi path=json_proto method=POST [05:12:53]POST find Content-Length [05:12:53]Host: 172.17.51.3:8080 [05:12:53]Content-Length: 682 [05:12:53]Content-Type: application/json [05:12:53] [05:12:53]POST finish read [05:12:53]Found Content-Length = 682 [05:12:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342618", "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" ] } } [05:12:53]execute_script... [05:12: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)342618", "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" ] } } [05:12:53]POST & json_proto [05:12:53]process_json_proto [05:12:53]json parsed OK: [05:12:53]protocol is kg_v1.0 [05:12:53]action value=close_receipt [05:12:53]process_action close_receipt [05:12:53]cmd_close_receipt [05:12:53]MH_GetDate [05:12:53]Write to MH i2c: F0 00 00 60 64 B3 [05:12:53]Write i2c OK [05:12:53]MH_I2C_Read... [05:12:53]Read from MH i2c: F0 [05:12:53]MH_I2C_Read... [05:12:53]Read from MH i2c: F0 09 00 [05:12:53]MH_I2C_Read... [05:12:53]Read from MH i2c: F0 09 00 60 64 00 5C 91 14 67 04 C1 95 66 E4 [05:12:53]GetLastDocTimeStamp 1729398786 [05:12:53]current date 1729401180 [05:12:53]FM_GetShiftState [05:12:53]SAM_PROTO_GetShiftState [05:12:53]wFMCommunicate request_size=4 [05:12:53]MH_SAM_APDU [05:12:53]CAPDU: 80 13 01 00 [05:12:53]Write to MH i2c: E2 08 00 61 64 80 13 01 00 00 00 00 00 42 [05:12:53]Write i2c OK [05:12:53]MH_I2C_Read... [05:12:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:12:53]Read from MH i2c: E2 [05:12:53]MH_I2C_Read... [05:12:53]Read from MH i2c: E2 0E 00 [05:12:53]MH_I2C_Read... [05:12:53]Read from MH i2c: E2 0E 00 61 64 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 28 [05:12:53]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [05:12:53]wFMCommunicate OK [05:12:53]SAM_PROTO_GetShiftState done [05:12:53]FM_GetShiftState done [05:12:53]opened in 1729384718 [05:12:53]opened+sec_in_day 1729471118 [05:12:53]quantity*price = 100021 [05:12:53]sum+1 = 100023 [05:12:53]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 СНО: Общий режим Чек 11 20.10.2024 05:13 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30229 ФПД: 126580679365214 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T051300&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30229&fm=126580679365214&tin=02508201610067®Number=0000000000186857&sum=100000 [05:12:54]StoreToDocumentArchive [05:12:54]shift 114 fd 30229 [05:12:54]save to /storage/0114/doc_00030229 [05:12:54]save last doc name /storage/0114/doc_00030229 to /storage/kkm_last_doc_name [05:12:54]save OK [05:12:54]Clear old archive folders... [05:12:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [05:12:54]tlvbuf is 00C878F0 [05:12:54]SAM_PROTO_ClearQueue [05:12:54]wFMCommunicate request_size=4 [05:12:54]MH_SAM_APDU [05:12:54]CAPDU: 80 09 00 00 [05:12:54]Write to MH i2c: E2 08 00 6E 64 80 09 00 00 00 00 00 00 44 [05:12:54]Write i2c OK [05:12:54]MH_I2C_Read... [05:12:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:12:54]Read from MH i2c: E2 [05:12:54]MH_I2C_Read... [05:12:54]Read from MH i2c: E2 03 00 [05:12:54]MH_I2C_Read... [05:12:54]Read from MH i2c: E2 03 00 6E 64 00 90 00 46 [05:12:54]RAPDU: 90 00 [05:12:54]wFMCommunicate OK [05:12:54]SAM_PROTO_ClearQueue done [05:12:54]KKMCreateOFDPacket [05:12:54]OFDProtocolAddRootSTLVToBuf [05:12:54]FM_MakeSignedData [05:12:54]FM_MakeSignedData [05:12:54]SAM_PROTO_SignData [05:12:54]wFMCommunicate request_size=4 [05:12:54]MH_SAM_APDU [05:12:54]CAPDU: 80 0D 01 02 [05:12:54]Write to MH i2c: E2 08 00 6F 64 80 0D 01 02 00 00 00 00 4C [05:12:54]Write i2c OK [05:12:54]MH_I2C_Read... [05:12:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:12:54]Read from MH i2c: E2 [05:12:54]MH_I2C_Read... [05:12:54]Read from MH i2c: E2 03 00 [05:12:54]MH_I2C_Read... [05:12:54]Read from MH i2c: E2 03 00 6F 64 00 90 00 47 [05:12:54]RAPDU: 90 00 [05:12:54]wFMCommunicate OK [05:12:54]wFMCommunicate request_size=255 [05:12:54]MH_SAM_APDU [05:12:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 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 0B 00 00 00 F4 03 04 00 5C 91 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 73 [05:12:54]Write to MH i2c: E2 02 01 70 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 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 0B 00 00 00 F4 03 04 00 5C 91 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 73 00 00 DE [05:12:54]Write i2c OK [05:12:54]MH_I2C_Read... [05:12:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:12:54]Read from MH i2c: E2 [05:12:54]MH_I2C_Read... [05:12:54]Read from MH i2c: E2 03 00 [05:12:54]MH_I2C_Read... [05:12:54]Read from MH i2c: E2 03 00 70 64 00 90 00 48 [05:12:54]RAPDU: 90 00 [05:12:54]wFMCommunicate OK [05:12:54]wFMCommunicate request_size=10 [05:12:54]MH_SAM_APDU [05:12:54]CAPDU: 80 0D 02 02 05 1F DC 6D D2 5E [05:12:54]Write to MH i2c: E2 0D 00 71 64 80 0D 02 02 05 00 1F DC 6D D2 5E 00 00 F1 [05:12:54]Write i2c OK [05:12:54]MH_I2C_Read... [05:12:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:12:54]Read from MH i2c: E2 [05:12:54]MH_I2C_Read... [05:12:54]Read from MH i2c: E2 03 00 [05:12:54]MH_I2C_Read... [05:12:54]Read from MH i2c: E2 03 00 71 64 00 90 00 49 [05:12:54]RAPDU: 90 00 [05:12:54]wFMCommunicate OK [05:12:54]wFMCommunicate request_size=4 [05:12:54]MH_SAM_APDU [05:12:54]CAPDU: 80 0D 03 02 [05:12:54]Write to MH i2c: E2 08 00 72 64 80 0D 03 02 00 00 00 00 51 [05:12:54]Write i2c OK [05:12:54]MH_I2C_Read... [05:12:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:12:55]Read from MH i2c: E2 [05:12:55]MH_I2C_Read... [05:12:55]Read from MH i2c: E2 0B 00 [05:12:55]MH_I2C_Read... [05:12:55]Read from MH i2c: E2 0B 00 72 64 00 69 C5 BD F6 3C 9D F9 9E 90 00 A3 [05:12:55]RAPDU: 69 C5 BD F6 3C 9D F9 9E 90 00 [05:12:55]wFMCommunicate OK [05:12:55]SAM_PROTO_SignData done [05:12:55]FM_MakeSignedData done [05:12:55]CreateOFDProtocolMessage [05:12:55]wFMCommunicate request_size=4 [05:12:55]MH_SAM_APDU [05:12:55]CAPDU: 80 11 00 00 [05:12:55]Write to MH i2c: E2 08 00 73 64 80 11 00 00 00 00 00 00 51 [05:12:55]Write i2c OK [05:12:55]MH_I2C_Read... [05:12:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:12:55]Read from MH i2c: E2 [05:12:55]MH_I2C_Read... [05:12:55]Read from MH i2c: E2 17 00 [05:12:55]MH_I2C_Read... [05:12:55]Read from MH i2c: E2 17 00 73 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 9F [05:12:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [05:12:55]wFMCommunicate OK [05:12:55]CreateOFDProtocolMessage done [05:12:55]OFDSenderStorePacket 30229 [05:12:55]StoreOFDPacket docnum=30229 [05:12: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 92 EA 07 01 26 73 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 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 0B 00 00 00 F4 03 04 00 5C 91 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 73 1F DC 6D D2 5E 69 C5 BD F6 3C 9D F9 9E [05:12:55]CheckFolder [05:12:55]dirname=/storage/ofd_packets [05:12:55]CheckFolder done [05:12:55]ProducePacketName [05:12:55]name=ofd_packets/00030229 [05:12:55]NVStorageSaveData ofd_packets/00030229 [05:12:55]File name is /storage/ofd_packets/00030229 [05:12:55]Write 301 bytes [05:12:55]NVStorageSaveData done [05:12:55]OFDSenderStorePacket done [05:12:55]KKMCreateOFDPacket done [05:12:55]NVStorageSaveData kkm_last_timestamp [05:12:55]File name is /storage/kkm_last_timestamp [05:12:55]Write 4 bytes [05:12:55]NVStorageSaveData done [05:12:55]ExternCall_PrintAddStr [05:12:55]wPrintStart [05:12:55]Write to MH i2c: 01 00 00 74 64 D8 [05:12:55]Write i2c OK [05:12:55]MH_I2C_Read... [05:12:55]Read from MH i2c: 01 [05:12:55]MH_I2C_Read... [05:12:55]Read from MH i2c: 01 07 00 [05:12:55]MH_I2C_Read... [05:12:55]Read from MH i2c: 01 07 00 74 64 00 00 00 00 00 FF 0F ED [05:12:55]RasterBufferAndPrint [05:12:55]line Счет N : (1)342618 [05:12:55]line ИНН: 02508201610067 [05:12:55]line Контрольно-Кассовый Чек [05:12:55]line ПРОДАЖА [05:12:55]line ТРК (МРК, ГНК) : 42 [05:12:55]line Товар: 2710124500 [05:12:55]line Аи-95-К-3 [05:12:55]line 13.480 * 74.20 [05:12:55]line = 1000.22 [05:12:55]line НДС 12% НСП 1% [05:12:55]line > о реализуемом товаре [05:12:55]line ОКРУГЛЕНИЕ: -0.22 [05:12:55]line ИТОГО: 1000.00 [05:12:55]line Внесено: 1000.00 [05:12:55]line СДАЧА: 0.00 [05:12:55]line НСП 1% : 8.85 [05:12:55]line НДС 12% : 106.22 [05:12:55]line Наличными: 1000.00 [05:12:55]line Безнал.: 0.00 [05:12:55]line Место: АЗС № 78 "Партнер Нефть" [05:12:55]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [05:12:55]line СНО: Общий режим [05:12:55]line Чек 11 20.10.2024 05:13 [05:12:55]line Смена: 114 ФФД: 1.0 [05:12:55]line ЗНМ: 0300000137 [05:12:55]line РНМ: 0000000000186857 [05:12:55]line Версия ККМ: v1.0 [05:12:55]line ФМ: 0000000002094219 [05:12:55]line ФД: 30229 [05:12:55]line ФПД: 126580679365214 [05:12:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T051300&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30229&fm=126580679365214&tin=02508201610067®Number=0000000000186857&sum=100000 [05:12:55]OFD Sender: Processing packet 30229 [packets to send 10, broken 9] [05:12:55]ProducePacketName [05:12:55]name=ofd_packets/00030229 [05:12:55]OFD Sender: To server: pG, [05:12:55]CommunicateWithHost lk.salyk.kg:30040 [05:12:55]ConnectInit lk.salyk.kg [05:12:55]written 0, free lines is 4095 [05:12:55]Connected sock=10 [05:12: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 92 EA 07 01 26 73 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 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 0B 00 00 00 F4 03 04 00 5C 91 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 73 1F DC 6D D2 5E 69 C5 BD F6 3C 9D F9 9E [05:12: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 ED 77 47 00 D5 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 15 76 00 00 F4 03 04 00 E1 3B 14 67 B6 04 01 00 00 05 BC AD 6B 5F 6A 46 CB [05:12:55]CommunicateWithHost err = 0 [05:12:55]CheckOFDResponse [05:12:55]1017 (14) - 77093643461234 [05:12:55]1041 (16) - 0000000002094219 [05:12:55]1040 (4) - 30229 [05:12:55]1012 (4) - 19.10.2024 23:08 [05:12:55]1206 (1) - 0 [05:12:55]OFD Sender: Remove packet 30229 [05:12:55]ProducePacketName [05:12:55]name=ofd_packets/00030229 [05:12:55]NVStorageDeleteData [05:12:55]Write to MH i2c: 01 00 00 9F 64 03 [05:12:55]Write i2c OK [05:12:55]MH_I2C_Read... [05:12:55]Read from MH i2c: 01 [05:12:55]MH_I2C_Read... [05:12:55]Read from MH i2c: 01 07 00 [05:12:55]MH_I2C_Read... [05:12:55]Read from MH i2c: 01 07 00 9F 64 00 00 00 00 00 F0 0C 06 [05:12:55]RasterBufferAndPrint [05:12:55]line [05:12:55]line [05:12:55]line [05:12:55]line [05:12:55]line [05:12:55]written 0, free lines is 3319 [05:12:55]MH_Cut [05:12:55]Write to MH i2c: D1 01 00 A6 64 01 DC [05:12:55]Write i2c OK [05:12:55]MH_I2C_Read... [05:12:55]Read from MH i2c: D1 [05:12:55]MH_I2C_Read... [05:12:55]Read from MH i2c: D1 01 00 [05:12:55]MH_I2C_Read... [05:12:55]Read from MH i2c: D1 01 00 A6 64 00 DB [05:12:55]Write to MH i2c: 01 00 00 A7 64 0B [05:12:55]Write i2c OK [05:12:55]MH_I2C_Read... [05:12:56]OFD Sender: No OFD packet to send [05:12:56]*** Cut start [05:12:56]*** Partial cut [05:12:56]*** CUTSNS_PIN = 1 [05:12:56]*** CUTSNS_PIN = 0 [05:12:56]*** Brake cut motor [05:12:57]Read from MH i2c: 01 [05:12:57]MH_I2C_Read... [05:12:57]*** Stop cut motor [05:12:57]Read from MH i2c: *** Cut end [05:12:57]01 07 00 [05:12:57]MH_I2C_Read... [05:12:57]Read from MH i2c: 01 07 00 A7 64 00 00 00 00 00 FF 0F 20 [05:12:57]process_action close_receipt done [05:12:57]requested_data is exist [05:12:57]produce_requested_data [05:12:57]requested_item fm.sn is exist - process it [05:12:57]wFMCommunicate request_size=4 [05:12:57]MH_SAM_APDU [05:12:57]CAPDU: 80 11 00 00 [05:12:57]Write to MH i2c: E2 08 00 A8 64 80 11 00 00 00 00 00 00 86 [05:12:57]Write i2c OK [05:12:57]MH_I2C_Read... [05:12:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:12:57]Read from MH i2c: E2 [05:12:57]MH_I2C_Read... [05:12:57]Read from MH i2c: E2 17 00 [05:12:57]MH_I2C_Read... [05:12:57]Read from MH i2c: E2 17 00 A8 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 D4 [05: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 [05:12:57]wFMCommunicate OK [05:12:57]requested_item fd.num is exist - process it [05:12:57]SAM_PROTO_GetFieldsCounters [05:12:57]wFMCommunicate request_size=4 [05:12:57]MH_SAM_APDU [05:12:57]CAPDU: 80 13 00 00 [05:12:57]Write to MH i2c: E2 08 00 A9 64 80 13 00 00 00 00 00 00 89 [05:12:57]Write i2c OK [05:12:57]MH_I2C_Read... [05:12:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:12:57]Read from MH i2c: E2 [05:12:57]MH_I2C_Read... [05:12:57]Read from MH i2c: E2 62 00 [05:12:57]MH_I2C_Read... [05:12:57]Read from MH i2c: E2 62 00 A9 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 76 00 00 0E 04 04 00 72 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 CD [05:12: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 15 76 00 00 0E 04 04 00 72 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:12:57]wFMCommunicate OK [05:12:57]SAM_PROTO_GetFieldsCounters done [05:12:57]requested_item shift.num is exist - process it [05:12:57]requested_item shift.opened is exist - process it [05:12:57]req_shift_opened [05:12:57]FM_GetShiftState [05:12:57]SAM_PROTO_GetShiftState [05:12:57]wFMCommunicate request_size=4 [05:12:57]MH_SAM_APDU [05:12:57]CAPDU: 80 13 01 00 [05:12:57]Write to MH i2c: E2 08 00 AA 64 80 13 01 00 00 00 00 00 8B [05:12:57]Write i2c OK [05:12:57]MH_I2C_Read... [05:12:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:12:57]Read from MH i2c: E2 [05:12:57]MH_I2C_Read... [05:12:57]Read from MH i2c: E2 0E 00 [05:12:57]MH_I2C_Read... [05:12:57]Read from MH i2c: E2 0E 00 AA 64 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 71 [05:12:57]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [05:12:57]wFMCommunicate OK [05:12:57]SAM_PROTO_GetShiftState done [05:12:57]FM_GetShiftState done [05:12:57]req_shift_opened done [05:12:57]requested_item shift.open_date is exist - process it [05:12:57]req_shift_open_date [05:12:57]req_shift_open_date done [05:12:57]produce_requested_data done [05:12:57]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30229,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [05:12:57]process_action_free close_receipt [05:12:57]json_value_free [05:12:57]json_value_free done [05:12:57]process_json_proto returns [05:12:57]Send response to host [05:12:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30229,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [05:12:57]free response buf [05:12:57]execute_script done [05:12:57]execute_script returns [05:12:57]free content buf [05:12:57]Sock 7.Close socket [05:12:57]Sock 7.Thread stoped [05:13:01]OFD Sender: No OFD packet to send [05:13:06]OFD Sender: No OFD packet to send [05:13:11]OFD Sender: No OFD packet to send [05:13:16]OFD Sender: No OFD packet to send [05:13:21]OFD Sender: No OFD packet to send [05:13:26]OFD Sender: No OFD packet to send [05:13:31]OFD Sender: No OFD packet to send [05:13:36]OFD Sender: No OFD packet to send [05:13:41]OFD Sender: No OFD packet to send [05:13:46]OFD Sender: No OFD packet to send [05:13:51]OFD Sender: No OFD packet to send [05:13:56]OFD Sender: No OFD packet to send [05:14:01]OFD Sender: No OFD packet to send [05:14:02]accept exits with 9 [05:14:02]New connection [05:14:02]New thread 3067514212 created [05:14:02]Thread 3067370852 joined [05:14:02]Waiting for new connection... [05:14:02] Sock 9.Parse request [05:14:02]Sock 9.Check first char [05:14:02]Sock 9.First char is OK [05:14:02]request: POST /json_proto HTTP/1.0 [05:14:02]Method: POST [05:14:02]URL: /json_proto [05:14:02]Method is POST - this is cgi request [05:14:02]url: /json_proto [05:14:02]query_string will be loaded in cgi processing [05:14:02]execute_cgi json_proto POST (null) [05:14:02]execute_cgi path=json_proto method=POST [05:14:02]POST find Content-Length [05:14:02]Host: 172.17.51.3:8080 [05:14:02]Content-Length: 688 [05:14:02]Content-Type: application/json [05:14:02] [05:14:02]POST finish read [05:14:02]Found Content-Length = 688 [05:14:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342619", "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" ] } } [05:14:02]execute_script... [05:14:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342619", "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" ] } } [05:14:02]POST & json_proto [05:14:02]process_json_proto [05:14:02]json parsed OK: [05:14:02]protocol is kg_v1.0 [05:14:02]action value=close_receipt [05:14:02]process_action close_receipt [05:14:02]cmd_close_receipt [05:14:02]MH_GetDate [05:14:02]Write to MH i2c: F0 00 00 AB 64 FE [05:14:02]Write i2c OK [05:14:02]MH_I2C_Read... [05:14:02]Read from MH i2c: F0 [05:14:02]MH_I2C_Read... [05:14:02]Read from MH i2c: F0 09 00 [05:14:02]MH_I2C_Read... [05:14:02]Read from MH i2c: F0 09 00 AB 64 00 A2 91 14 67 04 C1 95 66 75 [05:14:02]GetLastDocTimeStamp 1729401180 [05:14:02]current date 1729401250 [05:14:02]FM_GetShiftState [05:14:02]SAM_PROTO_GetShiftState [05:14:02]wFMCommunicate request_size=4 [05:14:02]MH_SAM_APDU [05:14:02]CAPDU: 80 13 01 00 [05:14:02]Write to MH i2c: E2 08 00 AC 64 80 13 01 00 00 00 00 00 8D [05:14:02]Write i2c OK [05:14:02]MH_I2C_Read... [05:14:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:14:02]Read from MH i2c: E2 [05:14:02]MH_I2C_Read... [05:14:02]Read from MH i2c: E2 0E 00 [05:14:02]MH_I2C_Read... [05:14:02]Read from MH i2c: E2 0E 00 AC 64 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 73 [05:14:02]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [05:14:02]wFMCommunicate OK [05:14:02]SAM_PROTO_GetShiftState done [05:14:02]FM_GetShiftState done [05:14:02]opened in 1729384718 [05:14:02]opened+sec_in_day 1729471118 [05:14:02]quantity*price = 300076 [05:14:02]sum+1 = 300077 [05:14:02]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 СНО: Общий режим Чек 12 20.10.2024 05:14 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30230 ФПД: 200361805499796 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T051410&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30230&fm=200361805499796&tin=02508201610067®Number=0000000000186857&sum=300000 [05:14:03]StoreToDocumentArchive [05:14:03]shift 114 fd 30230 [05:14:03]save to /storage/0114/doc_00030230 [05:14:03]save last doc name /storage/0114/doc_00030230 to /storage/kkm_last_doc_name [05:14:03]save OK [05:14:03]Clear old archive folders... [05:14:03]ProcessDocumentItem done err = 0, tmpTLVsize=257 [05:14:03]tlvbuf is 00C17310 [05:14:03]SAM_PROTO_ClearQueue [05:14:03]wFMCommunicate request_size=4 [05:14:03]MH_SAM_APDU [05:14:03]CAPDU: 80 09 00 00 [05:14:03]Write to MH i2c: E2 08 00 B9 64 80 09 00 00 00 00 00 00 8F [05:14:03]Write i2c OK [05:14:03]MH_I2C_Read... [05:14:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:14:03]Read from MH i2c: E2 [05:14:03]MH_I2C_Read... [05:14:03]Read from MH i2c: E2 03 00 [05:14:03]MH_I2C_Read... [05:14:03]Read from MH i2c: E2 03 00 B9 64 00 90 00 91 [05:14:03]RAPDU: 90 00 [05:14:03]wFMCommunicate OK [05:14:03]SAM_PROTO_ClearQueue done [05:14:03]KKMCreateOFDPacket [05:14:03]OFDProtocolAddRootSTLVToBuf [05:14:03]FM_MakeSignedData [05:14:03]FM_MakeSignedData [05:14:03]SAM_PROTO_SignData [05:14:03]wFMCommunicate request_size=4 [05:14:03]MH_SAM_APDU [05:14:03]CAPDU: 80 0D 01 02 [05:14:03]Write to MH i2c: E2 08 00 BA 64 80 0D 01 02 00 00 00 00 97 [05:14:03]Write i2c OK [05:14:03]MH_I2C_Read... [05:14:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:14:03]Read from MH i2c: E2 [05:14:03]MH_I2C_Read... [05:14:03]Read from MH i2c: E2 03 00 [05:14:03]MH_I2C_Read... [05:14:03]Read from MH i2c: E2 03 00 BA 64 00 90 00 92 [05:14:03]RAPDU: 90 00 [05:14:03]wFMCommunicate OK [05:14:03]wFMCommunicate request_size=255 [05:14:03]MH_SAM_APDU [05:14:03]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 0C 00 00 00 F4 03 04 00 A2 91 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 [05:14:03]Write to MH i2c: E2 02 01 BB 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 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 0C 00 00 00 F4 03 04 00 A2 91 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 00 8B [05:14:03]Write i2c OK [05:14:03]MH_I2C_Read... [05:14:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:14:03]Read from MH i2c: E2 [05:14:03]MH_I2C_Read... [05:14:03]Read from MH i2c: E2 03 00 [05:14:03]MH_I2C_Read... [05:14:03]Read from MH i2c: E2 03 00 BB 64 00 90 00 93 [05:14:03]RAPDU: 90 00 [05:14:03]wFMCommunicate OK [05:14:03]wFMCommunicate request_size=16 [05:14:03]MH_SAM_APDU [05:14:03]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 B6 3A 5E 3E 4D 94 [05:14:03]Write to MH i2c: E2 13 00 BC 64 80 0D 02 02 0B 00 00 35 04 06 00 B6 3A 5E 3E 4D 94 00 00 5C [05:14:03]Write i2c OK [05:14:03]MH_I2C_Read... [05:14:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:14:04]Read from MH i2c: E2 [05:14:04]MH_I2C_Read... [05:14:04]Read from MH i2c: E2 03 00 [05:14:04]MH_I2C_Read... [05:14:04]Read from MH i2c: E2 03 00 BC 64 00 90 00 94 [05:14:04]RAPDU: 90 00 [05:14:04]wFMCommunicate OK [05:14:04]wFMCommunicate request_size=4 [05:14:04]MH_SAM_APDU [05:14:04]CAPDU: 80 0D 03 02 [05:14:04]Write to MH i2c: E2 08 00 BD 64 80 0D 03 02 00 00 00 00 9C [05:14:04]Write i2c OK [05:14:04]MH_I2C_Read... [05:14:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:14:04]Read from MH i2c: E2 [05:14:04]MH_I2C_Read... [05:14:04]Read from MH i2c: E2 0B 00 [05:14:04]MH_I2C_Read... [05:14:04]Read from MH i2c: E2 0B 00 BD 64 00 14 0C 0C B4 A3 F1 FA 96 90 00 A1 [05:14:04]RAPDU: 14 0C 0C B4 A3 F1 FA 96 90 00 [05:14:04]wFMCommunicate OK [05:14:04]SAM_PROTO_SignData done [05:14:04]FM_MakeSignedData done [05:14:04]CreateOFDProtocolMessage [05:14:04]wFMCommunicate request_size=4 [05:14:04]MH_SAM_APDU [05:14:04]CAPDU: 80 11 00 00 [05:14:04]Write to MH i2c: E2 08 00 BE 64 80 11 00 00 00 00 00 00 9C [05:14:04]Write i2c OK [05:14:04]MH_I2C_Read... [05:14:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:14:04]Read from MH i2c: E2 [05:14:04]MH_I2C_Read... [05:14:04]Read from MH i2c: E2 17 00 [05:14:04]MH_I2C_Read... [05:14:04]Read from MH i2c: E2 17 00 BE 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 EA [05:14:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [05:14:04]wFMCommunicate OK [05:14:04]CreateOFDProtocolMessage done [05:14:04]OFDSenderStorePacket 30230 [05:14:04]StoreOFDPacket docnum=30230 [05:14: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 15 01 00 00 C3 B0 0D 01 56 E7 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 0C 00 00 00 F4 03 04 00 A2 91 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 B6 3A 5E 3E 4D 94 14 0C 0C B4 A3 F1 FA 96 [05:14:04]CheckFolder [05:14:04]dirname=/storage/ofd_packets [05:14:04]CheckFolder done [05:14:04]ProducePacketName [05:14:04]name=ofd_packets/00030230 [05:14:04]NVStorageSaveData ofd_packets/00030230 [05:14:04]File name is /storage/ofd_packets/00030230 [05:14:04]Write 307 bytes [05:14:04]NVStorageSaveData done [05:14:04]OFDSenderStorePacket done [05:14:04]KKMCreateOFDPacket done [05:14:04]NVStorageSaveData kkm_last_timestamp [05:14:04]File name is /storage/kkm_last_timestamp [05:14:04]Write 4 bytes [05:14:04]NVStorageSaveData done [05:14:04]ExternCall_PrintAddStr [05:14:04]wPrintStart [05:14:04]Write to MH i2c: 01 00 00 BF 64 23 [05:14:04]Write i2c OK [05:14:04]MH_I2C_Read... [05:14:04]Read from MH i2c: 01 [05:14:04]MH_I2C_Read... [05:14:04]Read from MH i2c: 01 07 00 [05:14:04]MH_I2C_Read... [05:14:04]Read from MH i2c: 01 07 00 BF 64 00 00 00 00 00 FF 0F 38 [05:14:04]RasterBufferAndPrint [05:14:04]line Счет N : (1)342619 [05:14:04]line ИНН: 02508201610067 [05:14:04]line Контрольно-Кассовый Чек [05:14:04]line ПРОДАЖА [05:14:04]line ТРК (МРК, ГНК) : 61 [05:14:04]line Товар: 2710194210 [05:14:04]line D-ENERGY Дт-К-2 [05:14:04]line 38.870 * 77.20 [05:14:04]line = 3000.76 [05:14:04]line НДС 12% НСП 1% [05:14:04]line > о реализуемом товаре [05:14:04]line ОКРУГЛЕНИЕ: -0.76 [05:14:04]line ИТОГО: 3000.00 [05:14:04]line Внесено: 3000.00 [05:14:04]line СДАЧА: 0.00 [05:14:04]line НСП 1% : 26.55 [05:14:04]line НДС 12% : 318.66 [05:14:04]line Наличными: 3000.00 [05:14:04]line Безнал.: 0.00 [05:14:04]line Место: АЗС № 78 "Партнер Нефть" [05:14:04]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [05:14:04]line СНО: Общий режим [05:14:04]line Чек 12 20.10.2024 05:14 [05:14:04]line Смена: 114 ФФД: 1.0 [05:14:04]line ЗНМ: 0300000137 [05:14:04]line РНМ: 0000000000186857 [05:14:04]line Версия ККМ: v1.0 [05:14:04]line ФМ: 0000000002094219 [05:14:04]line ФД: 30230 [05:14:04]line ФПД: 200361805499796 [05:14:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T051410&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30230&fm=200361805499796&tin=02508201610067®Number=0000000000186857&sum=300000 [05:14:04]OFD Sender: Processing packet 30230 [packets to send 10, broken 9] [05:14:04]ProducePacketName [05:14:04]name=ofd_packets/00030230 [05:14:04]OFD Sender: To server: pG, [05:14:04]CommunicateWithHost lk.salyk.kg:30040 [05:14:04]ConnectInit lk.salyk.kg [05:14:04]written 0, free lines is 4095 [05:14:04]Connected sock=10 [05:14: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 15 01 00 00 C3 B0 0D 01 56 E7 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 0C 00 00 00 F4 03 04 00 A2 91 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 B6 3A 5E 3E 4D 94 14 0C 0C B4 A3 F1 FA 96 [05:14: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 3D 49 47 00 EC 9D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 16 76 00 00 F4 03 04 00 27 3C 14 67 B6 04 01 00 00 9B 9C 90 43 D2 88 8E E5 [05:14:04]CommunicateWithHost err = 0 [05:14:04]CheckOFDResponse [05:14:04]1017 (14) - 77093643461234 [05:14:04]1041 (16) - 0000000002094219 [05:14:04]1040 (4) - 30230 [05:14:04]1012 (4) - 19.10.2024 23:09 [05:14:04]1206 (1) - 0 [05:14:04]OFD Sender: Remove packet 30230 [05:14:04]ProducePacketName [05:14:04]name=ofd_packets/00030230 [05:14:04]NVStorageDeleteData [05:14:04]Write to MH i2c: 01 00 00 EA 64 4E [05:14:04]Write i2c OK [05:14:04]MH_I2C_Read... [05:14:04]Read from MH i2c: 01 [05:14:04]MH_I2C_Read... [05:14:04]Read from MH i2c: 01 07 00 [05:14:04]MH_I2C_Read... [05:14:04]Read from MH i2c: 01 07 00 EA 64 00 00 00 00 00 F6 0C 57 [05:14:04]RasterBufferAndPrint [05:14:04]line [05:14:04]line [05:14:04]line [05:14:04]line [05:14:04]line [05:14:04]written 0, free lines is 3328 [05:14:04]MH_Cut [05:14:04]Write to MH i2c: D1 01 00 F1 64 01 27 [05:14:04]Write i2c OK [05:14:04]MH_I2C_Read... [05:14:04]Read from MH i2c: D1 [05:14:04]MH_I2C_Read... [05:14:04]Read from MH i2c: D1 01 00 [05:14:04]MH_I2C_Read... [05:14:04]Read from MH i2c: D1 01 00 F1 64 00 26 [05:14:04]Write to MH i2c: 01 00 00 F2 64 56 [05:14:04]Write i2c OK [05:14:04]MH_I2C_Read... [05:14:05]OFD Sender: No OFD packet to send [05:14:05]*** Cut start [05:14:05]*** Partial cut [05:14:05]*** CUTSNS_PIN = 1 [05:14:05]*** CUTSNS_PIN = 0 [05:14:05]*** Brake cut motor [05:14:06]Read from MH i2c: 01 [05:14:06]MH_I2C_Read... [05:14:06]*** Stop cut motor [05:14:06]*** Cut end [05:14:06]Read from MH i2c: 01 07 00 [05:14:06]MH_I2C_Read... [05:14:06]Read from MH i2c: 01 07 00 F2 64 00 00 00 00 00 FF 0F 6B [05:14:06]process_action close_receipt done [05:14:06]requested_data is exist [05:14:06]produce_requested_data [05:14:06]requested_item fm.sn is exist - process it [05:14:06]wFMCommunicate request_size=4 [05:14:06]MH_SAM_APDU [05:14:06]CAPDU: 80 11 00 00 [05:14:06]Write to MH i2c: E2 08 00 F3 64 80 11 00 00 00 00 00 00 D1 [05:14:06]Write i2c OK [05:14:06]MH_I2C_Read... [05:14:06]Read from MH i2c: E2 [05:14:06]MH_I2C_Read... [05:14:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:14:06]Read from MH i2c: E2 17 00 [05:14:06]MH_I2C_Read... [05:14:06]Read from MH i2c: E2 17 00 F3 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 1F [05:14:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [05:14:06]wFMCommunicate OK [05:14:06]requested_item fd.num is exist - process it [05:14:06]SAM_PROTO_GetFieldsCounters [05:14:06]wFMCommunicate request_size=4 [05:14:06]MH_SAM_APDU [05:14:06]CAPDU: 80 13 00 00 [05:14:06]Write to MH i2c: E2 08 00 F4 64 80 13 00 00 00 00 00 00 D4 [05:14:06]Write i2c OK [05:14:06]MH_I2C_Read... [05:14:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:14:06]Read from MH i2c: E2 [05:14:06]MH_I2C_Read... [05:14:06]Read from MH i2c: E2 62 00 [05:14:06]MH_I2C_Read... [05:14:06]Read from MH i2c: E2 62 00 F4 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 76 00 00 0E 04 04 00 72 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 1C [05:14: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 16 76 00 00 0E 04 04 00 72 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 [05:14:06]wFMCommunicate OK [05:14:06]SAM_PROTO_GetFieldsCounters done [05:14:06]requested_item shift.num is exist - process it [05:14:06]requested_item shift.opened is exist - process it [05:14:06]req_shift_opened [05:14:06]FM_GetShiftState [05:14:06]SAM_PROTO_GetShiftState [05:14:06]wFMCommunicate request_size=4 [05:14:06]MH_SAM_APDU [05:14:06]CAPDU: 80 13 01 00 [05:14:06]Write to MH i2c: E2 08 00 F5 64 80 13 01 00 00 00 00 00 D6 [05:14:06]Write i2c OK [05:14:06]MH_I2C_Read... [05:14:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:14:06]Read from MH i2c: E2 [05:14:06]MH_I2C_Read... [05:14:06]Read from MH i2c: E2 0E 00 [05:14:06]MH_I2C_Read... [05:14:06]Read from MH i2c: E2 0E 00 F5 64 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 BC [05:14:06]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [05:14:06]wFMCommunicate OK [05:14:06]SAM_PROTO_GetShiftState done [05:14:06]FM_GetShiftState done [05:14:06]req_shift_opened done [05:14:06]requested_item shift.open_date is exist - process it [05:14:06]req_shift_open_date [05:14:06]req_shift_open_date done [05:14:06]produce_requested_data done [05:14:06]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30230,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [05:14:06]process_action_free close_receipt [05:14:06]json_value_free [05:14:06]json_value_free done [05:14:06]process_json_proto returns [05:14:06]Send response to host [05:14:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30230,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [05:14:06]free response buf [05:14:06]execute_script done [05:14:06]execute_script returns [05:14:06]free content buf [05:14:06]Sock 9.Close socket [05:14:06]Sock 9.Thread stoped [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:10]OFD Sender: No OFD packet to send [05:25:15]OFD Sender: No OFD packet to send [05:25:20]OFD Sender: No OFD packet to send [05:25:25]OFD Sender: No OFD packet to send [05:25:30]OFD Sender: No OFD packet to send [05:25:35]OFD Sender: No OFD packet to send [05:25:40]OFD Sender: No OFD packet to send [05:25:45]OFD Sender: No OFD packet to send [05:25:50]OFD Sender: No OFD packet to send [05:25:55]OFD Sender: No OFD packet to send [05:26:00]OFD Sender: No OFD packet to send [05:26:05]OFD Sender: No OFD packet to send [05:26:10]OFD Sender: No OFD packet to send [05:26:15]OFD Sender: No OFD packet to send [05:26:20]OFD Sender: No OFD packet to send [05:26:25]OFD Sender: No OFD packet to send [05:26:30]OFD Sender: No OFD packet to send [05:26:35]OFD Sender: No OFD packet to send [05:26:40]OFD Sender: No OFD packet to send [05:26:45]OFD Sender: No OFD packet to send [05:26:50]OFD Sender: No OFD packet to send [05:26:55]OFD Sender: No OFD packet to send [05:27:00]OFD Sender: No OFD packet to send [05:27:05]OFD Sender: No OFD packet to send [05:27:10]OFD Sender: No OFD packet to send [05:27:15]OFD Sender: No OFD packet to send [05:27:20]OFD Sender: No OFD packet to send [05:27:25]OFD Sender: No OFD packet to send [05:27:30]OFD Sender: No OFD packet to send [05:27:35]OFD Sender: No OFD packet to send [05:27:40]OFD Sender: No OFD packet to send [05:27:45]OFD Sender: No OFD packet to send [05:27:50]OFD Sender: No OFD packet to send [05:27:55]OFD Sender: No OFD packet to send [05:28:00]OFD Sender: No OFD packet to send [05:28:05]OFD Sender: No OFD packet to send [05:28:10]OFD Sender: No OFD packet to send [05:28:15]OFD Sender: No OFD packet to send [05:28:20]OFD Sender: No OFD packet to send [05:28:25]OFD Sender: No OFD packet to send [05:28:30]OFD Sender: No OFD packet to send [05:28:35]OFD Sender: No OFD packet to send [05:28:40]OFD Sender: No OFD packet to send [05:28:45]OFD Sender: No OFD packet to send [05:28:50]OFD Sender: No OFD packet to send [05:28: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]accept exits with 7 [05:43:11]New connection [05:43:11]New thread 3067370852 created [05:43:11]Thread 3067514212 joined [05:43:11]Waiting for new connection... [05:43:11] Sock 7.Parse request [05:43:11]Sock 7.Check first char [05:43:11]Sock 7.First char is OK [05:43:11]request: POST /json_proto HTTP/1.0 [05:43:11]Method: POST [05:43:11]URL: /json_proto [05:43:11]Method is POST - this is cgi request [05:43:11]url: /json_proto [05:43:11]query_string will be loaded in cgi processing [05:43:11]execute_cgi json_proto POST (null) [05:43:11]execute_cgi path=json_proto method=POST [05:43:11]POST find Content-Length [05:43:11]Host: 172.17.51.3:8080 [05:43:11]Content-Length: 682 [05:43:11]Content-Type: application/json [05:43:11] [05:43:11]POST finish read [05:43:11]Found Content-Length = 682 [05:43:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342620", "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" ] } } [05:43:11]execute_script... [05:43:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342620", "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" ] } } [05:43:11]POST & json_proto [05:43:11]process_json_proto [05:43:11]json parsed OK: [05:43:11]protocol is kg_v1.0 [05:43:11]action value=close_receipt [05:43:11]process_action close_receipt [05:43:11]cmd_close_receipt [05:43:11]MH_GetDate [05:43:11]Write to MH i2c: F0 00 00 F6 64 49 [05:43:11]Write i2c OK [05:43:11]MH_I2C_Read... [05:43:11]Read from MH i2c: F0 [05:43:11]MH_I2C_Read... [05:43:11]Read from MH i2c: F0 09 00 [05:43:11]MH_I2C_Read... [05:43:11]Read from MH i2c: F0 09 00 F6 64 00 77 98 14 67 04 C1 95 66 9C [05:43:11]GetLastDocTimeStamp 1729401250 [05:43:11]current date 1729402999 [05:43:11]FM_GetShiftState [05:43:11]SAM_PROTO_GetShiftState [05:43:11]wFMCommunicate request_size=4 [05:43:11]MH_SAM_APDU [05:43:11]CAPDU: 80 13 01 00 [05:43:11]Write to MH i2c: E2 08 00 F7 64 80 13 01 00 00 00 00 00 D8 [05:43:11]Write i2c OK [05:43:11]MH_I2C_Read... [05:43:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:43:11]Read from MH i2c: E2 [05:43:11]MH_I2C_Read... [05:43:11]Read from MH i2c: E2 0E 00 [05:43:11]MH_I2C_Read... [05:43:11]Read from MH i2c: E2 0E 00 F7 64 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 BE [05:43:11]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [05:43:11]wFMCommunicate OK [05:43:11]SAM_PROTO_GetShiftState done [05:43:11]FM_GetShiftState done [05:43:11]opened in 1729384718 [05:43:11]opened+sec_in_day 1729471118 [05:43:11]quantity*price = 100015 [05:43:11]sum+1 = 100017 [05:43:11]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 20.10.2024 05:43 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30231 ФПД: 2551606473229 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T054319&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30231&fm=2551606473229&tin=02508201610067®Number=0000000000186857&sum=100000 [05:43:12]StoreToDocumentArchive [05:43:12]shift 114 fd 30231 [05:43:12]save to /storage/0114/doc_00030231 [05:43:12]save last doc name /storage/0114/doc_00030231 to /storage/kkm_last_doc_name [05:43:12]save OK [05:43:12]Clear old archive folders... [05:43:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [05:43:12]tlvbuf is 00C174E0 [05:43:12]SAM_PROTO_ClearQueue [05:43:12]wFMCommunicate request_size=4 [05:43:12]MH_SAM_APDU [05:43:12]CAPDU: 80 09 00 00 [05:43:12]Write to MH i2c: E2 08 00 04 65 80 09 00 00 00 00 00 00 DB [05:43:12]Write i2c OK [05:43:12]MH_I2C_Read... [05:43:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:43:12]Read from MH i2c: E2 [05:43:12]MH_I2C_Read... [05:43:12]Read from MH i2c: E2 03 00 [05:43:12]MH_I2C_Read... [05:43:12]Read from MH i2c: E2 03 00 04 65 00 90 00 DD [05:43:12]RAPDU: 90 00 [05:43:12]wFMCommunicate OK [05:43:12]SAM_PROTO_ClearQueue done [05:43:12]KKMCreateOFDPacket [05:43:12]OFDProtocolAddRootSTLVToBuf [05:43:12]FM_MakeSignedData [05:43:12]FM_MakeSignedData [05:43:12]SAM_PROTO_SignData [05:43:12]wFMCommunicate request_size=4 [05:43:12]MH_SAM_APDU [05:43:12]CAPDU: 80 0D 01 02 [05:43:12]Write to MH i2c: E2 08 00 05 65 80 0D 01 02 00 00 00 00 E3 [05:43:12]Write i2c OK [05:43:12]MH_I2C_Read... [05:43:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:43:12]Read from MH i2c: E2 [05:43:12]MH_I2C_Read... [05:43:12]Read from MH i2c: E2 03 00 [05:43:12]MH_I2C_Read... [05:43:12]Read from MH i2c: E2 03 00 05 65 00 90 00 DE [05:43:12]RAPDU: 90 00 [05:43:12]wFMCommunicate OK [05:43:12]wFMCommunicate request_size=255 [05:43:12]MH_SAM_APDU [05:43:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 77 98 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 02 [05:43:12]Write to MH i2c: E2 02 01 06 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 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 77 98 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 02 00 00 06 [05:43:12]Write i2c OK [05:43:12]MH_I2C_Read... [05:43:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:43:12]Read from MH i2c: E2 [05:43:12]MH_I2C_Read... [05:43:12]Read from MH i2c: E2 03 00 [05:43:12]MH_I2C_Read... [05:43:12]Read from MH i2c: E2 03 00 06 65 00 90 00 DF [05:43:12]RAPDU: 90 00 [05:43:12]wFMCommunicate OK [05:43:12]wFMCommunicate request_size=10 [05:43:12]MH_SAM_APDU [05:43:12]CAPDU: 80 0D 02 02 05 52 17 98 F2 0D [05:43:12]Write to MH i2c: E2 0D 00 07 65 80 0D 02 02 05 00 52 17 98 F2 0D 00 00 F0 [05:43:12]Write i2c OK [05:43:12]MH_I2C_Read... [05:43:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:43:13]Read from MH i2c: E2 [05:43:13]MH_I2C_Read... [05:43:13]Read from MH i2c: E2 03 00 [05:43:13]MH_I2C_Read... [05:43:13]Read from MH i2c: E2 03 00 07 65 00 90 00 E0 [05:43:13]RAPDU: 90 00 [05:43:13]wFMCommunicate OK [05:43:13]wFMCommunicate request_size=4 [05:43:13]MH_SAM_APDU [05:43:13]CAPDU: 80 0D 03 02 [05:43:13]Write to MH i2c: E2 08 00 08 65 80 0D 03 02 00 00 00 00 E8 [05:43:13]Write i2c OK [05:43:13]MH_I2C_Read... [05:43:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:43:13]Read from MH i2c: E2 [05:43:13]MH_I2C_Read... [05:43:13]Read from MH i2c: E2 0B 00 [05:43:13]MH_I2C_Read... [05:43:13]Read from MH i2c: E2 0B 00 08 65 00 B0 7A 43 0D 5B E5 75 A4 90 00 BC [05:43:13]RAPDU: B0 7A 43 0D 5B E5 75 A4 90 00 [05:43:13]wFMCommunicate OK [05:43:13]SAM_PROTO_SignData done [05:43:13]FM_MakeSignedData done [05:43:13]CreateOFDProtocolMessage [05:43:13]wFMCommunicate request_size=4 [05:43:13]MH_SAM_APDU [05:43:13]CAPDU: 80 11 00 00 [05:43:13]Write to MH i2c: E2 08 00 09 65 80 11 00 00 00 00 00 00 E8 [05:43:13]Write i2c OK [05:43:13]MH_I2C_Read... [05:43:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:43:13]Read from MH i2c: E2 [05:43:13]MH_I2C_Read... [05:43:13]Read from MH i2c: E2 17 00 [05:43:13]MH_I2C_Read... [05:43:13]Read from MH i2c: E2 17 00 09 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 36 [05: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 [05:43:13]wFMCommunicate OK [05:43:13]CreateOFDProtocolMessage done [05:43:13]OFDSenderStorePacket 30231 [05:43:13]StoreOFDPacket docnum=30231 [05: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 0F 01 00 00 71 FC 07 01 19 A1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 77 98 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 02 52 17 98 F2 0D B0 7A 43 0D 5B E5 75 A4 [05:43:13]CheckFolder [05:43:13]dirname=/storage/ofd_packets [05:43:13]CheckFolder done [05:43:13]ProducePacketName [05:43:13]name=ofd_packets/00030231 [05:43:13]NVStorageSaveData ofd_packets/00030231 [05:43:13]File name is /storage/ofd_packets/00030231 [05:43:13]Write 301 bytes [05:43:13]NVStorageSaveData done [05:43:13]OFDSenderStorePacket done [05:43:13]KKMCreateOFDPacket done [05:43:13]NVStorageSaveData kkm_last_timestamp [05:43:13]File name is /storage/kkm_last_timestamp [05:43:13]Write 4 bytes [05:43:13]NVStorageSaveData done [05:43:13]ExternCall_PrintAddStr [05:43:13]wPrintStart [05:43:13]Write to MH i2c: 01 00 00 0A 65 6F [05:43:13]Write i2c OK [05:43:13]MH_I2C_Read... [05:43:13]Read from MH i2c: 01 [05:43:13]MH_I2C_Read... [05:43:13]Read from MH i2c: 01 07 00 [05:43:13]MH_I2C_Read... [05:43:13]Read from MH i2c: 01 07 00 0A 65 00 00 00 00 00 FF 0F 84 [05:43:13]RasterBufferAndPrint [05:43:13]line Счет N : (1)342620 [05:43:13]line ИНН: 02508201610067 [05:43:13]line Контрольно-Кассовый Чек [05:43:13]line ПРОДАЖА [05:43:13]line ТРК (МРК, ГНК) : 53 [05:43:13]line Товар: 2710124130 [05:43:13]line Аи-92-К-2 [05:43:13]line 14.950 * 66.90 [05:43:13]line = 1000.16 [05:43:13]line НДС 12% НСП 1% [05:43:13]line > о реализуемом товаре [05:43:13]line ОКРУГЛЕНИЕ: -0.16 [05:43:13]line ИТОГО: 1000.00 [05:43:13]line Внесено: 1000.00 [05:43:13]line СДАЧА: 0.00 [05:43:13]line НСП 1% : 8.85 [05:43:13]line НДС 12% : 106.21 [05:43:13]line Наличными: 1000.00 [05:43:13]line Безнал.: 0.00 [05:43:13]line Место: АЗС № 78 "Партнер Нефть" [05:43:13]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [05:43:13]line СНО: Общий режим [05:43:13]line Чек 13 20.10.2024 05:43 [05:43:13]line Смена: 114 ФФД: 1.0 [05:43:13]line ЗНМ: 0300000137 [05:43:13]line РНМ: 0000000000186857 [05:43:13]line Версия ККМ: v1.0 [05:43:13]line ФМ: 0000000002094219 [05:43:13]line ФД: 30231 [05:43:13]line ФПД: 2551606473229 [05:43:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T054319&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30231&fm=2551606473229&tin=02508201610067®Number=0000000000186857&sum=100000 [05:43:13]OFD Sender: Processing packet 30231 [packets to send 10, broken 9] [05:43:13]ProducePacketName [05:43:13]name=ofd_packets/00030231 [05:43:13]OFD Sender: To server: pG, [05:43:13]CommunicateWithHost lk.salyk.kg:30040 [05:43:13]ConnectInit lk.salyk.kg [05:43:13]written 0, free lines is 4095 [05:43:13]Connected sock=10 [05:43: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 71 FC 07 01 19 A1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 77 98 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 02 52 17 98 F2 0D B0 7A 43 0D 5B E5 75 A4 [05:43: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 6F D1 47 00 DE 5F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 17 76 00 00 F4 03 04 00 FC 42 14 67 B6 04 01 00 00 F0 5C D8 D4 3D 11 4E C4 [05:43:13]CommunicateWithHost err = 0 [05:43:13]CheckOFDResponse [05:43:13]1017 (14) - 77093643461234 [05:43:13]1041 (16) - 0000000002094219 [05:43:13]1040 (4) - 30231 [05:43:13]1012 (4) - 19.10.2024 23:38 [05:43:13]1206 (1) - 0 [05:43:13]OFD Sender: Remove packet 30231 [05:43:13]ProducePacketName [05:43:13]name=ofd_packets/00030231 [05:43:13]NVStorageDeleteData [05:43:13]Write to MH i2c: 01 00 00 35 65 9A [05:43:13]Write i2c OK [05:43:13]MH_I2C_Read... [05:43:13]Read from MH i2c: 01 [05:43:13]MH_I2C_Read... [05:43:13]Read from MH i2c: 01 07 00 [05:43:13]MH_I2C_Read... [05:43:13]Read from MH i2c: 01 07 00 35 65 00 00 00 00 00 F3 0C A0 [05:43:13]RasterBufferAndPrint [05:43:13]line [05:43:13]line [05:43:13]line [05:43:13]line [05:43:13]line [05:43:13]written 0, free lines is 3321 [05:43:13]MH_Cut [05:43:13]Write to MH i2c: D1 01 00 3C 65 01 73 [05:43:13]Write i2c OK [05:43:13]MH_I2C_Read... [05:43:13]Read from MH i2c: D1 [05:43:13]MH_I2C_Read... [05:43:13]Read from MH i2c: D1 01 00 [05:43:13]MH_I2C_Read... [05:43:13]Read from MH i2c: D1 01 00 3C 65 00 72 [05:43:13]Write to MH i2c: 01 00 00 3D 65 A2 [05:43:13]Write i2c OK [05:43:13]MH_I2C_Read... [05:43:14]OFD Sender: No OFD packet to send [05:43:14]*** Cut start [05:43:14]*** Partial cut [05:43:14]*** CUTSNS_PIN = 1 [05:43:14]*** CUTSNS_PIN = 0 [05:43:14]*** Brake cut motor [05:43:15]Read from MH i2c: 01 [05:43:15]MH_I2C_Read... [05:43:15]*** Stop cut motor [05:43:15]*** Cut end [05:43:15]Read from MH i2c: 01 07 00 [05:43:15]MH_I2C_Read... [05:43:15]Read from MH i2c: 01 07 00 3D 65 00 00 00 00 00 FF 0F B7 [05:43:15]process_action close_receipt done [05:43:15]requested_data is exist [05:43:15]produce_requested_data [05:43:15]requested_item fm.sn is exist - process it [05:43:15]wFMCommunicate request_size=4 [05:43:15]MH_SAM_APDU [05:43:15]CAPDU: 80 11 00 00 [05:43:15]Write to MH i2c: E2 08 00 3E 65 80 11 00 00 00 00 00 00 1D [05:43:15]Write i2c OK [05:43:15]MH_I2C_Read... [05:43:15]Read from MH i2c: E2 [05:43:15]MH_I2C_Read... [05:43:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:43:15]Read from MH i2c: E2 17 00 [05:43:15]MH_I2C_Read... [05:43:15]Read from MH i2c: E2 17 00 3E 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 6B [05: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 [05:43:15]wFMCommunicate OK [05:43:15]requested_item fd.num is exist - process it [05:43:15]SAM_PROTO_GetFieldsCounters [05:43:15]wFMCommunicate request_size=4 [05:43:15]MH_SAM_APDU [05:43:15]CAPDU: 80 13 00 00 [05:43:15]Write to MH i2c: E2 08 00 3F 65 80 13 00 00 00 00 00 00 20 [05:43:15]Write i2c OK [05:43:15]MH_I2C_Read... [05:43:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:43:15]Read from MH i2c: E2 [05:43:15]MH_I2C_Read... [05:43:15]Read from MH i2c: E2 62 00 [05:43:15]MH_I2C_Read... [05:43:15]Read from MH i2c: E2 62 00 3F 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 76 00 00 0E 04 04 00 72 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 6C [05:43: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 17 76 00 00 0E 04 04 00 72 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 [05:43:15]wFMCommunicate OK [05:43:15]SAM_PROTO_GetFieldsCounters done [05:43:15]requested_item shift.num is exist - process it [05:43:15]requested_item shift.opened is exist - process it [05:43:15]req_shift_opened [05:43:15]FM_GetShiftState [05:43:15]SAM_PROTO_GetShiftState [05:43:15]wFMCommunicate request_size=4 [05:43:15]MH_SAM_APDU [05:43:15]CAPDU: 80 13 01 00 [05:43:15]Write to MH i2c: E2 08 00 40 65 80 13 01 00 00 00 00 00 22 [05:43:15]Write i2c OK [05:43:15]MH_I2C_Read... [05:43:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:43:15]Read from MH i2c: E2 [05:43:15]MH_I2C_Read... [05:43:15]Read from MH i2c: E2 0E 00 [05:43:15]MH_I2C_Read... [05:43:15]Read from MH i2c: E2 0E 00 40 65 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 08 [05:43:15]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [05:43:15]wFMCommunicate OK [05:43:15]SAM_PROTO_GetShiftState done [05:43:15]FM_GetShiftState done [05:43:15]req_shift_opened done [05:43:15]requested_item shift.open_date is exist - process it [05:43:15]req_shift_open_date [05:43:15]req_shift_open_date done [05:43:15]produce_requested_data done [05:43:15]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30231,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [05:43:15]process_action_free close_receipt [05:43:15]json_value_free [05:43:15]json_value_free done [05:43:15]process_json_proto returns [05:43:15]Send response to host [05:43:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30231,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [05:43:15]free response buf [05:43:15]execute_script done [05:43:15]execute_script returns [05:43:15]free content buf [05:43:15]Sock 7.Close socket [05:43:15]Sock 7.Thread stoped [05:43:19]OFD Sender: No OFD packet to send [05:43:24]OFD Sender: No OFD packet to send [05:43:29]OFD Sender: No OFD packet to send [05:43:34]OFD Sender: No OFD packet to send [05:43:39]OFD Sender: No OFD packet to send [05:43:44]OFD Sender: No OFD packet to send [05:43:49]OFD Sender: No OFD packet to send [05:43:54]OFD Sender: No OFD packet to send [05:43:59]OFD Sender: No OFD packet to send [05:44:04]OFD Sender: No OFD packet to send [05:44:09]OFD Sender: No OFD packet to send [05:44:14]OFD Sender: No OFD packet to send [05:44:19]OFD Sender: No OFD packet to send [05:44:24]OFD Sender: No OFD packet to send [05:44:29]OFD Sender: No OFD packet to send [05:44:34]OFD Sender: No OFD packet to send [05:44:39]OFD Sender: No OFD packet to send [05:44:44]OFD Sender: No OFD packet to send [05:44:49]OFD Sender: No OFD packet to send [05:44:54]OFD Sender: No OFD packet to send [05:44:59]OFD Sender: No OFD packet to send [05:45:04]OFD Sender: No OFD packet to send [05:45:09]OFD Sender: No OFD packet to send [05:45:14]OFD Sender: No OFD packet to send [05:45:19]OFD Sender: No OFD packet to send [05:45:24]OFD Sender: No OFD packet to send [05:45:29]OFD Sender: No OFD packet to send [05:45:34]OFD Sender: No OFD packet to send [05:45:39]OFD Sender: No OFD packet to send [05:45:44]OFD Sender: No OFD packet to send [05:45:49]OFD Sender: No OFD packet to send [05:45:54]OFD Sender: No OFD packet to send [05:45:59]OFD Sender: No OFD packet to send [05:46:04]OFD Sender: No OFD packet to send [05:46:09]OFD Sender: No OFD packet to send [05:46:14]OFD Sender: No OFD packet to send [05:46:19]OFD Sender: No OFD packet to send [05:46:24]OFD Sender: No OFD packet to send [05:46:29]OFD Sender: No OFD packet to send [05:46:34]OFD Sender: No OFD packet to send [05:46:39]OFD Sender: No OFD packet to send [05:46:44]OFD Sender: No OFD packet to send [05:46:49]OFD Sender: No OFD packet to send [05:46:54]OFD Sender: No OFD packet to send [05:46:59]OFD Sender: No OFD packet to send [05:47:04]OFD Sender: No OFD packet to send [05:47:09]OFD Sender: No OFD packet to send [05:47:14]OFD Sender: No OFD packet to send [05:47:19]OFD Sender: No OFD packet to send [05:47:24]OFD Sender: No OFD packet to send [05:47:29]OFD Sender: No OFD packet to send [05:47:34]OFD Sender: No OFD packet to send [05:47:39]OFD Sender: No OFD packet to send [05:47:44]OFD Sender: No OFD packet to send [05:47:49]OFD Sender: No OFD packet to send [05:47:54]OFD Sender: No OFD packet to send [05:47:59]OFD Sender: No OFD packet to send [05:48:04]OFD Sender: No OFD packet to send [05:48:09]OFD Sender: No OFD packet to send [05:48:14]OFD Sender: No OFD packet to send [05:48:19]OFD Sender: No OFD packet to send [05:48:24]OFD Sender: No OFD packet to send [05:48:29]OFD Sender: No OFD packet to send [05:48:34]OFD Sender: No OFD packet to send [05:48:39]OFD Sender: No OFD packet to send [05:48:44]OFD Sender: No OFD packet to send [05:48:49]OFD Sender: No OFD packet to send [05:48:54]OFD Sender: No OFD packet to send [05:48:59]OFD Sender: No OFD packet to send [05:49:04]OFD Sender: No OFD packet to send [05:49:09]OFD Sender: No OFD packet to send [05:49:14]OFD Sender: No OFD packet to send [05:49:19]OFD Sender: No OFD packet to send [05:49:24]OFD Sender: No OFD packet to send [05:49:29]OFD Sender: No OFD packet to send [05:49:34]OFD Sender: No OFD packet to send [05:49:39]OFD Sender: No OFD packet to send [05:49:44]OFD Sender: No OFD packet to send [05:49:49]OFD Sender: No OFD packet to send [05:49:54]OFD Sender: No OFD packet to send [05:49:59]OFD Sender: No OFD packet to send [05:50:04]OFD Sender: No OFD packet to send [05:50:09]OFD Sender: No OFD packet to send [05:50:14]OFD Sender: No OFD packet to send [05:50:19]OFD Sender: No OFD packet to send [05:50:24]OFD Sender: No OFD packet to send [05:50:29]OFD Sender: No OFD packet to send [05:50:34]OFD Sender: No OFD packet to send [05:50:39]OFD Sender: No OFD packet to send [05:50:44]OFD Sender: No OFD packet to send [05:50:49]OFD Sender: No OFD packet to send [05:50:54]OFD Sender: No OFD packet to send [05:50:59]OFD Sender: No OFD packet to send [05:51:04]OFD Sender: No OFD packet to send [05:51:09]OFD Sender: No OFD packet to send [05:51:14]OFD Sender: No OFD packet to send [05:51:19]OFD Sender: No OFD packet to send [05:51:24]OFD Sender: No OFD packet to send [05:51:29]OFD Sender: No OFD packet to send [05:51:34]OFD Sender: No OFD packet to send [05:51:39]OFD Sender: No OFD packet to send [05:51:44]OFD Sender: No OFD packet to send [05:51:49]OFD Sender: No OFD packet to send [05:51:54]OFD Sender: No OFD packet to send [05:51:59]OFD Sender: No OFD packet to send [05:52:04]OFD Sender: No OFD packet to send [05:52:09]OFD Sender: No OFD packet to send [05:52:14]OFD Sender: No OFD packet to send [05:52:19]OFD Sender: No OFD packet to send [05:52:24]OFD Sender: No OFD packet to send [05:52:29]OFD Sender: No OFD packet to send [05:52:34]OFD Sender: No OFD packet to send [05:52:39]OFD Sender: No OFD packet to send [05:52:44]OFD Sender: No OFD packet to send [05:52:49]OFD Sender: No OFD packet to send [05:52:54]OFD Sender: No OFD packet to send [05:52:59]OFD Sender: No OFD packet to send [05:53:04]OFD Sender: No OFD packet to send [05:53:09]OFD Sender: No OFD packet to send [05:53:14]OFD Sender: No OFD packet to send [05:53:19]OFD Sender: No OFD packet to send [05:53:24]OFD Sender: No OFD packet to send [05:53:29]OFD Sender: No OFD packet to send [05:53:34]OFD Sender: No OFD packet to send [05:53:39]OFD Sender: No OFD packet to send [05:53:44]OFD Sender: No OFD packet to send [05:53:49]OFD Sender: No OFD packet to send [05:53:54]OFD Sender: No OFD packet to send [05:53:59]OFD Sender: No OFD packet to send [05:54:04]OFD Sender: No OFD packet to send [05:54:09]OFD Sender: No OFD packet to send [05:54:14]OFD Sender: No OFD packet to send [05:54:19]OFD Sender: No OFD packet to send [05:54:24]OFD Sender: No OFD packet to send [05:54:29]OFD Sender: No OFD packet to send [05:54:34]OFD Sender: No OFD packet to send [05:54:39]OFD Sender: No OFD packet to send [05:54:44]OFD Sender: No OFD packet to send [05:54:49]OFD Sender: No OFD packet to send [05:54:54]OFD Sender: No OFD packet to send [05:54:59]OFD Sender: No OFD packet to send [05:55:04]OFD Sender: No OFD packet to send [05:55:09]OFD Sender: No OFD packet to send [05:55:14]OFD Sender: No OFD packet to send [05:55:19]OFD Sender: No OFD packet to send [05:55:24]OFD Sender: No OFD packet to send [05:55:29]OFD Sender: No OFD packet to send [05:55:34]OFD Sender: No OFD packet to send [05:55:39]OFD Sender: No OFD packet to send [05:55:44]OFD Sender: No OFD packet to send [05:55:49]OFD Sender: No OFD packet to send [05:55:54]OFD Sender: No OFD packet to send [05:55:59]OFD Sender: No OFD packet to send [05:56:04]OFD Sender: No OFD packet to send [05:56:09]OFD Sender: No OFD packet to send [05:56:14]OFD Sender: No OFD packet to send [05:56:19]OFD Sender: No OFD packet to send [05:56:24]OFD Sender: No OFD packet to send [05:56:29]OFD Sender: No OFD packet to send [05:56:34]OFD Sender: No OFD packet to send [05:56:39]OFD Sender: No OFD packet to send [05:56:44]OFD Sender: No OFD packet to send [05:56:49]OFD Sender: No OFD packet to send [05:56:54]OFD Sender: No OFD packet to send [05:56:59]OFD Sender: No OFD packet to send [05:57:04]OFD Sender: No OFD packet to send [05:57:09]OFD Sender: No OFD packet to send [05:57:14]OFD Sender: No OFD packet to send [05:57:19]OFD Sender: No OFD packet to send [05:57:24]OFD Sender: No OFD packet to send [05:57:29]OFD Sender: No OFD packet to send [05:57:34]OFD Sender: No OFD packet to send [05:57:39]OFD Sender: No OFD packet to send [05:57:44]OFD Sender: No OFD packet to send [05:57:49]OFD Sender: No OFD packet to send [05:57:54]OFD Sender: No OFD packet to send [05:57:59]OFD Sender: No OFD packet to send [05:58:04]OFD Sender: No OFD packet to send [05:58:10]OFD Sender: No OFD packet to send [05:58:15]OFD Sender: No OFD packet to send [05:58:20]OFD Sender: No OFD packet to send [05:58:25]OFD Sender: No OFD packet to send [05:58:30]OFD Sender: No OFD packet to send [05:58:35]OFD Sender: No OFD packet to send [05:58:40]OFD Sender: No OFD packet to send [05:58:45]OFD Sender: No OFD packet to send [05:58:50]OFD Sender: No OFD packet to send [05:58:55]OFD Sender: No OFD packet to send [05:59:00]OFD Sender: No OFD packet to send [05:59:05]OFD Sender: No OFD packet to send [05:59:10]OFD Sender: No OFD packet to send [05:59:15]OFD Sender: No OFD packet to send [05:59:20]OFD Sender: No OFD packet to send [05:59:25]OFD Sender: No OFD packet to send [05:59:30]OFD Sender: No OFD packet to send [05:59:35]OFD Sender: No OFD packet to send [05:59:40]OFD Sender: No OFD packet to send [05:59:45]OFD Sender: No OFD packet to send [05:59:50]OFD Sender: No OFD packet to send [05:59:55]OFD Sender: No OFD packet to send [06:00:00]OFD Sender: No OFD packet to send [06:00:05]OFD Sender: No OFD packet to send [06:00:10]OFD Sender: No OFD packet to send [06:00:15]OFD Sender: No OFD packet to send [06:00:20]OFD Sender: No OFD packet to send [06:00:25]OFD Sender: No OFD packet to send [06:00:30]OFD Sender: No OFD packet to send [06:00:35]OFD Sender: No OFD packet to send [06:00:40]OFD Sender: No OFD packet to send [06:00:45]OFD Sender: No OFD packet to send [06:00:50]OFD Sender: No OFD packet to send [06:00:55]OFD Sender: No OFD packet to send [06:01:00]OFD Sender: No OFD packet to send [06:01:05]OFD Sender: No OFD packet to send [06:01:10]OFD Sender: No OFD packet to send [06:01:15]OFD Sender: No OFD packet to send [06:01:20]OFD Sender: No OFD packet to send [06:01:25]OFD Sender: No OFD packet to send [06:01:30]OFD Sender: No OFD packet to send [06:01:35]OFD Sender: No OFD packet to send [06:01:40]OFD Sender: No OFD packet to send [06:01:45]OFD Sender: No OFD packet to send [06:01:50]OFD Sender: No OFD packet to send [06:01:55]OFD Sender: No OFD packet to send [06:02:00]OFD Sender: No OFD packet to send [06:02:05]OFD Sender: No OFD packet to send [06:02:10]OFD Sender: No OFD packet to send [06:02:15]OFD Sender: No OFD packet to send [06:02:20]OFD Sender: No OFD packet to send [06:02:25]OFD Sender: No OFD packet to send [06:02:30]OFD Sender: No OFD packet to send [06:02:35]OFD Sender: No OFD packet to send [06:02:40]OFD Sender: No OFD packet to send [06:02:45]OFD Sender: No OFD packet to send [06:02:50]OFD Sender: No OFD packet to send [06:02:55]OFD Sender: No OFD packet to send [06:03:00]OFD Sender: No OFD packet to send [06:03:05]OFD Sender: No OFD packet to send [06:03:10]OFD Sender: No OFD packet to send [06:03:15]OFD Sender: No OFD packet to send [06:03:20]OFD Sender: No OFD packet to send [06:03:25]OFD Sender: No OFD packet to send [06:03:30]OFD Sender: No OFD packet to send [06:03:35]OFD Sender: No OFD packet to send [06:03:40]OFD Sender: No OFD packet to send [06:03:45]OFD Sender: No OFD packet to send [06:03:50]OFD Sender: No OFD packet to send [06:03:55]OFD Sender: No OFD packet to send [06:04:00]OFD Sender: No OFD packet to send [06:04:05]OFD Sender: No OFD packet to send [06:04:10]OFD Sender: No OFD packet to send [06:04:15]OFD Sender: No OFD packet to send [06:04:20]OFD Sender: No OFD packet to send [06:04:25]OFD Sender: No OFD packet to send [06:04:30]OFD Sender: No OFD packet to send [06:04:35]OFD Sender: No OFD packet to send [06:04:40]OFD Sender: No OFD packet to send [06:04:45]OFD Sender: No OFD packet to send [06:04:50]OFD Sender: No OFD packet to send [06:04:55]OFD Sender: No OFD packet to send [06:05:00]OFD Sender: No OFD packet to send [06:05:05]OFD Sender: No OFD packet to send [06:05:10]OFD Sender: No OFD packet to send [06:05:15]OFD Sender: No OFD packet to send [06:05:20]OFD Sender: No OFD packet to send [06:05:25]OFD Sender: No OFD packet to send [06:05:30]OFD Sender: No OFD packet to send [06:05:35]OFD Sender: No OFD packet to send [06:05:40]OFD Sender: No OFD packet to send [06:05:45]OFD Sender: No OFD packet to send [06:05:50]OFD Sender: No OFD packet to send [06:05:55]OFD Sender: No OFD packet to send [06:06:00]OFD Sender: No OFD packet to send [06:06:05]OFD Sender: No OFD packet to send [06:06:10]OFD Sender: No OFD packet to send [06:06:15]OFD Sender: No OFD packet to send [06:06:20]OFD Sender: No OFD packet to send [06:06:25]OFD Sender: No OFD packet to send [06:06:30]OFD Sender: No OFD packet to send [06:06:35]OFD Sender: No OFD packet to send [06:06:40]OFD Sender: No OFD packet to send [06:06:45]OFD Sender: No OFD packet to send [06:06:50]OFD Sender: No OFD packet to send [06:06:55]OFD Sender: No OFD packet to send [06:07:00]OFD Sender: No OFD packet to send [06:07:05]OFD Sender: No OFD packet to send [06:07:10]OFD Sender: No OFD packet to send [06:07:15]OFD Sender: No OFD packet to send [06:07:20]OFD Sender: No OFD packet to send [06:07:25]OFD Sender: No OFD packet to send [06:07:30]OFD Sender: No OFD packet to send [06:07:35]OFD Sender: No OFD packet to send [06:07:40]OFD Sender: No OFD packet to send [06:07:45]OFD Sender: No OFD packet to send [06:07:50]OFD Sender: No OFD packet to send [06:07:55]OFD Sender: No OFD packet to send [06:08:00]OFD Sender: No OFD packet to send [06:08:05]OFD Sender: No OFD packet to send [06:08:10]OFD Sender: No OFD packet to send [06:08:15]OFD Sender: No OFD packet to send [06:08:20]OFD Sender: No OFD packet to send [06:08:25]OFD Sender: No OFD packet to send [06:08:30]OFD Sender: No OFD packet to send [06:08:35]OFD Sender: No OFD packet to send [06:08:40]OFD Sender: No OFD packet to send [06:08:45]OFD Sender: No OFD packet to send [06:08:50]OFD Sender: No OFD packet to send [06:08:55]OFD Sender: No OFD packet to send [06:09:00]OFD Sender: No OFD packet to send [06:09:05]OFD Sender: No OFD packet to send [06:09:10]OFD Sender: No OFD packet to send [06:09:15]OFD Sender: No OFD packet to send [06:09:20]OFD Sender: No OFD packet to send [06:09:25]OFD Sender: No OFD packet to send [06:09:30]OFD Sender: No OFD packet to send [06:09:35]OFD Sender: No OFD packet to send [06:09:40]OFD Sender: No OFD packet to send [06:09:45]OFD Sender: No OFD packet to send [06:09:50]OFD Sender: No OFD packet to send [06:09:55]OFD Sender: No OFD packet to send [06:10:00]OFD Sender: No OFD packet to send [06:10:05]OFD Sender: No OFD packet to send [06:10:10]OFD Sender: No OFD packet to send [06:10:15]OFD Sender: No OFD packet to send [06:10:20]OFD Sender: No OFD packet to send [06:10:25]OFD Sender: No OFD packet to send [06:10:30]OFD Sender: No OFD packet to send [06:10:35]OFD Sender: No OFD packet to send [06:10:40]OFD Sender: No OFD packet to send [06:10:45]OFD Sender: No OFD packet to send [06:10:50]OFD Sender: No OFD packet to send [06:10:55]OFD Sender: No OFD packet to send [06:11:00]OFD Sender: No OFD packet to send [06:11:05]OFD Sender: No OFD packet to send [06:11:10]OFD Sender: No OFD packet to send [06:11:15]OFD Sender: No OFD packet to send [06:11:20]OFD Sender: No OFD packet to send [06:11:25]OFD Sender: No OFD packet to send [06:11:30]OFD Sender: No OFD packet to send [06:11:35]OFD Sender: No OFD packet to send [06:11:40]OFD Sender: No OFD packet to send [06:11:45]OFD Sender: No OFD packet to send [06:11:50]OFD Sender: No OFD packet to send [06:11:55]OFD Sender: No OFD packet to send [06:12:00]OFD Sender: No OFD packet to send [06:12:05]OFD Sender: No OFD packet to send [06:12:10]OFD Sender: No OFD packet to send [06:12:15]OFD Sender: No OFD packet to send [06:12:20]OFD Sender: No OFD packet to send [06:12:25]OFD Sender: No OFD packet to send [06:12:30]OFD Sender: No OFD packet to send [06:12:35]OFD Sender: No OFD packet to send [06:12:40]OFD Sender: No OFD packet to send [06:12:45]OFD Sender: No OFD packet to send [06:12:50]OFD Sender: No OFD packet to send [06:12:55]OFD Sender: No OFD packet to send [06:13:00]OFD Sender: No OFD packet to send [06:13:05]OFD Sender: No OFD packet to send [06:13:10]OFD Sender: No OFD packet to send [06:13:15]OFD Sender: No OFD packet to send [06:13:20]OFD Sender: No OFD packet to send [06:13:25]OFD Sender: No OFD packet to send [06:13:30]OFD Sender: No OFD packet to send [06:13:35]OFD Sender: No OFD packet to send [06:13:40]OFD Sender: No OFD packet to send [06:13:45]OFD Sender: No OFD packet to send [06:13:50]OFD Sender: No OFD packet to send [06:13:55]OFD Sender: No OFD packet to send [06:14:00]OFD Sender: No OFD packet to send [06:14:05]OFD Sender: No OFD packet to send [06:14:10]OFD Sender: No OFD packet to send [06:14:15]OFD Sender: No OFD packet to send [06:14:20]OFD Sender: No OFD packet to send [06:14:25]OFD Sender: No OFD packet to send [06:14:30]OFD Sender: No OFD packet to send [06:14:35]OFD Sender: No OFD packet to send [06:14:40]OFD Sender: No OFD packet to send [06:14:45]OFD Sender: No OFD packet to send [06:14:50]OFD Sender: No OFD packet to send [06:14:55]OFD Sender: No OFD packet to send [06:15:00]OFD Sender: No OFD packet to send [06:15:05]OFD Sender: No OFD packet to send [06:15:10]OFD Sender: No OFD packet to send [06:15:15]OFD Sender: No OFD packet to send [06:15:20]OFD Sender: No OFD packet to send [06:15:25]OFD Sender: No OFD packet to send [06:15:30]OFD Sender: No OFD packet to send [06:15:35]OFD Sender: No OFD packet to send [06:15:40]OFD Sender: No OFD packet to send [06:15:45]OFD Sender: No OFD packet to send [06:15:50]OFD Sender: No OFD packet to send [06:15:55]OFD Sender: No OFD packet to send [06:16:00]OFD Sender: No OFD packet to send [06:16:05]OFD Sender: No OFD packet to send [06:16:10]OFD Sender: No OFD packet to send [06:16:15]OFD Sender: No OFD packet to send [06:16:20]OFD Sender: No OFD packet to send [06:16:25]OFD Sender: No OFD packet to send [06:16:30]OFD Sender: No OFD packet to send [06:16:35]OFD Sender: No OFD packet to send [06:16:40]OFD Sender: No OFD packet to send [06:16:45]OFD Sender: No OFD packet to send [06:16:50]OFD Sender: No OFD packet to send [06:16:55]OFD Sender: No OFD packet to send [06:17:00]OFD Sender: No OFD packet to send [06:17:05]OFD Sender: No OFD packet to send [06:17:10]OFD Sender: No OFD packet to send [06:17:15]OFD Sender: No OFD packet to send [06:17:20]OFD Sender: No OFD packet to send [06:17:25]OFD Sender: No OFD packet to send [06:17:30]OFD Sender: No OFD packet to send [06:17:35]OFD Sender: No OFD packet to send [06:17:40]OFD Sender: No OFD packet to send [06:17:45]OFD Sender: No OFD packet to send [06:17:50]OFD Sender: No OFD packet to send [06:17:55]OFD Sender: No OFD packet to send [06:18:00]OFD Sender: No OFD packet to send [06:18:05]OFD Sender: No OFD packet to send [06:18:10]OFD Sender: No OFD packet to send [06:18:15]OFD Sender: No OFD packet to send [06:18:20]OFD Sender: No OFD packet to send [06:18:25]OFD Sender: No OFD packet to send [06:18:30]OFD Sender: No OFD packet to send [06:18:35]OFD Sender: No OFD packet to send [06:18:40]OFD Sender: No OFD packet to send [06:18:45]OFD Sender: No OFD packet to send [06:18:50]OFD Sender: No OFD packet to send [06:18:55]OFD Sender: No OFD packet to send [06:19:00]OFD Sender: No OFD packet to send [06:19:05]OFD Sender: No OFD packet to send [06:19:10]OFD Sender: No OFD packet to send [06:19:15]OFD Sender: No OFD packet to send [06:19:20]OFD Sender: No OFD packet to send [06:19:25]OFD Sender: No OFD packet to send [06:19:31]OFD Sender: No OFD packet to send [06:19:36]OFD Sender: No OFD packet to send [06:19:41]OFD Sender: No OFD packet to send [06:19:46]OFD Sender: No OFD packet to send [06:19:51]OFD Sender: No OFD packet to send [06:19:56]OFD Sender: No OFD packet to send [06:20:01]OFD Sender: No OFD packet to send [06:20:06]OFD Sender: No OFD packet to send [06:20:11]OFD Sender: No OFD packet to send [06:20:16]OFD Sender: No OFD packet to send [06:20:21]OFD Sender: No OFD packet to send [06:20:26]OFD Sender: No OFD packet to send [06:20:31]OFD Sender: No OFD packet to send [06:20:36]OFD Sender: No OFD packet to send [06:20:41]OFD Sender: No OFD packet to send [06:20:46]OFD Sender: No OFD packet to send [06:20:51]OFD Sender: No OFD packet to send [06:20:56]OFD Sender: No OFD packet to send [06:21:01]OFD Sender: No OFD packet to send [06:21:06]OFD Sender: No OFD packet to send [06:21:11]OFD Sender: No OFD packet to send [06:21:16]OFD Sender: No OFD packet to send [06:21:21]OFD Sender: No OFD packet to send [06:21:26]OFD Sender: No OFD packet to send [06:21:31]OFD Sender: No OFD packet to send [06:21:36]OFD Sender: No OFD packet to send [06:21:41]OFD Sender: No OFD packet to send [06:21:46]OFD Sender: No OFD packet to send [06:21:51]OFD Sender: No OFD packet to send [06:21:56]OFD Sender: No OFD packet to send [06:22:01]OFD Sender: No OFD packet to send [06:22:06]OFD Sender: No OFD packet to send [06:22:11]OFD Sender: No OFD packet to send [06:22:16]OFD Sender: No OFD packet to send [06:22:21]OFD Sender: No OFD packet to send [06:22:26]OFD Sender: No OFD packet to send [06:22:31]OFD Sender: No OFD packet to send [06:22:36]OFD Sender: No OFD packet to send [06:22:41]OFD Sender: No OFD packet to send [06:22:46]OFD Sender: No OFD packet to send [06:22:51]OFD Sender: No OFD packet to send [06:22:56]OFD Sender: No OFD packet to send [06:23:01]OFD Sender: No OFD packet to send [06:23:06]OFD Sender: No OFD packet to send [06:23:11]OFD Sender: No OFD packet to send [06:23:16]OFD Sender: No OFD packet to send [06:23:21]OFD Sender: No OFD packet to send [06:23:26]OFD Sender: No OFD packet to send [06:23:31]OFD Sender: No OFD packet to send [06:23:36]OFD Sender: No OFD packet to send [06:23:41]OFD Sender: No OFD packet to send [06:23:46]OFD Sender: No OFD packet to send [06:23:51]OFD Sender: No OFD packet to send [06:23:56]OFD Sender: No OFD packet to send [06:24:01]OFD Sender: No OFD packet to send [06:24:06]OFD Sender: No OFD packet to send [06:24:11]OFD Sender: No OFD packet to send [06:24:16]OFD Sender: No OFD packet to send [06:24:21]OFD Sender: No OFD packet to send [06:24:26]OFD Sender: No OFD packet to send [06:24:31]OFD Sender: No OFD packet to send [06:24:36]OFD Sender: No OFD packet to send [06:24:41]OFD Sender: No OFD packet to send [06:24:46]OFD Sender: No OFD packet to send [06:24:51]OFD Sender: No OFD packet to send [06:24:56]OFD Sender: No OFD packet to send [06:25:01]OFD Sender: No OFD packet to send [06:25:06]OFD Sender: No OFD packet to send [06:25:11]OFD Sender: No OFD packet to send [06:25:16]OFD Sender: No OFD packet to send [06:25:21]OFD Sender: No OFD packet to send [06:25:26]OFD Sender: No OFD packet to send [06:25:31]OFD Sender: No OFD packet to send [06:25:36]OFD Sender: No OFD packet to send [06:25:41]OFD Sender: No OFD packet to send [06:25:46]OFD Sender: No OFD packet to send [06:25:51]OFD Sender: No OFD packet to send [06:25:56]OFD Sender: No OFD packet to send [06:26:01]OFD Sender: No OFD packet to send [06:26:06]OFD Sender: No OFD packet to send [06:26:11]OFD Sender: No OFD packet to send [06:26:16]OFD Sender: No OFD packet to send [06:26:21]OFD Sender: No OFD packet to send [06:26:26]OFD Sender: No OFD packet to send [06:26:31]OFD Sender: No OFD packet to send [06:26:36]OFD Sender: No OFD packet to send [06:26:41]OFD Sender: No OFD packet to send [06:26:46]OFD Sender: No OFD packet to send [06:26:51]OFD Sender: No OFD packet to send [06:26:56]OFD Sender: No OFD packet to send [06:27:01]OFD Sender: No OFD packet to send [06:27:06]OFD Sender: No OFD packet to send [06:27:11]OFD Sender: No OFD packet to send [06:27:16]OFD Sender: No OFD packet to send [06:27:21]OFD Sender: No OFD packet to send [06:27:26]OFD Sender: No OFD packet to send [06:27:31]OFD Sender: No OFD packet to send [06:27:36]OFD Sender: No OFD packet to send [06:27:41]OFD Sender: No OFD packet to send [06:27:46]OFD Sender: No OFD packet to send [06:27:51]OFD Sender: No OFD packet to send [06:27:56]OFD Sender: No OFD packet to send [06:28:01]OFD Sender: No OFD packet to send [06:28:06]OFD Sender: No OFD packet to send [06:28:11]OFD Sender: No OFD packet to send [06:28:16]OFD Sender: No OFD packet to send [06:28:21]OFD Sender: No OFD packet to send [06:28:26]OFD Sender: No OFD packet to send [06:28:31]OFD Sender: No OFD packet to send [06:28:36]OFD Sender: No OFD packet to send [06:28:41]OFD Sender: No OFD packet to send [06:28:46]OFD Sender: No OFD packet to send [06:28:51]OFD Sender: No OFD packet to send [06:28:56]OFD Sender: No OFD packet to send [06:29:01]OFD Sender: No OFD packet to send [06:29:06]OFD Sender: No OFD packet to send [06:29:11]OFD Sender: No OFD packet to send [06:29:16]OFD Sender: No OFD packet to send [06:29:21]OFD Sender: No OFD packet to send [06:29:26]OFD Sender: No OFD packet to send [06:29:31]OFD Sender: No OFD packet to send [06:29:36]OFD Sender: No OFD packet to send [06:29:41]OFD Sender: No OFD packet to send [06:29:46]OFD Sender: No OFD packet to send [06:29:51]OFD Sender: No OFD packet to send [06:29:56]OFD Sender: No OFD packet to send [06:30:01]OFD Sender: No OFD packet to send [06:30:06]OFD Sender: No OFD packet to send [06:30:11]OFD Sender: No OFD packet to send [06:30:16]OFD Sender: No OFD packet to send [06:30:21]OFD Sender: No OFD packet to send [06:30:26]OFD Sender: No OFD packet to send [06:30:31]OFD Sender: No OFD packet to send [06:30:36]OFD Sender: No OFD packet to send [06:30:41]OFD Sender: No OFD packet to send [06:30:46]OFD Sender: No OFD packet to send [06:30:51]OFD Sender: No OFD packet to send [06:30:56]OFD Sender: No OFD packet to send [06:31:01]OFD Sender: No OFD packet to send [06:31:06]OFD Sender: No OFD packet to send [06:31:11]OFD Sender: No OFD packet to send [06:31:16]OFD Sender: No OFD packet to send [06:31:21]OFD Sender: No OFD packet to send [06:31:26]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:50]accept exits with 9 [06:38:50]New connection [06:38:50]New thread 3067514212 created [06:38:50]Thread 3067370852 joined [06:38:50]Waiting for new connection... [06:38:50] Sock 9.Parse request [06:38:50]Sock 9.Check first char [06:38:50]Sock 9.First char is OK [06:38:50]request: POST /json_proto HTTP/1.0 [06:38:50]Method: POST [06:38:50]URL: /json_proto [06:38:50]Method is POST - this is cgi request [06:38:50]url: /json_proto [06:38:50]query_string will be loaded in cgi processing [06:38:50]execute_cgi json_proto POST (null) [06:38:50]execute_cgi path=json_proto method=POST [06:38:50]POST find Content-Length [06:38:50]Host: 172.17.51.3:8080 [06:38:50]Content-Length: 682 [06:38:50]Content-Type: application/json [06:38:50] [06:38:50]POST finish read [06:38:50]Found Content-Length = 682 [06:38:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342621", "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" : 20.890, "sum" : 1550.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1550.00, "total" : 1550.00, "payments": [ { "type": 0, "sum" : 1550.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:38:50]execute_script... [06:38: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)342621", "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" : 20.890, "sum" : 1550.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1550.00, "total" : 1550.00, "payments": [ { "type": 0, "sum" : 1550.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:38:50]POST & json_proto [06:38:50]process_json_proto [06:38:50]json parsed OK: [06:38:50]protocol is kg_v1.0 [06:38:50]action value=close_receipt [06:38:50]process_action close_receipt [06:38:50]cmd_close_receipt [06:38:50]MH_GetDate [06:38:50]Write to MH i2c: F0 00 00 41 65 95 [06:38:50]Write i2c OK [06:38:50]MH_I2C_Read... [06:38:50]Read from MH i2c: F0 [06:38:50]MH_I2C_Read... [06:38:50]Read from MH i2c: F0 09 00 [06:38:50]MH_I2C_Read... [06:38:50]Read from MH i2c: F0 09 00 41 65 00 82 A5 14 67 04 C1 95 66 00 [06:38:50]GetLastDocTimeStamp 1729402999 [06:38:50]current date 1729406338 [06:38:50]FM_GetShiftState [06:38:50]SAM_PROTO_GetShiftState [06:38:50]wFMCommunicate request_size=4 [06:38:50]MH_SAM_APDU [06:38:50]CAPDU: 80 13 01 00 [06:38:50]Write to MH i2c: E2 08 00 42 65 80 13 01 00 00 00 00 00 24 [06:38:50]Write i2c OK [06:38:50]MH_I2C_Read... [06:38:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:38:50]Read from MH i2c: E2 [06:38:50]MH_I2C_Read... [06:38:50]Read from MH i2c: E2 0E 00 [06:38:50]MH_I2C_Read... [06:38:50]Read from MH i2c: E2 0E 00 42 65 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 0A [06:38:50]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [06:38:50]wFMCommunicate OK [06:38:50]SAM_PROTO_GetShiftState done [06:38:50]FM_GetShiftState done [06:38:50]opened in 1729384718 [06:38:50]opened+sec_in_day 1729471118 [06:38:50]quantity*price = 155003 [06:38:50]sum+1 = 155005 [06:38:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 1550.00 Внесено: 1550.00 СДАЧА: 0.00 НСП 1% : 13.72 НДС 12% : 164.61 Наличными: 1550.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 14 20.10.2024 06:38 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30232 ФПД: 149730846943469 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T063858&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30232&fm=149730846943469&tin=02508201610067®Number=0000000000186857&sum=155000 [06:38:51]StoreToDocumentArchive [06:38:51]shift 114 fd 30232 [06:38:51]save to /storage/0114/doc_00030232 [06:38:51]save last doc name /storage/0114/doc_00030232 to /storage/kkm_last_doc_name [06:38:51]save OK [06:38:51]Clear old archive folders... [06:38:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:38:51]tlvbuf is 00BA7B50 [06:38:51]SAM_PROTO_ClearQueue [06:38:51]wFMCommunicate request_size=4 [06:38:51]MH_SAM_APDU [06:38:51]CAPDU: 80 09 00 00 [06:38:51]Write to MH i2c: E2 08 00 4F 65 80 09 00 00 00 00 00 00 26 [06:38:51]Write i2c OK [06:38:51]MH_I2C_Read... [06:38:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:38:51]Read from MH i2c: E2 [06:38:51]MH_I2C_Read... [06:38:51]Read from MH i2c: E2 03 00 [06:38:51]MH_I2C_Read... [06:38:51]Read from MH i2c: E2 03 00 4F 65 00 90 00 28 [06:38:51]RAPDU: 90 00 [06:38:51]wFMCommunicate OK [06:38:51]SAM_PROTO_ClearQueue done [06:38:51]KKMCreateOFDPacket [06:38:51]OFDProtocolAddRootSTLVToBuf [06:38:51]FM_MakeSignedData [06:38:51]FM_MakeSignedData [06:38:51]SAM_PROTO_SignData [06:38:51]wFMCommunicate request_size=4 [06:38:51]MH_SAM_APDU [06:38:51]CAPDU: 80 0D 01 02 [06:38:51]Write to MH i2c: E2 08 00 50 65 80 0D 01 02 00 00 00 00 2E [06:38:51]Write i2c OK [06:38:51]MH_I2C_Read... [06:38:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:38:51]Read from MH i2c: E2 [06:38:51]MH_I2C_Read... [06:38:51]Read from MH i2c: E2 03 00 [06:38:51]MH_I2C_Read... [06:38:51]OFD Sender: No OFD packet to send [06:38:51]Read from MH i2c: E2 03 00 50 65 00 90 00 29 [06:38:51]RAPDU: 90 00 [06:38:51]wFMCommunicate OK [06:38:51]wFMCommunicate request_size=255 [06:38:51]MH_SAM_APDU [06:38:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 9A 51 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C 5D 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 5D 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5C 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4D 40 00 00 00 00 07 04 06 00 78 5D 02 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 82 A5 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 88 [06:38:51]Write to MH i2c: E2 02 01 51 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 9A 51 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C 5D 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 5D 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5C 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4D 40 00 00 00 00 07 04 06 00 78 5D 02 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 82 A5 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 88 00 00 F1 [06:38:51]Write i2c OK [06:38:51]MH_I2C_Read... [06:38:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:38:52]Read from MH i2c: E2 [06:38:52]MH_I2C_Read... [06:38:52]Read from MH i2c: E2 03 00 [06:38:52]MH_I2C_Read... [06:38:52]Read from MH i2c: E2 03 00 51 65 00 90 00 2A [06:38:52]RAPDU: 90 00 [06:38:52]wFMCommunicate OK [06:38:52]wFMCommunicate request_size=10 [06:38:52]MH_SAM_APDU [06:38:52]CAPDU: 80 0D 02 02 05 2D ED F1 A8 ED [06:38:52]Write to MH i2c: E2 0D 00 52 65 80 0D 02 02 05 00 2D ED F1 A8 ED 00 00 DB [06:38:52]Write i2c OK [06:38:52]MH_I2C_Read... [06:38:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:38:52]Read from MH i2c: E2 [06:38:52]MH_I2C_Read... [06:38:52]Read from MH i2c: E2 03 00 [06:38:52]MH_I2C_Read... [06:38:52]Read from MH i2c: E2 03 00 52 65 00 90 00 2B [06:38:52]RAPDU: 90 00 [06:38:52]wFMCommunicate OK [06:38:52]wFMCommunicate request_size=4 [06:38:52]MH_SAM_APDU [06:38:52]CAPDU: 80 0D 03 02 [06:38:52]Write to MH i2c: E2 08 00 53 65 80 0D 03 02 00 00 00 00 33 [06:38:52]Write i2c OK [06:38:52]MH_I2C_Read... [06:38:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:38:52]Read from MH i2c: E2 [06:38:52]MH_I2C_Read... [06:38:52]Read from MH i2c: E2 0B 00 [06:38:52]MH_I2C_Read... [06:38:52]Read from MH i2c: E2 0B 00 53 65 00 FA 0A 34 21 DE 5B 7E F4 90 00 38 [06:38:52]RAPDU: FA 0A 34 21 DE 5B 7E F4 90 00 [06:38:52]wFMCommunicate OK [06:38:52]SAM_PROTO_SignData done [06:38:52]FM_MakeSignedData done [06:38:52]CreateOFDProtocolMessage [06:38:52]wFMCommunicate request_size=4 [06:38:52]MH_SAM_APDU [06:38:52]CAPDU: 80 11 00 00 [06:38:52]Write to MH i2c: E2 08 00 54 65 80 11 00 00 00 00 00 00 33 [06:38:52]Write i2c OK [06:38:52]MH_I2C_Read... [06:38:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:38:52]Read from MH i2c: E2 [06:38:52]MH_I2C_Read... [06:38:52]Read from MH i2c: E2 17 00 [06:38:52]MH_I2C_Read... [06:38:52]Read from MH i2c: E2 17 00 54 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 81 [06:38:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [06:38:52]wFMCommunicate OK [06:38:52]CreateOFDProtocolMessage done [06:38:52]OFDSenderStorePacket 30232 [06:38:52]StoreOFDPacket docnum=30232 [06:38: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 87 AA 07 01 F3 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 9A 51 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C 5D 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 5D 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5C 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4D 40 00 00 00 00 07 04 06 00 78 5D 02 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 82 A5 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 88 2D ED F1 A8 ED FA 0A 34 21 DE 5B 7E F4 [06:38:52]CheckFolder [06:38:52]dirname=/storage/ofd_packets [06:38:52]CheckFolder done [06:38:52]ProducePacketName [06:38:52]name=ofd_packets/00030232 [06:38:52]NVStorageSaveData ofd_packets/00030232 [06:38:52]File name is /storage/ofd_packets/00030232 [06:38:52]Write 301 bytes [06:38:52]NVStorageSaveData done [06:38:52]OFDSenderStorePacket done [06:38:52]KKMCreateOFDPacket done [06:38:52]NVStorageSaveData kkm_last_timestamp [06:38:52]File name is /storage/kkm_last_timestamp [06:38:52]Write 4 bytes [06:38:52]NVStorageSaveData done [06:38:52]ExternCall_PrintAddStr [06:38:52]wPrintStart [06:38:52]Write to MH i2c: 01 00 00 55 65 BA [06:38:52]Write i2c OK [06:38:52]MH_I2C_Read... [06:38:52]Read from MH i2c: 01 [06:38:52]MH_I2C_Read... [06:38:52]Read from MH i2c: 01 07 00 [06:38:52]MH_I2C_Read... [06:38:52]Read from MH i2c: 01 07 00 55 65 00 00 00 00 00 FF 0F CF [06:38:52]RasterBufferAndPrint [06:38:52]line Счет N : (1)342621 [06:38:52]line ИНН: 02508201610067 [06:38:52]line Контрольно-Кассовый Чек [06:38:52]line ПРОДАЖА [06:38:52]line ТРК (МРК, ГНК) : 52 [06:38:52]line Товар: 2710124500 [06:38:52]line Аи-95-К-3 [06:38:52]line 20.890 * 74.20 [06:38:52]line = 1550.04 [06:38:52]line НДС 12% НСП 1% [06:38:52]line > о реализуемом товаре [06:38:52]line ОКРУГЛЕНИЕ: -0.04 [06:38:52]line ИТОГО: 1550.00 [06:38:52]line Внесено: 1550.00 [06:38:52]line СДАЧА: 0.00 [06:38:52]line НСП 1% : 13.72 [06:38:52]line НДС 12% : 164.61 [06:38:52]line Наличными: 1550.00 [06:38:52]line Безнал.: 0.00 [06:38:52]line Место: АЗС № 78 "Партнер Нефть" [06:38:52]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [06:38:52]line СНО: Общий режим [06:38:52]line Чек 14 20.10.2024 06:38 [06:38:52]line Смена: 114 ФФД: 1.0 [06:38:52]line ЗНМ: 0300000137 [06:38:52]line РНМ: 0000000000186857 [06:38:52]line Версия ККМ: v1.0 [06:38:52]line ФМ: 0000000002094219 [06:38:52]line ФД: 30232 [06:38:52]line ФПД: 149730846943469 [06:38:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T063858&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30232&fm=149730846943469&tin=02508201610067®Number=0000000000186857&sum=155000 [06:38:52]OFD Sender: Processing packet 30232 [packets to send 10, broken 9] [06:38:52]ProducePacketName [06:38:52]name=ofd_packets/00030232 [06:38:52]OFD Sender: To server: pG, [06:38:52]CommunicateWithHost lk.salyk.kg:30040 [06:38:52]ConnectInit lk.salyk.kg [06:38:52]written 0, free lines is 4095 [06:38:52]Connected sock=10 [06:38: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 87 AA 07 01 F3 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 9A 51 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C 5D 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 5D 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5C 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4D 40 00 00 00 00 07 04 06 00 78 5D 02 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 82 A5 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 88 2D ED F1 A8 ED FA 0A 34 21 DE 5B 7E F4 [06:38: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 93 30 47 00 E2 F4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 18 76 00 00 F4 03 04 00 07 50 14 67 B6 04 01 00 00 B4 C3 58 EE AB 6E 1A FC [06:38:53]CommunicateWithHost err = 0 [06:38:53]CheckOFDResponse [06:38:53]1017 (14) - 77093643461234 [06:38:53]1041 (16) - 0000000002094219 [06:38:53]1040 (4) - 30232 [06:38:53]1012 (4) - 20.10.2024 00:34 [06:38:53]1206 (1) - 0 [06:38:53]OFD Sender: Remove packet 30232 [06:38:53]ProducePacketName [06:38:53]name=ofd_packets/00030232 [06:38:53]NVStorageDeleteData [06:38:53]Write to MH i2c: 01 00 00 80 65 E5 [06:38:53]Write i2c OK [06:38:53]MH_I2C_Read... [06:38:53]Read from MH i2c: 01 [06:38:53]MH_I2C_Read... [06:38:53]Read from MH i2c: 01 07 00 [06:38:53]MH_I2C_Read... [06:38:53]Read from MH i2c: 01 07 00 80 65 00 00 00 00 00 F3 0C EB [06:38:53]RasterBufferAndPrint [06:38:53]line [06:38:53]line [06:38:53]line [06:38:53]line [06:38:53]line [06:38:53]written 0, free lines is 3324 [06:38:53]MH_Cut [06:38:53]Write to MH i2c: D1 01 00 87 65 01 BE [06:38:53]Write i2c OK [06:38:53]MH_I2C_Read... [06:38:53]Read from MH i2c: D1 [06:38:53]MH_I2C_Read... [06:38:53]Read from MH i2c: D1 01 00 [06:38:53]MH_I2C_Read... [06:38:53]Read from MH i2c: D1 01 00 87 65 00 BD [06:38:53]Write to MH i2c: 01 00 00 88 65 ED [06:38:53]Write i2c OK [06:38:53]MH_I2C_Read... [06:38:53]OFD Sender: No OFD packet to send [06:38:53]*** Cut start [06:38:53]*** Partial cut [06:38:53]*** CUTSNS_PIN = 1 [06:38:53]*** CUTSNS_PIN = 0 [06:38:54]*** Brake cut motor [06:38:54]Read from MH i2c: 01 [06:38:54]MH_I2C_Read... [06:38:54]*** Stop cut motor [06:38:54]*** Cut end [06:38:54]Read from MH i2c: 01 07 00 [06:38:54]MH_I2C_Read... [06:38:54]Read from MH i2c: 01 07 00 88 65 00 00 00 00 00 FF 0F 02 [06:38:54]process_action close_receipt done [06:38:54]requested_data is exist [06:38:54]produce_requested_data [06:38:54]requested_item fm.sn is exist - process it [06:38:54]wFMCommunicate request_size=4 [06:38:54]MH_SAM_APDU [06:38:54]CAPDU: 80 11 00 00 [06:38:54]Write to MH i2c: E2 08 00 89 65 80 11 00 00 00 00 00 00 68 [06:38:54]Write i2c OK [06:38:54]MH_I2C_Read... [06:38:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:38:54]Read from MH i2c: E2 [06:38:54]MH_I2C_Read... [06:38:54]Read from MH i2c: E2 17 00 [06:38:54]MH_I2C_Read... [06:38:54]Read from MH i2c: E2 17 00 89 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 B6 [06:38:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [06:38:54]wFMCommunicate OK [06:38:54]requested_item fd.num is exist - process it [06:38:54]SAM_PROTO_GetFieldsCounters [06:38:54]wFMCommunicate request_size=4 [06:38:54]MH_SAM_APDU [06:38:54]CAPDU: 80 13 00 00 [06:38:54]Write to MH i2c: E2 08 00 8A 65 80 13 00 00 00 00 00 00 6B [06:38:54]Write i2c OK [06:38:54]MH_I2C_Read... [06:38:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:38:54]Read from MH i2c: E2 [06:38:54]MH_I2C_Read... [06:38:54]Read from MH i2c: E2 62 00 [06:38:54]MH_I2C_Read... [06:38:54]Read from MH i2c: E2 62 00 8A 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 76 00 00 0E 04 04 00 72 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 BB [06:38: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 18 76 00 00 0E 04 04 00 72 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 [06:38:54]wFMCommunicate OK [06:38:54]SAM_PROTO_GetFieldsCounters done [06:38:54]requested_item shift.num is exist - process it [06:38:54]requested_item shift.opened is exist - process it [06:38:54]req_shift_opened [06:38:54]FM_GetShiftState [06:38:54]SAM_PROTO_GetShiftState [06:38:54]wFMCommunicate request_size=4 [06:38:54]MH_SAM_APDU [06:38:54]CAPDU: 80 13 01 00 [06:38:54]Write to MH i2c: E2 08 00 8B 65 80 13 01 00 00 00 00 00 6D [06:38:54]Write i2c OK [06:38:54]MH_I2C_Read... [06:38:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:38:54]Read from MH i2c: E2 [06:38:54]MH_I2C_Read... [06:38:54]Read from MH i2c: E2 0E 00 [06:38:54]MH_I2C_Read... [06:38:54]Read from MH i2c: E2 0E 00 8B 65 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 53 [06:38:54]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [06:38:54]wFMCommunicate OK [06:38:54]SAM_PROTO_GetShiftState done [06:38:54]FM_GetShiftState done [06:38:54]req_shift_opened done [06:38:54]requested_item shift.open_date is exist - process it [06:38:54]req_shift_open_date [06:38:54]req_shift_open_date done [06:38:54]produce_requested_data done [06:38:54]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30232,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [06:38:54]process_action_free close_receipt [06:38:54]json_value_free [06:38:54]json_value_free done [06:38:54]process_json_proto returns [06:38:54]Send response to host [06:38:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30232,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [06:38:54]free response buf [06:38:54]execute_script done [06:38:54]execute_script returns [06:38:54]free content buf [06:38:54]Sock 9.Close socket [06:38:54]Sock 9.Thread stoped [06:38:58]OFD Sender: No OFD packet to send [06:39:03]OFD Sender: No OFD packet to send [06:39:08]OFD Sender: No OFD packet to send [06:39:13]OFD Sender: No OFD packet to send [06:39:18]OFD Sender: No OFD packet to send [06:39:23]OFD Sender: No OFD packet to send [06:39:28]OFD Sender: No OFD packet to send [06:39:33]OFD Sender: No OFD packet to send [06:39:38]OFD Sender: No OFD packet to send [06:39:43]OFD Sender: No OFD packet to send [06:39:48]OFD Sender: No OFD packet to send [06:39:53]OFD Sender: No OFD packet to send [06:39:58]OFD Sender: No OFD packet to send [06:40:03]OFD Sender: No OFD packet to send [06:40:08]OFD Sender: No OFD packet to send [06:40:13]OFD Sender: No OFD packet to send [06:40:18]OFD Sender: No OFD packet to send [06:40:23]OFD Sender: No OFD packet to send [06:40:28]OFD Sender: No OFD packet to send [06:40:33]OFD Sender: No OFD packet to send [06:40:38]OFD Sender: No OFD packet to send [06:40:43]OFD Sender: No OFD packet to send [06:40:48]OFD Sender: No OFD packet to send [06:40:53]OFD Sender: No OFD packet to send [06:40:58]OFD Sender: No OFD packet to send [06:41:03]OFD Sender: No OFD packet to send [06:41:08]OFD Sender: No OFD packet to send [06:41:13]OFD Sender: No OFD packet to send [06:41:18]OFD Sender: No OFD packet to send [06:41:23]OFD Sender: No OFD packet to send [06:41:28]OFD Sender: No OFD packet to send [06:41:33]OFD Sender: No OFD packet to send [06:41:38]OFD Sender: No OFD packet to send [06:41:43]OFD Sender: No OFD packet to send [06:41:48]OFD Sender: No OFD packet to send [06:41:53]OFD Sender: No OFD packet to send [06:41:58]OFD Sender: No OFD packet to send [06:42:03]OFD Sender: No OFD packet to send [06:42:08]OFD Sender: No OFD packet to send [06:42:13]OFD Sender: No OFD packet to send [06:42:18]OFD Sender: No OFD packet to send [06:42:23]OFD Sender: No OFD packet to send [06:42:28]OFD Sender: No OFD packet to send [06:42:33]OFD Sender: No OFD packet to send [06:42:38]OFD Sender: No OFD packet to send [06:42:43]OFD Sender: No OFD packet to send [06:42:48]OFD Sender: No OFD packet to send [06:42:53]OFD Sender: No OFD packet to send [06:42:58]OFD Sender: No OFD packet to send [06:43:03]OFD Sender: No OFD packet to send [06:43:08]OFD Sender: No OFD packet to send [06:43:13]OFD Sender: No OFD packet to send [06:43:18]OFD Sender: No OFD packet to send [06:43:23]OFD Sender: No OFD packet to send [06:43:28]OFD Sender: No OFD packet to send [06:43:33]OFD Sender: No OFD packet to send [06:43:38]OFD Sender: No OFD packet to send [06:43:43]OFD Sender: No OFD packet to send [06:43:48]OFD Sender: No OFD packet to send [06:43:53]OFD Sender: No OFD packet to send [06:43:58]OFD Sender: No OFD packet to send [06:44:03]OFD Sender: No OFD packet to send [06:44:08]OFD Sender: No OFD packet to send [06:44:13]OFD Sender: No OFD packet to send [06:44:18]OFD Sender: No OFD packet to send [06:44:23]OFD Sender: No OFD packet to send [06:44:28]OFD Sender: No OFD packet to send [06:44:33]OFD Sender: No OFD packet to send [06:44:38]OFD Sender: No OFD packet to send [06:44:43]OFD Sender: No OFD packet to send [06:44:48]OFD Sender: No OFD packet to send [06:44:53]OFD Sender: No OFD packet to send [06:44:58]OFD Sender: No OFD packet to send [06:45:03]OFD Sender: No OFD packet to send [06:45:08]OFD Sender: No OFD packet to send [06:45:13]OFD Sender: No OFD packet to send [06:45:18]OFD Sender: No OFD packet to send [06:45:23]OFD Sender: No OFD packet to send [06:45:28]OFD Sender: No OFD packet to send [06:45:33]OFD Sender: No OFD packet to send [06:45:38]OFD Sender: No OFD packet to send [06:45:43]OFD Sender: No OFD packet to send [06:45:48]OFD Sender: No OFD packet to send [06:45:53]OFD Sender: No OFD packet to send [06:45:58]OFD Sender: No OFD packet to send [06:46:03]OFD Sender: No OFD packet to send [06:46:08]OFD Sender: No OFD packet to send [06:46:13]OFD Sender: No OFD packet to send [06:46:18]OFD Sender: No OFD packet to send [06:46:23]OFD Sender: No OFD packet to send [06:46:28]OFD Sender: No OFD packet to send [06:46:33]OFD Sender: No OFD packet to send [06:46:38]OFD Sender: No OFD packet to send [06:46:43]OFD Sender: No OFD packet to send [06:46:48]OFD Sender: No OFD packet to send [06:46:53]OFD Sender: No OFD packet to send [06:46:58]OFD Sender: No OFD packet to send [06:47:03]OFD Sender: No OFD packet to send [06:47:08]OFD Sender: No OFD packet to send [06:47:13]OFD Sender: No OFD packet to send [06:47:18]OFD Sender: No OFD packet to send [06:47:23]OFD Sender: No OFD packet to send [06:47:28]OFD Sender: No OFD packet to send [06:47:33]OFD Sender: No OFD packet to send [06:47:38]OFD Sender: No OFD packet to send [06:47:43]OFD Sender: No OFD packet to send [06:47:48]OFD Sender: No OFD packet to send [06:47:53]OFD Sender: No OFD packet to send [06:47:58]OFD Sender: No OFD packet to send [06:48:03]OFD Sender: No OFD packet to send [06:48:08]OFD Sender: No OFD packet to send [06:48:13]OFD Sender: No OFD packet to send [06:48:18]OFD Sender: No OFD packet to send [06:48:23]OFD Sender: No OFD packet to send [06:48:28]OFD Sender: No OFD packet to send [06:48:33]OFD Sender: No OFD packet to send [06:48:38]OFD Sender: No OFD packet to send [06:48:44]OFD Sender: No OFD packet to send [06:48:49]OFD Sender: No OFD packet to send [06:48:54]OFD Sender: No OFD packet to send [06:48:59]OFD Sender: No OFD packet to send [06:49:04]OFD Sender: No OFD packet to send [06:49:09]OFD Sender: No OFD packet to send [06:49:14]OFD Sender: No OFD packet to send [06:49:19]OFD Sender: No OFD packet to send [06:49:24]OFD Sender: No OFD packet to send [06:49:29]OFD Sender: No OFD packet to send [06:49:34]OFD Sender: No OFD packet to send [06:49:39]OFD Sender: No OFD packet to send [06:49:44]OFD Sender: No OFD packet to send [06:49:49]OFD Sender: No OFD packet to send [06:49:54]OFD Sender: No OFD packet to send [06:49:59]OFD Sender: No OFD packet to send [06:50:04]OFD Sender: No OFD packet to send [06:50:09]OFD Sender: No OFD packet to send [06:50:14]OFD Sender: No OFD packet to send [06:50:19]OFD Sender: No OFD packet to send [06:50:24]OFD Sender: No OFD packet to send [06:50:29]OFD Sender: No OFD packet to send [06:50:33]accept exits with 7 [06:50:33]New connection [06:50:33]New thread 3067370852 created [06:50:33]Thread 3067514212 joined [06:50:33]Waiting for new connection... [06:50:33] Sock 7.Parse request [06:50:33]Sock 7.Check first char [06:50:33]Sock 7.First char is OK [06:50:33]request: POST /json_proto HTTP/1.0 [06:50:33]Method: POST [06:50:33]URL: /json_proto [06:50:33]Method is POST - this is cgi request [06:50:33]url: /json_proto [06:50:33]query_string will be loaded in cgi processing [06:50:33]execute_cgi json_proto POST (null) [06:50:33]execute_cgi path=json_proto method=POST [06:50:33]POST find Content-Length [06:50:33]Host: 172.17.51.3:8080 [06:50:33]Content-Length: 682 [06:50:33]Content-Type: application/json [06:50:33] [06:50:33]POST finish read [06:50:33]Found Content-Length = 682 [06:50:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342622", "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:50:33]execute_script... [06:50:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342622", "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:50:33]POST & json_proto [06:50:33]process_json_proto [06:50:33]json parsed OK: [06:50:33]protocol is kg_v1.0 [06:50:33]action value=close_receipt [06:50:33]process_action close_receipt [06:50:33]cmd_close_receipt [06:50:33]MH_GetDate [06:50:33]Write to MH i2c: F0 00 00 8C 65 E0 [06:50:33]Write i2c OK [06:50:33]MH_I2C_Read... [06:50:33]Read from MH i2c: F0 [06:50:33]MH_I2C_Read... [06:50:33]Read from MH i2c: F0 09 00 [06:50:33]MH_I2C_Read... [06:50:33]Read from MH i2c: F0 09 00 8C 65 00 41 A8 14 67 04 C1 95 66 0D [06:50:33]GetLastDocTimeStamp 1729406338 [06:50:33]current date 1729407041 [06:50:33]FM_GetShiftState [06:50:33]SAM_PROTO_GetShiftState [06:50:33]wFMCommunicate request_size=4 [06:50:33]MH_SAM_APDU [06:50:33]CAPDU: 80 13 01 00 [06:50:33]Write to MH i2c: E2 08 00 8D 65 80 13 01 00 00 00 00 00 6F [06:50:33]Write i2c OK [06:50:33]MH_I2C_Read... [06:50:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:50:33]Read from MH i2c: E2 [06:50:33]MH_I2C_Read... [06:50:33]Read from MH i2c: E2 0E 00 [06:50:33]MH_I2C_Read... [06:50:33]Read from MH i2c: E2 0E 00 8D 65 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 55 [06:50:33]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [06:50:33]wFMCommunicate OK [06:50:33]SAM_PROTO_GetShiftState done [06:50:33]FM_GetShiftState done [06:50:33]opened in 1729384718 [06:50:33]opened+sec_in_day 1729471118 [06:50:33]quantity*price = 100015 [06:50:33]sum+1 = 100017 [06:50: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 СНО: Общий режим Чек 15 20.10.2024 06:50 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30233 ФПД: 268010816917648 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T065041&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30233&fm=268010816917648&tin=02508201610067®Number=0000000000186857&sum=100000 [06:50:34]StoreToDocumentArchive [06:50:34]shift 114 fd 30233 [06:50:34]save to /storage/0114/doc_00030233 [06:50:34]save last doc name /storage/0114/doc_00030233 to /storage/kkm_last_doc_name [06:50:34]save OK [06:50:34]Clear old archive folders... [06:50:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:50:34]tlvbuf is 00B6C910 [06:50:34]SAM_PROTO_ClearQueue [06:50:34]wFMCommunicate request_size=4 [06:50:34]MH_SAM_APDU [06:50:34]CAPDU: 80 09 00 00 [06:50:34]Write to MH i2c: E2 08 00 9A 65 80 09 00 00 00 00 00 00 71 [06:50:34]Write i2c OK [06:50:34]MH_I2C_Read... [06:50:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:50:34]Read from MH i2c: E2 [06:50:34]MH_I2C_Read... [06:50:34]Read from MH i2c: E2 03 00 [06:50:34]MH_I2C_Read... [06:50:34]Read from MH i2c: E2 03 00 9A 65 00 90 00 73 [06:50:34]RAPDU: 90 00 [06:50:34]wFMCommunicate OK [06:50:34]SAM_PROTO_ClearQueue done [06:50:34]KKMCreateOFDPacket [06:50:34]OFDProtocolAddRootSTLVToBuf [06:50:34]FM_MakeSignedData [06:50:34]FM_MakeSignedData [06:50:34]SAM_PROTO_SignData [06:50:34]wFMCommunicate request_size=4 [06:50:34]MH_SAM_APDU [06:50:34]CAPDU: 80 0D 01 02 [06:50:34]Write to MH i2c: E2 08 00 9B 65 80 0D 01 02 00 00 00 00 79 [06:50:34]Write i2c OK [06:50:34]MH_I2C_Read... [06:50:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:50:34]Read from MH i2c: E2 [06:50:34]MH_I2C_Read... [06:50:34]Read from MH i2c: E2 03 00 [06:50:34]MH_I2C_Read... [06:50:34]Read from MH i2c: E2 03 00 9B 65 00 90 00 74 [06:50:34]RAPDU: 90 00 [06:50:34]wFMCommunicate OK [06:50:34]wFMCommunicate request_size=255 [06:50:34]MH_SAM_APDU [06:50: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 0F 00 00 00 F4 03 04 00 41 A8 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 F3 [06:50:34]Write to MH i2c: E2 02 01 9C 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 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 0F 00 00 00 F4 03 04 00 41 A8 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 F3 00 00 6B [06:50:34]Write i2c OK [06:50:34]MH_I2C_Read... [06:50:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:50:34]Read from MH i2c: E2 [06:50:34]MH_I2C_Read... [06:50:34]Read from MH i2c: E2 03 00 [06:50:34]MH_I2C_Read... [06:50:34]Read from MH i2c: E2 03 00 9C 65 00 90 00 75 [06:50:34]RAPDU: 90 00 [06:50:34]wFMCommunicate OK [06:50:34]wFMCommunicate request_size=10 [06:50:34]MH_SAM_APDU [06:50:34]CAPDU: 80 0D 02 02 05 C1 21 89 D0 90 [06:50:34]Write to MH i2c: E2 0D 00 9D 65 80 0D 02 02 05 00 C1 21 89 D0 90 00 00 51 [06:50:34]Write i2c OK [06:50:34]MH_I2C_Read... [06:50:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:50:34]Read from MH i2c: E2 [06:50:34]MH_I2C_Read... [06:50:34]Read from MH i2c: E2 03 00 [06:50:34]MH_I2C_Read... [06:50:34]Read from MH i2c: E2 03 00 9D 65 00 90 00 76 [06:50:34]RAPDU: 90 00 [06:50:34]wFMCommunicate OK [06:50:34]wFMCommunicate request_size=4 [06:50:34]MH_SAM_APDU [06:50:34]CAPDU: 80 0D 03 02 [06:50:34]Write to MH i2c: E2 08 00 9E 65 80 0D 03 02 00 00 00 00 7E [06:50:34]Write i2c OK [06:50:34]MH_I2C_Read... [06:50:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:50:34]Read from MH i2c: E2 [06:50:34]MH_I2C_Read... [06:50:34]Read from MH i2c: E2 0B 00 [06:50:34]MH_I2C_Read... [06:50:34]Read from MH i2c: E2 0B 00 9E 65 00 72 23 D0 77 43 45 B1 9C 90 00 30 [06:50:34]RAPDU: 72 23 D0 77 43 45 B1 9C 90 00 [06:50:34]wFMCommunicate OK [06:50:34]SAM_PROTO_SignData done [06:50:34]FM_MakeSignedData done [06:50:34]CreateOFDProtocolMessage [06:50:34]wFMCommunicate request_size=4 [06:50:34]MH_SAM_APDU [06:50:34]CAPDU: 80 11 00 00 [06:50:34]Write to MH i2c: E2 08 00 9F 65 80 11 00 00 00 00 00 00 7E [06:50:34]Write i2c OK [06:50:34]MH_I2C_Read... [06:50:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:50:34]Read from MH i2c: E2 [06:50:34]MH_I2C_Read... [06:50:34]Read from MH i2c: E2 17 00 [06:50:34]MH_I2C_Read... [06:50:34]Read from MH i2c: E2 17 00 9F 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 CC [06:50:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [06:50:34]wFMCommunicate OK [06:50:34]CreateOFDProtocolMessage done [06:50:34]OFDSenderStorePacket 30233 [06:50:34]StoreOFDPacket docnum=30233 [06:50: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 2C 80 07 01 F7 0E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 0F 00 00 00 F4 03 04 00 41 A8 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 F3 C1 21 89 D0 90 72 23 D0 77 43 45 B1 9C [06:50:34]CheckFolder [06:50:34]dirname=/storage/ofd_packets [06:50:34]CheckFolder done [06:50:34]ProducePacketName [06:50:34]name=ofd_packets/00030233 [06:50:34]NVStorageSaveData ofd_packets/00030233 [06:50:34]File name is /storage/ofd_packets/00030233 [06:50:34]Write 301 bytes [06:50:34]NVStorageSaveData done [06:50:34]OFDSenderStorePacket done [06:50:34]KKMCreateOFDPacket done [06:50:34]NVStorageSaveData kkm_last_timestamp [06:50:34]File name is /storage/kkm_last_timestamp [06:50:34]Write 4 bytes [06:50:34]NVStorageSaveData done [06:50:34]ExternCall_PrintAddStr [06:50:34]wPrintStart [06:50:34]Write to MH i2c: 01 00 00 A0 65 05 [06:50:34]Write i2c OK [06:50:34]MH_I2C_Read... [06:50:34]Read from MH i2c: 01 [06:50:34]MH_I2C_Read... [06:50:34]Read from MH i2c: 01 07 00 [06:50:34]MH_I2C_Read... [06:50:34]Read from MH i2c: 01 07 00 A0 65 00 00 00 00 00 FF 0F 1A [06:50:34]RasterBufferAndPrint [06:50:34]line Счет N : (1)342622 [06:50:34]line ИНН: 02508201610067 [06:50:34]line Контрольно-Кассовый Чек [06:50:34]line ПРОДАЖА [06:50:34]line ТРК (МРК, ГНК) : 63 [06:50:34]line Товар: 2710124130 [06:50:34]line Аи-92-К-2 [06:50:34]line 14.950 * 66.90 [06:50:34]line = 1000.16 [06:50:34]line НДС 12% НСП 1% [06:50:34]line > о реализуемом товаре [06:50:34]line ОКРУГЛЕНИЕ: -0.16 [06:50:34]line ИТОГО: 1000.00 [06:50:34]line Внесено: 1000.00 [06:50:34]line СДАЧА: 0.00 [06:50:34]line НСП 1% : 8.85 [06:50:34]line НДС 12% : 106.21 [06:50:34]line Наличными: 1000.00 [06:50:34]line Безнал.: 0.00 [06:50:34]line Место: АЗС № 78 "Партнер Нефть" [06:50:34]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [06:50:34]line СНО: Общий режим [06:50:34]line Чек 15 20.10.2024 06:50 [06:50:34]line Смена: 114 ФФД: 1.0 [06:50:34]line ЗНМ: 0300000137 [06:50:34]line РНМ: 0000000000186857 [06:50:34]line Версия ККМ: v1.0 [06:50:34]line ФМ: 0000000002094219 [06:50:34]line ФД: 30233 [06:50:34]line ФПД: 268010816917648 [06:50:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T065041&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30233&fm=268010816917648&tin=02508201610067®Number=0000000000186857&sum=100000 [06:50:35]OFD Sender: Processing packet 30233 [packets to send 10, broken 9] [06:50:35]ProducePacketName [06:50:35]name=ofd_packets/00030233 [06:50:35]OFD Sender: To server: pG, [06:50:35]CommunicateWithHost lk.salyk.kg:30040 [06:50:35]ConnectInit lk.salyk.kg [06:50:35]written 0, free lines is 4095 [06:50:35]Connected sock=9 [06:50: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 2C 80 07 01 F7 0E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 0F 00 00 00 F4 03 04 00 41 A8 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 F3 C1 21 89 D0 90 72 23 D0 77 43 45 B1 9C [06:50: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 F7 3E 47 00 4F 5B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 19 76 00 00 F4 03 04 00 C5 52 14 67 B6 04 01 00 00 66 3D A0 D3 29 E9 D1 E8 [06:50:35]CommunicateWithHost err = 0 [06:50:35]CheckOFDResponse [06:50:35]1017 (14) - 77093643461234 [06:50:35]1041 (16) - 0000000002094219 [06:50:35]1040 (4) - 30233 [06:50:35]1012 (4) - 20.10.2024 00:45 [06:50:35]1206 (1) - 0 [06:50:35]OFD Sender: Remove packet 30233 [06:50:35]ProducePacketName [06:50:35]name=ofd_packets/00030233 [06:50:35]NVStorageDeleteData [06:50:35]Write to MH i2c: 01 00 00 CB 65 30 [06:50:35]Write i2c OK [06:50:35]MH_I2C_Read... [06:50:35]Read from MH i2c: 01 [06:50:35]MH_I2C_Read... [06:50:35]Read from MH i2c: 01 07 00 [06:50:35]MH_I2C_Read... [06:50:35]Read from MH i2c: 01 07 00 CB 65 00 00 00 00 00 EA 0C 2D [06:50:35]RasterBufferAndPrint [06:50:35]line [06:50:35]line [06:50:35]line [06:50:35]line [06:50:35]line [06:50:35]written 0, free lines is 3312 [06:50:35]MH_Cut [06:50:35]Write to MH i2c: D1 01 00 D2 65 01 09 [06:50:35]Write i2c OK [06:50:35]MH_I2C_Read... [06:50:35]Read from MH i2c: D1 [06:50:35]MH_I2C_Read... [06:50:35]Read from MH i2c: D1 01 00 [06:50:35]MH_I2C_Read... [06:50:35]Read from MH i2c: D1 01 00 D2 65 00 08 [06:50:35]Write to MH i2c: 01 00 00 D3 65 38 [06:50:35]Write i2c OK [06:50:35]MH_I2C_Read... [06:50:35]OFD Sender: No OFD packet to send [06:50:36]*** Cut start [06:50:36]*** Partial cut [06:50:36]*** CUTSNS_PIN = 1 [06:50:36]*** CUTSNS_PIN = 0 [06:50:36]*** Brake cut motor [06:50:36]Read from MH i2c: 01 [06:50:36]MH_I2C_Read... [06:50:36]*** Stop cut motor [06:50:36]*** Cut end [06:50:36]Read from MH i2c: 01 07 00 [06:50:36]MH_I2C_Read... [06:50:36]Read from MH i2c: 01 07 00 D3 65 00 00 00 00 00 FF 0F 4D [06:50:36]process_action close_receipt done [06:50:36]requested_data is exist [06:50:36]produce_requested_data [06:50:36]requested_item fm.sn is exist - process it [06:50:36]wFMCommunicate request_size=4 [06:50:36]MH_SAM_APDU [06:50:36]CAPDU: 80 11 00 00 [06:50:36]Write to MH i2c: E2 08 00 D4 65 80 11 00 00 00 00 00 00 B3 [06:50:36]Write i2c OK [06:50:36]MH_I2C_Read... [06:50:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:50:36]Read from MH i2c: E2 [06:50:36]MH_I2C_Read... [06:50:36]Read from MH i2c: E2 17 00 [06:50:36]MH_I2C_Read... [06:50:36]Read from MH i2c: E2 17 00 D4 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 01 [06:50:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [06:50:36]wFMCommunicate OK [06:50:36]requested_item fd.num is exist - process it [06:50:36]SAM_PROTO_GetFieldsCounters [06:50:36]wFMCommunicate request_size=4 [06:50:36]MH_SAM_APDU [06:50:36]CAPDU: 80 13 00 00 [06:50:36]Write to MH i2c: E2 08 00 D5 65 80 13 00 00 00 00 00 00 B6 [06:50:36]Write i2c OK [06:50:36]MH_I2C_Read... [06:50:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:50:37]Read from MH i2c: E2 [06:50:37]MH_I2C_Read... [06:50:37]Read from MH i2c: E2 62 00 [06:50:37]MH_I2C_Read... [06:50:37]Read from MH i2c: E2 62 00 D5 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 76 00 00 0E 04 04 00 72 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 0A [06:50: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 19 76 00 00 0E 04 04 00 72 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 [06:50:37]wFMCommunicate OK [06:50:37]SAM_PROTO_GetFieldsCounters done [06:50:37]requested_item shift.num is exist - process it [06:50:37]requested_item shift.opened is exist - process it [06:50:37]req_shift_opened [06:50:37]FM_GetShiftState [06:50:37]SAM_PROTO_GetShiftState [06:50:37]wFMCommunicate request_size=4 [06:50:37]MH_SAM_APDU [06:50:37]CAPDU: 80 13 01 00 [06:50:37]Write to MH i2c: E2 08 00 D6 65 80 13 01 00 00 00 00 00 B8 [06:50:37]Write i2c OK [06:50:37]MH_I2C_Read... [06:50:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:50:37]Read from MH i2c: E2 [06:50:37]MH_I2C_Read... [06:50:37]Read from MH i2c: E2 0E 00 [06:50:37]MH_I2C_Read... [06:50:37]Read from MH i2c: E2 0E 00 D6 65 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 9E [06:50:37]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [06:50:37]wFMCommunicate OK [06:50:37]SAM_PROTO_GetShiftState done [06:50:37]FM_GetShiftState done [06:50:37]req_shift_opened done [06:50:37]requested_item shift.open_date is exist - process it [06:50:37]req_shift_open_date [06:50:37]req_shift_open_date done [06:50:37]produce_requested_data done [06:50:37]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30233,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [06:50:37]process_action_free close_receipt [06:50:37]json_value_free [06:50:37]json_value_free done [06:50:37]process_json_proto returns [06:50:37]Send response to host [06:50:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30233,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [06:50:37]free response buf [06:50:37]execute_script done [06:50:37]execute_script returns [06:50:37]free content buf [06:50:37]Sock 7.Close socket [06:50:37]Sock 7.Thread stoped [06:50:40]OFD Sender: No OFD packet to send [06:50:45]OFD Sender: No OFD packet to send [06:50:50]OFD Sender: No OFD packet to send [06:50:55]OFD Sender: No OFD packet to send [06:51:00]OFD Sender: No OFD packet to send [06:51:05]OFD Sender: No OFD packet to send [06:51:10]OFD Sender: No OFD packet to send [06:51:15]OFD Sender: No OFD packet to send [06:51:20]OFD Sender: No OFD packet to send [06:51:25]OFD Sender: No OFD packet to send [06:51:31]OFD Sender: No OFD packet to send [06:51:36]OFD Sender: No OFD packet to send [06:51:41]OFD Sender: No OFD packet to send [06:51:46]OFD Sender: No OFD packet to send [06:51:51]OFD Sender: No OFD packet to send [06:51:56]OFD Sender: No OFD packet to send [06:52:01]OFD Sender: No OFD packet to send [06:52:06]OFD Sender: No OFD packet to send [06:52:11]OFD Sender: No OFD packet to send [06:52:16]OFD Sender: No OFD packet to send [06:52:21]OFD Sender: No OFD packet to send [06:52:26]OFD Sender: No OFD packet to send [06:52:31]OFD Sender: No OFD packet to send [06:52:36]OFD Sender: No OFD packet to send [06:52:41]OFD Sender: No OFD packet to send [06:52:46]OFD Sender: No OFD packet to send [06:52:51]OFD Sender: No OFD packet to send [06:52:56]OFD Sender: No OFD packet to send [06:53:01]OFD Sender: No OFD packet to send [06:53:06]OFD Sender: No OFD packet to send [06:53:11]OFD Sender: No OFD packet to send [06:53:16]OFD Sender: No OFD packet to send [06:53:21]OFD Sender: No OFD packet to send [06:53:26]OFD Sender: No OFD packet to send [06:53:31]OFD Sender: No OFD packet to send [06:53:36]OFD Sender: No OFD packet to send [06:53:41]OFD Sender: No OFD packet to send [06:53:46]OFD Sender: No OFD packet to send [06:53:51]OFD Sender: No OFD packet to send [06:53:56]OFD Sender: No OFD packet to send [06:54:01]OFD Sender: No OFD packet to send [06:54:06]OFD Sender: No OFD packet to send [06:54:11]OFD Sender: No OFD packet to send [06:54:16]OFD Sender: No OFD packet to send [06:54:21]OFD Sender: No OFD packet to send [06:54:26]OFD Sender: No OFD packet to send [06:54:31]OFD Sender: No OFD packet to send [06:54:36]OFD Sender: No OFD packet to send [06:54:41]OFD Sender: No OFD packet to send [06:54:46]OFD Sender: No OFD packet to send [06:54:51]OFD Sender: No OFD packet to send [06:54:56]OFD Sender: No OFD packet to send [06:55:01]OFD Sender: No OFD packet to send [06:55:06]OFD Sender: No OFD packet to send [06:55:11]OFD Sender: No OFD packet to send [06:55:16]OFD Sender: No OFD packet to send [06:55:21]OFD Sender: No OFD packet to send [06:55:26]OFD Sender: No OFD packet to send [06:55:31]OFD Sender: No OFD packet to send [06:55:36]OFD Sender: No OFD packet to send [06:55:41]OFD Sender: No OFD packet to send [06:55:46]OFD Sender: No OFD packet to send [06:55:51]OFD Sender: No OFD packet to send [06:55:56]OFD Sender: No OFD packet to send [06:56:01]OFD Sender: No OFD packet to send [06:56:06]OFD Sender: No OFD packet to send [06:56:11]OFD Sender: No OFD packet to send [06:56:16]OFD Sender: No OFD packet to send [06:56:21]OFD Sender: No OFD packet to send [06:56:26]OFD Sender: No OFD packet to send [06:56:31]OFD Sender: No OFD packet to send [06:56:36]OFD Sender: No OFD packet to send [06:56:41]OFD Sender: No OFD packet to send [06:56:46]OFD Sender: No OFD packet to send [06:56:51]OFD Sender: No OFD packet to send [06:56:51]accept exits with 10 [06:56:51]New connection [06:56:51]New thread 3067514212 created [06:56:51]Thread 3067370852 joined [06:56:51]Waiting for new connection... [06:56:51] Sock 10.Parse request [06:56:51]Sock 10.Check first char [06:56:51]Sock 10.First char is OK [06:56:51]request: POST /json_proto HTTP/1.0 [06:56:51]Method: POST [06:56:51]URL: /json_proto [06:56:51]Method is POST - this is cgi request [06:56:51]url: /json_proto [06:56:51]query_string will be loaded in cgi processing [06:56:51]execute_cgi json_proto POST (null) [06:56:51]execute_cgi path=json_proto method=POST [06:56:51]POST find Content-Length [06:56:51]Host: 172.17.51.3:8080 [06:56:51]Content-Length: 679 [06:56:51]Content-Type: application/json [06:56:51] [06:56:51]POST finish read [06:56:51]Found Content-Length = 679 [06:56:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342623", "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" : 15.750, "sum" : 1200.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:56:51]execute_script... [06:56:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342623", "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" : 15.750, "sum" : 1200.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:56:51]POST & json_proto [06:56:51]process_json_proto [06:56:51]json parsed OK: [06:56:51]protocol is kg_v1.0 [06:56:51]action value=close_receipt [06:56:51]process_action close_receipt [06:56:51]cmd_close_receipt [06:56:51]MH_GetDate [06:56:51]Write to MH i2c: F0 00 00 D7 65 2B [06:56:51]Write i2c OK [06:56:51]MH_I2C_Read... [06:56:51]Read from MH i2c: F0 [06:56:51]MH_I2C_Read... [06:56:51]Read from MH i2c: F0 09 00 [06:56:51]MH_I2C_Read... [06:56:51]Read from MH i2c: F0 09 00 D7 65 00 BB A9 14 67 04 C1 95 66 D3 [06:56:51]GetLastDocTimeStamp 1729407041 [06:56:51]current date 1729407419 [06:56:51]FM_GetShiftState [06:56:51]SAM_PROTO_GetShiftState [06:56:51]wFMCommunicate request_size=4 [06:56:51]MH_SAM_APDU [06:56:51]CAPDU: 80 13 01 00 [06:56:51]Write to MH i2c: E2 08 00 D8 65 80 13 01 00 00 00 00 00 BA [06:56:51]Write i2c OK [06:56:51]MH_I2C_Read... [06:56:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:56:51]Read from MH i2c: E2 [06:56:51]MH_I2C_Read... [06:56:51]Read from MH i2c: E2 0E 00 [06:56:51]MH_I2C_Read... [06:56:51]Read from MH i2c: E2 0E 00 D8 65 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 A0 [06:56:51]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [06:56:51]wFMCommunicate OK [06:56:51]SAM_PROTO_GetShiftState done [06:56:51]FM_GetShiftState done [06:56:51]opened in 1729384718 [06:56:51]opened+sec_in_day 1729471118 [06:56:51]quantity*price = 120015 [06:56:51]sum+1 = 120016 [06:56:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.15 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.45 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 16 20.10.2024 06:56 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30234 ФПД: 126257652292361 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T065659&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30234&fm=126257652292361&tin=02508201610067®Number=0000000000186857&sum=120000 [06:56:52]StoreToDocumentArchive [06:56:52]shift 114 fd 30234 [06:56:52]save to /storage/0114/doc_00030234 [06:56:52]save last doc name /storage/0114/doc_00030234 to /storage/kkm_last_doc_name [06:56:52]save OK [06:56:52]Clear old archive folders... [06:56:52]ProcessDocumentItem done err = 0, tmpTLVsize=248 [06:56:52]tlvbuf is 00B6C9F0 [06:56:52]SAM_PROTO_ClearQueue [06:56:52]wFMCommunicate request_size=4 [06:56:52]MH_SAM_APDU [06:56:52]CAPDU: 80 09 00 00 [06:56:52]Write to MH i2c: E2 08 00 E5 65 80 09 00 00 00 00 00 00 BC [06:56:52]Write i2c OK [06:56:52]MH_I2C_Read... [06:56:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:56:52]Read from MH i2c: E2 [06:56:52]MH_I2C_Read... [06:56:52]Read from MH i2c: E2 03 00 [06:56:52]MH_I2C_Read... [06:56:52]Read from MH i2c: E2 03 00 E5 65 00 90 00 BE [06:56:52]RAPDU: 90 00 [06:56:52]wFMCommunicate OK [06:56:52]SAM_PROTO_ClearQueue done [06:56:52]KKMCreateOFDPacket [06:56:52]OFDProtocolAddRootSTLVToBuf [06:56:52]FM_MakeSignedData [06:56:52]FM_MakeSignedData [06:56:52]SAM_PROTO_SignData [06:56:52]wFMCommunicate request_size=4 [06:56:52]MH_SAM_APDU [06:56:52]CAPDU: 80 0D 01 02 [06:56:52]Write to MH i2c: E2 08 00 E6 65 80 0D 01 02 00 00 00 00 C4 [06:56:52]Write i2c OK [06:56:52]MH_I2C_Read... [06:56:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:56:52]Read from MH i2c: E2 [06:56:52]MH_I2C_Read... [06:56:52]Read from MH i2c: E2 03 00 [06:56:52]MH_I2C_Read... [06:56:52]Read from MH i2c: E2 03 00 E6 65 00 90 00 BF [06:56:52]RAPDU: 90 00 [06:56:52]wFMCommunicate OK [06:56:52]wFMCommunicate request_size=255 [06:56:52]MH_SAM_APDU [06:56:52]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 BB A9 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 72 D4 A6 83 [06:56:52]Write to MH i2c: E2 02 01 E7 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 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 BB A9 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 72 D4 A6 83 00 00 19 [06:56:52]Write i2c OK [06:56:52]MH_I2C_Read... [06:56:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:56:53]Read from MH i2c: E2 [06:56:53]MH_I2C_Read... [06:56:53]Read from MH i2c: E2 03 00 [06:56:53]MH_I2C_Read... [06:56:53]Read from MH i2c: E2 03 00 E7 65 00 90 00 C0 [06:56:53]RAPDU: 90 00 [06:56:53]wFMCommunicate OK [06:56:53]wFMCommunicate request_size=7 [06:56:53]MH_SAM_APDU [06:56:53]CAPDU: 80 0D 02 02 02 DB 09 [06:56:53]Write to MH i2c: E2 0A 00 E8 65 80 0D 02 02 02 00 DB 09 00 00 AF [06:56:53]Write i2c OK [06:56:53]MH_I2C_Read... [06:56:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:56:53]Read from MH i2c: E2 [06:56:53]MH_I2C_Read... [06:56:53]Read from MH i2c: E2 03 00 [06:56:53]MH_I2C_Read... [06:56:53]Read from MH i2c: E2 03 00 E8 65 00 90 00 C1 [06:56:53]RAPDU: 90 00 [06:56:53]wFMCommunicate OK [06:56:53]wFMCommunicate request_size=4 [06:56:53]MH_SAM_APDU [06:56:53]CAPDU: 80 0D 03 02 [06:56:53]Write to MH i2c: E2 08 00 E9 65 80 0D 03 02 00 00 00 00 C9 [06:56:53]Write i2c OK [06:56:53]MH_I2C_Read... [06:56:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:56:53]Read from MH i2c: E2 [06:56:53]MH_I2C_Read... [06:56:53]Read from MH i2c: E2 0B 00 [06:56:53]MH_I2C_Read... [06:56:53]Read from MH i2c: E2 0B 00 E9 65 00 46 FA 74 79 2B 72 E8 0A 90 00 86 [06:56:53]RAPDU: 46 FA 74 79 2B 72 E8 0A 90 00 [06:56:53]wFMCommunicate OK [06:56:53]SAM_PROTO_SignData done [06:56:53]FM_MakeSignedData done [06:56:53]CreateOFDProtocolMessage [06:56:53]wFMCommunicate request_size=4 [06:56:53]MH_SAM_APDU [06:56:53]CAPDU: 80 11 00 00 [06:56:53]Write to MH i2c: E2 08 00 EA 65 80 11 00 00 00 00 00 00 C9 [06:56:53]Write i2c OK [06:56:53]MH_I2C_Read... [06:56:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:56:53]Read from MH i2c: E2 [06:56:53]MH_I2C_Read... [06:56:53]Read from MH i2c: E2 17 00 [06:56:53]MH_I2C_Read... [06:56:53]Read from MH i2c: E2 17 00 EA 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 17 [06:56:53]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:53]wFMCommunicate OK [06:56:53]CreateOFDProtocolMessage done [06:56:53]OFDSenderStorePacket 30234 [06:56:53]StoreOFDPacket docnum=30234 [06:56: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 EB 6C 04 01 19 71 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 BB A9 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 72 D4 A6 83 DB 09 46 FA 74 79 2B 72 E8 0A [06:56:53]CheckFolder [06:56:53]dirname=/storage/ofd_packets [06:56:53]CheckFolder done [06:56:53]ProducePacketName [06:56:53]name=ofd_packets/00030234 [06:56:53]NVStorageSaveData ofd_packets/00030234 [06:56:53]File name is /storage/ofd_packets/00030234 [06:56:53]Write 298 bytes [06:56:53]NVStorageSaveData done [06:56:53]OFDSenderStorePacket done [06:56:53]KKMCreateOFDPacket done [06:56:53]NVStorageSaveData kkm_last_timestamp [06:56:53]File name is /storage/kkm_last_timestamp [06:56:53]Write 4 bytes [06:56:53]NVStorageSaveData done [06:56:53]ExternCall_PrintAddStr [06:56:53]wPrintStart [06:56:53]Write to MH i2c: 01 00 00 EB 65 50 [06:56:53]Write i2c OK [06:56:53]MH_I2C_Read... [06:56:53]Read from MH i2c: 01 [06:56:53]MH_I2C_Read... [06:56:53]Read from MH i2c: 01 07 00 [06:56:53]MH_I2C_Read... [06:56:53]Read from MH i2c: 01 07 00 EB 65 00 00 00 00 00 FF 0F 65 [06:56:53]RasterBufferAndPrint [06:56:53]line Счет N : (1)342623 [06:56:53]line ИНН: 02508201610067 [06:56:53]line Контрольно-Кассовый Чек [06:56:53]line ПРОДАЖА [06:56:53]line ТРК (МРК, ГНК) : 54 [06:56:53]line Товар: 2710194210 [06:56:53]line ДТ-К-2 [06:56:53]line 15.750 * 76.20 [06:56:53]line = 1200.15 [06:56:53]line НДС 12% НСП 1% [06:56:53]line > о реализуемом товаре [06:56:53]line ОКРУГЛЕНИЕ: -0.15 [06:56:53]line ИТОГО: 1200.00 [06:56:53]line Внесено: 1200.00 [06:56:53]line СДАЧА: 0.00 [06:56:53]line НСП 1% : 10.62 [06:56:53]line НДС 12% : 127.45 [06:56:53]line Наличными: 1200.00 [06:56:53]line Безнал.: 0.00 [06:56:53]line Место: АЗС № 78 "Партнер Нефть" [06:56:53]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [06:56:53]line СНО: Общий режим [06:56:53]line Чек 16 20.10.2024 06:56 [06:56:53]line Смена: 114 ФФД: 1.0 [06:56:53]line ЗНМ: 0300000137 [06:56:53]line РНМ: 0000000000186857 [06:56:53]line Версия ККМ: v1.0 [06:56:53]line ФМ: 0000000002094219 [06:56:53]line ФД: 30234 [06:56:53]line ФПД: 126257652292361 [06:56:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T065659&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30234&fm=126257652292361&tin=02508201610067®Number=0000000000186857&sum=120000 [06:56:53]OFD Sender: Processing packet 30234 [packets to send 10, broken 9] [06:56:53]ProducePacketName [06:56:53]name=ofd_packets/00030234 [06:56:53]OFD Sender: To server: pG, [06:56:53]CommunicateWithHost lk.salyk.kg:30040 [06:56:53]ConnectInit lk.salyk.kg [06:56:53]written 0, free lines is 4095 [06:56:53]Connected sock=9 [06:56: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 EB 6C 04 01 19 71 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 BB A9 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 72 D4 A6 83 DB 09 46 FA 74 79 2B 72 E8 0A [06:56: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 DF DA 47 00 4F B9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 1A 76 00 00 F4 03 04 00 40 54 14 67 B6 04 01 00 00 9C 6C 73 65 BE 32 90 CD [06:56:53]CommunicateWithHost err = 0 [06:56:53]CheckOFDResponse [06:56:53]1017 (14) - 77093643461234 [06:56:53]1041 (16) - 0000000002094219 [06:56:53]1040 (4) - 30234 [06:56:53]1012 (4) - 20.10.2024 00:52 [06:56:53]1206 (1) - 0 [06:56:53]OFD Sender: Remove packet 30234 [06:56:53]ProducePacketName [06:56:53]name=ofd_packets/00030234 [06:56:53]NVStorageDeleteData [06:56:53]Write to MH i2c: 01 00 00 16 66 7C [06:56:53]Write i2c OK [06:56:53]MH_I2C_Read... [06:56:53]Read from MH i2c: 01 [06:56:53]MH_I2C_Read... [06:56:53]Read from MH i2c: 01 07 00 [06:56:53]MH_I2C_Read... [06:56:53]Read from MH i2c: 01 07 00 16 66 00 00 00 00 00 EC 0C 7B [06:56:53]RasterBufferAndPrint [06:56:53]line [06:56:53]line [06:56:53]line [06:56:53]line [06:56:53]line [06:56:53]written 0, free lines is 3317 [06:56:53]MH_Cut [06:56:53]Write to MH i2c: D1 01 00 1D 66 01 55 [06:56:53]Write i2c OK [06:56:53]MH_I2C_Read... [06:56:53]Read from MH i2c: D1 [06:56:53]MH_I2C_Read... [06:56:53]Read from MH i2c: D1 01 00 [06:56:53]MH_I2C_Read... [06:56:53]Read from MH i2c: D1 01 00 1D 66 00 54 [06:56:53]Write to MH i2c: 01 00 00 1E 66 84 [06:56:53]Write i2c OK [06:56:53]MH_I2C_Read... [06:56:54]OFD Sender: No OFD packet to send [06:56:54]*** Cut start [06:56:54]*** Partial cut [06:56:54]*** CUTSNS_PIN = 1 [06:56:54]*** CUTSNS_PIN = 0 [06:56:54]*** Brake cut motor [06:56:55]Read from MH i2c: 01 [06:56:55]MH_I2C_Read... [06:56:55]*** Stop cut motor [06:56:55]*** Cut end [06:56:55]Read from MH i2c: 01 07 00 [06:56:55]MH_I2C_Read... [06:56:55]Read from MH i2c: 01 07 00 1E 66 00 00 00 00 00 FF 0F 99 [06:56:55]process_action close_receipt done [06:56:55]requested_data is exist [06:56:55]produce_requested_data [06:56:55]requested_item fm.sn is exist - process it [06:56:55]wFMCommunicate request_size=4 [06:56:55]MH_SAM_APDU [06:56:55]CAPDU: 80 11 00 00 [06:56:55]Write to MH i2c: E2 08 00 1F 66 80 11 00 00 00 00 00 00 FF [06:56:55]Write i2c OK [06:56:55]MH_I2C_Read... [06:56:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:56:55]Read from MH i2c: E2 [06:56:55]MH_I2C_Read... [06:56:55]Read from MH i2c: E2 17 00 [06:56:55]MH_I2C_Read... [06:56:55]Read from MH i2c: E2 17 00 1F 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 4D [06:56:55]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:55]wFMCommunicate OK [06:56:55]requested_item fd.num is exist - process it [06:56:55]SAM_PROTO_GetFieldsCounters [06:56:55]wFMCommunicate request_size=4 [06:56:55]MH_SAM_APDU [06:56:55]CAPDU: 80 13 00 00 [06:56:55]Write to MH i2c: E2 08 00 20 66 80 13 00 00 00 00 00 00 02 [06:56:55]Write i2c OK [06:56:55]MH_I2C_Read... [06:56:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:56:55]Read from MH i2c: E2 [06:56:55]MH_I2C_Read... [06:56:55]Read from MH i2c: E2 62 00 [06:56:55]MH_I2C_Read... [06:56:55]Read from MH i2c: E2 62 00 20 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 1A 76 00 00 0E 04 04 00 72 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 5A [06:56: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 1A 76 00 00 0E 04 04 00 72 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 [06:56:55]wFMCommunicate OK [06:56:55]SAM_PROTO_GetFieldsCounters done [06:56:55]requested_item shift.num is exist - process it [06:56:55]requested_item shift.opened is exist - process it [06:56:55]req_shift_opened [06:56:55]FM_GetShiftState [06:56:55]SAM_PROTO_GetShiftState [06:56:55]wFMCommunicate request_size=4 [06:56:55]MH_SAM_APDU [06:56:55]CAPDU: 80 13 01 00 [06:56:55]Write to MH i2c: E2 08 00 21 66 80 13 01 00 00 00 00 00 04 [06:56:55]Write i2c OK [06:56:55]MH_I2C_Read... [06:56:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:56:55]Read from MH i2c: E2 [06:56:55]MH_I2C_Read... [06:56:55]Read from MH i2c: E2 0E 00 [06:56:55]MH_I2C_Read... [06:56:55]Read from MH i2c: E2 0E 00 21 66 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 EA [06:56:55]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [06:56:55]wFMCommunicate OK [06:56:55]SAM_PROTO_GetShiftState done [06:56:55]FM_GetShiftState done [06:56:55]req_shift_opened done [06:56:55]requested_item shift.open_date is exist - process it [06:56:55]req_shift_open_date [06:56:55]req_shift_open_date done [06:56:55]produce_requested_data done [06:56:55]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30234,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [06:56:55]process_action_free close_receipt [06:56:55]json_value_free [06:56:55]json_value_free done [06:56:55]process_json_proto returns [06:56:55]Send response to host [06:56:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30234,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [06:56:55]free response buf [06:56:55]execute_script done [06:56:55]execute_script returns [06:56:55]free content buf [06:56:55]Sock 10.Close socket [06:56:55]Sock 10.Thread stoped [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:00]accept exits with 7 [07:10:00]New connection [07:10:00]New thread 3067370852 created [07:10:00]Thread 3067514212 joined [07:10:00]Waiting for new connection... [07:10:00] Sock 7.Parse request [07:10:00]Sock 7.Check first char [07:10:00]Sock 7.First char is OK [07:10:00]request: POST /json_proto HTTP/1.0 [07:10:00]Method: POST [07:10:00]URL: /json_proto [07:10:00]Method is POST - this is cgi request [07:10:00]url: /json_proto [07:10:00]query_string will be loaded in cgi processing [07:10:00]execute_cgi json_proto POST (null) [07:10:00]execute_cgi path=json_proto method=POST [07:10:00]POST find Content-Length [07:10:00]Host: 172.17.51.3:8080 [07:10:00]Content-Length: 688 [07:10:00]Content-Type: application/json [07:10:00] [07:10:00]POST finish read [07:10:00]Found Content-Length = 688 [07:10:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342624", "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" ] } } [07:10:00]execute_script... [07:10: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)342624", "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" ] } } [07:10:00]POST & json_proto [07:10:00]process_json_proto [07:10:00]json parsed OK: [07:10:00]protocol is kg_v1.0 [07:10:00]action value=close_receipt [07:10:00]process_action close_receipt [07:10:00]cmd_close_receipt [07:10:00]MH_GetDate [07:10:00]Write to MH i2c: F0 00 00 22 66 77 [07:10:00]Write i2c OK [07:10:00]MH_I2C_Read... [07:10:00]Read from MH i2c: F0 [07:10:00]MH_I2C_Read... [07:10:00]Read from MH i2c: F0 09 00 [07:10:00]MH_I2C_Read... [07:10:00]Read from MH i2c: F0 09 00 22 66 00 D0 AC 14 67 04 C1 95 66 37 [07:10:00]GetLastDocTimeStamp 1729407419 [07:10:00]current date 1729408208 [07:10:00]FM_GetShiftState [07:10:00]SAM_PROTO_GetShiftState [07:10:00]wFMCommunicate request_size=4 [07:10:00]MH_SAM_APDU [07:10:00]CAPDU: 80 13 01 00 [07:10:00]Write to MH i2c: E2 08 00 23 66 80 13 01 00 00 00 00 00 06 [07:10:00]Write i2c OK [07:10:00]MH_I2C_Read... [07:10:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:10:00]Read from MH i2c: E2 [07:10:00]MH_I2C_Read... [07:10:00]Read from MH i2c: E2 0E 00 [07:10:00]MH_I2C_Read... [07:10:00]Read from MH i2c: E2 0E 00 23 66 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 EC [07:10:00]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [07:10:00]wFMCommunicate OK [07:10:00]SAM_PROTO_GetShiftState done [07:10:00]FM_GetShiftState done [07:10:00]opened in 1729384718 [07:10:00]opened+sec_in_day 1729471118 [07:10:00]quantity*price = 100051 [07:10:00]sum+1 = 100052 [07:10:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 17 20.10.2024 07:10 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30235 ФПД: 156451134124144 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T071008&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30235&fm=156451134124144&tin=02508201610067®Number=0000000000186857&sum=100000 [07:10:01]StoreToDocumentArchive [07:10:01]shift 114 fd 30235 [07:10:01]save to /storage/0114/doc_00030235 [07:10:01]save last doc name /storage/0114/doc_00030235 to /storage/kkm_last_doc_name [07:10:01]save OK [07:10:01]Clear old archive folders... [07:10:01]ProcessDocumentItem done err = 0, tmpTLVsize=257 [07:10:01]tlvbuf is 00A9B220 [07:10:01]SAM_PROTO_ClearQueue [07:10:01]wFMCommunicate request_size=4 [07:10:01]MH_SAM_APDU [07:10:01]CAPDU: 80 09 00 00 [07:10:01]Write to MH i2c: E2 08 00 30 66 80 09 00 00 00 00 00 00 08 [07:10:01]Write i2c OK [07:10:01]MH_I2C_Read... [07:10:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:10:01]Read from MH i2c: E2 [07:10:01]MH_I2C_Read... [07:10:01]Read from MH i2c: E2 03 00 [07:10:01]MH_I2C_Read... [07:10:01]Read from MH i2c: E2 03 00 30 66 00 90 00 0A [07:10:01]RAPDU: 90 00 [07:10:01]wFMCommunicate OK [07:10:01]SAM_PROTO_ClearQueue done [07:10:01]KKMCreateOFDPacket [07:10:01]OFDProtocolAddRootSTLVToBuf [07:10:01]FM_MakeSignedData [07:10:01]FM_MakeSignedData [07:10:01]SAM_PROTO_SignData [07:10:01]wFMCommunicate request_size=4 [07:10:01]MH_SAM_APDU [07:10:01]CAPDU: 80 0D 01 02 [07:10:01]Write to MH i2c: E2 08 00 31 66 80 0D 01 02 00 00 00 00 10 [07:10:01]Write i2c OK [07:10:01]MH_I2C_Read... [07:10:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:10:01]Read from MH i2c: E2 [07:10:01]MH_I2C_Read... [07:10:01]Read from MH i2c: E2 03 00 [07:10:01]MH_I2C_Read... [07:10:01]Read from MH i2c: E2 03 00 31 66 00 90 00 0B [07:10:01]RAPDU: 90 00 [07:10:01]wFMCommunicate OK [07:10:01]wFMCommunicate request_size=255 [07:10:01]MH_SAM_APDU [07:10:01]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 11 00 00 00 F4 03 04 00 D0 AC 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 [07:10:01]Write to MH i2c: E2 02 01 32 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 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 11 00 00 00 F4 03 04 00 D0 AC 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 00 75 [07:10:01]Write i2c OK [07:10:01]MH_I2C_Read... [07:10:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:10:02]Read from MH i2c: E2 [07:10:02]MH_I2C_Read... [07:10:02]Read from MH i2c: E2 03 00 [07:10:02]MH_I2C_Read... [07:10:02]Read from MH i2c: E2 03 00 32 66 00 90 00 0C [07:10:02]RAPDU: 90 00 [07:10:02]wFMCommunicate OK [07:10:02]wFMCommunicate request_size=16 [07:10:02]MH_SAM_APDU [07:10:02]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 8E 4A 9E 46 30 70 [07:10:02]Write to MH i2c: E2 13 00 33 66 80 0D 02 02 0B 00 00 35 04 06 00 8E 4A 9E 46 30 70 00 00 C4 [07:10:02]Write i2c OK [07:10:02]MH_I2C_Read... [07:10:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:10:02]Read from MH i2c: E2 [07:10:02]MH_I2C_Read... [07:10:02]Read from MH i2c: E2 03 00 [07:10:02]MH_I2C_Read... [07:10:02]Read from MH i2c: E2 03 00 33 66 00 90 00 0D [07:10:02]RAPDU: 90 00 [07:10:02]wFMCommunicate OK [07:10:02]wFMCommunicate request_size=4 [07:10:02]MH_SAM_APDU [07:10:02]CAPDU: 80 0D 03 02 [07:10:02]Write to MH i2c: E2 08 00 34 66 80 0D 03 02 00 00 00 00 15 [07:10:02]Write i2c OK [07:10:02]MH_I2C_Read... [07:10:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:10:02]Read from MH i2c: E2 [07:10:02]MH_I2C_Read... [07:10:02]Read from MH i2c: E2 0B 00 [07:10:02]MH_I2C_Read... [07:10:02]Read from MH i2c: E2 0B 00 34 66 00 87 F2 FD 9C D9 DC 8A 9F 90 00 06 [07:10:02]RAPDU: 87 F2 FD 9C D9 DC 8A 9F 90 00 [07:10:02]wFMCommunicate OK [07:10:02]SAM_PROTO_SignData done [07:10:02]FM_MakeSignedData done [07:10:02]CreateOFDProtocolMessage [07:10:02]wFMCommunicate request_size=4 [07:10:02]MH_SAM_APDU [07:10:02]CAPDU: 80 11 00 00 [07:10:02]Write to MH i2c: E2 08 00 35 66 80 11 00 00 00 00 00 00 15 [07:10:02]Write i2c OK [07:10:02]MH_I2C_Read... [07:10:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:10:02]Read from MH i2c: E2 [07:10:02]MH_I2C_Read... [07:10:02]Read from MH i2c: E2 17 00 [07:10:02]MH_I2C_Read... [07:10:02]Read from MH i2c: E2 17 00 35 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 63 [07:10:02]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:02]wFMCommunicate OK [07:10:02]CreateOFDProtocolMessage done [07:10:02]OFDSenderStorePacket 30235 [07:10:02]StoreOFDPacket docnum=30235 [07:10: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 15 01 00 00 8E 4F 0D 01 3D 88 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 11 00 00 00 F4 03 04 00 D0 AC 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 8E 4A 9E 46 30 70 87 F2 FD 9C D9 DC 8A 9F [07:10:02]CheckFolder [07:10:02]dirname=/storage/ofd_packets [07:10:02]CheckFolder done [07:10:02]ProducePacketName [07:10:02]name=ofd_packets/00030235 [07:10:02]NVStorageSaveData ofd_packets/00030235 [07:10:02]File name is /storage/ofd_packets/00030235 [07:10:02]Write 307 bytes [07:10:02]NVStorageSaveData done [07:10:02]OFDSenderStorePacket done [07:10:02]KKMCreateOFDPacket done [07:10:02]NVStorageSaveData kkm_last_timestamp [07:10:02]File name is /storage/kkm_last_timestamp [07:10:02]Write 4 bytes [07:10:02]NVStorageSaveData done [07:10:02]ExternCall_PrintAddStr [07:10:02]wPrintStart [07:10:02]Write to MH i2c: 01 00 00 36 66 9C [07:10:02]Write i2c OK [07:10:02]MH_I2C_Read... [07:10:02]Read from MH i2c: 01 [07:10:02]MH_I2C_Read... [07:10:02]Read from MH i2c: 01 07 00 [07:10:02]MH_I2C_Read... [07:10:02]Read from MH i2c: 01 07 00 36 66 00 00 00 00 00 FF 0F B1 [07:10:02]RasterBufferAndPrint [07:10:02]line Счет N : (1)342624 [07:10:02]line ИНН: 02508201610067 [07:10:02]line Контрольно-Кассовый Чек [07:10:02]line ПРОДАЖА [07:10:02]line ТРК (МРК, ГНК) : 51 [07:10:02]line Товар: 2710194210 [07:10:02]line D-ENERGY Дт-К-2 [07:10:02]line 12.960 * 77.20 [07:10:02]line = 1000.51 [07:10:02]line НДС 12% НСП 1% [07:10:02]line > о реализуемом товаре [07:10:02]line ОКРУГЛЕНИЕ: -0.51 [07:10:02]line ИТОГО: 1000.00 [07:10:02]line Внесено: 1000.00 [07:10:02]line СДАЧА: 0.00 [07:10:02]line НСП 1% : 8.85 [07:10:02]line НДС 12% : 106.25 [07:10:02]line Наличными: 1000.00 [07:10:02]line Безнал.: 0.00 [07:10:02]line Место: АЗС № 78 "Партнер Нефть" [07:10:02]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [07:10:02]line СНО: Общий режим [07:10:02]line Чек 17 20.10.2024 07:10 [07:10:02]line Смена: 114 ФФД: 1.0 [07:10:02]line ЗНМ: 0300000137 [07:10:02]line РНМ: 0000000000186857 [07:10:02]line Версия ККМ: v1.0 [07:10:02]line ФМ: 0000000002094219 [07:10:02]line ФД: 30235 [07:10:02]line ФПД: 156451134124144 [07:10:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T071008&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30235&fm=156451134124144&tin=02508201610067®Number=0000000000186857&sum=100000 [07:10:02]OFD Sender: Processing packet 30235 [packets to send 10, broken 9] [07:10:02]ProducePacketName [07:10:02]name=ofd_packets/00030235 [07:10:02]OFD Sender: To server: pG, [07:10:02]CommunicateWithHost lk.salyk.kg:30040 [07:10:02]ConnectInit lk.salyk.kg [07:10:02]written 0, free lines is 4095 [07:10:02]Connected sock=11 [07:10: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 15 01 00 00 8E 4F 0D 01 3D 88 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 11 00 00 00 F4 03 04 00 D0 AC 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 8E 4A 9E 46 30 70 87 F2 FD 9C D9 DC 8A 9F [07:10: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 11 6C 47 00 A3 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 1B 76 00 00 F4 03 04 00 55 57 14 67 B6 04 01 00 00 06 7A 14 88 C7 96 D2 BC [07:10:02]CommunicateWithHost err = 0 [07:10:02]CheckOFDResponse [07:10:02]1017 (14) - 77093643461234 [07:10:02]1041 (16) - 0000000002094219 [07:10:02]1040 (4) - 30235 [07:10:02]1012 (4) - 20.10.2024 01:05 [07:10:02]1206 (1) - 0 [07:10:02]OFD Sender: Remove packet 30235 [07:10:02]ProducePacketName [07:10:02]name=ofd_packets/00030235 [07:10:02]NVStorageDeleteData [07:10:03]Write to MH i2c: 01 00 00 61 66 C7 [07:10:03]Write i2c OK [07:10:03]MH_I2C_Read... [07:10:03]Read from MH i2c: 01 [07:10:03]MH_I2C_Read... [07:10:03]Read from MH i2c: 01 07 00 [07:10:03]MH_I2C_Read... [07:10:03]Read from MH i2c: 01 07 00 61 66 00 00 00 00 00 EC 0C C6 [07:10:03]RasterBufferAndPrint [07:10:03]line [07:10:03]line [07:10:03]line [07:10:03]line [07:10:03]line [07:10:03]written 0, free lines is 3314 [07:10:03]MH_Cut [07:10:03]Write to MH i2c: D1 01 00 68 66 01 A0 [07:10:03]Write i2c OK [07:10:03]MH_I2C_Read... [07:10:03]Read from MH i2c: D1 [07:10:03]MH_I2C_Read... [07:10:03]Read from MH i2c: D1 01 00 [07:10:03]MH_I2C_Read... [07:10:03]Read from MH i2c: D1 01 00 68 66 00 9F [07:10:03]Write to MH i2c: 01 00 00 69 66 CF [07:10:03]Write i2c OK [07:10:03]MH_I2C_Read... [07:10:03]OFD Sender: No OFD packet to send [07:10:03]*** Cut start [07:10:03]*** Partial cut [07:10:03]*** CUTSNS_PIN = 1 [07:10:03]*** CUTSNS_PIN = 0 [07:10:04]*** Brake cut motor [07:10:04]Read from MH i2c: 01 [07:10:04]MH_I2C_Read... [07:10:04]*** Stop cut motor [07:10:04]*** Cut end [07:10:04]Read from MH i2c: 01 07 00 [07:10:04]MH_I2C_Read... [07:10:04]Read from MH i2c: 01 07 00 69 66 00 00 00 00 00 FF 0F E4 [07:10:04]process_action close_receipt done [07:10:04]requested_data is exist [07:10:04]produce_requested_data [07:10:04]requested_item fm.sn is exist - process it [07:10:04]wFMCommunicate request_size=4 [07:10:04]MH_SAM_APDU [07:10:04]CAPDU: 80 11 00 00 [07:10:04]Write to MH i2c: E2 08 00 6A 66 80 11 00 00 00 00 00 00 4A [07:10:04]Write i2c OK [07:10:04]MH_I2C_Read... [07:10:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:10:04]Read from MH i2c: E2 [07:10:04]MH_I2C_Read... [07:10:04]Read from MH i2c: E2 17 00 [07:10:04]MH_I2C_Read... [07:10:04]Read from MH i2c: E2 17 00 6A 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 98 [07:10:04]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:04]wFMCommunicate OK [07:10:04]requested_item fd.num is exist - process it [07:10:04]SAM_PROTO_GetFieldsCounters [07:10:04]wFMCommunicate request_size=4 [07:10:04]MH_SAM_APDU [07:10:04]CAPDU: 80 13 00 00 [07:10:04]Write to MH i2c: E2 08 00 6B 66 80 13 00 00 00 00 00 00 4D [07:10:04]Write i2c OK [07:10:04]MH_I2C_Read... [07:10:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:10:04]Read from MH i2c: E2 [07:10:04]MH_I2C_Read... [07:10:04]Read from MH i2c: E2 62 00 [07:10:04]MH_I2C_Read... [07:10:04]Read from MH i2c: E2 62 00 6B 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 76 00 00 0E 04 04 00 72 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 A9 [07:10: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 1B 76 00 00 0E 04 04 00 72 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:10:04]wFMCommunicate OK [07:10:04]SAM_PROTO_GetFieldsCounters done [07:10:04]requested_item shift.num is exist - process it [07:10:04]requested_item shift.opened is exist - process it [07:10:04]req_shift_opened [07:10:04]FM_GetShiftState [07:10:04]SAM_PROTO_GetShiftState [07:10:04]wFMCommunicate request_size=4 [07:10:04]MH_SAM_APDU [07:10:04]CAPDU: 80 13 01 00 [07:10:04]Write to MH i2c: E2 08 00 6C 66 80 13 01 00 00 00 00 00 4F [07:10:04]Write i2c OK [07:10:04]MH_I2C_Read... [07:10:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:10:04]Read from MH i2c: E2 [07:10:04]MH_I2C_Read... [07:10:04]Read from MH i2c: E2 0E 00 [07:10:04]MH_I2C_Read... [07:10:04]Read from MH i2c: E2 0E 00 6C 66 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 35 [07:10:04]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [07:10:04]wFMCommunicate OK [07:10:04]SAM_PROTO_GetShiftState done [07:10:04]FM_GetShiftState done [07:10:04]req_shift_opened done [07:10:04]requested_item shift.open_date is exist - process it [07:10:04]req_shift_open_date [07:10:04]req_shift_open_date done [07:10:04]produce_requested_data done [07:10:04]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30235,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [07:10:04]process_action_free close_receipt [07:10:04]json_value_free [07:10:04]json_value_free done [07:10:04]process_json_proto returns [07:10:04]Send response to host [07:10:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30235,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [07:10:04]free response buf [07:10:04]execute_script done [07:10:04]execute_script returns [07:10:04]free content buf [07:10:04]Sock 7.Close socket [07:10:04]Sock 7.Thread stoped [07:10:08]OFD Sender: No OFD packet to send [07:10:13]OFD Sender: No OFD packet to send [07:10:18]OFD Sender: No OFD packet to send [07:10:23]OFD Sender: No OFD packet to send [07:10:28]OFD Sender: No OFD packet to send [07:10:33]OFD Sender: No OFD packet to send [07:10:38]OFD Sender: No OFD packet to send [07:10:43]OFD Sender: No OFD packet to send [07:10:48]OFD Sender: No OFD packet to send [07:10:53]OFD Sender: No OFD packet to send [07:10:58]OFD Sender: No OFD packet to send [07:11:03]OFD Sender: No OFD packet to send [07:11:08]OFD Sender: No OFD packet to send [07:11:13]OFD Sender: No OFD packet to send [07:11:18]OFD Sender: No OFD packet to send [07:11:23]OFD Sender: No OFD packet to send [07:11:28]OFD Sender: No OFD packet to send [07:11:33]OFD Sender: No OFD packet to send [07:11:38]OFD Sender: No OFD packet to send [07:11:43]OFD Sender: No OFD packet to send [07:11:48]OFD Sender: No OFD packet to send [07:11:53]OFD Sender: No OFD packet to send [07:11:58]OFD Sender: No OFD packet to send [07:12:03]OFD Sender: No OFD packet to send [07:12:08]OFD Sender: No OFD packet to send [07:12:13]OFD Sender: No OFD packet to send [07:12:18]OFD Sender: No OFD packet to send [07:12:23]OFD Sender: No OFD packet to send [07:12:28]OFD Sender: No OFD packet to send [07:12:33]OFD Sender: No OFD packet to send [07:12:38]OFD Sender: No OFD packet to send [07:12:43]OFD Sender: No OFD packet to send [07:12:48]OFD Sender: No OFD packet to send [07:12:53]OFD Sender: No OFD packet to send [07:12:58]OFD Sender: No OFD packet to send [07:13:00]accept exits with 9 [07:13:00]New connection [07:13:00]New thread 3067514212 created [07:13:00]Thread 3067370852 joined [07:13:00]Waiting for new connection... [07:13:00] Sock 9.Parse request [07:13:00]Sock 9.Check first char [07:13:00]Sock 9.First char is OK [07:13:00]request: POST /json_proto HTTP/1.0 [07:13:00]Method: POST [07:13:00]URL: /json_proto [07:13:00]Method is POST - this is cgi request [07:13:00]url: /json_proto [07:13:00]query_string will be loaded in cgi processing [07:13:00]execute_cgi json_proto POST (null) [07:13:00]execute_cgi path=json_proto method=POST [07:13:00]POST find Content-Length [07:13:00]Host: 172.17.51.3:8080 [07:13:00]Content-Length: 674 [07:13:00]Content-Type: application/json [07:13:00] [07:13:00]POST finish read [07:13:00]Found Content-Length = 674 [07:13:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342625", "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" : 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" ] } } [07:13:00]execute_script... [07:13: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)342625", "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" : 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" ] } } [07:13:00]POST & json_proto [07:13:00]process_json_proto [07:13:00]json parsed OK: [07:13:00]protocol is kg_v1.0 [07:13:00]action value=close_receipt [07:13:00]process_action close_receipt [07:13:00]cmd_close_receipt [07:13:00]MH_GetDate [07:13:00]Write to MH i2c: F0 00 00 6D 66 C2 [07:13:00]Write i2c OK [07:13:00]MH_I2C_Read... [07:13:00]Read from MH i2c: F0 [07:13:00]MH_I2C_Read... [07:13:00]Read from MH i2c: F0 09 00 [07:13:00]MH_I2C_Read... [07:13:00]Read from MH i2c: F0 09 00 6D 66 00 85 AD 14 67 04 C1 95 66 38 [07:13:00]GetLastDocTimeStamp 1729408208 [07:13:00]current date 1729408389 [07:13:00]FM_GetShiftState [07:13:00]SAM_PROTO_GetShiftState [07:13:00]wFMCommunicate request_size=4 [07:13:00]MH_SAM_APDU [07:13:00]CAPDU: 80 13 01 00 [07:13:00]Write to MH i2c: E2 08 00 6E 66 80 13 01 00 00 00 00 00 51 [07:13:00]Write i2c OK [07:13:00]MH_I2C_Read... [07:13:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:13:01]Read from MH i2c: E2 [07:13:01]MH_I2C_Read... [07:13:01]Read from MH i2c: E2 0E 00 [07:13:01]MH_I2C_Read... [07:13:01]Read from MH i2c: E2 0E 00 6E 66 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 37 [07:13:01]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [07:13:01]wFMCommunicate OK [07:13:01]SAM_PROTO_GetShiftState done [07:13:01]FM_GetShiftState done [07:13:01]opened in 1729384718 [07:13:01]opened+sec_in_day 1729471118 [07:13:01]quantity*price = 45034 [07:13:01]sum+1 = 45035 [07:13:01]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 СНО: Общий режим Чек 18 20.10.2024 07:13 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30236 ФПД: 29950749891152 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T071309&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30236&fm=29950749891152&tin=02508201610067®Number=0000000000186857&sum=45000 [07:13:02]StoreToDocumentArchive [07:13:02]shift 114 fd 30236 [07:13:02]save to /storage/0114/doc_00030236 [07:13:02]save last doc name /storage/0114/doc_00030236 to /storage/kkm_last_doc_name [07:13:02]save OK [07:13:02]Clear old archive folders... [07:13:02]ProcessDocumentItem done err = 0, tmpTLVsize=248 [07:13:02]tlvbuf is 00AA01D0 [07:13:02]SAM_PROTO_ClearQueue [07:13:02]wFMCommunicate request_size=4 [07:13:02]MH_SAM_APDU [07:13:02]CAPDU: 80 09 00 00 [07:13:02]Write to MH i2c: E2 08 00 7B 66 80 09 00 00 00 00 00 00 53 [07:13:02]Write i2c OK [07:13:02]MH_I2C_Read... [07:13:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:13:02]Read from MH i2c: E2 [07:13:02]MH_I2C_Read... [07:13:02]Read from MH i2c: E2 03 00 [07:13:02]MH_I2C_Read... [07:13:02]Read from MH i2c: E2 03 00 7B 66 00 90 00 55 [07:13:02]RAPDU: 90 00 [07:13:02]wFMCommunicate OK [07:13:02]SAM_PROTO_ClearQueue done [07:13:02]KKMCreateOFDPacket [07:13:02]OFDProtocolAddRootSTLVToBuf [07:13:02]FM_MakeSignedData [07:13:02]FM_MakeSignedData [07:13:02]SAM_PROTO_SignData [07:13:02]wFMCommunicate request_size=4 [07:13:02]MH_SAM_APDU [07:13:02]CAPDU: 80 0D 01 02 [07:13:02]Write to MH i2c: E2 08 00 7C 66 80 0D 01 02 00 00 00 00 5B [07:13:02]Write i2c OK [07:13:02]MH_I2C_Read... [07:13:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:13:02]Read from MH i2c: E2 [07:13:02]MH_I2C_Read... [07:13:02]Read from MH i2c: E2 03 00 [07:13:02]MH_I2C_Read... [07:13:02]Read from MH i2c: E2 03 00 7C 66 00 90 00 56 [07:13:02]RAPDU: 90 00 [07:13:02]wFMCommunicate OK [07:13:02]wFMCommunicate request_size=255 [07:13:02]MH_SAM_APDU [07:13: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 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 12 00 00 00 F4 03 04 00 85 AD 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 1B 3D 73 CE [07:13:02]Write to MH i2c: E2 02 01 7D 66 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 12 00 00 00 F4 03 04 00 85 AD 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 1B 3D 73 CE 00 00 FA [07:13:02]Write i2c OK [07:13:02]MH_I2C_Read... [07:13:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:13:02]Read from MH i2c: E2 [07:13:02]MH_I2C_Read... [07:13:02]Read from MH i2c: E2 03 00 [07:13:02]MH_I2C_Read... [07:13:02]Read from MH i2c: E2 03 00 7D 66 00 90 00 57 [07:13:02]RAPDU: 90 00 [07:13:02]wFMCommunicate OK [07:13:02]wFMCommunicate request_size=7 [07:13:02]MH_SAM_APDU [07:13:02]CAPDU: 80 0D 02 02 02 DA 50 [07:13:02]Write to MH i2c: E2 0A 00 7E 66 80 0D 02 02 02 00 DA 50 00 00 8C [07:13:02]Write i2c OK [07:13:02]MH_I2C_Read... [07:13:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:13:02]Read from MH i2c: E2 [07:13:02]MH_I2C_Read... [07:13:02]Read from MH i2c: E2 03 00 [07:13:02]MH_I2C_Read... [07:13:02]Read from MH i2c: E2 03 00 7E 66 00 90 00 58 [07:13:02]RAPDU: 90 00 [07:13:02]wFMCommunicate OK [07:13:02]wFMCommunicate request_size=4 [07:13:02]MH_SAM_APDU [07:13:02]CAPDU: 80 0D 03 02 [07:13:02]Write to MH i2c: E2 08 00 7F 66 80 0D 03 02 00 00 00 00 60 [07:13:02]Write i2c OK [07:13:02]MH_I2C_Read... [07:13:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:13:02]Read from MH i2c: E2 [07:13:02]MH_I2C_Read... [07:13:02]Read from MH i2c: E2 0B 00 [07:13:02]MH_I2C_Read... [07:13:02]Read from MH i2c: E2 0B 00 7F 66 00 2A 72 DE 67 DD 3F 49 CC 90 00 73 [07:13:02]RAPDU: 2A 72 DE 67 DD 3F 49 CC 90 00 [07:13:02]wFMCommunicate OK [07:13:02]SAM_PROTO_SignData done [07:13:02]FM_MakeSignedData done [07:13:02]CreateOFDProtocolMessage [07:13:02]wFMCommunicate request_size=4 [07:13:02]MH_SAM_APDU [07:13:02]CAPDU: 80 11 00 00 [07:13:02]Write to MH i2c: E2 08 00 80 66 80 11 00 00 00 00 00 00 60 [07:13:02]Write i2c OK [07:13:02]MH_I2C_Read... [07:13:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:13:02]Read from MH i2c: E2 [07:13:02]MH_I2C_Read... [07:13:02]Read from MH i2c: E2 17 00 [07:13:02]MH_I2C_Read... [07:13:02]Read from MH i2c: E2 17 00 80 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 AE [07: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 [07:13:02]wFMCommunicate OK [07:13:02]CreateOFDProtocolMessage done [07:13:02]OFDSenderStorePacket 30236 [07:13:02]StoreOFDPacket docnum=30236 [07:13: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 0C 01 00 00 52 BA 04 01 9B 26 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 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 12 00 00 00 F4 03 04 00 85 AD 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 1B 3D 73 CE DA 50 2A 72 DE 67 DD 3F 49 CC [07:13:02]CheckFolder [07:13:02]dirname=/storage/ofd_packets [07:13:02]CheckFolder done [07:13:02]ProducePacketName [07:13:02]name=ofd_packets/00030236 [07:13:02]NVStorageSaveData ofd_packets/00030236 [07:13:02]File name is /storage/ofd_packets/00030236 [07:13:02]Write 298 bytes [07:13:02]NVStorageSaveData done [07:13:02]OFDSenderStorePacket done [07:13:02]KKMCreateOFDPacket done [07:13:02]NVStorageSaveData kkm_last_timestamp [07:13:02]File name is /storage/kkm_last_timestamp [07:13:02]Write 4 bytes [07:13:02]NVStorageSaveData done [07:13:02]ExternCall_PrintAddStr [07:13:02]wPrintStart [07:13:02]Write to MH i2c: 01 00 00 81 66 E7 [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 81 66 00 00 00 00 00 FF 0F FC [07:13:02]RasterBufferAndPrint [07:13:02]line Счет N : (1)342625 [07:13:02]line ИНН: 02508201610067 [07:13:02]line Контрольно-Кассовый Чек [07:13:02]line ПРОДАЖА [07:13:02]line ТРК (МРК, ГНК) : 44 [07:13:02]line Товар: 2710194210 [07:13:02]line ДТ-К-2 [07:13:02]line 5.910 * 76.20 [07:13:02]line = 450.34 [07:13:02]line НДС 12% НСП 1% [07:13:02]line > о реализуемом товаре [07:13:02]line ОКРУГЛЕНИЕ: -0.34 [07:13:02]line ИТОГО: 450.00 [07:13:02]line Внесено: 450.00 [07:13:02]line СДАЧА: 0.00 [07:13:02]line НСП 1% : 3.98 [07:13:02]line НДС 12% : 47.82 [07:13:02]line Наличными: 450.00 [07:13:02]line Безнал.: 0.00 [07:13:02]line Место: АЗС № 78 "Партнер Нефть" [07:13:02]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [07:13:02]line СНО: Общий режим [07:13:02]line Чек 18 20.10.2024 07:13 [07:13:02]line Смена: 114 ФФД: 1.0 [07:13:02]line ЗНМ: 0300000137 [07:13:02]line РНМ: 0000000000186857 [07:13:02]line Версия ККМ: v1.0 [07:13:02]line ФМ: 0000000002094219 [07:13:02]line ФД: 30236 [07:13:02]line ФПД: 29950749891152 [07:13:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T071309&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30236&fm=29950749891152&tin=02508201610067®Number=0000000000186857&sum=45000 [07:13:03]OFD Sender: Processing packet 30236 [packets to send 10, broken 9] [07:13:03]ProducePacketName [07:13:03]name=ofd_packets/00030236 [07:13:03]OFD Sender: To server: pG, [07:13:03]CommunicateWithHost lk.salyk.kg:30040 [07:13:03]ConnectInit lk.salyk.kg [07:13:03]written 0, free lines is 4095 [07:13:03]Connected sock=10 [07:13: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 52 BA 04 01 9B 26 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 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 12 00 00 00 F4 03 04 00 85 AD 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 1B 3D 73 CE DA 50 2A 72 DE 67 DD 3F 49 CC [07:13: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 6F 96 47 00 D6 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 1C 76 00 00 F4 03 04 00 09 58 14 67 B6 04 01 00 00 FA F1 F2 21 A1 88 B0 40 [07:13:03]CommunicateWithHost err = 0 [07:13:03]CheckOFDResponse [07:13:03]1017 (14) - 77093643461234 [07:13:03]1041 (16) - 0000000002094219 [07:13:03]1040 (4) - 30236 [07:13:03]1012 (4) - 20.10.2024 01:08 [07:13:03]1206 (1) - 0 [07:13:03]OFD Sender: Remove packet 30236 [07:13:03]ProducePacketName [07:13:03]name=ofd_packets/00030236 [07:13:03]NVStorageDeleteData [07:13:03]Write to MH i2c: 01 00 00 AC 66 12 [07:13:03]Write i2c OK [07:13:03]MH_I2C_Read... [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]Read from MH i2c: 01 07 00 AC 66 00 00 00 00 00 ED 0C 12 [07:13:03]RasterBufferAndPrint [07:13:03]line [07:13:03]line [07:13:03]line [07:13:03]line [07:13:03]line [07:13:03]written 0, free lines is 3315 [07:13:03]MH_Cut [07:13:03]Write to MH i2c: D1 01 00 B3 66 01 EB [07:13:03]Write i2c OK [07:13:03]MH_I2C_Read... [07:13:03]Read from MH i2c: D1 [07:13:03]MH_I2C_Read... [07:13:03]Read from MH i2c: D1 01 00 [07:13:03]MH_I2C_Read... [07:13:03]Read from MH i2c: D1 01 00 B3 66 00 EA [07:13:03]Write to MH i2c: 01 00 00 B4 66 1A [07:13:03]Write i2c OK [07:13:03]MH_I2C_Read... [07:13:03]OFD Sender: No OFD packet to send [07:13:04]*** Cut start [07:13:04]*** Partial cut [07:13:04]*** CUTSNS_PIN = 1 [07:13:04]*** CUTSNS_PIN = 0 [07:13:04]*** Brake cut motor [07:13:04]Read from MH i2c: 01 [07:13:04]MH_I2C_Read... [07:13:04]*** Stop cut motor [07:13:04]*** Cut end [07:13:04]Read from MH i2c: 01 07 00 [07:13:04]MH_I2C_Read... [07:13:04]Read from MH i2c: 01 07 00 B4 66 00 00 00 00 00 FF 0F 2F [07:13:04]process_action close_receipt done [07:13:04]requested_data is exist [07:13:04]produce_requested_data [07:13:04]requested_item fm.sn is exist - process it [07:13:04]wFMCommunicate request_size=4 [07:13:04]MH_SAM_APDU [07:13:04]CAPDU: 80 11 00 00 [07:13:04]Write to MH i2c: E2 08 00 B5 66 80 11 00 00 00 00 00 00 95 [07:13:04]Write i2c OK [07:13:04]MH_I2C_Read... [07:13:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:13:04]Read from MH i2c: E2 [07:13:04]MH_I2C_Read... [07:13:04]Read from MH i2c: E2 17 00 [07:13:04]MH_I2C_Read... [07:13:04]Read from MH i2c: E2 17 00 B5 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 E3 [07:13:04]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:04]wFMCommunicate OK [07:13:04]requested_item fd.num is exist - process it [07:13:04]SAM_PROTO_GetFieldsCounters [07:13:04]wFMCommunicate request_size=4 [07:13:04]MH_SAM_APDU [07:13:04]CAPDU: 80 13 00 00 [07:13:04]Write to MH i2c: E2 08 00 B6 66 80 13 00 00 00 00 00 00 98 [07:13:04]Write i2c OK [07:13:04]MH_I2C_Read... [07:13:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:13:04]Read from MH i2c: E2 [07:13:04]MH_I2C_Read... [07:13:04]Read from MH i2c: E2 62 00 [07:13:04]MH_I2C_Read... [07:13:04]Read from MH i2c: E2 62 00 B6 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 76 00 00 0E 04 04 00 72 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 F8 [07:13: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 1C 76 00 00 0E 04 04 00 72 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:13:04]wFMCommunicate OK [07:13:04]SAM_PROTO_GetFieldsCounters done [07:13:04]requested_item shift.num is exist - process it [07:13:04]requested_item shift.opened is exist - process it [07:13:04]req_shift_opened [07:13:04]FM_GetShiftState [07:13:04]SAM_PROTO_GetShiftState [07:13:04]wFMCommunicate request_size=4 [07:13:04]MH_SAM_APDU [07:13:04]CAPDU: 80 13 01 00 [07:13:04]Write to MH i2c: E2 08 00 B7 66 80 13 01 00 00 00 00 00 9A [07:13:04]Write i2c OK [07:13:04]MH_I2C_Read... [07:13:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:13:04]Read from MH i2c: E2 [07:13:04]MH_I2C_Read... [07:13:04]Read from MH i2c: E2 0E 00 [07:13:04]MH_I2C_Read... [07:13:04]Read from MH i2c: E2 0E 00 B7 66 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 80 [07:13:05]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [07:13:05]wFMCommunicate OK [07:13:05]SAM_PROTO_GetShiftState done [07:13:05]FM_GetShiftState done [07:13:05]req_shift_opened done [07:13:05]requested_item shift.open_date is exist - process it [07:13:05]req_shift_open_date [07:13:05]req_shift_open_date done [07:13:05]produce_requested_data done [07:13:05]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30236,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [07:13:05]process_action_free close_receipt [07:13:05]json_value_free [07:13:05]json_value_free done [07:13:05]process_json_proto returns [07:13:05]Send response to host [07:13:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30236,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [07:13:05]free response buf [07:13:05]execute_script done [07:13:05]execute_script returns [07:13:05]free content buf [07:13:05]Sock 9.Close socket [07:13:05]Sock 9.Thread stoped [07:13:08]OFD Sender: No OFD packet to send [07:13:13]OFD Sender: No OFD packet to send [07:13:18]OFD Sender: No OFD packet to send [07:13:23]OFD Sender: No OFD packet to send [07:13:28]OFD Sender: No OFD packet to send [07:13:33]OFD Sender: No OFD packet to send [07:13:38]OFD Sender: No OFD packet to send [07:13:43]OFD Sender: No OFD packet to send [07:13:48]OFD Sender: No OFD packet to send [07:13:53]OFD Sender: No OFD packet to send [07:13:58]OFD Sender: No OFD packet to send [07:14:03]OFD Sender: No OFD packet to send [07:14:08]OFD Sender: No OFD packet to send [07:14:13]OFD Sender: No OFD packet to send [07:14:18]OFD Sender: No OFD packet to send [07:14:23]OFD Sender: No OFD packet to send [07:14:28]OFD Sender: No OFD packet to send [07:14:33]OFD Sender: No OFD packet to send [07:14:38]OFD Sender: No OFD packet to send [07:14:43]OFD Sender: No OFD packet to send [07:14:48]OFD Sender: No OFD packet to send [07:14:53]OFD Sender: No OFD packet to send [07:14:58]OFD Sender: No OFD packet to send [07:15:03]OFD Sender: No OFD packet to send [07:15:08]OFD Sender: No OFD packet to send [07:15:13]OFD Sender: No OFD packet to send [07:15:18]OFD Sender: No OFD packet to send [07:15:23]OFD Sender: No OFD packet to send [07:15:28]OFD Sender: No OFD packet to send [07:15:33]OFD Sender: No OFD packet to send [07:15:38]OFD Sender: No OFD packet to send [07:15:43]OFD Sender: No OFD packet to send [07:15:48]OFD Sender: No OFD packet to send [07:15:53]OFD Sender: No OFD packet to send [07:15:58]OFD Sender: No OFD packet to send [07:16:03]OFD Sender: No OFD packet to send [07:16:08]OFD Sender: No OFD packet to send [07:16:13]OFD Sender: No OFD packet to send [07:16:18]OFD Sender: No OFD packet to send [07:16:24]OFD Sender: No OFD packet to send [07:16:29]OFD Sender: No OFD packet to send [07:16:34]OFD Sender: No OFD packet to send [07:16:39]OFD Sender: No OFD packet to send [07:16:44]OFD Sender: No OFD packet to send [07:16:49]OFD Sender: No OFD packet to send [07:16:54]OFD Sender: No OFD packet to send [07:16:59]OFD Sender: No OFD packet to send [07:17:04]OFD Sender: No OFD packet to send [07:17:09]OFD Sender: No OFD packet to send [07:17:14]OFD Sender: No OFD packet to send [07:17:19]OFD Sender: No OFD packet to send [07:17:24]OFD Sender: No OFD packet to send [07:17:29]OFD Sender: No OFD packet to send [07:17:34]OFD Sender: No OFD packet to send [07:17:39]OFD Sender: No OFD packet to send [07:17:44]OFD Sender: No OFD packet to send [07:17:49]OFD Sender: No OFD packet to send [07:17:54]OFD Sender: No OFD packet to send [07:17:59]OFD Sender: No OFD packet to send [07:18:04]OFD Sender: No OFD packet to send [07:18:09]OFD Sender: No OFD packet to send [07:18:14]OFD Sender: No OFD packet to send [07:18:19]OFD Sender: No OFD packet to send [07:18:24]OFD Sender: No OFD packet to send [07:18:29]OFD Sender: No OFD packet to send [07:18:34]OFD Sender: No OFD packet to send [07:18:39]OFD Sender: No OFD packet to send [07:18:44]OFD Sender: No OFD packet to send [07:18:49]OFD Sender: No OFD packet to send [07:18:54]OFD Sender: No OFD packet to send [07:18:59]OFD Sender: No OFD packet to send [07:19:04]OFD Sender: No OFD packet to send [07:19:09]OFD Sender: No OFD packet to send [07:19:14]OFD Sender: No OFD packet to send [07:19:19]OFD Sender: No OFD packet to send [07:19:24]OFD Sender: No OFD packet to send [07:19:29]OFD Sender: No OFD packet to send [07:19:34]OFD Sender: No OFD packet to send [07:19:39]OFD Sender: No OFD packet to send [07:19:44]OFD Sender: No OFD packet to send [07:19:49]OFD Sender: No OFD packet to send [07:19:54]OFD Sender: No OFD packet to send [07:19:59]OFD Sender: No OFD packet to send [07:20:04]OFD Sender: No OFD packet to send [07:20:09]OFD Sender: No OFD packet to send [07:20:14]OFD Sender: No OFD packet to send [07:20:19]OFD Sender: No OFD packet to send [07:20:24]OFD Sender: No OFD packet to send [07:20:29]OFD Sender: No OFD packet to send [07:20:34]OFD Sender: No OFD packet to send [07:20:39]OFD Sender: No OFD packet to send [07:20:44]OFD Sender: No OFD packet to send [07:20:49]OFD Sender: No OFD packet to send [07:20:54]OFD Sender: No OFD packet to send [07:20:59]OFD Sender: No OFD packet to send [07:21:04]OFD Sender: No OFD packet to send [07:21:09]OFD Sender: No OFD packet to send [07:21:14]OFD Sender: No OFD packet to send [07:21:19]OFD Sender: No OFD packet to send [07:21:24]OFD Sender: No OFD packet to send [07:21:29]OFD Sender: No OFD packet to send [07:21:34]OFD Sender: No OFD packet to send [07:21:39]OFD Sender: No OFD packet to send [07:21:44]OFD Sender: No OFD packet to send [07:21:49]OFD Sender: No OFD packet to send [07:21:54]OFD Sender: No OFD packet to send [07:21:59]OFD Sender: No OFD packet to send [07:22:04]OFD Sender: No OFD packet to send [07:22:09]OFD Sender: No OFD packet to send [07:22:14]OFD Sender: No OFD packet to send [07:22:19]OFD Sender: No OFD packet to send [07:22:24]OFD Sender: No OFD packet to send [07:22:29]OFD Sender: No OFD packet to send [07:22:34]OFD Sender: No OFD packet to send [07:22:39]OFD Sender: No OFD packet to send [07:22:44]OFD Sender: No OFD packet to send [07:22:49]OFD Sender: No OFD packet to send [07:22:54]OFD Sender: No OFD packet to send [07:22:59]OFD Sender: No OFD packet to send [07:23:04]OFD Sender: No OFD packet to send [07:23:09]OFD Sender: No OFD packet to send [07:23:14]OFD Sender: No OFD packet to send [07:23:19]OFD Sender: No OFD packet to send [07:23:24]OFD Sender: No OFD packet to send [07:23:29]OFD Sender: No OFD packet to send [07:23:34]OFD Sender: No OFD packet to send [07:23:39]OFD Sender: No OFD packet to send [07:23:44]OFD Sender: No OFD packet to send [07:23:49]OFD Sender: No OFD packet to send [07:23:54]OFD Sender: No OFD packet to send [07:23:59]OFD Sender: No OFD packet to send [07:24:04]OFD Sender: No OFD packet to send [07:24:09]OFD Sender: No OFD packet to send [07:24:14]OFD Sender: No OFD packet to send [07:24:19]OFD Sender: No OFD packet to send [07:24:24]OFD Sender: No OFD packet to send [07:24:29]OFD Sender: No OFD packet to send [07:24:34]OFD Sender: No OFD packet to send [07:24:39]OFD Sender: No OFD packet to send [07:24:44]OFD Sender: No OFD packet to send [07:24:49]OFD Sender: No OFD packet to send [07:24:54]OFD Sender: No OFD packet to send [07:24:59]OFD Sender: No OFD packet to send [07:25:04]OFD Sender: No OFD packet to send [07:25:09]OFD Sender: No OFD packet to send [07:25:14]OFD Sender: No OFD packet to send [07:25:19]OFD Sender: No OFD packet to send [07:25:24]OFD Sender: No OFD packet to send [07:25:29]OFD Sender: No OFD packet to send [07:25:34]OFD Sender: No OFD packet to send [07:25:39]OFD Sender: No OFD packet to send [07:25:44]OFD Sender: No OFD packet to send [07:25:49]OFD Sender: No OFD packet to send [07:25:54]OFD Sender: No OFD packet to send [07:25:59]OFD Sender: No OFD packet to send [07:26:04]OFD Sender: No OFD packet to send [07:26:09]OFD Sender: No OFD packet to send [07:26:14]OFD Sender: No OFD packet to send [07:26:19]OFD Sender: No OFD packet to send [07:26:24]OFD Sender: No OFD packet to send [07:26:29]OFD Sender: No OFD packet to send [07:26:34]OFD Sender: No OFD packet to send [07:26:39]OFD Sender: No OFD packet to send [07:26:44]OFD Sender: No OFD packet to send [07:26:49]OFD Sender: No OFD packet to send [07:26:54]OFD Sender: No OFD packet to send [07:26:59]OFD Sender: No OFD packet to send [07:27:04]OFD Sender: No OFD packet to send [07:27:09]OFD Sender: No OFD packet to send [07:27:14]OFD Sender: No OFD packet to send [07:27:19]OFD Sender: No OFD packet to send [07:27:24]OFD Sender: No OFD packet to send [07:27:29]OFD Sender: No OFD packet to send [07:27:34]OFD Sender: No OFD packet to send [07:27:39]OFD Sender: No OFD packet to send [07:27:44]OFD Sender: No OFD packet to send [07:27:49]OFD Sender: No OFD packet to send [07:27:54]OFD Sender: No OFD packet to send [07:27:59]OFD Sender: No OFD packet to send [07:28:04]OFD Sender: No OFD packet to send [07:28:09]OFD Sender: No OFD packet to send [07:28:14]OFD Sender: No OFD packet to send [07:28:19]OFD Sender: No OFD packet to send [07:28:24]OFD Sender: No OFD packet to send [07:28:29]OFD Sender: No OFD packet to send [07:28:34]OFD Sender: No OFD packet to send [07:28:39]OFD Sender: No OFD packet to send [07:28:44]OFD Sender: No OFD packet to send [07:28:49]OFD Sender: No OFD packet to send [07:28:54]OFD Sender: No OFD packet to send [07:28:59]OFD Sender: No OFD packet to send [07:29:04]OFD Sender: No OFD packet to send [07:29:09]OFD Sender: No OFD packet to send [07:29:14]OFD Sender: No OFD packet to send [07:29:19]OFD Sender: No OFD packet to send [07:29:24]OFD Sender: No OFD packet to send [07:29:29]OFD Sender: No OFD packet to send [07:29:34]OFD Sender: No OFD packet to send [07:29:39]OFD Sender: No OFD packet to send [07:29:44]OFD Sender: No OFD packet to send [07:29:49]OFD Sender: No OFD packet to send [07:29:54]OFD Sender: No OFD packet to send [07:29:59]OFD Sender: No OFD packet to send [07:30:04]OFD Sender: No OFD packet to send [07:30:09]OFD Sender: No OFD packet to send [07:30:14]OFD Sender: No OFD packet to send [07:30:19]OFD Sender: No OFD packet to send [07:30:24]OFD Sender: No OFD packet to send [07:30:29]OFD Sender: No OFD packet to send [07:30:34]OFD Sender: No OFD packet to send [07:30:39]OFD Sender: No OFD packet to send [07:30:44]OFD Sender: No OFD packet to send [07:30:49]OFD Sender: No OFD packet to send [07:30:54]OFD Sender: No OFD packet to send [07:30:59]OFD Sender: No OFD packet to send [07:31:04]OFD Sender: No OFD packet to send [07:31:09]OFD Sender: No OFD packet to send [07:31:14]OFD Sender: No OFD packet to send [07:31:19]OFD Sender: No OFD packet to send [07:31:24]OFD Sender: No OFD packet to send [07:31:29]OFD Sender: No OFD packet to send [07:31:34]OFD Sender: No OFD packet to send [07:31:39]OFD Sender: No OFD packet to send [07:31:44]OFD Sender: No OFD packet to send [07:31:49]OFD Sender: No OFD packet to send [07:31:54]OFD Sender: No OFD packet to send [07:31:59]OFD Sender: No OFD packet to send [07:32:04]OFD Sender: No OFD packet to send [07:32:09]OFD Sender: No OFD packet to send [07:32:14]OFD Sender: No OFD packet to send [07:32:19]OFD Sender: No OFD packet to send [07:32:24]OFD Sender: No OFD packet to send [07:32:29]OFD Sender: No OFD packet to send [07:32:34]OFD Sender: No OFD packet to send [07:32:39]OFD Sender: No OFD packet to send [07:32:44]OFD Sender: No OFD packet to send [07:32:49]OFD Sender: No OFD packet to send [07:32:54]OFD Sender: No OFD packet to send [07:32:59]OFD Sender: No OFD packet to send [07:33:04]OFD Sender: No OFD packet to send [07:33:09]OFD Sender: No OFD packet to send [07:33:14]OFD Sender: No OFD packet to send [07:33:17]accept exits with 7 [07:33:17]New connection [07:33:17]New thread 3067370852 created [07:33:17]Thread 3067514212 joined [07:33:17]Waiting for new connection... [07:33:17] Sock 7.Parse request [07:33:17]Sock 7.Check first char [07:33:17]Sock 7.First char is OK [07:33:17]request: POST /json_proto HTTP/1.0 [07:33:17]Method: POST [07:33:17]URL: /json_proto [07:33:17]Method is POST - this is cgi request [07:33:17]url: /json_proto [07:33:17]query_string will be loaded in cgi processing [07:33:17]execute_cgi json_proto POST (null) [07:33:17]execute_cgi path=json_proto method=POST [07:33:17]POST find Content-Length [07:33:17]Host: 172.17.51.3:8080 [07:33:17]Content-Length: 677 [07:33:17]Content-Type: application/json [07:33:17] [07:33:17]POST finish read [07:33:17]Found Content-Length = 677 [07:33:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342626", "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" ] } } [07:33:17]execute_script... [07:33: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)342626", "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" ] } } [07:33:17]POST & json_proto [07:33:17]process_json_proto [07:33:17]json parsed OK: [07:33:17]protocol is kg_v1.0 [07:33:17]action value=close_receipt [07:33:17]process_action close_receipt [07:33:17]cmd_close_receipt [07:33:17]MH_GetDate [07:33:17]Write to MH i2c: F0 00 00 B8 66 0D [07:33:17]Write i2c OK [07:33:17]MH_I2C_Read... [07:33:17]Read from MH i2c: F0 [07:33:17]MH_I2C_Read... [07:33:17]Read from MH i2c: F0 09 00 [07:33:17]MH_I2C_Read... [07:33:17]Read from MH i2c: F0 09 00 B8 66 00 45 B2 14 67 04 C1 95 66 48 [07:33:17]GetLastDocTimeStamp 1729408389 [07:33:17]current date 1729409605 [07:33:17]FM_GetShiftState [07:33:17]SAM_PROTO_GetShiftState [07:33:17]wFMCommunicate request_size=4 [07:33:17]MH_SAM_APDU [07:33:17]CAPDU: 80 13 01 00 [07:33:17]Write to MH i2c: E2 08 00 B9 66 80 13 01 00 00 00 00 00 9C [07:33:17]Write i2c OK [07:33:17]MH_I2C_Read... [07:33:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:33:17]Read from MH i2c: E2 [07:33:17]MH_I2C_Read... [07:33:17]Read from MH i2c: E2 0E 00 [07:33:17]MH_I2C_Read... [07:33:17]Read from MH i2c: E2 0E 00 B9 66 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 82 [07:33:17]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [07:33:17]wFMCommunicate OK [07:33:17]SAM_PROTO_GetShiftState done [07:33:17]FM_GetShiftState done [07:33:17]opened in 1729384718 [07:33:17]opened+sec_in_day 1729471118 [07:33:17]quantity*price = 50041 [07:33:17]sum+1 = 50042 [07:33: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 СНО: Общий режим Чек 19 20.10.2024 07:33 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30237 ФПД: 260964820573228 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T073325&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30237&fm=260964820573228&tin=02508201610067®Number=0000000000186857&sum=50000 [07:33:18]StoreToDocumentArchive [07:33:18]shift 114 fd 30237 [07:33:18]save to /storage/0114/doc_00030237 [07:33:18]save last doc name /storage/0114/doc_00030237 to /storage/kkm_last_doc_name [07:33:18]save OK [07:33:18]Clear old archive folders... [07:33:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:33:18]tlvbuf is 00C084E0 [07:33:18]SAM_PROTO_ClearQueue [07:33:18]wFMCommunicate request_size=4 [07:33:18]MH_SAM_APDU [07:33:18]CAPDU: 80 09 00 00 [07:33:18]Write to MH i2c: E2 08 00 C6 66 80 09 00 00 00 00 00 00 9E [07:33:18]Write i2c OK [07:33:18]MH_I2C_Read... [07:33:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:33:18]Read from MH i2c: E2 [07:33:18]MH_I2C_Read... [07:33:18]Read from MH i2c: E2 03 00 [07:33:18]MH_I2C_Read... [07:33:18]Read from MH i2c: E2 03 00 C6 66 00 90 00 A0 [07:33:18]RAPDU: 90 00 [07:33:18]wFMCommunicate OK [07:33:18]SAM_PROTO_ClearQueue done [07:33:18]KKMCreateOFDPacket [07:33:18]OFDProtocolAddRootSTLVToBuf [07:33:18]FM_MakeSignedData [07:33:18]FM_MakeSignedData [07:33:18]SAM_PROTO_SignData [07:33:18]wFMCommunicate request_size=4 [07:33:18]MH_SAM_APDU [07:33:18]CAPDU: 80 0D 01 02 [07:33:18]Write to MH i2c: E2 08 00 C7 66 80 0D 01 02 00 00 00 00 A6 [07:33:18]Write i2c OK [07:33:18]MH_I2C_Read... [07:33:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:33:18]Read from MH i2c: E2 [07:33:18]MH_I2C_Read... [07:33:18]Read from MH i2c: E2 03 00 [07:33:18]MH_I2C_Read... [07:33:18]Read from MH i2c: E2 03 00 C7 66 00 90 00 A1 [07:33:18]RAPDU: 90 00 [07:33:18]wFMCommunicate OK [07:33:18]wFMCommunicate request_size=255 [07:33:18]MH_SAM_APDU [07:33: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 13 00 00 00 F4 03 04 00 45 B2 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 ED [07:33:18]Write to MH i2c: E2 02 01 C8 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 13 00 00 00 F4 03 04 00 45 B2 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 ED 00 00 AE [07:33:18]Write i2c OK [07:33:18]MH_I2C_Read... [07:33:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:33:19]Read from MH i2c: E2 [07:33:19]MH_I2C_Read... [07:33:19]Read from MH i2c: E2 03 00 [07:33:19]MH_I2C_Read... [07:33:19]Read from MH i2c: E2 03 00 C8 66 00 90 00 A2 [07:33:19]RAPDU: 90 00 [07:33:19]wFMCommunicate OK [07:33:19]wFMCommunicate request_size=10 [07:33:19]MH_SAM_APDU [07:33:19]CAPDU: 80 0D 02 02 05 58 9B 6D DC 2C [07:33:19]Write to MH i2c: E2 0D 00 C9 66 80 0D 02 02 05 00 58 9B 6D DC 2C 00 00 1B [07:33:19]Write i2c OK [07:33:19]MH_I2C_Read... [07:33:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:33:19]Read from MH i2c: E2 [07:33:19]MH_I2C_Read... [07:33:19]Read from MH i2c: E2 03 00 [07:33:19]MH_I2C_Read... [07:33:19]Read from MH i2c: E2 03 00 C9 66 00 90 00 A3 [07:33:19]RAPDU: 90 00 [07:33:19]wFMCommunicate OK [07:33:19]wFMCommunicate request_size=4 [07:33:19]MH_SAM_APDU [07:33:19]CAPDU: 80 0D 03 02 [07:33:19]Write to MH i2c: E2 08 00 CA 66 80 0D 03 02 00 00 00 00 AB [07:33:19]Write i2c OK [07:33:19]MH_I2C_Read... [07:33:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:33:19]Read from MH i2c: E2 [07:33:19]MH_I2C_Read... [07:33:19]Read from MH i2c: E2 0B 00 [07:33:19]MH_I2C_Read... [07:33:19]Read from MH i2c: E2 0B 00 CA 66 00 E3 C4 3C F9 70 5C E4 A6 90 00 DE [07:33:19]RAPDU: E3 C4 3C F9 70 5C E4 A6 90 00 [07:33:19]wFMCommunicate OK [07:33:19]SAM_PROTO_SignData done [07:33:19]FM_MakeSignedData done [07:33:19]CreateOFDProtocolMessage [07:33:19]wFMCommunicate request_size=4 [07:33:19]MH_SAM_APDU [07:33:19]CAPDU: 80 11 00 00 [07:33:19]Write to MH i2c: E2 08 00 CB 66 80 11 00 00 00 00 00 00 AB [07:33:19]Write i2c OK [07:33:19]MH_I2C_Read... [07:33:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:33:19]Read from MH i2c: E2 [07:33:19]MH_I2C_Read... [07:33:19]Read from MH i2c: E2 17 00 [07:33:19]MH_I2C_Read... [07:33:19]Read from MH i2c: E2 17 00 CB 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 F9 [07:33:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [07:33:19]wFMCommunicate OK [07:33:19]CreateOFDProtocolMessage done [07:33:19]OFDSenderStorePacket 30237 [07:33:19]StoreOFDPacket docnum=30237 [07:33: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 B9 6B 07 01 3F C3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 13 00 00 00 F4 03 04 00 45 B2 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 ED 58 9B 6D DC 2C E3 C4 3C F9 70 5C E4 A6 [07:33:19]CheckFolder [07:33:19]dirname=/storage/ofd_packets [07:33:19]CheckFolder done [07:33:19]ProducePacketName [07:33:19]name=ofd_packets/00030237 [07:33:19]NVStorageSaveData ofd_packets/00030237 [07:33:19]File name is /storage/ofd_packets/00030237 [07:33:19]Write 301 bytes [07:33:19]NVStorageSaveData done [07:33:19]OFDSenderStorePacket done [07:33:19]KKMCreateOFDPacket done [07:33:19]NVStorageSaveData kkm_last_timestamp [07:33:19]File name is /storage/kkm_last_timestamp [07:33:19]Write 4 bytes [07:33:19]NVStorageSaveData done [07:33:19]ExternCall_PrintAddStr [07:33:19]wPrintStart [07:33:19]Write to MH i2c: 01 00 00 CC 66 32 [07:33:19]Write i2c OK [07:33:19]MH_I2C_Read... [07:33:19]Read from MH i2c: 01 [07:33:19]MH_I2C_Read... [07:33:19]Read from MH i2c: 01 07 00 [07:33:19]MH_I2C_Read... [07:33:19]Read from MH i2c: 01 07 00 CC 66 00 00 00 00 00 FF 0F 47 [07:33:19]RasterBufferAndPrint [07:33:19]line Счет N : (1)342626 [07:33:19]line ИНН: 02508201610067 [07:33:19]line Контрольно-Кассовый Чек [07:33:19]line ПРОДАЖА [07:33:19]line ТРК (МРК, ГНК) : 63 [07:33:19]line Товар: 2710124130 [07:33:19]line Аи-92-К-2 [07:33:19]line 7.480 * 66.90 [07:33:19]line = 500.41 [07:33:19]line НДС 12% НСП 1% [07:33:19]line > о реализуемом товаре [07:33:19]line ОКРУГЛЕНИЕ: -0.41 [07:33:19]line ИТОГО: 500.00 [07:33:19]line Внесено: 500.00 [07:33:19]line СДАЧА: 0.00 [07:33:19]line НСП 1% : 4.43 [07:33:19]line НДС 12% : 53.14 [07:33:19]line Наличными: 500.00 [07:33:19]line Безнал.: 0.00 [07:33:19]line Место: АЗС № 78 "Партнер Нефть" [07:33:19]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [07:33:19]line СНО: Общий режим [07:33:19]line Чек 19 20.10.2024 07:33 [07:33:19]line Смена: 114 ФФД: 1.0 [07:33:19]line ЗНМ: 0300000137 [07:33:19]line РНМ: 0000000000186857 [07:33:19]line Версия ККМ: v1.0 [07:33:19]line ФМ: 0000000002094219 [07:33:19]line ФД: 30237 [07:33:19]line ФПД: 260964820573228 [07:33:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T073325&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30237&fm=260964820573228&tin=02508201610067®Number=0000000000186857&sum=50000 [07:33:19]written 0, free lines is 4095 [07:33:19]OFD Sender: Processing packet 30237 [packets to send 10, broken 9] [07:33:19]ProducePacketName [07:33:19]name=ofd_packets/00030237 [07:33:19]OFD Sender: To server: pG, [07:33:19]CommunicateWithHost lk.salyk.kg:30040 [07:33:19]ConnectInit lk.salyk.kg [07:33:19]Connected sock=10 [07:33: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 B9 6B 07 01 3F C3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 13 00 00 00 F4 03 04 00 45 B2 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 ED 58 9B 6D DC 2C E3 C4 3C F9 70 5C E4 A6 [07:33: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 F0 D7 47 00 B8 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 1D 76 00 00 F4 03 04 00 CA 5C 14 67 B6 04 01 00 00 20 3A 3B 2D 8B CD F5 94 [07:33:19]CommunicateWithHost err = 0 [07:33:19]CheckOFDResponse [07:33:19]1017 (14) - 77093643461234 [07:33:19]1041 (16) - 0000000002094219 [07:33:19]1040 (4) - 30237 [07:33:19]1012 (4) - 20.10.2024 01:28 [07:33:19]1206 (1) - 0 [07:33:19]OFD Sender: Remove packet 30237 [07:33:19]ProducePacketName [07:33:19]name=ofd_packets/00030237 [07:33:19]NVStorageDeleteData [07:33:19]Write to MH i2c: 01 00 00 F7 66 5D [07:33:19]Write i2c OK [07:33:19]MH_I2C_Read... [07:33:19]Read from MH i2c: 01 [07:33:19]MH_I2C_Read... [07:33:19]Read from MH i2c: 01 07 00 [07:33:19]MH_I2C_Read... [07:33:19]Read from MH i2c: 01 07 00 F7 66 00 00 00 00 00 FA 0C 6A [07:33:19]RasterBufferAndPrint [07:33:19]line [07:33:19]line [07:33:19]line [07:33:19]line [07:33:19]line [07:33:19]written 0, free lines is 3331 [07:33:19]MH_Cut [07:33:19]Write to MH i2c: D1 01 00 FE 66 01 36 [07:33:19]Write i2c OK [07:33:19]MH_I2C_Read... [07:33:19]Read from MH i2c: D1 [07:33:19]MH_I2C_Read... [07:33:19]Read from MH i2c: D1 01 00 [07:33:19]MH_I2C_Read... [07:33:19]Read from MH i2c: D1 01 00 FE 66 00 35 [07:33:19]Write to MH i2c: 01 00 00 FF 66 65 [07:33:19]Write i2c OK [07:33:19]MH_I2C_Read... [07:33:20]OFD Sender: No OFD packet to send [07:33:20]*** Cut start [07:33:20]*** Partial cut [07:33:20]*** CUTSNS_PIN = 1 [07:33:20]*** CUTSNS_PIN = 0 [07:33:20]*** Brake cut motor [07:33:21]Read from MH i2c: 01 [07:33:21]MH_I2C_Read... [07:33:21]*** Stop cut motor [07:33:21]*** Cut end [07:33:21]Read from MH i2c: 01 07 00 [07:33:21]MH_I2C_Read... [07:33:21]Read from MH i2c: 01 07 00 FF 66 00 00 00 00 00 FF 0F 7A [07:33:21]process_action close_receipt done [07:33:21]requested_data is exist [07:33:21]produce_requested_data [07:33:21]requested_item fm.sn is exist - process it [07:33:21]wFMCommunicate request_size=4 [07:33:21]MH_SAM_APDU [07:33:21]CAPDU: 80 11 00 00 [07:33:21]Write to MH i2c: E2 08 00 00 67 80 11 00 00 00 00 00 00 E1 [07:33:21]Write i2c OK [07:33:21]MH_I2C_Read... [07:33:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:33:21]Read from MH i2c: E2 [07:33:21]MH_I2C_Read... [07:33:21]Read from MH i2c: E2 17 00 [07:33:21]MH_I2C_Read... [07:33:21]Read from MH i2c: E2 17 00 00 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 2F [07:33:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [07:33:21]wFMCommunicate OK [07:33:21]requested_item fd.num is exist - process it [07:33:21]SAM_PROTO_GetFieldsCounters [07:33:21]wFMCommunicate request_size=4 [07:33:21]MH_SAM_APDU [07:33:21]CAPDU: 80 13 00 00 [07:33:21]Write to MH i2c: E2 08 00 01 67 80 13 00 00 00 00 00 00 E4 [07:33:21]Write i2c OK [07:33:21]MH_I2C_Read... [07:33:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:33:21]Read from MH i2c: E2 [07:33:21]MH_I2C_Read... [07:33:21]Read from MH i2c: E2 62 00 [07:33:21]MH_I2C_Read... [07:33:21]Read from MH i2c: E2 62 00 01 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 1D 76 00 00 0E 04 04 00 72 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 48 [07:33: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 1D 76 00 00 0E 04 04 00 72 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:33:21]wFMCommunicate OK [07:33:21]SAM_PROTO_GetFieldsCounters done [07:33:21]requested_item shift.num is exist - process it [07:33:21]requested_item shift.opened is exist - process it [07:33:21]req_shift_opened [07:33:21]FM_GetShiftState [07:33:21]SAM_PROTO_GetShiftState [07:33:21]wFMCommunicate request_size=4 [07:33:21]MH_SAM_APDU [07:33:21]CAPDU: 80 13 01 00 [07:33:21]Write to MH i2c: E2 08 00 02 67 80 13 01 00 00 00 00 00 E6 [07:33:21]Write i2c OK [07:33:21]MH_I2C_Read... [07:33:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:33:21]Read from MH i2c: E2 [07:33:21]MH_I2C_Read... [07:33:21]Read from MH i2c: E2 0E 00 [07:33:21]MH_I2C_Read... [07:33:21]Read from MH i2c: E2 0E 00 02 67 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 CC [07:33:21]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [07:33:21]wFMCommunicate OK [07:33:21]SAM_PROTO_GetShiftState done [07:33:21]FM_GetShiftState done [07:33:21]req_shift_opened done [07:33:21]requested_item shift.open_date is exist - process it [07:33:21]req_shift_open_date [07:33:21]req_shift_open_date done [07:33:21]produce_requested_data done [07:33:21]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30237,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [07:33:21]process_action_free close_receipt [07:33:21]json_value_free [07:33:21]json_value_free done [07:33:21]process_json_proto returns [07:33:21]Send response to host [07:33:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30237,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [07:33:21]free response buf [07:33:21]execute_script done [07:33:21]execute_script returns [07:33:21]free content buf [07:33:21]Sock 7.Close socket [07:33:21]Sock 7.Thread stoped [07:33:25]OFD Sender: No OFD packet to send [07:33:30]OFD Sender: No OFD packet to send [07:33:35]OFD Sender: No OFD packet to send [07:33:40]OFD Sender: No OFD packet to send [07:33:45]OFD Sender: No OFD packet to send [07:33:50]OFD Sender: No OFD packet to send [07:33:55]OFD Sender: No OFD packet to send [07:34:00]OFD Sender: No OFD packet to send [07:34:05]OFD Sender: No OFD packet to send [07:34:10]OFD Sender: No OFD packet to send [07:34:15]OFD Sender: No OFD packet to send [07:34:20]OFD Sender: No OFD packet to send [07:34:25]OFD Sender: No OFD packet to send [07:34:30]OFD Sender: No OFD packet to send [07:34:35]OFD Sender: No OFD packet to send [07:34:40]OFD Sender: No OFD packet to send [07:34:45]OFD Sender: No OFD packet to send [07:34:50]OFD Sender: No OFD packet to send [07:34:55]OFD Sender: No OFD packet to send [07:35:00]OFD Sender: No OFD packet to send [07:35:05]OFD Sender: No OFD packet to send [07:35:10]OFD Sender: No OFD packet to send [07:35:15]OFD Sender: No OFD packet to send [07:35:20]OFD Sender: No OFD packet to send [07:35:25]OFD Sender: No OFD packet to send [07:35:30]OFD Sender: No OFD packet to send [07:35:35]OFD Sender: No OFD packet to send [07:35:40]OFD Sender: No OFD packet to send [07:35:45]OFD Sender: No OFD packet to send [07:35:50]OFD Sender: No OFD packet to send [07:35:55]OFD Sender: No OFD packet to send [07:36:00]OFD Sender: No OFD packet to send [07:36:05]OFD Sender: No OFD packet to send [07:36:10]OFD Sender: No OFD packet to send [07:36:15]OFD Sender: No OFD packet to send [07:36:20]OFD Sender: No OFD packet to send [07:36:25]OFD Sender: No OFD packet to send [07:36:30]OFD Sender: No OFD packet to send [07:36:35]OFD Sender: No OFD packet to send [07:36:40]OFD Sender: No OFD packet to send [07:36:45]OFD Sender: No OFD packet to send [07:36:50]OFD Sender: No OFD packet to send [07:36:55]OFD Sender: No OFD packet to send [07:37:00]OFD Sender: No OFD packet to send [07:37:05]OFD Sender: No OFD packet to send [07:37:10]OFD Sender: No OFD packet to send [07:37:15]OFD Sender: No OFD packet to send [07:37:20]OFD Sender: No OFD packet to send [07:37:25]OFD Sender: No OFD packet to send [07:37:30]OFD Sender: No OFD packet to send [07:37:35]OFD Sender: No OFD packet to send [07:37:40]OFD Sender: No OFD packet to send [07:37:45]OFD Sender: No OFD packet to send [07:37:50]OFD Sender: No OFD packet to send [07:37:55]OFD Sender: No OFD packet to send [07:38:00]OFD Sender: No OFD packet to send [07:38:05]OFD Sender: No OFD packet to send [07:38:10]OFD Sender: No OFD packet to send [07:38:15]OFD Sender: No OFD packet to send [07:38:20]OFD Sender: No OFD packet to send [07:38:25]OFD Sender: No OFD packet to send [07:38:30]OFD Sender: No OFD packet to send [07:38:35]OFD Sender: No OFD packet to send [07:38:40]OFD Sender: No OFD packet to send [07:38:45]OFD Sender: No OFD packet to send [07:38:50]OFD Sender: No OFD packet to send [07:38:55]OFD Sender: No OFD packet to send [07:39:00]OFD Sender: No OFD packet to send [07:39:05]OFD Sender: No OFD packet to send [07:39:10]OFD Sender: No OFD packet to send [07:39:15]OFD Sender: No OFD packet to send [07:39:20]OFD Sender: No OFD packet to send [07:39:25]OFD Sender: No OFD packet to send [07:39:30]OFD Sender: No OFD packet to send [07:39:35]OFD Sender: No OFD packet to send [07:39:40]OFD Sender: No OFD packet to send [07:39:45]OFD Sender: No OFD packet to send [07:39:50]OFD Sender: No OFD packet to send [07:39:55]OFD Sender: No OFD packet to send [07:40:00]OFD Sender: No OFD packet to send [07:40:05]OFD Sender: No OFD packet to send [07:40:10]OFD Sender: No OFD packet to send [07:40:15]OFD Sender: No OFD packet to send [07:40:20]OFD Sender: No OFD packet to send [07:40:25]OFD Sender: No OFD packet to send [07:40:30]OFD Sender: No OFD packet to send [07:40:35]OFD Sender: No OFD packet to send [07:40:40]OFD Sender: No OFD packet to send [07:40:45]OFD Sender: No OFD packet to send [07:40:50]OFD Sender: No OFD packet to send [07:40:55]OFD Sender: No OFD packet to send [07:41:00]OFD Sender: No OFD packet to send [07:41:05]OFD Sender: No OFD packet to send [07:41:10]OFD Sender: No OFD packet to send [07:41:15]OFD Sender: No OFD packet to send [07:41:20]OFD Sender: No OFD packet to send [07:41:25]OFD Sender: No OFD packet to send [07:41:30]OFD Sender: No OFD packet to send [07:41:35]OFD Sender: No OFD packet to send [07:41:40]OFD Sender: No OFD packet to send [07:41:45]OFD Sender: No OFD packet to send [07:41:50]OFD Sender: No OFD packet to send [07:41:55]OFD Sender: No OFD packet to send [07:42:00]OFD Sender: No OFD packet to send [07:42:05]OFD Sender: No OFD packet to send [07:42:10]OFD Sender: No OFD packet to send [07:42:15]OFD Sender: No OFD packet to send [07:42:20]OFD Sender: No OFD packet to send [07:42:25]OFD Sender: No OFD packet to send [07:42:30]OFD Sender: No OFD packet to send [07:42:35]OFD Sender: No OFD packet to send [07:42:40]OFD Sender: No OFD packet to send [07:42:45]OFD Sender: No OFD packet to send [07:42:50]OFD Sender: No OFD packet to send [07:42:55]OFD Sender: No OFD packet to send [07:43:00]OFD Sender: No OFD packet to send [07:43:05]OFD Sender: No OFD packet to send [07:43:10]OFD Sender: No OFD packet to send [07:43:15]OFD Sender: No OFD packet to send [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:44:00]OFD Sender: No OFD packet to send [07:44:05]OFD Sender: No OFD packet to send [07:44:10]OFD Sender: No OFD packet to send [07:44:15]OFD Sender: No OFD packet to send [07:44:20]OFD Sender: No OFD packet to send [07:44:25]OFD Sender: No OFD packet to send [07:44:30]OFD Sender: No OFD packet to send [07:44:35]OFD Sender: No OFD packet to send [07:44:40]OFD Sender: No OFD packet to send [07:44:45]OFD Sender: No OFD packet to send [07:44:50]OFD Sender: No OFD packet to send [07:44:55]OFD Sender: No OFD packet to send [07:45:00]OFD Sender: No OFD packet to send [07:45:05]OFD Sender: No OFD packet to send [07:45:10]OFD Sender: No OFD packet to send [07:45:15]OFD Sender: No OFD packet to send [07:45:20]OFD Sender: No OFD packet to send [07:45:25]OFD Sender: No OFD packet to send [07:45:30]OFD Sender: No OFD packet to send [07:45:35]OFD Sender: No OFD packet to send [07:45:40]OFD Sender: No OFD packet to send [07:45:45]OFD Sender: No OFD packet to send [07:45:50]OFD Sender: No OFD packet to send [07:45:55]OFD Sender: No OFD packet to send [07:46:00]OFD Sender: No OFD packet to send [07:46:05]OFD Sender: No OFD packet to send [07:46:10]OFD Sender: No OFD packet to send [07:46:15]OFD Sender: No OFD packet to send [07:46:20]OFD Sender: No OFD packet to send [07:46:25]OFD Sender: No OFD packet to send [07:46:30]OFD Sender: No OFD packet to send [07:46:35]OFD Sender: No OFD packet to send [07:46:40]OFD Sender: No OFD packet to send [07:46:45]OFD Sender: No OFD packet to send [07:46:50]OFD Sender: No OFD packet to send [07:46:55]OFD Sender: No OFD packet to send [07:47:00]OFD Sender: No OFD packet to send [07:47:05]OFD Sender: No OFD packet to send [07:47:10]OFD Sender: No OFD packet to send [07:47:15]OFD Sender: No OFD packet to send [07:47:20]OFD Sender: No OFD packet to send [07:47:25]OFD Sender: No OFD packet to send [07:47:30]OFD Sender: No OFD packet to send [07:47:36]OFD Sender: No OFD packet to send [07:47:41]OFD Sender: No OFD packet to send [07:47:46]OFD Sender: No OFD packet to send [07:47:51]OFD Sender: No OFD packet to send [07:47:56]OFD Sender: No OFD packet to send [07:48:01]OFD Sender: No OFD packet to send [07:48:06]OFD Sender: No OFD packet to send [07:48:11]OFD Sender: No OFD packet to send [07:48:16]OFD Sender: No OFD packet to send [07:48:21]OFD Sender: No OFD packet to send [07:48:26]OFD Sender: No OFD packet to send [07:48:31]OFD Sender: No OFD packet to send [07:48:36]OFD Sender: No OFD packet to send [07:48:41]OFD Sender: No OFD packet to send [07:48:46]OFD Sender: No OFD packet to send [07:48:51]OFD Sender: No OFD packet to send [07:48:56]OFD Sender: No OFD packet to send [07:49:01]OFD Sender: No OFD packet to send [07:49:06]OFD Sender: No OFD packet to send [07:49:11]OFD Sender: No OFD packet to send [07:49:16]OFD Sender: No OFD packet to send [07:49:21]OFD Sender: No OFD packet to send [07:49:26]OFD Sender: No OFD packet to send [07:49:31]OFD Sender: No OFD packet to send [07:49:36]OFD Sender: No OFD packet to send [07:49:41]OFD Sender: No OFD packet to send [07:49:46]OFD Sender: No OFD packet to send [07:49:51]OFD Sender: No OFD packet to send [07:49:56]OFD Sender: No OFD packet to send [07:50:01]OFD Sender: No OFD packet to send [07:50:06]OFD Sender: No OFD packet to send [07:50:11]OFD Sender: No OFD packet to send [07:50:16]OFD Sender: No OFD packet to send [07:50:21]OFD Sender: No OFD packet to send [07:50:26]OFD Sender: No OFD packet to send [07:50:31]OFD Sender: No OFD packet to send [07:50:36]OFD Sender: No OFD packet to send [07:50:41]OFD Sender: No OFD packet to send [07:50:46]OFD Sender: No OFD packet to send [07:50:51]OFD Sender: No OFD packet to send [07:50:56]OFD Sender: No OFD packet to send [07:51:01]OFD Sender: No OFD packet to send [07:51:06]OFD Sender: No OFD packet to send [07:51:11]OFD Sender: No OFD packet to send [07:51:16]OFD Sender: No OFD packet to send [07:51:21]OFD Sender: No OFD packet to send [07:51:26]OFD Sender: No OFD packet to send [07:51:31]OFD Sender: No OFD packet to send [07:51:36]OFD Sender: No OFD packet to send [07:51:41]OFD Sender: No OFD packet to send [07:51:46]OFD Sender: No OFD packet to send [07:51:51]OFD Sender: No OFD packet to send [07:51:56]OFD Sender: No OFD packet to send [07:52:01]OFD Sender: No OFD packet to send [07:52:06]OFD Sender: No OFD packet to send [07:52:11]OFD Sender: No OFD packet to send [07:52:16]OFD Sender: No OFD packet to send [07:52:21]OFD Sender: No OFD packet to send [07:52:26]OFD Sender: No OFD packet to send [07:52:31]OFD Sender: No OFD packet to send [07:52:36]OFD Sender: No OFD packet to send [07:52:41]OFD Sender: No OFD packet to send [07:52:46]OFD Sender: No OFD packet to send [07:52:51]OFD Sender: No OFD packet to send [07:52:56]OFD Sender: No OFD packet to send [07:53:01]OFD Sender: No OFD packet to send [07:53:06]OFD Sender: No OFD packet to send [07:53:11]OFD Sender: No OFD packet to send [07:53:16]OFD Sender: No OFD packet to send [07:53:21]OFD Sender: No OFD packet to send [07:53:26]OFD Sender: No OFD packet to send [07:53:31]OFD Sender: No OFD packet to send [07:53:36]OFD Sender: No OFD packet to send [07:53:41]OFD Sender: No OFD packet to send [07:53:46]OFD Sender: No OFD packet to send [07:53:51]OFD Sender: No OFD packet to send [07:53:56]OFD Sender: No OFD packet to send [07:54:01]OFD Sender: No OFD packet to send [07:54:06]OFD Sender: No OFD packet to send [07:54:11]OFD Sender: No OFD packet to send [07:54:16]OFD Sender: No OFD packet to send [07:54:21]OFD Sender: No OFD packet to send [07:54:26]OFD Sender: No OFD packet to send [07:54:31]OFD Sender: No OFD packet to send [07:54:36]OFD Sender: No OFD packet to send [07:54:41]OFD Sender: No OFD packet to send [07:54:46]OFD Sender: No OFD packet to send [07:54:51]OFD Sender: No OFD packet to send [07:54:56]OFD Sender: No OFD packet to send [07:55:01]OFD Sender: No OFD packet to send [07:55:06]OFD Sender: No OFD packet to send [07:55:11]OFD Sender: No OFD packet to send [07:55:16]OFD Sender: No OFD packet to send [07:55:21]OFD Sender: No OFD packet to send [07:55:26]OFD Sender: No OFD packet to send [07:55:31]OFD Sender: No OFD packet to send [07:55:36]OFD Sender: No OFD packet to send [07:55:41]OFD Sender: No OFD packet to send [07:55:46]OFD Sender: No OFD packet to send [07:55:50]accept exits with 9 [07:55:50]New connection [07:55:50]New thread 3067514212 created [07:55:50]Thread 3067370852 joined [07:55:50]Waiting for new connection... [07:55:50] Sock 9.Parse request [07:55:50]Sock 9.Check first char [07:55:50]Sock 9.First char is OK [07:55:50]request: POST /json_proto HTTP/1.0 [07:55:50]Method: POST [07:55:50]URL: /json_proto [07:55:50]Method is POST - this is cgi request [07:55:50]url: /json_proto [07:55:50]query_string will be loaded in cgi processing [07:55:50]execute_cgi json_proto POST (null) [07:55:50]execute_cgi path=json_proto method=POST [07:55:50]POST find Content-Length [07:55:50]Host: 172.17.51.3:8080 [07:55:50]Content-Length: 678 [07:55:50]Content-Type: application/json [07:55:50] [07:55:50]POST finish read [07:55:50]Found Content-Length = 678 [07:55:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342627", "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" ] } } [07:55:50]execute_script... [07:55:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342627", "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" ] } } [07:55:50]POST & json_proto [07:55:50]process_json_proto [07:55:50]json parsed OK: [07:55:50]protocol is kg_v1.0 [07:55:50]action value=close_receipt [07:55:50]process_action close_receipt [07:55:50]cmd_close_receipt [07:55:50]MH_GetDate [07:55:50]Write to MH i2c: F0 00 00 03 67 59 [07:55:50]Write i2c OK [07:55:50]MH_I2C_Read... [07:55:50]Read from MH i2c: F0 [07:55:50]MH_I2C_Read... [07:55:50]Read from MH i2c: F0 09 00 [07:55:50]MH_I2C_Read... [07:55:50]Read from MH i2c: F0 09 00 03 67 00 8E B7 14 67 04 C1 95 66 E2 [07:55:50]GetLastDocTimeStamp 1729409605 [07:55:50]current date 1729410958 [07:55:50]FM_GetShiftState [07:55:50]SAM_PROTO_GetShiftState [07:55:50]wFMCommunicate request_size=4 [07:55:50]MH_SAM_APDU [07:55:50]CAPDU: 80 13 01 00 [07:55:50]Write to MH i2c: E2 08 00 04 67 80 13 01 00 00 00 00 00 E8 [07:55:50]Write i2c OK [07:55:50]MH_I2C_Read... [07:55:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:55:50]Read from MH i2c: E2 [07:55:50]MH_I2C_Read... [07:55:50]Read from MH i2c: E2 0E 00 [07:55:50]MH_I2C_Read... [07:55:50]Read from MH i2c: E2 0E 00 04 67 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 CE [07:55:50]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [07:55:50]wFMCommunicate OK [07:55:50]SAM_PROTO_GetShiftState done [07:55:50]FM_GetShiftState done [07:55:50]opened in 1729384718 [07:55:50]opened+sec_in_day 1729471118 [07:55:50]quantity*price = 70044 [07:55:50]sum+1 = 70045 [07:55:50]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 СНО: Общий режим Чек 20 20.10.2024 07:55 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30238 ФПД: 195545577617925 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T075558&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30238&fm=195545577617925&tin=02508201610067®Number=0000000000186857&sum=70000 [07:55:51]StoreToDocumentArchive [07:55:51]shift 114 fd 30238 [07:55:51]save to /storage/0114/doc_00030238 [07:55:51]save last doc name /storage/0114/doc_00030238 to /storage/kkm_last_doc_name [07:55:51]save OK [07:55:51]Clear old archive folders... [07:55:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:55:51]tlvbuf is 00AC84C0 [07:55:51]SAM_PROTO_ClearQueue [07:55:51]wFMCommunicate request_size=4 [07:55:51]MH_SAM_APDU [07:55:51]CAPDU: 80 09 00 00 [07:55:51]Write to MH i2c: E2 08 00 11 67 80 09 00 00 00 00 00 00 EA [07:55:51]Write i2c OK [07:55:51]MH_I2C_Read... [07:55:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:55:51]Read from MH i2c: E2 [07:55:51]MH_I2C_Read... [07:55:51]Read from MH i2c: E2 03 00 [07:55:51]MH_I2C_Read... [07:55:51]Read from MH i2c: E2 03 00 11 67 00 90 00 EC [07:55:51]RAPDU: 90 00 [07:55:51]wFMCommunicate OK [07:55:51]SAM_PROTO_ClearQueue done [07:55:51]KKMCreateOFDPacket [07:55:51]OFDProtocolAddRootSTLVToBuf [07:55:51]FM_MakeSignedData [07:55:51]FM_MakeSignedData [07:55:51]SAM_PROTO_SignData [07:55:51]wFMCommunicate request_size=4 [07:55:51]MH_SAM_APDU [07:55:51]CAPDU: 80 0D 01 02 [07:55:51]Write to MH i2c: E2 08 00 12 67 80 0D 01 02 00 00 00 00 F2 [07:55:51]Write i2c OK [07:55:51]MH_I2C_Read... [07:55:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:55:51]Read from MH i2c: E2 [07:55:51]MH_I2C_Read... [07:55:51]Read from MH i2c: E2 03 00 [07:55:51]MH_I2C_Read... [07:55:51]Read from MH i2c: E2 03 00 12 67 00 90 00 ED [07:55:51]RAPDU: 90 00 [07:55:51]wFMCommunicate OK [07:55:51]wFMCommunicate request_size=255 [07:55:51]MH_SAM_APDU [07:55: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 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 14 00 00 00 F4 03 04 00 8E B7 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 B1 [07:55:51]Write to MH i2c: E2 02 01 13 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 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 14 00 00 00 F4 03 04 00 8E B7 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 B1 00 00 1E [07:55:51]Write i2c OK [07:55:51]MH_I2C_Read... [07:55:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:55:51]Read from MH i2c: E2 [07:55:51]MH_I2C_Read... [07:55:51]Read from MH i2c: E2 03 00 [07:55:51]MH_I2C_Read... [07:55:51]Read from MH i2c: E2 03 00 13 67 00 90 00 EE [07:55:51]RAPDU: 90 00 [07:55:51]wFMCommunicate OK [07:55:51]wFMCommunicate request_size=10 [07:55:51]MH_SAM_APDU [07:55:51]CAPDU: 80 0D 02 02 05 D9 00 B0 FA 05 [07:55:51]Write to MH i2c: E2 0D 00 14 67 80 0D 02 02 05 00 D9 00 B0 FA 05 00 00 87 [07:55:51]Write i2c OK [07:55:51]MH_I2C_Read... [07:55:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:55:51]Read from MH i2c: E2 [07:55:51]MH_I2C_Read... [07:55:51]Read from MH i2c: E2 03 00 [07:55:51]MH_I2C_Read... [07:55:51]Read from MH i2c: E2 03 00 14 67 00 90 00 EF [07:55:51]RAPDU: 90 00 [07:55:51]wFMCommunicate OK [07:55:51]wFMCommunicate request_size=4 [07:55:51]MH_SAM_APDU [07:55:51]CAPDU: 80 0D 03 02 [07:55:51]Write to MH i2c: E2 08 00 15 67 80 0D 03 02 00 00 00 00 F7 [07:55:51]Write i2c OK [07:55:51]MH_I2C_Read... [07:55:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:55:52]Read from MH i2c: E2 [07:55:52]MH_I2C_Read... [07:55:52]Read from MH i2c: E2 0B 00 [07:55:52]MH_I2C_Read... [07:55:52]Read from MH i2c: E2 0B 00 15 67 00 0F 96 AC D2 CB C7 3E 7D 90 00 68 [07:55:52]RAPDU: 0F 96 AC D2 CB C7 3E 7D 90 00 [07:55:52]wFMCommunicate OK [07:55:52]SAM_PROTO_SignData done [07:55:52]FM_MakeSignedData done [07:55:52]CreateOFDProtocolMessage [07:55:52]wFMCommunicate request_size=4 [07:55:52]MH_SAM_APDU [07:55:52]CAPDU: 80 11 00 00 [07:55:52]Write to MH i2c: E2 08 00 16 67 80 11 00 00 00 00 00 00 F7 [07:55:52]Write i2c OK [07:55:52]MH_I2C_Read... [07:55:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:55:52]Read from MH i2c: E2 [07:55:52]MH_I2C_Read... [07:55:52]Read from MH i2c: E2 17 00 [07:55:52]MH_I2C_Read... [07:55:52]Read from MH i2c: E2 17 00 16 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 45 [07:55:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [07:55:52]wFMCommunicate OK [07:55:52]CreateOFDProtocolMessage done [07:55:52]OFDSenderStorePacket 30238 [07:55:52]StoreOFDPacket docnum=30238 [07:55: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 32 83 07 01 E3 DE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 14 00 00 00 F4 03 04 00 8E B7 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 B1 D9 00 B0 FA 05 0F 96 AC D2 CB C7 3E 7D [07:55:52]CheckFolder [07:55:52]dirname=/storage/ofd_packets [07:55:52]CheckFolder done [07:55:52]ProducePacketName [07:55:52]name=ofd_packets/00030238 [07:55:52]NVStorageSaveData ofd_packets/00030238 [07:55:52]File name is /storage/ofd_packets/00030238 [07:55:52]Write 301 bytes [07:55:52]NVStorageSaveData done [07:55:52]OFDSenderStorePacket done [07:55:52]KKMCreateOFDPacket done [07:55:52]NVStorageSaveData kkm_last_timestamp [07:55:52]File name is /storage/kkm_last_timestamp [07:55:52]Write 4 bytes [07:55:52]NVStorageSaveData done [07:55:52]ExternCall_PrintAddStr [07:55:52]wPrintStart [07:55:52]Write to MH i2c: 01 00 00 17 67 7E [07:55:52]Write i2c OK [07:55:52]MH_I2C_Read... [07:55:52]Read from MH i2c: 01 [07:55:52]MH_I2C_Read... [07:55:52]Read from MH i2c: 01 07 00 [07:55:52]MH_I2C_Read... [07:55:52]Read from MH i2c: 01 07 00 17 67 00 00 00 00 00 FF 0F 93 [07:55:52]RasterBufferAndPrint [07:55:52]line Счет N : (1)342627 [07:55:52]line ИНН: 02508201610067 [07:55:52]line Контрольно-Кассовый Чек [07:55:52]line ПРОДАЖА [07:55:52]line ТРК (МРК, ГНК) : 63 [07:55:52]line Товар: 2710124130 [07:55:52]line Аи-92-К-2 [07:55:52]line 10.470 * 66.90 [07:55:52]line = 700.44 [07:55:52]line НДС 12% НСП 1% [07:55:52]line > о реализуемом товаре [07:55:52]line ОКРУГЛЕНИЕ: -0.44 [07:55:52]line ИТОГО: 700.00 [07:55:52]line Внесено: 700.00 [07:55:52]line СДАЧА: 0.00 [07:55:52]line НСП 1% : 6.20 [07:55:52]line НДС 12% : 74.38 [07:55:52]line Наличными: 700.00 [07:55:52]line Безнал.: 0.00 [07:55:52]line Место: АЗС № 78 "Партнер Нефть" [07:55:52]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [07:55:52]line СНО: Общий режим [07:55:52]line Чек 20 20.10.2024 07:55 [07:55:52]line Смена: 114 ФФД: 1.0 [07:55:52]line ЗНМ: 0300000137 [07:55:52]line РНМ: 0000000000186857 [07:55:52]line Версия ККМ: v1.0 [07:55:52]line ФМ: 0000000002094219 [07:55:52]line ФД: 30238 [07:55:52]line ФПД: 195545577617925 [07:55:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T075558&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30238&fm=195545577617925&tin=02508201610067®Number=0000000000186857&sum=70000 [07:55:52]OFD Sender: Processing packet 30238 [packets to send 10, broken 9] [07:55:52]ProducePacketName [07:55:52]name=ofd_packets/00030238 [07:55:52]OFD Sender: To server: pG, [07:55:52]CommunicateWithHost lk.salyk.kg:30040 [07:55:52]ConnectInit lk.salyk.kg [07:55:52]written 0, free lines is 4095 [07:55:52]Connected sock=10 [07:55: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 32 83 07 01 E3 DE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 14 00 00 00 F4 03 04 00 8E B7 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 B1 D9 00 B0 FA 05 0F 96 AC D2 CB C7 3E 7D [07:55: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 21 9F 47 00 F6 47 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 1E 76 00 00 F4 03 04 00 13 62 14 67 B6 04 01 00 00 65 AF DB 13 B5 C0 01 EC [07:55:52]CommunicateWithHost err = 0 [07:55:52]CheckOFDResponse [07:55:52]1017 (14) - 77093643461234 [07:55:52]1041 (16) - 0000000002094219 [07:55:52]1040 (4) - 30238 [07:55:52]1012 (4) - 20.10.2024 01:51 [07:55:52]1206 (1) - 0 [07:55:52]OFD Sender: Remove packet 30238 [07:55:52]ProducePacketName [07:55:52]name=ofd_packets/00030238 [07:55:52]NVStorageDeleteData [07:55:52]Write to MH i2c: 01 00 00 42 67 A9 [07:55:52]Write i2c OK [07:55:52]MH_I2C_Read... [07:55:52]Read from MH i2c: 01 [07:55:52]MH_I2C_Read... [07:55:52]Read from MH i2c: 01 07 00 [07:55:52]MH_I2C_Read... [07:55:52]Read from MH i2c: 01 07 00 42 67 00 00 00 00 00 F6 0C B2 [07:55:52]RasterBufferAndPrint [07:55:52]line [07:55:52]line [07:55:52]line [07:55:52]line [07:55:52]line [07:55:52]written 0, free lines is 3329 [07:55:52]MH_Cut [07:55:52]Write to MH i2c: D1 01 00 49 67 01 82 [07:55:52]Write i2c OK [07:55:52]MH_I2C_Read... [07:55:52]Read from MH i2c: D1 [07:55:52]MH_I2C_Read... [07:55:52]Read from MH i2c: D1 01 00 [07:55:52]MH_I2C_Read... [07:55:52]Read from MH i2c: D1 01 00 49 67 00 81 [07:55:52]Write to MH i2c: 01 00 00 4A 67 B1 [07:55:52]Write i2c OK [07:55:52]MH_I2C_Read... [07:55:53]OFD Sender: No OFD packet to send [07:55:53]*** Cut start [07:55:53]*** Partial cut [07:55:53]*** CUTSNS_PIN = 1 [07:55:53]*** CUTSNS_PIN = 0 [07:55:53]*** Brake cut motor [07:55:54]Read from MH i2c: 01 [07:55:54]MH_I2C_Read... [07:55:54]*** Stop cut motor [07:55:54]*** Cut end [07:55:54]Read from MH i2c: 01 07 00 [07:55:54]MH_I2C_Read... [07:55:54]Read from MH i2c: 01 07 00 4A 67 00 00 00 00 00 FF 0F C6 [07:55:54]process_action close_receipt done [07:55:54]requested_data is exist [07:55:54]produce_requested_data [07:55:54]requested_item fm.sn is exist - process it [07:55:54]wFMCommunicate request_size=4 [07:55:54]MH_SAM_APDU [07:55:54]CAPDU: 80 11 00 00 [07:55:54]Write to MH i2c: E2 08 00 4B 67 80 11 00 00 00 00 00 00 2C [07:55:54]Write i2c OK [07:55:54]MH_I2C_Read... [07:55:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:55:54]Read from MH i2c: E2 [07:55:54]MH_I2C_Read... [07:55:54]Read from MH i2c: E2 17 00 [07:55:54]MH_I2C_Read... [07:55:54]Read from MH i2c: E2 17 00 4B 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 7A [07:55:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [07:55:54]wFMCommunicate OK [07:55:54]requested_item fd.num is exist - process it [07:55:54]SAM_PROTO_GetFieldsCounters [07:55:54]wFMCommunicate request_size=4 [07:55:54]MH_SAM_APDU [07:55:54]CAPDU: 80 13 00 00 [07:55:54]Write to MH i2c: E2 08 00 4C 67 80 13 00 00 00 00 00 00 2F [07:55:54]Write i2c OK [07:55:54]MH_I2C_Read... [07:55:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:55:54]Read from MH i2c: E2 [07:55:54]MH_I2C_Read... [07:55:54]Read from MH i2c: E2 62 00 [07:55:54]MH_I2C_Read... [07:55:54]Read from MH i2c: E2 62 00 4C 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 76 00 00 0E 04 04 00 72 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 [07:55: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 1E 76 00 00 0E 04 04 00 72 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 [07:55:54]wFMCommunicate OK [07:55:54]SAM_PROTO_GetFieldsCounters done [07:55:54]requested_item shift.num is exist - process it [07:55:54]requested_item shift.opened is exist - process it [07:55:54]req_shift_opened [07:55:54]FM_GetShiftState [07:55:54]SAM_PROTO_GetShiftState [07:55:54]wFMCommunicate request_size=4 [07:55:54]MH_SAM_APDU [07:55:54]CAPDU: 80 13 01 00 [07:55:54]Write to MH i2c: E2 08 00 4D 67 80 13 01 00 00 00 00 00 31 [07:55:54]Write i2c OK [07:55:54]MH_I2C_Read... [07:55:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:55:54]Read from MH i2c: E2 [07:55:54]MH_I2C_Read... [07:55:54]Read from MH i2c: E2 0E 00 [07:55:54]MH_I2C_Read... [07:55:54]Read from MH i2c: E2 0E 00 4D 67 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 17 [07:55:54]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [07:55:54]wFMCommunicate OK [07:55:54]SAM_PROTO_GetShiftState done [07:55:54]FM_GetShiftState done [07:55:54]req_shift_opened done [07:55:54]requested_item shift.open_date is exist - process it [07:55:54]req_shift_open_date [07:55:54]req_shift_open_date done [07:55:54]produce_requested_data done [07:55:54]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30238,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [07:55:54]process_action_free close_receipt [07:55:54]json_value_free [07:55:54]json_value_free done [07:55:54]process_json_proto returns [07:55:54]Send response to host [07:55:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30238,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [07:55:54]free response buf [07:55:54]execute_script done [07:55:54]execute_script returns [07:55:54]free content buf [07:55:54]Sock 9.Close socket [07:55:54]Sock 9.Thread stoped [07:55:58]OFD Sender: No OFD packet to send [07:56:03]OFD Sender: No OFD packet to send [07:56:08]OFD Sender: No OFD packet to send [07:56:13]OFD Sender: No OFD packet to send [07:56:18]OFD Sender: No OFD packet to send [07:56:23]OFD Sender: No OFD packet to send [07:56:28]OFD Sender: No OFD packet to send [07:56:33]OFD Sender: No OFD packet to send [07:56:38]OFD Sender: No OFD packet to send [07:56:43]OFD Sender: No OFD packet to send [07:56:48]OFD Sender: No OFD packet to send [07:56:53]OFD Sender: No OFD packet to send [07:56:58]OFD Sender: No OFD packet to send [07:57:03]OFD Sender: No OFD packet to send [07:57:08]OFD Sender: No OFD packet to send [07:57:13]OFD Sender: No OFD packet to send [07:57:18]OFD Sender: No OFD packet to send [07:57:23]OFD Sender: No OFD packet to send [07:57:28]OFD Sender: No OFD packet to send [07:57:33]OFD Sender: No OFD packet to send [07:57:38]OFD Sender: No OFD packet to send [07:57:43]OFD Sender: No OFD packet to send [07:57:48]OFD Sender: No OFD packet to send [07:57:53]OFD Sender: No OFD packet to send [07:57:58]OFD Sender: No OFD packet to send [07:58:03]OFD Sender: No OFD packet to send [07:58:08]OFD Sender: No OFD packet to send [07:58:13]OFD Sender: No OFD packet to send [07:58:18]OFD Sender: No OFD packet to send [07:58:23]OFD Sender: No OFD packet to send [07:58:28]OFD Sender: No OFD packet to send [07:58:33]OFD Sender: No OFD packet to send [07:58:38]OFD Sender: No OFD packet to send [07:58:43]OFD Sender: No OFD packet to send [07:58:48]OFD Sender: No OFD packet to send [07:58:53]OFD Sender: No OFD packet to send [07:58:58]OFD Sender: No OFD packet to send [07:59:03]OFD Sender: No OFD packet to send [07:59:08]OFD Sender: No OFD packet to send [07:59:13]OFD Sender: No OFD packet to send [07:59:18]OFD Sender: No OFD packet to send [07:59:23]OFD Sender: No OFD packet to send [07:59:28]OFD Sender: No OFD packet to send [07:59:33]OFD Sender: No OFD packet to send [07:59:38]OFD Sender: No OFD packet to send [07:59:43]OFD Sender: No OFD packet to send [07:59:48]OFD Sender: No OFD packet to send [07:59:51]accept exits with 7 [07:59:51]New connection [07:59:51]New thread 3067370852 created [07:59:51]Thread 3067514212 joined [07:59:51]Waiting for new connection... [07:59:51] Sock 7.Parse request [07:59:51]Sock 7.Check first char [07:59:51]Sock 7.First char is OK [07:59:51]request: POST /json_proto HTTP/1.0 [07:59:51]Method: POST [07:59:51]URL: /json_proto [07:59:51]Method is POST - this is cgi request [07:59:51]url: /json_proto [07:59:51]query_string will be loaded in cgi processing [07:59:51]execute_cgi json_proto POST (null) [07:59:51]execute_cgi path=json_proto method=POST [07:59:51]POST find Content-Length [07:59:51]Host: 172.17.51.3:8080 [07:59:51]Content-Length: 677 [07:59:51]Content-Type: application/json [07:59:51] [07:59:51]POST finish read [07:59:51]Found Content-Length = 677 [07:59:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342628", "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" ] } } [07:59:51]execute_script... [07:59: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)342628", "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" ] } } [07:59:51]POST & json_proto [07:59:51]process_json_proto [07:59:51]json parsed OK: [07:59:51]protocol is kg_v1.0 [07:59:51]action value=close_receipt [07:59:51]process_action close_receipt [07:59:51]cmd_close_receipt [07:59:51]MH_GetDate [07:59:51]Write to MH i2c: F0 00 00 4E 67 A4 [07:59:51]Write i2c OK [07:59:51]MH_I2C_Read... [07:59:51]Read from MH i2c: F0 [07:59:51]MH_I2C_Read... [07:59:51]Read from MH i2c: F0 09 00 [07:59:51]MH_I2C_Read... [07:59:51]Read from MH i2c: F0 09 00 4E 67 00 7F B8 14 67 04 C1 95 66 1F [07:59:51]GetLastDocTimeStamp 1729410958 [07:59:51]current date 1729411199 [07:59:51]FM_GetShiftState [07:59:51]SAM_PROTO_GetShiftState [07:59:51]wFMCommunicate request_size=4 [07:59:51]MH_SAM_APDU [07:59:51]CAPDU: 80 13 01 00 [07:59:51]Write to MH i2c: E2 08 00 4F 67 80 13 01 00 00 00 00 00 33 [07:59:51]Write i2c OK [07:59:51]MH_I2C_Read... [07:59:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:59:51]Read from MH i2c: E2 [07:59:51]MH_I2C_Read... [07:59:51]Read from MH i2c: E2 0E 00 [07:59:51]MH_I2C_Read... [07:59:51]Read from MH i2c: E2 0E 00 4F 67 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 19 [07:59:51]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [07:59:51]wFMCommunicate OK [07:59:51]SAM_PROTO_GetShiftState done [07:59:51]FM_GetShiftState done [07:59:51]opened in 1729384718 [07:59:51]opened+sec_in_day 1729471118 [07:59:51]quantity*price = 50041 [07:59:51]sum+1 = 50042 [07:59:51]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 СНО: Общий режим Чек 21 20.10.2024 07:59 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30239 ФПД: 139214256579462 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T075959&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30239&fm=139214256579462&tin=02508201610067®Number=0000000000186857&sum=50000 [07:59:52]StoreToDocumentArchive [07:59:52]shift 114 fd 30239 [07:59:52]save to /storage/0114/doc_00030239 [07:59:52]save last doc name /storage/0114/doc_00030239 to /storage/kkm_last_doc_name [07:59:52]save OK [07:59:52]Clear old archive folders... [07:59:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:59:52]tlvbuf is 00B21510 [07:59:52]SAM_PROTO_ClearQueue [07:59:52]wFMCommunicate request_size=4 [07:59:52]MH_SAM_APDU [07:59:52]CAPDU: 80 09 00 00 [07:59:52]Write to MH i2c: E2 08 00 5C 67 80 09 00 00 00 00 00 00 35 [07:59:52]Write i2c OK [07:59:52]MH_I2C_Read... [07:59:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:59:52]Read from MH i2c: E2 [07:59:52]MH_I2C_Read... [07:59:52]Read from MH i2c: E2 03 00 [07:59:52]MH_I2C_Read... [07:59:52]Read from MH i2c: E2 03 00 5C 67 00 90 00 37 [07:59:52]RAPDU: 90 00 [07:59:52]wFMCommunicate OK [07:59:52]SAM_PROTO_ClearQueue done [07:59:52]KKMCreateOFDPacket [07:59:52]OFDProtocolAddRootSTLVToBuf [07:59:52]FM_MakeSignedData [07:59:52]FM_MakeSignedData [07:59:52]SAM_PROTO_SignData [07:59:52]wFMCommunicate request_size=4 [07:59:52]MH_SAM_APDU [07:59:52]CAPDU: 80 0D 01 02 [07:59:52]Write to MH i2c: E2 08 00 5D 67 80 0D 01 02 00 00 00 00 3D [07:59:52]Write i2c OK [07:59:52]MH_I2C_Read... [07:59:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:59:52]Read from MH i2c: E2 [07:59:52]MH_I2C_Read... [07:59:52]Read from MH i2c: E2 03 00 [07:59:52]MH_I2C_Read... [07:59:52]Read from MH i2c: E2 03 00 5D 67 00 90 00 38 [07:59:52]RAPDU: 90 00 [07:59:52]wFMCommunicate OK [07:59:52]wFMCommunicate request_size=255 [07:59:52]MH_SAM_APDU [07:59: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 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 15 00 00 00 F4 03 04 00 7F B8 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 7E [07:59:52]Write to MH i2c: E2 02 01 5E 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 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 15 00 00 00 F4 03 04 00 7F B8 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 7E 00 00 1A [07:59:52]Write i2c OK [07:59:52]MH_I2C_Read... [07:59:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:59:52]Read from MH i2c: E2 [07:59:52]MH_I2C_Read... [07:59:52]Read from MH i2c: E2 03 00 [07:59:52]MH_I2C_Read... [07:59:52]Read from MH i2c: E2 03 00 5E 67 00 90 00 39 [07:59:52]RAPDU: 90 00 [07:59:52]wFMCommunicate OK [07:59:52]wFMCommunicate request_size=10 [07:59:52]MH_SAM_APDU [07:59:52]CAPDU: 80 0D 02 02 05 9D 58 4F A3 86 [07:59:52]Write to MH i2c: E2 0D 00 5F 67 80 0D 02 02 05 00 9D 58 4F A3 86 00 00 B7 [07:59:52]Write i2c OK [07:59:52]MH_I2C_Read... [07:59:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:59:52]Read from MH i2c: E2 [07:59:52]MH_I2C_Read... [07:59:52]Read from MH i2c: E2 03 00 [07:59:52]MH_I2C_Read... [07:59:52]Read from MH i2c: E2 03 00 5F 67 00 90 00 3A [07:59:52]RAPDU: 90 00 [07:59:52]wFMCommunicate OK [07:59:52]wFMCommunicate request_size=4 [07:59:52]MH_SAM_APDU [07:59:52]CAPDU: 80 0D 03 02 [07:59:52]Write to MH i2c: E2 08 00 60 67 80 0D 03 02 00 00 00 00 42 [07:59:52]Write i2c OK [07:59:52]MH_I2C_Read... [07:59:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:59:52]Read from MH i2c: E2 [07:59:52]MH_I2C_Read... [07:59:52]Read from MH i2c: E2 0B 00 [07:59:52]MH_I2C_Read... [07:59:52]Read from MH i2c: E2 0B 00 60 67 00 BF 9F 72 27 73 D4 91 2E 90 00 40 [07:59:52]RAPDU: BF 9F 72 27 73 D4 91 2E 90 00 [07:59:52]wFMCommunicate OK [07:59:52]SAM_PROTO_SignData done [07:59:52]FM_MakeSignedData done [07:59:52]CreateOFDProtocolMessage [07:59:52]wFMCommunicate request_size=4 [07:59:52]MH_SAM_APDU [07:59:52]CAPDU: 80 11 00 00 [07:59:52]Write to MH i2c: E2 08 00 61 67 80 11 00 00 00 00 00 00 42 [07:59:52]Write i2c OK [07:59:52]MH_I2C_Read... [07:59:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:59:52]Read from MH i2c: E2 [07:59:52]MH_I2C_Read... [07:59:52]Read from MH i2c: E2 17 00 [07:59:52]MH_I2C_Read... [07:59:52]Read from MH i2c: E2 17 00 61 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 90 [07:59:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [07:59:52]wFMCommunicate OK [07:59:52]CreateOFDProtocolMessage done [07:59:52]OFDSenderStorePacket 30239 [07:59:52]StoreOFDPacket docnum=30239 [07:59: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 66 2B 07 01 39 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 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 15 00 00 00 F4 03 04 00 7F B8 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 7E 9D 58 4F A3 86 BF 9F 72 27 73 D4 91 2E [07:59:52]CheckFolder [07:59:52]dirname=/storage/ofd_packets [07:59:52]CheckFolder done [07:59:52]ProducePacketName [07:59:52]name=ofd_packets/00030239 [07:59:52]NVStorageSaveData ofd_packets/00030239 [07:59:52]File name is /storage/ofd_packets/00030239 [07:59:52]Write 301 bytes [07:59:52]NVStorageSaveData done [07:59:52]OFDSenderStorePacket done [07:59:52]KKMCreateOFDPacket done [07:59:52]NVStorageSaveData kkm_last_timestamp [07:59:52]File name is /storage/kkm_last_timestamp [07:59:52]Write 4 bytes [07:59:52]NVStorageSaveData done [07:59:52]ExternCall_PrintAddStr [07:59:52]wPrintStart [07:59:52]Write to MH i2c: 01 00 00 62 67 C9 [07:59:52]Write i2c OK [07:59:52]MH_I2C_Read... [07:59:52]Read from MH i2c: 01 [07:59:52]MH_I2C_Read... [07:59:52]Read from MH i2c: 01 07 00 [07:59:52]MH_I2C_Read... [07:59:52]Read from MH i2c: 01 07 00 62 67 00 00 00 00 00 FF 0F DE [07:59:52]RasterBufferAndPrint [07:59:52]line Счет N : (1)342628 [07:59:52]line ИНН: 02508201610067 [07:59:52]line Контрольно-Кассовый Чек [07:59:52]line ПРОДАЖА [07:59:52]line ТРК (МРК, ГНК) : 63 [07:59:52]line Товар: 2710124130 [07:59:52]line Аи-92-К-2 [07:59:52]line 7.480 * 66.90 [07:59:52]line = 500.41 [07:59:52]line НДС 12% НСП 1% [07:59:52]line > о реализуемом товаре [07:59:52]line ОКРУГЛЕНИЕ: -0.41 [07:59:52]line ИТОГО: 500.00 [07:59:52]line Внесено: 500.00 [07:59:52]line СДАЧА: 0.00 [07:59:52]line НСП 1% : 4.43 [07:59:52]line НДС 12% : 53.14 [07:59:52]line Наличными: 500.00 [07:59:52]line Безнал.: 0.00 [07:59:52]line Место: АЗС № 78 "Партнер Нефть" [07:59:52]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [07:59:52]line СНО: Общий режим [07:59:52]line Чек 21 20.10.2024 07:59 [07:59:52]line Смена: 114 ФФД: 1.0 [07:59:52]line ЗНМ: 0300000137 [07:59:52]line РНМ: 0000000000186857 [07:59:52]line Версия ККМ: v1.0 [07:59:52]line ФМ: 0000000002094219 [07:59:52]line ФД: 30239 [07:59:52]line ФПД: 139214256579462 [07:59:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T075959&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30239&fm=139214256579462&tin=02508201610067®Number=0000000000186857&sum=50000 [07:59:53]OFD Sender: Processing packet 30239 [packets to send 10, broken 9] [07:59:53]ProducePacketName [07:59:53]name=ofd_packets/00030239 [07:59:53]OFD Sender: To server: pG, [07:59:53]CommunicateWithHost lk.salyk.kg:30040 [07:59:53]ConnectInit lk.salyk.kg [07:59:53]written 0, free lines is 4095 [07:59:53]Write to MH i2c: 01 00 00 8D 67 F4 [07:59:53]Write i2c OK [07:59:53]MH_I2C_Read... [07:59:53]Read from MH i2c: 01 [07:59:53]MH_I2C_Read... [07:59:53]Read from MH i2c: 01 07 00 [07:59:53]MH_I2C_Read... [07:59:53]Read from MH i2c: 01 07 00 8D 67 00 00 00 00 00 EF 0C F6 [07:59:53]RasterBufferAndPrint [07:59:53]line [07:59:53]line [07:59:53]line [07:59:53]line [07:59:53]line [07:59:53]written 0, free lines is 3317 [07:59:53]MH_Cut [07:59:53]Write to MH i2c: D1 01 00 94 67 01 CD [07:59:53]Write i2c OK [07:59:53]MH_I2C_Read... [07:59:53]Read from MH i2c: D1 [07:59:53]MH_I2C_Read... [07:59:53]Read from MH i2c: D1 01 00 [07:59:53]MH_I2C_Read... [07:59:53]Read from MH i2c: D1 01 00 94 67 00 CC [07:59:53]Write to MH i2c: 01 00 00 95 67 FC [07:59:53]Write i2c OK [07:59:53]MH_I2C_Read... [07:59:54]*** Cut start [07:59:54]*** Partial cut [07:59:54]*** CUTSNS_PIN = 1 [07:59:54]*** CUTSNS_PIN = 0 [07:59:54]*** Brake cut motor [07:59:54]Read from MH i2c: 01 [07:59:55]MH_I2C_Read... [07:59:55]*** Stop cut motor [07:59:55]*** Cut end [07:59:55]Read from MH i2c: 01 07 00 [07:59:55]MH_I2C_Read... [07:59:55]Read from MH i2c: 01 07 00 95 67 00 00 00 00 00 FF 0F 11 [07:59:55]process_action close_receipt done [07:59:55]requested_data is exist [07:59:55]produce_requested_data [07:59:55]requested_item fm.sn is exist - process it [07:59:55]wFMCommunicate request_size=4 [07:59:55]MH_SAM_APDU [07:59:55]CAPDU: 80 11 00 00 [07:59:55]Write to MH i2c: E2 08 00 96 67 80 11 00 00 00 00 00 00 77 [07:59:55]Write i2c OK [07:59:55]MH_I2C_Read... [07:59:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:59:55]Read from MH i2c: E2 [07:59:55]MH_I2C_Read... [07:59:55]Read from MH i2c: E2 17 00 [07:59:55]MH_I2C_Read... [07:59:55]Read from MH i2c: E2 17 00 96 67 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:59:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [07:59:55]wFMCommunicate OK [07:59:55]requested_item fd.num is exist - process it [07:59:55]SAM_PROTO_GetFieldsCounters [07:59:55]wFMCommunicate request_size=4 [07:59:55]MH_SAM_APDU [07:59:55]CAPDU: 80 13 00 00 [07:59:55]Write to MH i2c: E2 08 00 97 67 80 13 00 00 00 00 00 00 7A [07:59:55]Write i2c OK [07:59:55]MH_I2C_Read... [07:59:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:59:55]Read from MH i2c: E2 [07:59:55]MH_I2C_Read... [07:59:55]Read from MH i2c: E2 62 00 [07:59:55]MH_I2C_Read... [07:59:55]Read from MH i2c: E2 62 00 97 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 76 00 00 0E 04 04 00 72 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 [07:59: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 1F 76 00 00 0E 04 04 00 72 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 [07:59:55]wFMCommunicate OK [07:59:55]SAM_PROTO_GetFieldsCounters done [07:59:55]requested_item shift.num is exist - process it [07:59:55]requested_item shift.opened is exist - process it [07:59:55]req_shift_opened [07:59:55]FM_GetShiftState [07:59:55]SAM_PROTO_GetShiftState [07:59:55]wFMCommunicate request_size=4 [07:59:55]MH_SAM_APDU [07:59:55]CAPDU: 80 13 01 00 [07:59:55]Write to MH i2c: E2 08 00 98 67 80 13 01 00 00 00 00 00 7C [07:59:55]Write i2c OK [07:59:55]MH_I2C_Read... [07:59:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:59:55]Read from MH i2c: E2 [07:59:55]MH_I2C_Read... [07:59:55]Read from MH i2c: E2 0E 00 [07:59:55]MH_I2C_Read... [07:59:55]Read from MH i2c: E2 0E 00 98 67 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 62 [07:59:55]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [07:59:55]wFMCommunicate OK [07:59:55]SAM_PROTO_GetShiftState done [07:59:55]FM_GetShiftState done [07:59:55]req_shift_opened done [07:59:55]requested_item shift.open_date is exist - process it [07:59:55]req_shift_open_date [07:59:55]req_shift_open_date done [07:59:55]produce_requested_data done [07:59:55]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30239,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [07:59:55]process_action_free close_receipt [07:59:55]json_value_free [07:59:55]json_value_free done [07:59:55]process_json_proto returns [07:59:55]Send response to host [07:59:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30239,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [07:59:55]free response buf [07:59:55]execute_script done [07:59:55]execute_script returns [07:59:55]free content buf [07:59:55]Sock 7.Close socket [07:59:55]Sock 7.Thread stoped [08:01:31]accept exits with 9 [08:01:31]New connection [08:01:31]New thread 3067514212 created [08:01:31]Thread 3067370852 joined [08:01:31]Waiting for new connection... [08:01:31] Sock 9.Parse request [08:01:31]Sock 9.Check first char [08:01:31]Sock 9.First char is OK [08:01:31]request: POST /json_proto HTTP/1.0 [08:01:31]Method: POST [08:01:31]URL: /json_proto [08:01:31]Method is POST - this is cgi request [08:01:31]url: /json_proto [08:01:31]query_string will be loaded in cgi processing [08:01:31]execute_cgi json_proto POST (null) [08:01:31]execute_cgi path=json_proto method=POST [08:01:31]POST find Content-Length [08:01:31]Host: 172.17.51.3:8080 [08:01:31]Content-Length: 679 [08:01:31]Content-Type: application/json [08:01:31] [08:01:31]POST finish read [08:01:31]Found Content-Length = 679 [08:01:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342629", "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" ] } } [08:01:31]execute_script... [08: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)342629", "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" ] } } [08:01:31]POST & json_proto [08:01:31]process_json_proto [08:01:31]json parsed OK: [08:01:31]protocol is kg_v1.0 [08:01:31]action value=close_receipt [08:01:31]process_action close_receipt [08:01:31]cmd_close_receipt [08:01:31]MH_GetDate [08:01:31]Write to MH i2c: F0 00 00 99 67 EF [08:01:31]Write i2c OK [08:01:31]MH_I2C_Read... [08:01:31]Read from MH i2c: F0 [08:01:31]MH_I2C_Read... [08:01:31]Read from MH i2c: F0 09 00 [08:01:31]MH_I2C_Read... [08:01:31]Read from MH i2c: F0 09 00 99 67 00 E4 B8 14 67 04 C1 95 66 CF [08:01:31]GetLastDocTimeStamp 1729411199 [08:01:31]current date 1729411300 [08:01:31]FM_GetShiftState [08:01:31]SAM_PROTO_GetShiftState [08:01:31]wFMCommunicate request_size=4 [08:01:31]MH_SAM_APDU [08:01:31]CAPDU: 80 13 01 00 [08:01:31]Write to MH i2c: E2 08 00 9A 67 80 13 01 00 00 00 00 00 7E [08:01:31]Write i2c OK [08:01:31]MH_I2C_Read... [08:01:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:01:31]Read from MH i2c: E2 [08:01:31]MH_I2C_Read... [08:01:31]Read from MH i2c: E2 0E 00 [08:01:31]MH_I2C_Read... [08:01:31]Read from MH i2c: E2 0E 00 9A 67 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 64 [08:01:31]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [08:01:31]wFMCommunicate OK [08:01:31]SAM_PROTO_GetShiftState done [08:01:31]FM_GetShiftState done [08:01:31]opened in 1729384718 [08:01:31]opened+sec_in_day 1729471118 [08:01:31]quantity*price = 100050 [08:01:31]sum+1 = 100052 [08:01:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 22 20.10.2024 08:01 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30240 ФПД: 245768662322709 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T080140&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30240&fm=245768662322709&tin=02508201610067®Number=0000000000186857&sum=100000 [08:01:32]StoreToDocumentArchive [08:01:32]shift 114 fd 30240 [08:01:32]save to /storage/0114/doc_00030240 [08:01:32]save last doc name /storage/0114/doc_00030240 to /storage/kkm_last_doc_name [08:01:32]save OK [08:01:32]Clear old archive folders... [08:01:32]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:01:32]tlvbuf is 00AE5520 [08:01:32]SAM_PROTO_ClearQueue [08:01:32]wFMCommunicate request_size=4 [08:01:32]MH_SAM_APDU [08:01:32]CAPDU: 80 09 00 00 [08:01:32]Write to MH i2c: E2 08 00 A7 67 80 09 00 00 00 00 00 00 80 [08:01:32]Write i2c OK [08:01:32]MH_I2C_Read... [08:01:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:01:33]Read from MH i2c: E2 [08:01:33]MH_I2C_Read... [08:01:33]Read from MH i2c: E2 03 00 [08:01:33]MH_I2C_Read... [08:01:33]Read from MH i2c: E2 03 00 A7 67 00 90 00 82 [08:01:33]RAPDU: 90 00 [08:01:33]wFMCommunicate OK [08:01:33]SAM_PROTO_ClearQueue done [08:01:33]KKMCreateOFDPacket [08:01:33]OFDProtocolAddRootSTLVToBuf [08:01:33]FM_MakeSignedData [08:01:33]FM_MakeSignedData [08:01:33]SAM_PROTO_SignData [08:01:33]wFMCommunicate request_size=4 [08:01:33]MH_SAM_APDU [08:01:33]CAPDU: 80 0D 01 02 [08:01:33]Write to MH i2c: E2 08 00 A8 67 80 0D 01 02 00 00 00 00 88 [08:01:33]Write i2c OK [08:01:33]MH_I2C_Read... [08:01:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:01:33]Read from MH i2c: E2 [08:01:33]MH_I2C_Read... [08:01:33]Read from MH i2c: E2 03 00 [08:01:33]MH_I2C_Read... [08:01:33]Read from MH i2c: E2 03 00 A8 67 00 90 00 83 [08:01:33]RAPDU: 90 00 [08:01:33]wFMCommunicate OK [08:01:33]wFMCommunicate request_size=255 [08:01:33]MH_SAM_APDU [08:01: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 16 00 00 00 F4 03 04 00 E4 B8 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 DF 86 79 D0 [08:01:33]Write to MH i2c: E2 02 01 A9 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 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 16 00 00 00 F4 03 04 00 E4 B8 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 DF 86 79 D0 00 00 F2 [08:01:33]Write i2c OK [08:01:33]MH_I2C_Read... [08:01:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:01:33]Read from MH i2c: E2 [08:01:33]MH_I2C_Read... [08:01:33]Read from MH i2c: E2 03 00 [08:01:33]MH_I2C_Read... [08:01:33]Read from MH i2c: E2 03 00 A9 67 00 90 00 84 [08:01:33]RAPDU: 90 00 [08:01:33]wFMCommunicate OK [08:01:33]wFMCommunicate request_size=7 [08:01:33]MH_SAM_APDU [08:01:33]CAPDU: 80 0D 02 02 02 8E 15 [08:01:33]Write to MH i2c: E2 0A 00 AA 67 80 0D 02 02 02 00 8E 15 00 00 32 [08:01:33]Write i2c OK [08:01:33]MH_I2C_Read... [08:01:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:01:33]Read from MH i2c: E2 [08:01:33]MH_I2C_Read... [08:01:33]Read from MH i2c: E2 03 00 [08:01:33]MH_I2C_Read... [08:01:33]Read from MH i2c: E2 03 00 AA 67 00 90 00 85 [08:01:33]RAPDU: 90 00 [08:01:33]wFMCommunicate OK [08:01:33]wFMCommunicate request_size=4 [08:01:33]MH_SAM_APDU [08:01:33]CAPDU: 80 0D 03 02 [08:01:33]Write to MH i2c: E2 08 00 AB 67 80 0D 03 02 00 00 00 00 8D [08:01:33]Write i2c OK [08:01:33]MH_I2C_Read... [08:01:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:01:33]Read from MH i2c: E2 [08:01:33]MH_I2C_Read... [08:01:33]Read from MH i2c: E2 0B 00 [08:01:33]MH_I2C_Read... [08:01:33]Read from MH i2c: E2 0B 00 AB 67 00 ED 7F 58 AE 56 E5 36 0F 90 00 80 [08:01:33]RAPDU: ED 7F 58 AE 56 E5 36 0F 90 00 [08:01:33]wFMCommunicate OK [08:01:33]SAM_PROTO_SignData done [08:01:33]FM_MakeSignedData done [08:01:33]CreateOFDProtocolMessage [08:01:33]wFMCommunicate request_size=4 [08:01:33]MH_SAM_APDU [08:01:33]CAPDU: 80 11 00 00 [08:01:33]Write to MH i2c: E2 08 00 AC 67 80 11 00 00 00 00 00 00 8D [08:01:33]Write i2c OK [08:01:33]MH_I2C_Read... [08:01:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:01:33]Read from MH i2c: E2 [08:01:33]MH_I2C_Read... [08:01:33]Read from MH i2c: E2 17 00 [08:01:33]MH_I2C_Read... [08:01:33]Read from MH i2c: E2 17 00 AC 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 DB [08: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 [08:01:33]wFMCommunicate OK [08:01:33]CreateOFDProtocolMessage done [08:01:33]OFDSenderStorePacket 30240 [08:01:33]StoreOFDPacket docnum=30240 [08: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 0C 01 00 00 57 F7 04 01 18 38 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 16 00 00 00 F4 03 04 00 E4 B8 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 DF 86 79 D0 8E 15 ED 7F 58 AE 56 E5 36 0F [08:01:33]CheckFolder [08:01:33]dirname=/storage/ofd_packets [08:01:33]CheckFolder done [08:01:33]ProducePacketName [08:01:33]name=ofd_packets/00030240 [08:01:33]NVStorageSaveData ofd_packets/00030240 [08:01:33]File name is /storage/ofd_packets/00030240 [08:01:33]Write 298 bytes [08:01:33]NVStorageSaveData done [08:01:33]OFDSenderStorePacket done [08:01:33]KKMCreateOFDPacket done [08:01:33]NVStorageSaveData kkm_last_timestamp [08:01:33]File name is /storage/kkm_last_timestamp [08:01:33]Write 4 bytes [08:01:33]NVStorageSaveData done [08:01:33]ExternCall_PrintAddStr [08:01:33]wPrintStart [08:01:33]Write to MH i2c: 01 00 00 AD 67 14 [08:01:33]Write i2c OK [08:01:33]MH_I2C_Read... [08:01:33]Read from MH i2c: 01 [08:01:33]MH_I2C_Read... [08:01:33]Read from MH i2c: 01 07 00 [08:01:33]MH_I2C_Read... [08:01:33]Read from MH i2c: 01 07 00 AD 67 00 00 00 00 00 FF 0F 29 [08:01:33]RasterBufferAndPrint [08:01:33]line Счет N : (1)342629 [08:01:33]line ИНН: 02508201610067 [08:01:33]line Контрольно-Кассовый Чек [08:01:33]line ПРОДАЖА [08:01:33]line ТРК (МРК, ГНК) : 34 [08:01:33]line Товар: 2710194210 [08:01:33]line ДТ-К-2 [08:01:33]line 13.130 * 76.20 [08:01:33]line = 1000.51 [08:01:33]line НДС 12% НСП 1% [08:01:33]line > о реализуемом товаре [08:01:33]line ОКРУГЛЕНИЕ: -0.51 [08:01:33]line ИТОГО: 1000.00 [08:01:33]line Внесено: 1000.00 [08:01:33]line СДАЧА: 0.00 [08:01:33]line НСП 1% : 8.85 [08:01:33]line НДС 12% : 106.25 [08:01:33]line Наличными: 1000.00 [08:01:33]line Безнал.: 0.00 [08:01:33]line Место: АЗС № 78 "Партнер Нефть" [08:01:33]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [08:01:33]line СНО: Общий режим [08:01:33]line Чек 22 20.10.2024 08:01 [08:01:33]line Смена: 114 ФФД: 1.0 [08:01:33]line ЗНМ: 0300000137 [08:01:33]line РНМ: 0000000000186857 [08:01:33]line Версия ККМ: v1.0 [08:01:33]line ФМ: 0000000002094219 [08:01:33]line ФД: 30240 [08:01:33]line ФПД: 245768662322709 [08:01:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T080140&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30240&fm=245768662322709&tin=02508201610067®Number=0000000000186857&sum=100000 [08:01:33]written 0, free lines is 4095 [08:01:34]Write to MH i2c: 01 00 00 D8 67 3F [08:01:34]Write i2c OK [08:01:34]MH_I2C_Read... [08:01:34]Read from MH i2c: 01 [08:01:34]MH_I2C_Read... [08:01:34]Read from MH i2c: 01 07 00 [08:01:34]MH_I2C_Read... [08:01:34]Read from MH i2c: 01 07 00 D8 67 00 00 00 00 00 E3 0C 35 [08:01:34]RasterBufferAndPrint [08:01:34]line [08:01:34]line [08:01:34]line [08:01:34]line [08:01:34]line [08:01:34]written 0, free lines is 3305 [08:01:34]MH_Cut [08:01:34]Write to MH i2c: D1 01 00 DF 67 01 18 [08:01:34]Write i2c OK [08:01:34]MH_I2C_Read... [08:01:34]Read from MH i2c: D1 [08:01:34]MH_I2C_Read... [08:01:34]Read from MH i2c: D1 01 00 [08:01:34]MH_I2C_Read... [08:01:34]Read from MH i2c: D1 01 00 DF 67 00 17 [08:01:34]Write to MH i2c: 01 00 00 E0 67 47 [08:01:34]Write i2c OK [08:01:34]MH_I2C_Read... [08:01:34]*** Cut start [08:01:34]*** Partial cut [08:01:34]*** CUTSNS_PIN = 1 [08:01:35]*** CUTSNS_PIN = 0 [08:01:35]*** Brake cut motor [08:01:35]Read from MH i2c: 01 [08:01:35]MH_I2C_Read... [08:01:35]*** Stop cut motor [08:01:35]*** Cut end [08:01:35]Read from MH i2c: 01 07 00 [08:01:35]MH_I2C_Read... [08:01:35]Read from MH i2c: 01 07 00 E0 67 00 00 00 00 00 FF 0F 5C [08:01:35]process_action close_receipt done [08:01:35]requested_data is exist [08:01:35]produce_requested_data [08:01:35]requested_item fm.sn is exist - process it [08:01:35]wFMCommunicate request_size=4 [08:01:35]MH_SAM_APDU [08:01:35]CAPDU: 80 11 00 00 [08:01:35]Write to MH i2c: E2 08 00 E1 67 80 11 00 00 00 00 00 00 C2 [08:01:35]Write i2c OK [08:01:35]MH_I2C_Read... [08:01:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:01:35]Read from MH i2c: E2 [08:01:35]MH_I2C_Read... [08:01:35]Read from MH i2c: E2 17 00 [08:01:35]MH_I2C_Read... [08:01:35]Read from MH i2c: E2 17 00 E1 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 10 [08: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 [08:01:35]wFMCommunicate OK [08:01:35]requested_item fd.num is exist - process it [08:01:35]SAM_PROTO_GetFieldsCounters [08:01:35]wFMCommunicate request_size=4 [08:01:35]MH_SAM_APDU [08:01:35]CAPDU: 80 13 00 00 [08:01:35]Write to MH i2c: E2 08 00 E2 67 80 13 00 00 00 00 00 00 C5 [08:01:35]Write i2c OK [08:01:35]MH_I2C_Read... [08:01:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:01:35]Read from MH i2c: E2 [08:01:35]MH_I2C_Read... [08:01:35]Read from MH i2c: E2 62 00 [08:01:35]MH_I2C_Read... [08:01:35]Read from MH i2c: E2 62 00 E2 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 20 76 00 00 0E 04 04 00 72 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: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 20 76 00 00 0E 04 04 00 72 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:01:35]wFMCommunicate OK [08:01:35]SAM_PROTO_GetFieldsCounters done [08:01:35]requested_item shift.num is exist - process it [08:01:35]requested_item shift.opened is exist - process it [08:01:35]req_shift_opened [08:01:35]FM_GetShiftState [08:01:35]SAM_PROTO_GetShiftState [08:01:35]wFMCommunicate request_size=4 [08:01:35]MH_SAM_APDU [08:01:35]CAPDU: 80 13 01 00 [08:01:35]Write to MH i2c: E2 08 00 E3 67 80 13 01 00 00 00 00 00 C7 [08:01:35]Write i2c OK [08:01:35]MH_I2C_Read... [08:01:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:01:35]Read from MH i2c: E2 [08:01:35]MH_I2C_Read... [08:01:35]Read from MH i2c: E2 0E 00 [08:01:35]MH_I2C_Read... [08:01:35]Read from MH i2c: E2 0E 00 E3 67 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 AD [08:01:35]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [08:01:35]wFMCommunicate OK [08:01:35]SAM_PROTO_GetShiftState done [08:01:35]FM_GetShiftState done [08:01:35]req_shift_opened done [08:01:35]requested_item shift.open_date is exist - process it [08:01:35]req_shift_open_date [08:01:35]req_shift_open_date done [08:01:35]produce_requested_data done [08:01:35]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30240,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [08:01:35]process_action_free close_receipt [08:01:35]json_value_free [08:01:35]json_value_free done [08:01:35]process_json_proto returns [08:01:35]Send response to host [08:01:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30240,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [08:01:35]free response buf [08:01:35]execute_script done [08:01:35]execute_script returns [08:01:35]free content buf [08:01:35]Sock 9.Close socket [08:01:35]Sock 9.Thread stoped [08:02:04]ConnectInit Can't connect to host [08:02:04]CommunicateWithHost connect error [08:02:04]CommunicateWithHost err = -1 [08:02:04]OFD Sender: Server communicate error [08:02:04]OFD Sender: Processing packet 30239 [packets to send 11, broken 9] [08:02:04]ProducePacketName [08:02:04]name=ofd_packets/00030239 [08:02:04]OFD Sender: To server: pG, [08:02:04]CommunicateWithHost lk.salyk.kg:30040 [08:02:04]ConnectInit lk.salyk.kg [08:02:04]Connected sock=9 [08:02: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 66 2B 07 01 39 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 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 15 00 00 00 F4 03 04 00 7F B8 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 7E 9D 58 4F A3 86 BF 9F 72 27 73 D4 91 2E [08:02: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 C5 8B 47 00 E3 38 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 1F 76 00 00 F4 03 04 00 87 63 14 67 B6 04 01 00 00 07 54 5B 49 39 51 08 2A [08:02:04]CommunicateWithHost err = 0 [08:02:04]CheckOFDResponse [08:02:04]1017 (14) - 77093643461234 [08:02:04]1041 (16) - 0000000002094219 [08:02:04]1040 (4) - 30239 [08:02:04]1012 (4) - 20.10.2024 01:57 [08:02:04]1206 (1) - 0 [08:02:04]OFD Sender: Remove packet 30239 [08:02:04]ProducePacketName [08:02:04]name=ofd_packets/00030239 [08:02:04]NVStorageDeleteData [08:02:05]OFD Sender: Processing packet 30240 [packets to send 10, broken 9] [08:02:05]ProducePacketName [08:02:05]name=ofd_packets/00030240 [08:02:05]OFD Sender: To server: pG, [08:02:05]CommunicateWithHost lk.salyk.kg:30040 [08:02:05]ConnectInit lk.salyk.kg [08:02:05]Connected sock=9 [08: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 0C 01 00 00 57 F7 04 01 18 38 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 16 00 00 00 F4 03 04 00 E4 B8 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 DF 86 79 D0 8E 15 ED 7F 58 AE 56 E5 36 0F [08: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 7A F1 47 00 8D 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 20 76 00 00 F4 03 04 00 88 63 14 67 B6 04 01 00 00 DC 98 2E 6F A3 AD EE FF [08:02:05]CommunicateWithHost err = 0 [08:02:05]CheckOFDResponse [08:02:05]1017 (14) - 77093643461234 [08:02:05]1041 (16) - 0000000002094219 [08:02:05]1040 (4) - 30240 [08:02:05]1012 (4) - 20.10.2024 01:57 [08:02:05]1206 (1) - 0 [08:02:05]OFD Sender: Remove packet 30240 [08:02:05]ProducePacketName [08:02:05]name=ofd_packets/00030240 [08:02:05]NVStorageDeleteData [08:02:06]OFD Sender: No OFD packet to send [08:02:11]OFD Sender: No OFD packet to send [08:02:16]OFD Sender: No OFD packet to send [08:02:21]OFD Sender: No OFD packet to send [08:02:26]OFD Sender: No OFD packet to send [08:02:31]OFD Sender: No OFD packet to send [08:02:36]OFD Sender: No OFD packet to send [08:02:41]OFD Sender: No OFD packet to send [08:02:46]OFD Sender: No OFD packet to send [08:02:51]OFD Sender: No OFD packet to send [08:02:56]OFD Sender: No OFD packet to send [08:03:01]OFD Sender: No OFD packet to send [08:03:06]OFD Sender: No OFD packet to send [08:03:11]OFD Sender: No OFD packet to send [08:03:16]OFD Sender: No OFD packet to send [08:03:21]OFD Sender: No OFD packet to send [08:03:26]OFD Sender: No OFD packet to send [08:03:31]OFD Sender: No OFD packet to send [08:03:36]OFD Sender: No OFD packet to send [08:03:41]OFD Sender: No OFD packet to send [08:03:46]OFD Sender: No OFD packet to send [08:03:51]OFD Sender: No OFD packet to send [08:03:56]OFD Sender: No OFD packet to send [08:04:01]OFD Sender: No OFD packet to send [08:04:06]OFD Sender: No OFD packet to send [08:04:11]OFD Sender: No OFD packet to send [08:04:16]OFD Sender: No OFD packet to send [08:04:21]OFD Sender: No OFD packet to send [08:04:26]OFD Sender: No OFD packet to send [08:04:31]OFD Sender: No OFD packet to send [08:04:36]OFD Sender: No OFD packet to send [08:04:41]OFD Sender: No OFD packet to send [08:04:46]OFD Sender: No OFD packet to send [08:04:51]OFD Sender: No OFD packet to send [08:04:56]OFD Sender: No OFD packet to send [08:04:59]accept exits with 7 [08:04:59]New connection [08:04:59]New thread 3067370852 created [08:04:59]Thread 3067514212 joined [08:04:59]Waiting for new connection... [08:04:59] Sock 7.Parse request [08:04:59]Sock 7.Check first char [08:04:59]Sock 7.First char is OK [08:04:59]request: POST /json_proto HTTP/1.0 [08:04:59]Method: POST [08:04:59]URL: /json_proto [08:04:59]Method is POST - this is cgi request [08:04:59]url: /json_proto [08:04:59]query_string will be loaded in cgi processing [08:04:59]execute_cgi json_proto POST (null) [08:04:59]execute_cgi path=json_proto method=POST [08:04:59]POST find Content-Length [08:04:59]Host: 172.17.51.3:8080 [08:04:59]Content-Length: 682 [08:04:59]Content-Type: application/json [08:04:59] [08:04:59]POST finish read [08:04:59]Found Content-Length = 682 [08:04:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342630", "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" ] } } [08:04:59]execute_script... [08:04: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)342630", "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" ] } } [08:04:59]POST & json_proto [08:04:59]process_json_proto [08:04:59]json parsed OK: [08:04:59]protocol is kg_v1.0 [08:04:59]action value=close_receipt [08:04:59]process_action close_receipt [08:04:59]cmd_close_receipt [08:04:59]MH_GetDate [08:04:59]Write to MH i2c: F0 00 00 E4 67 3A [08:04:59]Write i2c OK [08:04:59]MH_I2C_Read... [08:04:59]Read from MH i2c: F0 [08:04:59]MH_I2C_Read... [08:04:59]Read from MH i2c: F0 09 00 [08:04:59]MH_I2C_Read... [08:04:59]Read from MH i2c: F0 09 00 E4 67 00 B3 B9 14 67 04 C1 95 66 EA [08:04:59]GetLastDocTimeStamp 1729411300 [08:04:59]current date 1729411507 [08:04:59]FM_GetShiftState [08:04:59]SAM_PROTO_GetShiftState [08:04:59]wFMCommunicate request_size=4 [08:04:59]MH_SAM_APDU [08:04:59]CAPDU: 80 13 01 00 [08:04:59]Write to MH i2c: E2 08 00 E5 67 80 13 01 00 00 00 00 00 C9 [08:04:59]Write i2c OK [08:04:59]MH_I2C_Read... [08:04:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:04:59]Read from MH i2c: E2 [08:04:59]MH_I2C_Read... [08:04:59]Read from MH i2c: E2 0E 00 [08:04:59]MH_I2C_Read... [08:04:59]Read from MH i2c: E2 0E 00 E5 67 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 AF [08:04:59]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [08:04:59]wFMCommunicate OK [08:04:59]SAM_PROTO_GetShiftState done [08:04:59]FM_GetShiftState done [08:04:59]opened in 1729384718 [08:04:59]opened+sec_in_day 1729471118 [08:04:59]quantity*price = 100015 [08:04:59]sum+1 = 100017 [08:04: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 СНО: Общий режим Чек 23 20.10.2024 08:05 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30241 ФПД: 105968020349741 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T080508&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30241&fm=105968020349741&tin=02508201610067®Number=0000000000186857&sum=100000 [08:05:00]StoreToDocumentArchive [08:05:00]shift 114 fd 30241 [08:05:00]save to /storage/0114/doc_00030241 [08:05:00]save last doc name /storage/0114/doc_00030241 to /storage/kkm_last_doc_name [08:05:00]save OK [08:05:00]Clear old archive folders... [08:05:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:05:00]tlvbuf is 00B06DC0 [08:05:00]SAM_PROTO_ClearQueue [08:05:00]wFMCommunicate request_size=4 [08:05:00]MH_SAM_APDU [08:05:00]CAPDU: 80 09 00 00 [08:05:00]Write to MH i2c: E2 08 00 F2 67 80 09 00 00 00 00 00 00 CB [08:05:00]Write i2c OK [08:05:00]MH_I2C_Read... [08:05:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:05:00]Read from MH i2c: E2 [08:05:00]MH_I2C_Read... [08:05:00]Read from MH i2c: E2 03 00 [08:05:00]MH_I2C_Read... [08:05:00]Read from MH i2c: E2 03 00 F2 67 00 90 00 CD [08:05:00]RAPDU: 90 00 [08:05:00]wFMCommunicate OK [08:05:00]SAM_PROTO_ClearQueue done [08:05:00]KKMCreateOFDPacket [08:05:00]OFDProtocolAddRootSTLVToBuf [08:05:00]FM_MakeSignedData [08:05:00]FM_MakeSignedData [08:05:00]SAM_PROTO_SignData [08:05:00]wFMCommunicate request_size=4 [08:05:00]MH_SAM_APDU [08:05:00]CAPDU: 80 0D 01 02 [08:05:00]Write to MH i2c: E2 08 00 F3 67 80 0D 01 02 00 00 00 00 D3 [08:05:00]Write i2c OK [08:05:00]MH_I2C_Read... [08:05:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:05:00]Read from MH i2c: E2 [08:05:00]MH_I2C_Read... [08:05:00]Read from MH i2c: E2 03 00 [08:05:00]MH_I2C_Read... [08:05:00]Read from MH i2c: E2 03 00 F3 67 00 90 00 CE [08:05:00]RAPDU: 90 00 [08:05:00]wFMCommunicate OK [08:05:00]wFMCommunicate request_size=255 [08:05:00]MH_SAM_APDU [08:05: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 17 00 00 00 F4 03 04 00 B4 B9 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 60 [08:05:00]Write to MH i2c: E2 02 01 F4 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 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 17 00 00 00 F4 03 04 00 B4 B9 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 60 00 00 C6 [08:05:00]Write i2c OK [08:05:00]MH_I2C_Read... [08:05:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:05:01]Read from MH i2c: E2 [08:05:01]MH_I2C_Read... [08:05:01]Read from MH i2c: E2 03 00 [08:05:01]MH_I2C_Read... [08:05:01]Read from MH i2c: E2 03 00 F4 67 00 90 00 CF [08:05:01]RAPDU: 90 00 [08:05:01]wFMCommunicate OK [08:05:01]wFMCommunicate request_size=10 [08:05:01]MH_SAM_APDU [08:05:01]CAPDU: 80 0D 02 02 05 60 9A 35 E3 2D [08:05:01]Write to MH i2c: E2 0D 00 F5 67 80 0D 02 02 05 00 60 9A 35 E3 2D 00 00 1F [08:05:01]Write i2c OK [08:05:01]MH_I2C_Read... [08:05:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:05:01]Read from MH i2c: E2 [08:05:01]MH_I2C_Read... [08:05:01]Read from MH i2c: E2 03 00 [08:05:01]MH_I2C_Read... [08:05:01]Read from MH i2c: E2 03 00 F5 67 00 90 00 D0 [08:05:01]RAPDU: 90 00 [08:05:01]wFMCommunicate OK [08:05:01]wFMCommunicate request_size=4 [08:05:01]MH_SAM_APDU [08:05:01]CAPDU: 80 0D 03 02 [08:05:01]Write to MH i2c: E2 08 00 F6 67 80 0D 03 02 00 00 00 00 D8 [08:05:01]Write i2c OK [08:05:01]MH_I2C_Read... [08:05:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:05:01]Read from MH i2c: E2 [08:05:01]MH_I2C_Read... [08:05:01]Read from MH i2c: E2 0B 00 [08:05:01]MH_I2C_Read... [08:05:01]Read from MH i2c: E2 0B 00 F6 67 00 C7 A5 68 92 4A D9 B5 04 90 00 1B [08:05:01]RAPDU: C7 A5 68 92 4A D9 B5 04 90 00 [08:05:01]wFMCommunicate OK [08:05:01]SAM_PROTO_SignData done [08:05:01]FM_MakeSignedData done [08:05:01]CreateOFDProtocolMessage [08:05:01]wFMCommunicate request_size=4 [08:05:01]MH_SAM_APDU [08:05:01]CAPDU: 80 11 00 00 [08:05:01]Write to MH i2c: E2 08 00 F7 67 80 11 00 00 00 00 00 00 D8 [08:05:01]Write i2c OK [08:05:01]MH_I2C_Read... [08:05:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:05:01]Read from MH i2c: E2 [08:05:01]MH_I2C_Read... [08:05:01]Read from MH i2c: E2 17 00 [08:05:01]MH_I2C_Read... [08:05:01]Read from MH i2c: E2 17 00 F7 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 26 [08:05:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [08:05:01]wFMCommunicate OK [08:05:01]CreateOFDProtocolMessage done [08:05:01]OFDSenderStorePacket 30241 [08:05:01]StoreOFDPacket docnum=30241 [08:05: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 0E 15 07 01 68 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 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 17 00 00 00 F4 03 04 00 B4 B9 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 60 60 9A 35 E3 2D C7 A5 68 92 4A D9 B5 04 [08:05:01]CheckFolder [08:05:01]dirname=/storage/ofd_packets [08:05:01]CheckFolder done [08:05:01]ProducePacketName [08:05:01]name=ofd_packets/00030241 [08:05:01]NVStorageSaveData ofd_packets/00030241 [08:05:01]File name is /storage/ofd_packets/00030241 [08:05:01]Write 301 bytes [08:05:01]NVStorageSaveData done [08:05:01]OFDSenderStorePacket done [08:05:01]KKMCreateOFDPacket done [08:05:01]NVStorageSaveData kkm_last_timestamp [08:05:01]File name is /storage/kkm_last_timestamp [08:05:01]Write 4 bytes [08:05:01]NVStorageSaveData done [08:05:01]ExternCall_PrintAddStr [08:05:01]wPrintStart [08:05:01]Write to MH i2c: 01 00 00 F8 67 5F [08:05:01]Write i2c OK [08:05:01]MH_I2C_Read... [08:05:01]Read from MH i2c: 01 [08:05:01]MH_I2C_Read... [08:05:01]Read from MH i2c: 01 07 00 [08:05:01]MH_I2C_Read... [08:05:01]Read from MH i2c: 01 07 00 F8 67 00 00 00 00 00 FF 0F 74 [08:05:01]RasterBufferAndPrint [08:05:01]line Счет N : (1)342630 [08:05:01]line ИНН: 02508201610067 [08:05:01]line Контрольно-Кассовый Чек [08:05:01]line ПРОДАЖА [08:05:01]line ТРК (МРК, ГНК) : 63 [08:05:01]line Товар: 2710124130 [08:05:01]line Аи-92-К-2 [08:05:01]line 14.950 * 66.90 [08:05:01]line = 1000.16 [08:05:01]line НДС 12% НСП 1% [08:05:01]line > о реализуемом товаре [08:05:01]line ОКРУГЛЕНИЕ: -0.16 [08:05:01]line ИТОГО: 1000.00 [08:05:01]line Внесено: 1000.00 [08:05:01]line СДАЧА: 0.00 [08:05:01]line НСП 1% : 8.85 [08:05:01]line НДС 12% : 106.21 [08:05:01]line Наличными: 1000.00 [08:05:01]line Безнал.: 0.00 [08:05:01]line Место: АЗС № 78 "Партнер Нефть" [08:05:01]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [08:05:01]line СНО: Общий режим [08:05:01]line Чек 23 20.10.2024 08:05 [08:05:01]line Смена: 114 ФФД: 1.0 [08:05:01]line ЗНМ: 0300000137 [08:05:01]line РНМ: 0000000000186857 [08:05:01]line Версия ККМ: v1.0 [08:05:01]line ФМ: 0000000002094219 [08:05:01]line ФД: 30241 [08:05:01]line ФПД: 105968020349741 [08:05:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T080508&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30241&fm=105968020349741&tin=02508201610067®Number=0000000000186857&sum=100000 [08:05:01]OFD Sender: Processing packet 30241 [packets to send 10, broken 9] [08:05:01]ProducePacketName [08:05:01]name=ofd_packets/00030241 [08:05:01]OFD Sender: To server: pG, [08:05:01]CommunicateWithHost lk.salyk.kg:30040 [08:05:01]ConnectInit lk.salyk.kg [08:05:01]written 0, free lines is 4095 [08:05:01]Connected sock=10 [08:05: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 0E 15 07 01 68 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 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 17 00 00 00 F4 03 04 00 B4 B9 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 60 60 9A 35 E3 2D C7 A5 68 92 4A D9 B5 04 [08:05: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 7C 79 47 00 B1 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 21 76 00 00 F4 03 04 00 38 64 14 67 B6 04 01 00 00 1A 75 76 2F D7 3B 49 72 [08:05:02]CommunicateWithHost err = 0 [08:05:02]CheckOFDResponse [08:05:02]1017 (14) - 77093643461234 [08:05:02]1041 (16) - 0000000002094219 [08:05:02]1040 (4) - 30241 [08:05:02]1012 (4) - 20.10.2024 02:00 [08:05:02]1206 (1) - 0 [08:05:02]OFD Sender: Remove packet 30241 [08:05:02]ProducePacketName [08:05:02]name=ofd_packets/00030241 [08:05:02]NVStorageDeleteData [08:05:02]Write to MH i2c: 01 00 00 23 68 8B [08:05:02]Write i2c OK [08:05:02]MH_I2C_Read... [08:05:02]Read from MH i2c: 01 [08:05:02]MH_I2C_Read... [08:05:02]Read from MH i2c: 01 07 00 [08:05:02]MH_I2C_Read... [08:05:02]Read from MH i2c: 01 07 00 23 68 00 00 00 00 00 F4 0C 92 [08:05:02]RasterBufferAndPrint [08:05:02]line [08:05:02]line [08:05:02]line [08:05:02]line [08:05:02]line [08:05:02]written 0, free lines is 3327 [08:05:02]MH_Cut [08:05:02]Write to MH i2c: D1 01 00 2A 68 01 64 [08:05:02]Write i2c OK [08:05:02]MH_I2C_Read... [08:05:02]Read from MH i2c: D1 [08:05:02]MH_I2C_Read... [08:05:02]Read from MH i2c: D1 01 00 [08:05:02]MH_I2C_Read... [08:05:02]Read from MH i2c: D1 01 00 2A 68 00 63 [08:05:02]Write to MH i2c: 01 00 00 2B 68 93 [08:05:02]Write i2c OK [08:05:02]MH_I2C_Read... [08:05:02]OFD Sender: No OFD packet to send [08:05:02]*** Cut start [08:05:02]*** Partial cut [08:05:02]*** CUTSNS_PIN = 1 [08:05:02]*** CUTSNS_PIN = 0 [08:05:03]*** Brake cut motor [08:05:03]Read from MH i2c: 01 [08:05:03]MH_I2C_Read... [08:05:03]*** Stop cut motor [08:05:03]*** Cut end [08:05:03]Read from MH i2c: 01 07 00 [08:05:03]MH_I2C_Read... [08:05:03]Read from MH i2c: 01 07 00 2B 68 00 00 00 00 00 FF 0F A8 [08:05:03]process_action close_receipt done [08:05:03]requested_data is exist [08:05:03]produce_requested_data [08:05:03]requested_item fm.sn is exist - process it [08:05:03]wFMCommunicate request_size=4 [08:05:03]MH_SAM_APDU [08:05:03]CAPDU: 80 11 00 00 [08:05:03]Write to MH i2c: E2 08 00 2C 68 80 11 00 00 00 00 00 00 0E [08:05:03]Write i2c OK [08:05:03]MH_I2C_Read... [08:05:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:05:03]Read from MH i2c: E2 [08:05:03]MH_I2C_Read... [08:05:03]Read from MH i2c: E2 17 00 [08:05:03]MH_I2C_Read... [08:05:03]Read from MH i2c: E2 17 00 2C 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 5C [08:05: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:05:03]wFMCommunicate OK [08:05:03]requested_item fd.num is exist - process it [08:05:03]SAM_PROTO_GetFieldsCounters [08:05:03]wFMCommunicate request_size=4 [08:05:03]MH_SAM_APDU [08:05:03]CAPDU: 80 13 00 00 [08:05:03]Write to MH i2c: E2 08 00 2D 68 80 13 00 00 00 00 00 00 11 [08:05:03]Write i2c OK [08:05:03]MH_I2C_Read... [08:05:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:05:03]Read from MH i2c: E2 [08:05:03]MH_I2C_Read... [08:05:03]Read from MH i2c: E2 62 00 [08:05:03]MH_I2C_Read... [08:05:03]Read from MH i2c: E2 62 00 2D 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 76 00 00 0E 04 04 00 72 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 85 [08:05: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 21 76 00 00 0E 04 04 00 72 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:05:03]wFMCommunicate OK [08:05:03]SAM_PROTO_GetFieldsCounters done [08:05:03]requested_item shift.num is exist - process it [08:05:03]requested_item shift.opened is exist - process it [08:05:03]req_shift_opened [08:05:03]FM_GetShiftState [08:05:03]SAM_PROTO_GetShiftState [08:05:03]wFMCommunicate request_size=4 [08:05:03]MH_SAM_APDU [08:05:03]CAPDU: 80 13 01 00 [08:05:03]Write to MH i2c: E2 08 00 2E 68 80 13 01 00 00 00 00 00 13 [08:05:03]Write i2c OK [08:05:03]MH_I2C_Read... [08:05:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:05:03]Read from MH i2c: E2 [08:05:03]MH_I2C_Read... [08:05:03]Read from MH i2c: E2 0E 00 [08:05:03]MH_I2C_Read... [08:05:03]Read from MH i2c: E2 0E 00 2E 68 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 F9 [08:05:03]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [08:05:03]wFMCommunicate OK [08:05:03]SAM_PROTO_GetShiftState done [08:05:03]FM_GetShiftState done [08:05:03]req_shift_opened done [08:05:03]requested_item shift.open_date is exist - process it [08:05:03]req_shift_open_date [08:05:03]req_shift_open_date done [08:05:03]produce_requested_data done [08:05:03]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30241,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [08:05:03]process_action_free close_receipt [08:05:03]json_value_free [08:05:03]json_value_free done [08:05:03]process_json_proto returns [08:05:03]Send response to host [08:05:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30241,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [08:05:03]free response buf [08:05:03]execute_script done [08:05:03]execute_script returns [08:05:03]free content buf [08:05:03]Sock 7.Close socket [08:05:03]Sock 7.Thread stoped [08:05:07]OFD Sender: No OFD packet to send [08:05:12]OFD Sender: No OFD packet to send [08:05:17]OFD Sender: No OFD packet to send [08:05:22]OFD Sender: No OFD packet to send [08:05:27]OFD Sender: No OFD packet to send [08:05:32]OFD Sender: No OFD packet to send [08:05:37]OFD Sender: No OFD packet to send [08:05:42]OFD Sender: No OFD packet to send [08:05:47]OFD Sender: No OFD packet to send [08:05:52]OFD Sender: No OFD packet to send [08:05:57]OFD Sender: No OFD packet to send [08:06:02]OFD Sender: No OFD packet to send [08:06:07]OFD Sender: No OFD packet to send [08:06:12]OFD Sender: No OFD packet to send [08:06:17]OFD Sender: No OFD packet to send [08:06:22]OFD Sender: No OFD packet to send [08:06:27]OFD Sender: No OFD packet to send [08:06:32]OFD Sender: No OFD packet to send [08:06:37]OFD Sender: No OFD packet to send [08:06:42]OFD Sender: No OFD packet to send [08:06:47]OFD Sender: No OFD packet to send [08:06:52]OFD Sender: No OFD packet to send [08:06:57]OFD Sender: No OFD packet to send [08:07:02]OFD Sender: No OFD packet to send [08:07:07]OFD Sender: No OFD packet to send [08:07:12]OFD Sender: No OFD packet to send [08:07:17]OFD Sender: No OFD packet to send [08:07:22]OFD Sender: No OFD packet to send [08:07:27]OFD Sender: No OFD packet to send [08:07:32]OFD Sender: No OFD packet to send [08:07:37]OFD Sender: No OFD packet to send [08:07:42]OFD Sender: No OFD packet to send [08:07:47]OFD Sender: No OFD packet to send [08:07:52]OFD Sender: No OFD packet to send [08:07:57]OFD Sender: No OFD packet to send [08:08:02]OFD Sender: No OFD packet to send [08:08:07]OFD Sender: No OFD packet to send [08:08:12]OFD Sender: No OFD packet to send [08:08:17]OFD Sender: No OFD packet to send [08:08:22]OFD Sender: No OFD packet to send [08:08:27]OFD Sender: No OFD packet to send [08:08:32]OFD Sender: No OFD packet to send [08:08:37]OFD Sender: No OFD packet to send [08:08:42]OFD Sender: No OFD packet to send [08:08:47]OFD Sender: No OFD packet to send [08:08:52]OFD Sender: No OFD packet to send [08:08:57]OFD Sender: No OFD packet to send [08:09:02]OFD Sender: No OFD packet to send [08:09:07]OFD Sender: No OFD packet to send [08:09:12]OFD Sender: No OFD packet to send [08:09:17]OFD Sender: No OFD packet to send [08:09:22]OFD Sender: No OFD packet to send [08:09:27]OFD Sender: No OFD packet to send [08:09:32]OFD Sender: No OFD packet to send [08:09:37]OFD Sender: No OFD packet to send [08:09:42]OFD Sender: No OFD packet to send [08:09:47]OFD Sender: No OFD packet to send [08:09:52]OFD Sender: No OFD packet to send [08:09:57]OFD Sender: No OFD packet to send [08:10:02]OFD Sender: No OFD packet to send [08:10:07]OFD Sender: No OFD packet to send [08:10:12]OFD Sender: No OFD packet to send [08:10:17]OFD Sender: No OFD packet to send [08:10:22]OFD Sender: No OFD packet to send [08:10:27]OFD Sender: No OFD packet to send [08:10:32]OFD Sender: No OFD packet to send [08:10:37]OFD Sender: No OFD packet to send [08:10:42]OFD Sender: No OFD packet to send [08:10:47]OFD Sender: No OFD packet to send [08:10:52]OFD Sender: No OFD packet to send [08:10:57]OFD Sender: No OFD packet to send [08:11:02]OFD Sender: No OFD packet to send [08:11:07]OFD Sender: No OFD packet to send [08:11:12]OFD Sender: No OFD packet to send [08:11:17]OFD Sender: No OFD packet to send [08:11:22]OFD Sender: No OFD packet to send [08:11:27]OFD Sender: No OFD packet to send [08:11:32]OFD Sender: No OFD packet to send [08:11:37]OFD Sender: No OFD packet to send [08:11:42]OFD Sender: No OFD packet to send [08:11:47]OFD Sender: No OFD packet to send [08:11:52]OFD Sender: No OFD packet to send [08:11:57]OFD Sender: No OFD packet to send [08:12:02]OFD Sender: No OFD packet to send [08:12:07]OFD Sender: No OFD packet to send [08:12:12]OFD Sender: No OFD packet to send [08:12:17]OFD Sender: No OFD packet to send [08:12:22]OFD Sender: No OFD packet to send [08:12:27]OFD Sender: No OFD packet to send [08:12:32]OFD Sender: No OFD packet to send [08:12:37]OFD Sender: No OFD packet to send [08:12:42]OFD Sender: No OFD packet to send [08:12:47]OFD Sender: No OFD packet to send [08:12:52]OFD Sender: No OFD packet to send [08:12:57]OFD Sender: No OFD packet to send [08:12:58]accept exits with 9 [08:12:58]New connection [08:12:58]New thread 3067514212 created [08:12:58]Thread 3067370852 joined [08:12:58]Waiting for new connection... [08:12:58] Sock 9.Parse request [08:12:58]Sock 9.Check first char [08:12:58]Sock 9.First char is OK [08:12:58]request: POST /json_proto HTTP/1.0 [08:12:58]Method: POST [08:12:58]URL: /json_proto [08:12:58]Method is POST - this is cgi request [08:12:58]url: /json_proto [08:12:58]query_string will be loaded in cgi processing [08:12:58]execute_cgi json_proto POST (null) [08:12:58]execute_cgi path=json_proto method=POST [08:12:58]POST find Content-Length [08:12:58]Host: 172.17.51.3:8080 [08:12:58]Content-Length: 837 [08:12:58]Content-Type: application/json [08:12:58] [08:12:58]POST finish read [08:12:58]Found Content-Length = 837 [08:12:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342631", "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" ] } } [08:12:58]execute_script... [08:12: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)342631", "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" ] } } [08:12:58]POST & json_proto [08:12:58]process_json_proto [08:12:58]json parsed OK: [08:12:58]protocol is kg_v1.0 [08:12:58]action value=close_receipt [08:12:58]process_action close_receipt [08:12:58]cmd_close_receipt [08:12:58]MH_GetDate [08:12:58]Write to MH i2c: F0 00 00 2F 68 86 [08:12:58]Write i2c OK [08:12:58]MH_I2C_Read... [08:12:58]Read from MH i2c: F0 [08:12:58]MH_I2C_Read... [08:12:58]Read from MH i2c: F0 09 00 [08:12:58]MH_I2C_Read... [08:12:58]Read from MH i2c: F0 09 00 2F 68 00 92 BB 14 67 04 C1 95 66 17 [08:12:58]GetLastDocTimeStamp 1729411508 [08:12:58]current date 1729411986 [08:12:58]FM_GetShiftState [08:12:58]SAM_PROTO_GetShiftState [08:12:58]wFMCommunicate request_size=4 [08:12:58]MH_SAM_APDU [08:12:58]CAPDU: 80 13 01 00 [08:12:58]Write to MH i2c: E2 08 00 30 68 80 13 01 00 00 00 00 00 15 [08:12:58]Write i2c OK [08:12:58]MH_I2C_Read... [08:12:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:12:58]Read from MH i2c: E2 [08:12:58]MH_I2C_Read... [08:12:58]Read from MH i2c: E2 0E 00 [08:12:58]MH_I2C_Read... [08:12:58]Read from MH i2c: E2 0E 00 30 68 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 FB [08:12:58]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [08:12:58]wFMCommunicate OK [08:12:58]SAM_PROTO_GetShiftState done [08:12:58]FM_GetShiftState done [08:12:58]opened in 1729384718 [08:12:58]opened+sec_in_day 1729471118 [08:12:58]quantity*price = 50063 [08:12:58]sum+1 = 50064 [08:12:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.63 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 0.00 Безнал.: 500.63 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 24 20.10.2024 08:13 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Платежная система: АКБ Кыргызстан ФМ: 0000000002094219 ФД: 30242 ФПД: 2884462730913 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T081306&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30242&fm=2884462730913&tin=02508201610067®Number=0000000000186857&sum=50063 [08:12:59]StoreToDocumentArchive [08:12:59]shift 114 fd 30242 [08:12:59]save to /storage/0114/doc_00030242 [08:12:59]save last doc name /storage/0114/doc_00030242 to /storage/kkm_last_doc_name [08:12:59]save OK [08:12:59]Clear old archive folders... [08:12:59]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:12:59]tlvbuf is 00C874B0 [08:12:59]SAM_PROTO_ClearQueue [08:12:59]wFMCommunicate request_size=4 [08:12:59]MH_SAM_APDU [08:12:59]CAPDU: 80 09 00 00 [08:12:59]Write to MH i2c: E2 08 00 3D 68 80 09 00 00 00 00 00 00 17 [08:12:59]Write i2c OK [08:12:59]MH_I2C_Read... [08:12:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:12:59]Read from MH i2c: E2 [08:12:59]MH_I2C_Read... [08:12:59]Read from MH i2c: E2 03 00 [08:12:59]MH_I2C_Read... [08:12:59]Read from MH i2c: E2 03 00 3D 68 00 90 00 19 [08:12:59]RAPDU: 90 00 [08:12:59]wFMCommunicate OK [08:12:59]SAM_PROTO_ClearQueue done [08:12:59]KKMCreateOFDPacket [08:12:59]OFDProtocolAddRootSTLVToBuf [08:12:59]FM_MakeSignedData [08:12:59]FM_MakeSignedData [08:12:59]SAM_PROTO_SignData [08:12:59]wFMCommunicate request_size=4 [08:12:59]MH_SAM_APDU [08:12:59]CAPDU: 80 0D 01 02 [08:12:59]Write to MH i2c: E2 08 00 3E 68 80 0D 01 02 00 00 00 00 1F [08:12:59]Write i2c OK [08:12:59]MH_I2C_Read... [08:12:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:12:59]Read from MH i2c: E2 [08:12:59]MH_I2C_Read... [08:12:59]Read from MH i2c: E2 03 00 [08:12:59]MH_I2C_Read... [08:12:59]Read from MH i2c: E2 03 00 3E 68 00 90 00 1A [08:12:59]RAPDU: 90 00 [08:12:59]wFMCommunicate OK [08:12:59]wFMCommunicate request_size=255 [08:12:59]MH_SAM_APDU [08:12: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 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 18 00 00 00 F4 03 04 00 92 BB 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 02 9F 97 60 [08:12:59]Write to MH i2c: E2 02 01 3F 68 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 18 00 00 00 F4 03 04 00 92 BB 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 02 9F 97 60 00 00 2E [08:12:59]Write i2c OK [08:12:59]MH_I2C_Read... [08:12:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:12:59]Read from MH i2c: E2 [08:12:59]MH_I2C_Read... [08:12:59]Read from MH i2c: E2 03 00 [08:12:59]MH_I2C_Read... [08:12:59]Read from MH i2c: E2 03 00 3F 68 00 90 00 1B [08:12:59]RAPDU: 90 00 [08:12:59]wFMCommunicate OK [08:12:59]wFMCommunicate request_size=7 [08:12:59]MH_SAM_APDU [08:12:59]CAPDU: 80 0D 02 02 02 5E A1 [08:12:59]Write to MH i2c: E2 0A 00 40 68 80 0D 02 02 02 00 5E A1 00 00 25 [08:12:59]Write i2c OK [08:12:59]MH_I2C_Read... [08:12:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:12:59]Read from MH i2c: E2 [08:12:59]MH_I2C_Read... [08:12:59]Read from MH i2c: E2 03 00 [08:12:59]MH_I2C_Read... [08:12:59]Read from MH i2c: E2 03 00 40 68 00 90 00 1C [08:12:59]RAPDU: 90 00 [08:12:59]wFMCommunicate OK [08:12:59]wFMCommunicate request_size=4 [08:12:59]MH_SAM_APDU [08:12:59]CAPDU: 80 0D 03 02 [08:12:59]Write to MH i2c: E2 08 00 41 68 80 0D 03 02 00 00 00 00 24 [08:12:59]Write i2c OK [08:12:59]MH_I2C_Read... [08:12:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:12:59]Read from MH i2c: E2 [08:12:59]MH_I2C_Read... [08:12:59]Read from MH i2c: E2 0B 00 [08:12:59]MH_I2C_Read... [08:12:59]Read from MH i2c: E2 0B 00 41 68 00 2E D9 F8 8A 74 0A A3 30 90 00 FF [08:12:59]RAPDU: 2E D9 F8 8A 74 0A A3 30 90 00 [08:12:59]wFMCommunicate OK [08:12:59]SAM_PROTO_SignData done [08:12:59]FM_MakeSignedData done [08:12:59]CreateOFDProtocolMessage [08:12:59]wFMCommunicate request_size=4 [08:12:59]MH_SAM_APDU [08:12:59]CAPDU: 80 11 00 00 [08:12:59]Write to MH i2c: E2 08 00 42 68 80 11 00 00 00 00 00 00 24 [08:12:59]Write i2c OK [08:12:59]MH_I2C_Read... [08:12:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:12:59]Read from MH i2c: E2 [08:12:59]MH_I2C_Read... [08:12:59]Read from MH i2c: E2 17 00 [08:12:59]MH_I2C_Read... [08:12:59]Read from MH i2c: E2 17 00 42 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 72 [08: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 [08:12:59]wFMCommunicate OK [08:12:59]CreateOFDProtocolMessage done [08:12:59]OFDSenderStorePacket 30242 [08:12:59]StoreOFDPacket docnum=30242 [08:12: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 0C 01 00 00 63 0A 04 01 D6 26 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 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 18 00 00 00 F4 03 04 00 92 BB 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 02 9F 97 60 5E A1 2E D9 F8 8A 74 0A A3 30 [08:12:59]CheckFolder [08:12:59]dirname=/storage/ofd_packets [08:12:59]CheckFolder done [08:12:59]ProducePacketName [08:12:59]name=ofd_packets/00030242 [08:12:59]NVStorageSaveData ofd_packets/00030242 [08:12:59]File name is /storage/ofd_packets/00030242 [08:12:59]Write 298 bytes [08:12:59]NVStorageSaveData done [08:12:59]OFDSenderStorePacket done [08:12:59]KKMCreateOFDPacket done [08:12:59]NVStorageSaveData kkm_last_timestamp [08:12:59]File name is /storage/kkm_last_timestamp [08:12:59]Write 4 bytes [08:12:59]NVStorageSaveData done [08:12:59]ExternCall_PrintAddStr [08:12:59]wPrintStart [08:12:59]Write to MH i2c: 01 00 00 43 68 AB [08:12:59]Write i2c OK [08:12:59]MH_I2C_Read... [08:12:59]Read from MH i2c: 01 [08:12:59]MH_I2C_Read... [08:12:59]Read from MH i2c: 01 07 00 [08:12:59]MH_I2C_Read... [08:12:59]Read from MH i2c: 01 07 00 43 68 00 00 00 00 00 FF 0F C0 [08:12:59]RasterBufferAndPrint [08:12:59]line Счет N : (1)342631 [08:12:59]line ИНН: 02508201610067 [08:12:59]line Контрольно-Кассовый Чек [08:12:59]line ПРОДАЖА [08:12:59]line ТРК (МРК, ГНК) : 64 [08:12:59]line Товар: 2710194210 [08:12:59]line ДТ-К-2 [08:12:59]line 6.570 * 76.20 [08:12:59]line = 500.63 [08:12:59]line НДС 12% НСП 1% [08:12:59]line > о реализуемом товаре [08:12:59]line ИТОГО: 500.63 [08:12:59]line НСП 1% : 4.43 [08:12:59]line НДС 12% : 53.16 [08:12:59]line Наличными: 0.00 [08:12:59]line Безнал.: 500.63 [08:12:59]line Место: АЗС № 78 "Партнер Нефть" [08:12:59]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [08:12:59]line СНО: Общий режим [08:12:59]line Чек 24 20.10.2024 08:13 [08:12:59]line Смена: 114 ФФД: 1.0 [08:12:59]line ЗНМ: 0300000137 [08:12:59]line РНМ: 0000000000186857 [08:12:59]line Версия ККМ: v1.0 [08:12:59]line Платежная система: АКБ Кыргызстан [08:12:59]line ФМ: 0000000002094219 [08:12:59]line ФД: 30242 [08:12:59]line ФПД: 2884462730913 [08:13:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T081306&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30242&fm=2884462730913&tin=02508201610067®Number=0000000000186857&sum=50063 [08:13:00]OFD Sender: Processing packet 30242 [packets to send 10, broken 9] [08:13:00]ProducePacketName [08:13:00]name=ofd_packets/00030242 [08:13:00]OFD Sender: To server: pG, [08:13:00]CommunicateWithHost lk.salyk.kg:30040 [08:13:00]ConnectInit lk.salyk.kg [08:13:00]written 0, free lines is 4095 [08:13:00]Connected sock=10 [08: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 0C 01 00 00 63 0A 04 01 D6 26 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 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 18 00 00 00 F4 03 04 00 92 BB 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 02 9F 97 60 5E A1 2E D9 F8 8A 74 0A A3 30 [08:13: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 D7 D7 47 00 7C 98 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 22 76 00 00 F4 03 04 00 16 66 14 67 B6 04 01 00 00 7A 9A 44 28 70 FF 50 1F [08:13:00]CommunicateWithHost err = 0 [08:13:00]CheckOFDResponse [08:13:00]1017 (14) - 77093643461234 [08:13:00]1041 (16) - 0000000002094219 [08:13:00]1040 (4) - 30242 [08:13:00]1012 (4) - 20.10.2024 02:08 [08:13:00]1206 (1) - 0 [08:13:00]OFD Sender: Remove packet 30242 [08:13:00]ProducePacketName [08:13:00]name=ofd_packets/00030242 [08:13:00]NVStorageDeleteData [08:13:00]Write to MH i2c: 01 00 00 6D 68 D5 [08:13:00]Write i2c OK [08:13:00]MH_I2C_Read... [08:13:00]Read from MH i2c: 01 [08:13:00]MH_I2C_Read... [08:13:00]Read from MH i2c: 01 07 00 [08:13:00]MH_I2C_Read... [08:13:00]Read from MH i2c: 01 07 00 6D 68 00 00 00 00 00 05 0D EE [08:13:00]RasterBufferAndPrint [08:13:00]line [08:13:00]line [08:13:00]line [08:13:00]line [08:13:00]line [08:13:00]written 0, free lines is 3340 [08:13:00]MH_Cut [08:13:00]Write to MH i2c: D1 01 00 74 68 01 AE [08:13:00]Write i2c OK [08:13:00]MH_I2C_Read... [08:13:00]Read from MH i2c: D1 [08:13:00]MH_I2C_Read... [08:13:00]Read from MH i2c: D1 01 00 [08:13:00]MH_I2C_Read... [08:13:00]Read from MH i2c: D1 01 00 74 68 00 AD [08:13:00]Write to MH i2c: 01 00 00 75 68 DD [08:13:00]Write i2c OK [08:13:00]MH_I2C_Read... [08:13:00]OFD Sender: No OFD packet to send [08:13:01]*** Cut start [08:13:01]*** Partial cut [08:13:01]*** CUTSNS_PIN = 1 [08:13:01]*** CUTSNS_PIN = 0 [08:13:01]*** Brake cut motor [08:13:01]Read from MH i2c: 01 [08:13:01]MH_I2C_Read... [08:13:01]*** Stop cut motor [08:13:01]*** Cut end [08:13:01]Read from MH i2c: 01 07 00 [08:13:01]MH_I2C_Read... [08:13:01]Read from MH i2c: 01 07 00 75 68 00 00 00 00 00 FF 0F F2 [08:13:01]process_action close_receipt done [08:13:01]requested_data is exist [08:13:01]produce_requested_data [08:13:01]requested_item fm.sn is exist - process it [08:13:01]wFMCommunicate request_size=4 [08:13:01]MH_SAM_APDU [08:13:01]CAPDU: 80 11 00 00 [08:13:01]Write to MH i2c: E2 08 00 76 68 80 11 00 00 00 00 00 00 58 [08:13:01]Write i2c OK [08:13:01]MH_I2C_Read... [08:13:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:13:01]Read from MH i2c: E2 [08:13:01]MH_I2C_Read... [08:13:01]Read from MH i2c: E2 17 00 [08:13:01]MH_I2C_Read... [08:13:01]Read from MH i2c: E2 17 00 76 68 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: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 [08:13:01]wFMCommunicate OK [08:13:01]requested_item fd.num is exist - process it [08:13:01]SAM_PROTO_GetFieldsCounters [08:13:01]wFMCommunicate request_size=4 [08:13:01]MH_SAM_APDU [08:13:01]CAPDU: 80 13 00 00 [08:13:01]Write to MH i2c: E2 08 00 77 68 80 13 00 00 00 00 00 00 5B [08:13:01]Write i2c OK [08:13:01]MH_I2C_Read... [08:13:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:13:01]Read from MH i2c: E2 [08:13:01]MH_I2C_Read... [08:13:01]Read from MH i2c: E2 62 00 [08:13:01]MH_I2C_Read... [08:13:01]Read from MH i2c: E2 62 00 77 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 76 00 00 0E 04 04 00 72 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: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 22 76 00 00 0E 04 04 00 72 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:02]wFMCommunicate OK [08:13:02]SAM_PROTO_GetFieldsCounters done [08:13:02]requested_item shift.num is exist - process it [08:13:02]requested_item shift.opened is exist - process it [08:13:02]req_shift_opened [08:13:02]FM_GetShiftState [08:13:02]SAM_PROTO_GetShiftState [08:13:02]wFMCommunicate request_size=4 [08:13:02]MH_SAM_APDU [08:13:02]CAPDU: 80 13 01 00 [08:13:02]Write to MH i2c: E2 08 00 78 68 80 13 01 00 00 00 00 00 5D [08:13:02]Write i2c OK [08:13:02]MH_I2C_Read... [08:13:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:13:02]Read from MH i2c: E2 [08:13:02]MH_I2C_Read... [08:13:02]Read from MH i2c: E2 0E 00 [08:13:02]MH_I2C_Read... [08:13:02]Read from MH i2c: E2 0E 00 78 68 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 43 [08:13:02]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [08:13:02]wFMCommunicate OK [08:13:02]SAM_PROTO_GetShiftState done [08:13:02]FM_GetShiftState done [08:13:02]req_shift_opened done [08:13:02]requested_item shift.open_date is exist - process it [08:13:02]req_shift_open_date [08:13:02]req_shift_open_date done [08:13:02]produce_requested_data done [08:13:02]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30242,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [08:13:02]process_action_free close_receipt [08:13:02]json_value_free [08:13:02]json_value_free done [08:13:02]process_json_proto returns [08:13:02]Send response to host [08:13:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30242,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [08:13:02]free response buf [08:13:02]execute_script done [08:13:02]execute_script returns [08:13:02]free content buf [08:13:02]Sock 9.Close socket [08:13:02]Sock 9.Thread stoped [08:13:05]OFD Sender: No OFD packet to send [08:13:10]OFD Sender: No OFD packet to send [08:13:15]OFD Sender: No OFD packet to send [08:13:20]OFD Sender: No OFD packet to send [08:13:25]OFD Sender: No OFD packet to send [08:13:30]OFD Sender: No OFD packet to send [08:13:36]OFD Sender: No OFD packet to send [08:13:41]OFD Sender: No OFD packet to send [08:13:46]OFD Sender: No OFD packet to send [08:13:51]OFD Sender: No OFD packet to send [08:13:56]OFD Sender: No OFD packet to send [08:14:01]OFD Sender: No OFD packet to send [08:14:06]OFD Sender: No OFD packet to send [08:14:11]OFD Sender: No OFD packet to send [08:14:14]accept exits with 7 [08:14:14]New connection [08:14:14]New thread 3067370852 created [08:14:14]Thread 3067514212 joined [08:14:14]Waiting for new connection... [08:14:14] Sock 7.Parse request [08:14:14]Sock 7.Check first char [08:14:14]Sock 7.First char is OK [08:14:14]request: POST /json_proto HTTP/1.0 [08:14:14]Method: POST [08:14:14]URL: /json_proto [08:14:14]Method is POST - this is cgi request [08:14:14]url: /json_proto [08:14:14]query_string will be loaded in cgi processing [08:14:14]execute_cgi json_proto POST (null) [08:14:14]execute_cgi path=json_proto method=POST [08:14:14]POST find Content-Length [08:14:14]Host: 172.17.51.3:8080 [08:14:14]Content-Length: 792 [08:14:14]Content-Type: application/json [08:14:14] [08:14:14]POST finish read [08:14:14]Found Content-Length = 792 [08:14:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342632", "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" : 29.900, "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\u000A31172", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:14:14]execute_script... [08:14:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342632", "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" : 29.900, "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\u000A31172", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:14:14]POST & json_proto [08:14:14]process_json_proto [08:14:14]json parsed OK: [08:14:14]protocol is kg_v1.0 [08:14:14]action value=close_receipt [08:14:14]process_action close_receipt [08:14:14]cmd_close_receipt [08:14:14]MH_GetDate [08:14:14]Write to MH i2c: F0 00 00 79 68 D0 [08:14:14]Write i2c OK [08:14:14]MH_I2C_Read... [08:14:14]Read from MH i2c: F0 [08:14:14]MH_I2C_Read... [08:14:14]Read from MH i2c: F0 09 00 [08:14:14]MH_I2C_Read... [08:14:14]Read from MH i2c: F0 09 00 79 68 00 DE BB 14 67 04 C1 95 66 AD [08:14:14]GetLastDocTimeStamp 1729411986 [08:14:14]current date 1729412062 [08:14:14]FM_GetShiftState [08:14:14]SAM_PROTO_GetShiftState [08:14:14]wFMCommunicate request_size=4 [08:14:14]MH_SAM_APDU [08:14:14]CAPDU: 80 13 01 00 [08:14:14]Write to MH i2c: E2 08 00 7A 68 80 13 01 00 00 00 00 00 5F [08:14:14]Write i2c OK [08:14:14]MH_I2C_Read... [08:14:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:14:14]Read from MH i2c: E2 [08:14:14]MH_I2C_Read... [08:14:14]Read from MH i2c: E2 0E 00 [08:14:14]MH_I2C_Read... [08:14:14]Read from MH i2c: E2 0E 00 7A 68 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 45 [08:14:14]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [08:14:14]wFMCommunicate OK [08:14:14]SAM_PROTO_GetShiftState done [08:14:14]FM_GetShiftState done [08:14:14]opened in 1729384718 [08:14:14]opened+sec_in_day 1729471118 [08:14:14]quantity*price = 0 [08:14:14]sum+1 = 1 [08:14: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 СНО: Общий режим Чек 25 20.10.2024 08:14 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Талоны: Топливная Карта 31172 ФМ: 0000000002094219 ФД: 30243 ФПД: 111577887822520 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T081422&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30243&fm=111577887822520&tin=02508201610067®Number=0000000000186857&sum=0 [08:14:15]StoreToDocumentArchive [08:14:15]shift 114 fd 30243 [08:14:15]save to /storage/0114/doc_00030243 [08:14:15]save last doc name /storage/0114/doc_00030243 to /storage/kkm_last_doc_name [08:14:15]save OK [08:14:15]Clear old archive folders... [08:14:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:14:15]tlvbuf is 00BA7380 [08:14:15]SAM_PROTO_ClearQueue [08:14:15]wFMCommunicate request_size=4 [08:14:15]MH_SAM_APDU [08:14:15]CAPDU: 80 09 00 00 [08:14:15]Write to MH i2c: E2 08 00 87 68 80 09 00 00 00 00 00 00 61 [08:14:15]Write i2c OK [08:14:15]MH_I2C_Read... [08:14:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:14:15]Read from MH i2c: E2 [08:14:15]MH_I2C_Read... [08:14:15]Read from MH i2c: E2 03 00 [08:14:15]MH_I2C_Read... [08:14:15]Read from MH i2c: E2 03 00 87 68 00 90 00 63 [08:14:15]RAPDU: 90 00 [08:14:15]wFMCommunicate OK [08:14:15]SAM_PROTO_ClearQueue done [08:14:15]KKMCreateOFDPacket [08:14:15]OFDProtocolAddRootSTLVToBuf [08:14:15]FM_MakeSignedData [08:14:15]FM_MakeSignedData [08:14:15]SAM_PROTO_SignData [08:14:15]wFMCommunicate request_size=4 [08:14:15]MH_SAM_APDU [08:14:15]CAPDU: 80 0D 01 02 [08:14:15]Write to MH i2c: E2 08 00 88 68 80 0D 01 02 00 00 00 00 69 [08:14:15]Write i2c OK [08:14:15]MH_I2C_Read... [08:14:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:14:15]Read from MH i2c: E2 [08:14:15]MH_I2C_Read... [08:14:15]Read from MH i2c: E2 03 00 [08:14:15]MH_I2C_Read... [08:14:15]Read from MH i2c: E2 03 00 88 68 00 90 00 64 [08:14:15]RAPDU: 90 00 [08:14:15]wFMCommunicate OK [08:14:15]wFMCommunicate request_size=255 [08:14:15]MH_SAM_APDU [08:14:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 CC 74 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 19 00 00 00 F4 03 04 00 DE BB 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 65 [08:14:15]Write to MH i2c: E2 02 01 89 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 CC 74 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 19 00 00 00 F4 03 04 00 DE BB 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 65 00 00 52 [08:14:15]Write i2c OK [08:14:15]MH_I2C_Read... [08:14:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:14:15]Read from MH i2c: E2 [08:14:15]MH_I2C_Read... [08:14:15]Read from MH i2c: E2 03 00 [08:14:15]MH_I2C_Read... [08:14:15]Read from MH i2c: E2 03 00 89 68 00 90 00 65 [08:14:15]RAPDU: 90 00 [08:14:15]wFMCommunicate OK [08:14:15]wFMCommunicate request_size=10 [08:14:15]MH_SAM_APDU [08:14:15]CAPDU: 80 0D 02 02 05 7A C0 5E 52 B8 [08:14:15]Write to MH i2c: E2 0D 00 8A 68 80 0D 02 02 05 00 7A C0 5E 52 B8 00 00 18 [08:14:15]Write i2c OK [08:14:15]MH_I2C_Read... [08:14:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:14:15]Read from MH i2c: E2 [08:14:15]MH_I2C_Read... [08:14:15]Read from MH i2c: E2 03 00 [08:14:15]MH_I2C_Read... [08:14:15]Read from MH i2c: E2 03 00 8A 68 00 90 00 66 [08:14:15]RAPDU: 90 00 [08:14:15]wFMCommunicate OK [08:14:15]wFMCommunicate request_size=4 [08:14:15]MH_SAM_APDU [08:14:15]CAPDU: 80 0D 03 02 [08:14:15]Write to MH i2c: E2 08 00 8B 68 80 0D 03 02 00 00 00 00 6E [08:14:15]Write i2c OK [08:14:15]MH_I2C_Read... [08:14:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:14:15]Read from MH i2c: E2 [08:14:15]MH_I2C_Read... [08:14:15]Read from MH i2c: E2 0B 00 [08:14:15]MH_I2C_Read... [08:14:15]Read from MH i2c: E2 0B 00 8B 68 00 4F 70 34 4F BA 19 24 F2 90 00 9A [08:14:15]RAPDU: 4F 70 34 4F BA 19 24 F2 90 00 [08:14:15]wFMCommunicate OK [08:14:15]SAM_PROTO_SignData done [08:14:15]FM_MakeSignedData done [08:14:15]CreateOFDProtocolMessage [08:14:15]wFMCommunicate request_size=4 [08:14:15]MH_SAM_APDU [08:14:15]CAPDU: 80 11 00 00 [08:14:15]Write to MH i2c: E2 08 00 8C 68 80 11 00 00 00 00 00 00 6E [08:14:15]Write i2c OK [08:14:15]MH_I2C_Read... [08:14:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:14:15]Read from MH i2c: E2 [08:14:15]MH_I2C_Read... [08:14:15]Read from MH i2c: E2 17 00 [08:14:15]MH_I2C_Read... [08:14:15]Read from MH i2c: E2 17 00 8C 68 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:14: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:14:15]wFMCommunicate OK [08:14:15]CreateOFDProtocolMessage done [08:14:15]OFDSenderStorePacket 30243 [08:14:15]StoreOFDPacket docnum=30243 [08:14: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 C3 C5 07 01 92 D4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 CC 74 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 19 00 00 00 F4 03 04 00 DE BB 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 65 7A C0 5E 52 B8 4F 70 34 4F BA 19 24 F2 [08:14:15]CheckFolder [08:14:15]dirname=/storage/ofd_packets [08:14:15]CheckFolder done [08:14:15]ProducePacketName [08:14:15]name=ofd_packets/00030243 [08:14:15]NVStorageSaveData ofd_packets/00030243 [08:14:15]File name is /storage/ofd_packets/00030243 [08:14:15]Write 301 bytes [08:14:15]NVStorageSaveData done [08:14:15]OFDSenderStorePacket done [08:14:15]KKMCreateOFDPacket done [08:14:15]NVStorageSaveData kkm_last_timestamp [08:14:15]File name is /storage/kkm_last_timestamp [08:14:15]Write 4 bytes [08:14:15]NVStorageSaveData done [08:14:15]ExternCall_PrintAddStr [08:14:15]wPrintStart [08:14:15]Write to MH i2c: 01 00 00 8D 68 F5 [08:14:15]Write i2c OK [08:14:15]MH_I2C_Read... [08:14:15]Read from MH i2c: 01 [08:14:15]MH_I2C_Read... [08:14:15]Read from MH i2c: 01 07 00 [08:14:15]MH_I2C_Read... [08:14:15]Read from MH i2c: 01 07 00 8D 68 00 00 00 00 00 FF 0F 0A [08:14:15]RasterBufferAndPrint [08:14:15]line Счет N : (1)342632 [08:14:15]line ИНН: 02508201610067 [08:14:15]line Контрольно-Кассовый Чек [08:14:15]line ПРОДАЖА [08:14:15]line ТРК (МРК, ГНК) : 43 [08:14:15]line Товар: 2710124130 [08:14:15]line Аи-92-К-2 [08:14:15]line 29.900 * 0.00 [08:14:15]line = 0.00 [08:14:15]line НДС 12% НСП 1% [08:14:15]line > о реализуемом товаре [08:14:15]line ИТОГО: 0.00 [08:14:15]line НСП 1% : 0.00 [08:14:15]line НДС 12% : 0.00 [08:14:15]line Наличными: 0.00 [08:14:15]line Безнал.: 0.00 [08:14:15]line Место: АЗС № 78 "Партнер Нефть" [08:14:15]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [08:14:15]line СНО: Общий режим [08:14:15]line Чек 25 20.10.2024 08:14 [08:14:15]line Смена: 114 ФФД: 1.0 [08:14:15]line ЗНМ: 0300000137 [08:14:15]line РНМ: 0000000000186857 [08:14:15]line Версия ККМ: v1.0 [08:14:15]line Талоны: Топливная Карта [08:14:15]line 31172 [08:14:15]line ФМ: 0000000002094219 [08:14:15]line ФД: 30243 [08:14:15]line ФПД: 111577887822520 [08:14:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T081422&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30243&fm=111577887822520&tin=02508201610067®Number=0000000000186857&sum=0 [08:14:16]OFD Sender: Processing packet 30243 [packets to send 10, broken 9] [08:14:16]ProducePacketName [08:14:16]name=ofd_packets/00030243 [08:14:16]OFD Sender: To server: pG, [08:14:16]CommunicateWithHost lk.salyk.kg:30040 [08:14:16]ConnectInit lk.salyk.kg [08:14:16]written 0, free lines is 4095 [08:14:16]Connected sock=10 [08:14: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 C3 C5 07 01 92 D4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 CC 74 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 19 00 00 00 F4 03 04 00 DE BB 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 65 7A C0 5E 52 B8 4F 70 34 4F BA 19 24 F2 [08:14: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 F9 41 47 00 0A 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 23 76 00 00 F4 03 04 00 63 66 14 67 B6 04 01 00 00 33 DA 7E 5D A1 0E E3 99 [08:14:16]CommunicateWithHost err = 0 [08:14:16]CheckOFDResponse [08:14:16]1017 (14) - 77093643461234 [08:14:16]1041 (16) - 0000000002094219 [08:14:16]1040 (4) - 30243 [08:14:16]1012 (4) - 20.10.2024 02:09 [08:14:16]1206 (1) - 0 [08:14:16]OFD Sender: Remove packet 30243 [08:14:16]ProducePacketName [08:14:16]name=ofd_packets/00030243 [08:14:16]NVStorageDeleteData [08:14:16]Write to MH i2c: 01 00 00 B7 68 1F [08:14:16]Write i2c OK [08:14:16]MH_I2C_Read... [08:14:16]Read from MH i2c: 01 [08:14:16]MH_I2C_Read... [08:14:16]Read from MH i2c: 01 07 00 [08:14:16]MH_I2C_Read... [08:14:16]Read from MH i2c: 01 07 00 B7 68 00 00 00 00 00 04 0D 37 [08:14:16]RasterBufferAndPrint [08:14:16]line [08:14:16]line [08:14:16]line [08:14:16]line [08:14:16]line [08:14:16]written 0, free lines is 3338 [08:14:16]MH_Cut [08:14:16]Write to MH i2c: D1 01 00 BE 68 01 F8 [08:14:16]Write i2c OK [08:14:16]MH_I2C_Read... [08:14:16]Read from MH i2c: D1 [08:14:16]MH_I2C_Read... [08:14:16]Read from MH i2c: D1 01 00 [08:14:16]MH_I2C_Read... [08:14:16]Read from MH i2c: D1 01 00 BE 68 00 F7 [08:14:16]Write to MH i2c: 01 00 00 BF 68 27 [08:14:16]Write i2c OK [08:14:16]MH_I2C_Read... [08:14:17]OFD Sender: No OFD packet to send [08:14:17]*** Cut start [08:14:17]*** Partial cut [08:14:17]*** CUTSNS_PIN = 1 [08:14:17]*** CUTSNS_PIN = 0 [08:14:17]*** Brake cut motor [08:14:17]Read from MH i2c: 01 [08:14:17]MH_I2C_Read... [08:14:17]*** Stop cut motor [08:14:17]*** Cut end [08:14:17]Read from MH i2c: 01 07 00 [08:14:17]MH_I2C_Read... [08:14:17]Read from MH i2c: 01 07 00 BF 68 00 00 00 00 00 FF 0F 3C [08:14:17]process_action close_receipt done [08:14:17]requested_data is exist [08:14:17]produce_requested_data [08:14:17]requested_item fm.sn is exist - process it [08:14:17]wFMCommunicate request_size=4 [08:14:17]MH_SAM_APDU [08:14:17]CAPDU: 80 11 00 00 [08:14:17]Write to MH i2c: E2 08 00 C0 68 80 11 00 00 00 00 00 00 A2 [08:14:17]Write i2c OK [08:14:17]MH_I2C_Read... [08:14:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:14:18]Read from MH i2c: E2 [08:14:18]MH_I2C_Read... [08:14:18]Read from MH i2c: E2 17 00 [08:14:18]MH_I2C_Read... [08:14:18]Read from MH i2c: E2 17 00 C0 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 F0 [08:14: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:14:18]wFMCommunicate OK [08:14:18]requested_item fd.num is exist - process it [08:14:18]SAM_PROTO_GetFieldsCounters [08:14:18]wFMCommunicate request_size=4 [08:14:18]MH_SAM_APDU [08:14:18]CAPDU: 80 13 00 00 [08:14:18]Write to MH i2c: E2 08 00 C1 68 80 13 00 00 00 00 00 00 A5 [08:14:18]Write i2c OK [08:14:18]MH_I2C_Read... [08:14:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:14:18]Read from MH i2c: E2 [08:14:18]MH_I2C_Read... [08:14:18]Read from MH i2c: E2 62 00 [08:14:18]MH_I2C_Read... [08:14:18]Read from MH i2c: E2 62 00 C1 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 23 76 00 00 0E 04 04 00 72 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 21 [08:14: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 23 76 00 00 0E 04 04 00 72 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:18]wFMCommunicate OK [08:14:18]SAM_PROTO_GetFieldsCounters done [08:14:18]requested_item shift.num is exist - process it [08:14:18]requested_item shift.opened is exist - process it [08:14:18]req_shift_opened [08:14:18]FM_GetShiftState [08:14:18]SAM_PROTO_GetShiftState [08:14:18]wFMCommunicate request_size=4 [08:14:18]MH_SAM_APDU [08:14:18]CAPDU: 80 13 01 00 [08:14:18]Write to MH i2c: E2 08 00 C2 68 80 13 01 00 00 00 00 00 A7 [08:14:18]Write i2c OK [08:14:18]MH_I2C_Read... [08:14:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:14:18]Read from MH i2c: E2 [08:14:18]MH_I2C_Read... [08:14:18]Read from MH i2c: E2 0E 00 [08:14:18]MH_I2C_Read... [08:14:18]Read from MH i2c: E2 0E 00 C2 68 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 8D [08:14:18]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [08:14:18]wFMCommunicate OK [08:14:18]SAM_PROTO_GetShiftState done [08:14:18]FM_GetShiftState done [08:14:18]req_shift_opened done [08:14:18]requested_item shift.open_date is exist - process it [08:14:18]req_shift_open_date [08:14:18]req_shift_open_date done [08:14:18]produce_requested_data done [08:14:18]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30243,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [08:14:18]process_action_free close_receipt [08:14:18]json_value_free [08:14:18]json_value_free done [08:14:18]process_json_proto returns [08:14:18]Send response to host [08:14:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30243,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [08:14:18]free response buf [08:14:18]execute_script done [08:14:18]execute_script returns [08:14:18]free content buf [08:14:18]Sock 7.Close socket [08:14:18]Sock 7.Thread stoped [08:14:18]accept exits with 9 [08:14:18]New connection [08:14:18]New thread 3067514212 created [08:14:18]Thread 3067370852 joined [08:14:18]Waiting for new connection... [08:14:18] Sock 9.Parse request [08:14:18]Sock 9.Check first char [08:14:18]Sock 9.First char is OK [08:14:18]request: POST /json_proto HTTP/1.0 [08:14:18]Method: POST [08:14:18]URL: /json_proto [08:14:18]Method is POST - this is cgi request [08:14:18]url: /json_proto [08:14:18]query_string will be loaded in cgi processing [08:14:18]execute_cgi json_proto POST (null) [08:14:18]execute_cgi path=json_proto method=POST [08:14:18]POST find Content-Length [08:14:18]Host: 172.17.51.3:8080 [08:14:18]Content-Length: 677 [08:14:18]Content-Type: application/json [08:14:18] [08:14:18]POST finish read [08:14:18]Found Content-Length = 677 [08:14:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342633", "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" ] } } [08:14:18]execute_script... [08:14: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)342633", "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" ] } } [08:14:18]POST & json_proto [08:14:18]process_json_proto [08:14:18]json parsed OK: [08:14:18]protocol is kg_v1.0 [08:14:18]action value=close_receipt [08:14:18]process_action close_receipt [08:14:18]cmd_close_receipt [08:14:18]MH_GetDate [08:14:18]Write to MH i2c: F0 00 00 C3 68 1A [08:14:18]Write i2c OK [08:14:18]MH_I2C_Read... [08:14:18]Read from MH i2c: F0 [08:14:18]MH_I2C_Read... [08:14:18]Read from MH i2c: F0 09 00 [08:14:18]MH_I2C_Read... [08:14:18]Read from MH i2c: F0 09 00 C3 68 00 E2 BB 14 67 04 C1 95 66 FB [08:14:18]GetLastDocTimeStamp 1729412062 [08:14:18]current date 1729412066 [08:14:18]FM_GetShiftState [08:14:18]SAM_PROTO_GetShiftState [08:14:18]wFMCommunicate request_size=4 [08:14:18]MH_SAM_APDU [08:14:18]CAPDU: 80 13 01 00 [08:14:18]Write to MH i2c: E2 08 00 C4 68 80 13 01 00 00 00 00 00 A9 [08:14:18]Write i2c OK [08:14:18]MH_I2C_Read... [08:14:18]Read from MH i2c: E2 [08:14:18]MH_I2C_Read... [08:14:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:14:18]Read from MH i2c: E2 0E 00 [08:14:18]MH_I2C_Read... [08:14:18]Read from MH i2c: E2 0E 00 C4 68 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 8F [08:14:18]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [08:14:18]wFMCommunicate OK [08:14:18]SAM_PROTO_GetShiftState done [08:14:18]FM_GetShiftState done [08:14:18]opened in 1729384718 [08:14:18]opened+sec_in_day 1729471118 [08:14:18]quantity*price = 20003 [08:14:18]sum+1 = 20004 [08:14:18]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 СНО: Общий режим Чек 26 20.10.2024 08:14 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30244 ФПД: 230619829650749 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T081427&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30244&fm=230619829650749&tin=02508201610067®Number=0000000000186857&sum=20000 [08:14:20]StoreToDocumentArchive [08:14:20]shift 114 fd 30244 [08:14:20]save to /storage/0114/doc_00030244 [08:14:20]save last doc name /storage/0114/doc_00030244 to /storage/kkm_last_doc_name [08:14:20]save OK [08:14:20]Clear old archive folders... [08:14:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:14:20]tlvbuf is 00CBE9E0 [08:14:20]SAM_PROTO_ClearQueue [08:14:20]wFMCommunicate request_size=4 [08:14:20]MH_SAM_APDU [08:14:20]CAPDU: 80 09 00 00 [08:14:20]Write to MH i2c: E2 08 00 D1 68 80 09 00 00 00 00 00 00 AB [08:14:20]Write i2c OK [08:14:20]MH_I2C_Read... [08:14:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:14:20]Read from MH i2c: E2 [08:14:20]MH_I2C_Read... [08:14:20]Read from MH i2c: E2 03 00 [08:14:20]MH_I2C_Read... [08:14:20]Read from MH i2c: E2 03 00 D1 68 00 90 00 AD [08:14:20]RAPDU: 90 00 [08:14:20]wFMCommunicate OK [08:14:20]SAM_PROTO_ClearQueue done [08:14:20]KKMCreateOFDPacket [08:14:20]OFDProtocolAddRootSTLVToBuf [08:14:20]FM_MakeSignedData [08:14:20]FM_MakeSignedData [08:14:20]SAM_PROTO_SignData [08:14:20]wFMCommunicate request_size=4 [08:14:20]MH_SAM_APDU [08:14:20]CAPDU: 80 0D 01 02 [08:14:20]Write to MH i2c: E2 08 00 D2 68 80 0D 01 02 00 00 00 00 B3 [08:14:20]Write i2c OK [08:14:20]MH_I2C_Read... [08:14:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:14:20]Read from MH i2c: E2 [08:14:20]MH_I2C_Read... [08:14:20]Read from MH i2c: E2 03 00 [08:14:20]MH_I2C_Read... [08:14:20]Read from MH i2c: E2 03 00 D2 68 00 90 00 AE [08:14:20]RAPDU: 90 00 [08:14:20]wFMCommunicate OK [08:14:20]wFMCommunicate request_size=255 [08:14:20]MH_SAM_APDU [08:14: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 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 1A 00 00 00 F4 03 04 00 E3 BB 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 D1 [08:14:20]Write to MH i2c: E2 02 01 D3 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 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 1A 00 00 00 F4 03 04 00 E3 BB 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 D1 00 00 16 [08:14:20]Write i2c OK [08:14:20]MH_I2C_Read... [08:14:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:14:20]Read from MH i2c: E2 [08:14:20]MH_I2C_Read... [08:14:20]Read from MH i2c: E2 03 00 [08:14:20]MH_I2C_Read... [08:14:20]Read from MH i2c: E2 03 00 D3 68 00 90 00 AF [08:14:20]RAPDU: 90 00 [08:14:20]wFMCommunicate OK [08:14:20]wFMCommunicate request_size=10 [08:14:20]MH_SAM_APDU [08:14:20]CAPDU: 80 0D 02 02 05 BF 5D 06 45 3D [08:14:20]Write to MH i2c: E2 0D 00 D4 68 80 0D 02 02 05 00 BF 5D 06 45 3D 00 00 64 [08:14:20]Write i2c OK [08:14:20]MH_I2C_Read... [08:14:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:14:20]Read from MH i2c: E2 [08:14:20]MH_I2C_Read... [08:14:20]Read from MH i2c: E2 03 00 [08:14:20]MH_I2C_Read... [08:14:20]Read from MH i2c: E2 03 00 D4 68 00 90 00 B0 [08:14:20]RAPDU: 90 00 [08:14:20]wFMCommunicate OK [08:14:20]wFMCommunicate request_size=4 [08:14:20]MH_SAM_APDU [08:14:20]CAPDU: 80 0D 03 02 [08:14:20]Write to MH i2c: E2 08 00 D5 68 80 0D 03 02 00 00 00 00 B8 [08:14:20]Write i2c OK [08:14:20]MH_I2C_Read... [08:14:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:14:20]Read from MH i2c: E2 [08:14:20]MH_I2C_Read... [08:14:20]Read from MH i2c: E2 0B 00 [08:14:20]MH_I2C_Read... [08:14:20]Read from MH i2c: E2 0B 00 D5 68 00 29 09 9D 7A AD E5 B8 B6 90 00 02 [08:14:20]RAPDU: 29 09 9D 7A AD E5 B8 B6 90 00 [08:14:20]wFMCommunicate OK [08:14:20]SAM_PROTO_SignData done [08:14:20]FM_MakeSignedData done [08:14:20]CreateOFDProtocolMessage [08:14:20]wFMCommunicate request_size=4 [08:14:20]MH_SAM_APDU [08:14:20]CAPDU: 80 11 00 00 [08:14:20]Write to MH i2c: E2 08 00 D6 68 80 11 00 00 00 00 00 00 B8 [08:14:20]Write i2c OK [08:14:20]MH_I2C_Read... [08:14:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:14:20]Read from MH i2c: E2 [08:14:20]MH_I2C_Read... [08:14:20]Read from MH i2c: E2 17 00 [08:14:20]MH_I2C_Read... [08:14:20]Read from MH i2c: E2 17 00 D6 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 06 [08:14: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:14:20]wFMCommunicate OK [08:14:20]CreateOFDProtocolMessage done [08:14:20]OFDSenderStorePacket 30244 [08:14:20]StoreOFDPacket docnum=30244 [08:14: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 68 0D 07 01 96 F1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 1A 00 00 00 F4 03 04 00 E3 BB 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 D1 BF 5D 06 45 3D 29 09 9D 7A AD E5 B8 B6 [08:14:20]CheckFolder [08:14:20]dirname=/storage/ofd_packets [08:14:20]CheckFolder done [08:14:20]ProducePacketName [08:14:20]name=ofd_packets/00030244 [08:14:20]NVStorageSaveData ofd_packets/00030244 [08:14:20]File name is /storage/ofd_packets/00030244 [08:14:20]Write 301 bytes [08:14:20]NVStorageSaveData done [08:14:20]OFDSenderStorePacket done [08:14:20]KKMCreateOFDPacket done [08:14:20]NVStorageSaveData kkm_last_timestamp [08:14:20]File name is /storage/kkm_last_timestamp [08:14:20]Write 4 bytes [08:14:20]NVStorageSaveData done [08:14:20]ExternCall_PrintAddStr [08:14:20]wPrintStart [08:14:20]Write to MH i2c: 01 00 00 D7 68 3F [08:14:20]Write i2c OK [08:14:20]MH_I2C_Read... [08:14:20]Read from MH i2c: 01 [08:14:20]MH_I2C_Read... [08:14:20]Read from MH i2c: 01 07 00 [08:14:20]MH_I2C_Read... [08:14:20]Read from MH i2c: 01 07 00 D7 68 00 00 00 00 00 FF 0F 54 [08:14:20]RasterBufferAndPrint [08:14:20]line Счет N : (1)342633 [08:14:20]line ИНН: 02508201610067 [08:14:20]line Контрольно-Кассовый Чек [08:14:20]line ПРОДАЖА [08:14:20]line ТРК (МРК, ГНК) : 53 [08:14:20]line Товар: 2710124130 [08:14:20]line Аи-92-К-2 [08:14:20]line 2.990 * 66.90 [08:14:20]line = 200.03 [08:14:20]line НДС 12% НСП 1% [08:14:20]line > о реализуемом товаре [08:14:20]line ОКРУГЛЕНИЕ: -0.03 [08:14:20]line ИТОГО: 200.00 [08:14:20]line Внесено: 200.00 [08:14:20]line СДАЧА: 0.00 [08:14:20]line НСП 1% : 1.77 [08:14:20]line НДС 12% : 21.24 [08:14:20]line Наличными: 200.00 [08:14:20]line Безнал.: 0.00 [08:14:20]line Место: АЗС № 78 "Партнер Нефть" [08:14:20]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [08:14:20]line СНО: Общий режим [08:14:20]line Чек 26 20.10.2024 08:14 [08:14:20]line Смена: 114 ФФД: 1.0 [08:14:20]line ЗНМ: 0300000137 [08:14:20]line РНМ: 0000000000186857 [08:14:20]line Версия ККМ: v1.0 [08:14:20]line ФМ: 0000000002094219 [08:14:20]line ФД: 30244 [08:14:20]line ФПД: 230619829650749 [08:14:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T081427&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30244&fm=230619829650749&tin=02508201610067®Number=0000000000186857&sum=20000 [08:14:20]written 0, free lines is 4095 [08:14:20]OFD Sender: Processing packet 30244 [packets to send 10, broken 9] [08:14:20]ProducePacketName [08:14:20]name=ofd_packets/00030244 [08:14:20]OFD Sender: To server: pG, [08:14:20]CommunicateWithHost lk.salyk.kg:30040 [08:14:20]ConnectInit lk.salyk.kg [08:14:21]Connected sock=11 [08:14: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 68 0D 07 01 96 F1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 1A 00 00 00 F4 03 04 00 E3 BB 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 D1 BF 5D 06 45 3D 29 09 9D 7A AD E5 B8 B6 [08:14: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 CD FD 47 00 8C 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 24 76 00 00 F4 03 04 00 67 66 14 67 B6 04 01 00 00 5D C6 54 41 D5 FD 3F 1C [08:14:21]CommunicateWithHost err = 0 [08:14:21]CheckOFDResponse [08:14:21]1017 (14) - 77093643461234 [08:14:21]1041 (16) - 0000000002094219 [08:14:21]1040 (4) - 30244 [08:14:21]1012 (4) - 20.10.2024 02:09 [08:14:21]1206 (1) - 0 [08:14:21]OFD Sender: Remove packet 30244 [08:14:21]ProducePacketName [08:14:21]name=ofd_packets/00030244 [08:14:21]NVStorageDeleteData [08:14:21]Write to MH i2c: 01 00 00 02 69 6B [08:14:21]Write i2c OK [08:14:21]MH_I2C_Read... [08:14:21]Read from MH i2c: 01 [08:14:21]MH_I2C_Read... [08:14:21]Read from MH i2c: 01 07 00 [08:14:21]MH_I2C_Read... [08:14:21]Read from MH i2c: 01 07 00 02 69 00 00 00 00 00 F4 0C 72 [08:14:21]RasterBufferAndPrint [08:14:21]line [08:14:21]line [08:14:21]line [08:14:21]line [08:14:21]line [08:14:21]written 0, free lines is 3328 [08:14:21]MH_Cut [08:14:21]Write to MH i2c: D1 01 00 09 69 01 44 [08:14:21]Write i2c OK [08:14:21]MH_I2C_Read... [08:14:21]Read from MH i2c: D1 [08:14:21]MH_I2C_Read... [08:14:21]Read from MH i2c: D1 01 00 [08:14:21]MH_I2C_Read... [08:14:21]Read from MH i2c: D1 01 00 09 69 00 43 [08:14:21]Write to MH i2c: 01 00 00 0A 69 73 [08:14:21]Write i2c OK [08:14:21]MH_I2C_Read... [08:14:21]OFD Sender: No OFD packet to send [08:14:22]*** Cut start [08:14:22]*** Partial cut [08:14:22]*** CUTSNS_PIN = 1 [08:14:22]*** CUTSNS_PIN = 0 [08:14:22]*** Brake cut motor [08:14:22]Read from MH i2c: 01 *** Stop cut motor [08:14:22] [08:14:22]*** Cut end [08:14:22]MH_I2C_Read... [08:14:22]Read from MH i2c: 01 07 00 [08:14:22]MH_I2C_Read... [08:14:22]Read from MH i2c: 01 07 00 0A 69 00 00 00 00 00 FF 0F 88 [08:14:22]process_action close_receipt done [08:14:22]requested_data is exist [08:14:22]produce_requested_data [08:14:22]requested_item fm.sn is exist - process it [08:14:22]wFMCommunicate request_size=4 [08:14:22]MH_SAM_APDU [08:14:22]CAPDU: 80 11 00 00 [08:14:22]Write to MH i2c: E2 08 00 0B 69 80 11 00 00 00 00 00 00 EE [08:14:22]Write i2c OK [08:14:22]MH_I2C_Read... [08:14:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:14:22]Read from MH i2c: E2 [08:14:22]MH_I2C_Read... [08:14:22]Read from MH i2c: E2 17 00 [08:14:22]MH_I2C_Read... [08:14:22]Read from MH i2c: E2 17 00 0B 69 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:14: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:14:22]wFMCommunicate OK [08:14:22]requested_item fd.num is exist - process it [08:14:22]SAM_PROTO_GetFieldsCounters [08:14:22]wFMCommunicate request_size=4 [08:14:22]MH_SAM_APDU [08:14:22]CAPDU: 80 13 00 00 [08:14:22]Write to MH i2c: E2 08 00 0C 69 80 13 00 00 00 00 00 00 F1 [08:14:22]Write i2c OK [08:14:22]MH_I2C_Read... [08:14:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:14:22]Read from MH i2c: E2 [08:14:22]MH_I2C_Read... [08:14:22]Read from MH i2c: E2 62 00 [08:14:22]MH_I2C_Read... [08:14:22]Read from MH i2c: E2 62 00 0C 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 76 00 00 0E 04 04 00 72 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 71 [08:14: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 24 76 00 00 0E 04 04 00 72 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:14:22]wFMCommunicate OK [08:14:22]SAM_PROTO_GetFieldsCounters done [08:14:22]requested_item shift.num is exist - process it [08:14:22]requested_item shift.opened is exist - process it [08:14:22]req_shift_opened [08:14:22]FM_GetShiftState [08:14:22]SAM_PROTO_GetShiftState [08:14:22]wFMCommunicate request_size=4 [08:14:22]MH_SAM_APDU [08:14:22]CAPDU: 80 13 01 00 [08:14:22]Write to MH i2c: E2 08 00 0D 69 80 13 01 00 00 00 00 00 F3 [08:14:22]Write i2c OK [08:14:22]MH_I2C_Read... [08:14:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:14:22]Read from MH i2c: E2 [08:14:22]MH_I2C_Read... [08:14:22]Read from MH i2c: E2 0E 00 [08:14:22]MH_I2C_Read... [08:14:22]Read from MH i2c: E2 0E 00 0D 69 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 D9 [08:14:22]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [08:14:22]wFMCommunicate OK [08:14:22]SAM_PROTO_GetShiftState done [08:14:22]FM_GetShiftState done [08:14:22]req_shift_opened done [08:14:22]requested_item shift.open_date is exist - process it [08:14:22]req_shift_open_date [08:14:22]req_shift_open_date done [08:14:22]produce_requested_data done [08:14:22]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30244,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [08:14:22]process_action_free close_receipt [08:14:22]json_value_free [08:14:22]json_value_free done [08:14:22]process_json_proto returns [08:14:22]Send response to host [08:14:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30244,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [08:14:22]free response buf [08:14:22]execute_script done [08:14:22]execute_script returns [08:14:22]free content buf [08:14:22]Sock 9.Close socket [08:14:22]Sock 9.Thread stoped [08:14:26]OFD Sender: No OFD packet to send [08:14:31]OFD Sender: No OFD packet to send [08:14:36]OFD Sender: No OFD packet to send [08:14:41]OFD Sender: No OFD packet to send [08:14:46]OFD Sender: No OFD packet to send [08:14:51]OFD Sender: No OFD packet to send [08:14:56]OFD Sender: No OFD packet to send [08:15:01]OFD Sender: No OFD packet to send [08:15:06]OFD Sender: No OFD packet to send [08:15:11]OFD Sender: No OFD packet to send [08:15:16]OFD Sender: No OFD packet to send [08:15:21]OFD Sender: No OFD packet to send [08:15:26]OFD Sender: No OFD packet to send [08:15:30]accept exits with 7 [08:15:30]New connection [08:15:30]New thread 3067370852 created [08:15:30]Thread 3067514212 joined [08:15:30]Waiting for new connection... [08:15:30] Sock 7.Parse request [08:15:30]Sock 7.Check first char [08:15:30]Sock 7.First char is OK [08:15:30]request: POST /json_proto HTTP/1.0 [08:15:30]Method: POST [08:15:30]URL: /json_proto [08:15:30]Method is POST - this is cgi request [08:15:30]url: /json_proto [08:15:30]query_string will be loaded in cgi processing [08:15:30]execute_cgi json_proto POST (null) [08:15:30]execute_cgi path=json_proto method=POST [08:15:30]POST find Content-Length [08:15:30]Host: 172.17.51.3:8080 [08:15:30]Content-Length: 679 [08:15:30]Content-Type: application/json [08:15:30] [08:15:30]POST finish read [08:15:30]Found Content-Length = 679 [08:15:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342634", "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" ] } } [08:15:30]execute_script... [08:15: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)342634", "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" ] } } [08:15:30]POST & json_proto [08:15:30]process_json_proto [08:15:30]json parsed OK: [08:15:30]protocol is kg_v1.0 [08:15:30]action value=close_receipt [08:15:30]process_action close_receipt [08:15:30]cmd_close_receipt [08:15:30]MH_GetDate [08:15:30]Write to MH i2c: F0 00 00 0E 69 66 [08:15:30]Write i2c OK [08:15:30]MH_I2C_Read... [08:15:30]Read from MH i2c: F0 [08:15:30]MH_I2C_Read... [08:15:30]Read from MH i2c: F0 09 00 [08:15:30]MH_I2C_Read... [08:15:30]Read from MH i2c: F0 09 00 0E 69 00 2B BC 14 67 04 C1 95 66 91 [08:15:30]GetLastDocTimeStamp 1729412067 [08:15:30]current date 1729412139 [08:15:30]FM_GetShiftState [08:15:30]SAM_PROTO_GetShiftState [08:15:30]wFMCommunicate request_size=4 [08:15:30]MH_SAM_APDU [08:15:30]CAPDU: 80 13 01 00 [08:15:30]Write to MH i2c: E2 08 00 0F 69 80 13 01 00 00 00 00 00 F5 [08:15:30]Write i2c OK [08:15:30]MH_I2C_Read... [08:15:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:15:30]Read from MH i2c: E2 [08:15:30]MH_I2C_Read... [08:15:30]Read from MH i2c: E2 0E 00 [08:15:30]MH_I2C_Read... [08:15:30]Read from MH i2c: E2 0E 00 0F 69 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 DB [08:15:30]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [08:15:30]wFMCommunicate OK [08:15:30]SAM_PROTO_GetShiftState done [08:15:30]FM_GetShiftState done [08:15:30]opened in 1729384718 [08:15:30]opened+sec_in_day 1729471118 [08:15:30]quantity*price = 100050 [08:15:30]sum+1 = 100052 [08:15: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 СНО: Общий режим Чек 27 20.10.2024 08:15 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30245 ФПД: 128567420930786 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T081539&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30245&fm=128567420930786&tin=02508201610067®Number=0000000000186857&sum=100000 [08:15:32]StoreToDocumentArchive [08:15:32]shift 114 fd 30245 [08:15:32]save to /storage/0114/doc_00030245 [08:15:32]save last doc name /storage/0114/doc_00030245 to /storage/kkm_last_doc_name [08:15:32]save OK [08:15:32]Clear old archive folders... [08:15:32]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:15:32]tlvbuf is 00B16830 [08:15:32]SAM_PROTO_ClearQueue [08:15:32]wFMCommunicate request_size=4 [08:15:32]MH_SAM_APDU [08:15:32]CAPDU: 80 09 00 00 [08:15:32]Write to MH i2c: E2 08 00 1C 69 80 09 00 00 00 00 00 00 F7 [08:15:32]Write i2c OK [08:15:32]MH_I2C_Read... [08:15:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:15:32]Read from MH i2c: E2 [08:15:32]MH_I2C_Read... [08:15:32]Read from MH i2c: E2 03 00 [08:15:32]MH_I2C_Read... [08:15:32]Read from MH i2c: E2 03 00 1C 69 00 90 00 F9 [08:15:32]RAPDU: 90 00 [08:15:32]wFMCommunicate OK [08:15:32]SAM_PROTO_ClearQueue done [08:15:32]KKMCreateOFDPacket [08:15:32]OFDProtocolAddRootSTLVToBuf [08:15:32]FM_MakeSignedData [08:15:32]FM_MakeSignedData [08:15:32]SAM_PROTO_SignData [08:15:32]wFMCommunicate request_size=4 [08:15:32]MH_SAM_APDU [08:15:32]CAPDU: 80 0D 01 02 [08:15:32]Write to MH i2c: E2 08 00 1D 69 80 0D 01 02 00 00 00 00 FF [08:15:32]Write i2c OK [08:15:32]MH_I2C_Read... [08:15:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:15:32]Read from MH i2c: E2 [08:15:32]MH_I2C_Read... [08:15:32]Read from MH i2c: E2 03 00 [08:15:32]MH_I2C_Read... [08:15:32]Read from MH i2c: E2 03 00 1D 69 00 90 00 FA [08:15:32]RAPDU: 90 00 [08:15:32]wFMCommunicate OK [08:15:32]wFMCommunicate request_size=255 [08:15:32]MH_SAM_APDU [08:15:32]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 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 1B 00 00 00 F4 03 04 00 2B BC 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 74 EE 6F 74 [08:15:32]Write to MH i2c: E2 02 01 1E 69 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 1B 00 00 00 F4 03 04 00 2B BC 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 74 EE 6F 74 00 00 55 [08:15:32]Write i2c OK [08:15:32]MH_I2C_Read... [08:15:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:15:32]Read from MH i2c: E2 [08:15:32]MH_I2C_Read... [08:15:32]Read from MH i2c: E2 03 00 [08:15:32]MH_I2C_Read... [08:15:32]Read from MH i2c: E2 03 00 1E 69 00 90 00 FB [08:15:32]RAPDU: 90 00 [08:15:32]wFMCommunicate OK [08:15:32]wFMCommunicate request_size=7 [08:15:32]MH_SAM_APDU [08:15:32]CAPDU: 80 0D 02 02 02 4A E2 [08:15:32]Write to MH i2c: E2 0A 00 1F 69 80 0D 02 02 02 00 4A E2 00 00 32 [08:15:32]Write i2c OK [08:15:32]MH_I2C_Read... [08:15:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:15:32]Read from MH i2c: E2 [08:15:32]MH_I2C_Read... [08:15:32]Read from MH i2c: E2 03 00 [08:15:32]MH_I2C_Read... [08:15:32]Read from MH i2c: E2 03 00 1F 69 00 90 00 FC [08:15:32]RAPDU: 90 00 [08:15:32]wFMCommunicate OK [08:15:32]wFMCommunicate request_size=4 [08:15:32]MH_SAM_APDU [08:15:32]CAPDU: 80 0D 03 02 [08:15:32]Write to MH i2c: E2 08 00 20 69 80 0D 03 02 00 00 00 00 04 [08:15:32]Write i2c OK [08:15:32]MH_I2C_Read... [08:15:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:15:32]Read from MH i2c: E2 [08:15:32]MH_I2C_Read... [08:15:32]Read from MH i2c: E2 0B 00 [08:15:32]MH_I2C_Read... [08:15:32]Read from MH i2c: E2 0B 00 20 69 00 67 69 BE 1C 85 78 AF E5 90 00 40 [08:15:32]RAPDU: 67 69 BE 1C 85 78 AF E5 90 00 [08:15:32]wFMCommunicate OK [08:15:32]SAM_PROTO_SignData done [08:15:32]FM_MakeSignedData done [08:15:32]CreateOFDProtocolMessage [08:15:32]wFMCommunicate request_size=4 [08:15:32]MH_SAM_APDU [08:15:32]CAPDU: 80 11 00 00 [08:15:32]Write to MH i2c: E2 08 00 21 69 80 11 00 00 00 00 00 00 04 [08:15:32]Write i2c OK [08:15:32]MH_I2C_Read... [08:15:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:15:32]Read from MH i2c: E2 [08:15:32]MH_I2C_Read... [08:15:32]Read from MH i2c: E2 17 00 [08:15:32]MH_I2C_Read... [08:15:32]Read from MH i2c: E2 17 00 21 69 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:15:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [08:15:32]wFMCommunicate OK [08:15:32]CreateOFDProtocolMessage done [08:15:32]OFDSenderStorePacket 30245 [08:15:32]StoreOFDPacket docnum=30245 [08:15: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 0C 01 00 00 17 77 04 01 3D CC 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 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 1B 00 00 00 F4 03 04 00 2B BC 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 74 EE 6F 74 4A E2 67 69 BE 1C 85 78 AF E5 [08:15:32]CheckFolder [08:15:32]dirname=/storage/ofd_packets [08:15:32]CheckFolder done [08:15:32]ProducePacketName [08:15:32]name=ofd_packets/00030245 [08:15:32]NVStorageSaveData ofd_packets/00030245 [08:15:32]File name is /storage/ofd_packets/00030245 [08:15:32]Write 298 bytes [08:15:32]NVStorageSaveData done [08:15:32]OFDSenderStorePacket done [08:15:32]KKMCreateOFDPacket done [08:15:32]NVStorageSaveData kkm_last_timestamp [08:15:32]File name is /storage/kkm_last_timestamp [08:15:32]Write 4 bytes [08:15:32]NVStorageSaveData done [08:15:32]ExternCall_PrintAddStr [08:15:32]wPrintStart [08:15:32]Write to MH i2c: 01 00 00 22 69 8B [08:15:32]Write i2c OK [08:15:32]MH_I2C_Read... [08:15:32]Read from MH i2c: 01 [08:15:32]MH_I2C_Read... [08:15:32]Read from MH i2c: 01 07 00 [08:15:32]MH_I2C_Read... [08:15:32]Read from MH i2c: 01 07 00 22 69 00 00 00 00 00 FF 0F A0 [08:15:32]RasterBufferAndPrint [08:15:32]line Счет N : (1)342634 [08:15:32]line ИНН: 02508201610067 [08:15:32]line Контрольно-Кассовый Чек [08:15:32]line ПРОДАЖА [08:15:32]line ТРК (МРК, ГНК) : 64 [08:15:32]line Товар: 2710194210 [08:15:32]line ДТ-К-2 [08:15:32]line 13.130 * 76.20 [08:15:32]line = 1000.51 [08:15:32]line НДС 12% НСП 1% [08:15:32]line > о реализуемом товаре [08:15:32]line ОКРУГЛЕНИЕ: -0.51 [08:15:32]line ИТОГО: 1000.00 [08:15:32]line Внесено: 1000.00 [08:15:32]line СДАЧА: 0.00 [08:15:32]line НСП 1% : 8.85 [08:15:32]line НДС 12% : 106.25 [08:15:32]line Наличными: 1000.00 [08:15:32]line Безнал.: 0.00 [08:15:32]line Место: АЗС № 78 "Партнер Нефть" [08:15:32]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [08:15:32]line СНО: Общий режим [08:15:32]line Чек 27 20.10.2024 08:15 [08:15:32]line Смена: 114 ФФД: 1.0 [08:15:32]line ЗНМ: 0300000137 [08:15:32]line РНМ: 0000000000186857 [08:15:32]line Версия ККМ: v1.0 [08:15:32]line ФМ: 0000000002094219 [08:15:32]line ФД: 30245 [08:15:32]line ФПД: 128567420930786 [08:15:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T081539&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30245&fm=128567420930786&tin=02508201610067®Number=0000000000186857&sum=100000 [08:15:32]OFD Sender: Processing packet 30245 [packets to send 10, broken 9] [08:15:32]ProducePacketName [08:15:32]name=ofd_packets/00030245 [08:15:32]OFD Sender: To server: pG, [08:15:32]CommunicateWithHost lk.salyk.kg:30040 [08:15:32]ConnectInit lk.salyk.kg [08:15:32]written 0, free lines is 4095 [08:15:33]Connected sock=10 [08:15: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 0C 01 00 00 17 77 04 01 3D CC 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 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 1B 00 00 00 F4 03 04 00 2B BC 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 74 EE 6F 74 4A E2 67 69 BE 1C 85 78 AF E5 [08:15: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 D2 63 47 00 B0 62 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 25 76 00 00 F4 03 04 00 AF 66 14 67 B6 04 01 00 00 60 B0 87 4F 48 2B C0 92 [08:15:33]CommunicateWithHost err = 0 [08:15:33]CheckOFDResponse [08:15:33]1017 (14) - 77093643461234 [08:15:33]1041 (16) - 0000000002094219 [08:15:33]1040 (4) - 30245 [08:15:33]1012 (4) - 20.10.2024 02:10 [08:15:33]1206 (1) - 0 [08:15:33]OFD Sender: Remove packet 30245 [08:15:33]ProducePacketName [08:15:33]name=ofd_packets/00030245 [08:15:33]NVStorageDeleteData [08:15:33]Write to MH i2c: 01 00 00 4D 69 B6 [08:15:33]Write i2c OK [08:15:33]MH_I2C_Read... [08:15:33]Read from MH i2c: 01 [08:15:33]MH_I2C_Read... [08:15:33]Read from MH i2c: 01 07 00 [08:15:33]MH_I2C_Read... [08:15:33]Read from MH i2c: 01 07 00 4D 69 00 00 00 00 00 EE 0C B7 [08:15:33]RasterBufferAndPrint [08:15:33]line [08:15:33]line [08:15:33]line [08:15:33]line [08:15:33]line [08:15:33]written 0, free lines is 3316 [08:15:33]MH_Cut [08:15:33]Write to MH i2c: D1 01 00 54 69 01 8F [08:15:33]Write i2c OK [08:15:33]MH_I2C_Read... [08:15:33]Read from MH i2c: D1 [08:15:33]MH_I2C_Read... [08:15:33]Read from MH i2c: D1 01 00 [08:15:33]MH_I2C_Read... [08:15:33]Read from MH i2c: D1 01 00 54 69 00 8E [08:15:33]Write to MH i2c: 01 00 00 55 69 BE [08:15:33]Write i2c OK [08:15:33]MH_I2C_Read... [08:15:33]OFD Sender: No OFD packet to send [08:15:34]*** Cut start [08:15:34]*** Partial cut [08:15:34]*** CUTSNS_PIN = 1 [08:15:34]*** CUTSNS_PIN = 0 [08:15:34]*** Brake cut motor [08:15:34]Read from MH i2c: 01 [08:15:34]MH_I2C_Read... [08:15:34]*** Stop cut motor [08:15:34]*** Cut end [08:15:34]Read from MH i2c: 01 07 00 [08:15:34]MH_I2C_Read... [08:15:34]Read from MH i2c: 01 07 00 55 69 00 00 00 00 00 FF 0F D3 [08:15:34]process_action close_receipt done [08:15:34]requested_data is exist [08:15:34]produce_requested_data [08:15:34]requested_item fm.sn is exist - process it [08:15:34]wFMCommunicate request_size=4 [08:15:34]MH_SAM_APDU [08:15:34]CAPDU: 80 11 00 00 [08:15:34]Write to MH i2c: E2 08 00 56 69 80 11 00 00 00 00 00 00 39 [08:15:34]Write i2c OK [08:15:34]MH_I2C_Read... [08:15:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:15:34]Read from MH i2c: E2 [08:15:34]MH_I2C_Read... [08:15:34]Read from MH i2c: E2 17 00 [08:15:34]MH_I2C_Read... [08:15:34]Read from MH i2c: E2 17 00 56 69 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:15:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [08:15:34]wFMCommunicate OK [08:15:34]requested_item fd.num is exist - process it [08:15:34]SAM_PROTO_GetFieldsCounters [08:15:34]wFMCommunicate request_size=4 [08:15:34]MH_SAM_APDU [08:15:34]CAPDU: 80 13 00 00 [08:15:34]Write to MH i2c: E2 08 00 57 69 80 13 00 00 00 00 00 00 3C [08:15:34]Write i2c OK [08:15:34]MH_I2C_Read... [08:15:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:15:34]Read from MH i2c: E2 [08:15:34]MH_I2C_Read... [08:15:34]Read from MH i2c: E2 62 00 [08:15:34]MH_I2C_Read... [08:15:34]Read from MH i2c: E2 62 00 57 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 76 00 00 0E 04 04 00 72 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:15: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 25 76 00 00 0E 04 04 00 72 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:15:34]wFMCommunicate OK [08:15:34]SAM_PROTO_GetFieldsCounters done [08:15:34]requested_item shift.num is exist - process it [08:15:34]requested_item shift.opened is exist - process it [08:15:34]req_shift_opened [08:15:34]FM_GetShiftState [08:15:34]SAM_PROTO_GetShiftState [08:15:34]wFMCommunicate request_size=4 [08:15:34]MH_SAM_APDU [08:15:34]CAPDU: 80 13 01 00 [08:15:34]Write to MH i2c: E2 08 00 58 69 80 13 01 00 00 00 00 00 3E [08:15:34]Write i2c OK [08:15:34]MH_I2C_Read... [08:15:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:15:34]Read from MH i2c: E2 [08:15:34]MH_I2C_Read... [08:15:34]Read from MH i2c: E2 0E 00 [08:15:34]MH_I2C_Read... [08:15:34]Read from MH i2c: E2 0E 00 58 69 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 24 [08:15:34]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [08:15:34]wFMCommunicate OK [08:15:34]SAM_PROTO_GetShiftState done [08:15:34]FM_GetShiftState done [08:15:34]req_shift_opened done [08:15:34]requested_item shift.open_date is exist - process it [08:15:34]req_shift_open_date [08:15:34]req_shift_open_date done [08:15:34]produce_requested_data done [08:15:34]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30245,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [08:15:34]process_action_free close_receipt [08:15:34]json_value_free [08:15:34]json_value_free done [08:15:34]process_json_proto returns [08:15:34]Send response to host [08:15:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30245,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [08:15:34]free response buf [08:15:34]execute_script done [08:15:34]execute_script returns [08:15:34]free content buf [08:15:34]Sock 7.Close socket [08:15:34]Sock 7.Thread stoped [08:15:38]OFD Sender: No OFD packet to send [08:15:43]OFD Sender: No OFD packet to send [08:15:48]OFD Sender: No OFD packet to send [08:15:53]OFD Sender: No OFD packet to send [08:15:58]OFD Sender: No OFD packet to send [08:16:03]OFD Sender: No OFD packet to send [08:16:08]OFD Sender: No OFD packet to send [08:16:13]OFD Sender: No OFD packet to send [08:16:18]OFD Sender: No OFD packet to send [08:16:23]OFD Sender: No OFD packet to send [08:16:28]OFD Sender: No OFD packet to send [08:16:33]OFD Sender: No OFD packet to send [08:16:38]OFD Sender: No OFD packet to send [08:16:43]OFD Sender: No OFD packet to send [08:16:48]OFD Sender: No OFD packet to send [08:16:53]OFD Sender: No OFD packet to send [08:16:58]OFD Sender: No OFD packet to send [08:17:03]OFD Sender: No OFD packet to send [08:17:08]OFD Sender: No OFD packet to send [08:17:13]OFD Sender: No OFD packet to send [08:17:18]OFD Sender: No OFD packet to send [08:17:23]OFD Sender: No OFD packet to send [08:17:28]OFD Sender: No OFD packet to send [08:17:33]OFD Sender: No OFD packet to send [08:17:38]OFD Sender: No OFD packet to send [08:17:43]OFD Sender: No OFD packet to send [08:17:48]OFD Sender: No OFD packet to send [08:17:53]OFD Sender: No OFD packet to send [08:17:58]OFD Sender: No OFD packet to send [08:18:03]OFD Sender: No OFD packet to send [08:18:08]OFD Sender: No OFD packet to send [08:18:13]OFD Sender: No OFD packet to send [08:18:18]OFD Sender: No OFD packet to send [08:18:23]OFD Sender: No OFD packet to send [08:18:28]OFD Sender: No OFD packet to send [08:18:33]OFD Sender: No OFD packet to send [08:18:38]OFD Sender: No OFD packet to send [08:18:43]OFD Sender: No OFD packet to send [08:18:48]OFD Sender: No OFD packet to send [08:18:53]OFD Sender: No OFD packet to send [08:18:58]OFD Sender: No OFD packet to send [08:19:03]OFD Sender: No OFD packet to send [08:19:08]OFD Sender: No OFD packet to send [08:19:13]OFD Sender: No OFD packet to send [08:19:18]OFD Sender: No OFD packet to send [08:19:23]OFD Sender: No OFD packet to send [08:19:28]OFD Sender: No OFD packet to send [08:19:33]OFD Sender: No OFD packet to send [08:19:38]OFD Sender: No OFD packet to send [08:19:43]OFD Sender: No OFD packet to send [08:19:48]OFD Sender: No OFD packet to send [08:19:53]OFD Sender: No OFD packet to send [08:19:58]OFD Sender: No OFD packet to send [08:20:03]OFD Sender: No OFD packet to send [08:20:09]OFD Sender: No OFD packet to send [08:20:14]OFD Sender: No OFD packet to send [08:20:19]OFD Sender: No OFD packet to send [08:20:24]OFD Sender: No OFD packet to send [08:20:29]OFD Sender: No OFD packet to send [08:20:34]OFD Sender: No OFD packet to send [08:20:39]OFD Sender: No OFD packet to send [08:20:44]OFD Sender: No OFD packet to send [08:20:49]OFD Sender: No OFD packet to send [08:20:49]accept exits with 9 [08:20:49]New connection [08:20:49]New thread 3067514212 created [08:20:49]Thread 3067370852 joined [08:20:49]Waiting for new connection... [08:20:49] Sock 9.Parse request [08:20:49]Sock 9.Check first char [08:20:49]Sock 9.First char is OK [08:20:49]request: POST /json_proto HTTP/1.0 [08:20:49]Method: POST [08:20:49]URL: /json_proto [08:20:49]Method is POST - this is cgi request [08:20:49]url: /json_proto [08:20:49]query_string will be loaded in cgi processing [08:20:49]execute_cgi json_proto POST (null) [08:20:49]execute_cgi path=json_proto method=POST [08:20:49]POST find Content-Length [08:20:49]Host: 172.17.51.3:8080 [08:20:49]Content-Length: 674 [08:20:49]Content-Type: application/json [08:20:49] [08:20:49]POST finish read [08:20:49]Found Content-Length = 674 [08:20:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342636", "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" : 3.940, "sum" : 300.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:20:49]execute_script... [08:20: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)342636", "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" : 3.940, "sum" : 300.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:20:49]POST & json_proto [08:20:49]process_json_proto [08:20:49]json parsed OK: [08:20:49]protocol is kg_v1.0 [08:20:49]action value=close_receipt [08:20:49]process_action close_receipt [08:20:49]cmd_close_receipt [08:20:49]MH_GetDate [08:20:49]Write to MH i2c: F0 00 00 59 69 B1 [08:20:49]Write i2c OK [08:20:49]MH_I2C_Read... [08:20:49]Read from MH i2c: F0 [08:20:49]MH_I2C_Read... [08:20:49]Read from MH i2c: F0 09 00 [08:20:49]MH_I2C_Read... [08:20:49]Read from MH i2c: F0 09 00 59 69 00 6A BD 14 67 04 C1 95 66 1C [08:20:49]GetLastDocTimeStamp 1729412139 [08:20:49]current date 1729412458 [08:20:49]FM_GetShiftState [08:20:49]SAM_PROTO_GetShiftState [08:20:49]wFMCommunicate request_size=4 [08:20:49]MH_SAM_APDU [08:20:49]CAPDU: 80 13 01 00 [08:20:49]Write to MH i2c: E2 08 00 5A 69 80 13 01 00 00 00 00 00 40 [08:20:49]Write i2c OK [08:20:49]MH_I2C_Read... [08:20:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:20:49]Read from MH i2c: E2 [08:20:49]MH_I2C_Read... [08:20:49]Read from MH i2c: E2 0E 00 [08:20:49]MH_I2C_Read... [08:20:49]Read from MH i2c: E2 0E 00 5A 69 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 26 [08:20:49]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [08:20:49]wFMCommunicate OK [08:20:49]SAM_PROTO_GetShiftState done [08:20:49]FM_GetShiftState done [08:20:49]opened in 1729384718 [08:20:49]opened+sec_in_day 1729471118 [08:20:49]quantity*price = 30022 [08:20:49]sum+1 = 30024 [08:20:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.23 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.88 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 28 20.10.2024 08:20 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30246 ФПД: 271541810755377 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T082058&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30246&fm=271541810755377&tin=02508201610067®Number=0000000000186857&sum=30000 [08:20:51]StoreToDocumentArchive [08:20:51]shift 114 fd 30246 [08:20:51]save to /storage/0114/doc_00030246 [08:20:51]save last doc name /storage/0114/doc_00030246 to /storage/kkm_last_doc_name [08:20:51]save OK [08:20:51]Clear old archive folders... [08:20:51]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:20:51]tlvbuf is 00BDBCC0 [08:20:51]SAM_PROTO_ClearQueue [08:20:51]wFMCommunicate request_size=4 [08:20:51]MH_SAM_APDU [08:20:51]CAPDU: 80 09 00 00 [08:20:51]Write to MH i2c: E2 08 00 67 69 80 09 00 00 00 00 00 00 42 [08:20:51]Write i2c OK [08:20:51]MH_I2C_Read... [08:20:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:20:51]Read from MH i2c: E2 [08:20:51]MH_I2C_Read... [08:20:51]Read from MH i2c: E2 03 00 [08:20:51]MH_I2C_Read... [08:20:51]Read from MH i2c: E2 03 00 67 69 00 90 00 44 [08:20:51]RAPDU: 90 00 [08:20:51]wFMCommunicate OK [08:20:51]SAM_PROTO_ClearQueue done [08:20:51]KKMCreateOFDPacket [08:20:51]OFDProtocolAddRootSTLVToBuf [08:20:51]FM_MakeSignedData [08:20:51]FM_MakeSignedData [08:20:51]SAM_PROTO_SignData [08:20:51]wFMCommunicate request_size=4 [08:20:51]MH_SAM_APDU [08:20:51]CAPDU: 80 0D 01 02 [08:20:51]Write to MH i2c: E2 08 00 68 69 80 0D 01 02 00 00 00 00 4A [08:20:51]Write i2c OK [08:20:51]MH_I2C_Read... [08:20:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:20:51]Read from MH i2c: E2 [08:20:51]MH_I2C_Read... [08:20:51]Read from MH i2c: E2 03 00 [08:20:51]MH_I2C_Read... [08:20:51]Read from MH i2c: E2 03 00 68 69 00 90 00 45 [08:20:51]RAPDU: 90 00 [08:20:51]wFMCommunicate OK [08:20:51]wFMCommunicate request_size=255 [08:20:51]MH_SAM_APDU [08:20:51]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 64 0F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 47 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 6A BD 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 F6 F7 41 2B [08:20:51]Write to MH i2c: E2 02 01 69 69 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 64 0F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 47 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 6A BD 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 F6 F7 41 2B 00 00 B3 [08:20:51]Write i2c OK [08:20:51]MH_I2C_Read... [08:20:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:20:51]Read from MH i2c: E2 [08:20:51]MH_I2C_Read... [08:20:51]Read from MH i2c: E2 03 00 [08:20:51]MH_I2C_Read... [08:20:51]Read from MH i2c: E2 03 00 69 69 00 90 00 46 [08:20:51]RAPDU: 90 00 [08:20:51]wFMCommunicate OK [08:20:51]wFMCommunicate request_size=7 [08:20:51]MH_SAM_APDU [08:20:51]CAPDU: 80 0D 02 02 02 F7 31 [08:20:51]Write to MH i2c: E2 0A 00 6A 69 80 0D 02 02 02 00 F7 31 00 00 79 [08:20:51]Write i2c OK [08:20:51]MH_I2C_Read... [08:20:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:20:51]Read from MH i2c: E2 [08:20:51]MH_I2C_Read... [08:20:51]Read from MH i2c: E2 03 00 [08:20:51]MH_I2C_Read... [08:20:51]Read from MH i2c: E2 03 00 6A 69 00 90 00 47 [08:20:51]RAPDU: 90 00 [08:20:51]wFMCommunicate OK [08:20:51]wFMCommunicate request_size=4 [08:20:51]MH_SAM_APDU [08:20:51]CAPDU: 80 0D 03 02 [08:20:51]Write to MH i2c: E2 08 00 6B 69 80 0D 03 02 00 00 00 00 4F [08:20:51]Write i2c OK [08:20:51]MH_I2C_Read... [08:20:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:20:51]Read from MH i2c: E2 [08:20:51]MH_I2C_Read... [08:20:51]Read from MH i2c: E2 0B 00 [08:20:51]MH_I2C_Read... [08:20:51]Read from MH i2c: E2 0B 00 6B 69 00 81 F2 72 91 9C 13 BD F1 90 00 23 [08:20:51]RAPDU: 81 F2 72 91 9C 13 BD F1 90 00 [08:20:51]wFMCommunicate OK [08:20:51]SAM_PROTO_SignData done [08:20:51]FM_MakeSignedData done [08:20:51]CreateOFDProtocolMessage [08:20:51]wFMCommunicate request_size=4 [08:20:51]MH_SAM_APDU [08:20:51]CAPDU: 80 11 00 00 [08:20:51]Write to MH i2c: E2 08 00 6C 69 80 11 00 00 00 00 00 00 4F [08:20:51]Write i2c OK [08:20:51]MH_I2C_Read... [08:20:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:20:51]Read from MH i2c: E2 [08:20:51]MH_I2C_Read... [08:20:51]Read from MH i2c: E2 17 00 [08:20:51]MH_I2C_Read... [08:20:51]Read from MH i2c: E2 17 00 6C 69 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:20:51]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:51]wFMCommunicate OK [08:20:51]CreateOFDProtocolMessage done [08:20:51]OFDSenderStorePacket 30246 [08:20:51]StoreOFDPacket docnum=30246 [08:20: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 0C 01 00 00 8E 3C 04 01 E8 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 64 0F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 47 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 6A BD 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 F6 F7 41 2B F7 31 81 F2 72 91 9C 13 BD F1 [08:20:51]CheckFolder [08:20:51]dirname=/storage/ofd_packets [08:20:51]CheckFolder done [08:20:51]ProducePacketName [08:20:51]name=ofd_packets/00030246 [08:20:51]NVStorageSaveData ofd_packets/00030246 [08:20:51]File name is /storage/ofd_packets/00030246 [08:20:51]Write 298 bytes [08:20:51]NVStorageSaveData done [08:20:51]OFDSenderStorePacket done [08:20:51]KKMCreateOFDPacket done [08:20:51]NVStorageSaveData kkm_last_timestamp [08:20:51]File name is /storage/kkm_last_timestamp [08:20:51]Write 4 bytes [08:20:51]NVStorageSaveData done [08:20:51]ExternCall_PrintAddStr [08:20:51]wPrintStart [08:20:51]Write to MH i2c: 01 00 00 6D 69 D6 [08:20:51]Write i2c OK [08:20:51]MH_I2C_Read... [08:20:51]Read from MH i2c: 01 [08:20:51]MH_I2C_Read... [08:20:51]Read from MH i2c: 01 07 00 [08:20:51]MH_I2C_Read... [08:20:51]Read from MH i2c: 01 07 00 6D 69 00 00 00 00 00 FF 0F EB [08:20:51]RasterBufferAndPrint [08:20:51]line Счет N : (1)342636 [08:20:51]line ИНН: 02508201610067 [08:20:51]line Контрольно-Кассовый Чек [08:20:51]line ПРОДАЖА [08:20:51]line ТРК (МРК, ГНК) : 64 [08:20:51]line Товар: 2710194210 [08:20:51]line ДТ-К-2 [08:20:51]line 3.940 * 76.20 [08:20:51]line = 300.23 [08:20:51]line НДС 12% НСП 1% [08:20:51]line > о реализуемом товаре [08:20:51]line ОКРУГЛЕНИЕ: -0.23 [08:20:51]line ИТОГО: 300.00 [08:20:51]line Внесено: 300.00 [08:20:51]line СДАЧА: 0.00 [08:20:51]line НСП 1% : 2.66 [08:20:51]line НДС 12% : 31.88 [08:20:51]line Наличными: 300.00 [08:20:51]line Безнал.: 0.00 [08:20:51]line Место: АЗС № 78 "Партнер Нефть" [08:20:51]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [08:20:51]line СНО: Общий режим [08:20:51]line Чек 28 20.10.2024 08:20 [08:20:51]line Смена: 114 ФФД: 1.0 [08:20:51]line ЗНМ: 0300000137 [08:20:51]line РНМ: 0000000000186857 [08:20:51]line Версия ККМ: v1.0 [08:20:51]line ФМ: 0000000002094219 [08:20:51]line ФД: 30246 [08:20:51]line ФПД: 271541810755377 [08:20:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T082058&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30246&fm=271541810755377&tin=02508201610067®Number=0000000000186857&sum=30000 [08:20:51]OFD Sender: Processing packet 30246 [packets to send 10, broken 9] [08:20:51]ProducePacketName [08:20:51]name=ofd_packets/00030246 [08:20:51]OFD Sender: To server: pG, [08:20:51]CommunicateWithHost lk.salyk.kg:30040 [08:20:51]ConnectInit lk.salyk.kg [08:20:51]written 0, free lines is 4095 [08:20:52]Connected sock=10 [08:20: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 0C 01 00 00 8E 3C 04 01 E8 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 64 0F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 47 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 6A BD 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 F6 F7 41 2B F7 31 81 F2 72 91 9C 13 BD F1 [08:20: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 F7 C4 47 00 43 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 26 76 00 00 F4 03 04 00 EE 67 14 67 B6 04 01 00 00 87 D6 58 F3 CC 27 5B 74 [08:20:52]CommunicateWithHost err = 0 [08:20:52]CheckOFDResponse [08:20:52]1017 (14) - 77093643461234 [08:20:52]1041 (16) - 0000000002094219 [08:20:52]1040 (4) - 30246 [08:20:52]1012 (4) - 20.10.2024 02:16 [08:20:52]1206 (1) - 0 [08:20:52]OFD Sender: Remove packet 30246 [08:20:52]ProducePacketName [08:20:52]name=ofd_packets/00030246 [08:20:52]NVStorageDeleteData [08:20:52]Write to MH i2c: 01 00 00 98 69 01 [08:20:52]Write i2c OK [08:20:52]MH_I2C_Read... [08:20:52]Read from MH i2c: 01 [08:20:52]MH_I2C_Read... [08:20:52]Read from MH i2c: 01 07 00 [08:20:52]MH_I2C_Read... [08:20:52]Read from MH i2c: 01 07 00 98 69 00 00 00 00 00 F3 0C 07 [08:20:52]RasterBufferAndPrint [08:20:52]line [08:20:52]line [08:20:52]line [08:20:52]line [08:20:52]line [08:20:52]written 0, free lines is 3321 [08:20:52]MH_Cut [08:20:52]Write to MH i2c: D1 01 00 9F 69 01 DA [08:20:52]Write i2c OK [08:20:52]MH_I2C_Read... [08:20:52]Read from MH i2c: D1 [08:20:52]MH_I2C_Read... [08:20:52]Read from MH i2c: D1 01 00 [08:20:52]MH_I2C_Read... [08:20:52]Read from MH i2c: D1 01 00 9F 69 00 D9 [08:20:52]Write to MH i2c: 01 00 00 A0 69 09 [08:20:52]Write i2c OK [08:20:52]MH_I2C_Read... [08:20:52]OFD Sender: No OFD packet to send [08:20:53]*** Cut start [08:20:53]*** Partial cut [08:20:53]*** CUTSNS_PIN = 1 [08:20:53]*** CUTSNS_PIN = 0 [08:20:53]*** Brake cut motor [08:20:53]Read from MH i2c: 01 [08:20:53]MH_I2C_Read... [08:20:53]*** Stop cut motor [08:20:53]*** Cut end [08:20:53]Read from MH i2c: 01 07 00 [08:20:53]MH_I2C_Read... [08:20:53]Read from MH i2c: 01 07 00 A0 69 00 00 00 00 00 FF 0F 1E [08:20:53]process_action close_receipt done [08:20:53]requested_data is exist [08:20:53]produce_requested_data [08:20:53]requested_item fm.sn is exist - process it [08:20:53]wFMCommunicate request_size=4 [08:20:53]MH_SAM_APDU [08:20:53]CAPDU: 80 11 00 00 [08:20:53]Write to MH i2c: E2 08 00 A1 69 80 11 00 00 00 00 00 00 84 [08:20:53]Write i2c OK [08:20:53]MH_I2C_Read... [08:20:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:20:53]Read from MH i2c: E2 [08:20:53]MH_I2C_Read... [08:20:53]Read from MH i2c: E2 17 00 [08:20:53]MH_I2C_Read... [08:20:53]Read from MH i2c: E2 17 00 A1 69 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:20:53]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:53]wFMCommunicate OK [08:20:53]requested_item fd.num is exist - process it [08:20:53]SAM_PROTO_GetFieldsCounters [08:20:53]wFMCommunicate request_size=4 [08:20:53]MH_SAM_APDU [08:20:53]CAPDU: 80 13 00 00 [08:20:53]Write to MH i2c: E2 08 00 A2 69 80 13 00 00 00 00 00 00 87 [08:20:53]Write i2c OK [08:20:53]MH_I2C_Read... [08:20:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:20:53]Read from MH i2c: E2 [08:20:53]MH_I2C_Read... [08:20:53]Read from MH i2c: E2 62 00 [08:20:53]MH_I2C_Read... [08:20:53]Read from MH i2c: E2 62 00 A2 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 26 76 00 00 0E 04 04 00 72 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: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 26 76 00 00 0E 04 04 00 72 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:53]wFMCommunicate OK [08:20:53]SAM_PROTO_GetFieldsCounters done [08:20:53]requested_item shift.num is exist - process it [08:20:53]requested_item shift.opened is exist - process it [08:20:53]req_shift_opened [08:20:53]FM_GetShiftState [08:20:53]SAM_PROTO_GetShiftState [08:20:53]wFMCommunicate request_size=4 [08:20:53]MH_SAM_APDU [08:20:53]CAPDU: 80 13 01 00 [08:20:53]Write to MH i2c: E2 08 00 A3 69 80 13 01 00 00 00 00 00 89 [08:20:53]Write i2c OK [08:20:53]MH_I2C_Read... [08:20:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:20:53]Read from MH i2c: E2 [08:20:53]MH_I2C_Read... [08:20:53]Read from MH i2c: E2 0E 00 [08:20:53]MH_I2C_Read... [08:20:53]Read from MH i2c: E2 0E 00 A3 69 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 6F [08:20:53]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [08:20:53]wFMCommunicate OK [08:20:53]SAM_PROTO_GetShiftState done [08:20:53]FM_GetShiftState done [08:20:53]req_shift_opened done [08:20:53]requested_item shift.open_date is exist - process it [08:20:53]req_shift_open_date [08:20:53]req_shift_open_date done [08:20:53]produce_requested_data done [08:20:53]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30246,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [08:20:53]process_action_free close_receipt [08:20:53]json_value_free [08:20:53]json_value_free done [08:20:53]process_json_proto returns [08:20:53]Send response to host [08:20:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30246,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [08:20:53]free response buf [08:20:53]execute_script done [08:20:53]execute_script returns [08:20:53]free content buf [08:20:53]Sock 9.Close socket [08:20:53]Sock 9.Thread stoped [08:20:57]OFD Sender: No OFD packet to send [08:21:02]OFD Sender: No OFD packet to send [08:21:07]OFD Sender: No OFD packet to send [08:21:12]OFD Sender: No OFD packet to send [08:21:17]OFD Sender: No OFD packet to send [08:21:22]OFD Sender: No OFD packet to send [08:21:27]OFD Sender: No OFD packet to send [08:21:32]OFD Sender: No OFD packet to send [08:21:37]OFD Sender: No OFD packet to send [08:21:42]OFD Sender: No OFD packet to send [08:21:47]OFD Sender: No OFD packet to send [08:21:52]OFD Sender: No OFD packet to send [08:21:57]OFD Sender: No OFD packet to send [08:22:02]OFD Sender: No OFD packet to send [08:22:07]OFD Sender: No OFD packet to send [08:22:12]OFD Sender: No OFD packet to send [08:22:17]OFD Sender: No OFD packet to send [08:22:22]OFD Sender: No OFD packet to send [08:22:27]OFD Sender: No OFD packet to send [08:22:32]OFD Sender: No OFD packet to send [08:22:37]OFD Sender: No OFD packet to send [08:22:42]OFD Sender: No OFD packet to send [08:22:47]OFD Sender: No OFD packet to send [08:22:52]OFD Sender: No OFD packet to send [08:22:57]OFD Sender: No OFD packet to send [08:23:02]OFD Sender: No OFD packet to send [08:23:07]OFD Sender: No OFD packet to send [08:23:12]OFD Sender: No OFD packet to send [08:23:17]OFD Sender: No OFD packet to send [08:23:22]OFD Sender: No OFD packet to send [08:23:27]OFD Sender: No OFD packet to send [08:23:32]OFD Sender: No OFD packet to send [08:23:37]OFD Sender: No OFD packet to send [08:23:42]OFD Sender: No OFD packet to send [08:23:42]accept exits with 7 [08:23:42]New connection [08:23:42]New thread 3067370852 created [08:23:42]Thread 3067514212 joined [08:23:42]Waiting for new connection... [08:23:42] Sock 7.Parse request [08:23:42]Sock 7.Check first char [08:23:42]Sock 7.First char is OK [08:23:42]request: POST /json_proto HTTP/1.0 [08:23:42]Method: POST [08:23:42]URL: /json_proto [08:23:42]Method is POST - this is cgi request [08:23:42]url: /json_proto [08:23:42]query_string will be loaded in cgi processing [08:23:42]execute_cgi json_proto POST (null) [08:23:42]execute_cgi path=json_proto method=POST [08:23:42]POST find Content-Length [08:23:42]Host: 172.17.51.3:8080 [08:23:42]Content-Length: 800 [08:23:42]Content-Type: application/json [08:23:42] [08:23:42]POST finish read [08:23:42]Found Content-Length = 800 [08:23:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342635", "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\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3949829", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:23:42]execute_script... [08:23: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)342635", "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\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3949829", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:23:42]POST & json_proto [08:23:42]process_json_proto [08:23:42]json parsed OK: [08:23:42]protocol is kg_v1.0 [08:23:42]action value=close_receipt [08:23:42]process_action close_receipt [08:23:42]cmd_close_receipt [08:23:42]MH_GetDate [08:23:42]Write to MH i2c: F0 00 00 A4 69 FC [08:23:42]Write i2c OK [08:23:42]MH_I2C_Read... [08:23:42]Read from MH i2c: F0 [08:23:42]MH_I2C_Read... [08:23:42]Read from MH i2c: F0 09 00 [08:23:42]MH_I2C_Read... [08:23:42]Read from MH i2c: F0 09 00 A4 69 00 17 BE 14 67 04 C1 95 66 15 [08:23:42]GetLastDocTimeStamp 1729412458 [08:23:42]current date 1729412631 [08:23:42]FM_GetShiftState [08:23:42]SAM_PROTO_GetShiftState [08:23:42]wFMCommunicate request_size=4 [08:23:42]MH_SAM_APDU [08:23:42]CAPDU: 80 13 01 00 [08:23:42]Write to MH i2c: E2 08 00 A5 69 80 13 01 00 00 00 00 00 8B [08:23:42]Write i2c OK [08:23:42]MH_I2C_Read... [08:23:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:23:42]Read from MH i2c: E2 [08:23:42]MH_I2C_Read... [08:23:42]Read from MH i2c: E2 0E 00 [08:23:42]MH_I2C_Read... [08:23:42]Read from MH i2c: E2 0E 00 A5 69 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 71 [08:23:42]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [08:23:42]wFMCommunicate OK [08:23:42]SAM_PROTO_GetShiftState done [08:23:42]FM_GetShiftState done [08:23:42]opened in 1729384718 [08:23:42]opened+sec_in_day 1729471118 [08:23:42]quantity*price = 0 [08:23:42]sum+1 = 1 [08:23:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 29 20.10.2024 08:23 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Талоны: Топливные Талоны 3949829 ФМ: 0000000002094219 ФД: 30247 ФПД: 244096967978088 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T082351&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30247&fm=244096967978088&tin=02508201610067®Number=0000000000186857&sum=0 [08:23:44]StoreToDocumentArchive [08:23:44]shift 114 fd 30247 [08:23:44]save to /storage/0114/doc_00030247 [08:23:44]save last doc name /storage/0114/doc_00030247 to /storage/kkm_last_doc_name [08:23:44]save OK [08:23:44]Clear old archive folders... [08:23:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:23:44]tlvbuf is 00B3BED0 [08:23:44]SAM_PROTO_ClearQueue [08:23:44]wFMCommunicate request_size=4 [08:23:44]MH_SAM_APDU [08:23:44]CAPDU: 80 09 00 00 [08:23:44]Write to MH i2c: E2 08 00 B2 69 80 09 00 00 00 00 00 00 8D [08:23:44]Write i2c OK [08:23:44]MH_I2C_Read... [08:23:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:23:44]Read from MH i2c: E2 [08:23:44]MH_I2C_Read... [08:23:44]Read from MH i2c: E2 03 00 [08:23:44]MH_I2C_Read... [08:23:44]Read from MH i2c: E2 03 00 B2 69 00 90 00 8F [08:23:44]RAPDU: 90 00 [08:23:44]wFMCommunicate OK [08:23:44]SAM_PROTO_ClearQueue done [08:23:44]KKMCreateOFDPacket [08:23:44]OFDProtocolAddRootSTLVToBuf [08:23:44]FM_MakeSignedData [08:23:44]FM_MakeSignedData [08:23:44]SAM_PROTO_SignData [08:23:44]wFMCommunicate request_size=4 [08:23:44]MH_SAM_APDU [08:23:44]CAPDU: 80 0D 01 02 [08:23:44]Write to MH i2c: E2 08 00 B3 69 80 0D 01 02 00 00 00 00 95 [08:23:44]Write i2c OK [08:23:44]MH_I2C_Read... [08:23:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:23:44]Read from MH i2c: E2 [08:23:44]MH_I2C_Read... [08:23:44]Read from MH i2c: E2 03 00 [08:23:44]MH_I2C_Read... [08:23:44]Read from MH i2c: E2 03 00 B3 69 00 90 00 90 [08:23:44]RAPDU: 90 00 [08:23:44]wFMCommunicate OK [08:23:44]wFMCommunicate request_size=255 [08:23:44]MH_SAM_APDU [08:23:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 1D 00 00 00 F4 03 04 00 17 BE 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 DE [08:23:44]Write to MH i2c: E2 02 01 B4 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 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 1D 00 00 00 F4 03 04 00 17 BE 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 DE 00 00 D7 [08:23:44]Write i2c OK [08:23:44]MH_I2C_Read... [08:23:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:23:44]Read from MH i2c: E2 [08:23:44]MH_I2C_Read... [08:23:44]Read from MH i2c: E2 03 00 [08:23:44]MH_I2C_Read... [08:23:44]Read from MH i2c: E2 03 00 B4 69 00 90 00 91 [08:23:44]RAPDU: 90 00 [08:23:44]wFMCommunicate OK [08:23:44]wFMCommunicate request_size=10 [08:23:44]MH_SAM_APDU [08:23:44]CAPDU: 80 0D 02 02 05 01 41 11 2C 68 [08:23:44]Write to MH i2c: E2 0D 00 B5 69 80 0D 02 02 05 00 01 41 11 2C 68 00 00 89 [08:23:44]Write i2c OK [08:23:44]MH_I2C_Read... [08:23:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:23:44]Read from MH i2c: E2 [08:23:44]MH_I2C_Read... [08:23:44]Read from MH i2c: E2 03 00 [08:23:44]MH_I2C_Read... [08:23:44]Read from MH i2c: E2 03 00 B5 69 00 90 00 92 [08:23:44]RAPDU: 90 00 [08:23:44]wFMCommunicate OK [08:23:44]wFMCommunicate request_size=4 [08:23:44]MH_SAM_APDU [08:23:44]CAPDU: 80 0D 03 02 [08:23:44]Write to MH i2c: E2 08 00 B6 69 80 0D 03 02 00 00 00 00 9A [08:23:44]Write i2c OK [08:23:44]MH_I2C_Read... [08:23:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:23:44]Read from MH i2c: E2 [08:23:44]MH_I2C_Read... [08:23:44]Read from MH i2c: E2 0B 00 [08:23:44]MH_I2C_Read... [08:23:44]Read from MH i2c: E2 0B 00 B6 69 00 A2 EB D9 45 DA 01 FB 90 90 00 AC [08:23:44]RAPDU: A2 EB D9 45 DA 01 FB 90 90 00 [08:23:44]wFMCommunicate OK [08:23:44]SAM_PROTO_SignData done [08:23:44]FM_MakeSignedData done [08:23:44]CreateOFDProtocolMessage [08:23:44]wFMCommunicate request_size=4 [08:23:44]MH_SAM_APDU [08:23:44]CAPDU: 80 11 00 00 [08:23:44]Write to MH i2c: E2 08 00 B7 69 80 11 00 00 00 00 00 00 9A [08:23:44]Write i2c OK [08:23:44]MH_I2C_Read... [08:23:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:23:44]Read from MH i2c: E2 [08:23:44]MH_I2C_Read... [08:23:44]Read from MH i2c: E2 17 00 [08:23:44]MH_I2C_Read... [08:23:44]Read from MH i2c: E2 17 00 B7 69 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: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 [08:23:44]wFMCommunicate OK [08:23:44]CreateOFDProtocolMessage done [08:23:44]OFDSenderStorePacket 30247 [08:23:44]StoreOFDPacket docnum=30247 [08:23: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 B6 16 07 01 78 0D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1D 00 00 00 F4 03 04 00 17 BE 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 DE 01 41 11 2C 68 A2 EB D9 45 DA 01 FB 90 [08:23:44]CheckFolder [08:23:44]dirname=/storage/ofd_packets [08:23:44]CheckFolder done [08:23:44]ProducePacketName [08:23:44]name=ofd_packets/00030247 [08:23:44]NVStorageSaveData ofd_packets/00030247 [08:23:44]File name is /storage/ofd_packets/00030247 [08:23:44]Write 301 bytes [08:23:44]NVStorageSaveData done [08:23:44]OFDSenderStorePacket done [08:23:44]KKMCreateOFDPacket done [08:23:44]NVStorageSaveData kkm_last_timestamp [08:23:44]File name is /storage/kkm_last_timestamp [08:23:44]Write 4 bytes [08:23:44]NVStorageSaveData done [08:23:44]ExternCall_PrintAddStr [08:23:44]wPrintStart [08:23:44]Write to MH i2c: 01 00 00 B8 69 21 [08:23:44]Write i2c OK [08:23:44]MH_I2C_Read... [08:23:44]Read from MH i2c: 01 [08:23:44]MH_I2C_Read... [08:23:44]Read from MH i2c: 01 07 00 [08:23:44]MH_I2C_Read... [08:23:44]Read from MH i2c: 01 07 00 B8 69 00 00 00 00 00 FF 0F 36 [08:23:44]RasterBufferAndPrint [08:23:44]line Счет N : (1)342635 [08:23:44]line ИНН: 02508201610067 [08:23:44]line Контрольно-Кассовый Чек [08:23:44]line ПРОДАЖА [08:23:44]line ТРК (МРК, ГНК) : 53 [08:23:44]line Товар: 2710124130 [08:23:44]line Аи-92-К-2 [08:23:44]line 40.000 * 0.00 [08:23:44]line = 0.00 [08:23:44]line НДС 12% НСП 1% [08:23:44]line > о реализуемом товаре [08:23:44]line ИТОГО: 0.00 [08:23:44]line НСП 1% : 0.00 [08:23:44]line НДС 12% : 0.00 [08:23:44]line Наличными: 0.00 [08:23:44]line Безнал.: 0.00 [08:23:44]line Место: АЗС № 78 "Партнер Нефть" [08:23:44]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [08:23:44]line СНО: Общий режим [08:23:44]line Чек 29 20.10.2024 08:23 [08:23:44]line Смена: 114 ФФД: 1.0 [08:23:44]line ЗНМ: 0300000137 [08:23:44]line РНМ: 0000000000186857 [08:23:44]line Версия ККМ: v1.0 [08:23:44]line Талоны: Топливные Талоны [08:23:44]line 3949829 [08:23:44]line ФМ: 0000000002094219 [08:23:44]line ФД: 30247 [08:23:44]line ФПД: 244096967978088 [08:23:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T082351&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30247&fm=244096967978088&tin=02508201610067®Number=0000000000186857&sum=0 [08:23:44]OFD Sender: Processing packet 30247 [packets to send 10, broken 9] [08:23:44]ProducePacketName [08:23:44]name=ofd_packets/00030247 [08:23:44]OFD Sender: To server: pG, [08:23:44]CommunicateWithHost lk.salyk.kg:30040 [08:23:44]ConnectInit lk.salyk.kg [08:23:44]written 0, free lines is 4095 [08:23:45]Connected sock=10 [08:23: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 B6 16 07 01 78 0D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1D 00 00 00 F4 03 04 00 17 BE 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 DE 01 41 11 2C 68 A2 EB D9 45 DA 01 FB 90 [08:23: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 46 9D 47 00 81 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 27 76 00 00 F4 03 04 00 9B 68 14 67 B6 04 01 00 00 68 4D 32 B8 36 A7 D6 98 [08:23:45]CommunicateWithHost err = 0 [08:23:45]CheckOFDResponse [08:23:45]1017 (14) - 77093643461234 [08:23:45]1041 (16) - 0000000002094219 [08:23:45]1040 (4) - 30247 [08:23:45]1012 (4) - 20.10.2024 02:19 [08:23:45]1206 (1) - 0 [08:23:45]OFD Sender: Remove packet 30247 [08:23:45]ProducePacketName [08:23:45]name=ofd_packets/00030247 [08:23:45]NVStorageDeleteData [08:23:45]Write to MH i2c: 01 00 00 E2 69 4B [08:23:45]Write i2c OK [08:23:45]MH_I2C_Read... [08:23:45]Read from MH i2c: 01 [08:23:45]MH_I2C_Read... [08:23:45]Read from MH i2c: 01 07 00 [08:23:45]MH_I2C_Read... [08:23:45]Read from MH i2c: 01 07 00 E2 69 00 00 00 00 00 0E 0D 6D [08:23:45]RasterBufferAndPrint [08:23:45]line [08:23:45]line [08:23:45]line [08:23:45]line [08:23:45]line [08:23:45]written 0, free lines is 3350 [08:23:45]MH_Cut [08:23:45]Write to MH i2c: D1 01 00 E9 69 01 24 [08:23:45]Write i2c OK [08:23:45]MH_I2C_Read... [08:23:45]Read from MH i2c: D1 [08:23:45]MH_I2C_Read... [08:23:45]Read from MH i2c: D1 01 00 [08:23:45]MH_I2C_Read... [08:23:45]Read from MH i2c: D1 01 00 E9 69 00 23 [08:23:45]Write to MH i2c: 01 00 00 EA 69 53 [08:23:45]Write i2c OK [08:23:45]MH_I2C_Read... [08:23:45]OFD Sender: No OFD packet to send [08:23:46]*** Cut start [08:23:46]*** Partial cut [08:23:46]*** CUTSNS_PIN = 1 [08:23:46]*** CUTSNS_PIN = 0 [08:23:46]*** Brake cut motor [08:23:46]Read from MH i2c: 01 [08:23:46]MH_I2C_Read... [08:23:46]*** Stop cut motor [08:23:46]*** Cut end [08:23:46]Read from MH i2c: 01 07 00 [08:23:46]MH_I2C_Read... [08:23:46]Read from MH i2c: 01 07 00 EA 69 00 00 00 00 00 FF 0F 68 [08:23:46]process_action close_receipt done [08:23:46]requested_data is exist [08:23:46]produce_requested_data [08:23:46]requested_item fm.sn is exist - process it [08:23:46]wFMCommunicate request_size=4 [08:23:46]MH_SAM_APDU [08:23:46]CAPDU: 80 11 00 00 [08:23:46]Write to MH i2c: E2 08 00 EB 69 80 11 00 00 00 00 00 00 CE [08:23:46]Write i2c OK [08:23:46]MH_I2C_Read... [08:23:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:23:46]Read from MH i2c: E2 [08:23:46]MH_I2C_Read... [08:23:46]Read from MH i2c: E2 17 00 [08:23:46]MH_I2C_Read... [08:23:46]Read from MH i2c: E2 17 00 EB 69 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 1C [08:23:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [08:23:46]wFMCommunicate OK [08:23:46]requested_item fd.num is exist - process it [08:23:46]SAM_PROTO_GetFieldsCounters [08:23:46]wFMCommunicate request_size=4 [08:23:46]MH_SAM_APDU [08:23:46]CAPDU: 80 13 00 00 [08:23:46]Write to MH i2c: E2 08 00 EC 69 80 13 00 00 00 00 00 00 D1 [08:23:46]Write i2c OK [08:23:46]MH_I2C_Read... [08:23:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:23:46]Read from MH i2c: E2 [08:23:46]MH_I2C_Read... [08:23:46]Read from MH i2c: E2 62 00 [08:23:46]MH_I2C_Read... [08:23:46]Read from MH i2c: E2 62 00 EC 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 27 76 00 00 0E 04 04 00 72 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 5D [08:23: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 27 76 00 00 0E 04 04 00 72 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:23:46]wFMCommunicate OK [08:23:46]SAM_PROTO_GetFieldsCounters done [08:23:46]requested_item shift.num is exist - process it [08:23:46]requested_item shift.opened is exist - process it [08:23:46]req_shift_opened [08:23:46]FM_GetShiftState [08:23:46]SAM_PROTO_GetShiftState [08:23:46]wFMCommunicate request_size=4 [08:23:46]MH_SAM_APDU [08:23:46]CAPDU: 80 13 01 00 [08:23:46]Write to MH i2c: E2 08 00 ED 69 80 13 01 00 00 00 00 00 D3 [08:23:46]Write i2c OK [08:23:46]MH_I2C_Read... [08:23:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:23:46]Read from MH i2c: E2 [08:23:46]MH_I2C_Read... [08:23:46]Read from MH i2c: E2 0E 00 [08:23:46]MH_I2C_Read... [08:23:46]Read from MH i2c: E2 0E 00 ED 69 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 B9 [08:23:46]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [08:23:46]wFMCommunicate OK [08:23:46]SAM_PROTO_GetShiftState done [08:23:46]FM_GetShiftState done [08:23:46]req_shift_opened done [08:23:46]requested_item shift.open_date is exist - process it [08:23:46]req_shift_open_date [08:23:46]req_shift_open_date done [08:23:46]produce_requested_data done [08:23:46]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30247,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [08:23:46]process_action_free close_receipt [08:23:46]json_value_free [08:23:46]json_value_free done [08:23:46]process_json_proto returns [08:23:46]Send response to host [08:23:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30247,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [08:23:46]free response buf [08:23:46]execute_script done [08:23:46]execute_script returns [08:23:46]free content buf [08:23:46]Sock 7.Close socket [08:23:46]Sock 7.Thread stoped [08:23:50]OFD Sender: No OFD packet to send [08:23:55]OFD Sender: No OFD packet to send [08:24:00]OFD Sender: No OFD packet to send [08:24:05]OFD Sender: No OFD packet to send [08:24:10]OFD Sender: No OFD packet to send [08:24:15]OFD Sender: No OFD packet to send [08:24:20]OFD Sender: No OFD packet to send [08:24:25]OFD Sender: No OFD packet to send [08:24:30]OFD Sender: No OFD packet to send [08:24:35]OFD Sender: No OFD packet to send [08:24:40]OFD Sender: No OFD packet to send [08:24:45]OFD Sender: No OFD packet to send [08:24:50]OFD Sender: No OFD packet to send [08:24:55]OFD Sender: No OFD packet to send [08:25:00]OFD Sender: No OFD packet to send [08:25:05]OFD Sender: No OFD packet to send [08:25:10]OFD Sender: No OFD packet to send [08:25:15]OFD Sender: No OFD packet to send [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:26]OFD Sender: No OFD packet to send [08:26:31]OFD Sender: No OFD packet to send [08:26:36]OFD Sender: No OFD packet to send [08:26:41]OFD Sender: No OFD packet to send [08:26:46]OFD Sender: No OFD packet to send [08:26:51]OFD Sender: No OFD packet to send [08:26:56]OFD Sender: No OFD packet to send [08:27:01]OFD Sender: No OFD packet to send [08:27:06]OFD Sender: No OFD packet to send [08:27:11]OFD Sender: No OFD packet to send [08:27:16]OFD Sender: No OFD packet to send [08:27:21]OFD Sender: No OFD packet to send [08:27:26]OFD Sender: No OFD packet to send [08:27:31]OFD Sender: No OFD packet to send [08:27:36]OFD Sender: No OFD packet to send [08:27:41]OFD Sender: No OFD packet to send [08:27:46]OFD Sender: No OFD packet to send [08:27:51]OFD Sender: No OFD packet to send [08:27:56]OFD Sender: No OFD packet to send [08:28:01]OFD Sender: No OFD packet to send [08:28:02]accept exits with 9 [08:28:02]New connection [08:28:02]New thread 3067514212 created [08:28:02]Thread 3067370852 joined [08:28:02]Waiting for new connection... [08:28:02] Sock 9.Parse request [08:28:02]Sock 9.Check first char [08:28:02]Sock 9.First char is OK [08:28:02]request: POST /json_proto HTTP/1.0 [08:28:02]Method: POST [08:28:02]URL: /json_proto [08:28:02]Method is POST - this is cgi request [08:28:02]url: /json_proto [08:28:02]query_string will be loaded in cgi processing [08:28:02]execute_cgi json_proto POST (null) [08:28:02]execute_cgi path=json_proto method=POST [08:28:02]POST find Content-Length [08:28:02]Host: 172.17.51.3:8080 [08:28:02]Content-Length: 677 [08:28:02]Content-Type: application/json [08:28:02] [08:28:02]POST finish read [08:28:02]Found Content-Length = 677 [08:28:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342637", "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:28:02]execute_script... [08:28: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)342637", "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:28:02]POST & json_proto [08:28:02]process_json_proto [08:28:02]json parsed OK: [08:28:02]protocol is kg_v1.0 [08:28:02]action value=close_receipt [08:28:02]process_action close_receipt [08:28:02]cmd_close_receipt [08:28:02]MH_GetDate [08:28:02]Write to MH i2c: F0 00 00 EE 69 46 [08:28:02]Write i2c OK [08:28:02]MH_I2C_Read... [08:28:02]Read from MH i2c: F0 [08:28:02]MH_I2C_Read... [08:28:02]Read from MH i2c: F0 09 00 [08:28:02]MH_I2C_Read... [08:28:02]Read from MH i2c: F0 09 00 EE 69 00 1A BF 14 67 04 C1 95 66 63 [08:28:02]GetLastDocTimeStamp 1729412631 [08:28:02]current date 1729412890 [08:28:02]FM_GetShiftState [08:28:02]SAM_PROTO_GetShiftState [08:28:02]wFMCommunicate request_size=4 [08:28:02]MH_SAM_APDU [08:28:02]CAPDU: 80 13 01 00 [08:28:02]Write to MH i2c: E2 08 00 EF 69 80 13 01 00 00 00 00 00 D5 [08:28:02]Write i2c OK [08:28:02]MH_I2C_Read... [08:28:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:28:02]Read from MH i2c: E2 [08:28:02]MH_I2C_Read... [08:28:02]Read from MH i2c: E2 0E 00 [08:28:02]MH_I2C_Read... [08:28:02]Read from MH i2c: E2 0E 00 EF 69 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 BB [08:28:02]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [08:28:02]wFMCommunicate OK [08:28:02]SAM_PROTO_GetShiftState done [08:28:02]FM_GetShiftState done [08:28:02]opened in 1729384718 [08:28:02]opened+sec_in_day 1729471118 [08:28:02]quantity*price = 50010 [08:28:02]sum+1 = 50012 [08:28:02]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 СНО: Общий режим Чек 30 20.10.2024 08:28 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30248 ФПД: 98974091297808 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T082810&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30248&fm=98974091297808&tin=02508201610067®Number=0000000000186857&sum=50000 [08:28:03]StoreToDocumentArchive [08:28:03]shift 114 fd 30248 [08:28:03]save to /storage/0114/doc_00030248 [08:28:03]save last doc name /storage/0114/doc_00030248 to /storage/kkm_last_doc_name [08:28:03]save OK [08:28:03]Clear old archive folders... [08:28:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:28:03]tlvbuf is 00AD1220 [08:28:03]SAM_PROTO_ClearQueue [08:28:03]wFMCommunicate request_size=4 [08:28:03]MH_SAM_APDU [08:28:03]CAPDU: 80 09 00 00 [08:28:03]Write to MH i2c: E2 08 00 FC 69 80 09 00 00 00 00 00 00 D7 [08:28:03]Write i2c OK [08:28:03]MH_I2C_Read... [08:28:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:28:03]Read from MH i2c: E2 [08:28:03]MH_I2C_Read... [08:28:03]Read from MH i2c: E2 03 00 [08:28:03]MH_I2C_Read... [08:28:03]Read from MH i2c: E2 03 00 FC 69 00 90 00 D9 [08:28:03]RAPDU: 90 00 [08:28:03]wFMCommunicate OK [08:28:03]SAM_PROTO_ClearQueue done [08:28:03]KKMCreateOFDPacket [08:28:03]OFDProtocolAddRootSTLVToBuf [08:28:03]FM_MakeSignedData [08:28:03]FM_MakeSignedData [08:28:03]SAM_PROTO_SignData [08:28:03]wFMCommunicate request_size=4 [08:28:03]MH_SAM_APDU [08:28:03]CAPDU: 80 0D 01 02 [08:28:03]Write to MH i2c: E2 08 00 FD 69 80 0D 01 02 00 00 00 00 DF [08:28:03]Write i2c OK [08:28:03]MH_I2C_Read... [08:28:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:28:03]Read from MH i2c: E2 [08:28:03]MH_I2C_Read... [08:28:03]Read from MH i2c: E2 03 00 [08:28:03]MH_I2C_Read... [08:28:03]Read from MH i2c: E2 03 00 FD 69 00 90 00 DA [08:28:03]RAPDU: 90 00 [08:28:03]wFMCommunicate OK [08:28:03]wFMCommunicate request_size=255 [08:28:03]MH_SAM_APDU [08:28: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 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 1E 00 00 00 F4 03 04 00 1A BF 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 5A [08:28:03]Write to MH i2c: E2 02 01 FE 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 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 1E 00 00 00 F4 03 04 00 1A BF 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 5A 00 00 25 [08:28:03]Write i2c OK [08:28:03]MH_I2C_Read... [08:28:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:28:03]Read from MH i2c: E2 [08:28:03]MH_I2C_Read... [08:28:03]Read from MH i2c: E2 03 00 [08:28:03]MH_I2C_Read... [08:28:03]Read from MH i2c: E2 03 00 FE 69 00 90 00 DB [08:28:03]RAPDU: 90 00 [08:28:03]wFMCommunicate OK [08:28:03]wFMCommunicate request_size=10 [08:28:03]MH_SAM_APDU [08:28:03]CAPDU: 80 0D 02 02 05 04 33 8D C4 10 [08:28:03]Write to MH i2c: E2 0D 00 FF 69 80 0D 02 02 05 00 04 33 8D C4 10 00 00 84 [08:28:03]Write i2c OK [08:28:03]MH_I2C_Read... [08:28:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:28:03]Read from MH i2c: E2 [08:28:03]MH_I2C_Read... [08:28:03]Read from MH i2c: E2 03 00 [08:28:03]MH_I2C_Read... [08:28:03]Read from MH i2c: E2 03 00 FF 69 00 90 00 DC [08:28:03]RAPDU: 90 00 [08:28:03]wFMCommunicate OK [08:28:03]wFMCommunicate request_size=4 [08:28:03]MH_SAM_APDU [08:28:03]CAPDU: 80 0D 03 02 [08:28:03]Write to MH i2c: E2 08 00 00 6A 80 0D 03 02 00 00 00 00 E5 [08:28:03]Write i2c OK [08:28:03]MH_I2C_Read... [08:28:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:28:03]Read from MH i2c: E2 [08:28:03]MH_I2C_Read... [08:28:03]Read from MH i2c: E2 0B 00 [08:28:03]MH_I2C_Read... [08:28:03]Read from MH i2c: E2 0B 00 00 6A 00 F8 A7 93 7C 82 57 BF 2F 90 00 5B [08:28:03]RAPDU: F8 A7 93 7C 82 57 BF 2F 90 00 [08:28:03]wFMCommunicate OK [08:28:03]SAM_PROTO_SignData done [08:28:03]FM_MakeSignedData done [08:28:03]CreateOFDProtocolMessage [08:28:03]wFMCommunicate request_size=4 [08:28:03]MH_SAM_APDU [08:28:03]CAPDU: 80 11 00 00 [08:28:03]Write to MH i2c: E2 08 00 01 6A 80 11 00 00 00 00 00 00 E5 [08:28:03]Write i2c OK [08:28:03]MH_I2C_Read... [08:28:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:28:03]Read from MH i2c: E2 [08:28:03]MH_I2C_Read... [08:28:03]Read from MH i2c: E2 17 00 [08:28:03]MH_I2C_Read... [08:28:03]Read from MH i2c: E2 17 00 01 6A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 33 [08:28: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:28:03]wFMCommunicate OK [08:28:03]CreateOFDProtocolMessage done [08:28:03]OFDSenderStorePacket 30248 [08:28:03]StoreOFDPacket docnum=30248 [08:28: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 0F 01 00 00 FB B9 07 01 D1 7F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 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 1E 00 00 00 F4 03 04 00 1A BF 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 5A 04 33 8D C4 10 F8 A7 93 7C 82 57 BF 2F [08:28:03]CheckFolder [08:28:03]dirname=/storage/ofd_packets [08:28:03]CheckFolder done [08:28:03]ProducePacketName [08:28:03]name=ofd_packets/00030248 [08:28:03]NVStorageSaveData ofd_packets/00030248 [08:28:03]File name is /storage/ofd_packets/00030248 [08:28:03]Write 301 bytes [08:28:03]NVStorageSaveData done [08:28:03]OFDSenderStorePacket done [08:28:03]KKMCreateOFDPacket done [08:28:03]NVStorageSaveData kkm_last_timestamp [08:28:03]File name is /storage/kkm_last_timestamp [08:28:03]Write 4 bytes [08:28:03]NVStorageSaveData done [08:28:03]ExternCall_PrintAddStr [08:28:03]wPrintStart [08:28:03]Write to MH i2c: 01 00 00 02 6A 6C [08:28:03]Write i2c OK [08:28:03]MH_I2C_Read... [08:28:03]Read from MH i2c: 01 [08:28:03]MH_I2C_Read... [08:28:03]Read from MH i2c: 01 07 00 [08:28:03]MH_I2C_Read... [08:28:03]Read from MH i2c: 01 07 00 02 6A 00 00 00 00 00 FF 0F 81 [08:28:03]RasterBufferAndPrint [08:28:03]line Счет N : (1)342637 [08:28:03]line ИНН: 02508201610067 [08:28:03]line Контрольно-Кассовый Чек [08:28:03]line ПРОДАЖА [08:28:03]line ТРК (МРК, ГНК) : 62 [08:28:03]line Товар: 2710124500 [08:28:03]line Аи-95-К-3 [08:28:03]line 6.740 * 74.20 [08:28:03]line = 500.11 [08:28:03]line НДС 12% НСП 1% [08:28:03]line > о реализуемом товаре [08:28:03]line ОКРУГЛЕНИЕ: -0.11 [08:28:03]line ИТОГО: 500.00 [08:28:03]line Внесено: 500.00 [08:28:03]line СДАЧА: 0.00 [08:28:03]line НСП 1% : 4.43 [08:28:03]line НДС 12% : 53.11 [08:28:03]line Наличными: 500.00 [08:28:03]line Безнал.: 0.00 [08:28:03]line Место: АЗС № 78 "Партнер Нефть" [08:28:03]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [08:28:03]line СНО: Общий режим [08:28:03]line Чек 30 20.10.2024 08:28 [08:28:03]line Смена: 114 ФФД: 1.0 [08:28:03]line ЗНМ: 0300000137 [08:28:03]line РНМ: 0000000000186857 [08:28:03]line Версия ККМ: v1.0 [08:28:03]line ФМ: 0000000002094219 [08:28:03]line ФД: 30248 [08:28:03]line ФПД: 98974091297808 [08:28:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T082810&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30248&fm=98974091297808&tin=02508201610067®Number=0000000000186857&sum=50000 [08:28:03]written 0, free lines is 4095 [08:28:04]OFD Sender: Processing packet 30248 [packets to send 10, broken 9] [08:28:04]ProducePacketName [08:28:04]name=ofd_packets/00030248 [08:28:04]OFD Sender: To server: pG, [08:28:04]CommunicateWithHost lk.salyk.kg:30040 [08:28:04]ConnectInit lk.salyk.kg [08:28:04]Connected sock=10 [08:28: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 FB B9 07 01 D1 7F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 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 1E 00 00 00 F4 03 04 00 1A BF 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 5A 04 33 8D C4 10 F8 A7 93 7C 82 57 BF 2F [08:28: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 26 5D 47 00 E9 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 28 76 00 00 F4 03 04 00 9E 69 14 67 B6 04 01 00 00 D7 B5 DE 73 98 A8 54 A3 [08:28:04]CommunicateWithHost err = 0 [08:28:04]CheckOFDResponse [08:28:04]1017 (14) - 77093643461234 [08:28:04]1041 (16) - 0000000002094219 [08:28:04]1040 (4) - 30248 [08:28:04]1012 (4) - 20.10.2024 02:23 [08:28:04]1206 (1) - 0 [08:28:04]OFD Sender: Remove packet 30248 [08:28:04]ProducePacketName [08:28:04]name=ofd_packets/00030248 [08:28:04]NVStorageDeleteData [08:28:04]Write to MH i2c: 01 00 00 2D 6A 97 [08:28:04]Write i2c OK [08:28:04]MH_I2C_Read... [08:28:04]Read from MH i2c: 01 [08:28:04]MH_I2C_Read... [08:28:04]Read from MH i2c: 01 07 00 [08:28:04]MH_I2C_Read... [08:28:04]Read from MH i2c: 01 07 00 2D 6A 00 00 00 00 00 F4 0C 9E [08:28:04]RasterBufferAndPrint [08:28:04]line [08:28:04]line [08:28:04]line [08:28:04]line [08:28:04]line [08:28:04]written 0, free lines is 3326 [08:28:04]MH_Cut [08:28:04]Write to MH i2c: D1 01 00 34 6A 01 70 [08:28:04]Write i2c OK [08:28:04]MH_I2C_Read... [08:28:04]Read from MH i2c: D1 [08:28:04]MH_I2C_Read... [08:28:04]Read from MH i2c: D1 01 00 [08:28:04]MH_I2C_Read... [08:28:04]Read from MH i2c: D1 01 00 34 6A 00 6F [08:28:04]Write to MH i2c: 01 00 00 35 6A 9F [08:28:04]Write i2c OK [08:28:04]MH_I2C_Read... [08:28:04]OFD Sender: No OFD packet to send [08:28:05]*** Cut start [08:28:05]*** Partial cut [08:28:05]*** CUTSNS_PIN = 1 [08:28:05]*** CUTSNS_PIN = 0 [08:28:05]*** Brake cut motor [08:28:05]Read from MH i2c: 01 [08:28:05]MH_I2C_Read... [08:28:05]*** Stop cut motor [08:28:05]*** Cut end [08:28:05]Read from MH i2c: 01 07 00 [08:28:05]MH_I2C_Read... [08:28:05]Read from MH i2c: 01 07 00 35 6A 00 00 00 00 00 FF 0F B4 [08:28:05]process_action close_receipt done [08:28:05]requested_data is exist [08:28:05]produce_requested_data [08:28:05]requested_item fm.sn is exist - process it [08:28:05]wFMCommunicate request_size=4 [08:28:05]MH_SAM_APDU [08:28:05]CAPDU: 80 11 00 00 [08:28:05]Write to MH i2c: E2 08 00 36 6A 80 11 00 00 00 00 00 00 1A [08:28:05]Write i2c OK [08:28:05]MH_I2C_Read... [08:28:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:28:05]Read from MH i2c: E2 [08:28:05]MH_I2C_Read... [08:28:05]Read from MH i2c: E2 17 00 [08:28:05]MH_I2C_Read... [08:28:05]Read from MH i2c: E2 17 00 36 6A 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:28:05]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:05]wFMCommunicate OK [08:28:05]requested_item fd.num is exist - process it [08:28:05]SAM_PROTO_GetFieldsCounters [08:28:05]wFMCommunicate request_size=4 [08:28:05]MH_SAM_APDU [08:28:05]CAPDU: 80 13 00 00 [08:28:05]Write to MH i2c: E2 08 00 37 6A 80 13 00 00 00 00 00 00 1D [08:28:05]Write i2c OK [08:28:05]MH_I2C_Read... [08:28:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:28:05]Read from MH i2c: E2 [08:28:05]MH_I2C_Read... [08:28:05]Read from MH i2c: E2 62 00 [08:28:05]MH_I2C_Read... [08:28:05]Read from MH i2c: E2 62 00 37 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 76 00 00 0E 04 04 00 72 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:28: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 28 76 00 00 0E 04 04 00 72 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:28:05]wFMCommunicate OK [08:28:05]SAM_PROTO_GetFieldsCounters done [08:28:05]requested_item shift.num is exist - process it [08:28:05]requested_item shift.opened is exist - process it [08:28:05]req_shift_opened [08:28:05]FM_GetShiftState [08:28:05]SAM_PROTO_GetShiftState [08:28:05]wFMCommunicate request_size=4 [08:28:05]MH_SAM_APDU [08:28:05]CAPDU: 80 13 01 00 [08:28:05]Write to MH i2c: E2 08 00 38 6A 80 13 01 00 00 00 00 00 1F [08:28:05]Write i2c OK [08:28:05]MH_I2C_Read... [08:28:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:28:05]Read from MH i2c: E2 [08:28:05]MH_I2C_Read... [08:28:05]Read from MH i2c: E2 0E 00 [08:28:05]MH_I2C_Read... [08:28:05]Read from MH i2c: E2 0E 00 38 6A 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 05 [08:28:05]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [08:28:05]wFMCommunicate OK [08:28:05]SAM_PROTO_GetShiftState done [08:28:05]FM_GetShiftState done [08:28:05]req_shift_opened done [08:28:05]requested_item shift.open_date is exist - process it [08:28:05]req_shift_open_date [08:28:05]req_shift_open_date done [08:28:05]produce_requested_data done [08:28:05]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30248,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [08:28:05]process_action_free close_receipt [08:28:05]json_value_free [08:28:05]json_value_free done [08:28:05]process_json_proto returns [08:28:05]Send response to host [08:28:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30248,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [08:28:05]free response buf [08:28:05]execute_script done [08:28:05]execute_script returns [08:28:05]free content buf [08:28:05]Sock 9.Close socket [08:28:05]Sock 9.Thread stoped [08:28:09]OFD Sender: No OFD packet to send [08:28:14]OFD Sender: No OFD packet to send [08:28:19]OFD Sender: No OFD packet to send [08:28:24]OFD Sender: No OFD packet to send [08:28:29]OFD Sender: No OFD packet to send [08:28:34]OFD Sender: No OFD packet to send [08:28:39]OFD Sender: No OFD packet to send [08:28:44]OFD Sender: No OFD packet to send [08:28:49]OFD Sender: No OFD packet to send [08:28: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:09]OFD Sender: No OFD packet to send [08:29:14]OFD Sender: No OFD packet to send [08:29:19]OFD Sender: No OFD packet to send [08:29:24]OFD Sender: No OFD packet to send [08:29:29]OFD Sender: No OFD packet to send [08:29:34]OFD Sender: No OFD packet to send [08:29:39]OFD Sender: No OFD packet to send [08:29:44]OFD Sender: No OFD packet to send [08:29:49]OFD Sender: No OFD packet to send [08:29:54]OFD Sender: No OFD packet to send [08:29:59]OFD Sender: No OFD packet to send [08:30:04]OFD Sender: No OFD packet to send [08:30:09]OFD Sender: No OFD packet to send [08:30:14]OFD Sender: No OFD packet to send [08:30:19]OFD Sender: No OFD packet to send [08:30:24]OFD Sender: No OFD packet to send [08:30:29]OFD Sender: No OFD packet to send [08:30:34]OFD Sender: No OFD packet to send [08:30:39]OFD Sender: No OFD packet to send [08:30:44]OFD Sender: No OFD packet to send [08:30:49]OFD Sender: No OFD packet to send [08:30:55]OFD Sender: No OFD packet to send [08:31:00]OFD Sender: No OFD packet to send [08:31:03]accept exits with 7 [08:31:03]New connection [08:31:03]New thread 3067370852 created [08:31:03]Thread 3067514212 joined [08:31:03]Waiting for new connection... [08:31:03] Sock 7.Parse request [08:31:03]Sock 7.Check first char [08:31:03]Sock 7.First char is OK [08:31:03]request: POST /json_proto HTTP/1.0 [08:31:03]Method: POST [08:31:03]URL: /json_proto [08:31:03]Method is POST - this is cgi request [08:31:03]url: /json_proto [08:31:03]query_string will be loaded in cgi processing [08:31:03]execute_cgi json_proto POST (null) [08:31:03]execute_cgi path=json_proto method=POST [08:31:03]POST find Content-Length [08:31:03]Host: 172.17.51.3:8080 [08:31:03]Content-Length: 682 [08:31:03]Content-Type: application/json [08:31:03] [08:31:03]POST finish read [08:31:03]Found Content-Length = 682 [08:31:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342638", "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" ] } } [08:31:03]execute_script... [08:31: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)342638", "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" ] } } [08:31:03]POST & json_proto [08:31:03]process_json_proto [08:31:03]json parsed OK: [08:31:03]protocol is kg_v1.0 [08:31:03]action value=close_receipt [08:31:03]process_action close_receipt [08:31:03]cmd_close_receipt [08:31:03]MH_GetDate [08:31:03]Write to MH i2c: F0 00 00 39 6A 92 [08:31:03]Write i2c OK [08:31:03]MH_I2C_Read... [08:31:03]Read from MH i2c: F0 [08:31:03]MH_I2C_Read... [08:31:03]Read from MH i2c: F0 09 00 [08:31:03]MH_I2C_Read... [08:31:03]Read from MH i2c: F0 09 00 39 6A 00 CF BF 14 67 04 C1 95 66 64 [08:31:03]GetLastDocTimeStamp 1729412890 [08:31:03]current date 1729413071 [08:31:03]FM_GetShiftState [08:31:03]SAM_PROTO_GetShiftState [08:31:03]wFMCommunicate request_size=4 [08:31:03]MH_SAM_APDU [08:31:03]CAPDU: 80 13 01 00 [08:31:03]Write to MH i2c: E2 08 00 3A 6A 80 13 01 00 00 00 00 00 21 [08:31:03]Write i2c OK [08:31:03]MH_I2C_Read... [08:31:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:31:03]Read from MH i2c: E2 [08:31:03]MH_I2C_Read... [08:31:03]Read from MH i2c: E2 0E 00 [08:31:03]MH_I2C_Read... [08:31:03]Read from MH i2c: E2 0E 00 3A 6A 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 07 [08:31:03]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [08:31:03]wFMCommunicate OK [08:31:03]SAM_PROTO_GetShiftState done [08:31:03]FM_GetShiftState done [08:31:03]opened in 1729384718 [08:31:03]opened+sec_in_day 1729471118 [08:31:03]quantity*price = 100015 [08:31:03]sum+1 = 100017 [08:31: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 СНО: Общий режим Чек 31 20.10.2024 08:31 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30249 ФПД: 53004297809493 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T083111&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30249&fm=53004297809493&tin=02508201610067®Number=0000000000186857&sum=100000 [08:31:04]StoreToDocumentArchive [08:31:04]shift 114 fd 30249 [08:31:04]save to /storage/0114/doc_00030249 [08:31:04]save last doc name /storage/0114/doc_00030249 to /storage/kkm_last_doc_name [08:31:04]save OK [08:31:04]Clear old archive folders... [08:31:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:31:04]tlvbuf is 00C6E1C0 [08:31:04]SAM_PROTO_ClearQueue [08:31:04]wFMCommunicate request_size=4 [08:31:04]MH_SAM_APDU [08:31:04]CAPDU: 80 09 00 00 [08:31:04]Write to MH i2c: E2 08 00 47 6A 80 09 00 00 00 00 00 00 23 [08:31:04]Write i2c OK [08:31:04]MH_I2C_Read... [08:31:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:31:04]Read from MH i2c: E2 [08:31:04]MH_I2C_Read... [08:31:04]Read from MH i2c: E2 03 00 [08:31:04]MH_I2C_Read... [08:31:04]Read from MH i2c: E2 03 00 47 6A 00 90 00 25 [08:31:04]RAPDU: 90 00 [08:31:04]wFMCommunicate OK [08:31:04]SAM_PROTO_ClearQueue done [08:31:04]KKMCreateOFDPacket [08:31:04]OFDProtocolAddRootSTLVToBuf [08:31:04]FM_MakeSignedData [08:31:04]FM_MakeSignedData [08:31:04]SAM_PROTO_SignData [08:31:04]wFMCommunicate request_size=4 [08:31:04]MH_SAM_APDU [08:31:04]CAPDU: 80 0D 01 02 [08:31:04]Write to MH i2c: E2 08 00 48 6A 80 0D 01 02 00 00 00 00 2B [08:31:04]Write i2c OK [08:31:04]MH_I2C_Read... [08:31:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:31:04]Read from MH i2c: E2 [08:31:04]MH_I2C_Read... [08:31:04]Read from MH i2c: E2 03 00 [08:31:04]MH_I2C_Read... [08:31:04]Read from MH i2c: E2 03 00 48 6A 00 90 00 26 [08:31:04]RAPDU: 90 00 [08:31:04]wFMCommunicate OK [08:31:04]wFMCommunicate request_size=255 [08:31:04]MH_SAM_APDU [08:31: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 1F 00 00 00 F4 03 04 00 CF BF 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 30 [08:31:04]Write to MH i2c: E2 02 01 49 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 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 1F 00 00 00 F4 03 04 00 CF BF 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 30 00 00 1F [08:31:04]Write i2c OK [08:31:04]MH_I2C_Read... [08:31:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:31:04]Read from MH i2c: E2 [08:31:04]MH_I2C_Read... [08:31:04]Read from MH i2c: E2 03 00 [08:31:04]MH_I2C_Read... [08:31:04]Read from MH i2c: E2 03 00 49 6A 00 90 00 27 [08:31:04]RAPDU: 90 00 [08:31:04]wFMCommunicate OK [08:31:04]wFMCommunicate request_size=10 [08:31:04]MH_SAM_APDU [08:31:04]CAPDU: 80 0D 02 02 05 35 06 57 AE 55 [08:31:04]Write to MH i2c: E2 0D 00 4A 6A 80 0D 02 02 05 00 35 06 57 AE 55 00 00 CD [08:31:04]Write i2c OK [08:31:04]MH_I2C_Read... [08:31:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:31:04]Read from MH i2c: E2 [08:31:04]MH_I2C_Read... [08:31:04]Read from MH i2c: E2 03 00 [08:31:04]MH_I2C_Read... [08:31:04]Read from MH i2c: E2 03 00 4A 6A 00 90 00 28 [08:31:04]RAPDU: 90 00 [08:31:04]wFMCommunicate OK [08:31:04]wFMCommunicate request_size=4 [08:31:04]MH_SAM_APDU [08:31:04]CAPDU: 80 0D 03 02 [08:31:04]Write to MH i2c: E2 08 00 4B 6A 80 0D 03 02 00 00 00 00 30 [08:31:04]Write i2c OK [08:31:04]MH_I2C_Read... [08:31:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:31:04]Read from MH i2c: E2 [08:31:04]MH_I2C_Read... [08:31:04]Read from MH i2c: E2 0B 00 [08:31:04]MH_I2C_Read... [08:31:04]Read from MH i2c: E2 0B 00 4B 6A 00 2D 05 34 71 71 E1 91 FF 90 00 EA [08:31:04]RAPDU: 2D 05 34 71 71 E1 91 FF 90 00 [08:31:04]wFMCommunicate OK [08:31:04]SAM_PROTO_SignData done [08:31:04]FM_MakeSignedData done [08:31:04]CreateOFDProtocolMessage [08:31:04]wFMCommunicate request_size=4 [08:31:04]MH_SAM_APDU [08:31:04]CAPDU: 80 11 00 00 [08:31:04]Write to MH i2c: E2 08 00 4C 6A 80 11 00 00 00 00 00 00 30 [08:31:04]Write i2c OK [08:31:04]MH_I2C_Read... [08:31:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:31:04]Read from MH i2c: E2 [08:31:04]MH_I2C_Read... [08:31:04]Read from MH i2c: E2 17 00 [08:31:04]MH_I2C_Read... [08:31:04]Read from MH i2c: E2 17 00 4C 6A 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:31:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [08:31:04]wFMCommunicate OK [08:31:04]CreateOFDProtocolMessage done [08:31:04]OFDSenderStorePacket 30249 [08:31:04]StoreOFDPacket docnum=30249 [08:31: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 41 21 07 01 E7 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 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 1F 00 00 00 F4 03 04 00 CF BF 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 30 35 06 57 AE 55 2D 05 34 71 71 E1 91 FF [08:31:04]CheckFolder [08:31:04]dirname=/storage/ofd_packets [08:31:04]CheckFolder done [08:31:04]ProducePacketName [08:31:04]name=ofd_packets/00030249 [08:31:04]NVStorageSaveData ofd_packets/00030249 [08:31:04]File name is /storage/ofd_packets/00030249 [08:31:04]Write 301 bytes [08:31:04]NVStorageSaveData done [08:31:04]OFDSenderStorePacket done [08:31:04]KKMCreateOFDPacket done [08:31:04]NVStorageSaveData kkm_last_timestamp [08:31:04]File name is /storage/kkm_last_timestamp [08:31:04]Write 4 bytes [08:31:04]NVStorageSaveData done [08:31:04]ExternCall_PrintAddStr [08:31:04]wPrintStart [08:31:04]Write to MH i2c: 01 00 00 4D 6A B7 [08:31:04]Write i2c OK [08:31:04]MH_I2C_Read... [08:31:04]Read from MH i2c: 01 [08:31:04]MH_I2C_Read... [08:31:04]Read from MH i2c: 01 07 00 [08:31:04]MH_I2C_Read... [08:31:04]Read from MH i2c: 01 07 00 4D 6A 00 00 00 00 00 FF 0F CC [08:31:04]RasterBufferAndPrint [08:31:04]line Счет N : (1)342638 [08:31:04]line ИНН: 02508201610067 [08:31:04]line Контрольно-Кассовый Чек [08:31:04]line ПРОДАЖА [08:31:04]line ТРК (МРК, ГНК) : 63 [08:31:04]line Товар: 2710124130 [08:31:04]line Аи-92-К-2 [08:31:04]line 14.950 * 66.90 [08:31:04]line = 1000.16 [08:31:04]line НДС 12% НСП 1% [08:31:04]line > о реализуемом товаре [08:31:04]line ОКРУГЛЕНИЕ: -0.16 [08:31:04]line ИТОГО: 1000.00 [08:31:04]line Внесено: 1000.00 [08:31:04]line СДАЧА: 0.00 [08:31:04]line НСП 1% : 8.85 [08:31:04]line НДС 12% : 106.21 [08:31:04]line Наличными: 1000.00 [08:31:04]line Безнал.: 0.00 [08:31:04]line Место: АЗС № 78 "Партнер Нефть" [08:31:04]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [08:31:04]line СНО: Общий режим [08:31:04]line Чек 31 20.10.2024 08:31 [08:31:04]line Смена: 114 ФФД: 1.0 [08:31:04]line ЗНМ: 0300000137 [08:31:04]line РНМ: 0000000000186857 [08:31:04]line Версия ККМ: v1.0 [08:31:04]line ФМ: 0000000002094219 [08:31:04]line ФД: 30249 [08:31:04]line ФПД: 53004297809493 [08:31:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T083111&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30249&fm=53004297809493&tin=02508201610067®Number=0000000000186857&sum=100000 [08:31:05]OFD Sender: Processing packet 30249 [packets to send 10, broken 9] [08:31:05]ProducePacketName [08:31:05]name=ofd_packets/00030249 [08:31:05]OFD Sender: To server: pG, [08:31:05]CommunicateWithHost lk.salyk.kg:30040 [08:31:05]ConnectInit lk.salyk.kg [08:31:05]written 0, free lines is 4095 [08:31:05]Connected sock=10 [08:31: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 41 21 07 01 E7 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 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 1F 00 00 00 F4 03 04 00 CF BF 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 30 35 06 57 AE 55 2D 05 34 71 71 E1 91 FF [08:31: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 8B A9 47 00 08 B0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 29 76 00 00 F4 03 04 00 54 6A 14 67 B6 04 01 00 00 79 53 9F AF 2C 87 C2 15 [08:31:05]CommunicateWithHost err = 0 [08:31:05]CheckOFDResponse [08:31:05]1017 (14) - 77093643461234 [08:31:05]1041 (16) - 0000000002094219 [08:31:05]1040 (4) - 30249 [08:31:05]1012 (4) - 20.10.2024 02:26 [08:31:05]1206 (1) - 0 [08:31:05]OFD Sender: Remove packet 30249 [08:31:05]ProducePacketName [08:31:05]name=ofd_packets/00030249 [08:31:05]NVStorageDeleteData [08:31:05]Write to MH i2c: 01 00 00 78 6A E2 [08:31:05]Write i2c OK [08:31:05]MH_I2C_Read... [08:31:05]Read from MH i2c: 01 [08:31:05]MH_I2C_Read... [08:31:05]Read from MH i2c: 01 07 00 [08:31:05]MH_I2C_Read... [08:31:05]Read from MH i2c: 01 07 00 78 6A 00 00 00 00 00 FB 0C F0 [08:31:05]RasterBufferAndPrint [08:31:05]line [08:31:05]line [08:31:05]line [08:31:05]line [08:31:05]line [08:31:05]written 0, free lines is 3332 [08:31:05]MH_Cut [08:31:05]Write to MH i2c: D1 01 00 7F 6A 01 BB [08:31:05]Write i2c OK [08:31:05]MH_I2C_Read... [08:31:05]Read from MH i2c: D1 [08:31:05]MH_I2C_Read... [08:31:05]Read from MH i2c: D1 01 00 [08:31:05]MH_I2C_Read... [08:31:05]Read from MH i2c: D1 01 00 7F 6A 00 BA [08:31:05]Write to MH i2c: 01 00 00 80 6A EA [08:31:05]Write i2c OK [08:31:05]MH_I2C_Read... [08:31:06]OFD Sender: No OFD packet to send [08:31:06]*** Cut start [08:31:06]*** Partial cut [08:31:06]*** CUTSNS_PIN = 1 [08:31:06]*** CUTSNS_PIN = 0 [08:31:06]*** Brake cut motor [08:31:07]Read from MH i2c: 01 [08:31:07]MH_I2C_Read... [08:31:07]*** Stop cut motor [08:31:07]*** Cut end [08:31:07]Read from MH i2c: 01 07 00 [08:31:07]MH_I2C_Read... [08:31:07]Read from MH i2c: 01 07 00 80 6A 00 00 00 00 00 FF 0F FF [08:31:07]process_action close_receipt done [08:31:07]requested_data is exist [08:31:07]produce_requested_data [08:31:07]requested_item fm.sn is exist - process it [08:31:07]wFMCommunicate request_size=4 [08:31:07]MH_SAM_APDU [08:31:07]CAPDU: 80 11 00 00 [08:31:07]Write to MH i2c: E2 08 00 81 6A 80 11 00 00 00 00 00 00 65 [08:31:07]Write i2c OK [08:31:07]MH_I2C_Read... [08:31:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:31:07]Read from MH i2c: E2 [08:31:07]MH_I2C_Read... [08:31:07]Read from MH i2c: E2 17 00 [08:31:07]MH_I2C_Read... [08:31:07]Read from MH i2c: E2 17 00 81 6A 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:31:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [08:31:07]wFMCommunicate OK [08:31:07]requested_item fd.num is exist - process it [08:31:07]SAM_PROTO_GetFieldsCounters [08:31:07]wFMCommunicate request_size=4 [08:31:07]MH_SAM_APDU [08:31:07]CAPDU: 80 13 00 00 [08:31:07]Write to MH i2c: E2 08 00 82 6A 80 13 00 00 00 00 00 00 68 [08:31:07]Write i2c OK [08:31:07]MH_I2C_Read... [08:31:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:31:07]Read from MH i2c: E2 [08:31:07]MH_I2C_Read... [08:31:07]Read from MH i2c: E2 62 00 [08:31:07]MH_I2C_Read... [08:31:07]Read from MH i2c: E2 62 00 82 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 76 00 00 0E 04 04 00 72 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:31: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 29 76 00 00 0E 04 04 00 72 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:31:07]wFMCommunicate OK [08:31:07]SAM_PROTO_GetFieldsCounters done [08:31:07]requested_item shift.num is exist - process it [08:31:07]requested_item shift.opened is exist - process it [08:31:07]req_shift_opened [08:31:07]FM_GetShiftState [08:31:07]SAM_PROTO_GetShiftState [08:31:07]wFMCommunicate request_size=4 [08:31:07]MH_SAM_APDU [08:31:07]CAPDU: 80 13 01 00 [08:31:07]Write to MH i2c: E2 08 00 83 6A 80 13 01 00 00 00 00 00 6A [08:31:07]Write i2c OK [08:31:07]MH_I2C_Read... [08:31:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:31:07]Read from MH i2c: E2 [08:31:07]MH_I2C_Read... [08:31:07]Read from MH i2c: E2 0E 00 [08:31:07]MH_I2C_Read... [08:31:07]Read from MH i2c: E2 0E 00 83 6A 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 50 [08:31:07]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [08:31:07]wFMCommunicate OK [08:31:07]SAM_PROTO_GetShiftState done [08:31:07]FM_GetShiftState done [08:31:07]req_shift_opened done [08:31:07]requested_item shift.open_date is exist - process it [08:31:07]req_shift_open_date [08:31:07]req_shift_open_date done [08:31:07]produce_requested_data done [08:31:07]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30249,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [08:31:07]process_action_free close_receipt [08:31:07]json_value_free [08:31:07]json_value_free done [08:31:07]process_json_proto returns [08:31:07]Send response to host [08:31:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30249,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [08:31:07]free response buf [08:31:07]execute_script done [08:31:07]execute_script returns [08:31:07]free content buf [08:31:07]Sock 7.Close socket [08:31:07]Sock 7.Thread stoped [08:31:11]OFD Sender: No OFD packet to send [08:31:16]OFD Sender: No OFD packet to send [08:31:21]OFD Sender: No OFD packet to send [08:31:26]OFD Sender: No OFD packet to send [08:31:31]OFD Sender: No OFD packet to send [08:31:36]OFD Sender: No OFD packet to send [08:31:41]OFD Sender: No OFD packet to send [08:31:46]OFD Sender: No OFD packet to send [08:31:51]OFD Sender: No OFD packet to send [08:31:56]OFD Sender: No OFD packet to send [08:32:01]OFD Sender: No OFD packet to send [08:32:06]OFD Sender: No OFD packet to send [08:32:11]OFD Sender: No OFD packet to send [08:32:16]OFD Sender: No OFD packet to send [08:32:21]OFD Sender: No OFD packet to send [08:32:26]OFD Sender: No OFD packet to send [08:32:31]OFD Sender: No OFD packet to send [08:32:36]OFD Sender: No OFD packet to send [08:32:41]OFD Sender: No OFD packet to send [08:32:46]OFD Sender: No OFD packet to send [08:32:51]OFD Sender: No OFD packet to send [08:32:56]OFD Sender: No OFD packet to send [08:33:01]OFD Sender: No OFD packet to send [08:33:06]OFD Sender: No OFD packet to send [08:33:11]OFD Sender: No OFD packet to send [08:33:16]OFD Sender: No OFD packet to send [08:33:20]accept exits with 9 [08:33:20]New connection [08:33:20]New thread 3067514212 created [08:33:20]Thread 3067370852 joined [08:33:20]Waiting for new connection... [08:33:20] Sock 9.Parse request [08:33:20]Sock 9.Check first char [08:33:20]Sock 9.First char is OK [08:33:20]request: POST /json_proto HTTP/1.0 [08:33:20]Method: POST [08:33:20]URL: /json_proto [08:33:20]Method is POST - this is cgi request [08:33:20]url: /json_proto [08:33:20]query_string will be loaded in cgi processing [08:33:20]execute_cgi json_proto POST (null) [08:33:20]execute_cgi path=json_proto method=POST [08:33:20]POST find Content-Length [08:33:20]Host: 172.17.51.3:8080 [08:33:20]Content-Length: 677 [08:33:20]Content-Type: application/json [08:33:20] [08:33:20]POST finish read [08:33:20]Found Content-Length = 677 [08:33:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342639", "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:33:20]execute_script... [08:33: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)342639", "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:33:20]POST & json_proto [08:33:20]process_json_proto [08:33:20]json parsed OK: [08:33:20]protocol is kg_v1.0 [08:33:20]action value=close_receipt [08:33:20]process_action close_receipt [08:33:20]cmd_close_receipt [08:33:20]MH_GetDate [08:33:20]Write to MH i2c: F0 00 00 84 6A DD [08:33:20]Write i2c OK [08:33:20]MH_I2C_Read... [08:33:20]Read from MH i2c: F0 [08:33:20]MH_I2C_Read... [08:33:20]Read from MH i2c: F0 09 00 [08:33:20]MH_I2C_Read... [08:33:20]Read from MH i2c: F0 09 00 84 6A 00 58 C0 14 67 04 C1 95 66 39 [08:33:20]GetLastDocTimeStamp 1729413071 [08:33:20]current date 1729413208 [08:33:20]FM_GetShiftState [08:33:20]SAM_PROTO_GetShiftState [08:33:20]wFMCommunicate request_size=4 [08:33:20]MH_SAM_APDU [08:33:20]CAPDU: 80 13 01 00 [08:33:20]Write to MH i2c: E2 08 00 85 6A 80 13 01 00 00 00 00 00 6C [08:33:20]Write i2c OK [08:33:20]MH_I2C_Read... [08:33:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:33:20]Read from MH i2c: E2 [08:33:20]MH_I2C_Read... [08:33:20]Read from MH i2c: E2 0E 00 [08:33:20]MH_I2C_Read... [08:33:20]Read from MH i2c: E2 0E 00 85 6A 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 52 [08:33:20]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [08:33:20]wFMCommunicate OK [08:33:20]SAM_PROTO_GetShiftState done [08:33:20]FM_GetShiftState done [08:33:20]opened in 1729384718 [08:33:20]opened+sec_in_day 1729471118 [08:33:20]quantity*price = 50041 [08:33:20]sum+1 = 50042 [08:33:20]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 СНО: Общий режим Чек 32 20.10.2024 08:33 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30250 ФПД: 231989205876701 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T083329&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30250&fm=231989205876701&tin=02508201610067®Number=0000000000186857&sum=50000 [08:33:21]StoreToDocumentArchive [08:33:21]shift 114 fd 30250 [08:33:21]save to /storage/0114/doc_00030250 [08:33:21]save last doc name /storage/0114/doc_00030250 to /storage/kkm_last_doc_name [08:33:21]save OK [08:33:21]Clear old archive folders... [08:33:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:33:21]tlvbuf is 00BDBA50 [08:33:21]SAM_PROTO_ClearQueue [08:33:21]wFMCommunicate request_size=4 [08:33:21]MH_SAM_APDU [08:33:21]CAPDU: 80 09 00 00 [08:33:21]Write to MH i2c: E2 08 00 92 6A 80 09 00 00 00 00 00 00 6E [08:33:21]Write i2c OK [08:33:21]MH_I2C_Read... [08:33:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:33:21]Read from MH i2c: E2 [08:33:21]MH_I2C_Read... [08:33:21]Read from MH i2c: E2 03 00 [08:33:21]MH_I2C_Read... [08:33:21]Read from MH i2c: E2 03 00 92 6A 00 90 00 70 [08:33:21]RAPDU: 90 00 [08:33:21]wFMCommunicate OK [08:33:21]SAM_PROTO_ClearQueue done [08:33:21]KKMCreateOFDPacket [08:33:21]OFDProtocolAddRootSTLVToBuf [08:33:21]FM_MakeSignedData [08:33:21]FM_MakeSignedData [08:33:21]SAM_PROTO_SignData [08:33:21]wFMCommunicate request_size=4 [08:33:21]MH_SAM_APDU [08:33:21]CAPDU: 80 0D 01 02 [08:33:21]Write to MH i2c: E2 08 00 93 6A 80 0D 01 02 00 00 00 00 76 [08:33:21]Write i2c OK [08:33:21]MH_I2C_Read... [08:33:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:33:21]Read from MH i2c: E2 [08:33:21]MH_I2C_Read... [08:33:21]Read from MH i2c: E2 03 00 [08:33:21]MH_I2C_Read... [08:33:21]Read from MH i2c: E2 03 00 93 6A 00 90 00 71 [08:33:21]RAPDU: 90 00 [08:33:21]wFMCommunicate OK [08:33:21]wFMCommunicate request_size=255 [08:33:21]MH_SAM_APDU [08:33: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 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 20 00 00 00 F4 03 04 00 59 C0 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 D2 [08:33:21]Write to MH i2c: E2 02 01 94 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 20 00 00 00 F4 03 04 00 59 C0 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 D2 00 00 9F [08:33:21]Write i2c OK [08:33:21]MH_I2C_Read... [08:33:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:33:22]Read from MH i2c: E2 [08:33:22]MH_I2C_Read... [08:33:22]Read from MH i2c: E2 03 00 [08:33:22]MH_I2C_Read... [08:33:22]Read from MH i2c: E2 03 00 94 6A 00 90 00 72 [08:33:22]RAPDU: 90 00 [08:33:22]wFMCommunicate OK [08:33:22]wFMCommunicate request_size=10 [08:33:22]MH_SAM_APDU [08:33:22]CAPDU: 80 0D 02 02 05 FE 32 35 3F DD [08:33:22]Write to MH i2c: E2 0D 00 95 6A 80 0D 02 02 05 00 FE 32 35 3F DD 00 00 04 [08:33:22]Write i2c OK [08:33:22]MH_I2C_Read... [08:33:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:33:22]Read from MH i2c: E2 [08:33:22]MH_I2C_Read... [08:33:22]Read from MH i2c: E2 03 00 [08:33:22]MH_I2C_Read... [08:33:22]Read from MH i2c: E2 03 00 95 6A 00 90 00 73 [08:33:22]RAPDU: 90 00 [08:33:22]wFMCommunicate OK [08:33:22]wFMCommunicate request_size=4 [08:33:22]MH_SAM_APDU [08:33:22]CAPDU: 80 0D 03 02 [08:33:22]Write to MH i2c: E2 08 00 96 6A 80 0D 03 02 00 00 00 00 7B [08:33:22]Write i2c OK [08:33:22]MH_I2C_Read... [08:33:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:33:22]Read from MH i2c: E2 [08:33:22]MH_I2C_Read... [08:33:22]Read from MH i2c: E2 0B 00 [08:33:22]MH_I2C_Read... [08:33:22]Read from MH i2c: E2 0B 00 96 6A 00 A9 06 09 E2 7B CE F1 84 90 00 D4 [08:33:22]RAPDU: A9 06 09 E2 7B CE F1 84 90 00 [08:33:22]wFMCommunicate OK [08:33:22]SAM_PROTO_SignData done [08:33:22]FM_MakeSignedData done [08:33:22]CreateOFDProtocolMessage [08:33:22]wFMCommunicate request_size=4 [08:33:22]MH_SAM_APDU [08:33:22]CAPDU: 80 11 00 00 [08:33:22]Write to MH i2c: E2 08 00 97 6A 80 11 00 00 00 00 00 00 7B [08:33:22]Write i2c OK [08:33:22]MH_I2C_Read... [08:33:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:33:22]Read from MH i2c: E2 [08:33:22]MH_I2C_Read... [08:33:22]Read from MH i2c: E2 17 00 [08:33:22]MH_I2C_Read... [08:33:22]Read from MH i2c: E2 17 00 97 6A 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:33: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:33:22]wFMCommunicate OK [08:33:22]CreateOFDProtocolMessage done [08:33:22]OFDSenderStorePacket 30250 [08:33:22]StoreOFDPacket docnum=30250 [08:33: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 6E 1F 07 01 29 B0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 20 00 00 00 F4 03 04 00 59 C0 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 D2 FE 32 35 3F DD A9 06 09 E2 7B CE F1 84 [08:33:22]CheckFolder [08:33:22]dirname=/storage/ofd_packets [08:33:22]CheckFolder done [08:33:22]ProducePacketName [08:33:22]name=ofd_packets/00030250 [08:33:22]NVStorageSaveData ofd_packets/00030250 [08:33:22]File name is /storage/ofd_packets/00030250 [08:33:22]Write 301 bytes [08:33:22]NVStorageSaveData done [08:33:22]OFDSenderStorePacket done [08:33:22]KKMCreateOFDPacket done [08:33:22]NVStorageSaveData kkm_last_timestamp [08:33:22]File name is /storage/kkm_last_timestamp [08:33:22]Write 4 bytes [08:33:22]NVStorageSaveData done [08:33:22]ExternCall_PrintAddStr [08:33:22]wPrintStart [08:33:22]Write to MH i2c: 01 00 00 98 6A 02 [08:33:22]Write i2c OK [08:33:22]MH_I2C_Read... [08:33:22]Read from MH i2c: 01 [08:33:22]MH_I2C_Read... [08:33:22]Read from MH i2c: 01 07 00 [08:33:22]MH_I2C_Read... [08:33:22]Read from MH i2c: 01 07 00 98 6A 00 00 00 00 00 FF 0F 17 [08:33:22]RasterBufferAndPrint [08:33:22]line Счет N : (1)342639 [08:33:22]line ИНН: 02508201610067 [08:33:22]line Контрольно-Кассовый Чек [08:33:22]line ПРОДАЖА [08:33:22]line ТРК (МРК, ГНК) : 53 [08:33:22]line Товар: 2710124130 [08:33:22]line Аи-92-К-2 [08:33:22]line 7.480 * 66.90 [08:33:22]line = 500.41 [08:33:22]line НДС 12% НСП 1% [08:33:22]line > о реализуемом товаре [08:33:22]line ОКРУГЛЕНИЕ: -0.41 [08:33:22]line ИТОГО: 500.00 [08:33:22]line Внесено: 500.00 [08:33:22]line СДАЧА: 0.00 [08:33:22]line НСП 1% : 4.43 [08:33:22]line НДС 12% : 53.14 [08:33:22]line Наличными: 500.00 [08:33:22]line Безнал.: 0.00 [08:33:22]line Место: АЗС № 78 "Партнер Нефть" [08:33:22]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [08:33:22]line СНО: Общий режим [08:33:22]line Чек 32 20.10.2024 08:33 [08:33:22]line Смена: 114 ФФД: 1.0 [08:33:22]line ЗНМ: 0300000137 [08:33:22]line РНМ: 0000000000186857 [08:33:22]line Версия ККМ: v1.0 [08:33:22]line ФМ: 0000000002094219 [08:33:22]line ФД: 30250 [08:33:22]line ФПД: 231989205876701 [08:33:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T083329&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30250&fm=231989205876701&tin=02508201610067®Number=0000000000186857&sum=50000 [08:33:22]OFD Sender: Processing packet 30250 [packets to send 10, broken 9] [08:33:22]ProducePacketName [08:33:22]name=ofd_packets/00030250 [08:33:22]OFD Sender: To server: pG, [08:33:22]CommunicateWithHost lk.salyk.kg:30040 [08:33:22]ConnectInit lk.salyk.kg [08:33:22]written 0, free lines is 4095 [08:33:22]Connected sock=10 [08:33: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 6E 1F 07 01 29 B0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 20 00 00 00 F4 03 04 00 59 C0 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 D2 FE 32 35 3F DD A9 06 09 E2 7B CE F1 84 [08:33: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 37 BF 47 00 47 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 2A 76 00 00 F4 03 04 00 DD 6A 14 67 B6 04 01 00 00 DF 14 5E DC 09 16 7D CE [08:33:22]CommunicateWithHost err = 0 [08:33:22]CheckOFDResponse [08:33:22]1017 (14) - 77093643461234 [08:33:22]1041 (16) - 0000000002094219 [08:33:22]1040 (4) - 30250 [08:33:22]1012 (4) - 20.10.2024 02:28 [08:33:22]1206 (1) - 0 [08:33:22]OFD Sender: Remove packet 30250 [08:33:22]ProducePacketName [08:33:22]name=ofd_packets/00030250 [08:33:22]NVStorageDeleteData [08:33:23]Write to MH i2c: 01 00 00 C3 6A 2D [08:33:23]Write i2c OK [08:33:23]MH_I2C_Read... [08:33:23]Read from MH i2c: 01 [08:33:23]MH_I2C_Read... [08:33:23]Read from MH i2c: 01 07 00 [08:33:23]MH_I2C_Read... [08:33:23]Read from MH i2c: 01 07 00 C3 6A 00 00 00 00 00 02 0D 43 [08:33:23]RasterBufferAndPrint [08:33:23]line [08:33:23]line [08:33:23]line [08:33:23]line [08:33:23]line [08:33:23]written 0, free lines is 3339 [08:33:23]MH_Cut [08:33:23]Write to MH i2c: D1 01 00 CA 6A 01 06 [08:33:23]Write i2c OK [08:33:23]MH_I2C_Read... [08:33:23]Read from MH i2c: D1 [08:33:23]MH_I2C_Read... [08:33:23]Read from MH i2c: D1 01 00 [08:33:23]MH_I2C_Read... [08:33:23]Read from MH i2c: D1 01 00 CA 6A 00 05 [08:33:23]Write to MH i2c: 01 00 00 CB 6A 35 [08:33:23]Write i2c OK [08:33:23]MH_I2C_Read... [08:33:23]OFD Sender: No OFD packet to send [08:33:23]*** Cut start [08:33:23]*** Partial cut [08:33:23]*** CUTSNS_PIN = 1 [08:33:23]*** CUTSNS_PIN = 0 [08:33:24]*** Brake cut motor [08:33:24]Read from MH i2c: 01 [08:33:24]MH_I2C_Read... [08:33:24]*** Stop cut motor [08:33:24]*** Cut end [08:33:24]Read from MH i2c: 01 07 00 [08:33:24]MH_I2C_Read... [08:33:24]Read from MH i2c: 01 07 00 CB 6A 00 00 00 00 00 FF 0F 4A [08:33:24]process_action close_receipt done [08:33:24]requested_data is exist [08:33:24]produce_requested_data [08:33:24]requested_item fm.sn is exist - process it [08:33:24]wFMCommunicate request_size=4 [08:33:24]MH_SAM_APDU [08:33:24]CAPDU: 80 11 00 00 [08:33:24]Write to MH i2c: E2 08 00 CC 6A 80 11 00 00 00 00 00 00 B0 [08:33:24]Write i2c OK [08:33:24]MH_I2C_Read... [08:33:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:33:24]Read from MH i2c: E2 [08:33:24]MH_I2C_Read... [08:33:24]Read from MH i2c: E2 17 00 [08:33:24]MH_I2C_Read... [08:33:24]Read from MH i2c: E2 17 00 CC 6A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 FE [08:33:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [08:33:24]wFMCommunicate OK [08:33:24]requested_item fd.num is exist - process it [08:33:24]SAM_PROTO_GetFieldsCounters [08:33:24]wFMCommunicate request_size=4 [08:33:24]MH_SAM_APDU [08:33:24]CAPDU: 80 13 00 00 [08:33:24]Write to MH i2c: E2 08 00 CD 6A 80 13 00 00 00 00 00 00 B3 [08:33:24]Write i2c OK [08:33:24]MH_I2C_Read... [08:33:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:33:24]Read from MH i2c: E2 [08:33:24]MH_I2C_Read... [08:33:24]Read from MH i2c: E2 62 00 [08:33:24]MH_I2C_Read... [08:33:24]Read from MH i2c: E2 62 00 CD 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 2A 76 00 00 0E 04 04 00 72 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 4B [08:33: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 2A 76 00 00 0E 04 04 00 72 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:33:24]wFMCommunicate OK [08:33:24]SAM_PROTO_GetFieldsCounters done [08:33:24]requested_item shift.num is exist - process it [08:33:24]requested_item shift.opened is exist - process it [08:33:24]req_shift_opened [08:33:24]FM_GetShiftState [08:33:24]SAM_PROTO_GetShiftState [08:33:24]wFMCommunicate request_size=4 [08:33:24]MH_SAM_APDU [08:33:24]CAPDU: 80 13 01 00 [08:33:24]Write to MH i2c: E2 08 00 CE 6A 80 13 01 00 00 00 00 00 B5 [08:33:24]Write i2c OK [08:33:24]MH_I2C_Read... [08:33:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:33:24]Read from MH i2c: E2 [08:33:24]MH_I2C_Read... [08:33:24]Read from MH i2c: E2 0E 00 [08:33:24]MH_I2C_Read... [08:33:24]Read from MH i2c: E2 0E 00 CE 6A 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 9B [08:33:24]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [08:33:24]wFMCommunicate OK [08:33:24]SAM_PROTO_GetShiftState done [08:33:24]FM_GetShiftState done [08:33:24]req_shift_opened done [08:33:24]requested_item shift.open_date is exist - process it [08:33:24]req_shift_open_date [08:33:24]req_shift_open_date done [08:33:24]produce_requested_data done [08:33:24]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30250,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [08:33:24]process_action_free close_receipt [08:33:24]json_value_free [08:33:24]json_value_free done [08:33:24]process_json_proto returns [08:33:24]Send response to host [08:33:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30250,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [08:33:24]free response buf [08:33:24]execute_script done [08:33:24]execute_script returns [08:33:24]free content buf [08:33:24]Sock 9.Close socket [08:33:24]Sock 9.Thread stoped [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:23]OFD Sender: No OFD packet to send [08:36:28]OFD Sender: No OFD packet to send [08:36:33]OFD Sender: No OFD packet to send [08:36:38]OFD Sender: No OFD packet to send [08:36:43]OFD Sender: No OFD packet to send [08:36:48]OFD Sender: No OFD packet to send [08:36:53]OFD Sender: No OFD packet to send [08:36:58]OFD Sender: No OFD packet to send [08:37:03]OFD Sender: No OFD packet to send [08:37:08]OFD Sender: No OFD packet to send [08:37:13]OFD Sender: No OFD packet to send [08:37:18]OFD Sender: No OFD packet to send [08:37:23]OFD Sender: No OFD packet to send [08:37:28]OFD Sender: No OFD packet to send [08:37:30]accept exits with 7 [08:37:30]New connection [08:37:30]New thread 3067370852 created [08:37:30]Thread 3067514212 joined [08:37:30]Waiting for new connection... [08:37:30] Sock 7.Parse request [08:37:30]Sock 7.Check first char [08:37:30]Sock 7.First char is OK [08:37:30]request: POST /json_proto HTTP/1.0 [08:37:30]Method: POST [08:37:30]URL: /json_proto [08:37:30]Method is POST - this is cgi request [08:37:30]url: /json_proto [08:37:30]query_string will be loaded in cgi processing [08:37:30]execute_cgi json_proto POST (null) [08:37:30]execute_cgi path=json_proto method=POST [08:37:30]POST find Content-Length [08:37:30]Host: 172.17.51.3:8080 [08:37:30]Content-Length: 751 [08:37:30]Content-Type: application/json [08:37:30] [08:37:30]POST finish read [08:37:30]Found Content-Length = 751 [08:37:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342640", "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" : 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\u000A30032280", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:37:30]execute_script... [08: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)342640", "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" : 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\u000A30032280", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:37:30]POST & json_proto [08:37:30]process_json_proto [08:37:30]json parsed OK: [08:37:30]protocol is kg_v1.0 [08:37:30]action value=close_receipt [08:37:30]process_action close_receipt [08:37:30]cmd_close_receipt [08:37:30]MH_GetDate [08:37:30]Write to MH i2c: F0 00 00 CF 6A 28 [08:37:30]Write i2c OK [08:37:30]MH_I2C_Read... [08:37:30]Read from MH i2c: F0 [08:37:30]MH_I2C_Read... [08:37:30]Read from MH i2c: F0 09 00 [08:37:30]MH_I2C_Read... [08:37:30]Read from MH i2c: F0 09 00 CF 6A 00 53 C1 14 67 04 C1 95 66 80 [08:37:30]GetLastDocTimeStamp 1729413209 [08:37:30]current date 1729413459 [08:37:30]FM_GetShiftState [08:37:30]SAM_PROTO_GetShiftState [08:37:30]wFMCommunicate request_size=4 [08:37:30]MH_SAM_APDU [08:37:30]CAPDU: 80 13 01 00 [08:37:30]Write to MH i2c: E2 08 00 D0 6A 80 13 01 00 00 00 00 00 B7 [08:37:30]Write i2c OK [08:37:30]MH_I2C_Read... [08:37:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:37:30]Read from MH i2c: E2 [08:37:30]MH_I2C_Read... [08:37:30]Read from MH i2c: E2 0E 00 [08:37:30]MH_I2C_Read... [08:37:30]Read from MH i2c: E2 0E 00 D0 6A 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 9D [08:37:30]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [08:37:30]wFMCommunicate OK [08:37:30]SAM_PROTO_GetShiftState done [08:37:30]FM_GetShiftState done [08:37:30]opened in 1729384718 [08:37:30]opened+sec_in_day 1729471118 [08:37:30]quantity*price = 0 [08:37:30]sum+1 = 1 [08: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 СНО: Общий режим Чек 33 20.10.2024 08:37 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30032280 ФМ: 0000000002094219 ФД: 30251 ФПД: 71289502237787 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T083739&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30251&fm=71289502237787&tin=02508201610067®Number=0000000000186857&sum=0 [08:37:32]StoreToDocumentArchive [08:37:32]shift 114 fd 30251 [08:37:32]save to /storage/0114/doc_00030251 [08:37:32]save last doc name /storage/0114/doc_00030251 to /storage/kkm_last_doc_name [08:37:32]save OK [08:37:32]Clear old archive folders... [08:37:32]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:37:32]tlvbuf is 00AEB400 [08:37:32]SAM_PROTO_ClearQueue [08:37:32]wFMCommunicate request_size=4 [08:37:32]MH_SAM_APDU [08:37:32]CAPDU: 80 09 00 00 [08:37:32]Write to MH i2c: E2 08 00 DD 6A 80 09 00 00 00 00 00 00 B9 [08:37:32]Write i2c OK [08:37:32]MH_I2C_Read... [08:37:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:37:32]Read from MH i2c: E2 [08:37:32]MH_I2C_Read... [08:37:32]Read from MH i2c: E2 03 00 [08:37:32]MH_I2C_Read... [08:37:32]Read from MH i2c: E2 03 00 DD 6A 00 90 00 BB [08:37:32]RAPDU: 90 00 [08:37:32]wFMCommunicate OK [08:37:32]SAM_PROTO_ClearQueue done [08:37:32]KKMCreateOFDPacket [08:37:32]OFDProtocolAddRootSTLVToBuf [08:37:32]FM_MakeSignedData [08:37:32]FM_MakeSignedData [08:37:32]SAM_PROTO_SignData [08:37:32]wFMCommunicate request_size=4 [08:37:32]MH_SAM_APDU [08:37:32]CAPDU: 80 0D 01 02 [08:37:32]Write to MH i2c: E2 08 00 DE 6A 80 0D 01 02 00 00 00 00 C1 [08:37:32]Write i2c OK [08:37:32]MH_I2C_Read... [08:37:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:37:32]Read from MH i2c: E2 [08:37:32]MH_I2C_Read... [08:37:32]Read from MH i2c: E2 03 00 [08:37:32]MH_I2C_Read... [08:37:32]Read from MH i2c: E2 03 00 DE 6A 00 90 00 BC [08:37:32]RAPDU: 90 00 [08:37:32]wFMCommunicate OK [08:37:32]wFMCommunicate request_size=255 [08:37:32]MH_SAM_APDU [08:37:32]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 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 21 00 00 00 F4 03 04 00 53 C1 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 40 D6 61 75 [08:37:32]Write to MH i2c: E2 02 01 DF 6A 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 21 00 00 00 F4 03 04 00 53 C1 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 40 D6 61 75 00 00 D8 [08:37:32]Write i2c OK [08:37:32]MH_I2C_Read... [08:37:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:37:32]Read from MH i2c: E2 [08:37:32]MH_I2C_Read... [08:37:32]Read from MH i2c: E2 03 00 [08:37:32]MH_I2C_Read... [08:37:32]Read from MH i2c: E2 03 00 DF 6A 00 90 00 BD [08:37:32]RAPDU: 90 00 [08:37:32]wFMCommunicate OK [08:37:32]wFMCommunicate request_size=7 [08:37:32]MH_SAM_APDU [08:37:32]CAPDU: 80 0D 02 02 02 04 5B [08:37:32]Write to MH i2c: E2 0A 00 E0 6A 80 0D 02 02 02 00 04 5B 00 00 27 [08:37:32]Write i2c OK [08:37:32]MH_I2C_Read... [08:37:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:37:32]Read from MH i2c: E2 [08:37:32]MH_I2C_Read... [08:37:32]Read from MH i2c: E2 03 00 [08:37:32]MH_I2C_Read... [08:37:32]Read from MH i2c: E2 03 00 E0 6A 00 90 00 BE [08:37:32]RAPDU: 90 00 [08:37:32]wFMCommunicate OK [08:37:32]wFMCommunicate request_size=4 [08:37:32]MH_SAM_APDU [08:37:32]CAPDU: 80 0D 03 02 [08:37:32]Write to MH i2c: E2 08 00 E1 6A 80 0D 03 02 00 00 00 00 C6 [08:37:32]Write i2c OK [08:37:32]MH_I2C_Read... [08:37:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:37:32]Read from MH i2c: E2 [08:37:32]MH_I2C_Read... [08:37:32]Read from MH i2c: E2 0B 00 [08:37:32]MH_I2C_Read... [08:37:32]Read from MH i2c: E2 0B 00 E1 6A 00 3E 68 3F A0 57 A7 44 BF 90 00 4D [08:37:32]RAPDU: 3E 68 3F A0 57 A7 44 BF 90 00 [08:37:32]wFMCommunicate OK [08:37:32]SAM_PROTO_SignData done [08:37:32]FM_MakeSignedData done [08:37:32]CreateOFDProtocolMessage [08:37:32]wFMCommunicate request_size=4 [08:37:32]MH_SAM_APDU [08:37:32]CAPDU: 80 11 00 00 [08:37:32]Write to MH i2c: E2 08 00 E2 6A 80 11 00 00 00 00 00 00 C6 [08:37:32]Write i2c OK [08:37:32]MH_I2C_Read... [08:37:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:37:32]Read from MH i2c: E2 [08:37:32]MH_I2C_Read... [08:37:32]Read from MH i2c: E2 17 00 [08:37:32]MH_I2C_Read... [08:37:32]Read from MH i2c: E2 17 00 E2 6A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 14 [08: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 [08:37:32]wFMCommunicate OK [08:37:32]CreateOFDProtocolMessage done [08:37:32]OFDSenderStorePacket 30251 [08:37:32]StoreOFDPacket docnum=30251 [08: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 0C 01 00 00 07 E0 04 01 AD 0C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 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 21 00 00 00 F4 03 04 00 53 C1 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 40 D6 61 75 04 5B 3E 68 3F A0 57 A7 44 BF [08:37:32]CheckFolder [08:37:32]dirname=/storage/ofd_packets [08:37:32]CheckFolder done [08:37:32]ProducePacketName [08:37:32]name=ofd_packets/00030251 [08:37:32]NVStorageSaveData ofd_packets/00030251 [08:37:32]File name is /storage/ofd_packets/00030251 [08:37:32]Write 298 bytes [08:37:32]NVStorageSaveData done [08:37:32]OFDSenderStorePacket done [08:37:32]KKMCreateOFDPacket done [08:37:32]NVStorageSaveData kkm_last_timestamp [08:37:32]File name is /storage/kkm_last_timestamp [08:37:32]Write 4 bytes [08:37:32]NVStorageSaveData done [08:37:32]ExternCall_PrintAddStr [08:37:32]wPrintStart [08:37:32]Write to MH i2c: 01 00 00 E3 6A 4D [08:37:32]Write i2c OK [08:37:32]MH_I2C_Read... [08:37:32]Read from MH i2c: 01 [08:37:32]MH_I2C_Read... [08:37:32]Read from MH i2c: 01 07 00 [08:37:32]MH_I2C_Read... [08:37:32]Read from MH i2c: 01 07 00 E3 6A 00 00 00 00 00 FF 0F 62 [08:37:32]RasterBufferAndPrint [08:37:32]line Счет N : (1)342640 [08:37:32]line ИНН: 02508201610067 [08:37:32]line Контрольно-Кассовый Чек [08:37:32]line ПРОДАЖА [08:37:32]line ТРК (МРК, ГНК) : 34 [08:37:32]line Товар: 2710194210 [08:37:32]line ДТ-К-2 [08:37:32]line 25.000 * 0.00 [08:37:32]line = 0.00 [08:37:32]line НДС 12% НСП 1% [08:37:32]line > о реализуемом товаре [08:37:32]line ИТОГО: 0.00 [08:37:32]line НСП 1% : 0.00 [08:37:32]line НДС 12% : 0.00 [08:37:32]line Наличными: 0.00 [08:37:32]line Безнал.: 0.00 [08:37:32]line Место: АЗС № 78 "Партнер Нефть" [08:37:32]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [08:37:32]line СНО: Общий режим [08:37:32]line Чек 33 20.10.2024 08:37 [08:37:32]line Смена: 114 ФФД: 1.0 [08:37:32]line ЗНМ: 0300000137 [08:37:32]line РНМ: 0000000000186857 [08:37:32]line Версия ККМ: v1.0 [08:37:32]line Талоны: ТК ГПНА Online [08:37:32]line 30032280 [08:37:32]line ФМ: 0000000002094219 [08:37:32]line ФД: 30251 [08:37:32]line ФПД: 71289502237787 [08:37:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T083739&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30251&fm=71289502237787&tin=02508201610067®Number=0000000000186857&sum=0 [08:37:32]OFD Sender: Processing packet 30251 [packets to send 10, broken 9] [08:37:32]ProducePacketName [08:37:32]name=ofd_packets/00030251 [08:37:32]OFD Sender: To server: pG, [08:37:32]CommunicateWithHost lk.salyk.kg:30040 [08:37:32]ConnectInit lk.salyk.kg [08:37:32]written 0, free lines is 4095 [08:37:33]Connected sock=11 [08:37: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 0C 01 00 00 07 E0 04 01 AD 0C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 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 21 00 00 00 F4 03 04 00 53 C1 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 40 D6 61 75 04 5B 3E 68 3F A0 57 A7 44 BF [08:37: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 5D 1F 47 00 68 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 2B 76 00 00 F4 03 04 00 D7 6B 14 67 B6 04 01 00 00 03 F7 EC F2 FD 12 1C E3 [08:37:33]CommunicateWithHost err = 0 [08:37:33]CheckOFDResponse [08:37:33]1017 (14) - 77093643461234 [08:37:33]1041 (16) - 0000000002094219 [08:37:33]1040 (4) - 30251 [08:37:33]1012 (4) - 20.10.2024 02:32 [08:37:33]1206 (1) - 0 [08:37:33]OFD Sender: Remove packet 30251 [08:37:33]ProducePacketName [08:37:33]name=ofd_packets/00030251 [08:37:33]NVStorageDeleteData [08:37:33]Write to MH i2c: 01 00 00 0D 6B 78 [08:37:33]Write i2c OK [08:37:33]MH_I2C_Read... [08:37:33]Read from MH i2c: 01 [08:37:33]MH_I2C_Read... [08:37:33]Read from MH i2c: 01 07 00 [08:37:33]MH_I2C_Read... [08:37:33]Read from MH i2c: 01 07 00 0D 6B 00 00 00 00 00 03 0D 8F [08:37:33]RasterBufferAndPrint [08:37:33]line [08:37:33]line [08:37:33]line [08:37:33]line [08:37:33]line [08:37:33]written 0, free lines is 3337 [08:37:33]MH_Cut [08:37:33]Write to MH i2c: D1 01 00 14 6B 01 51 [08:37:33]Write i2c OK [08:37:33]MH_I2C_Read... [08:37:33]Read from MH i2c: D1 [08:37:33]MH_I2C_Read... [08:37:33]Read from MH i2c: D1 01 00 [08:37:33]MH_I2C_Read... [08:37:33]Read from MH i2c: D1 01 00 14 6B 00 50 [08:37:33]Write to MH i2c: 01 00 00 15 6B 80 [08:37:33]Write i2c OK [08:37:33]MH_I2C_Read... [08:37:33]OFD Sender: No OFD packet to send [08:37:34]*** Cut start [08:37:34]*** Partial cut [08:37:34]*** CUTSNS_PIN = 1 [08:37:34]*** CUTSNS_PIN = 0 [08:37:34]*** Brake cut motor [08:37:34]Read from MH i2c: 01 [08:37:34]MH_I2C_Read... [08:37:34]*** Stop cut motor [08:37:34]*** Cut end [08:37:34]Read from MH i2c: 01 07 00 [08:37:34]MH_I2C_Read... [08:37:34]Read from MH i2c: 01 07 00 15 6B 00 00 00 00 00 FF 0F 95 [08:37:34]process_action close_receipt done [08:37:34]requested_data is exist [08:37:34]produce_requested_data [08:37:34]requested_item fm.sn is exist - process it [08:37:34]wFMCommunicate request_size=4 [08:37:34]MH_SAM_APDU [08:37:34]CAPDU: 80 11 00 00 [08:37:34]Write to MH i2c: E2 08 00 16 6B 80 11 00 00 00 00 00 00 FB [08:37:34]Write i2c OK [08:37:34]MH_I2C_Read... [08:37:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:37:34]Read from MH i2c: E2 [08:37:34]MH_I2C_Read... [08:37:34]Read from MH i2c: E2 17 00 [08:37:34]MH_I2C_Read... [08:37:34]Read from MH i2c: E2 17 00 16 6B 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: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 [08:37:34]wFMCommunicate OK [08:37:34]requested_item fd.num is exist - process it [08:37:34]SAM_PROTO_GetFieldsCounters [08:37:34]wFMCommunicate request_size=4 [08:37:34]MH_SAM_APDU [08:37:34]CAPDU: 80 13 00 00 [08:37:34]Write to MH i2c: E2 08 00 17 6B 80 13 00 00 00 00 00 00 FE [08:37:34]Write i2c OK [08:37:34]MH_I2C_Read... [08:37:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:37:34]Read from MH i2c: E2 [08:37:34]MH_I2C_Read... [08:37:34]Read from MH i2c: E2 62 00 [08:37:34]MH_I2C_Read... [08:37:34]Read from MH i2c: E2 62 00 17 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 76 00 00 0E 04 04 00 72 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: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 2B 76 00 00 0E 04 04 00 72 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:37:34]wFMCommunicate OK [08:37:34]SAM_PROTO_GetFieldsCounters done [08:37:34]requested_item shift.num is exist - process it [08:37:34]requested_item shift.opened is exist - process it [08:37:34]req_shift_opened [08:37:34]FM_GetShiftState [08:37:34]SAM_PROTO_GetShiftState [08:37:34]wFMCommunicate request_size=4 [08:37:34]MH_SAM_APDU [08:37:34]CAPDU: 80 13 01 00 [08:37:34]Write to MH i2c: E2 08 00 18 6B 80 13 01 00 00 00 00 00 00 [08:37:34]Write i2c OK [08:37:34]MH_I2C_Read... [08:37:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:37:34]Read from MH i2c: E2 [08:37:34]MH_I2C_Read... [08:37:34]Read from MH i2c: E2 0E 00 [08:37:34]MH_I2C_Read... [08:37:34]Read from MH i2c: E2 0E 00 18 6B 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 E6 [08:37:34]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [08:37:34]wFMCommunicate OK [08:37:34]SAM_PROTO_GetShiftState done [08:37:34]FM_GetShiftState done [08:37:34]req_shift_opened done [08:37:34]requested_item shift.open_date is exist - process it [08:37:34]req_shift_open_date [08:37:34]req_shift_open_date done [08:37:34]produce_requested_data done [08:37:34]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30251,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [08:37:34]process_action_free close_receipt [08:37:34]json_value_free [08:37:34]json_value_free done [08:37:34]process_json_proto returns [08:37:34]Send response to host [08:37:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30251,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [08:37:34]free response buf [08:37:34]execute_script done [08:37:34]execute_script returns [08:37:34]free content buf [08:37:34]Sock 7.Close socket [08:37:34]Sock 7.Thread stoped [08:37:38]OFD Sender: No OFD packet to send [08:37:43]OFD Sender: No OFD packet to send [08:37:48]OFD Sender: No OFD packet to send [08:37:53]OFD Sender: No OFD packet to send [08:37:58]OFD Sender: No OFD packet to send [08:38:03]OFD Sender: No OFD packet to send [08:38:08]OFD Sender: No OFD packet to send [08:38:13]OFD Sender: No OFD packet to send [08:38:18]OFD Sender: No OFD packet to send [08:38:23]OFD Sender: No OFD packet to send [08:38:28]OFD Sender: No OFD packet to send [08:38:33]OFD Sender: No OFD packet to send [08:38:38]OFD Sender: No OFD packet to send [08:38:43]OFD Sender: No OFD packet to send [08:38:48]OFD Sender: No OFD packet to send [08:38:53]OFD Sender: No OFD packet to send [08:38:58]OFD Sender: No OFD packet to send [08:39:03]OFD Sender: No OFD packet to send [08:39:08]OFD Sender: No OFD packet to send [08:39:13]OFD Sender: No OFD packet to send [08:39:18]OFD Sender: No OFD packet to send [08:39:23]OFD Sender: No OFD packet to send [08:39:28]OFD Sender: No OFD packet to send [08:39:33]OFD Sender: No OFD packet to send [08:39:38]OFD Sender: No OFD packet to send [08:39:43]OFD Sender: No OFD packet to send [08:39:48]OFD Sender: No OFD packet to send [08:39:53]OFD Sender: No OFD packet to send [08:39:58]OFD Sender: No OFD packet to send [08:40:03]OFD Sender: No OFD packet to send [08:40:08]OFD Sender: No OFD packet to send [08:40:13]OFD Sender: No OFD packet to send [08:40:18]OFD Sender: No OFD packet to send [08:40:23]OFD Sender: No OFD packet to send [08:40:28]OFD Sender: No OFD packet to send [08:40:33]OFD Sender: No OFD packet to send [08:40:38]OFD Sender: No OFD packet to send [08:40:43]OFD Sender: No OFD packet to send [08:40:48]OFD Sender: No OFD packet to send [08:40:53]OFD Sender: No OFD packet to send [08:40:58]OFD Sender: No OFD packet to send [08:41:03]OFD Sender: No OFD packet to send [08:41:08]OFD Sender: No OFD packet to send [08:41:13]OFD Sender: No OFD packet to send [08:41:18]OFD Sender: No OFD packet to send [08:41:23]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:39]accept exits with 9 [08:43:39]New connection [08:43:39]New thread 3067514212 created [08:43:39]Thread 3067370852 joined [08:43:39]Waiting for new connection... [08:43:39] Sock 9.Parse request [08:43:39]Sock 9.Check first char [08:43:39]Sock 9.First char is OK [08:43:39]request: POST /json_proto HTTP/1.0 [08:43:39]Method: POST [08:43:39]URL: /json_proto [08:43:39]Method is POST - this is cgi request [08:43:39]url: /json_proto [08:43:39]query_string will be loaded in cgi processing [08:43:39]execute_cgi json_proto POST (null) [08:43:39]execute_cgi path=json_proto method=POST [08:43:39]POST find Content-Length [08:43:39]Host: 172.17.51.3:8080 [08:43:39]Content-Length: 678 [08:43:39]Content-Type: application/json [08:43:39] [08:43:39]POST finish read [08:43:39]Found Content-Length = 678 [08:43:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342642", "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" : 10.110, "sum" : 750.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 750.00, "total" : 750.00, "payments": [ { "type": 0, "sum" : 750.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:43:39]execute_script... [08:43: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)342642", "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" : 10.110, "sum" : 750.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 750.00, "total" : 750.00, "payments": [ { "type": 0, "sum" : 750.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:43:39]POST & json_proto [08:43:39]process_json_proto [08:43:39]json parsed OK: [08:43:39]protocol is kg_v1.0 [08:43:39]action value=close_receipt [08:43:39]process_action close_receipt [08:43:39]cmd_close_receipt [08:43:39]MH_GetDate [08:43:39]Write to MH i2c: F0 00 00 19 6B 73 [08:43:39]Write i2c OK [08:43:39]MH_I2C_Read... [08:43:39]Read from MH i2c: F0 [08:43:39]MH_I2C_Read... [08:43:39]Read from MH i2c: F0 09 00 [08:43:39]MH_I2C_Read... [08:43:39]Read from MH i2c: F0 09 00 19 6B 00 C4 C2 14 67 04 C1 95 66 3D [08:43:39]GetLastDocTimeStamp 1729413459 [08:43:39]current date 1729413828 [08:43:39]FM_GetShiftState [08:43:39]SAM_PROTO_GetShiftState [08:43:39]wFMCommunicate request_size=4 [08:43:39]MH_SAM_APDU [08:43:39]CAPDU: 80 13 01 00 [08:43:39]Write to MH i2c: E2 08 00 1A 6B 80 13 01 00 00 00 00 00 02 [08:43:39]Write i2c OK [08:43:39]MH_I2C_Read... [08:43:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:43:39]Read from MH i2c: E2 [08:43:39]MH_I2C_Read... [08:43:39]Read from MH i2c: E2 0E 00 [08:43:39]MH_I2C_Read... [08:43:39]Read from MH i2c: E2 0E 00 1A 6B 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 E8 [08:43:39]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [08:43:39]wFMCommunicate OK [08:43:39]SAM_PROTO_GetShiftState done [08:43:39]FM_GetShiftState done [08:43:39]opened in 1729384718 [08:43:39]opened+sec_in_day 1729471118 [08:43:39]quantity*price = 75016 [08:43:39]sum+1 = 75017 [08:43:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 750.00 Внесено: 750.00 СДАЧА: 0.00 НСП 1% : 6.64 НДС 12% : 79.66 Наличными: 750.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 34 20.10.2024 08:43 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30252 ФПД: 41779486456173 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T084348&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30252&fm=41779486456173&tin=02508201610067®Number=0000000000186857&sum=75000 [08:43:41]StoreToDocumentArchive [08:43:41]shift 114 fd 30252 [08:43:41]save to /storage/0114/doc_00030252 [08:43:41]save last doc name /storage/0114/doc_00030252 to /storage/kkm_last_doc_name [08:43:41]save OK [08:43:41]Clear old archive folders... [08:43:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:43:41]tlvbuf is 00A95970 [08:43:41]SAM_PROTO_ClearQueue [08:43:41]wFMCommunicate request_size=4 [08:43:41]MH_SAM_APDU [08:43:41]CAPDU: 80 09 00 00 [08:43:41]Write to MH i2c: E2 08 00 27 6B 80 09 00 00 00 00 00 00 04 [08:43:41]Write i2c OK [08:43:41]MH_I2C_Read... [08:43:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:43:41]Read from MH i2c: E2 [08:43:41]MH_I2C_Read... [08:43:41]Read from MH i2c: E2 03 00 [08:43:41]MH_I2C_Read... [08:43:41]Read from MH i2c: E2 03 00 27 6B 00 90 00 06 [08:43:41]RAPDU: 90 00 [08:43:41]wFMCommunicate OK [08:43:41]SAM_PROTO_ClearQueue done [08:43:41]KKMCreateOFDPacket [08:43:41]OFDProtocolAddRootSTLVToBuf [08:43:41]FM_MakeSignedData [08:43:41]FM_MakeSignedData [08:43:41]SAM_PROTO_SignData [08:43:41]wFMCommunicate request_size=4 [08:43:41]MH_SAM_APDU [08:43:41]CAPDU: 80 0D 01 02 [08:43:41]Write to MH i2c: E2 08 00 28 6B 80 0D 01 02 00 00 00 00 0C [08:43:41]Write i2c OK [08:43:41]MH_I2C_Read... [08:43:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:43:41]Read from MH i2c: E2 [08:43:41]MH_I2C_Read... [08:43:41]Read from MH i2c: E2 03 00 [08:43:41]MH_I2C_Read... [08:43:41]Read from MH i2c: E2 03 00 28 6B 00 90 00 07 [08:43:41]RAPDU: 90 00 [08:43:41]wFMCommunicate OK [08:43:41]wFMCommunicate request_size=255 [08:43:41]MH_SAM_APDU [08:43:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 7E 27 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 08 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 1F 00 00 00 00 07 04 06 00 F8 24 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 C4 C2 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 25 [08:43:41]Write to MH i2c: E2 02 01 29 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 7E 27 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 08 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 1F 00 00 00 00 07 04 06 00 F8 24 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 C4 C2 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 25 00 00 75 [08:43:41]Write i2c OK [08:43:41]MH_I2C_Read... [08:43:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:43:41]Read from MH i2c: E2 [08:43:41]MH_I2C_Read... [08:43:41]Read from MH i2c: E2 03 00 [08:43:41]MH_I2C_Read... [08:43:41]Read from MH i2c: E2 03 00 29 6B 00 90 00 08 [08:43:41]RAPDU: 90 00 [08:43:41]wFMCommunicate OK [08:43:41]wFMCommunicate request_size=10 [08:43:41]MH_SAM_APDU [08:43:41]CAPDU: 80 0D 02 02 05 FF 8B 72 F9 6D [08:43:41]Write to MH i2c: E2 0D 00 2A 6B 80 0D 02 02 05 00 FF 8B 72 F9 6D 00 00 7B [08:43:41]Write i2c OK [08:43:41]MH_I2C_Read... [08:43:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:43:41]Read from MH i2c: E2 [08:43:41]MH_I2C_Read... [08:43:41]Read from MH i2c: E2 03 00 [08:43:41]MH_I2C_Read... [08:43:41]Read from MH i2c: E2 03 00 2A 6B 00 90 00 09 [08:43:41]RAPDU: 90 00 [08:43:41]wFMCommunicate OK [08:43:41]wFMCommunicate request_size=4 [08:43:41]MH_SAM_APDU [08:43:41]CAPDU: 80 0D 03 02 [08:43:41]Write to MH i2c: E2 08 00 2B 6B 80 0D 03 02 00 00 00 00 11 [08:43:41]Write i2c OK [08:43:41]MH_I2C_Read... [08:43:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:43:41]Read from MH i2c: E2 [08:43:41]MH_I2C_Read... [08:43:41]Read from MH i2c: E2 0B 00 [08:43:41]MH_I2C_Read... [08:43:41]Read from MH i2c: E2 0B 00 2B 6B 00 EE E9 A5 8E 41 A0 A4 AE 90 00 4F [08:43:41]RAPDU: EE E9 A5 8E 41 A0 A4 AE 90 00 [08:43:41]wFMCommunicate OK [08:43:41]SAM_PROTO_SignData done [08:43:41]FM_MakeSignedData done [08:43:41]CreateOFDProtocolMessage [08:43:41]wFMCommunicate request_size=4 [08:43:41]MH_SAM_APDU [08:43:41]CAPDU: 80 11 00 00 [08:43:41]Write to MH i2c: E2 08 00 2C 6B 80 11 00 00 00 00 00 00 11 [08:43:41]Write i2c OK [08:43:41]MH_I2C_Read... [08:43:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:43:41]Read from MH i2c: E2 [08:43:41]MH_I2C_Read... [08:43:41]Read from MH i2c: E2 17 00 [08:43:41]MH_I2C_Read... [08:43:41]Read from MH i2c: E2 17 00 2C 6B 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:43: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:43:41]wFMCommunicate OK [08:43:41]CreateOFDProtocolMessage done [08:43:41]OFDSenderStorePacket 30252 [08:43:41]StoreOFDPacket docnum=30252 [08:43: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 01 DC 07 01 2E 4F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 7E 27 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 08 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 1F 00 00 00 00 07 04 06 00 F8 24 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 C4 C2 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 25 FF 8B 72 F9 6D EE E9 A5 8E 41 A0 A4 AE [08:43:41]CheckFolder [08:43:41]dirname=/storage/ofd_packets [08:43:41]CheckFolder done [08:43:41]ProducePacketName [08:43:41]name=ofd_packets/00030252 [08:43:41]NVStorageSaveData ofd_packets/00030252 [08:43:41]File name is /storage/ofd_packets/00030252 [08:43:41]Write 301 bytes [08:43:41]NVStorageSaveData done [08:43:41]OFDSenderStorePacket done [08:43:41]KKMCreateOFDPacket done [08:43:41]NVStorageSaveData kkm_last_timestamp [08:43:41]File name is /storage/kkm_last_timestamp [08:43:41]Write 4 bytes [08:43:41]NVStorageSaveData done [08:43:41]ExternCall_PrintAddStr [08:43:41]wPrintStart [08:43:41]Write to MH i2c: 01 00 00 2D 6B 98 [08:43:41]Write i2c OK [08:43:41]MH_I2C_Read... [08:43:41]Read from MH i2c: 01 [08:43:41]MH_I2C_Read... [08:43:41]Read from MH i2c: 01 07 00 [08:43:41]MH_I2C_Read... [08:43:41]Read from MH i2c: 01 07 00 2D 6B 00 00 00 00 00 FF 0F AD [08:43:41]RasterBufferAndPrint [08:43:41]line Счет N : (1)342642 [08:43:41]line ИНН: 02508201610067 [08:43:41]line Контрольно-Кассовый Чек [08:43:41]line ПРОДАЖА [08:43:41]line ТРК (МРК, ГНК) : 42 [08:43:41]line Товар: 2710124500 [08:43:41]line Аи-95-К-3 [08:43:41]line 10.110 * 74.20 [08:43:41]line = 750.16 [08:43:41]line НДС 12% НСП 1% [08:43:41]line > о реализуемом товаре [08:43:41]line ОКРУГЛЕНИЕ: -0.16 [08:43:41]line ИТОГО: 750.00 [08:43:41]line Внесено: 750.00 [08:43:41]line СДАЧА: 0.00 [08:43:41]line НСП 1% : 6.64 [08:43:41]line НДС 12% : 79.66 [08:43:41]line Наличными: 750.00 [08:43:41]line Безнал.: 0.00 [08:43:41]line Место: АЗС № 78 "Партнер Нефть" [08:43:41]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [08:43:41]line СНО: Общий режим [08:43:41]line Чек 34 20.10.2024 08:43 [08:43:41]line Смена: 114 ФФД: 1.0 [08:43:41]line ЗНМ: 0300000137 [08:43:41]line РНМ: 0000000000186857 [08:43:41]line Версия ККМ: v1.0 [08:43:41]line ФМ: 0000000002094219 [08:43:41]line ФД: 30252 [08:43:41]line ФПД: 41779486456173 [08:43:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T084348&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30252&fm=41779486456173&tin=02508201610067®Number=0000000000186857&sum=75000 [08:43:41]OFD Sender: Processing packet 30252 [packets to send 10, broken 9] [08:43:41]ProducePacketName [08:43:41]name=ofd_packets/00030252 [08:43:41]OFD Sender: To server: pG, [08:43:41]CommunicateWithHost lk.salyk.kg:30040 [08:43:41]ConnectInit lk.salyk.kg [08:43:41]written 0, free lines is 4095 [08:43:41]Connected sock=10 [08:43: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 01 DC 07 01 2E 4F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 7E 27 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 08 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 1F 00 00 00 00 07 04 06 00 F8 24 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 C4 C2 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 25 FF 8B 72 F9 6D EE E9 A5 8E 41 A0 A4 AE [08:43: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 C6 1D 47 00 88 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 2C 76 00 00 F4 03 04 00 48 6D 14 67 B6 04 01 00 00 79 94 3A 00 60 82 35 F5 [08:43:42]CommunicateWithHost err = 0 [08:43:42]CheckOFDResponse [08:43:42]1017 (14) - 77093643461234 [08:43:42]1041 (16) - 0000000002094219 [08:43:42]1040 (4) - 30252 [08:43:42]1012 (4) - 20.10.2024 02:39 [08:43:42]1206 (1) - 0 [08:43:42]OFD Sender: Remove packet 30252 [08:43:42]ProducePacketName [08:43:42]name=ofd_packets/00030252 [08:43:42]NVStorageDeleteData [08:43:42]Write to MH i2c: 01 00 00 58 6B C3 [08:43:42]Write i2c OK [08:43:42]MH_I2C_Read... [08:43:42]Read from MH i2c: 01 [08:43:42]MH_I2C_Read... [08:43:42]Read from MH i2c: 01 07 00 [08:43:42]MH_I2C_Read... [08:43:42]Read from MH i2c: 01 07 00 58 6B 00 00 00 00 00 E4 0C BA [08:43:42]RasterBufferAndPrint [08:43:42]line [08:43:42]line [08:43:42]line [08:43:42]line [08:43:42]line [08:43:42]written 0, free lines is 3306 [08:43:42]MH_Cut [08:43:42]Write to MH i2c: D1 01 00 5F 6B 01 9C [08:43:42]Write i2c OK [08:43:42]MH_I2C_Read... [08:43:42]Read from MH i2c: D1 [08:43:42]MH_I2C_Read... [08:43:42]Read from MH i2c: D1 01 00 [08:43:42]MH_I2C_Read... [08:43:42]Read from MH i2c: D1 01 00 5F 6B 00 9B [08:43:42]Write to MH i2c: 01 00 00 60 6B CB [08:43:42]Write i2c OK [08:43:42]MH_I2C_Read... [08:43:42]OFD Sender: No OFD packet to send [08:43:43]*** Cut start [08:43:43]*** Partial cut [08:43:43]*** CUTSNS_PIN = 1 [08:43:43]*** CUTSNS_PIN = 0 [08:43:43]*** Brake cut motor [08:43:43]Read from MH i2c: 01 [08:43:43]MH_I2C_Read... [08:43:43]*** Stop cut motor [08:43:43]*** Cut end [08:43:43]Read from MH i2c: 01 07 00 [08:43:43]MH_I2C_Read... [08:43:43]Read from MH i2c: 01 07 00 60 6B 00 00 00 00 00 FF 0F E0 [08:43:43]process_action close_receipt done [08:43:43]requested_data is exist [08:43:43]produce_requested_data [08:43:43]requested_item fm.sn is exist - process it [08:43:43]wFMCommunicate request_size=4 [08:43:43]MH_SAM_APDU [08:43:43]CAPDU: 80 11 00 00 [08:43:43]Write to MH i2c: E2 08 00 61 6B 80 11 00 00 00 00 00 00 46 [08:43:43]Write i2c OK [08:43:43]MH_I2C_Read... [08:43:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:43:43]Read from MH i2c: E2 [08:43:43]MH_I2C_Read... [08:43:43]Read from MH i2c: E2 17 00 [08:43:43]MH_I2C_Read... [08:43:43]Read from MH i2c: E2 17 00 61 6B 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:43: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:43:43]wFMCommunicate OK [08:43:43]requested_item fd.num is exist - process it [08:43:43]SAM_PROTO_GetFieldsCounters [08:43:43]wFMCommunicate request_size=4 [08:43:43]MH_SAM_APDU [08:43:43]CAPDU: 80 13 00 00 [08:43:43]Write to MH i2c: E2 08 00 62 6B 80 13 00 00 00 00 00 00 49 [08:43:43]Write i2c OK [08:43:43]MH_I2C_Read... [08:43:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:43:43]Read from MH i2c: E2 [08:43:43]MH_I2C_Read... [08:43:43]Read from MH i2c: E2 62 00 [08:43:43]MH_I2C_Read... [08:43:43]Read from MH i2c: E2 62 00 62 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 76 00 00 0E 04 04 00 72 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:43: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 2C 76 00 00 0E 04 04 00 72 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:43:43]wFMCommunicate OK [08:43:43]SAM_PROTO_GetFieldsCounters done [08:43:43]requested_item shift.num is exist - process it [08:43:43]requested_item shift.opened is exist - process it [08:43:43]req_shift_opened [08:43:43]FM_GetShiftState [08:43:43]SAM_PROTO_GetShiftState [08:43:43]wFMCommunicate request_size=4 [08:43:43]MH_SAM_APDU [08:43:43]CAPDU: 80 13 01 00 [08:43:43]Write to MH i2c: E2 08 00 63 6B 80 13 01 00 00 00 00 00 4B [08:43:43]Write i2c OK [08:43:43]MH_I2C_Read... [08:43:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:43:43]Read from MH i2c: E2 [08:43:43]MH_I2C_Read... [08:43:43]Read from MH i2c: E2 0E 00 [08:43:43]MH_I2C_Read... [08:43:43]Read from MH i2c: E2 0E 00 63 6B 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 31 [08:43:43]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [08:43:43]wFMCommunicate OK [08:43:43]SAM_PROTO_GetShiftState done [08:43:43]FM_GetShiftState done [08:43:43]req_shift_opened done [08:43:43]requested_item shift.open_date is exist - process it [08:43:43]req_shift_open_date [08:43:43]req_shift_open_date done [08:43:43]produce_requested_data done [08:43:43]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30252,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [08:43:43]process_action_free close_receipt [08:43:43]json_value_free [08:43:43]json_value_free done [08:43:43]process_json_proto returns [08:43:43]Send response to host [08:43:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30252,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [08:43:43]free response buf [08:43:43]execute_script done [08:43:43]execute_script returns [08:43:43]free content buf [08:43:43]Sock 9.Close socket [08:43:43]Sock 9.Thread stoped [08:43:47]OFD Sender: No OFD packet to send [08:43:52]OFD Sender: No OFD packet to send [08:43:57]OFD Sender: No OFD packet to send [08:44:02]OFD Sender: No OFD packet to send [08:44:07]OFD Sender: No OFD packet to send [08:44:12]OFD Sender: No OFD packet to send [08:44:17]OFD Sender: No OFD packet to send [08:44:22]OFD Sender: No OFD packet to send [08:44:27]OFD Sender: No OFD packet to send [08:44:32]OFD Sender: No OFD packet to send [08:44:37]OFD Sender: No OFD packet to send [08:44:42]OFD Sender: No OFD packet to send [08:44:47]OFD Sender: No OFD packet to send [08:44:52]OFD Sender: No OFD packet to send [08:44:57]OFD Sender: No OFD packet to send [08:45:02]OFD Sender: No OFD packet to send [08:45:07]OFD Sender: No OFD packet to send [08:45:12]OFD Sender: No OFD packet to send [08:45:17]OFD Sender: No OFD packet to send [08:45:22]OFD Sender: No OFD packet to send [08:45:26]accept exits with 7 [08:45:26]New connection [08:45:26]New thread 3067370852 created [08:45:26]Thread 3067514212 joined [08:45:26]Waiting for new connection... [08:45:26] Sock 7.Parse request [08:45:26]Sock 7.Check first char [08:45:26]Sock 7.First char is OK [08:45:26]request: POST /json_proto HTTP/1.0 [08:45:26]Method: POST [08:45:26]URL: /json_proto [08:45:26]Method is POST - this is cgi request [08:45:26]url: /json_proto [08:45:26]query_string will be loaded in cgi processing [08:45:26]execute_cgi json_proto POST (null) [08:45:26]execute_cgi path=json_proto method=POST [08:45:26]POST find Content-Length [08:45:26]Host: 172.17.51.3:8080 [08:45:26]Content-Length: 677 [08:45:26]Content-Type: application/json [08:45:26] [08:45:26]POST finish read [08:45:26]Found Content-Length = 677 [08:45:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342643", "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" ] } } [08:45:26]execute_script... [08:45: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)342643", "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" ] } } [08:45:26]POST & json_proto [08:45:26]process_json_proto [08:45:26]json parsed OK: [08:45:26]protocol is kg_v1.0 [08:45:26]action value=close_receipt [08:45:26]process_action close_receipt [08:45:26]cmd_close_receipt [08:45:26]MH_GetDate [08:45:26]Write to MH i2c: F0 00 00 64 6B BE [08:45:26]Write i2c OK [08:45:26]MH_I2C_Read... [08:45:26]Read from MH i2c: F0 [08:45:26]MH_I2C_Read... [08:45:26]Read from MH i2c: F0 09 00 [08:45:26]MH_I2C_Read... [08:45:26]Read from MH i2c: F0 09 00 64 6B 00 2F C3 14 67 04 C1 95 66 F4 [08:45:26]GetLastDocTimeStamp 1729413828 [08:45:26]current date 1729413935 [08:45:26]FM_GetShiftState [08:45:26]SAM_PROTO_GetShiftState [08:45:26]wFMCommunicate request_size=4 [08:45:26]MH_SAM_APDU [08:45:26]CAPDU: 80 13 01 00 [08:45:26]Write to MH i2c: E2 08 00 65 6B 80 13 01 00 00 00 00 00 4D [08:45:26]Write i2c OK [08:45:26]MH_I2C_Read... [08:45:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:45:26]Read from MH i2c: E2 [08:45:26]MH_I2C_Read... [08:45:26]Read from MH i2c: E2 0E 00 [08:45:26]MH_I2C_Read... [08:45:26]Read from MH i2c: E2 0E 00 65 6B 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 33 [08:45:26]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [08:45:26]wFMCommunicate OK [08:45:26]SAM_PROTO_GetShiftState done [08:45:26]FM_GetShiftState done [08:45:26]opened in 1729384718 [08:45:26]opened+sec_in_day 1729471118 [08:45:26]quantity*price = 30038 [08:45:26]sum+1 = 30039 [08:45:26]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 СНО: Общий режим Чек 35 20.10.2024 08:45 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30253 ФПД: 37050172278938 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T084535&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30253&fm=37050172278938&tin=02508201610067®Number=0000000000186857&sum=30000 [08:45:27]StoreToDocumentArchive [08:45:27]shift 114 fd 30253 [08:45:27]save to /storage/0114/doc_00030253 [08:45:27]save last doc name /storage/0114/doc_00030253 to /storage/kkm_last_doc_name [08:45:27]save OK [08:45:27]Clear old archive folders... [08:45:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:45:27]tlvbuf is 00AEB6E0 [08:45:27]SAM_PROTO_ClearQueue [08:45:27]wFMCommunicate request_size=4 [08:45:27]MH_SAM_APDU [08:45:27]CAPDU: 80 09 00 00 [08:45:27]Write to MH i2c: E2 08 00 72 6B 80 09 00 00 00 00 00 00 4F [08:45:27]Write i2c OK [08:45:27]MH_I2C_Read... [08:45:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:45:27]Read from MH i2c: E2 [08:45:27]MH_I2C_Read... [08:45:27]Read from MH i2c: E2 03 00 [08:45:27]MH_I2C_Read... [08:45:27]Read from MH i2c: E2 03 00 72 6B 00 90 00 51 [08:45:27]RAPDU: 90 00 [08:45:27]wFMCommunicate OK [08:45:27]SAM_PROTO_ClearQueue done [08:45:27]KKMCreateOFDPacket [08:45:27]OFDProtocolAddRootSTLVToBuf [08:45:27]FM_MakeSignedData [08:45:27]FM_MakeSignedData [08:45:27]SAM_PROTO_SignData [08:45:27]wFMCommunicate request_size=4 [08:45:27]MH_SAM_APDU [08:45:27]CAPDU: 80 0D 01 02 [08:45:27]Write to MH i2c: E2 08 00 73 6B 80 0D 01 02 00 00 00 00 57 [08:45:27]Write i2c OK [08:45:27]MH_I2C_Read... [08:45:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:45:27]Read from MH i2c: E2 [08:45:27]MH_I2C_Read... [08:45:27]Read from MH i2c: E2 03 00 [08:45:27]MH_I2C_Read... [08:45:27]Read from MH i2c: E2 03 00 73 6B 00 90 00 52 [08:45:27]RAPDU: 90 00 [08:45:27]wFMCommunicate OK [08:45:27]wFMCommunicate request_size=255 [08:45:27]MH_SAM_APDU [08:45:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 23 00 00 00 F4 03 04 00 2F C3 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 21 [08:45:27]Write to MH i2c: E2 02 01 74 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 23 00 00 00 F4 03 04 00 2F C3 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 21 00 00 A2 [08:45:28]Write i2c OK [08:45:28]MH_I2C_Read... [08:45:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:45:28]Read from MH i2c: E2 [08:45:28]MH_I2C_Read... [08:45:28]Read from MH i2c: E2 03 00 [08:45:28]MH_I2C_Read... [08:45:28]Read from MH i2c: E2 03 00 74 6B 00 90 00 53 [08:45:28]RAPDU: 90 00 [08:45:28]wFMCommunicate OK [08:45:28]wFMCommunicate request_size=10 [08:45:28]MH_SAM_APDU [08:45:28]CAPDU: 80 0D 02 02 05 B2 6A 5B 88 9A [08:45:28]Write to MH i2c: E2 0D 00 75 6B 80 0D 02 02 05 00 B2 6A 5B 88 9A 00 00 FD [08:45:28]Write i2c OK [08:45:28]MH_I2C_Read... [08:45:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:45:28]Read from MH i2c: E2 [08:45:28]MH_I2C_Read... [08:45:28]Read from MH i2c: E2 03 00 [08:45:28]MH_I2C_Read... [08:45:28]Read from MH i2c: E2 03 00 75 6B 00 90 00 54 [08:45:28]RAPDU: 90 00 [08:45:28]wFMCommunicate OK [08:45:28]wFMCommunicate request_size=4 [08:45:28]MH_SAM_APDU [08:45:28]CAPDU: 80 0D 03 02 [08:45:28]Write to MH i2c: E2 08 00 76 6B 80 0D 03 02 00 00 00 00 5C [08:45:28]Write i2c OK [08:45:28]MH_I2C_Read... [08:45:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:45:28]Read from MH i2c: E2 [08:45:28]MH_I2C_Read... [08:45:28]Read from MH i2c: E2 0B 00 [08:45:28]MH_I2C_Read... [08:45:28]Read from MH i2c: E2 0B 00 76 6B 00 A7 DB 36 F6 54 E2 9D CA 90 00 A8 [08:45:28]RAPDU: A7 DB 36 F6 54 E2 9D CA 90 00 [08:45:28]wFMCommunicate OK [08:45:28]SAM_PROTO_SignData done [08:45:28]FM_MakeSignedData done [08:45:28]CreateOFDProtocolMessage [08:45:28]wFMCommunicate request_size=4 [08:45:28]MH_SAM_APDU [08:45:28]CAPDU: 80 11 00 00 [08:45:28]Write to MH i2c: E2 08 00 77 6B 80 11 00 00 00 00 00 00 5C [08:45:28]Write i2c OK [08:45:28]MH_I2C_Read... [08:45:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:45:28]Read from MH i2c: E2 [08:45:28]MH_I2C_Read... [08:45:28]Read from MH i2c: E2 17 00 [08:45:28]MH_I2C_Read... [08:45:28]Read from MH i2c: E2 17 00 77 6B 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:45: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:45:28]wFMCommunicate OK [08:45:28]CreateOFDProtocolMessage done [08:45:28]OFDSenderStorePacket 30253 [08:45:28]StoreOFDPacket docnum=30253 [08:45: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 98 49 07 01 C3 0F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 23 00 00 00 F4 03 04 00 2F C3 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 21 B2 6A 5B 88 9A A7 DB 36 F6 54 E2 9D CA [08:45:28]CheckFolder [08:45:28]dirname=/storage/ofd_packets [08:45:28]CheckFolder done [08:45:28]ProducePacketName [08:45:28]name=ofd_packets/00030253 [08:45:28]NVStorageSaveData ofd_packets/00030253 [08:45:28]File name is /storage/ofd_packets/00030253 [08:45:28]Write 301 bytes [08:45:28]NVStorageSaveData done [08:45:28]OFDSenderStorePacket done [08:45:28]KKMCreateOFDPacket done [08:45:28]NVStorageSaveData kkm_last_timestamp [08:45:28]File name is /storage/kkm_last_timestamp [08:45:28]Write 4 bytes [08:45:28]NVStorageSaveData done [08:45:28]ExternCall_PrintAddStr [08:45:28]wPrintStart [08:45:28]Write to MH i2c: 01 00 00 78 6B E3 [08:45:28]Write i2c OK [08:45:28]MH_I2C_Read... [08:45:28]Read from MH i2c: 01 [08:45:28]MH_I2C_Read... [08:45:28]Read from MH i2c: 01 07 00 [08:45:28]MH_I2C_Read... [08:45:28]Read from MH i2c: 01 07 00 78 6B 00 00 00 00 00 FF 0F F8 [08:45:28]RasterBufferAndPrint [08:45:28]line Счет N : (1)342643 [08:45:28]line ИНН: 02508201610067 [08:45:28]line Контрольно-Кассовый Чек [08:45:28]line ПРОДАЖА [08:45:28]line ТРК (МРК, ГНК) : 43 [08:45:28]line Товар: 2710124130 [08:45:28]line Аи-92-К-2 [08:45:28]line 4.490 * 66.90 [08:45:28]line = 300.38 [08:45:28]line НДС 12% НСП 1% [08:45:28]line > о реализуемом товаре [08:45:28]line ОКРУГЛЕНИЕ: -0.38 [08:45:28]line ИТОГО: 300.00 [08:45:28]line Внесено: 300.00 [08:45:28]line СДАЧА: 0.00 [08:45:28]line НСП 1% : 2.66 [08:45:28]line НДС 12% : 31.90 [08:45:28]line Наличными: 300.00 [08:45:28]line Безнал.: 0.00 [08:45:28]line Место: АЗС № 78 "Партнер Нефть" [08:45:28]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [08:45:28]line СНО: Общий режим [08:45:28]line Чек 35 20.10.2024 08:45 [08:45:28]line Смена: 114 ФФД: 1.0 [08:45:28]line ЗНМ: 0300000137 [08:45:28]line РНМ: 0000000000186857 [08:45:28]line Версия ККМ: v1.0 [08:45:28]line ФМ: 0000000002094219 [08:45:28]line ФД: 30253 [08:45:28]line ФПД: 37050172278938 [08:45:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T084535&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30253&fm=37050172278938&tin=02508201610067®Number=0000000000186857&sum=30000 [08:45:28]OFD Sender: Processing packet 30253 [packets to send 10, broken 9] [08:45:28]ProducePacketName [08:45:28]name=ofd_packets/00030253 [08:45:28]OFD Sender: To server: pG, [08:45:28]CommunicateWithHost lk.salyk.kg:30040 [08:45:28]ConnectInit lk.salyk.kg [08:45:28]written 0, free lines is 4095 [08:45:28]Connected sock=10 [08:45: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 98 49 07 01 C3 0F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 23 00 00 00 F4 03 04 00 2F C3 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 21 B2 6A 5B 88 9A A7 DB 36 F6 54 E2 9D CA [08: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 DB F5 47 00 21 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 2D 76 00 00 F4 03 04 00 B3 6D 14 67 B6 04 01 00 00 E5 6A B9 8A 39 9C 1D B8 [08:45:29]CommunicateWithHost err = 0 [08:45:29]CheckOFDResponse [08:45:29]1017 (14) - 77093643461234 [08:45:29]1041 (16) - 0000000002094219 [08:45:29]1040 (4) - 30253 [08:45:29]1012 (4) - 20.10.2024 02:40 [08:45:29]1206 (1) - 0 [08:45:29]OFD Sender: Remove packet 30253 [08:45:29]ProducePacketName [08:45:29]name=ofd_packets/00030253 [08:45:29]NVStorageDeleteData [08:45:29]Write to MH i2c: 01 00 00 A3 6B 0E [08:45:29]Write i2c OK [08:45:29]MH_I2C_Read... [08:45:29]Read from MH i2c: 01 [08:45:29]MH_I2C_Read... [08:45:29]Read from MH i2c: 01 07 00 [08:45:29]MH_I2C_Read... [08:45:29]Read from MH i2c: 01 07 00 A3 6B 00 00 00 00 00 E8 0C 09 [08:45:29]RasterBufferAndPrint [08:45:29]line [08:45:29]line [08:45:29]line [08:45:29]line [08:45:29]line [08:45:29]written 0, free lines is 3310 [08:45:29]MH_Cut [08:45:29]Write to MH i2c: D1 01 00 AA 6B 01 E7 [08:45:29]Write i2c OK [08:45:29]MH_I2C_Read... [08:45:29]Read from MH i2c: D1 [08:45:29]MH_I2C_Read... [08:45:29]Read from MH i2c: D1 01 00 [08:45:29]MH_I2C_Read... [08:45:29]Read from MH i2c: D1 01 00 AA 6B 00 E6 [08:45:29]Write to MH i2c: 01 00 00 AB 6B 16 [08:45:29]Write i2c OK [08:45:29]MH_I2C_Read... [08:45:29]OFD Sender: No OFD packet to send [08:45:29]*** Cut start [08:45:29]*** Partial cut [08:45:29]*** CUTSNS_PIN = 1 [08:45:29]*** CUTSNS_PIN = 0 [08:45:30]*** Brake cut motor [08:45:30]Read from MH i2c: 01 [08:45:30]MH_I2C_Read... [08:45:30]*** Stop cut motor [08:45:30]*** Cut end [08:45:30]Read from MH i2c: 01 07 00 [08:45:30]MH_I2C_Read... [08:45:30]Read from MH i2c: 01 07 00 AB 6B 00 00 00 00 00 FF 0F 2B [08:45:30]process_action close_receipt done [08:45:30]requested_data is exist [08:45:30]produce_requested_data [08:45:30]requested_item fm.sn is exist - process it [08:45:30]wFMCommunicate request_size=4 [08:45:30]MH_SAM_APDU [08:45:30]CAPDU: 80 11 00 00 [08:45:30]Write to MH i2c: E2 08 00 AC 6B 80 11 00 00 00 00 00 00 91 [08:45:30]Write i2c OK [08:45:30]MH_I2C_Read... [08:45:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:45:30]Read from MH i2c: E2 [08:45:30]MH_I2C_Read... [08:45:30]Read from MH i2c: E2 17 00 [08:45:30]MH_I2C_Read... [08:45:30]Read from MH i2c: E2 17 00 AC 6B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 DF [08:45: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:45:30]wFMCommunicate OK [08:45:30]requested_item fd.num is exist - process it [08:45:30]SAM_PROTO_GetFieldsCounters [08:45:30]wFMCommunicate request_size=4 [08:45:30]MH_SAM_APDU [08:45:30]CAPDU: 80 13 00 00 [08:45:30]Write to MH i2c: E2 08 00 AD 6B 80 13 00 00 00 00 00 00 94 [08:45:30]Write i2c OK [08:45:30]MH_I2C_Read... [08:45:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:45:30]Read from MH i2c: E2 [08:45:30]MH_I2C_Read... [08:45:30]Read from MH i2c: E2 62 00 [08:45:30]MH_I2C_Read... [08:45:30]Read from MH i2c: E2 62 00 AD 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 2D 76 00 00 0E 04 04 00 72 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:45: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 2D 76 00 00 0E 04 04 00 72 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:45:30]wFMCommunicate OK [08:45:30]SAM_PROTO_GetFieldsCounters done [08:45:30]requested_item shift.num is exist - process it [08:45:30]requested_item shift.opened is exist - process it [08:45:30]req_shift_opened [08:45:30]FM_GetShiftState [08:45:30]SAM_PROTO_GetShiftState [08:45:30]wFMCommunicate request_size=4 [08:45:30]MH_SAM_APDU [08:45:30]CAPDU: 80 13 01 00 [08:45:30]Write to MH i2c: E2 08 00 AE 6B 80 13 01 00 00 00 00 00 96 [08:45:30]Write i2c OK [08:45:30]MH_I2C_Read... [08:45:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:45:30]Read from MH i2c: E2 [08:45:30]MH_I2C_Read... [08:45:30]Read from MH i2c: E2 0E 00 [08:45:30]MH_I2C_Read... [08:45:30]Read from MH i2c: E2 0E 00 AE 6B 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 7C [08:45:30]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [08:45:30]wFMCommunicate OK [08:45:30]SAM_PROTO_GetShiftState done [08:45:30]FM_GetShiftState done [08:45:30]req_shift_opened done [08:45:30]requested_item shift.open_date is exist - process it [08:45:30]req_shift_open_date [08:45:30]req_shift_open_date done [08:45:30]produce_requested_data done [08:45:30]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30253,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [08:45:30]process_action_free close_receipt [08:45:30]json_value_free [08:45:30]json_value_free done [08:45:30]process_json_proto returns [08:45:30]Send response to host [08:45:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30253,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [08:45:30]free response buf [08:45:30]execute_script done [08:45:30]execute_script returns [08:45:30]free content buf [08:45:30]Sock 7.Close socket [08:45:30]Sock 7.Thread stoped [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:09]OFD Sender: No OFD packet to send [08:46:14]OFD Sender: No OFD packet to send [08:46:19]OFD Sender: No OFD packet to send [08:46:24]OFD Sender: No OFD packet to send [08:46:29]OFD Sender: No OFD packet to send [08:46:34]OFD Sender: No OFD packet to send [08:46:39]OFD Sender: No OFD packet to send [08:46:44]OFD Sender: No OFD packet to send [08:46:49]OFD Sender: No OFD packet to send [08:46:54]OFD Sender: No OFD packet to send [08:46:59]OFD Sender: No OFD packet to send [08:47:04]OFD Sender: No OFD packet to send [08:47:04]accept exits with 9 [08:47:04]New connection [08:47:04]New thread 3067514212 created [08:47:04]Thread 3067370852 joined [08:47:04]Waiting for new connection... [08:47:04] Sock 9.Parse request [08:47:04]Sock 9.Check first char [08:47:04]Sock 9.First char is OK [08:47:04]request: POST /json_proto HTTP/1.0 [08:47:04]Method: POST [08:47:04]URL: /json_proto [08:47:04]Method is POST - this is cgi request [08:47:04]url: /json_proto [08:47:04]query_string will be loaded in cgi processing [08:47:04]execute_cgi json_proto POST (null) [08:47:04]execute_cgi path=json_proto method=POST [08:47:04]POST find Content-Length [08:47:04]Host: 172.17.51.3:8080 [08:47:04]Content-Length: 750 [08:47:04]Content-Type: application/json [08:47:04] [08:47:04]POST finish read [08:47:04]Found Content-Length = 750 [08:47:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342641", "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" : 2.520, "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\u000A30027587", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:47:04]execute_script... [08:47: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)342641", "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" : 2.520, "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\u000A30027587", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:47:04]POST & json_proto [08:47:04]process_json_proto [08:47:04]json parsed OK: [08:47:04]protocol is kg_v1.0 [08:47:04]action value=close_receipt [08:47:04]process_action close_receipt [08:47:04]cmd_close_receipt [08:47:04]MH_GetDate [08:47:04]Write to MH i2c: F0 00 00 AF 6B 09 [08:47:04]Write i2c OK [08:47:04]MH_I2C_Read... [08:47:04]Read from MH i2c: F0 [08:47:04]MH_I2C_Read... [08:47:04]Read from MH i2c: F0 09 00 [08:47:04]MH_I2C_Read... [08:47:04]Read from MH i2c: F0 09 00 AF 6B 00 91 C3 14 67 04 C1 95 66 A1 [08:47:04]GetLastDocTimeStamp 1729413935 [08:47:04]current date 1729414033 [08:47:04]FM_GetShiftState [08:47:04]SAM_PROTO_GetShiftState [08:47:04]wFMCommunicate request_size=4 [08:47:04]MH_SAM_APDU [08:47:04]CAPDU: 80 13 01 00 [08:47:04]Write to MH i2c: E2 08 00 B0 6B 80 13 01 00 00 00 00 00 98 [08:47:04]Write i2c OK [08:47:04]MH_I2C_Read... [08:47:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:47:04]Read from MH i2c: E2 [08:47:04]MH_I2C_Read... [08:47:04]Read from MH i2c: E2 0E 00 [08:47:04]MH_I2C_Read... [08:47:04]Read from MH i2c: E2 0E 00 B0 6B 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 7E [08:47:04]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [08:47:04]wFMCommunicate OK [08:47:04]SAM_PROTO_GetShiftState done [08:47:04]FM_GetShiftState done [08:47:04]opened in 1729384718 [08:47:04]opened+sec_in_day 1729471118 [08:47:04]quantity*price = 0 [08:47:04]sum+1 = 1 [08:47: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 СНО: Общий режим Чек 36 20.10.2024 08:47 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30027587 ФМ: 0000000002094219 ФД: 30254 ФПД: 219654284868087 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T084713&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30254&fm=219654284868087&tin=02508201610067®Number=0000000000186857&sum=0 [08:47:05]StoreToDocumentArchive [08:47:05]shift 114 fd 30254 [08:47:05]save to /storage/0114/doc_00030254 [08:47:05]save last doc name /storage/0114/doc_00030254 to /storage/kkm_last_doc_name [08:47:05]save OK [08:47:05]Clear old archive folders... [08:47:05]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:47:05]tlvbuf is 00B261C0 [08:47:05]SAM_PROTO_ClearQueue [08:47:05]wFMCommunicate request_size=4 [08:47:05]MH_SAM_APDU [08:47:05]CAPDU: 80 09 00 00 [08:47:05]Write to MH i2c: E2 08 00 BD 6B 80 09 00 00 00 00 00 00 9A [08:47:05]Write i2c OK [08:47:05]MH_I2C_Read... [08:47:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:47:05]Read from MH i2c: E2 [08:47:05]MH_I2C_Read... [08:47:05]Read from MH i2c: E2 03 00 [08:47:05]MH_I2C_Read... [08:47:05]Read from MH i2c: E2 03 00 BD 6B 00 90 00 9C [08:47:05]RAPDU: 90 00 [08:47:05]wFMCommunicate OK [08:47:05]SAM_PROTO_ClearQueue done [08:47:05]KKMCreateOFDPacket [08:47:05]OFDProtocolAddRootSTLVToBuf [08:47:05]FM_MakeSignedData [08:47:05]FM_MakeSignedData [08:47:05]SAM_PROTO_SignData [08:47:05]wFMCommunicate request_size=4 [08:47:05]MH_SAM_APDU [08:47:05]CAPDU: 80 0D 01 02 [08:47:05]Write to MH i2c: E2 08 00 BE 6B 80 0D 01 02 00 00 00 00 A2 [08:47:05]Write i2c OK [08:47:05]MH_I2C_Read... [08:47:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:47:06]Read from MH i2c: E2 [08:47:06]MH_I2C_Read... [08:47:06]Read from MH i2c: E2 03 00 [08:47:06]MH_I2C_Read... [08:47:06]Read from MH i2c: E2 03 00 BE 6B 00 90 00 9D [08:47:06]RAPDU: 90 00 [08:47:06]wFMCommunicate OK [08:47:06]wFMCommunicate request_size=255 [08:47:06]MH_SAM_APDU [08:47:06]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 D8 09 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 91 C3 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 C7 C6 3F 9F [08:47:06]Write to MH i2c: E2 02 01 BF 6B 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 D8 09 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 91 C3 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 C7 C6 3F 9F 00 00 56 [08:47:06]Write i2c OK [08:47:06]MH_I2C_Read... [08:47:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:47:06]Read from MH i2c: E2 [08:47:06]MH_I2C_Read... [08:47:06]Read from MH i2c: E2 03 00 [08:47:06]MH_I2C_Read... [08:47:06]Read from MH i2c: E2 03 00 BF 6B 00 90 00 9E [08:47:06]RAPDU: 90 00 [08:47:06]wFMCommunicate OK [08:47:06]wFMCommunicate request_size=7 [08:47:06]MH_SAM_APDU [08:47:06]CAPDU: 80 0D 02 02 02 79 F7 [08:47:06]Write to MH i2c: E2 0A 00 C0 6B 80 0D 02 02 02 00 79 F7 00 00 19 [08:47:06]Write i2c OK [08:47:06]MH_I2C_Read... [08:47:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:47:06]Read from MH i2c: E2 [08:47:06]MH_I2C_Read... [08:47:06]Read from MH i2c: E2 03 00 [08:47:06]MH_I2C_Read... [08:47:06]Read from MH i2c: E2 03 00 C0 6B 00 90 00 9F [08:47:06]RAPDU: 90 00 [08:47:06]wFMCommunicate OK [08:47:06]wFMCommunicate request_size=4 [08:47:06]MH_SAM_APDU [08:47:06]CAPDU: 80 0D 03 02 [08:47:06]Write to MH i2c: E2 08 00 C1 6B 80 0D 03 02 00 00 00 00 A7 [08:47:06]Write i2c OK [08:47:06]MH_I2C_Read... [08:47:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:47:06]Read from MH i2c: E2 [08:47:06]MH_I2C_Read... [08:47:06]Read from MH i2c: E2 0B 00 [08:47:06]MH_I2C_Read... [08:47:06]Read from MH i2c: E2 0B 00 C1 6B 00 FD 95 A4 55 A9 8B 56 1F 90 00 DC [08:47:06]RAPDU: FD 95 A4 55 A9 8B 56 1F 90 00 [08:47:06]wFMCommunicate OK [08:47:06]SAM_PROTO_SignData done [08:47:06]FM_MakeSignedData done [08:47:06]CreateOFDProtocolMessage [08:47:06]wFMCommunicate request_size=4 [08:47:06]MH_SAM_APDU [08:47:06]CAPDU: 80 11 00 00 [08:47:06]Write to MH i2c: E2 08 00 C2 6B 80 11 00 00 00 00 00 00 A7 [08:47:06]Write i2c OK [08:47:06]MH_I2C_Read... [08:47:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:47:06]Read from MH i2c: E2 [08:47:06]MH_I2C_Read... [08:47:06]Read from MH i2c: E2 17 00 [08:47:06]MH_I2C_Read... [08:47:06]Read from MH i2c: E2 17 00 C2 6B 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:47: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:47:06]wFMCommunicate OK [08:47:06]CreateOFDProtocolMessage done [08:47:06]OFDSenderStorePacket 30254 [08:47:06]StoreOFDPacket docnum=30254 [08:47: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 0C 01 00 00 17 9A 04 01 F0 06 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 D8 09 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 91 C3 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 C7 C6 3F 9F 79 F7 FD 95 A4 55 A9 8B 56 1F [08:47:06]CheckFolder [08:47:06]dirname=/storage/ofd_packets [08:47:06]CheckFolder done [08:47:06]ProducePacketName [08:47:06]name=ofd_packets/00030254 [08:47:06]NVStorageSaveData ofd_packets/00030254 [08:47:06]File name is /storage/ofd_packets/00030254 [08:47:06]Write 298 bytes [08:47:06]NVStorageSaveData done [08:47:06]OFDSenderStorePacket done [08:47:06]KKMCreateOFDPacket done [08:47:06]NVStorageSaveData kkm_last_timestamp [08:47:06]File name is /storage/kkm_last_timestamp [08:47:06]Write 4 bytes [08:47:06]NVStorageSaveData done [08:47:06]ExternCall_PrintAddStr [08:47:06]wPrintStart [08:47:06]Write to MH i2c: 01 00 00 C3 6B 2E [08:47:06]Write i2c OK [08:47:06]MH_I2C_Read... [08:47:06]Read from MH i2c: 01 [08:47:06]MH_I2C_Read... [08:47:06]Read from MH i2c: 01 07 00 [08:47:06]MH_I2C_Read... [08:47:06]Read from MH i2c: 01 07 00 C3 6B 00 00 00 00 00 FF 0F 43 [08:47:06]RasterBufferAndPrint [08:47:06]line Счет N : (1)342641 [08:47:06]line ИНН: 02508201610067 [08:47:06]line Контрольно-Кассовый Чек [08:47:06]line ПРОДАЖА [08:47:06]line ТРК (МРК, ГНК) : 64 [08:47:06]line Товар: 2710194210 [08:47:06]line ДТ-К-2 [08:47:06]line 2.520 * 0.00 [08:47:06]line = 0.00 [08:47:06]line НДС 12% НСП 1% [08:47:06]line > о реализуемом товаре [08:47:06]line ИТОГО: 0.00 [08:47:06]line НСП 1% : 0.00 [08:47:06]line НДС 12% : 0.00 [08:47:06]line Наличными: 0.00 [08:47:06]line Безнал.: 0.00 [08:47:06]line Место: АЗС № 78 "Партнер Нефть" [08:47:06]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [08:47:06]line СНО: Общий режим [08:47:06]line Чек 36 20.10.2024 08:47 [08:47:06]line Смена: 114 ФФД: 1.0 [08:47:06]line ЗНМ: 0300000137 [08:47:06]line РНМ: 0000000000186857 [08:47:06]line Версия ККМ: v1.0 [08:47:06]line Талоны: ТК ГПНА Online [08:47:06]line 30027587 [08:47:06]line ФМ: 0000000002094219 [08:47:06]line ФД: 30254 [08:47:06]line ФПД: 219654284868087 [08:47:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T084713&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30254&fm=219654284868087&tin=02508201610067®Number=0000000000186857&sum=0 [08:47:06]OFD Sender: Processing packet 30254 [packets to send 10, broken 9] [08:47:06]ProducePacketName [08:47:06]name=ofd_packets/00030254 [08:47:06]OFD Sender: To server: pG, [08:47:06]CommunicateWithHost lk.salyk.kg:30040 [08:47:06]ConnectInit lk.salyk.kg [08:47:06]written 0, free lines is 4095 [08:47:06]Connected sock=10 [08:47: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 0C 01 00 00 17 9A 04 01 F0 06 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 D8 09 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 91 C3 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 C7 C6 3F 9F 79 F7 FD 95 A4 55 A9 8B 56 1F [08:47: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 EC 75 47 00 11 53 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 2E 76 00 00 F4 03 04 00 15 6E 14 67 B6 04 01 00 00 40 0C A3 C6 39 72 59 89 [08:47:07]CommunicateWithHost err = 0 [08:47:07]CheckOFDResponse [08:47:07]1017 (14) - 77093643461234 [08:47:07]1041 (16) - 0000000002094219 [08:47:07]1040 (4) - 30254 [08:47:07]1012 (4) - 20.10.2024 02:42 [08:47:07]1206 (1) - 0 [08:47:07]OFD Sender: Remove packet 30254 [08:47:07]ProducePacketName [08:47:07]name=ofd_packets/00030254 [08:47:07]NVStorageDeleteData [08:47:07]Write to MH i2c: 01 00 00 ED 6B 58 [08:47:07]Write i2c OK [08:47:07]MH_I2C_Read... [08:47:07]Read from MH i2c: 01 [08:47:07]MH_I2C_Read... [08:47:07]Read from MH i2c: 01 07 00 [08:47:07]MH_I2C_Read... [08:47:07]Read from MH i2c: 01 07 00 ED 6B 00 00 00 00 00 FB 0C 66 [08:47:07]RasterBufferAndPrint [08:47:07]line [08:47:07]line [08:47:07]line [08:47:07]line [08:47:07]line [08:47:07]written 0, free lines is 3332 [08:47:07]MH_Cut [08:47:07]Write to MH i2c: D1 01 00 F4 6B 01 31 [08:47:07]Write i2c OK [08:47:07]MH_I2C_Read... [08:47:07]Read from MH i2c: D1 [08:47:07]MH_I2C_Read... [08:47:07]Read from MH i2c: D1 01 00 [08:47:07]MH_I2C_Read... [08:47:07]Read from MH i2c: D1 01 00 F4 6B 00 30 [08:47:07]Write to MH i2c: 01 00 00 F5 6B 60 [08:47:07]Write i2c OK [08:47:07]MH_I2C_Read... [08:47:07]OFD Sender: No OFD packet to send [08:47:07]*** Cut start [08:47:07]*** Partial cut [08:47:07]*** CUTSNS_PIN = 1 [08:47:07]*** CUTSNS_PIN = 0 [08:47:08]*** Brake cut motor [08:47:08]Read from MH i2c: 01 [08:47:08]MH_I2C_Read... [08:47:08]*** Stop cut motor [08:47:08]*** Cut end [08:47:08]Read from MH i2c: 01 07 00 [08:47:08]MH_I2C_Read... [08:47:08]Read from MH i2c: 01 07 00 F5 6B 00 00 00 00 00 FF 0F 75 [08:47:08]process_action close_receipt done [08:47:08]requested_data is exist [08:47:08]produce_requested_data [08:47:08]requested_item fm.sn is exist - process it [08:47:08]wFMCommunicate request_size=4 [08:47:08]MH_SAM_APDU [08:47:08]CAPDU: 80 11 00 00 [08:47:08]Write to MH i2c: E2 08 00 F6 6B 80 11 00 00 00 00 00 00 DB [08:47:08]Write i2c OK [08:47:08]MH_I2C_Read... [08:47:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:47:08]Read from MH i2c: E2 [08:47:08]MH_I2C_Read... [08:47:08]Read from MH i2c: E2 17 00 [08:47:08]MH_I2C_Read... [08:47:08]Read from MH i2c: E2 17 00 F6 6B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 29 [08:47: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:47:08]wFMCommunicate OK [08:47:08]requested_item fd.num is exist - process it [08:47:08]SAM_PROTO_GetFieldsCounters [08:47:08]wFMCommunicate request_size=4 [08:47:08]MH_SAM_APDU [08:47:08]CAPDU: 80 13 00 00 [08:47:08]Write to MH i2c: E2 08 00 F7 6B 80 13 00 00 00 00 00 00 DE [08:47:08]Write i2c OK [08:47:08]MH_I2C_Read... [08:47:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:47:08]Read from MH i2c: E2 [08:47:08]MH_I2C_Read... [08:47:08]Read from MH i2c: E2 62 00 [08:47:08]MH_I2C_Read... [08:47:08]Read from MH i2c: E2 62 00 F7 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 2E 76 00 00 0E 04 04 00 72 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 86 [08:47: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 2E 76 00 00 0E 04 04 00 72 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:47:08]wFMCommunicate OK [08:47:08]SAM_PROTO_GetFieldsCounters done [08:47:08]requested_item shift.num is exist - process it [08:47:08]requested_item shift.opened is exist - process it [08:47:08]req_shift_opened [08:47:08]FM_GetShiftState [08:47:08]SAM_PROTO_GetShiftState [08:47:08]wFMCommunicate request_size=4 [08:47:08]MH_SAM_APDU [08:47:08]CAPDU: 80 13 01 00 [08:47:08]Write to MH i2c: E2 08 00 F8 6B 80 13 01 00 00 00 00 00 E0 [08:47:08]Write i2c OK [08:47:08]MH_I2C_Read... [08:47:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:47:08]Read from MH i2c: E2 [08:47:08]MH_I2C_Read... [08:47:08]Read from MH i2c: E2 0E 00 [08:47:08]MH_I2C_Read... [08:47:08]Read from MH i2c: E2 0E 00 F8 6B 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 C6 [08:47:08]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [08:47:08]wFMCommunicate OK [08:47:08]SAM_PROTO_GetShiftState done [08:47:08]FM_GetShiftState done [08:47:08]req_shift_opened done [08:47:08]requested_item shift.open_date is exist - process it [08:47:08]req_shift_open_date [08:47:08]req_shift_open_date done [08:47:08]produce_requested_data done [08:47:08]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30254,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [08:47:08]process_action_free close_receipt [08:47:08]json_value_free [08:47:08]json_value_free done [08:47:08]process_json_proto returns [08:47:08]Send response to host [08:47:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30254,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [08:47:08]free response buf [08:47:08]execute_script done [08:47:08]execute_script returns [08:47:08]free content buf [08:47:08]Sock 9.Close socket [08:47:08]Sock 9.Thread stoped [08:47:12]OFD Sender: No OFD packet to send [08:47:17]OFD Sender: No OFD packet to send [08:47:22]OFD Sender: No OFD packet to send [08:47:27]OFD Sender: No OFD packet to send [08:47:32]OFD Sender: No OFD packet to send [08:47:35]accept exits with 7 [08:47:35]New connection [08:47:35]New thread 3067370852 created [08:47:35]Thread 3067514212 joined [08:47:35]Waiting for new connection... [08:47:35] Sock 7.Parse request [08:47:35]Sock 7.Check first char [08:47:35]Sock 7.First char is OK [08:47:35]request: POST /json_proto HTTP/1.0 [08:47:35]Method: POST [08:47:35]URL: /json_proto [08:47:35]Method is POST - this is cgi request [08:47:35]url: /json_proto [08:47:35]query_string will be loaded in cgi processing [08:47:35]execute_cgi json_proto POST (null) [08:47:35]execute_cgi path=json_proto method=POST [08:47:35]POST find Content-Length [08:47:35]Host: 172.17.51.3:8080 [08:47:35]Content-Length: 677 [08:47:35]Content-Type: application/json [08:47:35] [08:47:35]POST finish read [08:47:35]Found Content-Length = 677 [08:47:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342644", "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.570, "sum" : 506.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 506.00, "total" : 506.00, "payments": [ { "type": 0, "sum" : 506.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:47:35]execute_script... [08:47: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)342644", "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.570, "sum" : 506.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 506.00, "total" : 506.00, "payments": [ { "type": 0, "sum" : 506.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:47:35]POST & json_proto [08:47:35]process_json_proto [08:47:35]json parsed OK: [08:47:35]protocol is kg_v1.0 [08:47:35]action value=close_receipt [08:47:35]process_action close_receipt [08:47:35]cmd_close_receipt [08:47:35]MH_GetDate [08:47:35]Write to MH i2c: F0 00 00 F9 6B 53 [08:47:35]Write i2c OK [08:47:35]MH_I2C_Read... [08:47:35]Read from MH i2c: F0 [08:47:35]MH_I2C_Read... [08:47:35]Read from MH i2c: F0 09 00 [08:47:35]MH_I2C_Read... [08:47:35]Read from MH i2c: F0 09 00 F9 6B 00 B0 C3 14 67 04 C1 95 66 0A [08:47:35]GetLastDocTimeStamp 1729414033 [08:47:35]current date 1729414064 [08:47:35]FM_GetShiftState [08:47:35]SAM_PROTO_GetShiftState [08:47:35]wFMCommunicate request_size=4 [08:47:35]MH_SAM_APDU [08:47:35]CAPDU: 80 13 01 00 [08:47:35]Write to MH i2c: E2 08 00 FA 6B 80 13 01 00 00 00 00 00 E2 [08:47:35]Write i2c OK [08:47:35]MH_I2C_Read... [08:47:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:47:35]Read from MH i2c: E2 [08:47:35]MH_I2C_Read... [08:47:35]Read from MH i2c: E2 0E 00 [08:47:35]MH_I2C_Read... [08:47:35]Read from MH i2c: E2 0E 00 FA 6B 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 C8 [08:47:35]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [08:47:35]wFMCommunicate OK [08:47:35]SAM_PROTO_GetShiftState done [08:47:35]FM_GetShiftState done [08:47:35]opened in 1729384718 [08:47:35]opened+sec_in_day 1729471118 [08:47:35]quantity*price = 50643 [08:47:35]sum+1 = 50644 [08:47:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 506.00 Внесено: 506.00 СДАЧА: 0.00 НСП 1% : 4.48 НДС 12% : 53.78 Наличными: 506.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 37 20.10.2024 08:47 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30255 ФПД: 153439838214327 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T084744&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30255&fm=153439838214327&tin=02508201610067®Number=0000000000186857&sum=50600 [08:47:36]StoreToDocumentArchive [08:47:36]shift 114 fd 30255 [08:47:36]save to /storage/0114/doc_00030255 [08:47:36]save last doc name /storage/0114/doc_00030255 to /storage/kkm_last_doc_name [08:47:36]save OK [08:47:36]Clear old archive folders... [08:47:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:47:36]tlvbuf is B6F63350 [08:47:36]SAM_PROTO_ClearQueue [08:47:36]wFMCommunicate request_size=4 [08:47:36]MH_SAM_APDU [08:47:36]CAPDU: 80 09 00 00 [08:47:36]Write to MH i2c: E2 08 00 07 6C 80 09 00 00 00 00 00 00 E5 [08:47:36]Write i2c OK [08:47:36]MH_I2C_Read... [08:47:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:47:36]Read from MH i2c: E2 [08:47:36]MH_I2C_Read... [08:47:36]Read from MH i2c: E2 03 00 [08:47:36]MH_I2C_Read... [08:47:36]Read from MH i2c: E2 03 00 07 6C 00 90 00 E7 [08:47:36]RAPDU: 90 00 [08:47:36]wFMCommunicate OK [08:47:36]SAM_PROTO_ClearQueue done [08:47:36]KKMCreateOFDPacket [08:47:36]OFDProtocolAddRootSTLVToBuf [08:47:36]FM_MakeSignedData [08:47:36]FM_MakeSignedData [08:47:36]SAM_PROTO_SignData [08:47:36]wFMCommunicate request_size=4 [08:47:36]MH_SAM_APDU [08:47:36]CAPDU: 80 0D 01 02 [08:47:36]Write to MH i2c: E2 08 00 08 6C 80 0D 01 02 00 00 00 00 ED [08:47:36]Write i2c OK [08:47:36]MH_I2C_Read... [08:47:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:47:36]Read from MH i2c: E2 [08:47:36]MH_I2C_Read... [08:47:36]Read from MH i2c: E2 03 00 [08:47:36]MH_I2C_Read... [08:47:36]Read from MH i2c: E2 03 00 08 6C 00 90 00 E8 [08:47:36]RAPDU: 90 00 [08:47:36]wFMCommunicate OK [08:47:36]wFMCommunicate request_size=255 [08:47:36]MH_SAM_APDU [08:47: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 92 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 C5 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 C5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C0 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 02 15 00 00 00 00 07 04 06 00 A8 C5 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 B0 C3 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 8B [08:47:36]Write to MH i2c: E2 02 01 09 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 92 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 C5 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 C5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C0 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 02 15 00 00 00 00 07 04 06 00 A8 C5 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 B0 C3 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 8B 00 00 E3 [08:47:36]Write i2c OK [08:47:36]MH_I2C_Read... [08:47:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:47:37]Read from MH i2c: E2 [08:47:37]MH_I2C_Read... [08:47:37]Read from MH i2c: E2 03 00 [08:47:37]MH_I2C_Read... [08:47:37]Read from MH i2c: E2 03 00 09 6C 00 90 00 E9 [08:47:37]RAPDU: 90 00 [08:47:37]wFMCommunicate OK [08:47:37]wFMCommunicate request_size=10 [08:47:37]MH_SAM_APDU [08:47:37]CAPDU: 80 0D 02 02 05 8D 7F 0D 18 B7 [08:47:37]Write to MH i2c: E2 0D 00 0A 6C 80 0D 02 02 05 00 8D 7F 0D 18 B7 00 00 E2 [08:47:37]Write i2c OK [08:47:37]MH_I2C_Read... [08:47:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:47:37]Read from MH i2c: E2 [08:47:37]MH_I2C_Read... [08:47:37]Read from MH i2c: E2 03 00 [08:47:37]MH_I2C_Read... [08:47:37]Read from MH i2c: E2 03 00 0A 6C 00 90 00 EA [08:47:37]RAPDU: 90 00 [08:47:37]wFMCommunicate OK [08:47:37]wFMCommunicate request_size=4 [08:47:37]MH_SAM_APDU [08:47:37]CAPDU: 80 0D 03 02 [08:47:37]Write to MH i2c: E2 08 00 0B 6C 80 0D 03 02 00 00 00 00 F2 [08:47:37]Write i2c OK [08:47:37]MH_I2C_Read... [08:47:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:47:37]Read from MH i2c: E2 [08:47:37]MH_I2C_Read... [08:47:37]Read from MH i2c: E2 0B 00 [08:47:37]MH_I2C_Read... [08:47:37]Read from MH i2c: E2 0B 00 0B 6C 00 EA CB 0F 67 4D 37 8B E6 90 00 13 [08:47:37]RAPDU: EA CB 0F 67 4D 37 8B E6 90 00 [08:47:37]wFMCommunicate OK [08:47:37]SAM_PROTO_SignData done [08:47:37]FM_MakeSignedData done [08:47:37]CreateOFDProtocolMessage [08:47:37]wFMCommunicate request_size=4 [08:47:37]MH_SAM_APDU [08:47:37]CAPDU: 80 11 00 00 [08:47:37]Write to MH i2c: E2 08 00 0C 6C 80 11 00 00 00 00 00 00 F2 [08:47:37]Write i2c OK [08:47:37]MH_I2C_Read... [08:47:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:47:37]Read from MH i2c: E2 [08:47:37]MH_I2C_Read... [08:47:37]Read from MH i2c: E2 17 00 [08:47:37]MH_I2C_Read... [08:47:37]Read from MH i2c: E2 17 00 0C 6C 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:47: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:47:37]wFMCommunicate OK [08:47:37]CreateOFDProtocolMessage done [08:47:37]OFDSenderStorePacket 30255 [08:47:37]StoreOFDPacket docnum=30255 [08:47: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 33 48 07 01 84 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 92 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 C5 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 C5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C0 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 02 15 00 00 00 00 07 04 06 00 A8 C5 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 B0 C3 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 8B 8D 7F 0D 18 B7 EA CB 0F 67 4D 37 8B E6 [08:47:37]CheckFolder [08:47:37]dirname=/storage/ofd_packets [08:47:37]CheckFolder done [08:47:37]ProducePacketName [08:47:37]name=ofd_packets/00030255 [08:47:37]NVStorageSaveData ofd_packets/00030255 [08:47:37]File name is /storage/ofd_packets/00030255 [08:47:37]Write 301 bytes [08:47:37]NVStorageSaveData done [08:47:37]OFDSenderStorePacket done [08:47:37]KKMCreateOFDPacket done [08:47:37]NVStorageSaveData kkm_last_timestamp [08:47:37]File name is /storage/kkm_last_timestamp [08:47:37]Write 4 bytes [08:47:37]NVStorageSaveData done [08:47:37]ExternCall_PrintAddStr [08:47:37]wPrintStart [08:47:37]Write to MH i2c: 01 00 00 0D 6C 79 [08:47:37]Write i2c OK [08:47:37]MH_I2C_Read... [08:47:37]Read from MH i2c: 01 [08:47:37]MH_I2C_Read... [08:47:37]Read from MH i2c: 01 07 00 [08:47:37]MH_I2C_Read... [08:47:37]Read from MH i2c: 01 07 00 0D 6C 00 00 00 00 00 FF 0F 8E [08:47:37]RasterBufferAndPrint [08:47:37]line Счет N : (1)342644 [08:47:37]line ИНН: 02508201610067 [08:47:37]line Контрольно-Кассовый Чек [08:47:37]line ПРОДАЖА [08:47:37]line ТРК (МРК, ГНК) : 53 [08:47:37]line Товар: 2710124130 [08:47:37]line Аи-92-К-2 [08:47:37]line 7.570 * 66.90 [08:47:37]line = 506.43 [08:47:37]line НДС 12% НСП 1% [08:47:37]line > о реализуемом товаре [08:47:37]line ОКРУГЛЕНИЕ: -0.43 [08:47:37]line ИТОГО: 506.00 [08:47:37]line Внесено: 506.00 [08:47:37]line СДАЧА: 0.00 [08:47:37]line НСП 1% : 4.48 [08:47:37]line НДС 12% : 53.78 [08:47:37]line Наличными: 506.00 [08:47:37]line Безнал.: 0.00 [08:47:37]line Место: АЗС № 78 "Партнер Нефть" [08:47:37]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [08:47:37]line СНО: Общий режим [08:47:37]line Чек 37 20.10.2024 08:47 [08:47:37]line Смена: 114 ФФД: 1.0 [08:47:37]line ЗНМ: 0300000137 [08:47:37]line РНМ: 0000000000186857 [08:47:37]line Версия ККМ: v1.0 [08:47:37]line ФМ: 0000000002094219 [08:47:37]line ФД: 30255 [08:47:37]line ФПД: 153439838214327 [08:47:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T084744&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30255&fm=153439838214327&tin=02508201610067®Number=0000000000186857&sum=50600 [08:47:37]OFD Sender: Processing packet 30255 [packets to send 10, broken 9] [08:47:37]ProducePacketName [08:47:37]name=ofd_packets/00030255 [08:47:37]OFD Sender: To server: pG, [08:47:37]CommunicateWithHost lk.salyk.kg:30040 [08:47:37]ConnectInit lk.salyk.kg [08:47:37]written 0, free lines is 4095 [08:47:37]Connected sock=10 [08:47: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 33 48 07 01 84 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 92 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 C5 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 C5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C0 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 02 15 00 00 00 00 07 04 06 00 A8 C5 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 B0 C3 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 8B 8D 7F 0D 18 B7 EA CB 0F 67 4D 37 8B E6 [08:47: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 79 AE 47 00 51 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 2F 76 00 00 F4 03 04 00 34 6E 14 67 B6 04 01 00 00 53 10 F5 91 E1 9B 19 38 [08:47:38]CommunicateWithHost err = 0 [08:47:38]CheckOFDResponse [08:47:38]1017 (14) - 77093643461234 [08:47:38]1041 (16) - 0000000002094219 [08:47:38]1040 (4) - 30255 [08:47:38]1012 (4) - 20.10.2024 02:43 [08:47:38]1206 (1) - 0 [08:47:38]OFD Sender: Remove packet 30255 [08:47:38]ProducePacketName [08:47:38]name=ofd_packets/00030255 [08:47:38]NVStorageDeleteData [08:47:38]Write to MH i2c: 01 00 00 38 6C A4 [08:47:38]Write i2c OK [08:47:38]MH_I2C_Read... [08:47:38]Read from MH i2c: 01 [08:47:38]MH_I2C_Read... [08:47:38]Read from MH i2c: 01 07 00 [08:47:38]MH_I2C_Read... [08:47:38]Read from MH i2c: 01 07 00 38 6C 00 00 00 00 00 F5 0C AC [08:47:38]RasterBufferAndPrint [08:47:38]line [08:47:38]line [08:47:38]line [08:47:38]line [08:47:38]line [08:47:38]written 0, free lines is 3323 [08:47:38]MH_Cut [08:47:38]Write to MH i2c: D1 01 00 3F 6C 01 7D [08:47:38]Write i2c OK [08:47:38]MH_I2C_Read... [08:47:38]Read from MH i2c: D1 [08:47:38]MH_I2C_Read... [08:47:38]Read from MH i2c: D1 01 00 [08:47:38]MH_I2C_Read... [08:47:38]Read from MH i2c: D1 01 00 3F 6C 00 7C [08:47:38]Write to MH i2c: 01 00 00 40 6C AC [08:47:38]Write i2c OK [08:47:38]MH_I2C_Read... [08:47:38]OFD Sender: No OFD packet to send [08:47:38]*** Cut start [08:47:38]*** Partial cut [08:47:38]*** CUTSNS_PIN = 1 [08:47:38]*** CUTSNS_PIN = 0 [08:47:39]*** Brake cut motor [08:47:39]Read from MH i2c: 01 [08:47:39]MH_I2C_Read... [08:47:39]*** Stop cut motor [08:47:39]*** Cut end [08:47:39]Read from MH i2c: 01 07 00 [08:47:39]MH_I2C_Read... [08:47:39]Read from MH i2c: 01 07 00 40 6C 00 00 00 00 00 FF 0F C1 [08:47:39]process_action close_receipt done [08:47:39]requested_data is exist [08:47:39]produce_requested_data [08:47:39]requested_item fm.sn is exist - process it [08:47:39]wFMCommunicate request_size=4 [08:47:39]MH_SAM_APDU [08:47:39]CAPDU: 80 11 00 00 [08:47:39]Write to MH i2c: E2 08 00 41 6C 80 11 00 00 00 00 00 00 27 [08:47:39]Write i2c OK [08:47:39]MH_I2C_Read... [08:47:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:47:39]Read from MH i2c: E2 [08:47:39]MH_I2C_Read... [08:47:39]Read from MH i2c: E2 17 00 [08:47:39]MH_I2C_Read... [08:47:39]Read from MH i2c: E2 17 00 41 6C 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:47: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:47:39]wFMCommunicate OK [08:47:39]requested_item fd.num is exist - process it [08:47:39]SAM_PROTO_GetFieldsCounters [08:47:39]wFMCommunicate request_size=4 [08:47:39]MH_SAM_APDU [08:47:39]CAPDU: 80 13 00 00 [08:47:39]Write to MH i2c: E2 08 00 42 6C 80 13 00 00 00 00 00 00 2A [08:47:39]Write i2c OK [08:47:39]MH_I2C_Read... [08:47:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:47:39]Read from MH i2c: E2 [08:47:39]MH_I2C_Read... [08:47:39]Read from MH i2c: E2 62 00 [08:47:39]MH_I2C_Read... [08:47:39]Read from MH i2c: E2 62 00 42 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 76 00 00 0E 04 04 00 72 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 D6 [08:47: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 76 00 00 0E 04 04 00 72 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:47:39]wFMCommunicate OK [08:47:39]SAM_PROTO_GetFieldsCounters done [08:47:39]requested_item shift.num is exist - process it [08:47:39]requested_item shift.opened is exist - process it [08:47:39]req_shift_opened [08:47:39]FM_GetShiftState [08:47:39]SAM_PROTO_GetShiftState [08:47:39]wFMCommunicate request_size=4 [08:47:39]MH_SAM_APDU [08:47:39]CAPDU: 80 13 01 00 [08:47:39]Write to MH i2c: E2 08 00 43 6C 80 13 01 00 00 00 00 00 2C [08:47:39]Write i2c OK [08:47:39]MH_I2C_Read... [08:47:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:47:39]Read from MH i2c: E2 [08:47:39]MH_I2C_Read... [08:47:39]Read from MH i2c: E2 0E 00 [08:47:39]MH_I2C_Read... [08:47:39]Read from MH i2c: E2 0E 00 43 6C 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 12 [08:47:39]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [08:47:39]wFMCommunicate OK [08:47:39]SAM_PROTO_GetShiftState done [08:47:39]FM_GetShiftState done [08:47:39]req_shift_opened done [08:47:39]requested_item shift.open_date is exist - process it [08:47:39]req_shift_open_date [08:47:39]req_shift_open_date done [08:47:39]produce_requested_data done [08:47:39]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30255,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [08:47:39]process_action_free close_receipt [08:47:39]json_value_free [08:47:39]json_value_free done [08:47:39]process_json_proto returns [08:47:39]Send response to host [08:47:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30255,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [08:47:39]free response buf [08:47:39]execute_script done [08:47:39]execute_script returns [08:47:39]free content buf [08:47:39]Sock 7.Close socket [08:47:39]Sock 7.Thread stoped [08:47:43]OFD Sender: No OFD packet to send [08:47:48]OFD Sender: No OFD packet to send [08:47:53]OFD Sender: No OFD packet to send [08:47:58]OFD Sender: No OFD packet to send [08:48:03]OFD Sender: No OFD packet to send [08:48:08]OFD Sender: No OFD packet to send [08:48:13]OFD Sender: No OFD packet to send [08:48:18]OFD Sender: No OFD packet to send [08:48:23]OFD Sender: No OFD packet to send [08:48:28]OFD Sender: No OFD packet to send [08:48:33]OFD Sender: No OFD packet to send [08:48:38]OFD Sender: No OFD packet to send [08:48:43]OFD Sender: No OFD packet to send [08:48:48]OFD Sender: No OFD packet to send [08:48:53]OFD Sender: No OFD packet to send [08:48:58]OFD Sender: No OFD packet to send [08:49:03]OFD Sender: No OFD packet to send [08:49:08]OFD Sender: No OFD packet to send [08:49:13]OFD Sender: No OFD packet to send [08:49:18]OFD Sender: No OFD packet to send [08:49:23]OFD Sender: No OFD packet to send [08:49:28]OFD Sender: No OFD packet to send [08:49:33]OFD Sender: No OFD packet to send [08:49:38]OFD Sender: No OFD packet to send [08:49:43]OFD Sender: No OFD packet to send [08:49:48]OFD Sender: No OFD packet to send [08:49:53]OFD Sender: No OFD packet to send [08:49:58]OFD Sender: No OFD packet to send [08:50:03]OFD Sender: No OFD packet to send [08:50:08]OFD Sender: No OFD packet to send [08:50:13]OFD Sender: No OFD packet to send [08:50:18]OFD Sender: No OFD packet to send [08:50:23]OFD Sender: No OFD packet to send [08:50:28]OFD Sender: No OFD packet to send [08:50:33]OFD Sender: No OFD packet to send [08:50:38]OFD Sender: No OFD packet to send [08:50:43]OFD Sender: No OFD packet to send [08:50:48]OFD Sender: No OFD packet to send [08:50:53]OFD Sender: No OFD packet to send [08:50:58]OFD Sender: No OFD packet to send [08:51:03]OFD Sender: No OFD packet to send [08:51:08]OFD Sender: No OFD packet to send [08:51:13]OFD Sender: No OFD packet to send [08:51:18]OFD Sender: No OFD packet to send [08:51:23]OFD Sender: No OFD packet to send [08:51:28]OFD Sender: No OFD packet to send [08:51:33]OFD Sender: No OFD packet to send [08:51:38]OFD Sender: No OFD packet to send [08:51:43]OFD Sender: No OFD packet to send [08:51:48]OFD Sender: No OFD packet to send [08:51:53]OFD Sender: No OFD packet to send [08:51:58]OFD Sender: No OFD packet to send [08:52:03]OFD Sender: No OFD packet to send [08:52:08]OFD Sender: No OFD packet to send [08:52:13]OFD Sender: No OFD packet to send [08:52:18]OFD Sender: No OFD packet to send [08:52:19]accept exits with 9 [08:52:19]New connection [08:52:19]New thread 3067514212 created [08:52:19]Thread 3067370852 joined [08:52:19]Waiting for new connection... [08:52:19] Sock 9.Parse request [08:52:19]Sock 9.Check first char [08:52:19]Sock 9.First char is OK [08:52:19]request: POST /json_proto HTTP/1.0 [08:52:19]Method: POST [08:52:19]URL: /json_proto [08:52:19]Method is POST - this is cgi request [08:52:19]url: /json_proto [08:52:19]query_string will be loaded in cgi processing [08:52:19]execute_cgi json_proto POST (null) [08:52:19]execute_cgi path=json_proto method=POST [08:52:19]POST find Content-Length [08:52:19]Host: 172.17.51.3:8080 [08:52:19]Content-Length: 677 [08:52:19]Content-Type: application/json [08:52:19] [08:52:19]POST finish read [08:52:19]Found Content-Length = 677 [08:52:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342645", "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:52:19]execute_script... [08:52: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)342645", "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:52:19]POST & json_proto [08:52:19]process_json_proto [08:52:19]json parsed OK: [08:52:19]protocol is kg_v1.0 [08:52:19]action value=close_receipt [08:52:19]process_action close_receipt [08:52:19]cmd_close_receipt [08:52:19]MH_GetDate [08:52:19]Write to MH i2c: F0 00 00 44 6C 9F [08:52:19]Write i2c OK [08:52:19]MH_I2C_Read... [08:52:19]Read from MH i2c: F0 [08:52:19]MH_I2C_Read... [08:52:19]Read from MH i2c: F0 09 00 [08:52:19]MH_I2C_Read... [08:52:19]Read from MH i2c: F0 09 00 44 6C 00 CC C4 14 67 04 C1 95 66 73 [08:52:19]GetLastDocTimeStamp 1729414064 [08:52:19]current date 1729414348 [08:52:19]FM_GetShiftState [08:52:19]SAM_PROTO_GetShiftState [08:52:19]wFMCommunicate request_size=4 [08:52:19]MH_SAM_APDU [08:52:19]CAPDU: 80 13 01 00 [08:52:19]Write to MH i2c: E2 08 00 45 6C 80 13 01 00 00 00 00 00 2E [08:52:19]Write i2c OK [08:52:19]MH_I2C_Read... [08:52:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:52:20]Read from MH i2c: E2 [08:52:20]MH_I2C_Read... [08:52:20]Read from MH i2c: E2 0E 00 [08:52:20]MH_I2C_Read... [08:52:20]Read from MH i2c: E2 0E 00 45 6C 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 14 [08:52:20]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [08:52:20]wFMCommunicate OK [08:52:20]SAM_PROTO_GetShiftState done [08:52:20]FM_GetShiftState done [08:52:20]opened in 1729384718 [08:52:20]opened+sec_in_day 1729471118 [08:52:20]quantity*price = 50041 [08:52:20]sum+1 = 50042 [08:52:20]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 СНО: Общий режим Чек 38 20.10.2024 08:52 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30256 ФПД: 57231345532523 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T085228&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30256&fm=57231345532523&tin=02508201610067®Number=0000000000186857&sum=50000 [08:52:21]StoreToDocumentArchive [08:52:21]shift 114 fd 30256 [08:52:21]save to /storage/0114/doc_00030256 [08:52:21]save last doc name /storage/0114/doc_00030256 to /storage/kkm_last_doc_name [08:52:21]save OK [08:52:21]Clear old archive folders... [08:52:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:52:21]tlvbuf is 00CEBA40 [08:52:21]SAM_PROTO_ClearQueue [08:52:21]wFMCommunicate request_size=4 [08:52:21]MH_SAM_APDU [08:52:21]CAPDU: 80 09 00 00 [08:52:21]Write to MH i2c: E2 08 00 52 6C 80 09 00 00 00 00 00 00 30 [08:52:21]Write i2c OK [08:52:21]MH_I2C_Read... [08:52:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:52:21]Read from MH i2c: E2 [08:52:21]MH_I2C_Read... [08:52:21]Read from MH i2c: E2 03 00 [08:52:21]MH_I2C_Read... [08:52:21]Read from MH i2c: E2 03 00 52 6C 00 90 00 32 [08:52:21]RAPDU: 90 00 [08:52:21]wFMCommunicate OK [08:52:21]SAM_PROTO_ClearQueue done [08:52:21]KKMCreateOFDPacket [08:52:21]OFDProtocolAddRootSTLVToBuf [08:52:21]FM_MakeSignedData [08:52:21]FM_MakeSignedData [08:52:21]SAM_PROTO_SignData [08:52:21]wFMCommunicate request_size=4 [08:52:21]MH_SAM_APDU [08:52:21]CAPDU: 80 0D 01 02 [08:52:21]Write to MH i2c: E2 08 00 53 6C 80 0D 01 02 00 00 00 00 38 [08:52:21]Write i2c OK [08:52:21]MH_I2C_Read... [08:52:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:52:21]Read from MH i2c: E2 [08:52:21]MH_I2C_Read... [08:52:21]Read from MH i2c: E2 03 00 [08:52:21]MH_I2C_Read... [08:52:21]Read from MH i2c: E2 03 00 53 6C 00 90 00 33 [08:52:21]RAPDU: 90 00 [08:52:21]wFMCommunicate OK [08:52:21]wFMCommunicate request_size=255 [08:52:21]MH_SAM_APDU [08:52: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 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 26 00 00 00 F4 03 04 00 CC C4 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 34 [08:52:21]Write to MH i2c: E2 02 01 54 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 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 26 00 00 00 F4 03 04 00 CC C4 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 34 00 00 46 [08:52:21]Write i2c OK [08:52:21]MH_I2C_Read... [08:52:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:52:21]Read from MH i2c: E2 [08:52:21]MH_I2C_Read... [08:52:21]Read from MH i2c: E2 03 00 [08:52:21]MH_I2C_Read... [08:52:21]Read from MH i2c: E2 03 00 54 6C 00 90 00 34 [08:52:21]RAPDU: 90 00 [08:52:21]wFMCommunicate OK [08:52:21]wFMCommunicate request_size=10 [08:52:21]MH_SAM_APDU [08:52:21]CAPDU: 80 0D 02 02 05 0D 36 05 3E 6B [08:52:21]Write to MH i2c: E2 0D 00 55 6C 80 0D 02 02 05 00 0D 36 05 3E 6B 00 00 36 [08:52:21]Write i2c OK [08:52:21]MH_I2C_Read... [08:52:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:52:21]Read from MH i2c: E2 [08:52:21]MH_I2C_Read... [08:52:21]Read from MH i2c: E2 03 00 [08:52:21]MH_I2C_Read... [08:52:21]Read from MH i2c: E2 03 00 55 6C 00 90 00 35 [08:52:21]RAPDU: 90 00 [08:52:21]wFMCommunicate OK [08:52:21]wFMCommunicate request_size=4 [08:52:21]MH_SAM_APDU [08:52:21]CAPDU: 80 0D 03 02 [08:52:21]Write to MH i2c: E2 08 00 56 6C 80 0D 03 02 00 00 00 00 3D [08:52:21]Write i2c OK [08:52:21]MH_I2C_Read... [08:52:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:52:21]Read from MH i2c: E2 [08:52:21]MH_I2C_Read... [08:52:21]Read from MH i2c: E2 0B 00 [08:52:21]MH_I2C_Read... [08:52:21]Read from MH i2c: E2 0B 00 56 6C 00 9A 25 8A 4A 0A 15 C5 F1 90 00 A6 [08:52:21]RAPDU: 9A 25 8A 4A 0A 15 C5 F1 90 00 [08:52:21]wFMCommunicate OK [08:52:21]SAM_PROTO_SignData done [08:52:21]FM_MakeSignedData done [08:52:21]CreateOFDProtocolMessage [08:52:21]wFMCommunicate request_size=4 [08:52:21]MH_SAM_APDU [08:52:21]CAPDU: 80 11 00 00 [08:52:21]Write to MH i2c: E2 08 00 57 6C 80 11 00 00 00 00 00 00 3D [08:52:21]Write i2c OK [08:52:21]MH_I2C_Read... [08:52:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:52:21]Read from MH i2c: E2 [08:52:21]MH_I2C_Read... [08:52:21]Read from MH i2c: E2 17 00 [08:52:21]MH_I2C_Read... [08:52:21]Read from MH i2c: E2 17 00 57 6C 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:52:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [08:52:21]wFMCommunicate OK [08:52:21]CreateOFDProtocolMessage done [08:52:21]OFDSenderStorePacket 30256 [08:52:21]StoreOFDPacket docnum=30256 [08:52: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 37 52 07 01 8C 2B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 26 00 00 00 F4 03 04 00 CC C4 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 34 0D 36 05 3E 6B 9A 25 8A 4A 0A 15 C5 F1 [08:52:21]CheckFolder [08:52:21]dirname=/storage/ofd_packets [08:52:21]CheckFolder done [08:52:21]ProducePacketName [08:52:21]name=ofd_packets/00030256 [08:52:21]NVStorageSaveData ofd_packets/00030256 [08:52:21]File name is /storage/ofd_packets/00030256 [08:52:21]Write 301 bytes [08:52:21]NVStorageSaveData done [08:52:21]OFDSenderStorePacket done [08:52:21]KKMCreateOFDPacket done [08:52:21]NVStorageSaveData kkm_last_timestamp [08:52:21]File name is /storage/kkm_last_timestamp [08:52:21]Write 4 bytes [08:52:21]NVStorageSaveData done [08:52:21]ExternCall_PrintAddStr [08:52:21]wPrintStart [08:52:21]Write to MH i2c: 01 00 00 58 6C C4 [08:52:21]Write i2c OK [08:52:21]MH_I2C_Read... [08:52:21]Read from MH i2c: 01 [08:52:21]MH_I2C_Read... [08:52:21]Read from MH i2c: 01 07 00 [08:52:21]MH_I2C_Read... [08:52:21]Read from MH i2c: 01 07 00 58 6C 00 00 00 00 00 FF 0F D9 [08:52:21]RasterBufferAndPrint [08:52:21]line Счет N : (1)342645 [08:52:21]line ИНН: 02508201610067 [08:52:21]line Контрольно-Кассовый Чек [08:52:21]line ПРОДАЖА [08:52:21]line ТРК (МРК, ГНК) : 63 [08:52:21]line Товар: 2710124130 [08:52:21]line Аи-92-К-2 [08:52:21]line 7.480 * 66.90 [08:52:21]line = 500.41 [08:52:21]line НДС 12% НСП 1% [08:52:21]line > о реализуемом товаре [08:52:21]line ОКРУГЛЕНИЕ: -0.41 [08:52:21]line ИТОГО: 500.00 [08:52:21]line Внесено: 500.00 [08:52:21]line СДАЧА: 0.00 [08:52:21]line НСП 1% : 4.43 [08:52:21]line НДС 12% : 53.14 [08:52:21]line Наличными: 500.00 [08:52:21]line Безнал.: 0.00 [08:52:21]line Место: АЗС № 78 "Партнер Нефть" [08:52:21]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [08:52:21]line СНО: Общий режим [08:52:21]line Чек 38 20.10.2024 08:52 [08:52:21]line Смена: 114 ФФД: 1.0 [08:52:21]line ЗНМ: 0300000137 [08:52:21]line РНМ: 0000000000186857 [08:52:21]line Версия ККМ: v1.0 [08:52:21]line ФМ: 0000000002094219 [08:52:21]line ФД: 30256 [08:52:21]line ФПД: 57231345532523 [08:52:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T085228&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30256&fm=57231345532523&tin=02508201610067®Number=0000000000186857&sum=50000 [08:52:22]OFD Sender: Processing packet 30256 [packets to send 10, broken 9] [08:52:22]ProducePacketName [08:52:22]name=ofd_packets/00030256 [08:52:22]OFD Sender: To server: pG, [08:52:22]CommunicateWithHost lk.salyk.kg:30040 [08:52:22]ConnectInit lk.salyk.kg [08:52:22]written 0, free lines is 4095 [08:52:22]Connected sock=11 [08:52: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 37 52 07 01 8C 2B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 26 00 00 00 F4 03 04 00 CC C4 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 34 0D 36 05 3E 6B 9A 25 8A 4A 0A 15 C5 F1 [08:52: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 82 8E 47 00 C0 DF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 30 76 00 00 F4 03 04 00 50 6F 14 67 B6 04 01 00 00 C3 F6 06 57 2D DA 14 68 [08:52:22]CommunicateWithHost err = 0 [08:52:22]CheckOFDResponse [08:52:22]1017 (14) - 77093643461234 [08:52:22]1041 (16) - 0000000002094219 [08:52:22]1040 (4) - 30256 [08:52:22]1012 (4) - 20.10.2024 02:47 [08:52:22]1206 (1) - 0 [08:52:22]OFD Sender: Remove packet 30256 [08:52:22]ProducePacketName [08:52:22]name=ofd_packets/00030256 [08:52:22]NVStorageDeleteData [08:52:22]Write to MH i2c: 01 00 00 83 6C EF [08:52:22]Write i2c OK [08:52:22]MH_I2C_Read... [08:52:22]Read from MH i2c: 01 [08:52:22]MH_I2C_Read... [08:52:22]Read from MH i2c: 01 07 00 [08:52:22]MH_I2C_Read... [08:52:22]Read from MH i2c: 01 07 00 83 6C 00 00 00 00 00 E4 0C E6 [08:52:22]RasterBufferAndPrint [08:52:22]line [08:52:22]line [08:52:22]line [08:52:22]line [08:52:22]line [08:52:22]written 0, free lines is 3306 [08:52:22]MH_Cut [08:52:22]Write to MH i2c: D1 01 00 8A 6C 01 C8 [08:52:22]Write i2c OK [08:52:22]MH_I2C_Read... [08:52:22]Read from MH i2c: D1 [08:52:22]MH_I2C_Read... [08:52:22]Read from MH i2c: D1 01 00 [08:52:22]MH_I2C_Read... [08:52:22]Read from MH i2c: D1 01 00 8A 6C 00 C7 [08:52:22]Write to MH i2c: 01 00 00 8B 6C F7 [08:52:22]Write i2c OK [08:52:22]MH_I2C_Read... [08:52:22]OFD Sender: No OFD packet to send [08:52:23]*** Cut start [08:52:23]*** Partial cut [08:52:23]*** CUTSNS_PIN = 1 [08:52:23]*** CUTSNS_PIN = 0 [08:52:23]*** Brake cut motor [08:52:23]Read from MH i2c: 01 [08:52:23]MH_I2C_Read... [08:52:23]*** Stop cut motor [08:52:23]*** Cut end [08:52:23]Read from MH i2c: 01 07 00 [08:52:23]MH_I2C_Read... [08:52:23]Read from MH i2c: 01 07 00 8B 6C 00 00 00 00 00 FF 0F 0C [08:52:23]process_action close_receipt done [08:52:23]requested_data is exist [08:52:23]produce_requested_data [08:52:23]requested_item fm.sn is exist - process it [08:52:23]wFMCommunicate request_size=4 [08:52:23]MH_SAM_APDU [08:52:23]CAPDU: 80 11 00 00 [08:52:23]Write to MH i2c: E2 08 00 8C 6C 80 11 00 00 00 00 00 00 72 [08:52:23]Write i2c OK [08:52:23]MH_I2C_Read... [08:52:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:52:23]Read from MH i2c: E2 [08:52:23]MH_I2C_Read... [08:52:23]Read from MH i2c: E2 17 00 [08:52:23]MH_I2C_Read... [08:52:23]Read from MH i2c: E2 17 00 8C 6C 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:52: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:52:23]wFMCommunicate OK [08:52:23]requested_item fd.num is exist - process it [08:52:23]SAM_PROTO_GetFieldsCounters [08:52:23]wFMCommunicate request_size=4 [08:52:23]MH_SAM_APDU [08:52:23]CAPDU: 80 13 00 00 [08:52:23]Write to MH i2c: E2 08 00 8D 6C 80 13 00 00 00 00 00 00 75 [08:52:23]Write i2c OK [08:52:23]MH_I2C_Read... [08:52:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:52:23]Read from MH i2c: E2 [08:52:23]MH_I2C_Read... [08:52:23]Read from MH i2c: E2 62 00 [08:52:23]MH_I2C_Read... [08:52:23]Read from MH i2c: E2 62 00 8D 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 30 76 00 00 0E 04 04 00 72 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 25 [08:52: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 30 76 00 00 0E 04 04 00 72 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 [08:52:23]wFMCommunicate OK [08:52:23]SAM_PROTO_GetFieldsCounters done [08:52:23]requested_item shift.num is exist - process it [08:52:23]requested_item shift.opened is exist - process it [08:52:23]req_shift_opened [08:52:23]FM_GetShiftState [08:52:23]SAM_PROTO_GetShiftState [08:52:23]wFMCommunicate request_size=4 [08:52:23]MH_SAM_APDU [08:52:23]CAPDU: 80 13 01 00 [08:52:23]Write to MH i2c: E2 08 00 8E 6C 80 13 01 00 00 00 00 00 77 [08:52:23]Write i2c OK [08:52:23]MH_I2C_Read... [08:52:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:52:24]Read from MH i2c: E2 [08:52:24]MH_I2C_Read... [08:52:24]Read from MH i2c: E2 0E 00 [08:52:24]MH_I2C_Read... [08:52:24]Read from MH i2c: E2 0E 00 8E 6C 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 5D [08:52:24]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [08:52:24]wFMCommunicate OK [08:52:24]SAM_PROTO_GetShiftState done [08:52:24]FM_GetShiftState done [08:52:24]req_shift_opened done [08:52:24]requested_item shift.open_date is exist - process it [08:52:24]req_shift_open_date [08:52:24]req_shift_open_date done [08:52:24]produce_requested_data done [08:52:24]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30256,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [08:52:24]process_action_free close_receipt [08:52:24]json_value_free [08:52:24]json_value_free done [08:52:24]process_json_proto returns [08:52:24]Send response to host [08:52:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30256,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [08:52:24]free response buf [08:52:24]execute_script done [08:52:24]execute_script returns [08:52:24]free content buf [08:52:24]Sock 9.Close socket [08:52:24]Sock 9.Thread stoped [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:23]OFD Sender: No OFD packet to send [08:54:28]OFD Sender: No OFD packet to send [08:54:33]OFD Sender: No OFD packet to send [08:54:38]OFD Sender: No OFD packet to send [08:54:43]OFD Sender: No OFD packet to send [08:54:48]OFD Sender: No OFD packet to send [08:54:53]OFD Sender: No OFD packet to send [08:54:58]OFD Sender: No OFD packet to send [08:55:03]OFD Sender: No OFD packet to send [08:55:08]OFD Sender: No OFD packet to send [08:55:13]OFD Sender: No OFD packet to send [08:55:18]OFD Sender: No OFD packet to send [08:55:23]OFD Sender: No OFD packet to send [08:55:28]OFD Sender: No OFD packet to send [08:55:33]OFD Sender: No OFD packet to send [08:55:38]OFD Sender: No OFD packet to send [08:55:43]OFD Sender: No OFD packet to send [08:55:48]OFD Sender: No OFD packet to send [08:55:53]OFD Sender: No OFD packet to send [08:55:58]OFD Sender: No OFD packet to send [08:56:03]OFD Sender: No OFD packet to send [08:56:08]OFD Sender: No OFD packet to send [08:56:13]OFD Sender: No OFD packet to send [08:56:18]OFD Sender: No OFD packet to send [08:56:23]OFD Sender: No OFD packet to send [08:56:28]OFD Sender: No OFD packet to send [08:56:33]OFD Sender: No OFD packet to send [08:56:38]OFD Sender: No OFD packet to send [08:56:43]OFD Sender: No OFD packet to send [08:56:48]OFD Sender: No OFD packet to send [08:56:53]OFD Sender: No OFD packet to send [08:56:58]OFD Sender: No OFD packet to send [08:57:03]OFD Sender: No OFD packet to send [08:57:08]OFD Sender: No OFD packet to send [08:57:13]OFD Sender: No OFD packet to send [08:57:18]OFD Sender: No OFD packet to send [08:57:23]OFD Sender: No OFD packet to send [08:57:28]OFD Sender: No OFD packet to send [08:57:33]OFD Sender: No OFD packet to send [08:57:38]OFD Sender: No OFD packet to send [08:57:43]OFD Sender: No OFD packet to send [08:57:48]OFD Sender: No OFD packet to send [08:57:53]OFD Sender: No OFD packet to send [08:57:58]OFD Sender: No OFD packet to send [08:58:03]OFD Sender: No OFD packet to send [08:58:08]OFD Sender: No OFD packet to send [08:58:13]OFD Sender: No OFD packet to send [08:58:18]OFD Sender: No OFD packet to send [08:58:23]OFD Sender: No OFD packet to send [08:58:28]OFD Sender: No OFD packet to send [08:58:33]OFD Sender: No OFD packet to send [08:58:38]OFD Sender: No OFD packet to send [08:58:43]OFD Sender: No OFD packet to send [08:58:48]OFD Sender: No OFD packet to send [08:58:53]OFD Sender: No OFD packet to send [08:58:58]OFD Sender: No OFD packet to send [08:58:59]accept exits with 7 [08:58:59]New connection [08:58:59]New thread 3067370852 created [08:58:59]Thread 3067514212 joined [08:58:59]Waiting for new connection... [08:58:59] Sock 7.Parse request [08:58:59]Sock 7.Check first char [08:58:59]Sock 7.First char is OK [08:58:59]request: POST /json_proto HTTP/1.0 [08:58:59]Method: POST [08:58:59]URL: /json_proto [08:58:59]Method is POST - this is cgi request [08:58:59]url: /json_proto [08:58:59]query_string will be loaded in cgi processing [08:58:59]execute_cgi json_proto POST (null) [08:58:59]execute_cgi path=json_proto method=POST [08:58:59]POST find Content-Length [08:58:59]Host: 172.17.51.3:8080 [08:58:59]Content-Length: 677 [08:58:59]Content-Type: application/json [08:58:59] [08:58:59]POST finish read [08:58:59]Found Content-Length = 677 [08:58:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342647", "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" ] } } [08:58:59]execute_script... [08:58: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)342647", "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" ] } } [08:58:59]POST & json_proto [08:58:59]process_json_proto [08:58:59]json parsed OK: [08:58:59]protocol is kg_v1.0 [08:58:59]action value=close_receipt [08:58:59]process_action close_receipt [08:58:59]cmd_close_receipt [08:58:59]MH_GetDate [08:58:59]Write to MH i2c: F0 00 00 8F 6C EA [08:58:59]Write i2c OK [08:58:59]MH_I2C_Read... [08:58:59]Read from MH i2c: F0 [08:58:59]MH_I2C_Read... [08:58:59]Read from MH i2c: F0 09 00 [08:58:59]MH_I2C_Read... [08:58:59]Read from MH i2c: F0 09 00 8F 6C 00 5C C6 14 67 04 C1 95 66 50 [08:58:59]GetLastDocTimeStamp 1729414348 [08:58:59]current date 1729414748 [08:58:59]FM_GetShiftState [08:58:59]SAM_PROTO_GetShiftState [08:58:59]wFMCommunicate request_size=4 [08:58:59]MH_SAM_APDU [08:58:59]CAPDU: 80 13 01 00 [08:58:59]Write to MH i2c: E2 08 00 90 6C 80 13 01 00 00 00 00 00 79 [08:58:59]Write i2c OK [08:58:59]MH_I2C_Read... [08:58:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:58:59]Read from MH i2c: E2 [08:58:59]MH_I2C_Read... [08:58:59]Read from MH i2c: E2 0E 00 [08:58:59]MH_I2C_Read... [08:58:59]Read from MH i2c: E2 0E 00 90 6C 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 5F [08:58:59]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [08:58:59]wFMCommunicate OK [08:58:59]SAM_PROTO_GetShiftState done [08:58:59]FM_GetShiftState done [08:58:59]opened in 1729384718 [08:58:59]opened+sec_in_day 1729471118 [08:58:59]quantity*price = 20003 [08:58:59]sum+1 = 20004 [08:58: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 СНО: Общий режим Чек 39 20.10.2024 08:59 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30257 ФПД: 121360949423905 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T085908&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30257&fm=121360949423905&tin=02508201610067®Number=0000000000186857&sum=20000 [08:59:00]StoreToDocumentArchive [08:59:00]shift 114 fd 30257 [08:59:00]save to /storage/0114/doc_00030257 [08:59:00]save last doc name /storage/0114/doc_00030257 to /storage/kkm_last_doc_name [08:59:00]save OK [08:59:00]Clear old archive folders... [08:59:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:59:00]tlvbuf is 00BE9480 [08:59:00]SAM_PROTO_ClearQueue [08:59:00]wFMCommunicate request_size=4 [08:59:00]MH_SAM_APDU [08:59:00]CAPDU: 80 09 00 00 [08:59:00]Write to MH i2c: E2 08 00 9D 6C 80 09 00 00 00 00 00 00 7B [08:59:00]Write i2c OK [08:59:00]MH_I2C_Read... [08:59:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:59:00]Read from MH i2c: E2 [08:59:00]MH_I2C_Read... [08:59:00]Read from MH i2c: E2 03 00 [08:59:00]MH_I2C_Read... [08:59:00]Read from MH i2c: E2 03 00 9D 6C 00 90 00 7D [08:59:00]RAPDU: 90 00 [08:59:00]wFMCommunicate OK [08:59:00]SAM_PROTO_ClearQueue done [08:59:00]KKMCreateOFDPacket [08:59:00]OFDProtocolAddRootSTLVToBuf [08:59:00]FM_MakeSignedData [08:59:00]FM_MakeSignedData [08:59:00]SAM_PROTO_SignData [08:59:00]wFMCommunicate request_size=4 [08:59:00]MH_SAM_APDU [08:59:00]CAPDU: 80 0D 01 02 [08:59:00]Write to MH i2c: E2 08 00 9E 6C 80 0D 01 02 00 00 00 00 83 [08:59:00]Write i2c OK [08:59:00]MH_I2C_Read... [08:59:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:59:00]Read from MH i2c: E2 [08:59:00]MH_I2C_Read... [08:59:00]Read from MH i2c: E2 03 00 [08:59:00]MH_I2C_Read... [08:59:00]Read from MH i2c: E2 03 00 9E 6C 00 90 00 7E [08:59:00]RAPDU: 90 00 [08:59:00]wFMCommunicate OK [08:59:00]wFMCommunicate request_size=255 [08:59:00]MH_SAM_APDU [08:59: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 27 00 00 00 F4 03 04 00 5C C6 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 6E [08:59:00]Write to MH i2c: E2 02 01 9F 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 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 27 00 00 00 F4 03 04 00 5C C6 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 6E 00 00 21 [08:59:00]Write i2c OK [08:59:00]MH_I2C_Read... [08:59:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:59:01]Read from MH i2c: E2 [08:59:01]MH_I2C_Read... [08:59:01]Read from MH i2c: E2 03 00 [08:59:01]MH_I2C_Read... [08:59:01]Read from MH i2c: E2 03 00 9F 6C 00 90 00 7F [08:59:01]RAPDU: 90 00 [08:59:01]wFMCommunicate OK [08:59:01]wFMCommunicate request_size=10 [08:59:01]MH_SAM_APDU [08:59:01]CAPDU: 80 0D 02 02 05 60 8C 47 AF 21 [08:59:01]Write to MH i2c: E2 0D 00 A0 6C 80 0D 02 02 05 00 60 8C 47 AF 21 00 00 93 [08:59:01]Write i2c OK [08:59:01]MH_I2C_Read... [08:59:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:59:01]Read from MH i2c: E2 [08:59:01]MH_I2C_Read... [08:59:01]Read from MH i2c: E2 03 00 [08:59:01]MH_I2C_Read... [08:59:01]Read from MH i2c: E2 03 00 A0 6C 00 90 00 80 [08:59:01]RAPDU: 90 00 [08:59:01]wFMCommunicate OK [08:59:01]wFMCommunicate request_size=4 [08:59:01]MH_SAM_APDU [08:59:01]CAPDU: 80 0D 03 02 [08:59:01]Write to MH i2c: E2 08 00 A1 6C 80 0D 03 02 00 00 00 00 88 [08:59:01]Write i2c OK [08:59:01]MH_I2C_Read... [08:59:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:59:01]Read from MH i2c: E2 [08:59:01]MH_I2C_Read... [08:59:01]Read from MH i2c: E2 0B 00 [08:59:01]MH_I2C_Read... [08:59:01]Read from MH i2c: E2 0B 00 A1 6C 00 D8 11 79 9D 16 F5 5D 16 90 00 06 [08:59:01]RAPDU: D8 11 79 9D 16 F5 5D 16 90 00 [08:59:01]wFMCommunicate OK [08:59:01]SAM_PROTO_SignData done [08:59:01]FM_MakeSignedData done [08:59:01]CreateOFDProtocolMessage [08:59:01]wFMCommunicate request_size=4 [08:59:01]MH_SAM_APDU [08:59:01]CAPDU: 80 11 00 00 [08:59:01]Write to MH i2c: E2 08 00 A2 6C 80 11 00 00 00 00 00 00 88 [08:59:01]Write i2c OK [08:59:01]MH_I2C_Read... [08:59:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:59:01]Read from MH i2c: E2 [08:59:01]MH_I2C_Read... [08:59:01]Read from MH i2c: E2 17 00 [08:59:01]MH_I2C_Read... [08:59:01]Read from MH i2c: E2 17 00 A2 6C 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:59:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [08:59:01]wFMCommunicate OK [08:59:01]CreateOFDProtocolMessage done [08:59:01]OFDSenderStorePacket 30257 [08:59:01]StoreOFDPacket docnum=30257 [08:59: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 FD 98 07 01 02 C9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 27 00 00 00 F4 03 04 00 5C C6 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 6E 60 8C 47 AF 21 D8 11 79 9D 16 F5 5D 16 [08:59:01]CheckFolder [08:59:01]dirname=/storage/ofd_packets [08:59:01]CheckFolder done [08:59:01]ProducePacketName [08:59:01]name=ofd_packets/00030257 [08:59:01]NVStorageSaveData ofd_packets/00030257 [08:59:01]File name is /storage/ofd_packets/00030257 [08:59:01]Write 301 bytes [08:59:01]NVStorageSaveData done [08:59:01]OFDSenderStorePacket done [08:59:01]KKMCreateOFDPacket done [08:59:01]NVStorageSaveData kkm_last_timestamp [08:59:01]File name is /storage/kkm_last_timestamp [08:59:01]Write 4 bytes [08:59:01]NVStorageSaveData done [08:59:01]ExternCall_PrintAddStr [08:59:01]wPrintStart [08:59:01]Write to MH i2c: 01 00 00 A3 6C 0F [08:59:01]Write i2c OK [08:59:01]MH_I2C_Read... [08:59:01]Read from MH i2c: 01 [08:59:01]MH_I2C_Read... [08:59:01]Read from MH i2c: 01 07 00 [08:59:01]MH_I2C_Read... [08:59:01]Read from MH i2c: 01 07 00 A3 6C 00 00 00 00 00 FF 0F 24 [08:59:01]RasterBufferAndPrint [08:59:01]line Счет N : (1)342647 [08:59:01]line ИНН: 02508201610067 [08:59:01]line Контрольно-Кассовый Чек [08:59:01]line ПРОДАЖА [08:59:01]line ТРК (МРК, ГНК) : 53 [08:59:01]line Товар: 2710124130 [08:59:01]line Аи-92-К-2 [08:59:01]line 2.990 * 66.90 [08:59:01]line = 200.03 [08:59:01]line НДС 12% НСП 1% [08:59:01]line > о реализуемом товаре [08:59:01]line ОКРУГЛЕНИЕ: -0.03 [08:59:01]line ИТОГО: 200.00 [08:59:01]line Внесено: 200.00 [08:59:01]line СДАЧА: 0.00 [08:59:01]line НСП 1% : 1.77 [08:59:01]line НДС 12% : 21.24 [08:59:01]line Наличными: 200.00 [08:59:01]line Безнал.: 0.00 [08:59:01]line Место: АЗС № 78 "Партнер Нефть" [08:59:01]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [08:59:01]line СНО: Общий режим [08:59:01]line Чек 39 20.10.2024 08:59 [08:59:01]line Смена: 114 ФФД: 1.0 [08:59:01]line ЗНМ: 0300000137 [08:59:01]line РНМ: 0000000000186857 [08:59:01]line Версия ККМ: v1.0 [08:59:01]line ФМ: 0000000002094219 [08:59:01]line ФД: 30257 [08:59:01]line ФПД: 121360949423905 [08:59:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T085908&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30257&fm=121360949423905&tin=02508201610067®Number=0000000000186857&sum=20000 [08:59:01]OFD Sender: Processing packet 30257 [packets to send 10, broken 9] [08:59:01]ProducePacketName [08:59:01]name=ofd_packets/00030257 [08:59:01]OFD Sender: To server: pG, [08:59:01]CommunicateWithHost lk.salyk.kg:30040 [08:59:01]ConnectInit lk.salyk.kg [08:59:01]written 0, free lines is 4095 [08:59:01]Connected sock=10 [08:59: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 FD 98 07 01 02 C9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 27 00 00 00 F4 03 04 00 5C C6 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 6E 60 8C 47 AF 21 D8 11 79 9D 16 F5 5D 16 [08:59: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 C5 CF 47 00 7A 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 31 76 00 00 F4 03 04 00 E0 70 14 67 B6 04 01 00 00 2B 8C 59 8D 18 AC 33 F6 [08:59:01]CommunicateWithHost err = 0 [08:59:01]CheckOFDResponse [08:59:01]1017 (14) - 77093643461234 [08:59:01]1041 (16) - 0000000002094219 [08:59:01]1040 (4) - 30257 [08:59:01]1012 (4) - 20.10.2024 02:54 [08:59:01]1206 (1) - 0 [08:59:01]OFD Sender: Remove packet 30257 [08:59:01]ProducePacketName [08:59:01]name=ofd_packets/00030257 [08:59:01]NVStorageDeleteData [08:59:02]Write to MH i2c: 01 00 00 CE 6C 3A [08:59:02]Write i2c OK [08:59:02]MH_I2C_Read... [08:59:02]Read from MH i2c: 01 [08:59:02]MH_I2C_Read... [08:59:02]Read from MH i2c: 01 07 00 [08:59:02]MH_I2C_Read... [08:59:02]Read from MH i2c: 01 07 00 CE 6C 00 00 00 00 00 EC 0C 39 [08:59:02]RasterBufferAndPrint [08:59:02]line [08:59:02]line [08:59:02]line [08:59:02]line [08:59:02]line [08:59:02]written 0, free lines is 3314 [08:59:02]MH_Cut [08:59:02]Write to MH i2c: D1 01 00 D5 6C 01 13 [08:59:02]Write i2c OK [08:59:02]MH_I2C_Read... [08:59:02]Read from MH i2c: D1 [08:59:02]MH_I2C_Read... [08:59:02]Read from MH i2c: D1 01 00 [08:59:02]MH_I2C_Read... [08:59:02]Read from MH i2c: D1 01 00 D5 6C 00 12 [08:59:02]Write to MH i2c: 01 00 00 D6 6C 42 [08:59:02]Write i2c OK [08:59:02]MH_I2C_Read... [08:59:02]OFD Sender: No OFD packet to send [08:59:02]*** Cut start [08:59:02]*** Partial cut [08:59:02]*** CUTSNS_PIN = 1 [08:59:02]*** CUTSNS_PIN = 0 [08:59:03]*** Brake cut motor [08:59:03]Read from MH i2c: 01 [08:59:03]MH_I2C_Read... [08:59:03]*** Stop cut motor [08:59:03]*** Cut end [08:59:03]Read from MH i2c: 01 07 00 [08:59:03]MH_I2C_Read... [08:59:03]Read from MH i2c: 01 07 00 D6 6C 00 00 00 00 00 FF 0F 57 [08:59:03]process_action close_receipt done [08:59:03]requested_data is exist [08:59:03]produce_requested_data [08:59:03]requested_item fm.sn is exist - process it [08:59:03]wFMCommunicate request_size=4 [08:59:03]MH_SAM_APDU [08:59:03]CAPDU: 80 11 00 00 [08:59:03]Write to MH i2c: E2 08 00 D7 6C 80 11 00 00 00 00 00 00 BD [08:59:03]Write i2c OK [08:59:03]MH_I2C_Read... [08:59:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:59:03]Read from MH i2c: E2 [08:59:03]MH_I2C_Read... [08:59:03]Read from MH i2c: E2 17 00 [08:59:03]MH_I2C_Read... [08:59:03]Read from MH i2c: E2 17 00 D7 6C 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:59: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:59:03]wFMCommunicate OK [08:59:03]requested_item fd.num is exist - process it [08:59:03]SAM_PROTO_GetFieldsCounters [08:59:03]wFMCommunicate request_size=4 [08:59:03]MH_SAM_APDU [08:59:03]CAPDU: 80 13 00 00 [08:59:03]Write to MH i2c: E2 08 00 D8 6C 80 13 00 00 00 00 00 00 C0 [08:59:03]Write i2c OK [08:59:03]MH_I2C_Read... [08:59:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:59:03]Read from MH i2c: E2 [08:59:03]MH_I2C_Read... [08:59:03]Read from MH i2c: E2 62 00 [08:59:03]MH_I2C_Read... [08:59:03]Read from MH i2c: E2 62 00 D8 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 31 76 00 00 0E 04 04 00 72 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 74 [08:59: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 31 76 00 00 0E 04 04 00 72 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 [08:59:03]wFMCommunicate OK [08:59:03]SAM_PROTO_GetFieldsCounters done [08:59:03]requested_item shift.num is exist - process it [08:59:03]requested_item shift.opened is exist - process it [08:59:03]req_shift_opened [08:59:03]FM_GetShiftState [08:59:03]SAM_PROTO_GetShiftState [08:59:03]wFMCommunicate request_size=4 [08:59:03]MH_SAM_APDU [08:59:03]CAPDU: 80 13 01 00 [08:59:03]Write to MH i2c: E2 08 00 D9 6C 80 13 01 00 00 00 00 00 C2 [08:59:03]Write i2c OK [08:59:03]MH_I2C_Read... [08:59:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:59:03]Read from MH i2c: E2 [08:59:03]MH_I2C_Read... [08:59:03]Read from MH i2c: E2 0E 00 [08:59:03]MH_I2C_Read... [08:59:03]Read from MH i2c: E2 0E 00 D9 6C 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 A8 [08:59:03]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [08:59:03]wFMCommunicate OK [08:59:03]SAM_PROTO_GetShiftState done [08:59:03]FM_GetShiftState done [08:59:03]req_shift_opened done [08:59:03]requested_item shift.open_date is exist - process it [08:59:03]req_shift_open_date [08:59:03]req_shift_open_date done [08:59:03]produce_requested_data done [08:59:03]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30257,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [08:59:03]process_action_free close_receipt [08:59:03]json_value_free [08:59:03]json_value_free done [08:59:03]process_json_proto returns [08:59:03]Send response to host [08:59:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30257,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [08:59:03]free response buf [08:59:03]execute_script done [08:59:03]execute_script returns [08:59:03]free content buf [08:59:03]Sock 7.Close socket [08:59:03]Sock 7.Thread stoped [08:59:07]OFD Sender: No OFD packet to send [08:59:12]OFD Sender: No OFD packet to send [08:59:17]OFD Sender: No OFD packet to send [08:59:22]OFD Sender: No OFD packet to send [08:59:27]OFD Sender: No OFD packet to send [08:59:32]OFD Sender: No OFD packet to send [08:59:37]OFD Sender: No OFD packet to send [08:59:42]OFD Sender: No OFD packet to send [08:59:47]OFD Sender: No OFD packet to send [08:59:52]OFD Sender: No OFD packet to send [08:59:57]OFD Sender: No OFD packet to send [09:00:02]OFD Sender: No OFD packet to send [09:00:07]OFD Sender: No OFD packet to send [09:00:12]OFD Sender: No OFD packet to send [09:00:17]OFD Sender: No OFD packet to send [09:00:22]OFD Sender: No OFD packet to send [09:00:27]OFD Sender: No OFD packet to send [09:00:32]OFD Sender: No OFD packet to send [09:00:37]OFD Sender: No OFD packet to send [09:00:42]OFD Sender: No OFD packet to send [09:00:47]OFD Sender: No OFD packet to send [09:00:52]OFD Sender: No OFD packet to send [09:00:57]OFD Sender: No OFD packet to send [09:01:02]OFD Sender: No OFD packet to send [09:01:07]OFD Sender: No OFD packet to send [09:01:12]OFD Sender: No OFD packet to send [09:01:17]OFD Sender: No OFD packet to send [09:01:22]OFD Sender: No OFD packet to send [09:01:27]OFD Sender: No OFD packet to send [09:01:32]OFD Sender: No OFD packet to send [09:01:37]OFD Sender: No OFD packet to send [09:01:42]OFD Sender: No OFD packet to send [09:01:47]OFD Sender: No OFD packet to send [09:01:52]OFD Sender: No OFD packet to send [09:01:57]OFD Sender: No OFD packet to send [09:02:02]OFD Sender: No OFD packet to send [09:02:07]OFD Sender: No OFD packet to send [09:02:12]OFD Sender: No OFD packet to send [09:02:17]OFD Sender: No OFD packet to send [09:02:22]OFD Sender: No OFD packet to send [09:02:27]OFD Sender: No OFD packet to send [09:02:32]OFD Sender: No OFD packet to send [09:02:37]OFD Sender: No OFD packet to send [09:02:42]OFD Sender: No OFD packet to send [09:02:47]OFD Sender: No OFD packet to send [09:02:52]OFD Sender: No OFD packet to send [09:02:57]OFD Sender: No OFD packet to send [09:03:02]OFD Sender: No OFD packet to send [09:03:07]OFD Sender: No OFD packet to send [09:03:12]OFD Sender: No OFD packet to send [09:03:17]OFD Sender: No OFD packet to send [09:03:22]OFD Sender: No OFD packet to send [09:03:27]OFD Sender: No OFD packet to send [09:03:32]OFD Sender: No OFD packet to send [09:03:37]OFD Sender: No OFD packet to send [09:03:42]OFD Sender: No OFD packet to send [09:03:47]OFD Sender: No OFD packet to send [09:03:52]OFD Sender: No OFD packet to send [09:03:57]OFD Sender: No OFD packet to send [09:04:02]OFD Sender: No OFD packet to send [09:04:07]OFD Sender: No OFD packet to send [09:04:12]OFD Sender: No OFD packet to send [09:04:17]OFD Sender: No OFD packet to send [09:04:22]OFD Sender: No OFD packet to send [09:04:27]OFD Sender: No OFD packet to send [09:04:32]OFD Sender: No OFD packet to send [09:04:37]OFD Sender: No OFD packet to send [09:04:42]OFD Sender: No OFD packet to send [09:04:47]OFD Sender: No OFD packet to send [09:04:52]OFD Sender: No OFD packet to send [09:04:57]OFD Sender: No OFD packet to send [09:05:02]OFD Sender: No OFD packet to send [09:05:07]OFD Sender: No OFD packet to send [09:05:12]OFD Sender: No OFD packet to send [09:05:17]OFD Sender: No OFD packet to send [09:05:22]OFD Sender: No OFD packet to send [09:05:27]OFD Sender: No OFD packet to send [09:05:32]OFD Sender: No OFD packet to send [09:05:37]OFD Sender: No OFD packet to send [09:05:42]OFD Sender: No OFD packet to send [09:05:47]OFD Sender: No OFD packet to send [09:05:52]OFD Sender: No OFD packet to send [09:05:57]OFD Sender: No OFD packet to send [09:06:02]OFD Sender: No OFD packet to send [09:06:07]OFD Sender: No OFD packet to send [09:06:12]OFD Sender: No OFD packet to send [09:06:17]OFD Sender: No OFD packet to send [09:06:22]OFD Sender: No OFD packet to send [09:06:27]OFD Sender: No OFD packet to send [09:06:32]OFD Sender: No OFD packet to send [09:06:37]OFD Sender: No OFD packet to send [09:06:42]OFD Sender: No OFD packet to send [09:06:47]OFD Sender: No OFD packet to send [09:06:52]OFD Sender: No OFD packet to send [09:06:57]OFD Sender: No OFD packet to send [09:07:02]OFD Sender: No OFD packet to send [09:07:07]OFD Sender: No OFD packet to send [09:07:12]OFD Sender: No OFD packet to send [09:07:17]OFD Sender: No OFD packet to send [09:07:22]OFD Sender: No OFD packet to send [09:07:27]OFD Sender: No OFD packet to send [09:07:32]OFD Sender: No OFD packet to send [09:07:37]OFD Sender: No OFD packet to send [09:07:42]OFD Sender: No OFD packet to send [09:07:47]OFD Sender: No OFD packet to send [09:07:52]OFD Sender: No OFD packet to send [09:07:57]OFD Sender: No OFD packet to send [09:08:02]OFD Sender: No OFD packet to send [09:08:07]OFD Sender: No OFD packet to send [09:08:12]OFD Sender: No OFD packet to send [09:08:17]OFD Sender: No OFD packet to send [09:08:22]OFD Sender: No OFD packet to send [09:08:27]OFD Sender: No OFD packet to send [09:08:32]OFD Sender: No OFD packet to send [09:08:37]OFD Sender: No OFD packet to send [09:08:42]OFD Sender: No OFD packet to send [09:08:47]OFD Sender: No OFD packet to send [09:08:52]OFD Sender: No OFD packet to send [09:08:57]OFD Sender: No OFD packet to send [09:09:02]OFD Sender: No OFD packet to send [09:09:07]OFD Sender: No OFD packet to send [09:09:12]OFD Sender: No OFD packet to send [09:09:16]accept exits with 9 [09:09:16]New connection [09:09:16]New thread 3067514212 created [09:09:16]Thread 3067370852 joined [09:09:16]Waiting for new connection... [09:09:16] Sock 9.Parse request [09:09:16]Sock 9.Check first char [09:09:16]Sock 9.First char is OK [09:09:16]request: POST /json_proto HTTP/1.0 [09:09:16]Method: POST [09:09:16]URL: /json_proto [09:09:16]Method is POST - this is cgi request [09:09:16]url: /json_proto [09:09:16]query_string will be loaded in cgi processing [09:09:16]execute_cgi json_proto POST (null) [09:09:16]execute_cgi path=json_proto method=POST [09:09:16]POST find Content-Length [09:09:16]Host: 172.17.51.3:8080 [09:09:16]Content-Length: 800 [09:09:16]Content-Type: application/json [09:09:16] [09:09:16]POST finish read [09:09:16]Found Content-Length = 800 [09:09:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342648", "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\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A1663887", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:09:16]execute_script... [09:09: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)342648", "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\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A1663887", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:09:16]POST & json_proto [09:09:16]process_json_proto [09:09:16]json parsed OK: [09:09:16]protocol is kg_v1.0 [09:09:16]action value=close_receipt [09:09:16]process_action close_receipt [09:09:16]cmd_close_receipt [09:09:16]MH_GetDate [09:09:16]Write to MH i2c: F0 00 00 DA 6C 35 [09:09:16]Write i2c OK [09:09:16]MH_I2C_Read... [09:09:16]Read from MH i2c: F0 [09:09:16]MH_I2C_Read... [09:09:16]Read from MH i2c: F0 09 00 [09:09:16]MH_I2C_Read... [09:09:16]Read from MH i2c: F0 09 00 DA 6C 00 C5 C8 14 67 04 C1 95 66 06 [09:09:16]GetLastDocTimeStamp 1729414748 [09:09:16]current date 1729415365 [09:09:16]FM_GetShiftState [09:09:16]SAM_PROTO_GetShiftState [09:09:16]wFMCommunicate request_size=4 [09:09:16]MH_SAM_APDU [09:09:16]CAPDU: 80 13 01 00 [09:09:16]Write to MH i2c: E2 08 00 DB 6C 80 13 01 00 00 00 00 00 C4 [09:09:16]Write i2c OK [09:09:16]MH_I2C_Read... [09:09:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:09:16]Read from MH i2c: E2 [09:09:16]MH_I2C_Read... [09:09:16]Read from MH i2c: E2 0E 00 [09:09:16]MH_I2C_Read... [09:09:16]Read from MH i2c: E2 0E 00 DB 6C 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 AA [09:09:16]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [09:09:16]wFMCommunicate OK [09:09:16]SAM_PROTO_GetShiftState done [09:09:16]FM_GetShiftState done [09:09:16]opened in 1729384718 [09:09:16]opened+sec_in_day 1729471118 [09:09:16]quantity*price = 0 [09:09:16]sum+1 = 1 [09:09:16]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 20.10.2024 09:09 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Талоны: Топливные Талоны 1663887 ФМ: 0000000002094219 ФД: 30258 ФПД: 239568941177847 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T090925&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30258&fm=239568941177847&tin=02508201610067®Number=0000000000186857&sum=0 [09:09:17]StoreToDocumentArchive [09:09:17]shift 114 fd 30258 [09:09:17]save to /storage/0114/doc_00030258 [09:09:17]save last doc name /storage/0114/doc_00030258 to /storage/kkm_last_doc_name [09:09:17]save OK [09:09:17]Clear old archive folders... [09:09:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:09:17]tlvbuf is 00AC7ED0 [09:09:17]SAM_PROTO_ClearQueue [09:09:17]wFMCommunicate request_size=4 [09:09:17]MH_SAM_APDU [09:09:17]CAPDU: 80 09 00 00 [09:09:17]Write to MH i2c: E2 08 00 E8 6C 80 09 00 00 00 00 00 00 C6 [09:09:17]Write i2c OK [09:09:17]MH_I2C_Read... [09:09:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:09:17]Read from MH i2c: E2 [09:09:17]MH_I2C_Read... [09:09:17]Read from MH i2c: E2 03 00 [09:09:17]MH_I2C_Read... [09:09:17]Read from MH i2c: E2 03 00 E8 6C 00 90 00 C8 [09:09:17]RAPDU: 90 00 [09:09:17]wFMCommunicate OK [09:09:17]SAM_PROTO_ClearQueue done [09:09:17]KKMCreateOFDPacket [09:09:17]OFDProtocolAddRootSTLVToBuf [09:09:17]FM_MakeSignedData [09:09:17]FM_MakeSignedData [09:09:17]SAM_PROTO_SignData [09:09:17]wFMCommunicate request_size=4 [09:09:17]MH_SAM_APDU [09:09:17]CAPDU: 80 0D 01 02 [09:09:17]Write to MH i2c: E2 08 00 E9 6C 80 0D 01 02 00 00 00 00 CE [09:09:17]Write i2c OK [09:09:17]MH_I2C_Read... [09:09:17]OFD Sender: No OFD packet to send [09:09:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:09:17]Read from MH i2c: E2 [09:09:17]MH_I2C_Read... [09:09:17]Read from MH i2c: E2 03 00 [09:09:17]MH_I2C_Read... [09:09:18]Read from MH i2c: E2 03 00 E9 6C 00 90 00 C9 [09:09:18]RAPDU: 90 00 [09:09:18]wFMCommunicate OK [09:09:18]wFMCommunicate request_size=255 [09:09:18]MH_SAM_APDU [09:09:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 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 28 00 00 00 F4 03 04 00 C5 C8 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 D9 [09:09:18]Write to MH i2c: E2 02 01 EA 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 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 28 00 00 00 F4 03 04 00 C5 C8 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 D9 00 00 DE [09:09:18]Write i2c OK [09:09:18]MH_I2C_Read... [09:09:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:09:18]Read from MH i2c: E2 [09:09:18]MH_I2C_Read... [09:09:18]Read from MH i2c: E2 03 00 [09:09:18]MH_I2C_Read... [09:09:18]Read from MH i2c: E2 03 00 EA 6C 00 90 00 CA [09:09:18]RAPDU: 90 00 [09:09:18]wFMCommunicate OK [09:09:18]wFMCommunicate request_size=10 [09:09:18]MH_SAM_APDU [09:09:18]CAPDU: 80 0D 02 02 05 E2 FD A3 5B F7 [09:09:18]Write to MH i2c: E2 0D 00 EB 6C 80 0D 02 02 05 00 E2 FD A3 5B F7 00 00 AF [09:09:18]Write i2c OK [09:09:18]MH_I2C_Read... [09:09:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:09:18]Read from MH i2c: E2 [09:09:18]MH_I2C_Read... [09:09:18]Read from MH i2c: E2 03 00 [09:09:18]MH_I2C_Read... [09:09:18]Read from MH i2c: E2 03 00 EB 6C 00 90 00 CB [09:09:18]RAPDU: 90 00 [09:09:18]wFMCommunicate OK [09:09:18]wFMCommunicate request_size=4 [09:09:18]MH_SAM_APDU [09:09:18]CAPDU: 80 0D 03 02 [09:09:18]Write to MH i2c: E2 08 00 EC 6C 80 0D 03 02 00 00 00 00 D3 [09:09:18]Write i2c OK [09:09:18]MH_I2C_Read... [09:09:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:09:18]Read from MH i2c: E2 [09:09:18]MH_I2C_Read... [09:09:18]Read from MH i2c: E2 0B 00 [09:09:18]MH_I2C_Read... [09:09:18]Read from MH i2c: E2 0B 00 EC 6C 00 C4 BE 26 CF 16 40 FF DD 90 00 7D [09:09:18]RAPDU: C4 BE 26 CF 16 40 FF DD 90 00 [09:09:18]wFMCommunicate OK [09:09:18]SAM_PROTO_SignData done [09:09:18]FM_MakeSignedData done [09:09:18]CreateOFDProtocolMessage [09:09:18]wFMCommunicate request_size=4 [09:09:18]MH_SAM_APDU [09:09:18]CAPDU: 80 11 00 00 [09:09:18]Write to MH i2c: E2 08 00 ED 6C 80 11 00 00 00 00 00 00 D3 [09:09:18]Write i2c OK [09:09:18]MH_I2C_Read... [09:09:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:09:18]Read from MH i2c: E2 [09:09:18]MH_I2C_Read... [09:09:18]Read from MH i2c: E2 17 00 [09:09:18]MH_I2C_Read... [09:09:18]Read from MH i2c: E2 17 00 ED 6C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 21 [09:09:18]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:18]wFMCommunicate OK [09:09:18]CreateOFDProtocolMessage done [09:09:18]OFDSenderStorePacket 30258 [09:09:18]StoreOFDPacket docnum=30258 [09:09: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 1E ED 07 01 6C 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 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 28 00 00 00 F4 03 04 00 C5 C8 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 D9 E2 FD A3 5B F7 C4 BE 26 CF 16 40 FF DD [09:09:18]CheckFolder [09:09:18]dirname=/storage/ofd_packets [09:09:18]CheckFolder done [09:09:18]ProducePacketName [09:09:18]name=ofd_packets/00030258 [09:09:18]NVStorageSaveData ofd_packets/00030258 [09:09:18]File name is /storage/ofd_packets/00030258 [09:09:18]Write 301 bytes [09:09:18]NVStorageSaveData done [09:09:18]OFDSenderStorePacket done [09:09:18]KKMCreateOFDPacket done [09:09:18]NVStorageSaveData kkm_last_timestamp [09:09:18]File name is /storage/kkm_last_timestamp [09:09:18]Write 4 bytes [09:09:18]NVStorageSaveData done [09:09:18]ExternCall_PrintAddStr [09:09:18]wPrintStart [09:09:18]Write to MH i2c: 01 00 00 EE 6C 5A [09:09:18]Write i2c OK [09:09:18]MH_I2C_Read... [09:09:18]Read from MH i2c: 01 [09:09:18]MH_I2C_Read... [09:09:18]Read from MH i2c: 01 07 00 [09:09:18]MH_I2C_Read... [09:09:18]Read from MH i2c: 01 07 00 EE 6C 00 00 00 00 00 FF 0F 6F [09:09:18]RasterBufferAndPrint [09:09:18]line Счет N : (1)342648 [09:09:18]line ИНН: 02508201610067 [09:09:18]line Контрольно-Кассовый Чек [09:09:18]line ПРОДАЖА [09:09:18]line ТРК (МРК, ГНК) : 62 [09:09:18]line Товар: 2710124500 [09:09:18]line Аи-95-К-3 [09:09:18]line 40.000 * 0.00 [09:09:18]line = 0.00 [09:09:18]line НДС 12% НСП 1% [09:09:18]line > о реализуемом товаре [09:09:18]line ИТОГО: 0.00 [09:09:18]line НСП 1% : 0.00 [09:09:18]line НДС 12% : 0.00 [09:09:18]line Наличными: 0.00 [09:09:18]line Безнал.: 0.00 [09:09:18]line Место: АЗС № 78 "Партнер Нефть" [09:09:18]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [09:09:18]line СНО: Общий режим [09:09:18]line Чек 40 20.10.2024 09:09 [09:09:18]line Смена: 114 ФФД: 1.0 [09:09:18]line ЗНМ: 0300000137 [09:09:18]line РНМ: 0000000000186857 [09:09:18]line Версия ККМ: v1.0 [09:09:18]line Талоны: Топливные Талоны [09:09:18]line 1663887 [09:09:18]line ФМ: 0000000002094219 [09:09:18]line ФД: 30258 [09:09:18]line ФПД: 239568941177847 [09:09:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T090925&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30258&fm=239568941177847&tin=02508201610067®Number=0000000000186857&sum=0 [09:09:18]OFD Sender: Processing packet 30258 [packets to send 10, broken 9] [09:09:18]ProducePacketName [09:09:18]name=ofd_packets/00030258 [09:09:18]OFD Sender: To server: pG, [09:09:18]CommunicateWithHost lk.salyk.kg:30040 [09:09:18]ConnectInit lk.salyk.kg [09:09:18]written 0, free lines is 4095 [09:09:18]Connected sock=10 [09:09: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 1E ED 07 01 6C 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 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 28 00 00 00 F4 03 04 00 C5 C8 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 D9 E2 FD A3 5B F7 C4 BE 26 CF 16 40 FF DD [09:09: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 38 47 00 4E B1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 32 76 00 00 F4 03 04 00 49 73 14 67 B6 04 01 00 00 90 62 26 89 92 2B 01 6C [09:09:19]CommunicateWithHost err = 0 [09:09:19]CheckOFDResponse [09:09:19]1017 (14) - 77093643461234 [09:09:19]1041 (16) - 0000000002094219 [09:09:19]1040 (4) - 30258 [09:09:19]1012 (4) - 20.10.2024 03:04 [09:09:19]1206 (1) - 0 [09:09:19]OFD Sender: Remove packet 30258 [09:09:19]ProducePacketName [09:09:19]name=ofd_packets/00030258 [09:09:19]NVStorageDeleteData [09:09:19]Write to MH i2c: 01 00 00 18 6D 85 [09:09:19]Write i2c OK [09:09:19]MH_I2C_Read... [09:09:19]Read from MH i2c: 01 [09:09:19]MH_I2C_Read... [09:09:19]Read from MH i2c: 01 07 00 [09:09:19]MH_I2C_Read... [09:09:19]Read from MH i2c: 01 07 00 18 6D 00 00 00 00 00 F8 0C 90 [09:09:19]RasterBufferAndPrint [09:09:19]line [09:09:19]line [09:09:19]line [09:09:19]line [09:09:19]line [09:09:19]written 0, free lines is 3326 [09:09:19]MH_Cut [09:09:19]Write to MH i2c: D1 01 00 1F 6D 01 5E [09:09:19]Write i2c OK [09:09:19]MH_I2C_Read... [09:09:19]Read from MH i2c: D1 [09:09:19]MH_I2C_Read... [09:09:19]Read from MH i2c: D1 01 00 [09:09:19]MH_I2C_Read... [09:09:19]Read from MH i2c: D1 01 00 1F 6D 00 5D [09:09:19]Write to MH i2c: 01 00 00 20 6D 8D [09:09:19]Write i2c OK [09:09:19]MH_I2C_Read... [09:09:19]OFD Sender: No OFD packet to send [09:09:19]*** Cut start [09:09:19]*** Partial cut [09:09:19]*** CUTSNS_PIN = 1 [09:09:19]*** CUTSNS_PIN = 0 [09:09:20]*** Brake cut motor [09:09:20]Read from MH i2c: 01 [09:09:20]MH_I2C_Read... [09:09:20]*** Stop cut motor [09:09:20]*** Cut end [09:09:20]Read from MH i2c: 01 07 00 [09:09:20]MH_I2C_Read... [09:09:20]Read from MH i2c: 01 07 00 20 6D 00 00 00 00 00 FF 0F A2 [09:09:20]process_action close_receipt done [09:09:20]requested_data is exist [09:09:20]produce_requested_data [09:09:20]requested_item fm.sn is exist - process it [09:09:20]wFMCommunicate request_size=4 [09:09:20]MH_SAM_APDU [09:09:20]CAPDU: 80 11 00 00 [09:09:20]Write to MH i2c: E2 08 00 21 6D 80 11 00 00 00 00 00 00 08 [09:09:20]Write i2c OK [09:09:20]MH_I2C_Read... [09:09:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:09:20]Read from MH i2c: E2 [09:09:20]MH_I2C_Read... [09:09:20]Read from MH i2c: E2 17 00 [09:09:20]MH_I2C_Read... [09:09:20]Read from MH i2c: E2 17 00 21 6D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 56 [09:09:20]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:20]wFMCommunicate OK [09:09:20]requested_item fd.num is exist - process it [09:09:20]SAM_PROTO_GetFieldsCounters [09:09:20]wFMCommunicate request_size=4 [09:09:20]MH_SAM_APDU [09:09:20]CAPDU: 80 13 00 00 [09:09:20]Write to MH i2c: E2 08 00 22 6D 80 13 00 00 00 00 00 00 0B [09:09:20]Write i2c OK [09:09:20]MH_I2C_Read... [09:09:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:09:20]Read from MH i2c: E2 [09:09:20]MH_I2C_Read... [09:09:20]Read from MH i2c: E2 62 00 [09:09:20]MH_I2C_Read... [09:09:20]Read from MH i2c: E2 62 00 22 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 76 00 00 0E 04 04 00 72 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 C3 [09:09: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 32 76 00 00 0E 04 04 00 72 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:20]wFMCommunicate OK [09:09:20]SAM_PROTO_GetFieldsCounters done [09:09:20]requested_item shift.num is exist - process it [09:09:20]requested_item shift.opened is exist - process it [09:09:20]req_shift_opened [09:09:20]FM_GetShiftState [09:09:20]SAM_PROTO_GetShiftState [09:09:20]wFMCommunicate request_size=4 [09:09:20]MH_SAM_APDU [09:09:20]CAPDU: 80 13 01 00 [09:09:20]Write to MH i2c: E2 08 00 23 6D 80 13 01 00 00 00 00 00 0D [09:09:20]Write i2c OK [09:09:20]MH_I2C_Read... [09:09:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:09:20]Read from MH i2c: E2 [09:09:20]MH_I2C_Read... [09:09:20]Read from MH i2c: E2 0E 00 [09:09:20]MH_I2C_Read... [09:09:20]Read from MH i2c: E2 0E 00 23 6D 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 F3 [09:09:20]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [09:09:20]wFMCommunicate OK [09:09:20]SAM_PROTO_GetShiftState done [09:09:20]FM_GetShiftState done [09:09:20]req_shift_opened done [09:09:20]requested_item shift.open_date is exist - process it [09:09:20]req_shift_open_date [09:09:20]req_shift_open_date done [09:09:20]produce_requested_data done [09:09:20]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30258,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [09:09:20]process_action_free close_receipt [09:09:20]json_value_free [09:09:20]json_value_free done [09:09:20]process_json_proto returns [09:09:20]Send response to host [09:09:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30258,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [09:09:20]free response buf [09:09:20]execute_script done [09:09:20]execute_script returns [09:09:20]free content buf [09:09:20]Sock 9.Close socket [09:09:20]Sock 9.Thread stoped [09:09:24]OFD Sender: No OFD packet to send [09:09:29]OFD Sender: No OFD packet to send [09:09:34]OFD Sender: No OFD packet to send [09:09:39]OFD Sender: No OFD packet to send [09:09:44]OFD Sender: No OFD packet to send [09:09:49]OFD Sender: No OFD packet to send [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:52]accept exits with 7 [09:12:52]New connection [09:12:52]New thread 3067370852 created [09:12:52]Thread 3067514212 joined [09:12:52]Waiting for new connection... [09:12:52] Sock 7.Parse request [09:12:52]Sock 7.Check first char [09:12:52]Sock 7.First char is OK [09:12:52]request: POST /json_proto HTTP/1.0 [09:12:52]Method: POST [09:12:52]URL: /json_proto [09:12:52]Method is POST - this is cgi request [09:12:52]url: /json_proto [09:12:52]query_string will be loaded in cgi processing [09:12:52]execute_cgi json_proto POST (null) [09:12:52]execute_cgi path=json_proto method=POST [09:12:52]POST find Content-Length [09:12:52]Host: 172.17.51.3:8080 [09:12:52]Content-Length: 677 [09:12:52]Content-Type: application/json [09:12:52] [09:12:52]POST finish read [09:12:52]Found Content-Length = 677 [09:12:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342649", "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" ] } } [09:12:52]execute_script... [09:12:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342649", "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" ] } } [09:12:52]POST & json_proto [09:12:52]process_json_proto [09:12:52]json parsed OK: [09:12:52]protocol is kg_v1.0 [09:12:52]action value=close_receipt [09:12:52]process_action close_receipt [09:12:52]cmd_close_receipt [09:12:52]MH_GetDate [09:12:52]Write to MH i2c: F0 00 00 24 6D 80 [09:12:52]Write i2c OK [09:12:52]MH_I2C_Read... [09:12:52]Read from MH i2c: F0 [09:12:52]MH_I2C_Read... [09:12:52]Read from MH i2c: F0 09 00 [09:12:52]MH_I2C_Read... [09:12:52]Read from MH i2c: F0 09 00 24 6D 00 9C C9 14 67 04 C1 95 66 29 [09:12:52]GetLastDocTimeStamp 1729415365 [09:12:52]current date 1729415580 [09:12:52]FM_GetShiftState [09:12:52]SAM_PROTO_GetShiftState [09:12:52]wFMCommunicate request_size=4 [09:12:52]MH_SAM_APDU [09:12:52]CAPDU: 80 13 01 00 [09:12:52]Write to MH i2c: E2 08 00 25 6D 80 13 01 00 00 00 00 00 0F [09:12:52]Write i2c OK [09:12:52]MH_I2C_Read... [09:12:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:12:52]Read from MH i2c: E2 [09:12:52]MH_I2C_Read... [09:12:52]Read from MH i2c: E2 0E 00 [09:12:52]MH_I2C_Read... [09:12:52]Read from MH i2c: E2 0E 00 25 6D 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 F5 [09:12:52]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [09:12:52]wFMCommunicate OK [09:12:52]SAM_PROTO_GetShiftState done [09:12:52]FM_GetShiftState done [09:12:52]opened in 1729384718 [09:12:52]opened+sec_in_day 1729471118 [09:12:52]quantity*price = 40006 [09:12:52]sum+1 = 40007 [09:12: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 СНО: Общий режим Чек 41 20.10.2024 09:13 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30259 ФПД: 38797278581633 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T091300&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30259&fm=38797278581633&tin=02508201610067®Number=0000000000186857&sum=40000 [09:12:53]StoreToDocumentArchive [09:12:53]shift 114 fd 30259 [09:12:53]save to /storage/0114/doc_00030259 [09:12:53]save last doc name /storage/0114/doc_00030259 to /storage/kkm_last_doc_name [09:12:53]save OK [09:12:53]Clear old archive folders... [09:12:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:12:53]tlvbuf is 00BE98C0 [09:12:53]SAM_PROTO_ClearQueue [09:12:53]wFMCommunicate request_size=4 [09:12:53]MH_SAM_APDU [09:12:53]CAPDU: 80 09 00 00 [09:12:53]Write to MH i2c: E2 08 00 32 6D 80 09 00 00 00 00 00 00 11 [09:12:53]Write i2c OK [09:12:53]MH_I2C_Read... [09:12:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:12:53]Read from MH i2c: E2 [09:12:53]MH_I2C_Read... [09:12:53]Read from MH i2c: E2 03 00 [09:12:53]MH_I2C_Read... [09:12:53]Read from MH i2c: E2 03 00 32 6D 00 90 00 13 [09:12:53]RAPDU: 90 00 [09:12:53]wFMCommunicate OK [09:12:53]SAM_PROTO_ClearQueue done [09:12:53]KKMCreateOFDPacket [09:12:53]OFDProtocolAddRootSTLVToBuf [09:12:53]FM_MakeSignedData [09:12:53]FM_MakeSignedData [09:12:53]SAM_PROTO_SignData [09:12:53]wFMCommunicate request_size=4 [09:12:53]MH_SAM_APDU [09:12:53]CAPDU: 80 0D 01 02 [09:12:53]Write to MH i2c: E2 08 00 33 6D 80 0D 01 02 00 00 00 00 19 [09:12:53]Write i2c OK [09:12:53]MH_I2C_Read... [09:12:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:12:53]Read from MH i2c: E2 [09:12:53]MH_I2C_Read... [09:12:53]Read from MH i2c: E2 03 00 [09:12:53]MH_I2C_Read... [09:12:53]Read from MH i2c: E2 03 00 33 6D 00 90 00 14 [09:12:53]RAPDU: 90 00 [09:12:53]wFMCommunicate OK [09:12:53]wFMCommunicate request_size=255 [09:12:53]MH_SAM_APDU [09:12:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 29 00 00 00 F4 03 04 00 9C C9 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 23 [09:12:53]Write to MH i2c: E2 02 01 34 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 29 00 00 00 F4 03 04 00 9C C9 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 23 00 00 C0 [09:12:53]Write i2c OK [09:12:53]MH_I2C_Read... [09:12:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:12:53]Read from MH i2c: E2 [09:12:53]MH_I2C_Read... [09:12:53]Read from MH i2c: E2 03 00 [09:12:53]MH_I2C_Read... [09:12:53]Read from MH i2c: E2 03 00 34 6D 00 90 00 15 [09:12:53]RAPDU: 90 00 [09:12:53]wFMCommunicate OK [09:12:53]wFMCommunicate request_size=10 [09:12:53]MH_SAM_APDU [09:12:53]CAPDU: 80 0D 02 02 05 49 32 02 13 81 [09:12:53]Write to MH i2c: E2 0D 00 35 6D 80 0D 02 02 05 00 49 32 02 13 81 00 00 37 [09:12:53]Write i2c OK [09:12:53]MH_I2C_Read... [09:12:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:12:53]Read from MH i2c: E2 [09:12:53]MH_I2C_Read... [09:12:53]Read from MH i2c: E2 03 00 [09:12:53]MH_I2C_Read... [09:12:53]Read from MH i2c: E2 03 00 35 6D 00 90 00 16 [09:12:53]RAPDU: 90 00 [09:12:53]wFMCommunicate OK [09:12:53]wFMCommunicate request_size=4 [09:12:53]MH_SAM_APDU [09:12:53]CAPDU: 80 0D 03 02 [09:12:53]Write to MH i2c: E2 08 00 36 6D 80 0D 03 02 00 00 00 00 1E [09:12:53]Write i2c OK [09:12:53]MH_I2C_Read... [09:12:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:12:53]Read from MH i2c: E2 [09:12:53]MH_I2C_Read... [09:12:53]Read from MH i2c: E2 0B 00 [09:12:53]MH_I2C_Read... [09:12:53]Read from MH i2c: E2 0B 00 36 6D 00 36 CA C0 1B 03 C5 41 1E 90 00 21 [09:12:53]RAPDU: 36 CA C0 1B 03 C5 41 1E 90 00 [09:12:53]wFMCommunicate OK [09:12:53]SAM_PROTO_SignData done [09:12:53]FM_MakeSignedData done [09:12:53]CreateOFDProtocolMessage [09:12:53]wFMCommunicate request_size=4 [09:12:53]MH_SAM_APDU [09:12:53]CAPDU: 80 11 00 00 [09:12:53]Write to MH i2c: E2 08 00 37 6D 80 11 00 00 00 00 00 00 1E [09:12:53]Write i2c OK [09:12:53]MH_I2C_Read... [09:12:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:12:53]Read from MH i2c: E2 [09:12:53]MH_I2C_Read... [09:12:53]Read from MH i2c: E2 17 00 [09:12:53]MH_I2C_Read... [09:12:53]Read from MH i2c: E2 17 00 37 6D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 6C [09:12: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:12:53]wFMCommunicate OK [09:12:53]CreateOFDProtocolMessage done [09:12:53]OFDSenderStorePacket 30259 [09:12:53]StoreOFDPacket docnum=30259 [09:12: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 33 71 07 01 07 48 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 29 00 00 00 F4 03 04 00 9C C9 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 23 49 32 02 13 81 36 CA C0 1B 03 C5 41 1E [09:12:53]CheckFolder [09:12:53]dirname=/storage/ofd_packets [09:12:53]CheckFolder done [09:12:53]ProducePacketName [09:12:53]name=ofd_packets/00030259 [09:12:53]NVStorageSaveData ofd_packets/00030259 [09:12:53]File name is /storage/ofd_packets/00030259 [09:12:53]Write 301 bytes [09:12:53]NVStorageSaveData done [09:12:53]OFDSenderStorePacket done [09:12:53]KKMCreateOFDPacket done [09:12:53]NVStorageSaveData kkm_last_timestamp [09:12:53]File name is /storage/kkm_last_timestamp [09:12:53]Write 4 bytes [09:12:53]NVStorageSaveData done [09:12:53]ExternCall_PrintAddStr [09:12:53]wPrintStart [09:12:53]Write to MH i2c: 01 00 00 38 6D A5 [09:12:53]Write i2c OK [09:12:53]MH_I2C_Read... [09:12:53]Read from MH i2c: 01 [09:12:53]MH_I2C_Read... [09:12:53]Read from MH i2c: 01 07 00 [09:12:53]MH_I2C_Read... [09:12:53]Read from MH i2c: 01 07 00 38 6D 00 00 00 00 00 FF 0F BA [09:12:53]RasterBufferAndPrint [09:12:53]line Счет N : (1)342649 [09:12:53]line ИНН: 02508201610067 [09:12:53]line Контрольно-Кассовый Чек [09:12:53]line ПРОДАЖА [09:12:53]line ТРК (МРК, ГНК) : 53 [09:12:53]line Товар: 2710124130 [09:12:53]line Аи-92-К-2 [09:12:53]line 5.980 * 66.90 [09:12:53]line = 400.06 [09:12:53]line НДС 12% НСП 1% [09:12:53]line > о реализуемом товаре [09:12:53]line ОКРУГЛЕНИЕ: -0.06 [09:12:53]line ИТОГО: 400.00 [09:12:53]line Внесено: 400.00 [09:12:53]line СДАЧА: 0.00 [09:12:53]line НСП 1% : 3.54 [09:12:53]line НДС 12% : 42.48 [09:12:53]line Наличными: 400.00 [09:12:53]line Безнал.: 0.00 [09:12:53]line Место: АЗС № 78 "Партнер Нефть" [09:12:53]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [09:12:53]line СНО: Общий режим [09:12:53]line Чек 41 20.10.2024 09:13 [09:12:53]line Смена: 114 ФФД: 1.0 [09:12:53]line ЗНМ: 0300000137 [09:12:53]line РНМ: 0000000000186857 [09:12:53]line Версия ККМ: v1.0 [09:12:53]line ФМ: 0000000002094219 [09:12:53]line ФД: 30259 [09:12:53]line ФПД: 38797278581633 [09:12:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T091300&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30259&fm=38797278581633&tin=02508201610067®Number=0000000000186857&sum=40000 [09:12:54]OFD Sender: Processing packet 30259 [packets to send 10, broken 9] [09:12:54]ProducePacketName [09:12:54]name=ofd_packets/00030259 [09:12:54]OFD Sender: To server: pG, [09:12:54]CommunicateWithHost lk.salyk.kg:30040 [09:12:54]ConnectInit lk.salyk.kg [09:12:54]written 0, free lines is 4095 [09:12:54]Connected sock=10 [09:12: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 33 71 07 01 07 48 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 29 00 00 00 F4 03 04 00 9C C9 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 23 49 32 02 13 81 36 CA C0 1B 03 C5 41 1E [09:12: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 88 2B 47 00 6D 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 33 76 00 00 F4 03 04 00 21 74 14 67 B6 04 01 00 00 2C 77 DD 73 A0 57 5F 3F [09:12:54]CommunicateWithHost err = 0 [09:12:54]CheckOFDResponse [09:12:54]1017 (14) - 77093643461234 [09:12:54]1041 (16) - 0000000002094219 [09:12:54]1040 (4) - 30259 [09:12:54]1012 (4) - 20.10.2024 03:08 [09:12:54]1206 (1) - 0 [09:12:54]OFD Sender: Remove packet 30259 [09:12:54]ProducePacketName [09:12:54]name=ofd_packets/00030259 [09:12:54]NVStorageDeleteData [09:12:54]Write to MH i2c: 01 00 00 63 6D D0 [09:12:54]Write i2c OK [09:12:54]MH_I2C_Read... [09:12:54]Read from MH i2c: 01 [09:12:54]MH_I2C_Read... [09:12:54]Read from MH i2c: 01 07 00 [09:12:54]MH_I2C_Read... [09:12:54]Read from MH i2c: 01 07 00 63 6D 00 00 00 00 00 FE 0C E1 [09:12:54]RasterBufferAndPrint [09:12:54]line [09:12:54]line [09:12:54]line [09:12:54]line [09:12:54]line [09:12:54]written 0, free lines is 3335 [09:12:54]MH_Cut [09:12:54]Write to MH i2c: D1 01 00 6A 6D 01 A9 [09:12:54]Write i2c OK [09:12:54]MH_I2C_Read... [09:12:54]Read from MH i2c: D1 [09:12:54]MH_I2C_Read... [09:12:54]Read from MH i2c: D1 01 00 [09:12:54]MH_I2C_Read... [09:12:54]Read from MH i2c: D1 01 00 6A 6D 00 A8 [09:12:54]Write to MH i2c: 01 00 00 6B 6D D8 [09:12:54]Write i2c OK [09:12:54]MH_I2C_Read... [09:12:55]OFD Sender: No OFD packet to send [09:12:55]*** Cut start [09:12:55]*** Partial cut [09:12:55]*** CUTSNS_PIN = 1 [09:12:55]*** CUTSNS_PIN = 0 [09:12:55]*** Brake cut motor [09:12:55]Read from MH i2c: 01 [09:12:55]MH_I2C_Read... [09:12:55]*** Stop cut motor [09:12:55]*** Cut end [09:12:55]Read from MH i2c: 01 07 00 [09:12:55]MH_I2C_Read... [09:12:55]Read from MH i2c: 01 07 00 6B 6D 00 00 00 00 00 FF 0F ED [09:12:55]process_action close_receipt done [09:12:55]requested_data is exist [09:12:55]produce_requested_data [09:12:55]requested_item fm.sn is exist - process it [09:12:55]wFMCommunicate request_size=4 [09:12:55]MH_SAM_APDU [09:12:55]CAPDU: 80 11 00 00 [09:12:55]Write to MH i2c: E2 08 00 6C 6D 80 11 00 00 00 00 00 00 53 [09:12:55]Write i2c OK [09:12:55]MH_I2C_Read... [09:12:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:12:56]Read from MH i2c: E2 [09:12:56]MH_I2C_Read... [09:12:56]Read from MH i2c: E2 17 00 [09:12:56]MH_I2C_Read... [09:12:56]Read from MH i2c: E2 17 00 6C 6D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 A1 [09:12:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [09:12:56]wFMCommunicate OK [09:12:56]requested_item fd.num is exist - process it [09:12:56]SAM_PROTO_GetFieldsCounters [09:12:56]wFMCommunicate request_size=4 [09:12:56]MH_SAM_APDU [09:12:56]CAPDU: 80 13 00 00 [09:12:56]Write to MH i2c: E2 08 00 6D 6D 80 13 00 00 00 00 00 00 56 [09:12:56]Write i2c OK [09:12:56]MH_I2C_Read... [09:12:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:12:56]Read from MH i2c: E2 [09:12:56]MH_I2C_Read... [09:12:56]Read from MH i2c: E2 62 00 [09:12:56]MH_I2C_Read... [09:12:56]Read from MH i2c: E2 62 00 6D 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 33 76 00 00 0E 04 04 00 72 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 12 [09:12: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 33 76 00 00 0E 04 04 00 72 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:12:56]wFMCommunicate OK [09:12:56]SAM_PROTO_GetFieldsCounters done [09:12:56]requested_item shift.num is exist - process it [09:12:56]requested_item shift.opened is exist - process it [09:12:56]req_shift_opened [09:12:56]FM_GetShiftState [09:12:56]SAM_PROTO_GetShiftState [09:12:56]wFMCommunicate request_size=4 [09:12:56]MH_SAM_APDU [09:12:56]CAPDU: 80 13 01 00 [09:12:56]Write to MH i2c: E2 08 00 6E 6D 80 13 01 00 00 00 00 00 58 [09:12:56]Write i2c OK [09:12:56]MH_I2C_Read... [09:12:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:12:56]Read from MH i2c: E2 [09:12:56]MH_I2C_Read... [09:12:56]Read from MH i2c: E2 0E 00 [09:12:56]MH_I2C_Read... [09:12:56]Read from MH i2c: E2 0E 00 6E 6D 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 3E [09:12:56]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [09:12:56]wFMCommunicate OK [09:12:56]SAM_PROTO_GetShiftState done [09:12:56]FM_GetShiftState done [09:12:56]req_shift_opened done [09:12:56]requested_item shift.open_date is exist - process it [09:12:56]req_shift_open_date [09:12:56]req_shift_open_date done [09:12:56]produce_requested_data done [09:12:56]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30259,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [09:12:56]process_action_free close_receipt [09:12:56]json_value_free [09:12:56]json_value_free done [09:12:56]process_json_proto returns [09:12:56]Send response to host [09:12:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30259,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [09:12:56]free response buf [09:12:56]execute_script done [09:12:56]execute_script returns [09:12:56]free content buf [09:12:56]Sock 7.Close socket [09:12:56]Sock 7.Thread stoped [09:13:00]OFD Sender: No OFD packet to send [09:13:05]OFD Sender: No OFD packet to send [09:13:10]OFD Sender: No OFD packet to send [09:13:15]OFD Sender: No OFD packet to send [09:13:20]OFD Sender: No OFD packet to send [09:13:25]OFD Sender: No OFD packet to send [09:13:30]OFD Sender: No OFD packet to send [09:13:35]OFD Sender: No OFD packet to send [09:13:40]OFD Sender: No OFD packet to send [09:13:45]OFD Sender: No OFD packet to send [09:13:50]OFD Sender: No OFD packet to send [09:13:55]OFD Sender: No OFD packet to send [09:14:00]OFD Sender: No OFD packet to send [09:14:05]OFD Sender: No OFD packet to send [09:14:10]OFD Sender: No OFD packet to send [09:14:15]OFD Sender: No OFD packet to send [09:14:20]OFD Sender: No OFD packet to send [09:14:25]OFD Sender: No OFD packet to send [09:14:30]OFD Sender: No OFD packet to send [09:14:35]OFD Sender: No OFD packet to send [09:14:40]OFD Sender: No OFD packet to send [09:14:45]OFD Sender: No OFD packet to send [09:14:50]OFD Sender: No OFD packet to send [09:14:55]OFD Sender: No OFD packet to send [09:15:00]OFD Sender: No OFD packet to send [09:15:05]OFD Sender: No OFD packet to send [09:15:10]OFD Sender: No OFD packet to send [09:15:15]OFD Sender: No OFD packet to send [09:15:20]OFD Sender: No OFD packet to send [09:15:25]OFD Sender: No OFD packet to send [09:15:30]OFD Sender: No OFD packet to send [09:15:35]OFD Sender: No OFD packet to send [09:15:40]OFD Sender: No OFD packet to send [09:15:45]OFD Sender: No OFD packet to send [09:15:50]OFD Sender: No OFD packet to send [09:15:55]OFD Sender: No OFD packet to send [09:16:00]OFD Sender: No OFD packet to send [09:16:05]OFD Sender: No OFD packet to send [09:16:10]OFD Sender: No OFD packet to send [09:16:15]OFD Sender: No OFD packet to send [09:16:20]OFD Sender: No OFD packet to send [09:16:25]OFD Sender: No OFD packet to send [09:16:30]OFD Sender: No OFD packet to send [09:16:35]OFD Sender: No OFD packet to send [09:16:39]accept exits with 9 [09:16:39]New connection [09:16:39]New thread 3067514212 created [09:16:39]Thread 3067370852 joined [09:16:39]Waiting for new connection... [09:16:39] Sock 9.Parse request [09:16:39]Sock 9.Check first char [09:16:39]Sock 9.First char is OK [09:16:39]request: POST /json_proto HTTP/1.0 [09:16:39]Method: POST [09:16:39]URL: /json_proto [09:16:39]Method is POST - this is cgi request [09:16:39]url: /json_proto [09:16:39]query_string will be loaded in cgi processing [09:16:39]execute_cgi json_proto POST (null) [09:16:39]execute_cgi path=json_proto method=POST [09:16:39]POST find Content-Length [09:16:39]Host: 172.17.51.3:8080 [09:16:39]Content-Length: 677 [09:16:39]Content-Type: application/json [09:16:39] [09:16:39]POST finish read [09:16:39]Found Content-Length = 677 [09:16:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342650", "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:16:39]execute_script... [09:16: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)342650", "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:16:39]POST & json_proto [09:16:39]process_json_proto [09:16:39]json parsed OK: [09:16:39]protocol is kg_v1.0 [09:16:39]action value=close_receipt [09:16:39]process_action close_receipt [09:16:39]cmd_close_receipt [09:16:39]MH_GetDate [09:16:39]Write to MH i2c: F0 00 00 6F 6D CB [09:16:39]Write i2c OK [09:16:39]MH_I2C_Read... [09:16:39]Read from MH i2c: F0 [09:16:39]MH_I2C_Read... [09:16:39]Read from MH i2c: F0 09 00 [09:16:39]MH_I2C_Read... [09:16:39]Read from MH i2c: F0 09 00 6F 6D 00 80 CA 14 67 04 C1 95 66 59 [09:16:39]GetLastDocTimeStamp 1729415580 [09:16:39]current date 1729415808 [09:16:39]FM_GetShiftState [09:16:39]SAM_PROTO_GetShiftState [09:16:39]wFMCommunicate request_size=4 [09:16:39]MH_SAM_APDU [09:16:39]CAPDU: 80 13 01 00 [09:16:39]Write to MH i2c: E2 08 00 70 6D 80 13 01 00 00 00 00 00 5A [09:16:39]Write i2c OK [09:16:39]MH_I2C_Read... [09:16:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:16:39]Read from MH i2c: E2 [09:16:39]MH_I2C_Read... [09:16:39]Read from MH i2c: E2 0E 00 [09:16:39]MH_I2C_Read... [09:16:39]Read from MH i2c: E2 0E 00 70 6D 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 40 [09:16:39]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [09:16:39]wFMCommunicate OK [09:16:39]SAM_PROTO_GetShiftState done [09:16:39]FM_GetShiftState done [09:16:39]opened in 1729384718 [09:16:39]opened+sec_in_day 1729471118 [09:16:39]quantity*price = 20003 [09:16:39]sum+1 = 20004 [09:16:39]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 СНО: Общий режим Чек 42 20.10.2024 09:16 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30260 ФПД: 137082456617319 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T091648&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30260&fm=137082456617319&tin=02508201610067®Number=0000000000186857&sum=20000 [09:16:40]StoreToDocumentArchive [09:16:40]shift 114 fd 30260 [09:16:40]save to /storage/0114/doc_00030260 [09:16:40]save last doc name /storage/0114/doc_00030260 to /storage/kkm_last_doc_name [09:16:40]save OK [09:16:40]Clear old archive folders... [09:16:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:16:40]tlvbuf is 00C87750 [09:16:40]SAM_PROTO_ClearQueue [09:16:40]wFMCommunicate request_size=4 [09:16:40]MH_SAM_APDU [09:16:40]CAPDU: 80 09 00 00 [09:16:40]Write to MH i2c: E2 08 00 7D 6D 80 09 00 00 00 00 00 00 5C [09:16:40]Write i2c OK [09:16:40]MH_I2C_Read... [09:16:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:16:41]Read from MH i2c: E2 [09:16:41]MH_I2C_Read... [09:16:41]Read from MH i2c: E2 03 00 [09:16:41]MH_I2C_Read... [09:16:41]Read from MH i2c: E2 03 00 7D 6D 00 90 00 5E [09:16:41]RAPDU: 90 00 [09:16:41]wFMCommunicate OK [09:16:41]SAM_PROTO_ClearQueue done [09:16:41]KKMCreateOFDPacket [09:16:41]OFDProtocolAddRootSTLVToBuf [09:16:41]FM_MakeSignedData [09:16:41]FM_MakeSignedData [09:16:41]SAM_PROTO_SignData [09:16:41]wFMCommunicate request_size=4 [09:16:41]MH_SAM_APDU [09:16:41]CAPDU: 80 0D 01 02 [09:16:41]Write to MH i2c: E2 08 00 7E 6D 80 0D 01 02 00 00 00 00 64 [09:16:41]Write i2c OK [09:16:41]MH_I2C_Read... [09:16:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:16:41]Read from MH i2c: E2 [09:16:41]MH_I2C_Read... [09:16:41]Read from MH i2c: E2 03 00 [09:16:41]MH_I2C_Read... [09:16:41]Read from MH i2c: E2 03 00 7E 6D 00 90 00 5F [09:16:41]RAPDU: 90 00 [09:16:41]wFMCommunicate OK [09:16:41]wFMCommunicate request_size=255 [09:16:41]MH_SAM_APDU [09:16: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 2A 00 00 00 F4 03 04 00 80 CA 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 7C [09:16:41]Write to MH i2c: E2 02 01 7F 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 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 2A 00 00 00 F4 03 04 00 80 CA 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 7C 00 00 3E [09:16:41]Write i2c OK [09:16:41]MH_I2C_Read... [09:16:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:16:41]Read from MH i2c: E2 [09:16:41]MH_I2C_Read... [09:16:41]Read from MH i2c: E2 03 00 [09:16:41]MH_I2C_Read... [09:16:41]Read from MH i2c: E2 03 00 7F 6D 00 90 00 60 [09:16:41]RAPDU: 90 00 [09:16:41]wFMCommunicate OK [09:16:41]wFMCommunicate request_size=10 [09:16:41]MH_SAM_APDU [09:16:41]CAPDU: 80 0D 02 02 05 AC FF 21 B1 67 [09:16:41]Write to MH i2c: E2 0D 00 80 6D 80 0D 02 02 05 00 AC FF 21 B1 67 00 00 55 [09:16:41]Write i2c OK [09:16:41]MH_I2C_Read... [09:16:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:16:41]Read from MH i2c: E2 [09:16:41]MH_I2C_Read... [09:16:41]Read from MH i2c: E2 03 00 [09:16:41]MH_I2C_Read... [09:16:41]Read from MH i2c: E2 03 00 80 6D 00 90 00 61 [09:16:41]RAPDU: 90 00 [09:16:41]wFMCommunicate OK [09:16:41]wFMCommunicate request_size=4 [09:16:41]MH_SAM_APDU [09:16:41]CAPDU: 80 0D 03 02 [09:16:41]Write to MH i2c: E2 08 00 81 6D 80 0D 03 02 00 00 00 00 69 [09:16:41]Write i2c OK [09:16:41]MH_I2C_Read... [09:16:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:16:41]Read from MH i2c: E2 [09:16:41]MH_I2C_Read... [09:16:41]Read from MH i2c: E2 0B 00 [09:16:41]MH_I2C_Read... [09:16:41]Read from MH i2c: E2 0B 00 81 6D 00 9A 5B 71 2C 58 B6 81 DA 90 00 65 [09:16:41]RAPDU: 9A 5B 71 2C 58 B6 81 DA 90 00 [09:16:41]wFMCommunicate OK [09:16:41]SAM_PROTO_SignData done [09:16:41]FM_MakeSignedData done [09:16:41]CreateOFDProtocolMessage [09:16:41]wFMCommunicate request_size=4 [09:16:41]MH_SAM_APDU [09:16:41]CAPDU: 80 11 00 00 [09:16:41]Write to MH i2c: E2 08 00 82 6D 80 11 00 00 00 00 00 00 69 [09:16:41]Write i2c OK [09:16:41]MH_I2C_Read... [09:16:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:16:41]Read from MH i2c: E2 [09:16:41]MH_I2C_Read... [09:16:41]Read from MH i2c: E2 17 00 [09:16:41]MH_I2C_Read... [09:16:41]Read from MH i2c: E2 17 00 82 6D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 B7 [09:16:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [09:16:41]wFMCommunicate OK [09:16:41]CreateOFDProtocolMessage done [09:16:41]OFDSenderStorePacket 30260 [09:16:41]StoreOFDPacket docnum=30260 [09:16: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 53 21 07 01 94 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 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 2A 00 00 00 F4 03 04 00 80 CA 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 7C AC FF 21 B1 67 9A 5B 71 2C 58 B6 81 DA [09:16:41]CheckFolder [09:16:41]dirname=/storage/ofd_packets [09:16:41]CheckFolder done [09:16:41]ProducePacketName [09:16:41]name=ofd_packets/00030260 [09:16:41]NVStorageSaveData ofd_packets/00030260 [09:16:41]File name is /storage/ofd_packets/00030260 [09:16:41]Write 301 bytes [09:16:41]NVStorageSaveData done [09:16:41]OFDSenderStorePacket done [09:16:41]KKMCreateOFDPacket done [09:16:41]NVStorageSaveData kkm_last_timestamp [09:16:41]File name is /storage/kkm_last_timestamp [09:16:41]Write 4 bytes [09:16:41]NVStorageSaveData done [09:16:41]ExternCall_PrintAddStr [09:16:41]wPrintStart [09:16:41]Write to MH i2c: 01 00 00 83 6D F0 [09:16:41]Write i2c OK [09:16:41]MH_I2C_Read... [09:16:41]Read from MH i2c: 01 [09:16:41]MH_I2C_Read... [09:16:41]Read from MH i2c: 01 07 00 [09:16:41]MH_I2C_Read... [09:16:41]Read from MH i2c: 01 07 00 83 6D 00 00 00 00 00 FF 0F 05 [09:16:41]RasterBufferAndPrint [09:16:41]line Счет N : (1)342650 [09:16:41]line ИНН: 02508201610067 [09:16:41]line Контрольно-Кассовый Чек [09:16:41]line ПРОДАЖА [09:16:41]line ТРК (МРК, ГНК) : 63 [09:16:41]line Товар: 2710124130 [09:16:41]line Аи-92-К-2 [09:16:41]line 2.990 * 66.90 [09:16:41]line = 200.03 [09:16:41]line НДС 12% НСП 1% [09:16:41]line > о реализуемом товаре [09:16:41]line ОКРУГЛЕНИЕ: -0.03 [09:16:41]line ИТОГО: 200.00 [09:16:41]line Внесено: 200.00 [09:16:41]line СДАЧА: 0.00 [09:16:41]line НСП 1% : 1.77 [09:16:41]line НДС 12% : 21.24 [09:16:41]line Наличными: 200.00 [09:16:41]line Безнал.: 0.00 [09:16:41]line Место: АЗС № 78 "Партнер Нефть" [09:16:41]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [09:16:41]line СНО: Общий режим [09:16:41]line Чек 42 20.10.2024 09:16 [09:16:41]line Смена: 114 ФФД: 1.0 [09:16:41]line ЗНМ: 0300000137 [09:16:41]line РНМ: 0000000000186857 [09:16:41]line Версия ККМ: v1.0 [09:16:41]line ФМ: 0000000002094219 [09:16:41]line ФД: 30260 [09:16:41]line ФПД: 137082456617319 [09:16:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T091648&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30260&fm=137082456617319&tin=02508201610067®Number=0000000000186857&sum=20000 [09:16:41]OFD Sender: Processing packet 30260 [packets to send 10, broken 9] [09:16:41]ProducePacketName [09:16:41]name=ofd_packets/00030260 [09:16:41]OFD Sender: To server: pG, [09:16:41]CommunicateWithHost lk.salyk.kg:30040 [09:16:41]ConnectInit lk.salyk.kg [09:16:41]written 0, free lines is 4095 [09:16:41]Connected sock=10 [09:16: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 53 21 07 01 94 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 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 2A 00 00 00 F4 03 04 00 80 CA 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 7C AC FF 21 B1 67 9A 5B 71 2C 58 B6 81 DA [09:16: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 B8 F3 47 00 B5 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 34 76 00 00 F4 03 04 00 04 75 14 67 B6 04 01 00 00 80 94 26 1F 9A 8B 54 5B [09:16:42]CommunicateWithHost err = 0 [09:16:42]CheckOFDResponse [09:16:42]1017 (14) - 77093643461234 [09:16:42]1041 (16) - 0000000002094219 [09:16:42]1040 (4) - 30260 [09:16:42]1012 (4) - 20.10.2024 03:12 [09:16:42]1206 (1) - 0 [09:16:42]OFD Sender: Remove packet 30260 [09:16:42]ProducePacketName [09:16:42]name=ofd_packets/00030260 [09:16:42]NVStorageDeleteData [09:16:42]Write to MH i2c: 01 00 00 AE 6D 1B [09:16:42]Write i2c OK [09:16:42]MH_I2C_Read... [09:16:42]Read from MH i2c: 01 [09:16:42]MH_I2C_Read... [09:16:42]Read from MH i2c: 01 07 00 [09:16:42]MH_I2C_Read... [09:16:42]Read from MH i2c: 01 07 00 AE 6D 00 00 00 00 00 FC 0C 2A [09:16:42]RasterBufferAndPrint [09:16:42]line [09:16:42]line [09:16:42]line [09:16:42]line [09:16:42]line [09:16:42]written 0, free lines is 3333 [09:16:42]MH_Cut [09:16:42]Write to MH i2c: D1 01 00 B5 6D 01 F4 [09:16:42]Write i2c OK [09:16:42]MH_I2C_Read... [09:16:42]Read from MH i2c: D1 [09:16:42]MH_I2C_Read... [09:16:42]Read from MH i2c: D1 01 00 [09:16:42]MH_I2C_Read... [09:16:42]Read from MH i2c: D1 01 00 B5 6D 00 F3 [09:16:42]Write to MH i2c: 01 00 00 B6 6D 23 [09:16:42]Write i2c OK [09:16:42]MH_I2C_Read... [09:16:42]OFD Sender: No OFD packet to send [09:16:42]*** Cut start [09:16:42]*** Partial cut [09:16:42]*** CUTSNS_PIN = 1 [09:16:43]*** CUTSNS_PIN = 0 [09:16:43]*** Brake cut motor [09:16:43]Read from MH i2c: 01 [09:16:43]MH_I2C_Read... [09:16:43]*** Stop cut motor [09:16:43]*** Cut end [09:16:43]Read from MH i2c: 01 07 00 [09:16:43]MH_I2C_Read... [09:16:43]Read from MH i2c: 01 07 00 B6 6D 00 00 00 00 00 FF 0F 38 [09:16:43]process_action close_receipt done [09:16:43]requested_data is exist [09:16:43]produce_requested_data [09:16:43]requested_item fm.sn is exist - process it [09:16:43]wFMCommunicate request_size=4 [09:16:43]MH_SAM_APDU [09:16:43]CAPDU: 80 11 00 00 [09:16:43]Write to MH i2c: E2 08 00 B7 6D 80 11 00 00 00 00 00 00 9E [09:16:43]Write i2c OK [09:16:43]MH_I2C_Read... [09:16:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:16:43]Read from MH i2c: E2 [09:16:43]MH_I2C_Read... [09:16:43]Read from MH i2c: E2 17 00 [09:16:43]MH_I2C_Read... [09:16:43]Read from MH i2c: E2 17 00 B7 6D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 EC [09:16:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [09:16:43]wFMCommunicate OK [09:16:43]requested_item fd.num is exist - process it [09:16:43]SAM_PROTO_GetFieldsCounters [09:16:43]wFMCommunicate request_size=4 [09:16:43]MH_SAM_APDU [09:16:43]CAPDU: 80 13 00 00 [09:16:43]Write to MH i2c: E2 08 00 B8 6D 80 13 00 00 00 00 00 00 A1 [09:16:43]Write i2c OK [09:16:43]MH_I2C_Read... [09:16:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:16:43]Read from MH i2c: E2 [09:16:43]MH_I2C_Read... [09:16:43]Read from MH i2c: E2 62 00 [09:16:43]MH_I2C_Read... [09:16:43]Read from MH i2c: E2 62 00 B8 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 34 76 00 00 0E 04 04 00 72 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 61 [09:16: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 34 76 00 00 0E 04 04 00 72 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:16:43]wFMCommunicate OK [09:16:43]SAM_PROTO_GetFieldsCounters done [09:16:43]requested_item shift.num is exist - process it [09:16:43]requested_item shift.opened is exist - process it [09:16:43]req_shift_opened [09:16:43]FM_GetShiftState [09:16:43]SAM_PROTO_GetShiftState [09:16:43]wFMCommunicate request_size=4 [09:16:43]MH_SAM_APDU [09:16:43]CAPDU: 80 13 01 00 [09:16:43]Write to MH i2c: E2 08 00 B9 6D 80 13 01 00 00 00 00 00 A3 [09:16:43]Write i2c OK [09:16:43]MH_I2C_Read... [09:16:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:16:43]Read from MH i2c: E2 [09:16:43]MH_I2C_Read... [09:16:43]Read from MH i2c: E2 0E 00 [09:16:43]MH_I2C_Read... [09:16:43]Read from MH i2c: E2 0E 00 B9 6D 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 89 [09:16:43]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [09:16:43]wFMCommunicate OK [09:16:43]SAM_PROTO_GetShiftState done [09:16:43]FM_GetShiftState done [09:16:43]req_shift_opened done [09:16:43]requested_item shift.open_date is exist - process it [09:16:43]req_shift_open_date [09:16:43]req_shift_open_date done [09:16:43]produce_requested_data done [09:16:43]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30260,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [09:16:43]process_action_free close_receipt [09:16:43]json_value_free [09:16:43]json_value_free done [09:16:43]process_json_proto returns [09:16:43]Send response to host [09:16:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30260,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [09:16:43]free response buf [09:16:43]execute_script done [09:16:43]execute_script returns [09:16:43]free content buf [09:16:43]Sock 9.Close socket [09:16:43]Sock 9.Thread stoped [09:16:47]OFD Sender: No OFD packet to send [09:16:52]OFD Sender: No OFD packet to send [09:16:57]OFD Sender: No OFD packet to send [09:17:02]OFD Sender: No OFD packet to send [09:17:07]OFD Sender: No OFD packet to send [09:17:12]OFD Sender: No OFD packet to send [09:17:17]OFD Sender: No OFD packet to send [09:17:22]OFD Sender: No OFD packet to send [09:17:27]OFD Sender: No OFD packet to send [09:17:32]OFD Sender: No OFD packet to send [09:17:37]OFD Sender: No OFD packet to send [09:17:42]OFD Sender: No OFD packet to send [09:17:47]OFD Sender: No OFD packet to send [09:17:52]OFD Sender: No OFD packet to send [09:17:57]OFD Sender: No OFD packet to send [09:18:02]OFD Sender: No OFD packet to send [09:18:07]OFD Sender: No OFD packet to send [09:18:12]OFD Sender: No OFD packet to send [09:18:17]OFD Sender: No OFD packet to send [09:18:22]OFD Sender: No OFD packet to send [09:18:27]OFD Sender: No OFD packet to send [09:18:32]OFD Sender: No OFD packet to send [09:18:37]OFD Sender: No OFD packet to send [09:18:42]OFD Sender: No OFD packet to send [09:18:47]OFD Sender: No OFD packet to send [09:18:52]OFD Sender: No OFD packet to send [09:18:57]OFD Sender: No OFD packet to send [09:19:02]OFD Sender: No OFD packet to send [09:19:07]OFD Sender: No OFD packet to send [09:19:12]OFD Sender: No OFD packet to send [09:19:17]OFD Sender: No OFD packet to send [09:19:22]OFD Sender: No OFD packet to send [09:19:27]OFD Sender: No OFD packet to send [09:19:32]OFD Sender: No OFD packet to send [09:19:37]OFD Sender: No OFD packet to send [09:19:42]OFD Sender: No OFD packet to send [09:19:47]OFD Sender: No OFD packet to send [09:19:52]OFD Sender: No OFD packet to send [09:19:57]OFD Sender: No OFD packet to send [09:20:02]OFD Sender: No OFD packet to send [09:20:07]OFD Sender: No OFD packet to send [09:20:12]OFD Sender: No OFD packet to send [09:20:17]OFD Sender: No OFD packet to send [09:20:19]accept exits with 7 [09:20:19]New connection [09:20:19]New thread 3067370852 created [09:20:19]Thread 3067514212 joined [09:20:19]Waiting for new connection... [09:20:19] Sock 7.Parse request [09:20:19]Sock 7.Check first char [09:20:19]Sock 7.First char is OK [09:20:19]request: POST /json_proto HTTP/1.0 [09:20:19]Method: POST [09:20:19]URL: /json_proto [09:20:19]Method is POST - this is cgi request [09:20:19]url: /json_proto [09:20:19]query_string will be loaded in cgi processing [09:20:19]execute_cgi json_proto POST (null) [09:20:19]execute_cgi path=json_proto method=POST [09:20:19]POST find Content-Length [09:20:19]Host: 172.17.51.3:8080 [09:20:19]Content-Length: 677 [09:20:19]Content-Type: application/json [09:20:19] [09:20:19]POST finish read [09:20:19]Found Content-Length = 677 [09:20:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342651", "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" ] } } [09:20:19]execute_script... [09:20: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)342651", "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" ] } } [09:20:19]POST & json_proto [09:20:19]process_json_proto [09:20:19]json parsed OK: [09:20:19]protocol is kg_v1.0 [09:20:19]action value=close_receipt [09:20:19]process_action close_receipt [09:20:19]cmd_close_receipt [09:20:19]MH_GetDate [09:20:19]Write to MH i2c: F0 00 00 BA 6D 16 [09:20:19]Write i2c OK [09:20:19]MH_I2C_Read... [09:20:19]Read from MH i2c: F0 [09:20:19]MH_I2C_Read... [09:20:19]Read from MH i2c: F0 09 00 [09:20:19]MH_I2C_Read... [09:20:19]Read from MH i2c: F0 09 00 BA 6D 00 5C CB 14 67 04 C1 95 66 81 [09:20:19]GetLastDocTimeStamp 1729415808 [09:20:19]current date 1729416028 [09:20:19]FM_GetShiftState [09:20:19]SAM_PROTO_GetShiftState [09:20:19]wFMCommunicate request_size=4 [09:20:19]MH_SAM_APDU [09:20:19]CAPDU: 80 13 01 00 [09:20:19]Write to MH i2c: E2 08 00 BB 6D 80 13 01 00 00 00 00 00 A5 [09:20:19]Write i2c OK [09:20:19]MH_I2C_Read... [09:20:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:20:19]Read from MH i2c: E2 [09:20:19]MH_I2C_Read... [09:20:19]Read from MH i2c: E2 0E 00 [09:20:19]MH_I2C_Read... [09:20:19]Read from MH i2c: E2 0E 00 BB 6D 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 8B [09:20:19]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [09:20:19]wFMCommunicate OK [09:20:19]SAM_PROTO_GetShiftState done [09:20:19]FM_GetShiftState done [09:20:19]opened in 1729384718 [09:20:19]opened+sec_in_day 1729471118 [09:20:19]quantity*price = 70044 [09:20:19]sum+1 = 70046 [09:20:19]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 СНО: Общий режим Чек 43 20.10.2024 09:20 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30261 ФПД: 211131893368099 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T092028&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30261&fm=211131893368099&tin=02508201610067®Number=0000000000186857&sum=70000 [09:20:20]StoreToDocumentArchive [09:20:20]shift 114 fd 30261 [09:20:20]save to /storage/0114/doc_00030261 [09:20:20]save last doc name /storage/0114/doc_00030261 to /storage/kkm_last_doc_name [09:20:20]save OK [09:20:20]Clear old archive folders... [09:20:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:20:20]tlvbuf is 00B676E0 [09:20:20]SAM_PROTO_ClearQueue [09:20:20]wFMCommunicate request_size=4 [09:20:20]MH_SAM_APDU [09:20:20]CAPDU: 80 09 00 00 [09:20:20]Write to MH i2c: E2 08 00 C8 6D 80 09 00 00 00 00 00 00 A7 [09:20:20]Write i2c OK [09:20:20]MH_I2C_Read... [09:20:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:20:20]Read from MH i2c: E2 [09:20:20]MH_I2C_Read... [09:20:20]Read from MH i2c: E2 03 00 [09:20:20]MH_I2C_Read... [09:20:20]Read from MH i2c: E2 03 00 C8 6D 00 90 00 A9 [09:20:20]RAPDU: 90 00 [09:20:20]wFMCommunicate OK [09:20:20]SAM_PROTO_ClearQueue done [09:20:20]KKMCreateOFDPacket [09:20:20]OFDProtocolAddRootSTLVToBuf [09:20:20]FM_MakeSignedData [09:20:20]FM_MakeSignedData [09:20:20]SAM_PROTO_SignData [09:20:20]wFMCommunicate request_size=4 [09:20:20]MH_SAM_APDU [09:20:20]CAPDU: 80 0D 01 02 [09:20:20]Write to MH i2c: E2 08 00 C9 6D 80 0D 01 02 00 00 00 00 AF [09:20:20]Write i2c OK [09:20:20]MH_I2C_Read... [09:20:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:20:20]Read from MH i2c: E2 [09:20:20]MH_I2C_Read... [09:20:20]Read from MH i2c: E2 03 00 [09:20:20]MH_I2C_Read... [09:20:20]Read from MH i2c: E2 03 00 C9 6D 00 90 00 AA [09:20:20]RAPDU: 90 00 [09:20:20]wFMCommunicate OK [09:20:20]wFMCommunicate request_size=255 [09:20:20]MH_SAM_APDU [09:20: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 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 2B 00 00 00 F4 03 04 00 5C CB 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 C0 [09:20:20]Write to MH i2c: E2 02 01 CA 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 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 2B 00 00 00 F4 03 04 00 5C CB 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 C0 00 00 D2 [09:20:20]Write i2c OK [09:20:20]MH_I2C_Read... [09:20:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:20:20]Read from MH i2c: E2 [09:20:20]MH_I2C_Read... [09:20:20]Read from MH i2c: E2 03 00 [09:20:20]MH_I2C_Read... [09:20:20]Read from MH i2c: E2 03 00 CA 6D 00 90 00 AB [09:20:20]RAPDU: 90 00 [09:20:20]wFMCommunicate OK [09:20:20]wFMCommunicate request_size=10 [09:20:20]MH_SAM_APDU [09:20:20]CAPDU: 80 0D 02 02 05 05 F9 81 45 23 [09:20:20]Write to MH i2c: E2 0D 00 CB 6D 80 0D 02 02 05 00 05 F9 81 45 23 00 00 A3 [09:20:20]Write i2c OK [09:20:20]MH_I2C_Read... [09:20:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:20:21]Read from MH i2c: E2 [09:20:21]MH_I2C_Read... [09:20:21]Read from MH i2c: E2 03 00 [09:20:21]MH_I2C_Read... [09:20:21]Read from MH i2c: E2 03 00 CB 6D 00 90 00 AC [09:20:21]RAPDU: 90 00 [09:20:21]wFMCommunicate OK [09:20:21]wFMCommunicate request_size=4 [09:20:21]MH_SAM_APDU [09:20:21]CAPDU: 80 0D 03 02 [09:20:21]Write to MH i2c: E2 08 00 CC 6D 80 0D 03 02 00 00 00 00 B4 [09:20:21]Write i2c OK [09:20:21]MH_I2C_Read... [09:20:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:20:21]Read from MH i2c: E2 [09:20:21]MH_I2C_Read... [09:20:21]Read from MH i2c: E2 0B 00 [09:20:21]MH_I2C_Read... [09:20:21]Read from MH i2c: E2 0B 00 CC 6D 00 B9 72 41 2D F4 1B 44 92 90 00 33 [09:20:21]RAPDU: B9 72 41 2D F4 1B 44 92 90 00 [09:20:21]wFMCommunicate OK [09:20:21]SAM_PROTO_SignData done [09:20:21]FM_MakeSignedData done [09:20:21]CreateOFDProtocolMessage [09:20:21]wFMCommunicate request_size=4 [09:20:21]MH_SAM_APDU [09:20:21]CAPDU: 80 11 00 00 [09:20:21]Write to MH i2c: E2 08 00 CD 6D 80 11 00 00 00 00 00 00 B4 [09:20:21]Write i2c OK [09:20:21]MH_I2C_Read... [09:20:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:20:21]Read from MH i2c: E2 [09:20:21]MH_I2C_Read... [09:20:21]Read from MH i2c: E2 17 00 [09:20:21]MH_I2C_Read... [09:20:21]Read from MH i2c: E2 17 00 CD 6D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 02 [09:20:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [09:20:21]wFMCommunicate OK [09:20:21]CreateOFDProtocolMessage done [09:20:21]OFDSenderStorePacket 30261 [09:20:21]StoreOFDPacket docnum=30261 [09:20: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 3B 08 07 01 27 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 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 2B 00 00 00 F4 03 04 00 5C CB 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 C0 05 F9 81 45 23 B9 72 41 2D F4 1B 44 92 [09:20:21]CheckFolder [09:20:21]dirname=/storage/ofd_packets [09:20:21]CheckFolder done [09:20:21]ProducePacketName [09:20:21]name=ofd_packets/00030261 [09:20:21]NVStorageSaveData ofd_packets/00030261 [09:20:21]File name is /storage/ofd_packets/00030261 [09:20:21]Write 301 bytes [09:20:21]NVStorageSaveData done [09:20:21]OFDSenderStorePacket done [09:20:21]KKMCreateOFDPacket done [09:20:21]NVStorageSaveData kkm_last_timestamp [09:20:21]File name is /storage/kkm_last_timestamp [09:20:21]Write 4 bytes [09:20:21]NVStorageSaveData done [09:20:21]ExternCall_PrintAddStr [09:20:21]wPrintStart [09:20:21]Write to MH i2c: 01 00 00 CE 6D 3B [09:20:21]Write i2c OK [09:20:21]MH_I2C_Read... [09:20:21]Read from MH i2c: 01 [09:20:21]MH_I2C_Read... [09:20:21]Read from MH i2c: 01 07 00 [09:20:21]MH_I2C_Read... [09:20:21]Read from MH i2c: 01 07 00 CE 6D 00 00 00 00 00 FF 0F 50 [09:20:21]RasterBufferAndPrint [09:20:21]line Счет N : (1)342651 [09:20:21]line ИНН: 02508201610067 [09:20:21]line Контрольно-Кассовый Чек [09:20:21]line ПРОДАЖА [09:20:21]line ТРК (МРК, ГНК) : 62 [09:20:21]line Товар: 2710124500 [09:20:21]line Аи-95-К-3 [09:20:21]line 9.440 * 74.20 [09:20:21]line = 700.45 [09:20:21]line НДС 12% НСП 1% [09:20:21]line > о реализуемом товаре [09:20:21]line ОКРУГЛЕНИЕ: -0.45 [09:20:21]line ИТОГО: 700.00 [09:20:21]line Внесено: 700.00 [09:20:21]line СДАЧА: 0.00 [09:20:21]line НСП 1% : 6.20 [09:20:21]line НДС 12% : 74.38 [09:20:21]line Наличными: 700.00 [09:20:21]line Безнал.: 0.00 [09:20:21]line Место: АЗС № 78 "Партнер Нефть" [09:20:21]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [09:20:21]line СНО: Общий режим [09:20:21]line Чек 43 20.10.2024 09:20 [09:20:21]line Смена: 114 ФФД: 1.0 [09:20:21]line ЗНМ: 0300000137 [09:20:21]line РНМ: 0000000000186857 [09:20:21]line Версия ККМ: v1.0 [09:20:21]line ФМ: 0000000002094219 [09:20:21]line ФД: 30261 [09:20:21]line ФПД: 211131893368099 [09:20:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T092028&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30261&fm=211131893368099&tin=02508201610067®Number=0000000000186857&sum=70000 [09:20:21]OFD Sender: Processing packet 30261 [packets to send 10, broken 9] [09:20:21]ProducePacketName [09:20:21]name=ofd_packets/00030261 [09:20:21]OFD Sender: To server: pG, [09:20:21]CommunicateWithHost lk.salyk.kg:30040 [09:20:21]ConnectInit lk.salyk.kg [09:20:21]written 0, free lines is 4095 [09:20:21]Connected sock=10 [09:20: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 3B 08 07 01 27 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 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 2B 00 00 00 F4 03 04 00 5C CB 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 C0 05 F9 81 45 23 B9 72 41 2D F4 1B 44 92 [09:20: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 D2 8D 47 00 B2 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 35 76 00 00 F4 03 04 00 E0 75 14 67 B6 04 01 00 00 51 6F 5B 96 57 B5 93 95 [09:20:21]CommunicateWithHost err = 0 [09:20:21]CheckOFDResponse [09:20:21]1017 (14) - 77093643461234 [09:20:21]1041 (16) - 0000000002094219 [09:20:21]1040 (4) - 30261 [09:20:21]1012 (4) - 20.10.2024 03:15 [09:20:21]1206 (1) - 0 [09:20:21]OFD Sender: Remove packet 30261 [09:20:21]ProducePacketName [09:20:21]name=ofd_packets/00030261 [09:20:21]NVStorageDeleteData [09:20:21]Write to MH i2c: 01 00 00 F9 6D 66 [09:20:21]Write i2c OK [09:20:21]MH_I2C_Read... [09:20:21]Read from MH i2c: 01 [09:20:21]MH_I2C_Read... [09:20:21]Read from MH i2c: 01 07 00 [09:20:21]MH_I2C_Read... [09:20:21]Read from MH i2c: 01 07 00 F9 6D 00 00 00 00 00 F6 0C 6F [09:20:21]RasterBufferAndPrint [09:20:21]line [09:20:21]line [09:20:21]line [09:20:21]line [09:20:21]line [09:20:21]written 0, free lines is 3324 [09:20:21]MH_Cut [09:20:21]Write to MH i2c: D1 01 00 00 6E 01 40 [09:20:21]Write i2c OK [09:20:21]MH_I2C_Read... [09:20:21]Read from MH i2c: D1 [09:20:21]MH_I2C_Read... [09:20:21]Read from MH i2c: D1 01 00 [09:20:21]MH_I2C_Read... [09:20:21]Read from MH i2c: D1 01 00 00 6E 00 3F [09:20:21]Write to MH i2c: 01 00 00 01 6E 6F [09:20:21]Write i2c OK [09:20:21]MH_I2C_Read... [09:20:22]OFD Sender: No OFD packet to send [09:20:22]*** Cut start [09:20:22]*** Partial cut [09:20:22]*** CUTSNS_PIN = 1 [09:20:22]*** CUTSNS_PIN = 0 [09:20:22]*** Brake cut motor [09:20:23]Read from MH i2c: 01 [09:20:23]MH_I2C_Read... [09:20:23]*** Stop cut motor [09:20:23]*** Cut end [09:20:23]Read from MH i2c: 01 07 00 [09:20:23]MH_I2C_Read... [09:20:23]Read from MH i2c: 01 07 00 01 6E 00 00 00 00 00 FF 0F 84 [09:20:23]process_action close_receipt done [09:20:23]requested_data is exist [09:20:23]produce_requested_data [09:20:23]requested_item fm.sn is exist - process it [09:20:23]wFMCommunicate request_size=4 [09:20:23]MH_SAM_APDU [09:20:23]CAPDU: 80 11 00 00 [09:20:23]Write to MH i2c: E2 08 00 02 6E 80 11 00 00 00 00 00 00 EA [09:20:23]Write i2c OK [09:20:23]MH_I2C_Read... [09:20:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:20:23]Read from MH i2c: E2 [09:20:23]MH_I2C_Read... [09:20:23]Read from MH i2c: E2 17 00 [09:20:23]MH_I2C_Read... [09:20:23]Read from MH i2c: E2 17 00 02 6E 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:20:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [09:20:23]wFMCommunicate OK [09:20:23]requested_item fd.num is exist - process it [09:20:23]SAM_PROTO_GetFieldsCounters [09:20:23]wFMCommunicate request_size=4 [09:20:23]MH_SAM_APDU [09:20:23]CAPDU: 80 13 00 00 [09:20:23]Write to MH i2c: E2 08 00 03 6E 80 13 00 00 00 00 00 00 ED [09:20:23]Write i2c OK [09:20:23]MH_I2C_Read... [09:20:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:20:23]Read from MH i2c: E2 [09:20:23]MH_I2C_Read... [09:20:23]Read from MH i2c: E2 62 00 [09:20:23]MH_I2C_Read... [09:20:23]Read from MH i2c: E2 62 00 03 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 76 00 00 0E 04 04 00 72 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 B1 [09:20: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 35 76 00 00 0E 04 04 00 72 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:20:23]wFMCommunicate OK [09:20:23]SAM_PROTO_GetFieldsCounters done [09:20:23]requested_item shift.num is exist - process it [09:20:23]requested_item shift.opened is exist - process it [09:20:23]req_shift_opened [09:20:23]FM_GetShiftState [09:20:23]SAM_PROTO_GetShiftState [09:20:23]wFMCommunicate request_size=4 [09:20:23]MH_SAM_APDU [09:20:23]CAPDU: 80 13 01 00 [09:20:23]Write to MH i2c: E2 08 00 04 6E 80 13 01 00 00 00 00 00 EF [09:20:23]Write i2c OK [09:20:23]MH_I2C_Read... [09:20:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:20:23]Read from MH i2c: E2 [09:20:23]MH_I2C_Read... [09:20:23]Read from MH i2c: E2 0E 00 [09:20:23]MH_I2C_Read... [09:20:23]Read from MH i2c: E2 0E 00 04 6E 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 D5 [09:20:23]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [09:20:23]wFMCommunicate OK [09:20:23]SAM_PROTO_GetShiftState done [09:20:23]FM_GetShiftState done [09:20:23]req_shift_opened done [09:20:23]requested_item shift.open_date is exist - process it [09:20:23]req_shift_open_date [09:20:23]req_shift_open_date done [09:20:23]produce_requested_data done [09:20:23]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30261,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [09:20:23]process_action_free close_receipt [09:20:23]json_value_free [09:20:23]json_value_free done [09:20:23]process_json_proto returns [09:20:23]Send response to host [09:20:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30261,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [09:20:23]free response buf [09:20:23]execute_script done [09:20:23]execute_script returns [09:20:23]free content buf [09:20:23]Sock 7.Close socket [09:20:23]Sock 7.Thread stoped [09:20:27]OFD Sender: No OFD packet to send [09:20:32]OFD Sender: No OFD packet to send [09:20:37]OFD Sender: No OFD packet to send [09:20:42]OFD Sender: No OFD packet to send [09:20:47]OFD Sender: No OFD packet to send [09:20:52]OFD Sender: No OFD packet to send [09:20:57]OFD Sender: No OFD packet to send [09:21:02]OFD Sender: No OFD packet to send [09:21:07]OFD Sender: No OFD packet to send [09:21:12]OFD Sender: No OFD packet to send [09:21:17]OFD Sender: No OFD packet to send [09:21:22]OFD Sender: No OFD packet to send [09:21:27]OFD Sender: No OFD packet to send [09:21:32]OFD Sender: No OFD packet to send [09:21:37]OFD Sender: No OFD packet to send [09:21:42]OFD Sender: No OFD packet to send [09:21:47]OFD Sender: No OFD packet to send [09:21:52]OFD Sender: No OFD packet to send [09:21:57]OFD Sender: No OFD packet to send [09:22:02]OFD Sender: No OFD packet to send [09:22:07]OFD Sender: No OFD packet to send [09:22:12]OFD Sender: No OFD packet to send [09:22:17]OFD Sender: No OFD packet to send [09:22:22]OFD Sender: No OFD packet to send [09:22:27]OFD Sender: No OFD packet to send [09:22:32]OFD Sender: No OFD packet to send [09:22:37]OFD Sender: No OFD packet to send [09:22:42]OFD Sender: No OFD packet to send [09:22:47]OFD Sender: No OFD packet to send [09:22:52]OFD Sender: No OFD packet to send [09:22:57]OFD Sender: No OFD packet to send [09:23:02]OFD Sender: No OFD packet to send [09:23:07]OFD Sender: No OFD packet to send [09:23:12]OFD Sender: No OFD packet to send [09:23:17]OFD Sender: No OFD packet to send [09:23:22]OFD Sender: No OFD packet to send [09:23:27]OFD Sender: No OFD packet to send [09:23:32]OFD Sender: No OFD packet to send [09:23:37]OFD Sender: No OFD packet to send [09:23:42]OFD Sender: No OFD packet to send [09:23:47]OFD Sender: No OFD packet to send [09:23:52]OFD Sender: No OFD packet to send [09:23:57]OFD Sender: No OFD packet to send [09:24:02]OFD Sender: No OFD packet to send [09:24:07]OFD Sender: No OFD packet to send [09:24:12]OFD Sender: No OFD packet to send [09:24:17]OFD Sender: No OFD packet to send [09:24:22]OFD Sender: No OFD packet to send [09:24:27]OFD Sender: No OFD packet to send [09:24:32]OFD Sender: No OFD packet to send [09:24:37]OFD Sender: No OFD packet to send [09:24:42]OFD Sender: No OFD packet to send [09:24:47]OFD Sender: No OFD packet to send [09:24:52]OFD Sender: No OFD packet to send [09:24:57]OFD Sender: No OFD packet to send [09:25:02]OFD Sender: No OFD packet to send [09:25:07]OFD Sender: No OFD packet to send [09:25:12]OFD Sender: No OFD packet to send [09:25:17]OFD Sender: No OFD packet to send [09:25:22]OFD Sender: No OFD packet to send [09:25:27]OFD Sender: No OFD packet to send [09:25:32]OFD Sender: No OFD packet to send [09:25:37]OFD Sender: No OFD packet to send [09:25:42]OFD Sender: No OFD packet to send [09:25:47]OFD Sender: No OFD packet to send [09:25:52]OFD Sender: No OFD packet to send [09:25:57]OFD Sender: No OFD packet to send [09:26:02]OFD Sender: No OFD packet to send [09:26:07]OFD Sender: No OFD packet to send [09:26:12]OFD Sender: No OFD packet to send [09:26:17]OFD Sender: No OFD packet to send [09:26:22]OFD Sender: No OFD packet to send [09:26:27]OFD Sender: No OFD packet to send [09:26:32]OFD Sender: No OFD packet to send [09:26:37]OFD Sender: No OFD packet to send [09:26:42]OFD Sender: No OFD packet to send [09:26:47]OFD Sender: No OFD packet to send [09:26:52]OFD Sender: No OFD packet to send [09:26:57]OFD Sender: No OFD packet to send [09:27:02]OFD Sender: No OFD packet to send [09:27:07]OFD Sender: No OFD packet to send [09:27:12]OFD Sender: No OFD packet to send [09:27:17]OFD Sender: No OFD packet to send [09:27:22]OFD Sender: No OFD packet to send [09:27:27]OFD Sender: No OFD packet to send [09:27:32]OFD Sender: No OFD packet to send [09:27:37]OFD Sender: No OFD packet to send [09:27:42]OFD Sender: No OFD packet to send [09:27:47]OFD Sender: No OFD packet to send [09:27:50]accept exits with 9 [09:27:50]New connection [09:27:50]New thread 3067514212 created [09:27:50]Thread 3067370852 joined [09:27:50]Waiting for new connection... [09:27:50] Sock 9.Parse request [09:27:50]Sock 9.Check first char [09:27:50]Sock 9.First char is OK [09:27:50]request: POST /json_proto HTTP/1.0 [09:27:50]Method: POST [09:27:50]URL: /json_proto [09:27:50]Method is POST - this is cgi request [09:27:50]url: /json_proto [09:27:50]query_string will be loaded in cgi processing [09:27:50]execute_cgi json_proto POST (null) [09:27:50]execute_cgi path=json_proto method=POST [09:27:50]POST find Content-Length [09:27:50]Host: 172.17.51.3:8080 [09:27:50]Content-Length: 678 [09:27:50]Content-Type: application/json [09:27:50] [09:27:50]POST finish read [09:27:50]Found Content-Length = 678 [09:27:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342653", "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" : 13.020, "sum" : 871.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 871.00, "total" : 871.00, "payments": [ { "type": 0, "sum" : 871.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:27:50]execute_script... [09:27:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342653", "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" : 13.020, "sum" : 871.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 871.00, "total" : 871.00, "payments": [ { "type": 0, "sum" : 871.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:27:50]POST & json_proto [09:27:50]process_json_proto [09:27:50]json parsed OK: [09:27:50]protocol is kg_v1.0 [09:27:50]action value=close_receipt [09:27:50]process_action close_receipt [09:27:50]cmd_close_receipt [09:27:50]MH_GetDate [09:27:50]Write to MH i2c: F0 00 00 05 6E 62 [09:27:50]Write i2c OK [09:27:50]MH_I2C_Read... [09:27:50]Read from MH i2c: F0 [09:27:50]MH_I2C_Read... [09:27:50]Read from MH i2c: F0 09 00 [09:27:50]MH_I2C_Read... [09:27:50]Read from MH i2c: F0 09 00 05 6E 00 1F CD 14 67 04 C1 95 66 92 [09:27:50]GetLastDocTimeStamp 1729416028 [09:27:50]current date 1729416479 [09:27:50]FM_GetShiftState [09:27:50]SAM_PROTO_GetShiftState [09:27:50]wFMCommunicate request_size=4 [09:27:50]MH_SAM_APDU [09:27:50]CAPDU: 80 13 01 00 [09:27:50]Write to MH i2c: E2 08 00 06 6E 80 13 01 00 00 00 00 00 F1 [09:27:50]Write i2c OK [09:27:50]MH_I2C_Read... [09:27:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:27:50]Read from MH i2c: E2 [09:27:50]MH_I2C_Read... [09:27:50]Read from MH i2c: E2 0E 00 [09:27:50]MH_I2C_Read... [09:27:50]Read from MH i2c: E2 0E 00 06 6E 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 D7 [09:27:50]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [09:27:50]wFMCommunicate OK [09:27:50]SAM_PROTO_GetShiftState done [09:27:50]FM_GetShiftState done [09:27:50]opened in 1729384718 [09:27:50]opened+sec_in_day 1729471118 [09:27:50]quantity*price = 87103 [09:27:50]sum+1 = 87105 [09:27:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 871.00 Внесено: 871.00 СДАЧА: 0.00 НСП 1% : 7.71 НДС 12% : 92.50 Наличными: 871.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 44 20.10.2024 09:27 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30262 ФПД: 181767576048991 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T092759&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30262&fm=181767576048991&tin=02508201610067®Number=0000000000186857&sum=87100 [09:27:51]StoreToDocumentArchive [09:27:51]shift 114 fd 30262 [09:27:51]save to /storage/0114/doc_00030262 [09:27:51]save last doc name /storage/0114/doc_00030262 to /storage/kkm_last_doc_name [09:27:51]save OK [09:27:51]Clear old archive folders... [09:27:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:27:51]tlvbuf is 00BDC260 [09:27:51]SAM_PROTO_ClearQueue [09:27:51]wFMCommunicate request_size=4 [09:27:51]MH_SAM_APDU [09:27:51]CAPDU: 80 09 00 00 [09:27:51]Write to MH i2c: E2 08 00 13 6E 80 09 00 00 00 00 00 00 F3 [09:27:51]Write i2c OK [09:27:51]MH_I2C_Read... [09:27:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:27:51]Read from MH i2c: E2 [09:27:51]MH_I2C_Read... [09:27:51]Read from MH i2c: E2 03 00 [09:27:51]MH_I2C_Read... [09:27:51]Read from MH i2c: E2 03 00 13 6E 00 90 00 F5 [09:27:51]RAPDU: 90 00 [09:27:51]wFMCommunicate OK [09:27:51]SAM_PROTO_ClearQueue done [09:27:51]KKMCreateOFDPacket [09:27:51]OFDProtocolAddRootSTLVToBuf [09:27:51]FM_MakeSignedData [09:27:51]FM_MakeSignedData [09:27:51]SAM_PROTO_SignData [09:27:51]wFMCommunicate request_size=4 [09:27:51]MH_SAM_APDU [09:27:51]CAPDU: 80 0D 01 02 [09:27:51]Write to MH i2c: E2 08 00 14 6E 80 0D 01 02 00 00 00 00 FB [09:27:51]Write i2c OK [09:27:51]MH_I2C_Read... [09:27:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:27:51]Read from MH i2c: E2 [09:27:51]MH_I2C_Read... [09:27:51]Read from MH i2c: E2 03 00 [09:27:51]MH_I2C_Read... [09:27:51]Read from MH i2c: E2 03 00 14 6E 00 90 00 F6 [09:27:51]RAPDU: 90 00 [09:27:51]wFMCommunicate OK [09:27:51]wFMCommunicate request_size=255 [09:27:51]MH_SAM_APDU [09:27:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 32 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 40 54 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 54 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 22 24 00 00 00 00 07 04 06 00 3C 54 01 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 1F CD 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 A5 [09:27:51]Write to MH i2c: E2 02 01 15 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 DC 32 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 40 54 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 54 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 22 24 00 00 00 00 07 04 06 00 3C 54 01 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 1F CD 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 A5 00 00 AA [09:27:51]Write i2c OK [09:27:51]MH_I2C_Read... [09:27:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:27:52]Read from MH i2c: E2 [09:27:52]MH_I2C_Read... [09:27:52]Read from MH i2c: E2 03 00 [09:27:52]MH_I2C_Read... [09:27:52]Read from MH i2c: E2 03 00 15 6E 00 90 00 F7 [09:27:52]RAPDU: 90 00 [09:27:52]wFMCommunicate OK [09:27:52]wFMCommunicate request_size=10 [09:27:52]MH_SAM_APDU [09:27:52]CAPDU: 80 0D 02 02 05 51 0F CD 55 5F [09:27:52]Write to MH i2c: E2 0D 00 16 6E 80 0D 02 02 05 00 51 0F CD 55 5F 00 00 E9 [09:27:52]Write i2c OK [09:27:52]MH_I2C_Read... [09:27:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:27:52]Read from MH i2c: E2 [09:27:52]MH_I2C_Read... [09:27:52]Read from MH i2c: E2 03 00 [09:27:52]MH_I2C_Read... [09:27:52]Read from MH i2c: E2 03 00 16 6E 00 90 00 F8 [09:27:52]RAPDU: 90 00 [09:27:52]wFMCommunicate OK [09:27:52]wFMCommunicate request_size=4 [09:27:52]MH_SAM_APDU [09:27:52]CAPDU: 80 0D 03 02 [09:27:52]Write to MH i2c: E2 08 00 17 6E 80 0D 03 02 00 00 00 00 00 [09:27:52]Write i2c OK [09:27:52]MH_I2C_Read... [09:27:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:27:52]Read from MH i2c: E2 [09:27:52]MH_I2C_Read... [09:27:52]Read from MH i2c: E2 0B 00 [09:27:52]MH_I2C_Read... [09:27:52]Read from MH i2c: E2 0B 00 17 6E 00 65 93 56 D5 4C 57 E6 D8 90 00 85 [09:27:52]RAPDU: 65 93 56 D5 4C 57 E6 D8 90 00 [09:27:52]wFMCommunicate OK [09:27:52]SAM_PROTO_SignData done [09:27:52]FM_MakeSignedData done [09:27:52]CreateOFDProtocolMessage [09:27:52]wFMCommunicate request_size=4 [09:27:52]MH_SAM_APDU [09:27:52]CAPDU: 80 11 00 00 [09:27:52]Write to MH i2c: E2 08 00 18 6E 80 11 00 00 00 00 00 00 00 [09:27:52]Write i2c OK [09:27:52]MH_I2C_Read... [09:27:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:27:52]Read from MH i2c: E2 [09:27:52]MH_I2C_Read... [09:27:52]Read from MH i2c: E2 17 00 [09:27:52]MH_I2C_Read... [09:27:52]Read from MH i2c: E2 17 00 18 6E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 4E [09:27: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:27:52]wFMCommunicate OK [09:27:52]CreateOFDProtocolMessage done [09:27:52]OFDSenderStorePacket 30262 [09:27:52]StoreOFDPacket docnum=30262 [09:27: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 0A E1 07 01 B3 07 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 32 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 40 54 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 54 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 22 24 00 00 00 00 07 04 06 00 3C 54 01 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 1F CD 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 A5 51 0F CD 55 5F 65 93 56 D5 4C 57 E6 D8 [09:27:52]CheckFolder [09:27:52]dirname=/storage/ofd_packets [09:27:52]CheckFolder done [09:27:52]ProducePacketName [09:27:52]name=ofd_packets/00030262 [09:27:52]NVStorageSaveData ofd_packets/00030262 [09:27:52]File name is /storage/ofd_packets/00030262 [09:27:52]Write 301 bytes [09:27:52]NVStorageSaveData done [09:27:52]OFDSenderStorePacket done [09:27:52]KKMCreateOFDPacket done [09:27:52]NVStorageSaveData kkm_last_timestamp [09:27:52]File name is /storage/kkm_last_timestamp [09:27:52]Write 4 bytes [09:27:52]NVStorageSaveData done [09:27:52]ExternCall_PrintAddStr [09:27:52]wPrintStart [09:27:52]Write to MH i2c: 01 00 00 19 6E 87 [09:27:52]Write i2c OK [09:27:52]MH_I2C_Read... [09:27:52]Read from MH i2c: 01 [09:27:52]MH_I2C_Read... [09:27:52]Read from MH i2c: 01 07 00 [09:27:52]MH_I2C_Read... [09:27:52]Read from MH i2c: 01 07 00 19 6E 00 00 00 00 00 FF 0F 9C [09:27:52]RasterBufferAndPrint [09:27:52]line Счет N : (1)342653 [09:27:52]line ИНН: 02508201610067 [09:27:52]line Контрольно-Кассовый Чек [09:27:52]line ПРОДАЖА [09:27:52]line ТРК (МРК, ГНК) : 33 [09:27:52]line Товар: 2710124130 [09:27:52]line Аи-92-К-2 [09:27:52]line 13.020 * 66.90 [09:27:52]line = 871.04 [09:27:52]line НДС 12% НСП 1% [09:27:52]line > о реализуемом товаре [09:27:52]line ОКРУГЛЕНИЕ: -0.04 [09:27:52]line ИТОГО: 871.00 [09:27:52]line Внесено: 871.00 [09:27:52]line СДАЧА: 0.00 [09:27:52]line НСП 1% : 7.71 [09:27:52]line НДС 12% : 92.50 [09:27:52]line Наличными: 871.00 [09:27:52]line Безнал.: 0.00 [09:27:52]line Место: АЗС № 78 "Партнер Нефть" [09:27:52]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [09:27:52]line СНО: Общий режим [09:27:52]line Чек 44 20.10.2024 09:27 [09:27:52]line Смена: 114 ФФД: 1.0 [09:27:52]line ЗНМ: 0300000137 [09:27:52]line РНМ: 0000000000186857 [09:27:52]line Версия ККМ: v1.0 [09:27:52]line ФМ: 0000000002094219 [09:27:52]line ФД: 30262 [09:27:52]line ФПД: 181767576048991 [09:27:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T092759&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30262&fm=181767576048991&tin=02508201610067®Number=0000000000186857&sum=87100 [09:27:52]OFD Sender: Processing packet 30262 [packets to send 10, broken 9] [09:27:52]ProducePacketName [09:27:52]name=ofd_packets/00030262 [09:27:52]OFD Sender: To server: pG, [09:27:52]CommunicateWithHost lk.salyk.kg:30040 [09:27:52]ConnectInit lk.salyk.kg [09:27:52]written 0, free lines is 4095 [09:27:52]Connected sock=7 [09: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 0A E1 07 01 B3 07 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 32 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 40 54 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 54 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 22 24 00 00 00 00 07 04 06 00 3C 54 01 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 1F CD 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 A5 51 0F CD 55 5F 65 93 56 D5 4C 57 E6 D8 [09: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 5F 87 47 00 9A 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 36 76 00 00 F4 03 04 00 A3 77 14 67 B6 04 01 00 00 5D 7C 3F BA 48 6C F6 5D [09:27:52]CommunicateWithHost err = 0 [09:27:52]CheckOFDResponse [09:27:52]1017 (14) - 77093643461234 [09:27:52]1041 (16) - 0000000002094219 [09:27:52]1040 (4) - 30262 [09:27:52]1012 (4) - 20.10.2024 03:23 [09:27:52]1206 (1) - 0 [09:27:52]OFD Sender: Remove packet 30262 [09:27:52]ProducePacketName [09:27:52]name=ofd_packets/00030262 [09:27:52]NVStorageDeleteData [09:27:53]Write to MH i2c: 01 00 00 44 6E B2 [09:27:53]Write i2c OK [09:27:53]MH_I2C_Read... [09:27:53]Read from MH i2c: 01 [09:27:53]MH_I2C_Read... [09:27:53]Read from MH i2c: 01 07 00 [09:27:53]MH_I2C_Read... [09:27:53]Read from MH i2c: 01 07 00 44 6E 00 00 00 00 00 EF 0C B4 [09:27:53]RasterBufferAndPrint [09:27:53]line [09:27:53]line [09:27:53]line [09:27:53]line [09:27:53]line [09:27:53]written 0, free lines is 3317 [09:27:53]MH_Cut [09:27:53]Write to MH i2c: D1 01 00 4B 6E 01 8B [09:27:53]Write i2c OK [09:27:53]MH_I2C_Read... [09:27:53]Read from MH i2c: D1 [09:27:53]MH_I2C_Read... [09:27:53]Read from MH i2c: D1 01 00 [09:27:53]MH_I2C_Read... [09:27:53]Read from MH i2c: D1 01 00 4B 6E 00 8A [09:27:53]Write to MH i2c: 01 00 00 4C 6E BA [09:27:53]Write i2c OK [09:27:53]MH_I2C_Read... [09:27:53]OFD Sender: No OFD packet to send [09:27:53]*** Cut start [09:27:53]*** Partial cut [09:27:53]*** CUTSNS_PIN = 1 [09:27:53]*** CUTSNS_PIN = 0 [09:27:53]*** Brake cut motor [09:27:54]Read from MH i2c: 01 [09:27:54]MH_I2C_Read... [09:27:54]*** Stop cut motor [09:27:54]*** Cut end [09:27:54]Read from MH i2c: 01 07 00 [09:27:54]MH_I2C_Read... [09:27:54]Read from MH i2c: 01 07 00 4C 6E 00 00 00 00 00 FF 0F CF [09:27:54]process_action close_receipt done [09:27:54]requested_data is exist [09:27:54]produce_requested_data [09:27:54]requested_item fm.sn is exist - process it [09:27:54]wFMCommunicate request_size=4 [09:27:54]MH_SAM_APDU [09:27:54]CAPDU: 80 11 00 00 [09:27:54]Write to MH i2c: E2 08 00 4D 6E 80 11 00 00 00 00 00 00 35 [09:27:54]Write i2c OK [09:27:54]MH_I2C_Read... [09:27:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:27:54]Read from MH i2c: E2 [09:27:54]MH_I2C_Read... [09:27:54]Read from MH i2c: E2 17 00 [09:27:54]MH_I2C_Read... [09:27:54]Read from MH i2c: E2 17 00 4D 6E 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:27:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [09:27:54]wFMCommunicate OK [09:27:54]requested_item fd.num is exist - process it [09:27:54]SAM_PROTO_GetFieldsCounters [09:27:54]wFMCommunicate request_size=4 [09:27:54]MH_SAM_APDU [09:27:54]CAPDU: 80 13 00 00 [09:27:54]Write to MH i2c: E2 08 00 4E 6E 80 13 00 00 00 00 00 00 38 [09:27:54]Write i2c OK [09:27:54]MH_I2C_Read... [09:27:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:27:54]Read from MH i2c: E2 [09:27:54]MH_I2C_Read... [09:27:54]Read from MH i2c: E2 62 00 [09:27:54]MH_I2C_Read... [09:27:54]Read from MH i2c: E2 62 00 4E 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 36 76 00 00 0E 04 04 00 72 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 00 [09:27: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 36 76 00 00 0E 04 04 00 72 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:27:54]wFMCommunicate OK [09:27:54]SAM_PROTO_GetFieldsCounters done [09:27:54]requested_item shift.num is exist - process it [09:27:54]requested_item shift.opened is exist - process it [09:27:54]req_shift_opened [09:27:54]FM_GetShiftState [09:27:54]SAM_PROTO_GetShiftState [09:27:54]wFMCommunicate request_size=4 [09:27:54]MH_SAM_APDU [09:27:54]CAPDU: 80 13 01 00 [09:27:54]Write to MH i2c: E2 08 00 4F 6E 80 13 01 00 00 00 00 00 3A [09:27:54]Write i2c OK [09:27:54]MH_I2C_Read... [09:27:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:27:54]Read from MH i2c: E2 [09:27:54]MH_I2C_Read... [09:27:54]Read from MH i2c: E2 0E 00 [09:27:54]MH_I2C_Read... [09:27:54]Read from MH i2c: E2 0E 00 4F 6E 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 20 [09:27:54]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [09:27:54]wFMCommunicate OK [09:27:54]SAM_PROTO_GetShiftState done [09:27:54]FM_GetShiftState done [09:27:54]req_shift_opened done [09:27:54]requested_item shift.open_date is exist - process it [09:27:54]req_shift_open_date [09:27:54]req_shift_open_date done [09:27:54]produce_requested_data done [09:27:54]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30262,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [09:27:54]process_action_free close_receipt [09:27:54]json_value_free [09:27:54]json_value_free done [09:27:54]process_json_proto returns [09:27:54]Send response to host [09:27:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30262,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [09:27:54]free response buf [09:27:54]execute_script done [09:27:54]execute_script returns [09:27:54]free content buf [09:27:54]Sock 9.Close socket [09:27:54]Sock 9.Thread stoped [09:27:54]accept exits with 10 [09:27:54]New connection [09:27:54]New thread 3067370852 created [09:27:54]Thread 3067514212 joined [09:27:54]Waiting for new connection... [09:27:54] Sock 10.Parse request [09:27:54]Sock 10.Check first char [09:27:54]Sock 10.First char is OK [09:27:54]request: POST /json_proto HTTP/1.0 [09:27:54]Method: POST [09:27:54]URL: /json_proto [09:27:54]Method is POST - this is cgi request [09:27:54]url: /json_proto [09:27:54]query_string will be loaded in cgi processing [09:27:54]execute_cgi json_proto POST (null) [09:27:54]execute_cgi path=json_proto method=POST [09:27:54]POST find Content-Length [09:27:54]Host: 172.17.51.3:8080 [09:27:54]Content-Length: 679 [09:27:54]Content-Type: application/json [09:27:54] [09:27:54]POST finish read [09:27:54]Found Content-Length = 679 [09:27:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342652", "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" ] } } [09:27:54]execute_script... [09:27: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)342652", "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" ] } } [09:27:54]POST & json_proto [09:27:54]process_json_proto [09:27:54]json parsed OK: [09:27:54]protocol is kg_v1.0 [09:27:54]action value=close_receipt [09:27:54]process_action close_receipt [09:27:54]cmd_close_receipt [09:27:54]MH_GetDate [09:27:54]Write to MH i2c: F0 00 00 50 6E AD [09:27:54]Write i2c OK [09:27:54]MH_I2C_Read... [09:27:54]Read from MH i2c: F0 [09:27:54]MH_I2C_Read... [09:27:54]Read from MH i2c: F0 09 00 [09:27:54]MH_I2C_Read... [09:27:54]Read from MH i2c: F0 09 00 50 6E 00 23 CD 14 67 04 C1 95 66 E1 [09:27:54]GetLastDocTimeStamp 1729416479 [09:27:54]current date 1729416483 [09:27:54]FM_GetShiftState [09:27:54]SAM_PROTO_GetShiftState [09:27:54]wFMCommunicate request_size=4 [09:27:54]MH_SAM_APDU [09:27:54]CAPDU: 80 13 01 00 [09:27:54]Write to MH i2c: E2 08 00 51 6E 80 13 01 00 00 00 00 00 3C [09:27:54]Write i2c OK [09:27:54]MH_I2C_Read... [09:27:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:27:54]Read from MH i2c: E2 [09:27:54]MH_I2C_Read... [09:27:54]Read from MH i2c: E2 0E 00 [09:27:54]MH_I2C_Read... [09:27:54]Read from MH i2c: E2 0E 00 51 6E 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 22 [09:27:54]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [09:27:54]wFMCommunicate OK [09:27:54]SAM_PROTO_GetShiftState done [09:27:54]FM_GetShiftState done [09:27:54]opened in 1729384718 [09:27:54]opened+sec_in_day 1729471118 [09:27:54]quantity*price = 200025 [09:27:54]sum+1 = 200026 [09:27:54]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 СНО: Общий режим Чек 45 20.10.2024 09:28 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30263 ФПД: 7196965937595 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T092803&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30263&fm=7196965937595&tin=02508201610067®Number=0000000000186857&sum=200000 [09:27:56]StoreToDocumentArchive [09:27:56]shift 114 fd 30263 [09:27:56]save to /storage/0114/doc_00030263 [09:27:56]save last doc name /storage/0114/doc_00030263 to /storage/kkm_last_doc_name [09:27:56]save OK [09:27:56]Clear old archive folders... [09:27:56]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:27:56]tlvbuf is 00AD61A0 [09:27:56]SAM_PROTO_ClearQueue [09:27:56]wFMCommunicate request_size=4 [09:27:56]MH_SAM_APDU [09:27:56]CAPDU: 80 09 00 00 [09:27:56]Write to MH i2c: E2 08 00 5E 6E 80 09 00 00 00 00 00 00 3E [09:27:56]Write i2c OK [09:27:56]MH_I2C_Read... [09:27:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:27:56]Read from MH i2c: E2 [09:27:56]MH_I2C_Read... [09:27:56]Read from MH i2c: E2 03 00 [09:27:56]MH_I2C_Read... [09:27:56]Read from MH i2c: E2 03 00 5E 6E 00 90 00 40 [09:27:56]RAPDU: 90 00 [09:27:56]wFMCommunicate OK [09:27:56]SAM_PROTO_ClearQueue done [09:27:56]KKMCreateOFDPacket [09:27:56]OFDProtocolAddRootSTLVToBuf [09:27:56]FM_MakeSignedData [09:27:56]FM_MakeSignedData [09:27:56]SAM_PROTO_SignData [09:27:56]wFMCommunicate request_size=4 [09:27:56]MH_SAM_APDU [09:27:56]CAPDU: 80 0D 01 02 [09:27:56]Write to MH i2c: E2 08 00 5F 6E 80 0D 01 02 00 00 00 00 46 [09:27:56]Write i2c OK [09:27:56]MH_I2C_Read... [09:27:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:27:56]Read from MH i2c: E2 [09:27:56]MH_I2C_Read... [09:27:56]Read from MH i2c: E2 03 00 [09:27:56]MH_I2C_Read... [09:27:56]Read from MH i2c: E2 03 00 5F 6E 00 90 00 41 [09:27:56]RAPDU: 90 00 [09:27:56]wFMCommunicate OK [09:27:56]wFMCommunicate request_size=255 [09:27:56]MH_SAM_APDU [09:27: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 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 2D 00 00 00 F4 03 04 00 23 CD 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 06 8B AC 99 [09:27:56]Write to MH i2c: E2 02 01 60 6E 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 2D 00 00 00 F4 03 04 00 23 CD 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 06 8B AC 99 00 00 48 [09:27:56]Write i2c OK [09:27:56]MH_I2C_Read... [09:27:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:27:56]Read from MH i2c: E2 [09:27:56]MH_I2C_Read... [09:27:56]Read from MH i2c: E2 03 00 [09:27:56]MH_I2C_Read... [09:27:56]Read from MH i2c: E2 03 00 60 6E 00 90 00 42 [09:27:56]RAPDU: 90 00 [09:27:56]wFMCommunicate OK [09:27:56]wFMCommunicate request_size=7 [09:27:56]MH_SAM_APDU [09:27:56]CAPDU: 80 0D 02 02 02 21 BB [09:27:56]Write to MH i2c: E2 0A 00 61 6E 80 0D 02 02 02 00 21 BB 00 00 29 [09:27:56]Write i2c OK [09:27:56]MH_I2C_Read... [09:27:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:27:56]Read from MH i2c: E2 [09:27:56]MH_I2C_Read... [09:27:56]Read from MH i2c: E2 03 00 [09:27:56]MH_I2C_Read... [09:27:56]Read from MH i2c: E2 03 00 61 6E 00 90 00 43 [09:27:56]RAPDU: 90 00 [09:27:56]wFMCommunicate OK [09:27:56]wFMCommunicate request_size=4 [09:27:56]MH_SAM_APDU [09:27:56]CAPDU: 80 0D 03 02 [09:27:56]Write to MH i2c: E2 08 00 62 6E 80 0D 03 02 00 00 00 00 4B [09:27:56]Write i2c OK [09:27:56]MH_I2C_Read... [09:27:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:27:57]Read from MH i2c: E2 [09:27:57]MH_I2C_Read... [09:27:57]Read from MH i2c: E2 0B 00 [09:27:57]MH_I2C_Read... [09:27:57]Read from MH i2c: E2 0B 00 62 6E 00 27 23 50 06 61 19 E9 63 90 00 B2 [09:27:57]RAPDU: 27 23 50 06 61 19 E9 63 90 00 [09:27:57]wFMCommunicate OK [09:27:57]SAM_PROTO_SignData done [09:27:57]FM_MakeSignedData done [09:27:57]CreateOFDProtocolMessage [09:27:57]wFMCommunicate request_size=4 [09:27:57]MH_SAM_APDU [09:27:57]CAPDU: 80 11 00 00 [09:27:57]Write to MH i2c: E2 08 00 63 6E 80 11 00 00 00 00 00 00 4B [09:27:57]Write i2c OK [09:27:57]MH_I2C_Read... [09:27:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:27:57]Read from MH i2c: E2 [09:27:57]MH_I2C_Read... [09:27:57]Read from MH i2c: E2 17 00 [09:27:57]MH_I2C_Read... [09:27:57]Read from MH i2c: E2 17 00 63 6E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 99 [09:27: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:27:57]wFMCommunicate OK [09:27:57]CreateOFDProtocolMessage done [09:27:57]OFDSenderStorePacket 30263 [09:27:57]StoreOFDPacket docnum=30263 [09:27: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 BB B8 04 01 1E 1C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 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 2D 00 00 00 F4 03 04 00 23 CD 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 06 8B AC 99 21 BB 27 23 50 06 61 19 E9 63 [09:27:57]CheckFolder [09:27:57]dirname=/storage/ofd_packets [09:27:57]CheckFolder done [09:27:57]ProducePacketName [09:27:57]name=ofd_packets/00030263 [09:27:57]NVStorageSaveData ofd_packets/00030263 [09:27:57]File name is /storage/ofd_packets/00030263 [09:27:57]Write 298 bytes [09:27:57]NVStorageSaveData done [09:27:57]OFDSenderStorePacket done [09:27:57]KKMCreateOFDPacket done [09:27:57]NVStorageSaveData kkm_last_timestamp [09:27:57]File name is /storage/kkm_last_timestamp [09:27:57]Write 4 bytes [09:27:57]NVStorageSaveData done [09:27:57]ExternCall_PrintAddStr [09:27:57]wPrintStart [09:27:57]Write to MH i2c: 01 00 00 64 6E D2 [09:27:57]Write i2c OK [09:27:57]MH_I2C_Read... [09:27:57]Read from MH i2c: 01 [09:27:57]MH_I2C_Read... [09:27:57]Read from MH i2c: 01 07 00 [09:27:57]MH_I2C_Read... [09:27:57]Read from MH i2c: 01 07 00 64 6E 00 00 00 00 00 FF 0F E7 [09:27:57]RasterBufferAndPrint [09:27:57]line Счет N : (1)342652 [09:27:57]line ИНН: 02508201610067 [09:27:57]line Контрольно-Кассовый Чек [09:27:57]line ПРОДАЖА [09:27:57]line ТРК (МРК, ГНК) : 64 [09:27:57]line Товар: 2710194210 [09:27:57]line ДТ-К-2 [09:27:57]line 26.250 * 76.20 [09:27:57]line = 2000.25 [09:27:57]line НДС 12% НСП 1% [09:27:57]line > о реализуемом товаре [09:27:57]line ОКРУГЛЕНИЕ: -0.25 [09:27:57]line ИТОГО: 2000.00 [09:27:57]line Внесено: 2000.00 [09:27:57]line СДАЧА: 0.00 [09:27:57]line НСП 1% : 17.70 [09:27:57]line НДС 12% : 212.42 [09:27:57]line Наличными: 2000.00 [09:27:57]line Безнал.: 0.00 [09:27:57]line Место: АЗС № 78 "Партнер Нефть" [09:27:57]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [09:27:57]line СНО: Общий режим [09:27:57]line Чек 45 20.10.2024 09:28 [09:27:57]line Смена: 114 ФФД: 1.0 [09:27:57]line ЗНМ: 0300000137 [09:27:57]line РНМ: 0000000000186857 [09:27:57]line Версия ККМ: v1.0 [09:27:57]line ФМ: 0000000002094219 [09:27:57]line ФД: 30263 [09:27:57]line ФПД: 7196965937595 [09:27:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T092803&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30263&fm=7196965937595&tin=02508201610067®Number=0000000000186857&sum=200000 [09:27:57]written 0, free lines is 4095 [09:27:57]OFD Sender: Processing packet 30263 [packets to send 10, broken 9] [09:27:57]ProducePacketName [09:27:57]name=ofd_packets/00030263 [09:27:57]OFD Sender: To server: pG, [09:27:57]CommunicateWithHost lk.salyk.kg:30040 [09:27:57]ConnectInit lk.salyk.kg [09:27:57]Connected sock=9 [09:27: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 BB B8 04 01 1E 1C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 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 2D 00 00 00 F4 03 04 00 23 CD 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 06 8B AC 99 21 BB 27 23 50 06 61 19 E9 63 [09:27: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 0F 7E 47 00 81 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 37 76 00 00 F4 03 04 00 A8 77 14 67 B6 04 01 00 00 71 6E CE 87 A5 C7 E1 83 [09:27:57]CommunicateWithHost err = 0 [09:27:57]CheckOFDResponse [09:27:57]1017 (14) - 77093643461234 [09:27:57]1041 (16) - 0000000002094219 [09:27:57]1040 (4) - 30263 [09:27:57]1012 (4) - 20.10.2024 03:23 [09:27:57]1206 (1) - 0 [09:27:57]OFD Sender: Remove packet 30263 [09:27:57]ProducePacketName [09:27:57]name=ofd_packets/00030263 [09:27:57]NVStorageDeleteData [09:27:57]Write to MH i2c: 01 00 00 8F 6E FD [09:27:57]Write i2c OK [09:27:57]MH_I2C_Read... [09:27:57]Read from MH i2c: 01 [09:27:57]MH_I2C_Read... [09:27:57]Read from MH i2c: 01 07 00 [09:27:57]MH_I2C_Read... [09:27:57]Read from MH i2c: 01 07 00 8F 6E 00 00 00 00 00 E7 0C F7 [09:27:57]RasterBufferAndPrint [09:27:57]line [09:27:57]line [09:27:57]line [09:27:57]line [09:27:57]line [09:27:57]written 0, free lines is 3318 [09:27:57]MH_Cut [09:27:57]Write to MH i2c: D1 01 00 96 6E 01 D6 [09:27:57]Write i2c OK [09:27:57]MH_I2C_Read... [09:27:57]Read from MH i2c: D1 [09:27:57]MH_I2C_Read... [09:27:57]Read from MH i2c: D1 01 00 [09:27:57]MH_I2C_Read... [09:27:57]Read from MH i2c: D1 01 00 96 6E 00 D5 [09:27:57]Write to MH i2c: 01 00 00 97 6E 05 [09:27:57]Write i2c OK [09:27:57]MH_I2C_Read... [09:27:57]OFD Sender: No OFD packet to send [09:27:58]*** Cut start [09:27:58]*** Partial cut [09:27:58]*** CUTSNS_PIN = 1 [09:27:58]*** CUTSNS_PIN = 0 [09:27:58]*** Brake cut motor [09:27:58]Read from MH i2c: 01 [09:27:58]MH_I2C_Read... [09:27:58]*** Stop cut motor [09:27:58]*** Cut end [09:27:58]Read from MH i2c: 01 07 00 [09:27:58]MH_I2C_Read... [09:27:58]Read from MH i2c: 01 07 00 97 6E 00 00 00 00 00 FF 0F 1A [09:27:58]process_action close_receipt done [09:27:58]requested_data is exist [09:27:58]produce_requested_data [09:27:58]requested_item fm.sn is exist - process it [09:27:58]wFMCommunicate request_size=4 [09:27:58]MH_SAM_APDU [09:27:58]CAPDU: 80 11 00 00 [09:27:58]Write to MH i2c: E2 08 00 98 6E 80 11 00 00 00 00 00 00 80 [09:27:58]Write i2c OK [09:27:58]MH_I2C_Read... [09:27:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:27:58]Read from MH i2c: E2 [09:27:58]MH_I2C_Read... [09:27:58]Read from MH i2c: E2 17 00 [09:27:58]MH_I2C_Read... [09:27:58]Read from MH i2c: E2 17 00 98 6E 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: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 [09:27:58]wFMCommunicate OK [09:27:58]requested_item fd.num is exist - process it [09:27:58]SAM_PROTO_GetFieldsCounters [09:27:58]wFMCommunicate request_size=4 [09:27:58]MH_SAM_APDU [09:27:58]CAPDU: 80 13 00 00 [09:27:58]Write to MH i2c: E2 08 00 99 6E 80 13 00 00 00 00 00 00 83 [09:27:58]Write i2c OK [09:27:58]MH_I2C_Read... [09:27:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:27:59]Read from MH i2c: E2 [09:27:59]MH_I2C_Read... [09:27:59]Read from MH i2c: E2 62 00 [09:27:59]MH_I2C_Read... [09:27:59]Read from MH i2c: E2 62 00 99 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 37 76 00 00 0E 04 04 00 72 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 4F [09:27: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 37 76 00 00 0E 04 04 00 72 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:27:59]wFMCommunicate OK [09:27:59]SAM_PROTO_GetFieldsCounters done [09:27:59]requested_item shift.num is exist - process it [09:27:59]requested_item shift.opened is exist - process it [09:27:59]req_shift_opened [09:27:59]FM_GetShiftState [09:27:59]SAM_PROTO_GetShiftState [09:27:59]wFMCommunicate request_size=4 [09:27:59]MH_SAM_APDU [09:27:59]CAPDU: 80 13 01 00 [09:27:59]Write to MH i2c: E2 08 00 9A 6E 80 13 01 00 00 00 00 00 85 [09:27:59]Write i2c OK [09:27:59]MH_I2C_Read... [09:27:59]Read from MH i2c: E2 [09:27:59]MH_I2C_Read... [09:27:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:27:59]Read from MH i2c: E2 0E 00 [09:27:59]MH_I2C_Read... [09:27:59]Read from MH i2c: E2 0E 00 9A 6E 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 6B [09:27:59]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [09:27:59]wFMCommunicate OK [09:27:59]SAM_PROTO_GetShiftState done [09:27:59]FM_GetShiftState done [09:27:59]req_shift_opened done [09:27:59]requested_item shift.open_date is exist - process it [09:27:59]req_shift_open_date [09:27:59]req_shift_open_date done [09:27:59]produce_requested_data done [09:27:59]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30263,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [09:27:59]process_action_free close_receipt [09:27:59]json_value_free [09:27:59]json_value_free done [09:27:59]process_json_proto returns [09:27:59]Send response to host [09:27:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30263,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [09:27:59]free response buf [09:27:59]execute_script done [09:27:59]execute_script returns [09:27:59]free content buf [09:27:59]Sock 10.Close socket [09:27:59]Sock 10.Thread stoped [09:28:02]OFD Sender: No OFD packet to send [09:28:07]OFD Sender: No OFD packet to send [09:28:12]OFD Sender: No OFD packet to send [09:28:18]OFD Sender: No OFD packet to send [09:28:23]OFD Sender: No OFD packet to send [09:28:28]OFD Sender: No OFD packet to send [09:28:33]OFD Sender: No OFD packet to send [09:28:38]OFD Sender: No OFD packet to send [09:28:43]OFD Sender: No OFD packet to send [09:28:48]OFD Sender: No OFD packet to send [09:28:53]OFD Sender: No OFD packet to send [09:28:58]OFD Sender: No OFD packet to send [09:29:03]OFD Sender: No OFD packet to send [09:29:08]OFD Sender: No OFD packet to send [09:29:13]OFD Sender: No OFD packet to send [09:29:18]OFD Sender: No OFD packet to send [09:29:23]OFD Sender: No OFD packet to send [09:29:28]OFD Sender: No OFD packet to send [09:29:33]OFD Sender: No OFD packet to send [09:29:38]OFD Sender: No OFD packet to send [09:29:43]OFD Sender: No OFD packet to send [09:29:48]OFD Sender: No OFD packet to send [09:29:53]OFD Sender: No OFD packet to send [09:29:58]OFD Sender: No OFD packet to send [09:30:03]OFD Sender: No OFD packet to send [09:30:07]recv_with_timeout no data received [09:30:08]OFD Sender: No OFD packet to send [09:30:13]OFD Sender: No OFD packet to send [09:30:18]OFD Sender: No OFD packet to send [09:30:23]OFD Sender: No OFD packet to send [09:30:28]OFD Sender: No OFD packet to send [09:30:33]OFD Sender: No OFD packet to send [09:30:38]OFD Sender: No OFD packet to send [09:30:43]OFD Sender: No OFD packet to send [09:30:48]OFD Sender: No OFD packet to send [09:30:53]OFD Sender: No OFD packet to send [09:30:58]OFD Sender: No OFD packet to send [09:31:03]OFD Sender: No OFD packet to send [09:31:08]OFD Sender: No OFD packet to send [09:31:13]OFD Sender: No OFD packet to send [09:31:18]OFD Sender: No OFD packet to send [09:31:23]OFD Sender: No OFD packet to send [09:31:28]OFD Sender: No OFD packet to send [09:31:33]OFD Sender: No OFD packet to send [09:31:38]OFD Sender: No OFD packet to send [09:31:43]OFD Sender: No OFD packet to send [09:31:48]OFD Sender: No OFD packet to send [09:31:53]OFD Sender: No OFD packet to send [09:31:58]OFD Sender: No OFD packet to send [09:32:03]OFD Sender: No OFD packet to send [09:32:08]OFD Sender: No OFD packet to send [09:32:13]OFD Sender: No OFD packet to send [09:32:18]OFD Sender: No OFD packet to send [09:32:23]OFD Sender: No OFD packet to send [09:32:28]OFD Sender: No OFD packet to send [09:32:33]OFD Sender: No OFD packet to send [09:32:38]OFD Sender: No OFD packet to send [09:32:43]OFD Sender: No OFD packet to send [09:32:48]OFD Sender: No OFD packet to send [09:32:53]OFD Sender: No OFD packet to send [09:32:58]OFD Sender: No OFD packet to send [09:33:03]OFD Sender: No OFD packet to send [09:33:08]OFD Sender: No OFD packet to send [09:33:13]OFD Sender: No OFD packet to send [09:33:18]OFD Sender: No OFD packet to send [09:33:23]OFD Sender: No OFD packet to send [09:33:28]OFD Sender: No OFD packet to send [09:33:33]OFD Sender: No OFD packet to send [09:33:38]OFD Sender: No OFD packet to send [09:33:43]OFD Sender: No OFD packet to send [09:33:48]OFD Sender: No OFD packet to send [09:33:53]OFD Sender: No OFD packet to send [09:33:58]OFD Sender: No OFD packet to send [09:34:03]OFD Sender: No OFD packet to send [09:34:08]OFD Sender: No OFD packet to send [09:34:13]OFD Sender: No OFD packet to send [09:34:18]OFD Sender: No OFD packet to send [09:34:23]OFD Sender: No OFD packet to send [09:34:28]OFD Sender: No OFD packet to send [09:34:33]OFD Sender: No OFD packet to send [09:34:38]OFD Sender: No OFD packet to send [09:34:43]OFD Sender: No OFD packet to send [09:34:48]OFD Sender: No OFD packet to send [09:34:53]OFD Sender: No OFD packet to send [09:34:58]OFD Sender: No OFD packet to send [09:35:03]OFD Sender: No OFD packet to send [09:35:08]OFD Sender: No OFD packet to send [09:35:13]OFD Sender: No OFD packet to send [09:35:18]OFD Sender: No OFD packet to send [09:35:23]OFD Sender: No OFD packet to send [09:35:28]OFD Sender: No OFD packet to send [09:35:33]OFD Sender: No OFD packet to send [09:35:38]OFD Sender: No OFD packet to send [09:35:43]OFD Sender: No OFD packet to send [09:35:48]OFD Sender: No OFD packet to send [09:35:53]OFD Sender: No OFD packet to send [09:35:58]OFD Sender: No OFD packet to send [09:36:03]OFD Sender: No OFD packet to send [09:36:08]OFD Sender: No OFD packet to send [09:36:13]OFD Sender: No OFD packet to send [09:36:18]OFD Sender: No OFD packet to send [09:36:23]OFD Sender: No OFD packet to send [09:36:28]OFD Sender: No OFD packet to send [09:36:33]OFD Sender: No OFD packet to send [09:36:38]OFD Sender: No OFD packet to send [09:36:43]OFD Sender: No OFD packet to send [09:36:48]OFD Sender: No OFD packet to send [09:36:53]OFD Sender: No OFD packet to send [09:36:58]OFD Sender: No OFD packet to send [09:37:03]OFD Sender: No OFD packet to send [09:37:08]OFD Sender: No OFD packet to send [09:37:13]OFD Sender: No OFD packet to send [09:37:18]OFD Sender: No OFD packet to send [09:37:23]OFD Sender: No OFD packet to send [09:37:28]OFD Sender: No OFD packet to send [09:37:33]OFD Sender: No OFD packet to send [09:37:38]OFD Sender: No OFD packet to send [09:37:43]OFD Sender: No OFD packet to send [09:37:48]OFD Sender: No OFD packet to send [09:37:53]OFD Sender: No OFD packet to send [09:37:58]OFD Sender: No OFD packet to send [09:38:03]OFD Sender: No OFD packet to send [09:38:08]OFD Sender: No OFD packet to send [09:38:13]OFD Sender: No OFD packet to send [09:38:18]accept exits with 7 [09:38:18]New connection [09:38:18]New thread 3067514212 created [09:38:18]Thread 3067370852 joined [09:38:18]Waiting for new connection... [09:38:18] Sock 7.Parse request [09:38:18]Sock 7.Check first char [09:38:18]Sock 7.First char is OK [09:38:18]request: POST /json_proto HTTP/1.0 [09:38:18]Method: POST [09:38:18]URL: /json_proto [09:38:18]Method is POST - this is cgi request [09:38:18]url: /json_proto [09:38:18]query_string will be loaded in cgi processing [09:38:18]execute_cgi json_proto POST (null) [09:38:18]execute_cgi path=json_proto method=POST [09:38:18]POST find Content-Length [09:38:18]Host: 172.17.51.3:8080 [09:38:18]Content-Length: 677 [09:38:18]Content-Type: application/json [09:38:18] [09:38:18]POST finish read [09:38:18]Found Content-Length = 677 [09:38:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342655", "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" ] } } [09:38:18]execute_script... [09:38: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)342655", "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" ] } } [09:38:18]POST & json_proto [09:38:18]process_json_proto [09:38:18]json parsed OK: [09:38:18]protocol is kg_v1.0 [09:38:18]action value=close_receipt [09:38:18]process_action close_receipt [09:38:18]cmd_close_receipt [09:38:18]MH_GetDate [09:38:18]Write to MH i2c: F0 00 00 9B 6E F8 [09:38:18]Write i2c OK [09:38:18]MH_I2C_Read... [09:38:18]Read from MH i2c: F0 [09:38:18]MH_I2C_Read... [09:38:18]Read from MH i2c: F0 09 00 [09:38:18]MH_I2C_Read... [09:38:18]Read from MH i2c: F0 09 00 9B 6E 00 92 CF 14 67 04 C1 95 66 9D [09:38:18]GetLastDocTimeStamp 1729416483 [09:38:18]current date 1729417106 [09:38:18]FM_GetShiftState [09:38:18]SAM_PROTO_GetShiftState [09:38:18]wFMCommunicate request_size=4 [09:38:18]MH_SAM_APDU [09:38:18]CAPDU: 80 13 01 00 [09:38:18]Write to MH i2c: E2 08 00 9C 6E 80 13 01 00 00 00 00 00 87 [09:38:18]Write i2c OK [09:38:18]MH_I2C_Read... [09:38:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:38:18]Read from MH i2c: E2 [09:38:18]MH_I2C_Read... [09:38:18]Read from MH i2c: E2 0E 00 [09:38:18]MH_I2C_Read... [09:38:18]Read from MH i2c: E2 0E 00 9C 6E 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 6D [09:38:18]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [09:38:18]wFMCommunicate OK [09:38:18]SAM_PROTO_GetShiftState done [09:38:18]FM_GetShiftState done [09:38:18]opened in 1729384718 [09:38:18]opened+sec_in_day 1729471118 [09:38:18]quantity*price = 50041 [09:38:18]sum+1 = 50042 [09:38: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 СНО: Общий режим Чек 46 20.10.2024 09:38 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30264 ФПД: 211338106330485 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T093826&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30264&fm=211338106330485&tin=02508201610067®Number=0000000000186857&sum=50000 [09:38:19]StoreToDocumentArchive [09:38:19]shift 114 fd 30264 [09:38:19]save to /storage/0114/doc_00030264 [09:38:19]save last doc name /storage/0114/doc_00030264 to /storage/kkm_last_doc_name [09:38:19]save OK [09:38:19]Clear old archive folders... [09:38:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:38:19]tlvbuf is 00CD63E0 [09:38:19]SAM_PROTO_ClearQueue [09:38:19]wFMCommunicate request_size=4 [09:38:19]MH_SAM_APDU [09:38:19]CAPDU: 80 09 00 00 [09:38:19]Write to MH i2c: E2 08 00 A9 6E 80 09 00 00 00 00 00 00 89 [09:38:19]Write i2c OK [09:38:19]MH_I2C_Read... [09:38:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:38:19]Read from MH i2c: E2 [09:38:19]MH_I2C_Read... [09:38:19]Read from MH i2c: E2 03 00 [09:38:19]MH_I2C_Read... [09:38:19]Read from MH i2c: E2 03 00 A9 6E 00 90 00 8B [09:38:19]RAPDU: 90 00 [09:38:19]wFMCommunicate OK [09:38:19]SAM_PROTO_ClearQueue done [09:38:19]KKMCreateOFDPacket [09:38:19]OFDProtocolAddRootSTLVToBuf [09:38:19]FM_MakeSignedData [09:38:19]FM_MakeSignedData [09:38:19]SAM_PROTO_SignData [09:38:19]wFMCommunicate request_size=4 [09:38:19]MH_SAM_APDU [09:38:19]CAPDU: 80 0D 01 02 [09:38:19]Write to MH i2c: E2 08 00 AA 6E 80 0D 01 02 00 00 00 00 91 [09:38:19]Write i2c OK [09:38:19]MH_I2C_Read... [09:38:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:38:19]Read from MH i2c: E2 [09:38:19]MH_I2C_Read... [09:38:19]Read from MH i2c: E2 03 00 [09:38:19]MH_I2C_Read... [09:38:19]Read from MH i2c: E2 03 00 AA 6E 00 90 00 8C [09:38:19]RAPDU: 90 00 [09:38:19]wFMCommunicate OK [09:38:19]wFMCommunicate request_size=255 [09:38:19]MH_SAM_APDU [09:38: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 2E 00 00 00 F4 03 04 00 92 CF 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 C0 [09:38:19]Write to MH i2c: E2 02 01 AB 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 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 2E 00 00 00 F4 03 04 00 92 CF 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 C0 00 00 0C [09:38:19]Write i2c OK [09:38:19]MH_I2C_Read... [09:38:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:38:19]Read from MH i2c: E2 [09:38:19]MH_I2C_Read... [09:38:19]Read from MH i2c: E2 03 00 [09:38:19]MH_I2C_Read... [09:38:19]Read from MH i2c: E2 03 00 AB 6E 00 90 00 8D [09:38:19]RAPDU: 90 00 [09:38:19]wFMCommunicate OK [09:38:19]wFMCommunicate request_size=10 [09:38:19]MH_SAM_APDU [09:38:19]CAPDU: 80 0D 02 02 05 35 FC C1 5D 75 [09:38:19]Write to MH i2c: E2 0D 00 AC 6E 80 0D 02 02 05 00 35 FC C1 5D 75 00 00 62 [09:38:19]Write i2c OK [09:38:19]MH_I2C_Read... [09:38:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:38:19]Read from MH i2c: E2 [09:38:19]MH_I2C_Read... [09:38:19]Read from MH i2c: E2 03 00 [09:38:19]MH_I2C_Read... [09:38:19]Read from MH i2c: E2 03 00 AC 6E 00 90 00 8E [09:38:19]RAPDU: 90 00 [09:38:19]wFMCommunicate OK [09:38:19]wFMCommunicate request_size=4 [09:38:19]MH_SAM_APDU [09:38:19]CAPDU: 80 0D 03 02 [09:38:19]Write to MH i2c: E2 08 00 AD 6E 80 0D 03 02 00 00 00 00 96 [09:38:19]Write i2c OK [09:38:19]MH_I2C_Read... [09:38:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:38:19]Read from MH i2c: E2 [09:38:19]MH_I2C_Read... [09:38:19]Read from MH i2c: E2 0B 00 [09:38:19]MH_I2C_Read... [09:38:19]Read from MH i2c: E2 0B 00 AD 6E 00 45 8C FE 88 DA 78 1F F8 90 00 57 [09:38:19]RAPDU: 45 8C FE 88 DA 78 1F F8 90 00 [09:38:19]wFMCommunicate OK [09:38:19]SAM_PROTO_SignData done [09:38:19]FM_MakeSignedData done [09:38:19]CreateOFDProtocolMessage [09:38:19]wFMCommunicate request_size=4 [09:38:19]MH_SAM_APDU [09:38:19]CAPDU: 80 11 00 00 [09:38:19]Write to MH i2c: E2 08 00 AE 6E 80 11 00 00 00 00 00 00 96 [09:38:19]Write i2c OK [09:38:19]MH_I2C_Read... [09:38:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:38:19]Read from MH i2c: E2 [09:38:19]MH_I2C_Read... [09:38:19]Read from MH i2c: E2 17 00 [09:38:19]MH_I2C_Read... [09:38:19]Read from MH i2c: E2 17 00 AE 6E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 E4 [09:38: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:38:19]wFMCommunicate OK [09:38:19]CreateOFDProtocolMessage done [09:38:19]OFDSenderStorePacket 30264 [09:38:19]StoreOFDPacket docnum=30264 [09:38: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 F9 8D 07 01 40 AF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 2E 00 00 00 F4 03 04 00 92 CF 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 C0 35 FC C1 5D 75 45 8C FE 88 DA 78 1F F8 [09:38:19]CheckFolder [09:38:19]dirname=/storage/ofd_packets [09:38:19]CheckFolder done [09:38:19]ProducePacketName [09:38:19]name=ofd_packets/00030264 [09:38:19]NVStorageSaveData ofd_packets/00030264 [09:38:19]File name is /storage/ofd_packets/00030264 [09:38:19]Write 301 bytes [09:38:19]NVStorageSaveData done [09:38:19]OFDSenderStorePacket done [09:38:19]KKMCreateOFDPacket done [09:38:19]NVStorageSaveData kkm_last_timestamp [09:38:19]File name is /storage/kkm_last_timestamp [09:38:19]Write 4 bytes [09:38:19]NVStorageSaveData done [09:38:19]ExternCall_PrintAddStr [09:38:19]wPrintStart [09:38:19]Write to MH i2c: 01 00 00 AF 6E 1D [09:38:19]Write i2c OK [09:38:19]MH_I2C_Read... [09:38:19]Read from MH i2c: 01 [09:38:19]MH_I2C_Read... [09:38:19]Read from MH i2c: 01 07 00 [09:38:19]MH_I2C_Read... [09:38:19]Read from MH i2c: 01 07 00 AF 6E 00 00 00 00 00 FF 0F 32 [09:38:19]RasterBufferAndPrint [09:38:19]line Счет N : (1)342655 [09:38:19]line ИНН: 02508201610067 [09:38:19]line Контрольно-Кассовый Чек [09:38:19]line ПРОДАЖА [09:38:19]line ТРК (МРК, ГНК) : 33 [09:38:19]line Товар: 2710124130 [09:38:19]line Аи-92-К-2 [09:38:19]line 7.480 * 66.90 [09:38:19]line = 500.41 [09:38:19]line НДС 12% НСП 1% [09:38:19]line > о реализуемом товаре [09:38:19]line ОКРУГЛЕНИЕ: -0.41 [09:38:19]line ИТОГО: 500.00 [09:38:19]line Внесено: 500.00 [09:38:19]line СДАЧА: 0.00 [09:38:19]line НСП 1% : 4.43 [09:38:19]line НДС 12% : 53.14 [09:38:19]line Наличными: 500.00 [09:38:19]line Безнал.: 0.00 [09:38:19]line Место: АЗС № 78 "Партнер Нефть" [09:38:19]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [09:38:19]line СНО: Общий режим [09:38:19]line Чек 46 20.10.2024 09:38 [09:38:19]line Смена: 114 ФФД: 1.0 [09:38:19]line ЗНМ: 0300000137 [09:38:19]line РНМ: 0000000000186857 [09:38:19]line Версия ККМ: v1.0 [09:38:19]line ФМ: 0000000002094219 [09:38:19]line ФД: 30264 [09:38:19]line ФПД: 211338106330485 [09:38:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T093826&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30264&fm=211338106330485&tin=02508201610067®Number=0000000000186857&sum=50000 [09:38:20]OFD Sender: Processing packet 30264 [packets to send 10, broken 9] [09:38:20]ProducePacketName [09:38:20]name=ofd_packets/00030264 [09:38:20]OFD Sender: To server: pG, [09:38:20]CommunicateWithHost lk.salyk.kg:30040 [09:38:20]ConnectInit lk.salyk.kg [09:38:20]written 0, free lines is 4095 [09:38:20]Connected sock=10 [09:38: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 F9 8D 07 01 40 AF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 2E 00 00 00 F4 03 04 00 92 CF 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 C0 35 FC C1 5D 75 45 8C FE 88 DA 78 1F F8 [09:38: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 65 60 47 00 18 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 38 76 00 00 F4 03 04 00 17 7A 14 67 B6 04 01 00 00 6F 9E C7 F4 31 9E 94 C1 [09:38:20]CommunicateWithHost err = 0 [09:38:20]CheckOFDResponse [09:38:20]1017 (14) - 77093643461234 [09:38:20]1041 (16) - 0000000002094219 [09:38:20]1040 (4) - 30264 [09:38:20]1012 (4) - 20.10.2024 03:33 [09:38:20]1206 (1) - 0 [09:38:20]OFD Sender: Remove packet 30264 [09:38:20]ProducePacketName [09:38:20]name=ofd_packets/00030264 [09:38:20]NVStorageDeleteData [09:38:20]Write to MH i2c: 01 00 00 DA 6E 48 [09:38:20]Write i2c OK [09:38:20]MH_I2C_Read... [09:38:20]Read from MH i2c: 01 [09:38:20]MH_I2C_Read... [09:38:20]Read from MH i2c: 01 07 00 [09:38:20]MH_I2C_Read... [09:38:20]Read from MH i2c: 01 07 00 DA 6E 00 00 00 00 00 F4 0C 4F [09:38:20]RasterBufferAndPrint [09:38:20]line [09:38:20]line [09:38:20]line [09:38:20]line [09:38:20]line [09:38:20]written 0, free lines is 3322 [09:38:20]MH_Cut [09:38:20]Write to MH i2c: D1 01 00 E1 6E 01 21 [09:38:20]Write i2c OK [09:38:20]MH_I2C_Read... [09:38:20]Read from MH i2c: D1 [09:38:20]MH_I2C_Read... [09:38:20]Read from MH i2c: D1 01 00 [09:38:20]MH_I2C_Read... [09:38:20]Read from MH i2c: D1 01 00 E1 6E 00 20 [09:38:20]Write to MH i2c: 01 00 00 E2 6E 50 [09:38:20]Write i2c OK [09:38:20]MH_I2C_Read... [09:38:21]OFD Sender: No OFD packet to send [09:38:21]*** Cut start [09:38:21]*** Partial cut [09:38:21]*** CUTSNS_PIN = 1 [09:38:21]*** CUTSNS_PIN = 0 [09:38:21]*** Brake cut motor [09:38:21]Read from MH i2c: 01 [09:38:21]MH_I2C_Read... [09:38:21]*** Stop cut motor [09:38:21]*** Cut end [09:38:21]Read from MH i2c: 01 07 00 [09:38:21]MH_I2C_Read... [09:38:21]Read from MH i2c: 01 07 00 E2 6E 00 00 00 00 00 FF 0F 65 [09:38:21]process_action close_receipt done [09:38:21]requested_data is exist [09:38:21]produce_requested_data [09:38:21]requested_item fm.sn is exist - process it [09:38:21]wFMCommunicate request_size=4 [09:38:21]MH_SAM_APDU [09:38:21]CAPDU: 80 11 00 00 [09:38:21]Write to MH i2c: E2 08 00 E3 6E 80 11 00 00 00 00 00 00 CB [09:38:21]Write i2c OK [09:38:21]MH_I2C_Read... [09:38:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:38:22]Read from MH i2c: E2 [09:38:22]MH_I2C_Read... [09:38:22]Read from MH i2c: E2 17 00 [09:38:22]MH_I2C_Read... [09:38:22]Read from MH i2c: E2 17 00 E3 6E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 19 [09:38:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [09:38:22]wFMCommunicate OK [09:38:22]requested_item fd.num is exist - process it [09:38:22]SAM_PROTO_GetFieldsCounters [09:38:22]wFMCommunicate request_size=4 [09:38:22]MH_SAM_APDU [09:38:22]CAPDU: 80 13 00 00 [09:38:22]Write to MH i2c: E2 08 00 E4 6E 80 13 00 00 00 00 00 00 CE [09:38:22]Write i2c OK [09:38:22]MH_I2C_Read... [09:38:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:38:22]Read from MH i2c: E2 [09:38:22]MH_I2C_Read... [09:38:22]Read from MH i2c: E2 62 00 [09:38:22]MH_I2C_Read... [09:38:22]Read from MH i2c: E2 62 00 E4 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 38 76 00 00 0E 04 04 00 72 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 9E [09:38: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 38 76 00 00 0E 04 04 00 72 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:38:22]wFMCommunicate OK [09:38:22]SAM_PROTO_GetFieldsCounters done [09:38:22]requested_item shift.num is exist - process it [09:38:22]requested_item shift.opened is exist - process it [09:38:22]req_shift_opened [09:38:22]FM_GetShiftState [09:38:22]SAM_PROTO_GetShiftState [09:38:22]wFMCommunicate request_size=4 [09:38:22]MH_SAM_APDU [09:38:22]CAPDU: 80 13 01 00 [09:38:22]Write to MH i2c: E2 08 00 E5 6E 80 13 01 00 00 00 00 00 D0 [09:38:22]Write i2c OK [09:38:22]MH_I2C_Read... [09:38:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:38:22]Read from MH i2c: E2 [09:38:22]MH_I2C_Read... [09:38:22]Read from MH i2c: E2 0E 00 [09:38:22]MH_I2C_Read... [09:38:22]Read from MH i2c: E2 0E 00 E5 6E 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 B6 [09:38:22]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [09:38:22]wFMCommunicate OK [09:38:22]SAM_PROTO_GetShiftState done [09:38:22]FM_GetShiftState done [09:38:22]req_shift_opened done [09:38:22]requested_item shift.open_date is exist - process it [09:38:22]req_shift_open_date [09:38:22]req_shift_open_date done [09:38:22]produce_requested_data done [09:38:22]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30264,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [09:38:22]process_action_free close_receipt [09:38:22]json_value_free [09:38:22]json_value_free done [09:38:22]process_json_proto returns [09:38:22]Send response to host [09:38:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30264,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [09:38:22]free response buf [09:38:22]execute_script done [09:38:22]execute_script returns [09:38:22]free content buf [09:38:22]Sock 7.Close socket [09:38:22]Sock 7.Thread stoped [09:38:26]OFD Sender: No OFD packet to send [09:38:31]OFD Sender: No OFD packet to send [09:38:36]OFD Sender: No OFD packet to send [09:38:41]OFD Sender: No OFD packet to send [09:38:46]OFD Sender: No OFD packet to send [09:38:51]OFD Sender: No OFD packet to send [09:38:56]OFD Sender: No OFD packet to send [09:39:01]OFD Sender: No OFD packet to send [09:39:06]OFD Sender: No OFD packet to send [09:39:11]OFD Sender: No OFD packet to send [09:39:16]OFD Sender: No OFD packet to send [09:39:21]OFD Sender: No OFD packet to send [09:39:26]OFD Sender: No OFD packet to send [09:39:31]OFD Sender: No OFD packet to send [09:39:36]OFD Sender: No OFD packet to send [09:39:41]OFD Sender: No OFD packet to send [09:39:46]OFD Sender: No OFD packet to send [09:39:51]OFD Sender: No OFD packet to send [09:39:56]OFD Sender: No OFD packet to send [09:40:01]OFD Sender: No OFD packet to send [09:40:06]OFD Sender: No OFD packet to send [09:40:11]OFD Sender: No OFD packet to send [09:40:16]OFD Sender: No OFD packet to send [09:40:21]OFD Sender: No OFD packet to send [09:40:26]OFD Sender: No OFD packet to send [09:40:31]OFD Sender: No OFD packet to send [09:40:36]OFD Sender: No OFD packet to send [09:40:41]OFD Sender: No OFD packet to send [09:40:46]OFD Sender: No OFD packet to send [09:40:51]OFD Sender: No OFD packet to send [09:40:56]OFD Sender: No OFD packet to send [09:41:01]OFD Sender: No OFD packet to send [09:41:06]OFD Sender: No OFD packet to send [09:41:11]OFD Sender: No OFD packet to send [09:41:16]OFD Sender: No OFD packet to send [09:41:21]OFD Sender: No OFD packet to send [09:41:26]OFD Sender: No OFD packet to send [09:41:31]OFD Sender: No OFD packet to send [09:41:36]OFD Sender: No OFD packet to send [09:41:41]OFD Sender: No OFD packet to send [09:41:46]OFD Sender: No OFD packet to send [09:41:51]OFD Sender: No OFD packet to send [09:41:56]OFD Sender: No OFD packet to send [09:42:01]OFD Sender: No OFD packet to send [09:42:06]OFD Sender: No OFD packet to send [09:42:11]OFD Sender: No OFD packet to send [09:42:16]OFD Sender: No OFD packet to send [09:42:21]OFD Sender: No OFD packet to send [09:42:26]OFD Sender: No OFD packet to send [09:42:31]OFD Sender: No OFD packet to send [09:42:36]OFD Sender: No OFD packet to send [09:42:41]OFD Sender: No OFD packet to send [09:42:46]OFD Sender: No OFD packet to send [09:42:51]OFD Sender: No OFD packet to send [09:42:56]OFD Sender: No OFD packet to send [09:43:01]OFD Sender: No OFD packet to send [09:43:06]OFD Sender: No OFD packet to send [09:43:11]OFD Sender: No OFD packet to send [09:43:16]OFD Sender: No OFD packet to send [09:43:21]OFD Sender: No OFD packet to send [09:43:26]OFD Sender: No OFD packet to send [09:43:31]OFD Sender: No OFD packet to send [09:43:36]accept exits with 9 [09:43:36]New connection [09:43:36]New thread 3067370852 created [09:43:36]Thread 3067514212 joined [09:43:36]Waiting for new connection... [09:43:36] Sock 9.Parse request [09:43:36]Sock 9.Check first char [09:43:36]Sock 9.First char is OK [09:43:36]request: POST /json_proto HTTP/1.0 [09:43:36]Method: POST [09:43:36]URL: /json_proto [09:43:36]Method is POST - this is cgi request [09:43:36]url: /json_proto [09:43:36]query_string will be loaded in cgi processing [09:43:36]execute_cgi json_proto POST (null) [09:43:36]execute_cgi path=json_proto method=POST [09:43:36]POST find Content-Length [09:43:36]Host: 172.17.51.3:8080 [09:43:36]Content-Length: 677 [09:43:36]Content-Type: application/json [09:43:36] [09:43:36]POST finish read [09:43:36]Found Content-Length = 677 [09:43:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342656", "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:43:36]execute_script... [09:43:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342656", "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:43:36]POST & json_proto [09:43:36]process_json_proto [09:43:36]json parsed OK: [09:43:36]protocol is kg_v1.0 [09:43:36]action value=close_receipt [09:43:36]process_action close_receipt [09:43:36]cmd_close_receipt [09:43:36]MH_GetDate [09:43:36]Write to MH i2c: F0 00 00 E6 6E 43 [09:43:36]Write i2c OK [09:43:36]MH_I2C_Read... [09:43:36]Read from MH i2c: F0 [09:43:36]MH_I2C_Read... [09:43:36]Read from MH i2c: F0 09 00 [09:43:36]MH_I2C_Read... [09:43:36]Read from MH i2c: F0 09 00 E6 6E 00 D0 D0 14 67 04 C1 95 66 27 [09:43:36]GetLastDocTimeStamp 1729417106 [09:43:36]current date 1729417424 [09:43:36]FM_GetShiftState [09:43:36]SAM_PROTO_GetShiftState [09:43:36]wFMCommunicate request_size=4 [09:43:36]MH_SAM_APDU [09:43:36]CAPDU: 80 13 01 00 [09:43:36]Write to MH i2c: E2 08 00 E7 6E 80 13 01 00 00 00 00 00 D2 [09:43:36]Write i2c OK [09:43:36]MH_I2C_Read... [09:43:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:43:36]Read from MH i2c: E2 [09:43:36]MH_I2C_Read... [09:43:36]Read from MH i2c: E2 0E 00 [09:43:36]MH_I2C_Read... [09:43:36]Read from MH i2c: E2 0E 00 E7 6E 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 B8 [09:43:36]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [09:43:36]wFMCommunicate OK [09:43:36]SAM_PROTO_GetShiftState done [09:43:36]FM_GetShiftState done [09:43:36]opened in 1729384718 [09:43:36]opened+sec_in_day 1729471118 [09:43:36]quantity*price = 20003 [09:43:36]sum+1 = 20004 [09:43: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 СНО: Общий режим Чек 47 20.10.2024 09:43 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30265 ФПД: 237586592590825 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T094344&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30265&fm=237586592590825&tin=02508201610067®Number=0000000000186857&sum=20000 [09:43:37]StoreToDocumentArchive [09:43:37]shift 114 fd 30265 [09:43:37]save to /storage/0114/doc_00030265 [09:43:37]save last doc name /storage/0114/doc_00030265 to /storage/kkm_last_doc_name [09:43:37]save OK [09:43:37]Clear old archive folders... [09:43:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:43:37]tlvbuf is 00BC9200 [09:43:37]SAM_PROTO_ClearQueue [09:43:37]wFMCommunicate request_size=4 [09:43:37]MH_SAM_APDU [09:43:37]CAPDU: 80 09 00 00 [09:43:37]Write to MH i2c: E2 08 00 F4 6E 80 09 00 00 00 00 00 00 D4 [09:43:37]Write i2c OK [09:43:37]MH_I2C_Read... [09:43:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:43:37]Read from MH i2c: E2 [09:43:37]MH_I2C_Read... [09:43:37]Read from MH i2c: E2 03 00 [09:43:37]MH_I2C_Read... [09:43:37]Read from MH i2c: E2 03 00 F4 6E 00 90 00 D6 [09:43:37]RAPDU: 90 00 [09:43:37]wFMCommunicate OK [09:43:37]SAM_PROTO_ClearQueue done [09:43:37]KKMCreateOFDPacket [09:43:37]OFDProtocolAddRootSTLVToBuf [09:43:37]FM_MakeSignedData [09:43:37]FM_MakeSignedData [09:43:37]SAM_PROTO_SignData [09:43:37]wFMCommunicate request_size=4 [09:43:37]MH_SAM_APDU [09:43:37]CAPDU: 80 0D 01 02 [09:43:37]Write to MH i2c: E2 08 00 F5 6E 80 0D 01 02 00 00 00 00 DC [09:43:37]Write i2c OK [09:43:37]MH_I2C_Read... [09:43:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:43:37]Read from MH i2c: E2 [09:43:37]MH_I2C_Read... [09:43:37]Read from MH i2c: E2 03 00 [09:43:37]MH_I2C_Read... [09:43:37]Read from MH i2c: E2 03 00 F5 6E 00 90 00 D7 [09:43:37]RAPDU: 90 00 [09:43:37]wFMCommunicate OK [09:43:37]wFMCommunicate request_size=255 [09:43:37]MH_SAM_APDU [09:43:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 2F 00 00 00 F4 03 04 00 D0 D0 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 D8 [09:43:37]Write to MH i2c: E2 02 01 F6 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 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 2F 00 00 00 F4 03 04 00 D0 D0 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 D8 00 00 72 [09:43:37]Write i2c OK [09:43:37]MH_I2C_Read... [09:43:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:43:37]Read from MH i2c: E2 [09:43:37]MH_I2C_Read... [09:43:37]Read from MH i2c: E2 03 00 [09:43:37]MH_I2C_Read... [09:43:37]Read from MH i2c: E2 03 00 F6 6E 00 90 00 D8 [09:43:37]RAPDU: 90 00 [09:43:37]wFMCommunicate OK [09:43:37]wFMCommunicate request_size=10 [09:43:37]MH_SAM_APDU [09:43:37]CAPDU: 80 0D 02 02 05 15 70 74 6B E9 [09:43:37]Write to MH i2c: E2 0D 00 F7 6E 80 0D 02 02 05 00 15 70 74 6B E9 00 00 36 [09:43:37]Write i2c OK [09:43:37]MH_I2C_Read... [09:43:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:43:37]Read from MH i2c: E2 [09:43:37]MH_I2C_Read... [09:43:37]Read from MH i2c: E2 03 00 [09:43:37]MH_I2C_Read... [09:43:37]Read from MH i2c: E2 03 00 F7 6E 00 90 00 D9 [09:43:37]RAPDU: 90 00 [09:43:37]wFMCommunicate OK [09:43:37]wFMCommunicate request_size=4 [09:43:37]MH_SAM_APDU [09:43:37]CAPDU: 80 0D 03 02 [09:43:37]Write to MH i2c: E2 08 00 F8 6E 80 0D 03 02 00 00 00 00 E1 [09:43:37]Write i2c OK [09:43:37]MH_I2C_Read... [09:43:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:43:37]Read from MH i2c: E2 [09:43:37]MH_I2C_Read... [09:43:37]Read from MH i2c: E2 0B 00 [09:43:37]MH_I2C_Read... [09:43:37]Read from MH i2c: E2 0B 00 F8 6E 00 AD B8 29 4C 1F F7 C2 8F 90 00 23 [09:43:37]RAPDU: AD B8 29 4C 1F F7 C2 8F 90 00 [09:43:37]wFMCommunicate OK [09:43:37]SAM_PROTO_SignData done [09:43:37]FM_MakeSignedData done [09:43:37]CreateOFDProtocolMessage [09:43:37]wFMCommunicate request_size=4 [09:43:37]MH_SAM_APDU [09:43:37]CAPDU: 80 11 00 00 [09:43:37]Write to MH i2c: E2 08 00 F9 6E 80 11 00 00 00 00 00 00 E1 [09:43:37]Write i2c OK [09:43:37]MH_I2C_Read... [09:43:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:43:37]Read from MH i2c: E2 [09:43:37]MH_I2C_Read... [09:43:37]Read from MH i2c: E2 17 00 [09:43:37]MH_I2C_Read... [09:43:37]Read from MH i2c: E2 17 00 F9 6E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 2F [09:43:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [09:43:37]wFMCommunicate OK [09:43:37]CreateOFDProtocolMessage done [09:43:37]OFDSenderStorePacket 30265 [09:43:37]StoreOFDPacket docnum=30265 [09:43: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 F9 07 01 EA 22 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 2F 00 00 00 F4 03 04 00 D0 D0 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 D8 15 70 74 6B E9 AD B8 29 4C 1F F7 C2 8F [09:43:37]CheckFolder [09:43:37]dirname=/storage/ofd_packets [09:43:37]CheckFolder done [09:43:37]ProducePacketName [09:43:37]name=ofd_packets/00030265 [09:43:37]NVStorageSaveData ofd_packets/00030265 [09:43:37]File name is /storage/ofd_packets/00030265 [09:43:37]Write 301 bytes [09:43:37]NVStorageSaveData done [09:43:37]OFDSenderStorePacket done [09:43:37]KKMCreateOFDPacket done [09:43:37]NVStorageSaveData kkm_last_timestamp [09:43:37]File name is /storage/kkm_last_timestamp [09:43:37]Write 4 bytes [09:43:37]NVStorageSaveData done [09:43:37]ExternCall_PrintAddStr [09:43:37]wPrintStart [09:43:37]Write to MH i2c: 01 00 00 FA 6E 68 [09:43:37]Write i2c OK [09:43:37]MH_I2C_Read... [09:43:37]Read from MH i2c: 01 [09:43:37]MH_I2C_Read... [09:43:37]Read from MH i2c: 01 07 00 [09:43:37]MH_I2C_Read... [09:43:37]Read from MH i2c: 01 07 00 FA 6E 00 00 00 00 00 FF 0F 7D [09:43:37]RasterBufferAndPrint [09:43:37]line Счет N : (1)342656 [09:43:37]line ИНН: 02508201610067 [09:43:37]line Контрольно-Кассовый Чек [09:43:37]line ПРОДАЖА [09:43:37]line ТРК (МРК, ГНК) : 63 [09:43:37]line Товар: 2710124130 [09:43:37]line Аи-92-К-2 [09:43:37]line 2.990 * 66.90 [09:43:37]line = 200.03 [09:43:37]line НДС 12% НСП 1% [09:43:37]line > о реализуемом товаре [09:43:37]line ОКРУГЛЕНИЕ: -0.03 [09:43:37]line ИТОГО: 200.00 [09:43:37]line Внесено: 200.00 [09:43:37]line СДАЧА: 0.00 [09:43:37]line НСП 1% : 1.77 [09:43:37]line НДС 12% : 21.24 [09:43:37]line Наличными: 200.00 [09:43:37]line Безнал.: 0.00 [09:43:37]line Место: АЗС № 78 "Партнер Нефть" [09:43:37]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [09:43:37]line СНО: Общий режим [09:43:37]line Чек 47 20.10.2024 09:43 [09:43:37]line Смена: 114 ФФД: 1.0 [09:43:37]line ЗНМ: 0300000137 [09:43:37]line РНМ: 0000000000186857 [09:43:37]line Версия ККМ: v1.0 [09:43:37]line ФМ: 0000000002094219 [09:43:37]line ФД: 30265 [09:43:37]line ФПД: 237586592590825 [09:43:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T094344&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30265&fm=237586592590825&tin=02508201610067®Number=0000000000186857&sum=20000 [09:43:38]OFD Sender: Processing packet 30265 [packets to send 10, broken 9] [09:43:38]ProducePacketName [09:43:38]name=ofd_packets/00030265 [09:43:38]OFD Sender: To server: pG, [09:43:38]CommunicateWithHost lk.salyk.kg:30040 [09:43:38]ConnectInit lk.salyk.kg [09:43:38]written 0, free lines is 4095 [09:43:38]Connected sock=11 [09:43: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 17 F9 07 01 EA 22 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 2F 00 00 00 F4 03 04 00 D0 D0 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 D8 15 70 74 6B E9 AD B8 29 4C 1F F7 C2 8F [09:43: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 63 B4 47 00 CD B7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 39 76 00 00 F4 03 04 00 55 7B 14 67 B6 04 01 00 00 16 11 67 22 4F 96 29 C1 [09:43:38]CommunicateWithHost err = 0 [09:43:38]CheckOFDResponse [09:43:38]1017 (14) - 77093643461234 [09:43:38]1041 (16) - 0000000002094219 [09:43:38]1040 (4) - 30265 [09:43:38]1012 (4) - 20.10.2024 03:39 [09:43:38]1206 (1) - 0 [09:43:38]OFD Sender: Remove packet 30265 [09:43:38]ProducePacketName [09:43:38]name=ofd_packets/00030265 [09:43:38]NVStorageDeleteData [09:43:38]Write to MH i2c: 01 00 00 25 6F 94 [09:43:38]Write i2c OK [09:43:38]MH_I2C_Read... [09:43:38]Read from MH i2c: 01 [09:43:38]MH_I2C_Read... [09:43:38]Read from MH i2c: 01 07 00 [09:43:38]MH_I2C_Read... [09:43:38]Read from MH i2c: 01 07 00 25 6F 00 00 00 00 00 E5 0C 8C [09:43:38]RasterBufferAndPrint [09:43:38]line [09:43:38]line [09:43:38]line [09:43:38]line [09:43:38]line [09:43:38]written 0, free lines is 3306 [09:43:38]MH_Cut [09:43:38]Write to MH i2c: D1 01 00 2C 6F 01 6D [09:43:38]Write i2c OK [09:43:38]MH_I2C_Read... [09:43:38]Read from MH i2c: D1 [09:43:38]MH_I2C_Read... [09:43:38]Read from MH i2c: D1 01 00 [09:43:38]MH_I2C_Read... [09:43:38]Read from MH i2c: D1 01 00 2C 6F 00 6C [09:43:38]Write to MH i2c: 01 00 00 2D 6F 9C [09:43:38]Write i2c OK [09:43:38]MH_I2C_Read... [09:43:38]OFD Sender: No OFD packet to send [09:43:39]*** Cut start [09:43:39]*** Partial cut [09:43:39]*** CUTSNS_PIN = 1 [09:43:39]*** CUTSNS_PIN = 0 [09:43:39]*** Brake cut motor [09:43:39]Read from MH i2c: 01 [09:43:39]MH_I2C_Read... [09:43:39]*** Stop cut motor [09:43:39]*** Cut end [09:43:39]Read from MH i2c: 01 07 00 [09:43:39]MH_I2C_Read... [09:43:39]Read from MH i2c: 01 07 00 2D 6F 00 00 00 00 00 FF 0F B1 [09:43:39]process_action close_receipt done [09:43:39]requested_data is exist [09:43:39]produce_requested_data [09:43:39]requested_item fm.sn is exist - process it [09:43:39]wFMCommunicate request_size=4 [09:43:39]MH_SAM_APDU [09:43:39]CAPDU: 80 11 00 00 [09:43:39]Write to MH i2c: E2 08 00 2E 6F 80 11 00 00 00 00 00 00 17 [09:43:39]Write i2c OK [09:43:39]MH_I2C_Read... [09:43:39]Read from MH i2c: E2 [09:43:39]MH_I2C_Read... [09:43:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:43:39]Read from MH i2c: E2 17 00 [09:43:39]MH_I2C_Read... [09:43:39]Read from MH i2c: E2 17 00 2E 6F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 65 [09:43:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [09:43:39]wFMCommunicate OK [09:43:39]requested_item fd.num is exist - process it [09:43:39]SAM_PROTO_GetFieldsCounters [09:43:39]wFMCommunicate request_size=4 [09:43:39]MH_SAM_APDU [09:43:39]CAPDU: 80 13 00 00 [09:43:39]Write to MH i2c: E2 08 00 2F 6F 80 13 00 00 00 00 00 00 1A [09:43:39]Write i2c OK [09:43:39]MH_I2C_Read... [09:43:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:43:40]Read from MH i2c: E2 [09:43:40]MH_I2C_Read... [09:43:40]Read from MH i2c: E2 62 00 [09:43:40]MH_I2C_Read... [09:43:40]Read from MH i2c: E2 62 00 2F 6F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 EE [09:43: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 39 76 00 00 0E 04 04 00 72 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:43:40]wFMCommunicate OK [09:43:40]SAM_PROTO_GetFieldsCounters done [09:43:40]requested_item shift.num is exist - process it [09:43:40]requested_item shift.opened is exist - process it [09:43:40]req_shift_opened [09:43:40]FM_GetShiftState [09:43:40]SAM_PROTO_GetShiftState [09:43:40]wFMCommunicate request_size=4 [09:43:40]MH_SAM_APDU [09:43:40]CAPDU: 80 13 01 00 [09:43:40]Write to MH i2c: E2 08 00 30 6F 80 13 01 00 00 00 00 00 1C [09:43:40]Write i2c OK [09:43:40]MH_I2C_Read... [09:43:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:43:40]Read from MH i2c: E2 [09:43:40]MH_I2C_Read... [09:43:40]Read from MH i2c: E2 0E 00 [09:43:40]MH_I2C_Read... [09:43:40]Read from MH i2c: E2 0E 00 30 6F 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 02 [09:43:40]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [09:43:40]wFMCommunicate OK [09:43:40]SAM_PROTO_GetShiftState done [09:43:40]FM_GetShiftState done [09:43:40]req_shift_opened done [09:43:40]requested_item shift.open_date is exist - process it [09:43:40]req_shift_open_date [09:43:40]req_shift_open_date done [09:43:40]produce_requested_data done [09:43:40]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30265,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [09:43:40]process_action_free close_receipt [09:43:40]json_value_free [09:43:40]json_value_free done [09:43:40]process_json_proto returns [09:43:40]Send response to host [09:43:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30265,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [09:43:40]free response buf [09:43:40]execute_script done [09:43:40]execute_script returns [09:43:40]free content buf [09:43:40]Sock 9.Close socket [09:43:40]Sock 9.Thread stoped [09:43:43]OFD Sender: No OFD packet to send [09:43:48]OFD Sender: No OFD packet to send [09:43:53]OFD Sender: No OFD packet to send [09:43:58]OFD Sender: No OFD packet to send [09:44:03]OFD Sender: No OFD packet to send [09:44:08]OFD Sender: No OFD packet to send [09:44:13]OFD Sender: No OFD packet to send [09:44:19]OFD Sender: No OFD packet to send [09:44:24]OFD Sender: No OFD packet to send [09:44:29]OFD Sender: No OFD packet to send [09:44:34]OFD Sender: No OFD packet to send [09:44:39]OFD Sender: No OFD packet to send [09:44:44]OFD Sender: No OFD packet to send [09:44:49]OFD Sender: No OFD packet to send [09:44:54]OFD Sender: No OFD packet to send [09:44:59]OFD Sender: No OFD packet to send [09: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:14]OFD Sender: No OFD packet to send [09:49:19]OFD Sender: No OFD packet to send [09:49:24]OFD Sender: No OFD packet to send [09:49:29]OFD Sender: No OFD packet to send [09:49:34]OFD Sender: No OFD packet to send [09:49:39]OFD Sender: No OFD packet to send [09:49:44]OFD Sender: No OFD packet to send [09:49:49]OFD Sender: No OFD packet to send [09:49:54]OFD Sender: No OFD packet to send [09:49:59]OFD Sender: No OFD packet to send [09:50:04]OFD Sender: No OFD packet to send [09:50:09]OFD Sender: No OFD packet to send [09:50:14]OFD Sender: No OFD packet to send [09:50:19]OFD Sender: No OFD packet to send [09:50:24]OFD Sender: No OFD packet to send [09:50:29]OFD Sender: No OFD packet to send [09:50:34]OFD Sender: No OFD packet to send [09:50:39]OFD Sender: No OFD packet to send [09:50:44]OFD Sender: No OFD packet to send [09:50:49]OFD Sender: No OFD packet to send [09:50:54]OFD Sender: No OFD packet to send [09:50:59]OFD Sender: No OFD packet to send [09:51:04]OFD Sender: No OFD packet to send [09:51:09]OFD Sender: No OFD packet to send [09:51:14]OFD Sender: No OFD packet to send [09:51:19]OFD Sender: No OFD packet to send [09:51:24]OFD Sender: No OFD packet to send [09:51:29]OFD Sender: No OFD packet to send [09:51:34]OFD Sender: No OFD packet to send [09:51:39]OFD Sender: No OFD packet to send [09:51:44]OFD Sender: No OFD packet to send [09:51:49]OFD Sender: No OFD packet to send [09:51:54]OFD Sender: No OFD packet to send [09:51:59]OFD Sender: No OFD packet to send [09:52:04]OFD Sender: No OFD packet to send [09:52:09]OFD Sender: No OFD packet to send [09:52:14]OFD Sender: No OFD packet to send [09:52:19]OFD Sender: No OFD packet to send [09:52:24]OFD Sender: No OFD packet to send [09:52:29]OFD Sender: No OFD packet to send [09:52:34]OFD Sender: No OFD packet to send [09:52:39]OFD Sender: No OFD packet to send [09:52:44]OFD Sender: No OFD packet to send [09:52:49]OFD Sender: No OFD packet to send [09:52:54]OFD Sender: No OFD packet to send [09:52:59]OFD Sender: No OFD packet to send [09:53:04]OFD Sender: No OFD packet to send [09:53:09]OFD Sender: No OFD packet to send [09:53:14]OFD Sender: No OFD packet to send [09:53:19]OFD Sender: No OFD packet to send [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:29]OFD Sender: No OFD packet to send [09:54:34]OFD Sender: No OFD packet to send [09:54:39]OFD Sender: No OFD packet to send [09:54:44]OFD Sender: No OFD packet to send [09:54:49]OFD Sender: No OFD packet to send [09:54:54]OFD Sender: No OFD packet to send [09:54:59]OFD Sender: No OFD packet to send [09:55:04]OFD Sender: No OFD packet to send [09:55:09]OFD Sender: No OFD packet to send [09:55:14]OFD Sender: No OFD packet to send [09:55:19]OFD Sender: No OFD packet to send [09:55:24]OFD Sender: No OFD packet to send [09:55:29]OFD Sender: No OFD packet to send [09:55:34]OFD Sender: No OFD packet to send [09:55:39]OFD Sender: No OFD packet to send [09:55:44]OFD Sender: No OFD packet to send [09:55:49]OFD Sender: No OFD packet to send [09:55:54]OFD Sender: No OFD packet to send [09:55:59]OFD Sender: No OFD packet to send [09:56:04]OFD Sender: No OFD packet to send [09:56:09]OFD Sender: No OFD packet to send [09:56:14]OFD Sender: No OFD packet to send [09:56:19]OFD Sender: No OFD packet to send [09:56:24]OFD Sender: No OFD packet to send [09:56:29]OFD Sender: No OFD packet to send [09:56:34]OFD Sender: No OFD packet to send [09:56:39]OFD Sender: No OFD packet to send [09:56:44]OFD Sender: No OFD packet to send [09:56:49]OFD Sender: No OFD packet to send [09:56:54]OFD Sender: No OFD packet to send [09:56:59]OFD Sender: No OFD packet to send [09:57:04]OFD Sender: No OFD packet to send [09:57:09]OFD Sender: No OFD packet to send [09:57:14]OFD Sender: No OFD packet to send [09:57:19]OFD Sender: No OFD packet to send [09:57:24]OFD Sender: No OFD packet to send [09:57:29]OFD Sender: No OFD packet to send [09:57:34]OFD Sender: No OFD packet to send [09:57:39]OFD Sender: No OFD packet to send [09:57:44]OFD Sender: No OFD packet to send [09:57:49]OFD Sender: No OFD packet to send [09:57:54]OFD Sender: No OFD packet to send [09:57:59]accept exits with 7 [09:57:59]New connection [09:57:59]New thread 3067514212 created [09:57:59]Thread 3067370852 joined [09:57:59]Waiting for new connection... [09:57:59] Sock 7.Parse request [09:57:59]Sock 7.Check first char [09:57:59]Sock 7.First char is OK [09:57:59]request: POST /json_proto HTTP/1.0 [09:57:59]Method: POST [09:57:59]URL: /json_proto [09:57:59]Method is POST - this is cgi request [09:57:59]url: /json_proto [09:57:59]query_string will be loaded in cgi processing [09:57:59]execute_cgi json_proto POST (null) [09:57:59]execute_cgi path=json_proto method=POST [09:57:59]POST find Content-Length [09:57:59]Host: 172.17.51.3:8080 [09:57:59]Content-Length: 677 [09:57:59]Content-Type: application/json [09:57:59] [09:57:59]POST finish read [09:57:59]Found Content-Length = 677 [09:57:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342657", "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:57:59]execute_script... [09:57:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342657", "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:57:59]POST & json_proto [09:57:59]process_json_proto [09:57:59]json parsed OK: [09:57:59]protocol is kg_v1.0 [09:57:59]action value=close_receipt [09:57:59]process_action close_receipt [09:57:59]cmd_close_receipt [09:57:59]MH_GetDate [09:57:59]Write to MH i2c: F0 00 00 31 6F 8F [09:57:59]Write i2c OK [09:57:59]MH_I2C_Read... [09:57:59]Read from MH i2c: F0 [09:57:59]MH_I2C_Read... [09:57:59]Read from MH i2c: F0 09 00 [09:57:59]MH_I2C_Read... [09:57:59]Read from MH i2c: F0 09 00 31 6F 00 30 D4 14 67 04 C1 95 66 D7 [09:57:59]GetLastDocTimeStamp 1729417424 [09:57:59]current date 1729418288 [09:57:59]FM_GetShiftState [09:57:59]SAM_PROTO_GetShiftState [09:57:59]wFMCommunicate request_size=4 [09:57:59]MH_SAM_APDU [09:57:59]CAPDU: 80 13 01 00 [09:57:59]Write to MH i2c: E2 08 00 32 6F 80 13 01 00 00 00 00 00 1E [09:57:59]Write i2c OK [09:57:59]MH_I2C_Read... [09:57:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:57:59]Read from MH i2c: E2 [09:57:59]MH_I2C_Read... [09:57:59]Read from MH i2c: E2 0E 00 [09:57:59]MH_I2C_Read... [09:57:59]Read from MH i2c: E2 0E 00 32 6F 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 04 [09:57:59]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [09:57:59]wFMCommunicate OK [09:57:59]SAM_PROTO_GetShiftState done [09:57:59]FM_GetShiftState done [09:57:59]opened in 1729384718 [09:57:59]opened+sec_in_day 1729471118 [09:57:59]quantity*price = 50041 [09:57:59]sum+1 = 50042 [09:57:59]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 СНО: Общий режим Чек 48 20.10.2024 09:58 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30266 ФПД: 39373160441218 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T095808&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30266&fm=39373160441218&tin=02508201610067®Number=0000000000186857&sum=50000 [09:58:00]StoreToDocumentArchive [09:58:00]shift 114 fd 30266 [09:58:00]save to /storage/0114/doc_00030266 [09:58:00]save last doc name /storage/0114/doc_00030266 to /storage/kkm_last_doc_name [09:58:00]save OK [09:58:00]Clear old archive folders... [09:58:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:58:00]tlvbuf is 00BE9390 [09:58:00]SAM_PROTO_ClearQueue [09:58:00]wFMCommunicate request_size=4 [09:58:00]MH_SAM_APDU [09:58:00]CAPDU: 80 09 00 00 [09:58:00]Write to MH i2c: E2 08 00 3F 6F 80 09 00 00 00 00 00 00 20 [09:58:00]Write i2c OK [09:58:00]MH_I2C_Read... [09:58:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:58:00]Read from MH i2c: E2 [09:58:00]MH_I2C_Read... [09:58:00]Read from MH i2c: E2 03 00 [09:58:00]MH_I2C_Read... [09:58:00]Read from MH i2c: E2 03 00 3F 6F 00 90 00 22 [09:58:00]RAPDU: 90 00 [09:58:00]wFMCommunicate OK [09:58:00]SAM_PROTO_ClearQueue done [09:58:00]KKMCreateOFDPacket [09:58:00]OFDProtocolAddRootSTLVToBuf [09:58:00]FM_MakeSignedData [09:58:00]FM_MakeSignedData [09:58:00]SAM_PROTO_SignData [09:58:00]wFMCommunicate request_size=4 [09:58:00]MH_SAM_APDU [09:58:00]CAPDU: 80 0D 01 02 [09:58:00]Write to MH i2c: E2 08 00 40 6F 80 0D 01 02 00 00 00 00 28 [09:58:00]Write i2c OK [09:58:00]MH_I2C_Read... [09:58:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:58:00]Read from MH i2c: E2 [09:58:00]MH_I2C_Read... [09:58:00]Read from MH i2c: E2 03 00 [09:58:00]MH_I2C_Read... [09:58:00]Read from MH i2c: E2 03 00 40 6F 00 90 00 23 [09:58:00]RAPDU: 90 00 [09:58:00]wFMCommunicate OK [09:58:00]wFMCommunicate request_size=255 [09:58:00]MH_SAM_APDU [09:58:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 30 00 00 00 F4 03 04 00 30 D4 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 23 [09:58:00]Write to MH i2c: E2 02 01 41 6F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 30 00 00 00 F4 03 04 00 30 D4 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 23 00 00 AD [09:58:00]Write i2c OK [09:58:00]MH_I2C_Read... [09:58:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:58:00]Read from MH i2c: E2 [09:58:00]MH_I2C_Read... [09:58:00]Read from MH i2c: E2 03 00 [09:58:00]MH_I2C_Read... [09:58:00]Read from MH i2c: E2 03 00 41 6F 00 90 00 24 [09:58:00]RAPDU: 90 00 [09:58:00]wFMCommunicate OK [09:58:00]wFMCommunicate request_size=10 [09:58:00]MH_SAM_APDU [09:58:00]CAPDU: 80 0D 02 02 05 CF 47 3D E5 82 [09:58:00]Write to MH i2c: E2 0D 00 42 6F 80 0D 02 02 05 00 CF 47 3D E5 82 00 00 EF [09:58:00]Write i2c OK [09:58:00]MH_I2C_Read... [09:58:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:58:00]Read from MH i2c: E2 [09:58:00]MH_I2C_Read... [09:58:00]Read from MH i2c: E2 03 00 [09:58:00]MH_I2C_Read... [09:58:00]Read from MH i2c: E2 03 00 42 6F 00 90 00 25 [09:58:00]RAPDU: 90 00 [09:58:00]wFMCommunicate OK [09:58:00]wFMCommunicate request_size=4 [09:58:00]MH_SAM_APDU [09:58:00]CAPDU: 80 0D 03 02 [09:58:00]Write to MH i2c: E2 08 00 43 6F 80 0D 03 02 00 00 00 00 2D [09:58:00]Write i2c OK [09:58:00]MH_I2C_Read... [09:58:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:58:00]Read from MH i2c: E2 [09:58:00]MH_I2C_Read... [09:58:00]Read from MH i2c: E2 0B 00 [09:58:00]MH_I2C_Read... [09:58:00]Read from MH i2c: E2 0B 00 43 6F 00 F6 70 59 88 B1 4D E3 30 90 00 86 [09:58:00]RAPDU: F6 70 59 88 B1 4D E3 30 90 00 [09:58:00]wFMCommunicate OK [09:58:00]SAM_PROTO_SignData done [09:58:00]FM_MakeSignedData done [09:58:00]CreateOFDProtocolMessage [09:58:00]wFMCommunicate request_size=4 [09:58:00]MH_SAM_APDU [09:58:00]CAPDU: 80 11 00 00 [09:58:00]Write to MH i2c: E2 08 00 44 6F 80 11 00 00 00 00 00 00 2D [09:58:00]Write i2c OK [09:58:00]MH_I2C_Read... [09:58:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:58:01]Read from MH i2c: E2 [09:58:01]MH_I2C_Read... [09:58:01]Read from MH i2c: E2 17 00 [09:58:01]MH_I2C_Read... [09:58:01]Read from MH i2c: E2 17 00 44 6F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 7B [09:58:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [09:58:01]wFMCommunicate OK [09:58:01]CreateOFDProtocolMessage done [09:58:01]OFDSenderStorePacket 30266 [09:58:01]StoreOFDPacket docnum=30266 [09:58: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 27 7E 07 01 C6 D3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 30 00 00 00 F4 03 04 00 30 D4 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 23 CF 47 3D E5 82 F6 70 59 88 B1 4D E3 30 [09:58:01]CheckFolder [09:58:01]dirname=/storage/ofd_packets [09:58:01]CheckFolder done [09:58:01]ProducePacketName [09:58:01]name=ofd_packets/00030266 [09:58:01]NVStorageSaveData ofd_packets/00030266 [09:58:01]File name is /storage/ofd_packets/00030266 [09:58:01]Write 301 bytes [09:58:01]NVStorageSaveData done [09:58:01]OFDSenderStorePacket done [09:58:01]KKMCreateOFDPacket done [09:58:01]NVStorageSaveData kkm_last_timestamp [09:58:01]File name is /storage/kkm_last_timestamp [09:58:01]Write 4 bytes [09:58:01]NVStorageSaveData done [09:58:01]ExternCall_PrintAddStr [09:58:01]wPrintStart [09:58:01]Write to MH i2c: 01 00 00 45 6F B4 [09:58:01]Write i2c OK [09:58:01]MH_I2C_Read... [09:58:01]Read from MH i2c: 01 [09:58:01]MH_I2C_Read... [09:58:01]Read from MH i2c: 01 07 00 [09:58:01]MH_I2C_Read... [09:58:01]Read from MH i2c: 01 07 00 45 6F 00 00 00 00 00 FF 0F C9 [09:58:01]RasterBufferAndPrint [09:58:01]line Счет N : (1)342657 [09:58:01]line ИНН: 02508201610067 [09:58:01]line Контрольно-Кассовый Чек [09:58:01]line ПРОДАЖА [09:58:01]line ТРК (МРК, ГНК) : 53 [09:58:01]line Товар: 2710124130 [09:58:01]line Аи-92-К-2 [09:58:01]line 7.480 * 66.90 [09:58:01]line = 500.41 [09:58:01]line НДС 12% НСП 1% [09:58:01]line > о реализуемом товаре [09:58:01]line ОКРУГЛЕНИЕ: -0.41 [09:58:01]line ИТОГО: 500.00 [09:58:01]line Внесено: 500.00 [09:58:01]line СДАЧА: 0.00 [09:58:01]line НСП 1% : 4.43 [09:58:01]line НДС 12% : 53.14 [09:58:01]line Наличными: 500.00 [09:58:01]line Безнал.: 0.00 [09:58:01]line Место: АЗС № 78 "Партнер Нефть" [09:58:01]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [09:58:01]line СНО: Общий режим [09:58:01]line Чек 48 20.10.2024 09:58 [09:58:01]line Смена: 114 ФФД: 1.0 [09:58:01]line ЗНМ: 0300000137 [09:58:01]line РНМ: 0000000000186857 [09:58:01]line Версия ККМ: v1.0 [09:58:01]line ФМ: 0000000002094219 [09:58:01]line ФД: 30266 [09:58:01]line ФПД: 39373160441218 [09:58:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T095808&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30266&fm=39373160441218&tin=02508201610067®Number=0000000000186857&sum=50000 [09:58:01]OFD Sender: Processing packet 30266 [packets to send 10, broken 9] [09:58:01]ProducePacketName [09:58:01]name=ofd_packets/00030266 [09:58:01]OFD Sender: To server: pG, [09:58:01]CommunicateWithHost lk.salyk.kg:30040 [09:58:01]ConnectInit lk.salyk.kg [09:58:01]written 0, free lines is 4095 [09:58:01]Connected sock=10 [09:58: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 27 7E 07 01 C6 D3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 30 00 00 00 F4 03 04 00 30 D4 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 23 CF 47 3D E5 82 F6 70 59 88 B1 4D E3 30 [09:58: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 3A 56 47 00 4A 82 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 3A 76 00 00 F4 03 04 00 B4 7E 14 67 B6 04 01 00 00 51 CB 66 18 B5 53 F0 39 [09:58:01]CommunicateWithHost err = 0 [09:58:01]CheckOFDResponse [09:58:01]1017 (14) - 77093643461234 [09:58:01]1041 (16) - 0000000002094219 [09:58:01]1040 (4) - 30266 [09:58:01]1012 (4) - 20.10.2024 03:53 [09:58:01]1206 (1) - 0 [09:58:01]OFD Sender: Remove packet 30266 [09:58:01]ProducePacketName [09:58:01]name=ofd_packets/00030266 [09:58:01]NVStorageDeleteData [09:58:01]Write to MH i2c: 01 00 00 70 6F DF [09:58:01]Write i2c OK [09:58:01]MH_I2C_Read... [09:58:01]Read from MH i2c: 01 [09:58:01]MH_I2C_Read... [09:58:01]Read from MH i2c: 01 07 00 [09:58:01]MH_I2C_Read... [09:58:01]Read from MH i2c: 01 07 00 70 6F 00 00 00 00 00 EC 0C DE [09:58:01]RasterBufferAndPrint [09:58:01]line [09:58:01]line [09:58:01]line [09:58:01]line [09:58:01]line [09:58:01]written 0, free lines is 3314 [09:58:01]MH_Cut [09:58:01]Write to MH i2c: D1 01 00 77 6F 01 B8 [09:58:01]Write i2c OK [09:58:01]MH_I2C_Read... [09:58:01]Read from MH i2c: D1 [09:58:01]MH_I2C_Read... [09:58:01]Read from MH i2c: D1 01 00 [09:58:01]MH_I2C_Read... [09:58:01]Read from MH i2c: D1 01 00 77 6F 00 B7 [09:58:01]Write to MH i2c: 01 00 00 78 6F E7 [09:58:01]Write i2c OK [09:58:01]MH_I2C_Read... [09:58:02]OFD Sender: No OFD packet to send [09:58:02]*** Cut start [09:58:02]*** Partial cut [09:58:02]*** CUTSNS_PIN = 1 [09:58:02]*** CUTSNS_PIN = 0 [09:58:02]*** Brake cut motor [09:58:03]Read from MH i2c: 01 [09:58:03]MH_I2C_Read... [09:58:03]*** Stop cut motor [09:58:03]*** Cut end [09:58:03]Read from MH i2c: 01 07 00 [09:58:03]MH_I2C_Read... [09:58:03]Read from MH i2c: 01 07 00 78 6F 00 00 00 00 00 FF 0F FC [09:58:03]process_action close_receipt done [09:58:03]requested_data is exist [09:58:03]produce_requested_data [09:58:03]requested_item fm.sn is exist - process it [09:58:03]wFMCommunicate request_size=4 [09:58:03]MH_SAM_APDU [09:58:03]CAPDU: 80 11 00 00 [09:58:03]Write to MH i2c: E2 08 00 79 6F 80 11 00 00 00 00 00 00 62 [09:58:03]Write i2c OK [09:58:03]MH_I2C_Read... [09:58:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:58:03]Read from MH i2c: E2 [09:58:03]MH_I2C_Read... [09:58:03]Read from MH i2c: E2 17 00 [09:58:03]MH_I2C_Read... [09:58:03]Read from MH i2c: E2 17 00 79 6F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 B0 [09:58:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [09:58:03]wFMCommunicate OK [09:58:03]requested_item fd.num is exist - process it [09:58:03]SAM_PROTO_GetFieldsCounters [09:58:03]wFMCommunicate request_size=4 [09:58:03]MH_SAM_APDU [09:58:03]CAPDU: 80 13 00 00 [09:58:03]Write to MH i2c: E2 08 00 7A 6F 80 13 00 00 00 00 00 00 65 [09:58:03]Write i2c OK [09:58:03]MH_I2C_Read... [09:58:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:58:03]Read from MH i2c: E2 [09:58:03]MH_I2C_Read... [09:58:03]Read from MH i2c: E2 62 00 [09:58:03]MH_I2C_Read... [09:58:03]Read from MH i2c: E2 62 00 7A 6F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 3D [09:58: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 3A 76 00 00 0E 04 04 00 72 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:58:03]wFMCommunicate OK [09:58:03]SAM_PROTO_GetFieldsCounters done [09:58:03]requested_item shift.num is exist - process it [09:58:03]requested_item shift.opened is exist - process it [09:58:03]req_shift_opened [09:58:03]FM_GetShiftState [09:58:03]SAM_PROTO_GetShiftState [09:58:03]wFMCommunicate request_size=4 [09:58:03]MH_SAM_APDU [09:58:03]CAPDU: 80 13 01 00 [09:58:03]Write to MH i2c: E2 08 00 7B 6F 80 13 01 00 00 00 00 00 67 [09:58:03]Write i2c OK [09:58:03]MH_I2C_Read... [09:58:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:58:03]Read from MH i2c: E2 [09:58:03]MH_I2C_Read... [09:58:03]Read from MH i2c: E2 0E 00 [09:58:03]MH_I2C_Read... [09:58:03]Read from MH i2c: E2 0E 00 7B 6F 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 4D [09:58:03]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [09:58:03]wFMCommunicate OK [09:58:03]SAM_PROTO_GetShiftState done [09:58:03]FM_GetShiftState done [09:58:03]req_shift_opened done [09:58:03]requested_item shift.open_date is exist - process it [09:58:03]req_shift_open_date [09:58:03]req_shift_open_date done [09:58:03]produce_requested_data done [09:58:03]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30266,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [09:58:03]process_action_free close_receipt [09:58:03]json_value_free [09:58:03]json_value_free done [09:58:03]process_json_proto returns [09:58:03]Send response to host [09:58:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30266,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [09:58:03]free response buf [09:58:03]execute_script done [09:58:03]execute_script returns [09:58:03]free content buf [09:58:03]Sock 7.Close socket [09:58:03]Sock 7.Thread stoped [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:45]accept exits with 9 [09:59:45]New connection [09:59:45]New thread 3067370852 created [09:59:45]Thread 3067514212 joined [09:59:45]Waiting for new connection... [09:59:45] Sock 9.Parse request [09:59:45]Sock 9.Check first char [09:59:45]Sock 9.First char is OK [09:59:45]request: POST /json_proto HTTP/1.0 [09:59:45]Method: POST [09:59:45]URL: /json_proto [09:59:45]Method is POST - this is cgi request [09:59:45]url: /json_proto [09:59:45]query_string will be loaded in cgi processing [09:59:45]execute_cgi json_proto POST (null) [09:59:45]execute_cgi path=json_proto method=POST [09:59:45]POST find Content-Length [09:59:45]Host: 172.17.51.3:8080 [09:59:45]Content-Length: 677 [09:59:45]Content-Type: application/json [09:59:45] [09:59:45]POST finish read [09:59:45]Found Content-Length = 677 [09:59:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342658", "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:59:45]execute_script... [09:59: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)342658", "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:59:45]POST & json_proto [09:59:45]process_json_proto [09:59:45]json parsed OK: [09:59:45]protocol is kg_v1.0 [09:59:45]action value=close_receipt [09:59:45]process_action close_receipt [09:59:45]cmd_close_receipt [09:59:45]MH_GetDate [09:59:45]Write to MH i2c: F0 00 00 7C 6F DA [09:59:45]Write i2c OK [09:59:45]MH_I2C_Read... [09:59:45]Read from MH i2c: F0 [09:59:45]MH_I2C_Read... [09:59:45]Read from MH i2c: F0 09 00 [09:59:45]MH_I2C_Read... [09:59:45]Read from MH i2c: F0 09 00 7C 6F 00 9A D4 14 67 04 C1 95 66 8C [09:59:45]GetLastDocTimeStamp 1729418288 [09:59:45]current date 1729418394 [09:59:45]FM_GetShiftState [09:59:45]SAM_PROTO_GetShiftState [09:59:45]wFMCommunicate request_size=4 [09:59:45]MH_SAM_APDU [09:59:45]CAPDU: 80 13 01 00 [09:59:45]Write to MH i2c: E2 08 00 7D 6F 80 13 01 00 00 00 00 00 69 [09:59:45]Write i2c OK [09:59:45]MH_I2C_Read... [09:59:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:59:45]Read from MH i2c: E2 [09:59:45]MH_I2C_Read... [09:59:45]Read from MH i2c: E2 0E 00 [09:59:45]MH_I2C_Read... [09:59:45]Read from MH i2c: E2 0E 00 7D 6F 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 4F [09:59:45]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [09:59:45]wFMCommunicate OK [09:59:45]SAM_PROTO_GetShiftState done [09:59:45]FM_GetShiftState done [09:59:45]opened in 1729384718 [09:59:45]opened+sec_in_day 1729471118 [09:59:45]quantity*price = 50041 [09:59:45]sum+1 = 50042 [09:59:45]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 20.10.2024 09:59 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30267 ФПД: 105605411199047 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T095954&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30267&fm=105605411199047&tin=02508201610067®Number=0000000000186857&sum=50000 [09:59:46]StoreToDocumentArchive [09:59:46]shift 114 fd 30267 [09:59:46]save to /storage/0114/doc_00030267 [09:59:46]save last doc name /storage/0114/doc_00030267 to /storage/kkm_last_doc_name [09:59:46]save OK [09:59:46]Clear old archive folders... [09:59:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:59:46]tlvbuf is 00B677C0 [09:59:46]SAM_PROTO_ClearQueue [09:59:46]wFMCommunicate request_size=4 [09:59:46]MH_SAM_APDU [09:59:46]CAPDU: 80 09 00 00 [09:59:46]Write to MH i2c: E2 08 00 8A 6F 80 09 00 00 00 00 00 00 6B [09:59:46]Write i2c OK [09:59:46]MH_I2C_Read... [09:59:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:59:47]Read from MH i2c: E2 [09:59:47]MH_I2C_Read... [09:59:47]Read from MH i2c: E2 03 00 [09:59:47]MH_I2C_Read... [09:59:47]Read from MH i2c: E2 03 00 8A 6F 00 90 00 6D [09:59:47]RAPDU: 90 00 [09:59:47]wFMCommunicate OK [09:59:47]SAM_PROTO_ClearQueue done [09:59:47]KKMCreateOFDPacket [09:59:47]OFDProtocolAddRootSTLVToBuf [09:59:47]FM_MakeSignedData [09:59:47]FM_MakeSignedData [09:59:47]SAM_PROTO_SignData [09:59:47]wFMCommunicate request_size=4 [09:59:47]MH_SAM_APDU [09:59:47]CAPDU: 80 0D 01 02 [09:59:47]Write to MH i2c: E2 08 00 8B 6F 80 0D 01 02 00 00 00 00 73 [09:59:47]Write i2c OK [09:59:47]MH_I2C_Read... [09:59:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:59:47]Read from MH i2c: E2 [09:59:47]MH_I2C_Read... [09:59:47]Read from MH i2c: E2 03 00 [09:59:47]MH_I2C_Read... [09:59:47]Read from MH i2c: E2 03 00 8B 6F 00 90 00 6E [09:59:47]RAPDU: 90 00 [09:59:47]wFMCommunicate OK [09:59:47]wFMCommunicate request_size=255 [09:59:47]MH_SAM_APDU [09:59: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 31 00 00 00 F4 03 04 00 9A D4 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 60 [09:59:47]Write to MH i2c: E2 02 01 8C 6F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 9A D4 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 60 00 00 A1 [09:59:47]Write i2c OK [09:59:47]MH_I2C_Read... [09:59:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:59:47]Read from MH i2c: E2 [09:59:47]MH_I2C_Read... [09:59:47]Read from MH i2c: E2 03 00 [09:59:47]MH_I2C_Read... [09:59:47]Read from MH i2c: E2 03 00 8C 6F 00 90 00 6F [09:59:47]RAPDU: 90 00 [09:59:47]wFMCommunicate OK [09:59:47]wFMCommunicate request_size=10 [09:59:47]MH_SAM_APDU [09:59:47]CAPDU: 80 0D 02 02 05 0C 2D 05 58 47 [09:59:47]Write to MH i2c: E2 0D 00 8D 6F 80 0D 02 02 05 00 0C 2D 05 58 47 00 00 5D [09:59:47]Write i2c OK [09:59:47]MH_I2C_Read... [09:59:47]OFD Sender: No OFD packet to send [09:59:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:59:47]Read from MH i2c: E2 [09:59:47]MH_I2C_Read... [09:59:47]Read from MH i2c: E2 03 00 [09:59:47]MH_I2C_Read... [09:59:47]Read from MH i2c: E2 03 00 8D 6F 00 90 00 70 [09:59:47]RAPDU: 90 00 [09:59:47]wFMCommunicate OK [09:59:47]wFMCommunicate request_size=4 [09:59:47]MH_SAM_APDU [09:59:47]CAPDU: 80 0D 03 02 [09:59:47]Write to MH i2c: E2 08 00 8E 6F 80 0D 03 02 00 00 00 00 78 [09:59:47]Write i2c OK [09:59:47]MH_I2C_Read... [09:59:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:59:47]Read from MH i2c: E2 [09:59:47]MH_I2C_Read... [09:59:47]Read from MH i2c: E2 0B 00 [09:59:47]MH_I2C_Read... [09:59:47]Read from MH i2c: E2 0B 00 8E 6F 00 AE AF B6 17 19 61 71 FB 90 00 89 [09:59:47]RAPDU: AE AF B6 17 19 61 71 FB 90 00 [09:59:47]wFMCommunicate OK [09:59:47]SAM_PROTO_SignData done [09:59:47]FM_MakeSignedData done [09:59:47]CreateOFDProtocolMessage [09:59:47]wFMCommunicate request_size=4 [09:59:47]MH_SAM_APDU [09:59:47]CAPDU: 80 11 00 00 [09:59:47]Write to MH i2c: E2 08 00 8F 6F 80 11 00 00 00 00 00 00 78 [09:59:47]Write i2c OK [09:59:47]MH_I2C_Read... [09:59:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:59:47]Read from MH i2c: E2 [09:59:47]MH_I2C_Read... [09:59:47]Read from MH i2c: E2 17 00 [09:59:47]MH_I2C_Read... [09:59:47]Read from MH i2c: E2 17 00 8F 6F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 C6 [09:59:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [09:59:47]wFMCommunicate OK [09:59:47]CreateOFDProtocolMessage done [09:59:47]OFDSenderStorePacket 30267 [09:59:47]StoreOFDPacket docnum=30267 [09:59: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 65 2E 07 01 E0 89 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 9A D4 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 60 0C 2D 05 58 47 AE AF B6 17 19 61 71 FB [09:59:47]CheckFolder [09:59:47]dirname=/storage/ofd_packets [09:59:47]CheckFolder done [09:59:47]ProducePacketName [09:59:47]name=ofd_packets/00030267 [09:59:47]NVStorageSaveData ofd_packets/00030267 [09:59:47]File name is /storage/ofd_packets/00030267 [09:59:47]Write 301 bytes [09:59:47]NVStorageSaveData done [09:59:47]OFDSenderStorePacket done [09:59:47]KKMCreateOFDPacket done [09:59:47]NVStorageSaveData kkm_last_timestamp [09:59:47]File name is /storage/kkm_last_timestamp [09:59:47]Write 4 bytes [09:59:47]NVStorageSaveData done [09:59:47]ExternCall_PrintAddStr [09:59:47]wPrintStart [09:59:47]Write to MH i2c: 01 00 00 90 6F FF [09:59:47]Write i2c OK [09:59:47]MH_I2C_Read... [09:59:47]Read from MH i2c: 01 [09:59:47]MH_I2C_Read... [09:59:47]Read from MH i2c: 01 07 00 [09:59:47]MH_I2C_Read... [09:59:47]Read from MH i2c: 01 07 00 90 6F 00 00 00 00 00 FF 0F 14 [09:59:47]RasterBufferAndPrint [09:59:47]line Счет N : (1)342658 [09:59:47]line ИНН: 02508201610067 [09:59:47]line Контрольно-Кассовый Чек [09:59:47]line ПРОДАЖА [09:59:47]line ТРК (МРК, ГНК) : 53 [09:59:47]line Товар: 2710124130 [09:59:47]line Аи-92-К-2 [09:59:47]line 7.480 * 66.90 [09:59:47]line = 500.41 [09:59:47]line НДС 12% НСП 1% [09:59:47]line > о реализуемом товаре [09:59:47]line ОКРУГЛЕНИЕ: -0.41 [09:59:47]line ИТОГО: 500.00 [09:59:47]line Внесено: 500.00 [09:59:47]line СДАЧА: 0.00 [09:59:47]line НСП 1% : 4.43 [09:59:47]line НДС 12% : 53.14 [09:59:47]line Наличными: 500.00 [09:59:47]line Безнал.: 0.00 [09:59:47]line Место: АЗС № 78 "Партнер Нефть" [09:59:47]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [09:59:47]line СНО: Общий режим [09:59:47]line Чек 49 20.10.2024 09:59 [09:59:47]line Смена: 114 ФФД: 1.0 [09:59:47]line ЗНМ: 0300000137 [09:59:47]line РНМ: 0000000000186857 [09:59:47]line Версия ККМ: v1.0 [09:59:47]line ФМ: 0000000002094219 [09:59:47]line ФД: 30267 [09:59:47]line ФПД: 105605411199047 [09:59:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T095954&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30267&fm=105605411199047&tin=02508201610067®Number=0000000000186857&sum=50000 [09:59:47]OFD Sender: Processing packet 30267 [packets to send 10, broken 9] [09:59:47]ProducePacketName [09:59:47]name=ofd_packets/00030267 [09:59:47]OFD Sender: To server: pG, [09:59:47]CommunicateWithHost lk.salyk.kg:30040 [09:59:47]ConnectInit lk.salyk.kg [09:59:47]written 0, free lines is 4095 [09:59:47]Connected sock=10 [09:59: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 65 2E 07 01 E0 89 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 9A D4 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 60 0C 2D 05 58 47 AE AF B6 17 19 61 71 FB [09:59: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 F8 9E 47 00 77 95 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 3B 76 00 00 F4 03 04 00 1E 7F 14 67 B6 04 01 00 00 96 54 74 A9 1C 0C 1A E9 [09:59:48]CommunicateWithHost err = 0 [09:59:48]CheckOFDResponse [09:59:48]1017 (14) - 77093643461234 [09:59:48]1041 (16) - 0000000002094219 [09:59:48]1040 (4) - 30267 [09:59:48]1012 (4) - 20.10.2024 03:55 [09:59:48]1206 (1) - 0 [09:59:48]OFD Sender: Remove packet 30267 [09:59:48]ProducePacketName [09:59:48]name=ofd_packets/00030267 [09:59:48]NVStorageDeleteData [09:59:48]Write to MH i2c: 01 00 00 BB 6F 2A [09:59:48]Write i2c OK [09:59:48]MH_I2C_Read... [09:59:48]Read from MH i2c: 01 [09:59:48]MH_I2C_Read... [09:59:48]Read from MH i2c: 01 07 00 [09:59:48]MH_I2C_Read... [09:59:48]Read from MH i2c: 01 07 00 BB 6F 00 00 00 00 00 E1 0C 1E [09:59:48]RasterBufferAndPrint [09:59:48]line [09:59:48]line [09:59:48]line [09:59:48]line [09:59:48]line [09:59:48]written 0, free lines is 3302 [09:59:48]MH_Cut [09:59:48]Write to MH i2c: D1 01 00 C2 6F 01 03 [09:59:48]Write i2c OK [09:59:48]MH_I2C_Read... [09:59:48]Read from MH i2c: D1 [09:59:48]MH_I2C_Read... [09:59:48]Read from MH i2c: D1 01 00 [09:59:48]MH_I2C_Read... [09:59:48]Read from MH i2c: D1 01 00 C2 6F 00 02 [09:59:48]Write to MH i2c: 01 00 00 C3 6F 32 [09:59:48]Write i2c OK [09:59:48]MH_I2C_Read... [09:59:48]OFD Sender: No OFD packet to send [09:59:48]*** Cut start [09:59:48]*** Partial cut [09:59:48]*** CUTSNS_PIN = 1 [09:59:48]*** CUTSNS_PIN = 0 [09:59:49]*** Brake cut motor [09:59:49]Read from MH i2c: 01 [09:59:49]MH_I2C_Read... [09:59:49]*** Stop cut motor [09:59:49]*** Cut end [09:59:49]Read from MH i2c: 01 07 00 [09:59:49]MH_I2C_Read... [09:59:49]Read from MH i2c: 01 07 00 C3 6F 00 00 00 00 00 FF 0F 47 [09:59:49]process_action close_receipt done [09:59:49]requested_data is exist [09:59:49]produce_requested_data [09:59:49]requested_item fm.sn is exist - process it [09:59:49]wFMCommunicate request_size=4 [09:59:49]MH_SAM_APDU [09:59:49]CAPDU: 80 11 00 00 [09:59:49]Write to MH i2c: E2 08 00 C4 6F 80 11 00 00 00 00 00 00 AD [09:59:49]Write i2c OK [09:59:49]MH_I2C_Read... [09:59:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:59:49]Read from MH i2c: E2 [09:59:49]MH_I2C_Read... [09:59:49]Read from MH i2c: E2 17 00 [09:59:49]MH_I2C_Read... [09:59:49]Read from MH i2c: E2 17 00 C4 6F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 FB [09:59:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [09:59:49]wFMCommunicate OK [09:59:49]requested_item fd.num is exist - process it [09:59:49]SAM_PROTO_GetFieldsCounters [09:59:49]wFMCommunicate request_size=4 [09:59:49]MH_SAM_APDU [09:59:49]CAPDU: 80 13 00 00 [09:59:49]Write to MH i2c: E2 08 00 C5 6F 80 13 00 00 00 00 00 00 B0 [09:59:49]Write i2c OK [09:59:49]MH_I2C_Read... [09:59:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:59:49]Read from MH i2c: E2 [09:59:49]MH_I2C_Read... [09:59:49]Read from MH i2c: E2 62 00 [09:59:49]MH_I2C_Read... [09:59:49]Read from MH i2c: E2 62 00 C5 6F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 8C [09:59: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 3B 76 00 00 0E 04 04 00 72 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:59:49]wFMCommunicate OK [09:59:49]SAM_PROTO_GetFieldsCounters done [09:59:49]requested_item shift.num is exist - process it [09:59:49]requested_item shift.opened is exist - process it [09:59:49]req_shift_opened [09:59:49]FM_GetShiftState [09:59:49]SAM_PROTO_GetShiftState [09:59:49]wFMCommunicate request_size=4 [09:59:49]MH_SAM_APDU [09:59:49]CAPDU: 80 13 01 00 [09:59:49]Write to MH i2c: E2 08 00 C6 6F 80 13 01 00 00 00 00 00 B2 [09:59:49]Write i2c OK [09:59:49]MH_I2C_Read... [09:59:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:59:49]Read from MH i2c: E2 [09:59:49]MH_I2C_Read... [09:59:49]Read from MH i2c: E2 0E 00 [09:59:49]MH_I2C_Read... [09:59:49]Read from MH i2c: E2 0E 00 C6 6F 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 98 [09:59:49]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [09:59:49]wFMCommunicate OK [09:59:49]SAM_PROTO_GetShiftState done [09:59:49]FM_GetShiftState done [09:59:49]req_shift_opened done [09:59:49]requested_item shift.open_date is exist - process it [09:59:49]req_shift_open_date [09:59:49]req_shift_open_date done [09:59:49]produce_requested_data done [09:59:49]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30267,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [09:59:49]process_action_free close_receipt [09:59:49]json_value_free [09:59:49]json_value_free done [09:59:49]process_json_proto returns [09:59:49]Send response to host [09:59:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30267,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [09:59:49]free response buf [09:59:49]execute_script done [09:59:49]execute_script returns [09:59:49]free content buf [09:59:49]Sock 9.Close socket [09:59:49]Sock 9.Thread stoped [09:59:53]OFD Sender: No OFD packet to send [09:59:58]OFD Sender: No OFD packet to send [10:00:03]OFD Sender: No OFD packet to send [10:00:08]OFD Sender: No OFD packet to send [10:00:13]OFD Sender: No OFD packet to send [10:00:18]OFD Sender: No OFD packet to send [10:00:23]OFD Sender: No OFD packet to send [10:00:28]OFD Sender: No OFD packet to send [10:00:33]OFD Sender: No OFD packet to send [10:00:38]OFD Sender: No OFD packet to send [10:00:43]OFD Sender: No OFD packet to send [10:00:48]OFD Sender: No OFD packet to send [10:00:53]OFD Sender: No OFD packet to send [10:00:58]OFD Sender: No OFD packet to send [10:01:03]OFD Sender: No OFD packet to send [10:01:08]OFD Sender: No OFD packet to send [10:01:13]OFD Sender: No OFD packet to send [10:01:18]OFD Sender: No OFD packet to send [10:01:23]OFD Sender: No OFD packet to send [10:01:28]OFD Sender: No OFD packet to send [10:01:33]OFD Sender: No OFD packet to send [10:01:38]OFD Sender: No OFD packet to send [10:01:43]OFD Sender: No OFD packet to send [10:01:48]OFD Sender: No OFD packet to send [10:01:53]OFD Sender: No OFD packet to send [10:01:58]OFD Sender: No OFD packet to send [10:02:03]OFD Sender: No OFD packet to send [10:02:08]OFD Sender: No OFD packet to send [10:02:13]OFD Sender: No OFD packet to send [10:02:18]OFD Sender: No OFD packet to send [10:02:23]OFD Sender: No OFD packet to send [10:02:28]OFD Sender: No OFD packet to send [10:02:33]OFD Sender: No OFD packet to send [10:02:38]OFD Sender: No OFD packet to send [10:02:43]OFD Sender: No OFD packet to send [10:02:48]OFD Sender: No OFD packet to send [10:02:53]OFD Sender: No OFD packet to send [10:02:58]OFD Sender: No OFD packet to send [10:03:03]OFD Sender: No OFD packet to send [10:03:08]OFD Sender: No OFD packet to send [10:03:13]OFD Sender: No OFD packet to send [10:03:18]OFD Sender: No OFD packet to send [10:03:23]OFD Sender: No OFD packet to send [10:03:28]OFD Sender: No OFD packet to send [10:03:33]OFD Sender: No OFD packet to send [10:03:38]OFD Sender: No OFD packet to send [10:03:43]OFD Sender: No OFD packet to send [10:03:48]OFD Sender: No OFD packet to send [10:03:53]OFD Sender: No OFD packet to send [10:03:58]accept exits with 7 [10:03:58]New connection [10:03:58]New thread 3067514212 created [10:03:58]Thread 3067370852 joined [10:03:58]Waiting for new connection... [10:03:58] Sock 7.Parse request [10:03:58]Sock 7.Check first char [10:03:58]Sock 7.First char is OK [10:03:58]request: POST /json_proto HTTP/1.0 [10:03:58]Method: POST [10:03:58]URL: /json_proto [10:03:58]Method is POST - this is cgi request [10:03:58]url: /json_proto [10:03:58]query_string will be loaded in cgi processing [10:03:58]execute_cgi json_proto POST (null) [10:03:58]execute_cgi path=json_proto method=POST [10:03:58]POST find Content-Length [10:03:58]Host: 172.17.51.3:8080 [10:03:58]Content-Length: 677 [10:03:58]Content-Type: application/json [10:03:58] [10:03:58]POST finish read [10:03:58]Found Content-Length = 677 [10:03:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342659", "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" ] } } [10:03:58]execute_script... [10:03: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)342659", "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" ] } } [10:03:58]POST & json_proto [10:03:58]process_json_proto [10:03:58]json parsed OK: [10:03:58]protocol is kg_v1.0 [10:03:58]action value=close_receipt [10:03:58]process_action close_receipt [10:03:58]cmd_close_receipt [10:03:58]MH_GetDate [10:03:58]Write to MH i2c: F0 00 00 C7 6F 25 [10:03:58]Write i2c OK [10:03:58]MH_I2C_Read... [10:03:58]Read from MH i2c: F0 [10:03:58]MH_I2C_Read... [10:03:58]Read from MH i2c: F0 09 00 [10:03:58]MH_I2C_Read... [10:03:58]Read from MH i2c: F0 09 00 C7 6F 00 97 D5 14 67 04 C1 95 66 D5 [10:03:58]GetLastDocTimeStamp 1729418394 [10:03:58]current date 1729418647 [10:03:58]FM_GetShiftState [10:03:58]SAM_PROTO_GetShiftState [10:03:58]wFMCommunicate request_size=4 [10:03:58]MH_SAM_APDU [10:03:58]CAPDU: 80 13 01 00 [10:03:58]Write to MH i2c: E2 08 00 C8 6F 80 13 01 00 00 00 00 00 B4 [10:03:58]Write i2c OK [10:03:58]MH_I2C_Read... [10:03:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:03:58]Read from MH i2c: E2 [10:03:58]MH_I2C_Read... [10:03:58]Read from MH i2c: E2 0E 00 [10:03:58]MH_I2C_Read... [10:03:58]Read from MH i2c: E2 0E 00 C8 6F 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 9A [10:03:58]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [10:03:58]wFMCommunicate OK [10:03:58]SAM_PROTO_GetShiftState done [10:03:58]FM_GetShiftState done [10:03:58]opened in 1729384718 [10:03:58]opened+sec_in_day 1729471118 [10:03:58]quantity*price = 50041 [10:03:58]sum+1 = 50042 [10:03:58]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 СНО: Общий режим Чек 50 20.10.2024 10:04 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30268 ФПД: 167269656215124 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T100407&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30268&fm=167269656215124&tin=02508201610067®Number=0000000000186857&sum=50000 [10:03:59]StoreToDocumentArchive [10:03:59]shift 114 fd 30268 [10:03:59]save to /storage/0114/doc_00030268 [10:03:59]save last doc name /storage/0114/doc_00030268 to /storage/kkm_last_doc_name [10:03:59]save OK [10:03:59]Clear old archive folders... [10:03:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:03:59]tlvbuf is 00BE9C30 [10:03:59]SAM_PROTO_ClearQueue [10:03:59]wFMCommunicate request_size=4 [10:03:59]MH_SAM_APDU [10:03:59]CAPDU: 80 09 00 00 [10:03:59]Write to MH i2c: E2 08 00 D5 6F 80 09 00 00 00 00 00 00 B6 [10:03:59]Write i2c OK [10:03:59]MH_I2C_Read... [10:03:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:03:59]Read from MH i2c: E2 [10:03:59]MH_I2C_Read... [10:03:59]Read from MH i2c: E2 03 00 [10:03:59]MH_I2C_Read... [10:03:59]Read from MH i2c: E2 03 00 D5 6F 00 90 00 B8 [10:03:59]RAPDU: 90 00 [10:03:59]wFMCommunicate OK [10:03:59]SAM_PROTO_ClearQueue done [10:03:59]KKMCreateOFDPacket [10:03:59]OFDProtocolAddRootSTLVToBuf [10:03:59]FM_MakeSignedData [10:03:59]FM_MakeSignedData [10:03:59]SAM_PROTO_SignData [10:03:59]wFMCommunicate request_size=4 [10:03:59]MH_SAM_APDU [10:03:59]CAPDU: 80 0D 01 02 [10:03:59]Write to MH i2c: E2 08 00 D6 6F 80 0D 01 02 00 00 00 00 BE [10:03:59]Write i2c OK [10:03:59]MH_I2C_Read... [10:03:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:03:59]Read from MH i2c: E2 [10:03:59]MH_I2C_Read... [10:03:59]Read from MH i2c: E2 03 00 [10:03:59]MH_I2C_Read... [10:03:59]Read from MH i2c: E2 03 00 D6 6F 00 90 00 B9 [10:03:59]RAPDU: 90 00 [10:03:59]wFMCommunicate OK [10:03:59]wFMCommunicate request_size=255 [10:03:59]MH_SAM_APDU [10:03:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 32 00 00 00 F4 03 04 00 97 D5 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 98 [10:03:59]Write to MH i2c: E2 02 01 D7 6F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 32 00 00 00 F4 03 04 00 97 D5 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 98 00 00 24 [10:03:59]Write i2c OK [10:03:59]MH_I2C_Read... [10:03:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:03:59]Read from MH i2c: E2 [10:03:59]MH_I2C_Read... [10:03:59]Read from MH i2c: E2 03 00 [10:03:59]MH_I2C_Read... [10:03:59]Read from MH i2c: E2 03 00 D7 6F 00 90 00 BA [10:03:59]RAPDU: 90 00 [10:03:59]wFMCommunicate OK [10:03:59]wFMCommunicate request_size=10 [10:03:59]MH_SAM_APDU [10:03:59]CAPDU: 80 0D 02 02 05 21 80 70 BE 54 [10:03:59]Write to MH i2c: E2 0D 00 D8 6F 80 0D 02 02 05 00 21 80 70 BE 54 00 00 EE [10:03:59]Write i2c OK [10:03:59]MH_I2C_Read... [10:04:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:04:00]Read from MH i2c: E2 [10:04:00]MH_I2C_Read... [10:04:00]Read from MH i2c: E2 03 00 [10:04:00]MH_I2C_Read... [10:04:00]Read from MH i2c: E2 03 00 D8 6F 00 90 00 BB [10:04:00]RAPDU: 90 00 [10:04:00]wFMCommunicate OK [10:04:00]wFMCommunicate request_size=4 [10:04:00]MH_SAM_APDU [10:04:00]CAPDU: 80 0D 03 02 [10:04:00]Write to MH i2c: E2 08 00 D9 6F 80 0D 03 02 00 00 00 00 C3 [10:04:00]Write i2c OK [10:04:00]MH_I2C_Read... [10:04:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:04:00]Read from MH i2c: E2 [10:04:00]MH_I2C_Read... [10:04:00]Read from MH i2c: E2 0B 00 [10:04:00]MH_I2C_Read... [10:04:00]Read from MH i2c: E2 0B 00 D9 6F 00 8F 9A 82 99 9D BF B4 33 90 00 4B [10:04:00]RAPDU: 8F 9A 82 99 9D BF B4 33 90 00 [10:04:00]wFMCommunicate OK [10:04:00]SAM_PROTO_SignData done [10:04:00]FM_MakeSignedData done [10:04:00]CreateOFDProtocolMessage [10:04:00]wFMCommunicate request_size=4 [10:04:00]MH_SAM_APDU [10:04:00]CAPDU: 80 11 00 00 [10:04:00]Write to MH i2c: E2 08 00 DA 6F 80 11 00 00 00 00 00 00 C3 [10:04:00]Write i2c OK [10:04:00]MH_I2C_Read... [10:04:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:04:00]Read from MH i2c: E2 [10:04:00]MH_I2C_Read... [10:04:00]Read from MH i2c: E2 17 00 [10:04:00]MH_I2C_Read... [10:04:00]Read from MH i2c: E2 17 00 DA 6F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 11 [10:04: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:04:00]wFMCommunicate OK [10:04:00]CreateOFDProtocolMessage done [10:04:00]OFDSenderStorePacket 30268 [10:04:00]StoreOFDPacket docnum=30268 [10:04: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 ED DD 07 01 F6 35 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 32 00 00 00 F4 03 04 00 97 D5 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 98 21 80 70 BE 54 8F 9A 82 99 9D BF B4 33 [10:04:00]CheckFolder [10:04:00]dirname=/storage/ofd_packets [10:04:00]CheckFolder done [10:04:00]ProducePacketName [10:04:00]name=ofd_packets/00030268 [10:04:00]NVStorageSaveData ofd_packets/00030268 [10:04:00]File name is /storage/ofd_packets/00030268 [10:04:00]Write 301 bytes [10:04:00]NVStorageSaveData done [10:04:00]OFDSenderStorePacket done [10:04:00]KKMCreateOFDPacket done [10:04:00]NVStorageSaveData kkm_last_timestamp [10:04:00]File name is /storage/kkm_last_timestamp [10:04:00]Write 4 bytes [10:04:00]NVStorageSaveData done [10:04:00]ExternCall_PrintAddStr [10:04:00]wPrintStart [10:04:00]Write to MH i2c: 01 00 00 DB 6F 4A [10:04:00]Write i2c OK [10:04:00]MH_I2C_Read... [10:04:00]Read from MH i2c: 01 [10:04:00]MH_I2C_Read... [10:04:00]Read from MH i2c: 01 07 00 [10:04:00]MH_I2C_Read... [10:04:00]Read from MH i2c: 01 07 00 DB 6F 00 00 00 00 00 FF 0F 5F [10:04:00]RasterBufferAndPrint [10:04:00]line Счет N : (1)342659 [10:04:00]line ИНН: 02508201610067 [10:04:00]line Контрольно-Кассовый Чек [10:04:00]line ПРОДАЖА [10:04:00]line ТРК (МРК, ГНК) : 63 [10:04:00]line Товар: 2710124130 [10:04:00]line Аи-92-К-2 [10:04:00]line 7.480 * 66.90 [10:04:00]line = 500.41 [10:04:00]line НДС 12% НСП 1% [10:04:00]line > о реализуемом товаре [10:04:00]line ОКРУГЛЕНИЕ: -0.41 [10:04:00]line ИТОГО: 500.00 [10:04:00]line Внесено: 500.00 [10:04:00]line СДАЧА: 0.00 [10:04:00]line НСП 1% : 4.43 [10:04:00]line НДС 12% : 53.14 [10:04:00]line Наличными: 500.00 [10:04:00]line Безнал.: 0.00 [10:04:00]line Место: АЗС № 78 "Партнер Нефть" [10:04:00]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [10:04:00]line СНО: Общий режим [10:04:00]line Чек 50 20.10.2024 10:04 [10:04:00]line Смена: 114 ФФД: 1.0 [10:04:00]line ЗНМ: 0300000137 [10:04:00]line РНМ: 0000000000186857 [10:04:00]line Версия ККМ: v1.0 [10:04:00]line ФМ: 0000000002094219 [10:04:00]line ФД: 30268 [10:04:00]line ФПД: 167269656215124 [10:04:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T100407&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30268&fm=167269656215124&tin=02508201610067®Number=0000000000186857&sum=50000 [10:04:00]OFD Sender: Processing packet 30268 [packets to send 10, broken 9] [10:04:00]ProducePacketName [10:04:00]name=ofd_packets/00030268 [10:04:00]OFD Sender: To server: pG, [10:04:00]CommunicateWithHost lk.salyk.kg:30040 [10:04:00]ConnectInit lk.salyk.kg [10:04:00]written 0, free lines is 4095 [10:04:00]Connected sock=10 [10:04: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 ED DD 07 01 F6 35 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 32 00 00 00 F4 03 04 00 97 D5 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 98 21 80 70 BE 54 8F 9A 82 99 9D BF B4 33 [10:04: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 8A C4 47 00 D8 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 3C 76 00 00 F4 03 04 00 1B 80 14 67 B6 04 01 00 00 56 2F 90 2E 26 2A 92 8D [10:04:00]CommunicateWithHost err = 0 [10:04:00]CheckOFDResponse [10:04:00]1017 (14) - 77093643461234 [10:04:00]1041 (16) - 0000000002094219 [10:04:00]1040 (4) - 30268 [10:04:00]1012 (4) - 20.10.2024 03:59 [10:04:00]1206 (1) - 0 [10:04:00]OFD Sender: Remove packet 30268 [10:04:00]ProducePacketName [10:04:00]name=ofd_packets/00030268 [10:04:00]NVStorageDeleteData [10:04:00]Write to MH i2c: 01 00 00 06 70 76 [10:04:00]Write i2c OK [10:04:00]MH_I2C_Read... [10:04:00]Read from MH i2c: 01 [10:04:00]MH_I2C_Read... [10:04:00]Read from MH i2c: 01 07 00 [10:04:00]MH_I2C_Read... [10:04:00]Read from MH i2c: 01 07 00 06 70 00 00 00 00 00 ED 0C 76 [10:04:00]RasterBufferAndPrint [10:04:00]line [10:04:00]line [10:04:00]line [10:04:00]line [10:04:00]line [10:04:00]written 0, free lines is 3315 [10:04:00]MH_Cut [10:04:00]Write to MH i2c: D1 01 00 0D 70 01 4F [10:04:00]Write i2c OK [10:04:00]MH_I2C_Read... [10:04:00]Read from MH i2c: D1 [10:04:00]MH_I2C_Read... [10:04:00]Read from MH i2c: D1 01 00 [10:04:00]MH_I2C_Read... [10:04:00]Read from MH i2c: D1 01 00 0D 70 00 4E [10:04:00]Write to MH i2c: 01 00 00 0E 70 7E [10:04:00]Write i2c OK [10:04:00]MH_I2C_Read... [10:04:01]OFD Sender: No OFD packet to send [10:04:01]*** Cut start [10:04:01]*** Partial cut [10:04:01]*** CUTSNS_PIN = 1 [10:04:01]*** CUTSNS_PIN = 0 [10:04:01]*** Brake cut motor [10:04:02]Read from MH i2c: 01 [10:04:02]MH_I2C_Read... [10:04:02]*** Stop cut motor [10:04:02]*** Cut end [10:04:02]Read from MH i2c: 01 07 00 [10:04:02]MH_I2C_Read... [10:04:02]Read from MH i2c: 01 07 00 0E 70 00 00 00 00 00 FF 0F 93 [10:04:02]process_action close_receipt done [10:04:02]requested_data is exist [10:04:02]produce_requested_data [10:04:02]requested_item fm.sn is exist - process it [10:04:02]wFMCommunicate request_size=4 [10:04:02]MH_SAM_APDU [10:04:02]CAPDU: 80 11 00 00 [10:04:02]Write to MH i2c: E2 08 00 0F 70 80 11 00 00 00 00 00 00 F9 [10:04:02]Write i2c OK [10:04:02]MH_I2C_Read... [10:04:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:04:02]Read from MH i2c: E2 [10:04:02]MH_I2C_Read... [10:04:02]Read from MH i2c: E2 17 00 [10:04:02]MH_I2C_Read... [10:04:02]Read from MH i2c: E2 17 00 0F 70 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:04:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [10:04:02]wFMCommunicate OK [10:04:02]requested_item fd.num is exist - process it [10:04:02]SAM_PROTO_GetFieldsCounters [10:04:02]wFMCommunicate request_size=4 [10:04:02]MH_SAM_APDU [10:04:02]CAPDU: 80 13 00 00 [10:04:02]Write to MH i2c: E2 08 00 10 70 80 13 00 00 00 00 00 00 FC [10:04:02]Write i2c OK [10:04:02]MH_I2C_Read... [10:04:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:04:02]Read from MH i2c: E2 [10:04:02]MH_I2C_Read... [10:04:02]Read from MH i2c: E2 62 00 [10:04:02]MH_I2C_Read... [10:04:02]Read from MH i2c: E2 62 00 10 70 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 DC [10:04: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 3C 76 00 00 0E 04 04 00 72 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 [10:04:02]wFMCommunicate OK [10:04:02]SAM_PROTO_GetFieldsCounters done [10:04:02]requested_item shift.num is exist - process it [10:04:02]requested_item shift.opened is exist - process it [10:04:02]req_shift_opened [10:04:02]FM_GetShiftState [10:04:02]SAM_PROTO_GetShiftState [10:04:02]wFMCommunicate request_size=4 [10:04:02]MH_SAM_APDU [10:04:02]CAPDU: 80 13 01 00 [10:04:02]Write to MH i2c: E2 08 00 11 70 80 13 01 00 00 00 00 00 FE [10:04:02]Write i2c OK [10:04:02]MH_I2C_Read... [10:04:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:04:02]Read from MH i2c: E2 [10:04:02]MH_I2C_Read... [10:04:02]Read from MH i2c: E2 0E 00 [10:04:02]MH_I2C_Read... [10:04:02]Read from MH i2c: E2 0E 00 11 70 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 E4 [10:04:02]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [10:04:02]wFMCommunicate OK [10:04:02]SAM_PROTO_GetShiftState done [10:04:02]FM_GetShiftState done [10:04:02]req_shift_opened done [10:04:02]requested_item shift.open_date is exist - process it [10:04:02]req_shift_open_date [10:04:02]req_shift_open_date done [10:04:02]produce_requested_data done [10:04:02]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30268,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [10:04:02]process_action_free close_receipt [10:04:02]json_value_free [10:04:02]json_value_free done [10:04:02]process_json_proto returns [10:04:02]Send response to host [10:04:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30268,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [10:04:02]free response buf [10:04:02]execute_script done [10:04:02]execute_script returns [10:04:02]free content buf [10:04:02]Sock 7.Close socket [10:04:02]Sock 7.Thread stoped [10:04:06]OFD Sender: No OFD packet to send [10:04:11]OFD Sender: No OFD packet to send [10:04:16]OFD Sender: No OFD packet to send [10:04:21]OFD Sender: No OFD packet to send [10:04:26]OFD Sender: No OFD packet to send [10:04:31]OFD Sender: No OFD packet to send [10:04:36]OFD Sender: No OFD packet to send [10:04:41]OFD Sender: No OFD packet to send [10:04:46]OFD Sender: No OFD packet to send [10:04:51]OFD Sender: No OFD packet to send [10:04:56]OFD Sender: No OFD packet to send [10:05:01]OFD Sender: No OFD packet to send [10:05:06]OFD Sender: No OFD packet to send [10:05:11]OFD Sender: No OFD packet to send [10:05:16]OFD Sender: No OFD packet to send [10:05:21]OFD Sender: No OFD packet to send [10:05:26]OFD Sender: No OFD packet to send [10:05:31]OFD Sender: No OFD packet to send [10:05:36]OFD Sender: No OFD packet to send [10:05:41]OFD Sender: No OFD packet to send [10:05:46]OFD Sender: No OFD packet to send [10:05:51]OFD Sender: No OFD packet to send [10:05:56]OFD Sender: No OFD packet to send [10:06:01]OFD Sender: No OFD packet to send [10:06:06]OFD Sender: No OFD packet to send [10:06:11]accept exits with 9 [10:06:11]New connection [10:06:11]New thread 3067370852 created [10:06:11]Thread 3067514212 joined [10:06:11]Waiting for new connection... [10:06:11] Sock 9.Parse request [10:06:11]Sock 9.Check first char [10:06:11]Sock 9.First char is OK [10:06:11]request: POST /json_proto HTTP/1.0 [10:06:11]Method: POST [10:06:11]URL: /json_proto [10:06:11]Method is POST - this is cgi request [10:06:11]url: /json_proto [10:06:11]query_string will be loaded in cgi processing [10:06:11]execute_cgi json_proto POST (null) [10:06:11]execute_cgi path=json_proto method=POST [10:06:11]POST find Content-Length [10:06:11]Host: 172.17.51.3:8080 [10:06:11]Content-Length: 677 [10:06:11]Content-Type: application/json [10:06:11] [10:06:11]POST finish read [10:06:11]Found Content-Length = 677 [10:06:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342660", "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" ] } } [10:06:11]execute_script... [10:06: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)342660", "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" ] } } [10:06:11]POST & json_proto [10:06:11]process_json_proto [10:06:11]json parsed OK: [10:06:11]protocol is kg_v1.0 [10:06:11]action value=close_receipt [10:06:11]process_action close_receipt [10:06:11]cmd_close_receipt [10:06:11]MH_GetDate [10:06:11]Write to MH i2c: F0 00 00 12 70 71 [10:06:11]Write i2c OK [10:06:11]MH_I2C_Read... [10:06:11]Read from MH i2c: F0 [10:06:11]MH_I2C_Read... [10:06:11]Read from MH i2c: F0 09 00 [10:06:11]MH_I2C_Read... [10:06:11]Read from MH i2c: F0 09 00 12 70 00 1C D6 14 67 04 C1 95 66 A7 [10:06:11]GetLastDocTimeStamp 1729418647 [10:06:11]current date 1729418780 [10:06:11]FM_GetShiftState [10:06:11]SAM_PROTO_GetShiftState [10:06:11]wFMCommunicate request_size=4 [10:06:11]MH_SAM_APDU [10:06:11]CAPDU: 80 13 01 00 [10:06:11]Write to MH i2c: E2 08 00 13 70 80 13 01 00 00 00 00 00 00 [10:06:11]Write i2c OK [10:06:11]MH_I2C_Read... [10:06:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:06:11]Read from MH i2c: E2 [10:06:11]MH_I2C_Read... [10:06:11]Read from MH i2c: E2 0E 00 [10:06:11]MH_I2C_Read... [10:06:11]Read from MH i2c: E2 0E 00 13 70 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 E6 [10:06:11]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [10:06:11]wFMCommunicate OK [10:06:11]SAM_PROTO_GetShiftState done [10:06:11]FM_GetShiftState done [10:06:11]opened in 1729384718 [10:06:11]opened+sec_in_day 1729471118 [10:06:11]quantity*price = 40006 [10:06:11]sum+1 = 40007 [10:06:11]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 СНО: Общий режим Чек 51 20.10.2024 10:06 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30269 ФПД: 148063827096179 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T100620&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30269&fm=148063827096179&tin=02508201610067®Number=0000000000186857&sum=40000 [10:06:12]StoreToDocumentArchive [10:06:12]shift 114 fd 30269 [10:06:12]save to /storage/0114/doc_00030269 [10:06:12]save last doc name /storage/0114/doc_00030269 to /storage/kkm_last_doc_name [10:06:12]save OK [10:06:12]Clear old archive folders... [10:06:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:06:12]tlvbuf is 00B23520 [10:06:12]SAM_PROTO_ClearQueue [10:06:12]wFMCommunicate request_size=4 [10:06:12]MH_SAM_APDU [10:06:12]CAPDU: 80 09 00 00 [10:06:12]Write to MH i2c: E2 08 00 20 70 80 09 00 00 00 00 00 00 02 [10:06:12]Write i2c OK [10:06:12]MH_I2C_Read... [10:06:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:06:12]Read from MH i2c: E2 [10:06:12]MH_I2C_Read... [10:06:12]Read from MH i2c: E2 03 00 [10:06:12]MH_I2C_Read... [10:06:12]Read from MH i2c: E2 03 00 20 70 00 90 00 04 [10:06:12]RAPDU: 90 00 [10:06:12]wFMCommunicate OK [10:06:12]SAM_PROTO_ClearQueue done [10:06:12]KKMCreateOFDPacket [10:06:12]OFDProtocolAddRootSTLVToBuf [10:06:12]FM_MakeSignedData [10:06:12]FM_MakeSignedData [10:06:12]SAM_PROTO_SignData [10:06:12]wFMCommunicate request_size=4 [10:06:12]MH_SAM_APDU [10:06:12]CAPDU: 80 0D 01 02 [10:06:12]Write to MH i2c: E2 08 00 21 70 80 0D 01 02 00 00 00 00 0A [10:06:12]Write i2c OK [10:06:12]MH_I2C_Read... [10:06:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:06:12]Read from MH i2c: E2 [10:06:12]MH_I2C_Read... [10:06:12]Read from MH i2c: E2 03 00 [10:06:12]MH_I2C_Read... [10:06:12]Read from MH i2c: E2 03 00 21 70 00 90 00 05 [10:06:12]RAPDU: 90 00 [10:06:12]wFMCommunicate OK [10:06:12]wFMCommunicate request_size=255 [10:06:12]MH_SAM_APDU [10:06: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 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 33 00 00 00 F4 03 04 00 1C D6 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 86 [10:06:12]Write to MH i2c: E2 02 01 22 70 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 33 00 00 00 F4 03 04 00 1C D6 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 86 00 00 B5 [10:06:12]Write i2c OK [10:06:12]MH_I2C_Read... [10:06:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:06:12]Read from MH i2c: E2 [10:06:12]MH_I2C_Read... [10:06:12]Read from MH i2c: E2 03 00 [10:06:12]MH_I2C_Read... [10:06:12]Read from MH i2c: E2 03 00 22 70 00 90 00 06 [10:06:12]RAPDU: 90 00 [10:06:12]wFMCommunicate OK [10:06:12]wFMCommunicate request_size=10 [10:06:12]MH_SAM_APDU [10:06:12]CAPDU: 80 0D 02 02 05 A9 CB D1 72 73 [10:06:12]Write to MH i2c: E2 0D 00 23 70 80 0D 02 02 05 00 A9 CB D1 72 73 00 00 41 [10:06:12]Write i2c OK [10:06:12]MH_I2C_Read... [10:06:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:06:12]Read from MH i2c: E2 [10:06:12]MH_I2C_Read... [10:06:12]Read from MH i2c: E2 03 00 [10:06:12]MH_I2C_Read... [10:06:12]Read from MH i2c: E2 03 00 23 70 00 90 00 07 [10:06:12]RAPDU: 90 00 [10:06:12]wFMCommunicate OK [10:06:12]wFMCommunicate request_size=4 [10:06:12]MH_SAM_APDU [10:06:12]CAPDU: 80 0D 03 02 [10:06:12]Write to MH i2c: E2 08 00 24 70 80 0D 03 02 00 00 00 00 0F [10:06:12]Write i2c OK [10:06:12]MH_I2C_Read... [10:06:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:06:12]Read from MH i2c: E2 [10:06:12]MH_I2C_Read... [10:06:12]Read from MH i2c: E2 0B 00 [10:06:12]MH_I2C_Read... [10:06:12]Read from MH i2c: E2 0B 00 24 70 00 7B F3 BE 55 56 9F 02 B2 90 00 3A [10:06:12]RAPDU: 7B F3 BE 55 56 9F 02 B2 90 00 [10:06:12]wFMCommunicate OK [10:06:12]SAM_PROTO_SignData done [10:06:12]FM_MakeSignedData done [10:06:12]CreateOFDProtocolMessage [10:06:12]wFMCommunicate request_size=4 [10:06:12]MH_SAM_APDU [10:06:12]CAPDU: 80 11 00 00 [10:06:12]Write to MH i2c: E2 08 00 25 70 80 11 00 00 00 00 00 00 0F [10:06:12]Write i2c OK [10:06:12]MH_I2C_Read... [10:06:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:06:13]Read from MH i2c: E2 [10:06:13]MH_I2C_Read... [10:06:13]Read from MH i2c: E2 17 00 [10:06:13]MH_I2C_Read... [10:06:13]Read from MH i2c: E2 17 00 25 70 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 5D [10:06:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [10:06:13]wFMCommunicate OK [10:06:13]CreateOFDProtocolMessage done [10:06:13]OFDSenderStorePacket 30269 [10:06:13]StoreOFDPacket docnum=30269 [10:06: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 1B AA 07 01 B0 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 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 33 00 00 00 F4 03 04 00 1C D6 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 86 A9 CB D1 72 73 7B F3 BE 55 56 9F 02 B2 [10:06:13]CheckFolder [10:06:13]dirname=/storage/ofd_packets [10:06:13]CheckFolder done [10:06:13]ProducePacketName [10:06:13]name=ofd_packets/00030269 [10:06:13]NVStorageSaveData ofd_packets/00030269 [10:06:13]File name is /storage/ofd_packets/00030269 [10:06:13]Write 301 bytes [10:06:13]NVStorageSaveData done [10:06:13]OFDSenderStorePacket done [10:06:13]KKMCreateOFDPacket done [10:06:13]NVStorageSaveData kkm_last_timestamp [10:06:13]File name is /storage/kkm_last_timestamp [10:06:13]Write 4 bytes [10:06:13]NVStorageSaveData done [10:06:13]ExternCall_PrintAddStr [10:06:13]wPrintStart [10:06:13]Write to MH i2c: 01 00 00 26 70 96 [10:06:13]Write i2c OK [10:06:13]MH_I2C_Read... [10:06:13]Read from MH i2c: 01 [10:06:13]MH_I2C_Read... [10:06:13]Read from MH i2c: 01 07 00 [10:06:13]MH_I2C_Read... [10:06:13]Read from MH i2c: 01 07 00 26 70 00 00 00 00 00 FF 0F AB [10:06:13]RasterBufferAndPrint [10:06:13]line Счет N : (1)342660 [10:06:13]line ИНН: 02508201610067 [10:06:13]line Контрольно-Кассовый Чек [10:06:13]line ПРОДАЖА [10:06:13]line ТРК (МРК, ГНК) : 43 [10:06:13]line Товар: 2710124130 [10:06:13]line Аи-92-К-2 [10:06:13]line 5.980 * 66.90 [10:06:13]line = 400.06 [10:06:13]line НДС 12% НСП 1% [10:06:13]line > о реализуемом товаре [10:06:13]line ОКРУГЛЕНИЕ: -0.06 [10:06:13]line ИТОГО: 400.00 [10:06:13]line Внесено: 400.00 [10:06:13]line СДАЧА: 0.00 [10:06:13]line НСП 1% : 3.54 [10:06:13]line НДС 12% : 42.48 [10:06:13]line Наличными: 400.00 [10:06:13]line Безнал.: 0.00 [10:06:13]line Место: АЗС № 78 "Партнер Нефть" [10:06:13]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [10:06:13]line СНО: Общий режим [10:06:13]line Чек 51 20.10.2024 10:06 [10:06:13]line Смена: 114 ФФД: 1.0 [10:06:13]line ЗНМ: 0300000137 [10:06:13]line РНМ: 0000000000186857 [10:06:13]line Версия ККМ: v1.0 [10:06:13]line ФМ: 0000000002094219 [10:06:13]line ФД: 30269 [10:06:13]line ФПД: 148063827096179 [10:06:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T100620&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30269&fm=148063827096179&tin=02508201610067®Number=0000000000186857&sum=40000 [10:06:13]OFD Sender: Processing packet 30269 [packets to send 10, broken 9] [10:06:13]ProducePacketName [10:06:13]name=ofd_packets/00030269 [10:06:13]OFD Sender: To server: pG, [10:06:13]CommunicateWithHost lk.salyk.kg:30040 [10:06:13]ConnectInit lk.salyk.kg [10:06:13]written 0, free lines is 4095 [10:06:13]Connected sock=11 [10:06: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 1B AA 07 01 B0 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 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 33 00 00 00 F4 03 04 00 1C D6 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 86 A9 CB D1 72 73 7B F3 BE 55 56 9F 02 B2 [10:06: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 0C 11 47 00 77 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 3D 76 00 00 F4 03 04 00 A0 80 14 67 B6 04 01 00 00 23 F1 D4 90 F5 68 2C 66 [10:06:13]CommunicateWithHost err = 0 [10:06:13]CheckOFDResponse [10:06:13]1017 (14) - 77093643461234 [10:06:13]1041 (16) - 0000000002094219 [10:06:13]1040 (4) - 30269 [10:06:13]1012 (4) - 20.10.2024 04:01 [10:06:13]1206 (1) - 0 [10:06:13]OFD Sender: Remove packet 30269 [10:06:13]ProducePacketName [10:06:13]name=ofd_packets/00030269 [10:06:13]NVStorageDeleteData [10:06:13]Write to MH i2c: 01 00 00 51 70 C1 [10:06:13]Write i2c OK [10:06:13]MH_I2C_Read... [10:06:13]Read from MH i2c: 01 [10:06:13]MH_I2C_Read... [10:06:13]Read from MH i2c: 01 07 00 [10:06:13]MH_I2C_Read... [10:06:13]Read from MH i2c: 01 07 00 51 70 00 00 00 00 00 E3 0C B7 [10:06:13]RasterBufferAndPrint [10:06:13]line [10:06:13]line [10:06:13]line [10:06:13]line [10:06:13]line [10:06:13]written 0, free lines is 3305 [10:06:13]MH_Cut [10:06:13]Write to MH i2c: D1 01 00 58 70 01 9A [10:06:13]Write i2c OK [10:06:13]MH_I2C_Read... [10:06:13]Read from MH i2c: D1 [10:06:13]MH_I2C_Read... [10:06:13]Read from MH i2c: D1 01 00 [10:06:13]MH_I2C_Read... [10:06:13]Read from MH i2c: D1 01 00 58 70 00 99 [10:06:13]Write to MH i2c: 01 00 00 59 70 C9 [10:06:13]Write i2c OK [10:06:13]MH_I2C_Read... [10:06:14]OFD Sender: No OFD packet to send [10:06:14]*** Cut start [10:06:14]*** Partial cut [10:06:14]*** CUTSNS_PIN = 1 [10:06:14]*** CUTSNS_PIN = 0 [10:06:14]*** Brake cut motor [10:06:15]Read from MH i2c: 01 [10:06:15]MH_I2C_Read... [10:06:15]*** Stop cut motor [10:06:15]*** Cut end [10:06:15]Read from MH i2c: 01 07 00 [10:06:15]MH_I2C_Read... [10:06:15]Read from MH i2c: 01 07 00 59 70 00 00 00 00 00 FF 0F DE [10:06:15]process_action close_receipt done [10:06:15]requested_data is exist [10:06:15]produce_requested_data [10:06:15]requested_item fm.sn is exist - process it [10:06:15]wFMCommunicate request_size=4 [10:06:15]MH_SAM_APDU [10:06:15]CAPDU: 80 11 00 00 [10:06:15]Write to MH i2c: E2 08 00 5A 70 80 11 00 00 00 00 00 00 44 [10:06:15]Write i2c OK [10:06:15]MH_I2C_Read... [10:06:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:06:15]Read from MH i2c: E2 [10:06:15]MH_I2C_Read... [10:06:15]Read from MH i2c: E2 17 00 [10:06:15]MH_I2C_Read... [10:06:15]Read from MH i2c: E2 17 00 5A 70 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: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 [10:06:15]wFMCommunicate OK [10:06:15]requested_item fd.num is exist - process it [10:06:15]SAM_PROTO_GetFieldsCounters [10:06:15]wFMCommunicate request_size=4 [10:06:15]MH_SAM_APDU [10:06:15]CAPDU: 80 13 00 00 [10:06:15]Write to MH i2c: E2 08 00 5B 70 80 13 00 00 00 00 00 00 47 [10:06:15]Write i2c OK [10:06:15]MH_I2C_Read... [10:06:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:06:15]Read from MH i2c: E2 [10:06:15]MH_I2C_Read... [10:06:15]Read from MH i2c: E2 62 00 [10:06:15]MH_I2C_Read... [10:06:15]Read from MH i2c: E2 62 00 5B 70 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 2B [10:06: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 3D 76 00 00 0E 04 04 00 72 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 [10:06:15]wFMCommunicate OK [10:06:15]SAM_PROTO_GetFieldsCounters done [10:06:15]requested_item shift.num is exist - process it [10:06:15]requested_item shift.opened is exist - process it [10:06:15]req_shift_opened [10:06:15]FM_GetShiftState [10:06:15]SAM_PROTO_GetShiftState [10:06:15]wFMCommunicate request_size=4 [10:06:15]MH_SAM_APDU [10:06:15]CAPDU: 80 13 01 00 [10:06:15]Write to MH i2c: E2 08 00 5C 70 80 13 01 00 00 00 00 00 49 [10:06:15]Write i2c OK [10:06:15]MH_I2C_Read... [10:06:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:06:15]Read from MH i2c: E2 [10:06:15]MH_I2C_Read... [10:06:15]Read from MH i2c: E2 0E 00 [10:06:15]MH_I2C_Read... [10:06:15]Read from MH i2c: E2 0E 00 5C 70 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 2F [10:06:15]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [10:06:15]wFMCommunicate OK [10:06:15]SAM_PROTO_GetShiftState done [10:06:15]FM_GetShiftState done [10:06:15]req_shift_opened done [10:06:15]requested_item shift.open_date is exist - process it [10:06:15]req_shift_open_date [10:06:15]req_shift_open_date done [10:06:15]produce_requested_data done [10:06:15]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30269,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [10:06:15]process_action_free close_receipt [10:06:15]json_value_free [10:06:15]json_value_free done [10:06:15]process_json_proto returns [10:06:15]Send response to host [10:06:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30269,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [10:06:15]free response buf [10:06:15]execute_script done [10:06:15]execute_script returns [10:06:15]free content buf [10:06:15]Sock 9.Close socket [10:06:15]Sock 9.Thread stoped [10:06:19]OFD Sender: No OFD packet to send [10:06:24]OFD Sender: No OFD packet to send [10:06:29]OFD Sender: No OFD packet to send [10:06:34]OFD Sender: No OFD packet to send [10:06:39]OFD Sender: No OFD packet to send [10:06:44]OFD Sender: No OFD packet to send [10:06:49]OFD Sender: No OFD packet to send [10:06:54]OFD Sender: No OFD packet to send [10:06:59]OFD Sender: No OFD packet to send [10:07:02]accept exits with 7 [10:07:02]New connection [10:07:02]New thread 3067514212 created [10:07:02]Thread 3067370852 joined [10:07:02]Waiting for new connection... [10:07:02] Sock 7.Parse request [10:07:02]Sock 7.Check first char [10:07:02]Sock 7.First char is OK [10:07:02]request: POST /json_proto HTTP/1.0 [10:07:02]Method: POST [10:07:02]URL: /json_proto [10:07:02]Method is POST - this is cgi request [10:07:02]url: /json_proto [10:07:02]query_string will be loaded in cgi processing [10:07:02]execute_cgi json_proto POST (null) [10:07:02]execute_cgi path=json_proto method=POST [10:07:02]POST find Content-Length [10:07:02]Host: 172.17.51.3:8080 [10:07:02]Content-Length: 678 [10:07:02]Content-Type: application/json [10:07:02] [10:07:02]POST finish read [10:07:02]Found Content-Length = 678 [10:07:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342661", "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.000, "sum" : 890.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 890.00, "total" : 890.00, "payments": [ { "type": 0, "sum" : 890.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:07:02]execute_script... [10:07: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)342661", "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.000, "sum" : 890.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 890.00, "total" : 890.00, "payments": [ { "type": 0, "sum" : 890.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:07:02]POST & json_proto [10:07:02]process_json_proto [10:07:02]json parsed OK: [10:07:02]protocol is kg_v1.0 [10:07:02]action value=close_receipt [10:07:02]process_action close_receipt [10:07:02]cmd_close_receipt [10:07:02]MH_GetDate [10:07:02]Write to MH i2c: F0 00 00 5D 70 BC [10:07:02]Write i2c OK [10:07:02]MH_I2C_Read... [10:07:02]Read from MH i2c: F0 [10:07:02]MH_I2C_Read... [10:07:02]Read from MH i2c: F0 09 00 [10:07:02]MH_I2C_Read... [10:07:02]Read from MH i2c: F0 09 00 5D 70 00 4F D6 14 67 04 C1 95 66 25 [10:07:02]GetLastDocTimeStamp 1729418780 [10:07:02]current date 1729418831 [10:07:02]FM_GetShiftState [10:07:02]SAM_PROTO_GetShiftState [10:07:02]wFMCommunicate request_size=4 [10:07:02]MH_SAM_APDU [10:07:02]CAPDU: 80 13 01 00 [10:07:02]Write to MH i2c: E2 08 00 5E 70 80 13 01 00 00 00 00 00 4B [10:07:02]Write i2c OK [10:07:02]MH_I2C_Read... [10:07:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:07:02]Read from MH i2c: E2 [10:07:02]MH_I2C_Read... [10:07:02]Read from MH i2c: E2 0E 00 [10:07:02]MH_I2C_Read... [10:07:02]Read from MH i2c: E2 0E 00 5E 70 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 31 [10:07:02]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [10:07:02]wFMCommunicate OK [10:07:02]SAM_PROTO_GetShiftState done [10:07:02]FM_GetShiftState done [10:07:02]opened in 1729384718 [10:07:02]opened+sec_in_day 1729471118 [10:07:02]quantity*price = 89040 [10:07:02]sum+1 = 89041 [10:07:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.40 ИТОГО: 890.00 Внесено: 890.00 СДАЧА: 0.00 НСП 1% : 7.88 НДС 12% : 94.56 Наличными: 890.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 52 20.10.2024 10:07 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30270 ФПД: 225346739106182 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T100711&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30270&fm=225346739106182&tin=02508201610067®Number=0000000000186857&sum=89000 [10:07:03]StoreToDocumentArchive [10:07:03]shift 114 fd 30270 [10:07:03]save to /storage/0114/doc_00030270 [10:07:03]save last doc name /storage/0114/doc_00030270 to /storage/kkm_last_doc_name [10:07:03]save OK [10:07:03]Clear old archive folders... [10:07:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:07:03]tlvbuf is 00BD1A80 [10:07:03]SAM_PROTO_ClearQueue [10:07:03]wFMCommunicate request_size=4 [10:07:03]MH_SAM_APDU [10:07:03]CAPDU: 80 09 00 00 [10:07:03]Write to MH i2c: E2 08 00 6B 70 80 09 00 00 00 00 00 00 4D [10:07:03]Write i2c OK [10:07:03]MH_I2C_Read... [10:07:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:07:03]Read from MH i2c: E2 [10:07:03]MH_I2C_Read... [10:07:03]Read from MH i2c: E2 03 00 [10:07:03]MH_I2C_Read... [10:07:03]Read from MH i2c: E2 03 00 6B 70 00 90 00 4F [10:07:03]RAPDU: 90 00 [10:07:03]wFMCommunicate OK [10:07:03]SAM_PROTO_ClearQueue done [10:07:03]KKMCreateOFDPacket [10:07:03]OFDProtocolAddRootSTLVToBuf [10:07:03]FM_MakeSignedData [10:07:03]FM_MakeSignedData [10:07:03]SAM_PROTO_SignData [10:07:03]wFMCommunicate request_size=4 [10:07:03]MH_SAM_APDU [10:07:03]CAPDU: 80 0D 01 02 [10:07:03]Write to MH i2c: E2 08 00 6C 70 80 0D 01 02 00 00 00 00 55 [10:07:03]Write i2c OK [10:07:03]MH_I2C_Read... [10:07:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:07:04]Read from MH i2c: E2 [10:07:04]MH_I2C_Read... [10:07:04]Read from MH i2c: E2 03 00 [10:07:04]MH_I2C_Read... [10:07:04]Read from MH i2c: E2 03 00 6C 70 00 90 00 50 [10:07:04]RAPDU: 90 00 [10:07:04]wFMCommunicate OK [10:07:04]wFMCommunicate request_size=255 [10:07:04]MH_SAM_APDU [10:07:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 E0 2E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 D0 5B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 5B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 14 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F0 24 00 00 00 00 07 04 06 00 A8 5B 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 4F D6 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 CC [10:07:04]Write to MH i2c: E2 02 01 6D 70 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 2E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 D0 5B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 5B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 14 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F0 24 00 00 00 00 07 04 06 00 A8 5B 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 4F D6 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 CC 00 00 B1 [10:07:04]Write i2c OK [10:07:04]MH_I2C_Read... [10:07:04]OFD Sender: No OFD packet to send [10:07:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:07:04]Read from MH i2c: E2 [10:07:04]MH_I2C_Read... [10:07:04]Read from MH i2c: E2 03 00 [10:07:04]MH_I2C_Read... [10:07:04]Read from MH i2c: E2 03 00 6D 70 00 90 00 51 [10:07:04]RAPDU: 90 00 [10:07:04]wFMCommunicate OK [10:07:04]wFMCommunicate request_size=10 [10:07:04]MH_SAM_APDU [10:07:04]CAPDU: 80 0D 02 02 05 F3 A0 55 F1 86 [10:07:04]Write to MH i2c: E2 0D 00 6E 70 80 0D 02 02 05 00 F3 A0 55 F1 86 00 00 C1 [10:07:04]Write i2c OK [10:07:04]MH_I2C_Read... [10:07:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:07:04]Read from MH i2c: E2 [10:07:04]MH_I2C_Read... [10:07:04]Read from MH i2c: E2 03 00 [10:07:04]MH_I2C_Read... [10:07:04]Read from MH i2c: E2 03 00 6E 70 00 90 00 52 [10:07:04]RAPDU: 90 00 [10:07:04]wFMCommunicate OK [10:07:04]wFMCommunicate request_size=4 [10:07:04]MH_SAM_APDU [10:07:04]CAPDU: 80 0D 03 02 [10:07:04]Write to MH i2c: E2 08 00 6F 70 80 0D 03 02 00 00 00 00 5A [10:07:04]Write i2c OK [10:07:04]MH_I2C_Read... [10:07:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:07:04]Read from MH i2c: E2 [10:07:04]MH_I2C_Read... [10:07:04]Read from MH i2c: E2 0B 00 [10:07:04]MH_I2C_Read... [10:07:04]Read from MH i2c: E2 0B 00 6F 70 00 4B C6 6B 3E 70 51 A4 A3 90 00 1D [10:07:04]RAPDU: 4B C6 6B 3E 70 51 A4 A3 90 00 [10:07:04]wFMCommunicate OK [10:07:04]SAM_PROTO_SignData done [10:07:04]FM_MakeSignedData done [10:07:04]CreateOFDProtocolMessage [10:07:04]wFMCommunicate request_size=4 [10:07:04]MH_SAM_APDU [10:07:04]CAPDU: 80 11 00 00 [10:07:04]Write to MH i2c: E2 08 00 70 70 80 11 00 00 00 00 00 00 5A [10:07:04]Write i2c OK [10:07:04]MH_I2C_Read... [10:07:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:07:04]Read from MH i2c: E2 [10:07:04]MH_I2C_Read... [10:07:04]Read from MH i2c: E2 17 00 [10:07:04]MH_I2C_Read... [10:07:04]Read from MH i2c: E2 17 00 70 70 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 A8 [10:07:04]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:04]wFMCommunicate OK [10:07:04]CreateOFDProtocolMessage done [10:07:04]OFDSenderStorePacket 30270 [10:07:04]StoreOFDPacket docnum=30270 [10:07: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 E5 3E 07 01 B6 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 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 2E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 D0 5B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 5B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 14 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F0 24 00 00 00 00 07 04 06 00 A8 5B 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 4F D6 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 CC F3 A0 55 F1 86 4B C6 6B 3E 70 51 A4 A3 [10:07:04]CheckFolder [10:07:04]dirname=/storage/ofd_packets [10:07:04]CheckFolder done [10:07:04]ProducePacketName [10:07:04]name=ofd_packets/00030270 [10:07:04]NVStorageSaveData ofd_packets/00030270 [10:07:04]File name is /storage/ofd_packets/00030270 [10:07:04]Write 301 bytes [10:07:04]NVStorageSaveData done [10:07:04]OFDSenderStorePacket done [10:07:04]KKMCreateOFDPacket done [10:07:04]NVStorageSaveData kkm_last_timestamp [10:07:04]File name is /storage/kkm_last_timestamp [10:07:04]Write 4 bytes [10:07:04]NVStorageSaveData done [10:07:04]ExternCall_PrintAddStr [10:07:04]wPrintStart [10:07:04]Write to MH i2c: 01 00 00 71 70 E1 [10:07:04]Write i2c OK [10:07:04]MH_I2C_Read... [10:07:04]Read from MH i2c: 01 [10:07:04]MH_I2C_Read... [10:07:04]Read from MH i2c: 01 07 00 [10:07:04]MH_I2C_Read... [10:07:04]Read from MH i2c: 01 07 00 71 70 00 00 00 00 00 FF 0F F6 [10:07:04]RasterBufferAndPrint [10:07:04]line Счет N : (1)342661 [10:07:04]line ИНН: 02508201610067 [10:07:04]line Контрольно-Кассовый Чек [10:07:04]line ПРОДАЖА [10:07:04]line ТРК (МРК, ГНК) : 62 [10:07:04]line Товар: 2710124500 [10:07:04]line Аи-95-К-3 [10:07:04]line 12.000 * 74.20 [10:07:04]line = 890.40 [10:07:04]line НДС 12% НСП 1% [10:07:04]line > о реализуемом товаре [10:07:04]line ОКРУГЛЕНИЕ: -0.40 [10:07:04]line ИТОГО: 890.00 [10:07:04]line Внесено: 890.00 [10:07:04]line СДАЧА: 0.00 [10:07:04]line НСП 1% : 7.88 [10:07:04]line НДС 12% : 94.56 [10:07:04]line Наличными: 890.00 [10:07:04]line Безнал.: 0.00 [10:07:04]line Место: АЗС № 78 "Партнер Нефть" [10:07:04]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [10:07:04]line СНО: Общий режим [10:07:04]line Чек 52 20.10.2024 10:07 [10:07:04]line Смена: 114 ФФД: 1.0 [10:07:04]line ЗНМ: 0300000137 [10:07:04]line РНМ: 0000000000186857 [10:07:04]line Версия ККМ: v1.0 [10:07:04]line ФМ: 0000000002094219 [10:07:04]line ФД: 30270 [10:07:04]line ФПД: 225346739106182 [10:07:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T100711&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30270&fm=225346739106182&tin=02508201610067®Number=0000000000186857&sum=89000 [10:07:04]written 0, free lines is 4095 [10:07:04]OFD Sender: Processing packet 30270 [packets to send 10, broken 9] [10:07:04]ProducePacketName [10:07:04]name=ofd_packets/00030270 [10:07:04]OFD Sender: To server: pG, [10:07:04]CommunicateWithHost lk.salyk.kg:30040 [10:07:04]ConnectInit lk.salyk.kg [10:07:04]Connected sock=10 [10:07: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 E5 3E 07 01 B6 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 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 2E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 D0 5B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 5B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 14 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F0 24 00 00 00 00 07 04 06 00 A8 5B 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 4F D6 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 CC F3 A0 55 F1 86 4B C6 6B 3E 70 51 A4 A3 [10:07: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 B2 8B 47 00 A1 5E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 3E 76 00 00 F4 03 04 00 D3 80 14 67 B6 04 01 00 00 6E BD 41 75 7A 58 9E D7 [10:07:04]CommunicateWithHost err = 0 [10:07:04]CheckOFDResponse [10:07:04]1017 (14) - 77093643461234 [10:07:04]1041 (16) - 0000000002094219 [10:07:04]1040 (4) - 30270 [10:07:04]1012 (4) - 20.10.2024 04:02 [10:07:04]1206 (1) - 0 [10:07:04]OFD Sender: Remove packet 30270 [10:07:04]ProducePacketName [10:07:04]name=ofd_packets/00030270 [10:07:04]NVStorageDeleteData [10:07:04]Write to MH i2c: 01 00 00 9C 70 0C [10:07:04]Write i2c OK [10:07:04]MH_I2C_Read... [10:07:04]Read from MH i2c: 01 [10:07:04]MH_I2C_Read... [10:07:04]Read from MH i2c: 01 07 00 [10:07:04]MH_I2C_Read... [10:07:04]Read from MH i2c: 01 07 00 9C 70 00 00 00 00 00 FF 0C 1E [10:07:04]RasterBufferAndPrint [10:07:04]line [10:07:04]line [10:07:04]line [10:07:04]line [10:07:04]line [10:07:04]written 0, free lines is 3336 [10:07:04]MH_Cut [10:07:04]Write to MH i2c: D1 01 00 A3 70 01 E5 [10:07:04]Write i2c OK [10:07:04]MH_I2C_Read... [10:07:04]Read from MH i2c: D1 [10:07:04]MH_I2C_Read... [10:07:04]Read from MH i2c: D1 01 00 [10:07:04]MH_I2C_Read... [10:07:04]Read from MH i2c: D1 01 00 A3 70 00 E4 [10:07:04]Write to MH i2c: 01 00 00 A4 70 14 [10:07:04]Write i2c OK [10:07:04]MH_I2C_Read... [10:07:05]OFD Sender: No OFD packet to send [10:07:05]*** Cut start [10:07:05]*** Partial cut [10:07:05]*** CUTSNS_PIN = 1 [10:07:05]*** CUTSNS_PIN = 0 [10:07:05]*** Brake cut motor [10:07:06]Read from MH i2c: 01 [10:07:06]MH_I2C_Read... [10:07:06]*** Stop cut motor [10:07:06]*** Cut end [10:07:06]Read from MH i2c: 01 07 00 [10:07:06]MH_I2C_Read... [10:07:06]Read from MH i2c: 01 07 00 A4 70 00 00 00 00 00 FF 0F 29 [10:07:06]process_action close_receipt done [10:07:06]requested_data is exist [10:07:06]produce_requested_data [10:07:06]requested_item fm.sn is exist - process it [10:07:06]wFMCommunicate request_size=4 [10:07:06]MH_SAM_APDU [10:07:06]CAPDU: 80 11 00 00 [10:07:06]Write to MH i2c: E2 08 00 A5 70 80 11 00 00 00 00 00 00 8F [10:07:06]Write i2c OK [10:07:06]MH_I2C_Read... [10:07:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:07:06]Read from MH i2c: E2 [10:07:06]MH_I2C_Read... [10:07:06]Read from MH i2c: E2 17 00 [10:07:06]MH_I2C_Read... [10:07:06]Read from MH i2c: E2 17 00 A5 70 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: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 [10:07:06]wFMCommunicate OK [10:07:06]requested_item fd.num is exist - process it [10:07:06]SAM_PROTO_GetFieldsCounters [10:07:06]wFMCommunicate request_size=4 [10:07:06]MH_SAM_APDU [10:07:06]CAPDU: 80 13 00 00 [10:07:06]Write to MH i2c: E2 08 00 A6 70 80 13 00 00 00 00 00 00 92 [10:07:06]Write i2c OK [10:07:06]MH_I2C_Read... [10:07:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:07:06]Read from MH i2c: E2 [10:07:06]MH_I2C_Read... [10:07:06]Read from MH i2c: E2 62 00 [10:07:06]MH_I2C_Read... [10:07:06]Read from MH i2c: E2 62 00 A6 70 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 7A [10:07: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 3E 76 00 00 0E 04 04 00 72 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 [10:07:06]wFMCommunicate OK [10:07:06]SAM_PROTO_GetFieldsCounters done [10:07:06]requested_item shift.num is exist - process it [10:07:06]requested_item shift.opened is exist - process it [10:07:06]req_shift_opened [10:07:06]FM_GetShiftState [10:07:06]SAM_PROTO_GetShiftState [10:07:06]wFMCommunicate request_size=4 [10:07:06]MH_SAM_APDU [10:07:06]CAPDU: 80 13 01 00 [10:07:06]Write to MH i2c: E2 08 00 A7 70 80 13 01 00 00 00 00 00 94 [10:07:06]Write i2c OK [10:07:06]MH_I2C_Read... [10:07:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:07:06]Read from MH i2c: E2 [10:07:06]MH_I2C_Read... [10:07:06]Read from MH i2c: E2 0E 00 [10:07:06]MH_I2C_Read... [10:07:06]Read from MH i2c: E2 0E 00 A7 70 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 7A [10:07:06]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [10:07:06]wFMCommunicate OK [10:07:06]SAM_PROTO_GetShiftState done [10:07:06]FM_GetShiftState done [10:07:06]req_shift_opened done [10:07:06]requested_item shift.open_date is exist - process it [10:07:06]req_shift_open_date [10:07:06]req_shift_open_date done [10:07:06]produce_requested_data done [10:07:06]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30270,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [10:07:06]process_action_free close_receipt [10:07:06]json_value_free [10:07:06]json_value_free done [10:07:06]process_json_proto returns [10:07:06]Send response to host [10:07:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30270,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [10:07:06]free response buf [10:07:06]execute_script done [10:07:06]execute_script returns [10:07:06]free content buf [10:07:06]Sock 7.Close socket [10:07:06]Sock 7.Thread stoped [10:07:10]OFD Sender: No OFD packet to send [10:07:15]OFD Sender: No OFD packet to send [10:07:20]OFD Sender: No OFD packet to send [10:07:25]OFD Sender: No OFD packet to send [10:07:30]OFD Sender: No OFD packet to send [10:07:35]OFD Sender: No OFD packet to send [10:07:40]OFD Sender: No OFD packet to send [10:07:45]OFD Sender: No OFD packet to send [10:07:50]OFD Sender: No OFD packet to send [10:07:55]OFD Sender: No OFD packet to send [10:08:00]OFD Sender: No OFD packet to send [10:08:05]OFD Sender: No OFD packet to send [10:08:10]OFD Sender: No OFD packet to send [10:08:15]OFD Sender: No OFD packet to send [10:08:20]OFD Sender: No OFD packet to send [10:08:25]OFD Sender: No OFD packet to send [10:08:30]OFD Sender: No OFD packet to send [10:08:34]accept exits with 9 [10:08:34]New connection [10:08:34]New thread 3067370852 created [10:08:34]Thread 3067514212 joined [10:08:34]Waiting for new connection... [10:08:34] Sock 9.Parse request [10:08:34]Sock 9.Check first char [10:08:34]Sock 9.First char is OK [10:08:34]request: POST /json_proto HTTP/1.0 [10:08:34]Method: POST [10:08:34]URL: /json_proto [10:08:34]Method is POST - this is cgi request [10:08:34]url: /json_proto [10:08:34]query_string will be loaded in cgi processing [10:08:34]execute_cgi json_proto POST (null) [10:08:34]execute_cgi path=json_proto method=POST [10:08:34]POST find Content-Length [10:08:34]Host: 172.17.51.3:8080 [10:08:34]Content-Length: 677 [10:08:34]Content-Type: application/json [10:08:34] [10:08:34]POST finish read [10:08:34]Found Content-Length = 677 [10:08:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342662", "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:08:34]execute_script... [10:08: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)342662", "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:08:34]POST & json_proto [10:08:34]process_json_proto [10:08:34]json parsed OK: [10:08:34]protocol is kg_v1.0 [10:08:34]action value=close_receipt [10:08:34]process_action close_receipt [10:08:34]cmd_close_receipt [10:08:34]MH_GetDate [10:08:34]Write to MH i2c: F0 00 00 A8 70 07 [10:08:34]Write i2c OK [10:08:34]MH_I2C_Read... [10:08:34]Read from MH i2c: F0 [10:08:34]MH_I2C_Read... [10:08:34]Read from MH i2c: F0 09 00 [10:08:34]MH_I2C_Read... [10:08:34]Read from MH i2c: F0 09 00 A8 70 00 AB D6 14 67 04 C1 95 66 CC [10:08:34]GetLastDocTimeStamp 1729418831 [10:08:34]current date 1729418923 [10:08:34]FM_GetShiftState [10:08:34]SAM_PROTO_GetShiftState [10:08:34]wFMCommunicate request_size=4 [10:08:34]MH_SAM_APDU [10:08:34]CAPDU: 80 13 01 00 [10:08:34]Write to MH i2c: E2 08 00 A9 70 80 13 01 00 00 00 00 00 96 [10:08:34]Write i2c OK [10:08:34]MH_I2C_Read... [10:08:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:08:34]Read from MH i2c: E2 [10:08:34]MH_I2C_Read... [10:08:34]Read from MH i2c: E2 0E 00 [10:08:34]MH_I2C_Read... [10:08:34]Read from MH i2c: E2 0E 00 A9 70 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 7C [10:08:34]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [10:08:34]wFMCommunicate OK [10:08:34]SAM_PROTO_GetShiftState done [10:08:34]FM_GetShiftState done [10:08:34]opened in 1729384718 [10:08:34]opened+sec_in_day 1729471118 [10:08:34]quantity*price = 50041 [10:08:34]sum+1 = 50042 [10:08:34]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 20.10.2024 10:08 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30271 ФПД: 237272604003219 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T100843&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30271&fm=237272604003219&tin=02508201610067®Number=0000000000186857&sum=50000 [10:08:35]StoreToDocumentArchive [10:08:35]shift 114 fd 30271 [10:08:35]save to /storage/0114/doc_00030271 [10:08:35]save last doc name /storage/0114/doc_00030271 to /storage/kkm_last_doc_name [10:08:35]save OK [10:08:35]Clear old archive folders... [10:08:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:08:35]tlvbuf is B6FE1D50 [10:08:35]SAM_PROTO_ClearQueue [10:08:35]wFMCommunicate request_size=4 [10:08:35]MH_SAM_APDU [10:08:35]CAPDU: 80 09 00 00 [10:08:35]Write to MH i2c: E2 08 00 B6 70 80 09 00 00 00 00 00 00 98 [10:08:35]Write i2c OK [10:08:35]MH_I2C_Read... [10:08:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:08:35]Read from MH i2c: E2 [10:08:35]MH_I2C_Read... [10:08:35]Read from MH i2c: E2 03 00 [10:08:35]MH_I2C_Read... [10:08:35]Read from MH i2c: E2 03 00 B6 70 00 90 00 9A [10:08:35]RAPDU: 90 00 [10:08:35]wFMCommunicate OK [10:08:35]SAM_PROTO_ClearQueue done [10:08:35]KKMCreateOFDPacket [10:08:35]OFDProtocolAddRootSTLVToBuf [10:08:35]FM_MakeSignedData [10:08:35]FM_MakeSignedData [10:08:35]SAM_PROTO_SignData [10:08:35]wFMCommunicate request_size=4 [10:08:35]MH_SAM_APDU [10:08:35]CAPDU: 80 0D 01 02 [10:08:35]Write to MH i2c: E2 08 00 B7 70 80 0D 01 02 00 00 00 00 A0 [10:08:35]Write i2c OK [10:08:35]MH_I2C_Read... [10:08:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:08:35]Read from MH i2c: E2 [10:08:35]MH_I2C_Read... [10:08:35]Read from MH i2c: E2 03 00 [10:08:35]MH_I2C_Read... [10:08:35]Read from MH i2c: E2 03 00 B7 70 00 90 00 9B [10:08:35]RAPDU: 90 00 [10:08:35]wFMCommunicate OK [10:08:35]wFMCommunicate request_size=255 [10:08:35]MH_SAM_APDU [10:08:35]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 AB D6 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 D7 [10:08:35]Write to MH i2c: E2 02 01 B8 70 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 AB D6 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 D7 00 00 60 [10:08:35]Write i2c OK [10:08:35]MH_I2C_Read... [10:08:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:08:35]Read from MH i2c: E2 [10:08:35]MH_I2C_Read... [10:08:35]Read from MH i2c: E2 03 00 [10:08:35]MH_I2C_Read... [10:08:35]Read from MH i2c: E2 03 00 B8 70 00 90 00 9C [10:08:35]RAPDU: 90 00 [10:08:35]wFMCommunicate OK [10:08:35]wFMCommunicate request_size=10 [10:08:35]MH_SAM_APDU [10:08:35]CAPDU: 80 0D 02 02 05 CC 55 46 CB 93 [10:08:35]Write to MH i2c: E2 0D 00 B9 70 80 0D 02 02 05 00 CC 55 46 CB 93 00 00 72 [10:08:35]Write i2c OK [10:08:35]MH_I2C_Read... [10:08:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:08:35]Read from MH i2c: E2 [10:08:35]MH_I2C_Read... [10:08:35]Read from MH i2c: E2 03 00 [10:08:35]MH_I2C_Read... [10:08:35]Read from MH i2c: E2 03 00 B9 70 00 90 00 9D [10:08:35]RAPDU: 90 00 [10:08:35]wFMCommunicate OK [10:08:35]wFMCommunicate request_size=4 [10:08:35]MH_SAM_APDU [10:08:35]CAPDU: 80 0D 03 02 [10:08:35]Write to MH i2c: E2 08 00 BA 70 80 0D 03 02 00 00 00 00 A5 [10:08:35]Write i2c OK [10:08:35]MH_I2C_Read... [10:08:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:08:35]Read from MH i2c: E2 [10:08:35]MH_I2C_Read... [10:08:35]Read from MH i2c: E2 0B 00 [10:08:35]MH_I2C_Read... [10:08:35]Read from MH i2c: E2 0B 00 BA 70 00 1D 88 B7 81 73 23 F7 B0 90 00 C0 [10:08:35]RAPDU: 1D 88 B7 81 73 23 F7 B0 90 00 [10:08:35]wFMCommunicate OK [10:08:35]SAM_PROTO_SignData done [10:08:35]FM_MakeSignedData done [10:08:35]CreateOFDProtocolMessage [10:08:35]wFMCommunicate request_size=4 [10:08:35]MH_SAM_APDU [10:08:35]CAPDU: 80 11 00 00 [10:08:35]Write to MH i2c: E2 08 00 BB 70 80 11 00 00 00 00 00 00 A5 [10:08:35]Write i2c OK [10:08:35]MH_I2C_Read... [10:08:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:08:36]Read from MH i2c: E2 [10:08:36]MH_I2C_Read... [10:08:36]Read from MH i2c: E2 17 00 [10:08:36]MH_I2C_Read... [10:08:36]Read from MH i2c: E2 17 00 BB 70 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 F3 [10: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 [10:08:36]wFMCommunicate OK [10:08:36]CreateOFDProtocolMessage done [10:08:36]OFDSenderStorePacket 30271 [10:08:36]StoreOFDPacket docnum=30271 [10:08: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 F3 3F 07 01 FC B2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 AB D6 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 D7 CC 55 46 CB 93 1D 88 B7 81 73 23 F7 B0 [10:08:36]CheckFolder [10:08:36]dirname=/storage/ofd_packets [10:08:36]CheckFolder done [10:08:36]ProducePacketName [10:08:36]name=ofd_packets/00030271 [10:08:36]NVStorageSaveData ofd_packets/00030271 [10:08:36]File name is /storage/ofd_packets/00030271 [10:08:36]Write 301 bytes [10:08:36]NVStorageSaveData done [10:08:36]OFDSenderStorePacket done [10:08:36]KKMCreateOFDPacket done [10:08:36]NVStorageSaveData kkm_last_timestamp [10:08:36]File name is /storage/kkm_last_timestamp [10:08:36]Write 4 bytes [10:08:36]NVStorageSaveData done [10:08:36]ExternCall_PrintAddStr [10:08:36]wPrintStart [10:08:36]Write to MH i2c: 01 00 00 BC 70 2C [10:08:36]Write i2c OK [10:08:36]MH_I2C_Read... [10:08:36]Read from MH i2c: 01 [10:08:36]MH_I2C_Read... [10:08:36]Read from MH i2c: 01 07 00 [10:08:36]MH_I2C_Read... [10:08:36]Read from MH i2c: 01 07 00 BC 70 00 00 00 00 00 FF 0F 41 [10:08:36]RasterBufferAndPrint [10:08:36]line Счет N : (1)342662 [10:08:36]line ИНН: 02508201610067 [10:08:36]line Контрольно-Кассовый Чек [10:08:36]line ПРОДАЖА [10:08:36]line ТРК (МРК, ГНК) : 53 [10:08:36]line Товар: 2710124130 [10:08:36]line Аи-92-К-2 [10:08:36]line 7.480 * 66.90 [10:08:36]line = 500.41 [10:08:36]line НДС 12% НСП 1% [10:08:36]line > о реализуемом товаре [10:08:36]line ОКРУГЛЕНИЕ: -0.41 [10:08:36]line ИТОГО: 500.00 [10:08:36]line Внесено: 500.00 [10:08:36]line СДАЧА: 0.00 [10:08:36]line НСП 1% : 4.43 [10:08:36]line НДС 12% : 53.14 [10:08:36]line Наличными: 500.00 [10:08:36]line Безнал.: 0.00 [10:08:36]line Место: АЗС № 78 "Партнер Нефть" [10:08:36]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [10:08:36]line СНО: Общий режим [10:08:36]line Чек 53 20.10.2024 10:08 [10:08:36]line Смена: 114 ФФД: 1.0 [10:08:36]line ЗНМ: 0300000137 [10:08:36]line РНМ: 0000000000186857 [10:08:36]line Версия ККМ: v1.0 [10:08:36]line ФМ: 0000000002094219 [10:08:36]line ФД: 30271 [10:08:36]line ФПД: 237272604003219 [10:08:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T100843&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30271&fm=237272604003219&tin=02508201610067®Number=0000000000186857&sum=50000 [10:08:36]written 0, free lines is 4095 [10:08:36]OFD Sender: Processing packet 30271 [packets to send 10, broken 9] [10:08:36]ProducePacketName [10:08:36]name=ofd_packets/00030271 [10:08:36]OFD Sender: To server: pG, [10:08:36]CommunicateWithHost lk.salyk.kg:30040 [10:08:36]ConnectInit lk.salyk.kg [10:08:36]Connected sock=10 [10:08: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 0F 01 00 00 F3 3F 07 01 FC B2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 AB D6 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 D7 CC 55 46 CB 93 1D 88 B7 81 73 23 F7 B0 [10:08: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 B8 87 47 00 06 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 3F 76 00 00 F4 03 04 00 2F 81 14 67 B6 04 01 00 00 A2 9A EE 63 22 0E BA E0 [10:08:36]CommunicateWithHost err = 0 [10:08:36]CheckOFDResponse [10:08:36]1017 (14) - 77093643461234 [10:08:36]1041 (16) - 0000000002094219 [10:08:36]1040 (4) - 30271 [10:08:36]1012 (4) - 20.10.2024 04:03 [10:08:36]1206 (1) - 0 [10:08:36]OFD Sender: Remove packet 30271 [10:08:36]ProducePacketName [10:08:36]name=ofd_packets/00030271 [10:08:36]NVStorageDeleteData [10:08:36]Write to MH i2c: 01 00 00 E7 70 57 [10:08:36]Write i2c OK [10:08:36]MH_I2C_Read... [10:08:36]Read from MH i2c: 01 [10:08:36]MH_I2C_Read... [10:08:36]Read from MH i2c: 01 07 00 [10:08:36]MH_I2C_Read... [10:08:36]Read from MH i2c: 01 07 00 E7 70 00 00 00 00 00 E8 0C 52 [10:08:36]RasterBufferAndPrint [10:08:36]line [10:08:36]line [10:08:36]line [10:08:36]line [10:08:36]line [10:08:36]written 0, free lines is 3310 [10:08:36]MH_Cut [10:08:36]Write to MH i2c: D1 01 00 EE 70 01 30 [10:08:36]Write i2c OK [10:08:36]MH_I2C_Read... [10:08:36]Read from MH i2c: D1 [10:08:36]MH_I2C_Read... [10:08:36]Read from MH i2c: D1 01 00 [10:08:36]MH_I2C_Read... [10:08:36]Read from MH i2c: D1 01 00 EE 70 00 2F [10:08:36]Write to MH i2c: 01 00 00 EF 70 5F [10:08:36]Write i2c OK [10:08:36]MH_I2C_Read... [10:08:37]OFD Sender: No OFD packet to send [10:08:37]*** Cut start [10:08:37]*** Partial cut [10:08:37]*** CUTSNS_PIN = 1 [10:08:37]*** CUTSNS_PIN = 0 [10:08:37]*** Brake cut motor [10:08:38]Read from MH i2c: 01 [10:08:38]*** Stop cut motor [10:08:38]*** Cut end [10:08:38]MH_I2C_Read... [10:08:38]Read from MH i2c: 01 07 00 [10:08:38]MH_I2C_Read... [10:08:38]Read from MH i2c: 01 07 00 EF 70 00 00 00 00 00 FF 0F 74 [10:08:38]process_action close_receipt done [10:08:38]requested_data is exist [10:08:38]produce_requested_data [10:08:38]requested_item fm.sn is exist - process it [10:08:38]wFMCommunicate request_size=4 [10:08:38]MH_SAM_APDU [10:08:38]CAPDU: 80 11 00 00 [10:08:38]Write to MH i2c: E2 08 00 F0 70 80 11 00 00 00 00 00 00 DA [10:08:38]Write i2c OK [10:08:38]MH_I2C_Read... [10:08:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:08:38]Read from MH i2c: E2 [10:08:38]MH_I2C_Read... [10:08:38]Read from MH i2c: E2 17 00 [10:08:38]MH_I2C_Read... [10:08:38]Read from MH i2c: E2 17 00 F0 70 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 28 [10: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 [10:08:38]wFMCommunicate OK [10:08:38]requested_item fd.num is exist - process it [10:08:38]SAM_PROTO_GetFieldsCounters [10:08:38]wFMCommunicate request_size=4 [10:08:38]MH_SAM_APDU [10:08:38]CAPDU: 80 13 00 00 [10:08:38]Write to MH i2c: E2 08 00 F1 70 80 13 00 00 00 00 00 00 DD [10:08:38]Write i2c OK [10:08:38]MH_I2C_Read... [10:08:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:08:38]Read from MH i2c: E2 [10:08:38]MH_I2C_Read... [10:08:38]Read from MH i2c: E2 62 00 [10:08:38]MH_I2C_Read... [10:08:38]Read from MH i2c: E2 62 00 F1 70 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 C9 [10:08: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 3F 76 00 00 0E 04 04 00 72 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 [10:08:38]wFMCommunicate OK [10:08:38]SAM_PROTO_GetFieldsCounters done [10:08:38]requested_item shift.num is exist - process it [10:08:38]requested_item shift.opened is exist - process it [10:08:38]req_shift_opened [10:08:38]FM_GetShiftState [10:08:38]SAM_PROTO_GetShiftState [10:08:38]wFMCommunicate request_size=4 [10:08:38]MH_SAM_APDU [10:08:38]CAPDU: 80 13 01 00 [10:08:38]Write to MH i2c: E2 08 00 F2 70 80 13 01 00 00 00 00 00 DF [10:08:38]Write i2c OK [10:08:38]MH_I2C_Read... [10:08:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:08:38]Read from MH i2c: E2 [10:08:38]MH_I2C_Read... [10:08:38]Read from MH i2c: E2 0E 00 [10:08:38]MH_I2C_Read... [10:08:38]Read from MH i2c: E2 0E 00 F2 70 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 C5 [10:08:38]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [10:08:38]wFMCommunicate OK [10:08:38]SAM_PROTO_GetShiftState done [10:08:38]FM_GetShiftState done [10:08:38]req_shift_opened done [10:08:38]requested_item shift.open_date is exist - process it [10:08:38]req_shift_open_date [10:08:38]req_shift_open_date done [10:08:38]produce_requested_data done [10:08:38]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30271,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [10:08:38]process_action_free close_receipt [10:08:38]json_value_free [10:08:38]json_value_free done [10:08:38]process_json_proto returns [10:08:38]Send response to host [10:08:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30271,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [10:08:38]free response buf [10:08:38]execute_script done [10:08:38]execute_script returns [10:08:38]free content buf [10:08:38]Sock 9.Close socket [10:08:38]Sock 9.Thread stoped [10:08:42]OFD Sender: No OFD packet to send [10:08:47]OFD Sender: No OFD packet to send [10:08:52]OFD Sender: No OFD packet to send [10:08:57]OFD Sender: No OFD packet to send [10:09:02]OFD Sender: No OFD packet to send [10:09:07]OFD Sender: No OFD packet to send [10:09:12]OFD Sender: No OFD packet to send [10:09:17]OFD Sender: No OFD packet to send [10:09:22]OFD Sender: No OFD packet to send [10:09:27]OFD Sender: No OFD packet to send [10:09:32]OFD Sender: No OFD packet to send [10:09:37]OFD Sender: No OFD packet to send [10:09:42]OFD Sender: No OFD packet to send [10:09:44]accept exits with 7 [10:09:44]New connection [10:09:44]New thread 3067514212 created [10:09:44]Thread 3067370852 joined [10:09:44]Waiting for new connection... [10:09:44] Sock 7.Parse request [10:09:44]Sock 7.Check first char [10:09:44]Sock 7.First char is OK [10:09:44]request: POST /json_proto HTTP/1.0 [10:09:44]Method: POST [10:09:44]URL: /json_proto [10:09:44]Method is POST - this is cgi request [10:09:44]url: /json_proto [10:09:44]query_string will be loaded in cgi processing [10:09:44]execute_cgi json_proto POST (null) [10:09:44]execute_cgi path=json_proto method=POST [10:09:44]POST find Content-Length [10:09:44]Host: 172.17.51.3:8080 [10:09:44]Content-Length: 677 [10:09:44]Content-Type: application/json [10:09:44] [10:09:44]POST finish read [10:09:44]Found Content-Length = 677 [10:09:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342663", "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" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:09:44]execute_script... [10: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)342663", "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" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:09:44]POST & json_proto [10:09:44]process_json_proto [10:09:44]json parsed OK: [10:09:44]protocol is kg_v1.0 [10:09:44]action value=close_receipt [10:09:44]process_action close_receipt [10:09:44]cmd_close_receipt [10:09:44]MH_GetDate [10:09:44]Write to MH i2c: F0 00 00 F3 70 52 [10:09:44]Write i2c OK [10:09:44]MH_I2C_Read... [10:09:44]Read from MH i2c: F0 [10:09:44]MH_I2C_Read... [10:09:44]Read from MH i2c: F0 09 00 [10:09:44]MH_I2C_Read... [10:09:44]Read from MH i2c: F0 09 00 F3 70 00 F0 D6 14 67 04 C1 95 66 5C [10:09:44]GetLastDocTimeStamp 1729418923 [10:09:44]current date 1729418992 [10:09:44]FM_GetShiftState [10:09:44]SAM_PROTO_GetShiftState [10:09:44]wFMCommunicate request_size=4 [10:09:44]MH_SAM_APDU [10:09:44]CAPDU: 80 13 01 00 [10:09:44]Write to MH i2c: E2 08 00 F4 70 80 13 01 00 00 00 00 00 E1 [10:09:44]Write i2c OK [10:09:44]MH_I2C_Read... [10:09:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:09:44]Read from MH i2c: E2 [10:09:44]MH_I2C_Read... [10:09:44]Read from MH i2c: E2 0E 00 [10:09:44]MH_I2C_Read... [10:09:44]Read from MH i2c: E2 0E 00 F4 70 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 C7 [10:09:44]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [10:09:44]wFMCommunicate OK [10:09:44]SAM_PROTO_GetShiftState done [10:09:44]FM_GetShiftState done [10:09:44]opened in 1729384718 [10:09:44]opened+sec_in_day 1729471118 [10:09:44]quantity*price = 50010 [10:09:44]sum+1 = 50012 [10:09:44]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 СНО: Общий режим Чек 54 20.10.2024 10:09 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30272 ФПД: 137028661841586 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T100952&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30272&fm=137028661841586&tin=02508201610067®Number=0000000000186857&sum=50000 [10:09:45]StoreToDocumentArchive [10:09:45]shift 114 fd 30272 [10:09:45]save to /storage/0114/doc_00030272 [10:09:45]save last doc name /storage/0114/doc_00030272 to /storage/kkm_last_doc_name [10:09:45]save OK [10:09:45]Clear old archive folders... [10:09:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:09:45]tlvbuf is 00AB3770 [10:09:45]SAM_PROTO_ClearQueue [10:09:45]wFMCommunicate request_size=4 [10:09:45]MH_SAM_APDU [10:09:45]CAPDU: 80 09 00 00 [10:09:45]Write to MH i2c: E2 08 00 01 71 80 09 00 00 00 00 00 00 E4 [10:09:45]Write i2c OK [10:09:45]MH_I2C_Read... [10:09:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:09:45]Read from MH i2c: E2 [10:09:45]MH_I2C_Read... [10:09:45]Read from MH i2c: E2 03 00 [10:09:45]MH_I2C_Read... [10:09:45]Read from MH i2c: E2 03 00 01 71 00 90 00 E6 [10:09:45]RAPDU: 90 00 [10:09:45]wFMCommunicate OK [10:09:45]SAM_PROTO_ClearQueue done [10:09:45]KKMCreateOFDPacket [10:09:45]OFDProtocolAddRootSTLVToBuf [10:09:45]FM_MakeSignedData [10:09:45]FM_MakeSignedData [10:09:45]SAM_PROTO_SignData [10:09:45]wFMCommunicate request_size=4 [10:09:45]MH_SAM_APDU [10:09:45]CAPDU: 80 0D 01 02 [10:09:45]Write to MH i2c: E2 08 00 02 71 80 0D 01 02 00 00 00 00 EC [10:09:45]Write i2c OK [10:09:45]MH_I2C_Read... [10:09:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:09:45]Read from MH i2c: E2 [10:09:45]MH_I2C_Read... [10:09:45]Read from MH i2c: E2 03 00 [10:09:45]MH_I2C_Read... [10:09:45]Read from MH i2c: E2 03 00 02 71 00 90 00 E7 [10:09:45]RAPDU: 90 00 [10:09:45]wFMCommunicate OK [10:09:45]wFMCommunicate request_size=255 [10:09:45]MH_SAM_APDU [10: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 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 36 00 00 00 F4 03 04 00 F0 D6 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 7C [10:09:45]Write to MH i2c: E2 02 01 03 71 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 36 00 00 00 F4 03 04 00 F0 D6 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 7C 00 00 71 [10:09:45]Write i2c OK [10:09:45]MH_I2C_Read... [10:09:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:09:45]Read from MH i2c: E2 [10:09:45]MH_I2C_Read... [10:09:45]Read from MH i2c: E2 03 00 [10:09:45]MH_I2C_Read... [10:09:45]Read from MH i2c: E2 03 00 03 71 00 90 00 E8 [10:09:45]RAPDU: 90 00 [10:09:45]wFMCommunicate OK [10:09:45]wFMCommunicate request_size=10 [10:09:45]MH_SAM_APDU [10:09:45]CAPDU: 80 0D 02 02 05 A0 78 B6 8E B2 [10:09:45]Write to MH i2c: E2 0D 00 04 71 80 0D 02 02 05 00 A0 78 B6 8E B2 00 00 07 [10:09:45]Write i2c OK [10:09:45]MH_I2C_Read... [10:09:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:09:45]Read from MH i2c: E2 [10:09:45]MH_I2C_Read... [10:09:45]Read from MH i2c: E2 03 00 [10:09:45]MH_I2C_Read... [10:09:45]Read from MH i2c: E2 03 00 04 71 00 90 00 E9 [10:09:45]RAPDU: 90 00 [10:09:45]wFMCommunicate OK [10:09:45]wFMCommunicate request_size=4 [10:09:45]MH_SAM_APDU [10:09:45]CAPDU: 80 0D 03 02 [10:09:45]Write to MH i2c: E2 08 00 05 71 80 0D 03 02 00 00 00 00 F1 [10:09:45]Write i2c OK [10:09:45]MH_I2C_Read... [10:09:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:09:45]Read from MH i2c: E2 [10:09:45]MH_I2C_Read... [10:09:45]Read from MH i2c: E2 0B 00 [10:09:45]MH_I2C_Read... [10:09:45]Read from MH i2c: E2 0B 00 05 71 00 6B 42 D6 B2 DD 51 83 81 90 00 59 [10:09:45]RAPDU: 6B 42 D6 B2 DD 51 83 81 90 00 [10:09:45]wFMCommunicate OK [10:09:45]SAM_PROTO_SignData done [10:09:45]FM_MakeSignedData done [10:09:45]CreateOFDProtocolMessage [10:09:45]wFMCommunicate request_size=4 [10:09:45]MH_SAM_APDU [10:09:45]CAPDU: 80 11 00 00 [10:09:45]Write to MH i2c: E2 08 00 06 71 80 11 00 00 00 00 00 00 F1 [10:09:45]Write i2c OK [10:09:45]MH_I2C_Read... [10:09:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:09:45]Read from MH i2c: E2 [10:09:45]MH_I2C_Read... [10:09:45]Read from MH i2c: E2 17 00 [10:09:45]MH_I2C_Read... [10:09:45]Read from MH i2c: E2 17 00 06 71 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 3F [10: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 [10:09:45]wFMCommunicate OK [10:09:45]CreateOFDProtocolMessage done [10:09:45]OFDSenderStorePacket 30272 [10:09:45]StoreOFDPacket docnum=30272 [10: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 95 27 07 01 85 75 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 36 00 00 00 F4 03 04 00 F0 D6 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 7C A0 78 B6 8E B2 6B 42 D6 B2 DD 51 83 81 [10:09:45]CheckFolder [10:09:45]dirname=/storage/ofd_packets [10:09:45]CheckFolder done [10:09:45]ProducePacketName [10:09:45]name=ofd_packets/00030272 [10:09:45]NVStorageSaveData ofd_packets/00030272 [10:09:45]File name is /storage/ofd_packets/00030272 [10:09:45]Write 301 bytes [10:09:45]NVStorageSaveData done [10:09:45]OFDSenderStorePacket done [10:09:45]KKMCreateOFDPacket done [10:09:45]NVStorageSaveData kkm_last_timestamp [10:09:45]File name is /storage/kkm_last_timestamp [10:09:45]Write 4 bytes [10:09:45]NVStorageSaveData done [10:09:45]ExternCall_PrintAddStr [10:09:45]wPrintStart [10:09:45]Write to MH i2c: 01 00 00 07 71 78 [10:09:45]Write i2c OK [10:09:45]MH_I2C_Read... [10:09:45]Read from MH i2c: 01 [10:09:45]MH_I2C_Read... [10:09:45]Read from MH i2c: 01 07 00 [10:09:45]MH_I2C_Read... [10:09:45]Read from MH i2c: 01 07 00 07 71 00 00 00 00 00 FF 0F 8D [10:09:45]RasterBufferAndPrint [10:09:45]line Счет N : (1)342663 [10:09:45]line ИНН: 02508201610067 [10:09:45]line Контрольно-Кассовый Чек [10:09:45]line ПРОДАЖА [10:09:45]line ТРК (МРК, ГНК) : 42 [10:09:45]line Товар: 2710124500 [10:09:45]line Аи-95-К-3 [10:09:45]line 6.740 * 74.20 [10:09:45]line = 500.11 [10:09:45]line НДС 12% НСП 1% [10:09:45]line > о реализуемом товаре [10:09:45]line ОКРУГЛЕНИЕ: -0.11 [10:09:45]line ИТОГО: 500.00 [10:09:45]line Внесено: 500.00 [10:09:45]line СДАЧА: 0.00 [10:09:45]line НСП 1% : 4.43 [10:09:45]line НДС 12% : 53.11 [10:09:45]line Наличными: 500.00 [10:09:45]line Безнал.: 0.00 [10:09:45]line Место: АЗС № 78 "Партнер Нефть" [10:09:45]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [10:09:45]line СНО: Общий режим [10:09:45]line Чек 54 20.10.2024 10:09 [10:09:45]line Смена: 114 ФФД: 1.0 [10:09:45]line ЗНМ: 0300000137 [10:09:45]line РНМ: 0000000000186857 [10:09:45]line Версия ККМ: v1.0 [10:09:45]line ФМ: 0000000002094219 [10:09:45]line ФД: 30272 [10:09:46]line ФПД: 137028661841586 [10:09:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T100952&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30272&fm=137028661841586&tin=02508201610067®Number=0000000000186857&sum=50000 [10:09:46]OFD Sender: Processing packet 30272 [packets to send 10, broken 9] [10:09:46]ProducePacketName [10:09:46]name=ofd_packets/00030272 [10:09:46]OFD Sender: To server: pG, [10:09:46]CommunicateWithHost lk.salyk.kg:30040 [10:09:46]ConnectInit lk.salyk.kg [10:09:46]written 0, free lines is 4095 [10:09:46]Connected sock=10 [10: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 95 27 07 01 85 75 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 36 00 00 00 F4 03 04 00 F0 D6 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 7C A0 78 B6 8E B2 6B 42 D6 B2 DD 51 83 81 [10: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 C0 EE 47 00 CB 95 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 40 76 00 00 F4 03 04 00 75 81 14 67 B6 04 01 00 00 64 99 F6 EE D0 0A 3E E2 [10:09:46]CommunicateWithHost err = 0 [10:09:46]CheckOFDResponse [10:09:46]1017 (14) - 77093643461234 [10:09:46]1041 (16) - 0000000002094219 [10:09:46]1040 (4) - 30272 [10:09:46]1012 (4) - 20.10.2024 04:05 [10:09:46]1206 (1) - 0 [10:09:46]OFD Sender: Remove packet 30272 [10:09:46]ProducePacketName [10:09:46]name=ofd_packets/00030272 [10:09:46]NVStorageDeleteData [10:09:46]Write to MH i2c: 01 00 00 32 71 A3 [10:09:46]Write i2c OK [10:09:46]MH_I2C_Read... [10:09:46]Read from MH i2c: 01 [10:09:46]MH_I2C_Read... [10:09:46]Read from MH i2c: 01 07 00 [10:09:46]MH_I2C_Read... [10:09:46]Read from MH i2c: 01 07 00 32 71 00 00 00 00 00 DC 0C 92 [10:09:46]RasterBufferAndPrint [10:09:46]line [10:09:46]line [10:09:46]line [10:09:46]line [10:09:46]line [10:09:46]written 0, free lines is 3298 [10:09:46]MH_Cut [10:09:46]Write to MH i2c: D1 01 00 39 71 01 7C [10:09:46]Write i2c OK [10:09:46]MH_I2C_Read... [10:09:46]Read from MH i2c: D1 [10:09:46]MH_I2C_Read... [10:09:46]Read from MH i2c: D1 01 00 [10:09:46]MH_I2C_Read... [10:09:46]Read from MH i2c: D1 01 00 39 71 00 7B [10:09:46]Write to MH i2c: 01 00 00 3A 71 AB [10:09:46]Write i2c OK [10:09:46]MH_I2C_Read... [10:09:46]OFD Sender: No OFD packet to send [10:09:47]*** Cut start [10:09:47]*** Partial cut [10:09:47]*** CUTSNS_PIN = 1 [10:09:47]*** CUTSNS_PIN = 0 [10:09:47]*** Brake cut motor [10:09:47]Read from MH i2c: 01 [10:09:47]MH_I2C_Read... [10:09:47]*** Stop cut motor [10:09:47]*** Cut end [10:09:47]Read from MH i2c: 01 07 00 [10:09:47]MH_I2C_Read... [10:09:47]Read from MH i2c: 01 07 00 3A 71 00 00 00 00 00 FF 0F C0 [10:09:47]process_action close_receipt done [10:09:47]requested_data is exist [10:09:47]produce_requested_data [10:09:47]requested_item fm.sn is exist - process it [10:09:47]wFMCommunicate request_size=4 [10:09:47]MH_SAM_APDU [10:09:47]CAPDU: 80 11 00 00 [10:09:47]Write to MH i2c: E2 08 00 3B 71 80 11 00 00 00 00 00 00 26 [10:09:47]Write i2c OK [10:09:47]MH_I2C_Read... [10:09:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:09:47]Read from MH i2c: E2 [10:09:47]MH_I2C_Read... [10:09:47]Read from MH i2c: E2 17 00 [10:09:47]MH_I2C_Read... [10:09:47]Read from MH i2c: E2 17 00 3B 71 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 74 [10:09:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [10:09:47]wFMCommunicate OK [10:09:47]requested_item fd.num is exist - process it [10:09:47]SAM_PROTO_GetFieldsCounters [10:09:47]wFMCommunicate request_size=4 [10:09:47]MH_SAM_APDU [10:09:47]CAPDU: 80 13 00 00 [10:09:47]Write to MH i2c: E2 08 00 3C 71 80 13 00 00 00 00 00 00 29 [10:09:47]Write i2c OK [10:09:47]MH_I2C_Read... [10:09:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:09:48]Read from MH i2c: E2 [10:09:48]MH_I2C_Read... [10:09:48]Read from MH i2c: E2 62 00 [10:09:48]MH_I2C_Read... [10:09:48]Read from MH i2c: E2 62 00 3C 71 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 19 [10: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 40 76 00 00 0E 04 04 00 72 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 [10:09:48]wFMCommunicate OK [10:09:48]SAM_PROTO_GetFieldsCounters done [10:09:48]requested_item shift.num is exist - process it [10:09:48]requested_item shift.opened is exist - process it [10:09:48]req_shift_opened [10:09:48]FM_GetShiftState [10:09:48]SAM_PROTO_GetShiftState [10:09:48]wFMCommunicate request_size=4 [10:09:48]MH_SAM_APDU [10:09:48]CAPDU: 80 13 01 00 [10:09:48]Write to MH i2c: E2 08 00 3D 71 80 13 01 00 00 00 00 00 2B [10:09:48]Write i2c OK [10:09:48]MH_I2C_Read... [10:09:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:09:48]Read from MH i2c: E2 [10:09:48]MH_I2C_Read... [10:09:48]Read from MH i2c: E2 0E 00 [10:09:48]MH_I2C_Read... [10:09:48]Read from MH i2c: E2 0E 00 3D 71 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 11 [10:09:48]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [10:09:48]wFMCommunicate OK [10:09:48]SAM_PROTO_GetShiftState done [10:09:48]FM_GetShiftState done [10:09:48]req_shift_opened done [10:09:48]requested_item shift.open_date is exist - process it [10:09:48]req_shift_open_date [10:09:48]req_shift_open_date done [10:09:48]produce_requested_data done [10:09:48]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30272,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [10:09:48]process_action_free close_receipt [10:09:48]json_value_free [10:09:48]json_value_free done [10:09:48]process_json_proto returns [10:09:48]Send response to host [10:09:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30272,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [10:09:48]free response buf [10:09:48]execute_script done [10:09:48]execute_script returns [10:09:48]free content buf [10:09:48]Sock 7.Close socket [10:09:48]Sock 7.Thread stoped [10:09:51]OFD Sender: No OFD packet to send [10:09:56]OFD Sender: No OFD packet to send [10:10:01]OFD Sender: No OFD packet to send [10:10:06]OFD Sender: No OFD packet to send [10:10:11]OFD Sender: No OFD packet to send [10:10:16]OFD Sender: No OFD packet to send [10:10:21]OFD Sender: No OFD packet to send [10:10:26]OFD Sender: No OFD packet to send [10:10:31]OFD Sender: No OFD packet to send [10:10:36]OFD Sender: No OFD packet to send [10:10:41]OFD Sender: No OFD packet to send [10:10:46]OFD Sender: No OFD packet to send [10:10:51]OFD Sender: No OFD packet to send [10:10:56]OFD Sender: No OFD packet to send [10:11:01]OFD Sender: No OFD packet to send [10:11:06]OFD Sender: No OFD packet to send [10:11:11]OFD Sender: No OFD packet to send [10:11:16]OFD Sender: No OFD packet to send [10:11:21]OFD Sender: No OFD packet to send [10:11:26]OFD Sender: No OFD packet to send [10:11:31]OFD Sender: No OFD packet to send [10:11:36]OFD Sender: No OFD packet to send [10:11:41]OFD Sender: No OFD packet to send [10:11:43]accept exits with 9 [10:11:43]New connection [10:11:43]New thread 3067370852 created [10:11:43]Thread 3067514212 joined [10:11:43]Waiting for new connection... [10:11:43] Sock 9.Parse request [10:11:43]Sock 9.Check first char [10:11:43]Sock 9.First char is OK [10:11:43]request: POST /json_proto HTTP/1.0 [10:11:43]Method: POST [10:11:43]URL: /json_proto [10:11:43]Method is POST - this is cgi request [10:11:43]url: /json_proto [10:11:43]query_string will be loaded in cgi processing [10:11:43]execute_cgi json_proto POST (null) [10:11:43]execute_cgi path=json_proto method=POST [10:11:43]POST find Content-Length [10:11:43]Host: 172.17.51.3:8080 [10:11:43]Content-Length: 677 [10:11:43]Content-Type: application/json [10:11:43] [10:11:43]POST finish read [10:11:43]Found Content-Length = 677 [10:11:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342664", "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" ] } } [10:11:43]execute_script... [10:11:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342664", "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" ] } } [10:11:43]POST & json_proto [10:11:43]process_json_proto [10:11:43]json parsed OK: [10:11:43]protocol is kg_v1.0 [10:11:43]action value=close_receipt [10:11:43]process_action close_receipt [10:11:43]cmd_close_receipt [10:11:43]MH_GetDate [10:11:43]Write to MH i2c: F0 00 00 3E 71 9E [10:11:43]Write i2c OK [10:11:43]MH_I2C_Read... [10:11:43]Read from MH i2c: F0 [10:11:43]MH_I2C_Read... [10:11:43]Read from MH i2c: F0 09 00 [10:11:43]MH_I2C_Read... [10:11:43]Read from MH i2c: F0 09 00 3E 71 00 67 D7 14 67 04 C1 95 66 20 [10:11:43]GetLastDocTimeStamp 1729418992 [10:11:43]current date 1729419111 [10:11:43]FM_GetShiftState [10:11:43]SAM_PROTO_GetShiftState [10:11:43]wFMCommunicate request_size=4 [10:11:43]MH_SAM_APDU [10:11:43]CAPDU: 80 13 01 00 [10:11:43]Write to MH i2c: E2 08 00 3F 71 80 13 01 00 00 00 00 00 2D [10:11:43]Write i2c OK [10:11:43]MH_I2C_Read... [10:11:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:11:43]Read from MH i2c: E2 [10:11:43]MH_I2C_Read... [10:11:43]Read from MH i2c: E2 0E 00 [10:11:43]MH_I2C_Read... [10:11:43]Read from MH i2c: E2 0E 00 3F 71 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 13 [10:11:43]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [10:11:43]wFMCommunicate OK [10:11:43]SAM_PROTO_GetShiftState done [10:11:43]FM_GetShiftState done [10:11:43]opened in 1729384718 [10:11:43]opened+sec_in_day 1729471118 [10:11:43]quantity*price = 50041 [10:11:43]sum+1 = 50042 [10:11:43]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 20.10.2024 10:11 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30273 ФПД: 118724520791788 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T101151&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30273&fm=118724520791788&tin=02508201610067®Number=0000000000186857&sum=50000 [10:11:44]StoreToDocumentArchive [10:11:44]shift 114 fd 30273 [10:11:44]save to /storage/0114/doc_00030273 [10:11:44]save last doc name /storage/0114/doc_00030273 to /storage/kkm_last_doc_name [10:11:44]save OK [10:11:44]Clear old archive folders... [10:11:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:11:44]tlvbuf is 00D13AD0 [10:11:44]SAM_PROTO_ClearQueue [10:11:44]wFMCommunicate request_size=4 [10:11:44]MH_SAM_APDU [10:11:44]CAPDU: 80 09 00 00 [10:11:44]Write to MH i2c: E2 08 00 4C 71 80 09 00 00 00 00 00 00 2F [10:11:44]Write i2c OK [10:11:44]MH_I2C_Read... [10:11:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:11:44]Read from MH i2c: E2 [10:11:44]MH_I2C_Read... [10:11:44]Read from MH i2c: E2 03 00 [10:11:44]MH_I2C_Read... [10:11:44]Read from MH i2c: E2 03 00 4C 71 00 90 00 31 [10:11:44]RAPDU: 90 00 [10:11:44]wFMCommunicate OK [10:11:44]SAM_PROTO_ClearQueue done [10:11:44]KKMCreateOFDPacket [10:11:44]OFDProtocolAddRootSTLVToBuf [10:11:44]FM_MakeSignedData [10:11:44]FM_MakeSignedData [10:11:44]SAM_PROTO_SignData [10:11:44]wFMCommunicate request_size=4 [10:11:44]MH_SAM_APDU [10:11:44]CAPDU: 80 0D 01 02 [10:11:44]Write to MH i2c: E2 08 00 4D 71 80 0D 01 02 00 00 00 00 37 [10:11:44]Write i2c OK [10:11:44]MH_I2C_Read... [10:11:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:11:44]Read from MH i2c: E2 [10:11:44]MH_I2C_Read... [10:11:44]Read from MH i2c: E2 03 00 [10:11:44]MH_I2C_Read... [10:11:44]Read from MH i2c: E2 03 00 4D 71 00 90 00 32 [10:11:44]RAPDU: 90 00 [10:11:44]wFMCommunicate OK [10:11:44]wFMCommunicate request_size=255 [10:11:44]MH_SAM_APDU [10:11:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 67 D7 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 6B [10:11:44]Write to MH i2c: E2 02 01 4E 71 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 67 D7 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 6B 00 00 4C [10:11:44]Write i2c OK [10:11:44]MH_I2C_Read... [10:11:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:11:44]Read from MH i2c: E2 [10:11:44]MH_I2C_Read... [10:11:44]Read from MH i2c: E2 03 00 [10:11:44]MH_I2C_Read... [10:11:44]Read from MH i2c: E2 03 00 4E 71 00 90 00 33 [10:11:44]RAPDU: 90 00 [10:11:44]wFMCommunicate OK [10:11:44]wFMCommunicate request_size=10 [10:11:44]MH_SAM_APDU [10:11:44]CAPDU: 80 0D 02 02 05 FA B4 E3 4E EC [10:11:44]Write to MH i2c: E2 0D 00 4F 71 80 0D 02 02 05 00 FA B4 E3 4E EC 00 00 0F [10:11:44]Write i2c OK [10:11:44]MH_I2C_Read... [10:11:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:11:44]Read from MH i2c: E2 [10:11:44]MH_I2C_Read... [10:11:44]Read from MH i2c: E2 03 00 [10:11:44]MH_I2C_Read... [10:11:44]Read from MH i2c: E2 03 00 4F 71 00 90 00 34 [10:11:44]RAPDU: 90 00 [10:11:44]wFMCommunicate OK [10:11:44]wFMCommunicate request_size=4 [10:11:44]MH_SAM_APDU [10:11:44]CAPDU: 80 0D 03 02 [10:11:44]Write to MH i2c: E2 08 00 50 71 80 0D 03 02 00 00 00 00 3C [10:11:44]Write i2c OK [10:11:44]MH_I2C_Read... [10:11:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:11:44]Read from MH i2c: E2 [10:11:44]MH_I2C_Read... [10:11:44]Read from MH i2c: E2 0B 00 [10:11:44]MH_I2C_Read... [10:11:44]Read from MH i2c: E2 0B 00 50 71 00 1A 56 16 A7 F1 75 AE 13 90 00 91 [10:11:44]RAPDU: 1A 56 16 A7 F1 75 AE 13 90 00 [10:11:44]wFMCommunicate OK [10:11:44]SAM_PROTO_SignData done [10:11:44]FM_MakeSignedData done [10:11:44]CreateOFDProtocolMessage [10:11:44]wFMCommunicate request_size=4 [10:11:44]MH_SAM_APDU [10:11:44]CAPDU: 80 11 00 00 [10:11:44]Write to MH i2c: E2 08 00 51 71 80 11 00 00 00 00 00 00 3C [10:11:44]Write i2c OK [10:11:44]MH_I2C_Read... [10:11:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:11:44]Read from MH i2c: E2 [10:11:44]MH_I2C_Read... [10:11:44]Read from MH i2c: E2 17 00 [10:11:44]MH_I2C_Read... [10:11:44]Read from MH i2c: E2 17 00 51 71 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 8A [10: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 [10:11:44]wFMCommunicate OK [10:11:44]CreateOFDProtocolMessage done [10:11:44]OFDSenderStorePacket 30273 [10:11:44]StoreOFDPacket docnum=30273 [10:11: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 4E D4 07 01 87 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 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 67 D7 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 6B FA B4 E3 4E EC 1A 56 16 A7 F1 75 AE 13 [10:11:44]CheckFolder [10:11:44]dirname=/storage/ofd_packets [10:11:44]CheckFolder done [10:11:44]ProducePacketName [10:11:44]name=ofd_packets/00030273 [10:11:44]NVStorageSaveData ofd_packets/00030273 [10:11:44]File name is /storage/ofd_packets/00030273 [10:11:44]Write 301 bytes [10:11:44]NVStorageSaveData done [10:11:44]OFDSenderStorePacket done [10:11:44]KKMCreateOFDPacket done [10:11:44]NVStorageSaveData kkm_last_timestamp [10:11:44]File name is /storage/kkm_last_timestamp [10:11:44]Write 4 bytes [10:11:44]NVStorageSaveData done [10:11:44]ExternCall_PrintAddStr [10:11:44]wPrintStart [10:11:44]Write to MH i2c: 01 00 00 52 71 C3 [10:11:44]Write i2c OK [10:11:44]MH_I2C_Read... [10:11:44]Read from MH i2c: 01 [10:11:44]MH_I2C_Read... [10:11:44]Read from MH i2c: 01 07 00 [10:11:44]MH_I2C_Read... [10:11:44]Read from MH i2c: 01 07 00 52 71 00 00 00 00 00 FF 0F D8 [10:11:44]RasterBufferAndPrint [10:11:44]line Счет N : (1)342664 [10:11:44]line ИНН: 02508201610067 [10:11:44]line Контрольно-Кассовый Чек [10:11:44]line ПРОДАЖА [10:11:44]line ТРК (МРК, ГНК) : 63 [10:11:44]line Товар: 2710124130 [10:11:44]line Аи-92-К-2 [10:11:44]line 7.480 * 66.90 [10:11:44]line = 500.41 [10:11:44]line НДС 12% НСП 1% [10:11:44]line > о реализуемом товаре [10:11:44]line ОКРУГЛЕНИЕ: -0.41 [10:11:44]line ИТОГО: 500.00 [10:11:44]line Внесено: 500.00 [10:11:44]line СДАЧА: 0.00 [10:11:44]line НСП 1% : 4.43 [10:11:44]line НДС 12% : 53.14 [10:11:44]line Наличными: 500.00 [10:11:44]line Безнал.: 0.00 [10:11:44]line Место: АЗС № 78 "Партнер Нефть" [10:11:44]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [10:11:44]line СНО: Общий режим [10:11:44]line Чек 55 20.10.2024 10:11 [10:11:44]line Смена: 114 ФФД: 1.0 [10:11:44]line ЗНМ: 0300000137 [10:11:44]line РНМ: 0000000000186857 [10:11:44]line Версия ККМ: v1.0 [10:11:44]line ФМ: 0000000002094219 [10:11:44]line ФД: 30273 [10:11:44]line ФПД: 118724520791788 [10:11:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T101151&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30273&fm=118724520791788&tin=02508201610067®Number=0000000000186857&sum=50000 [10:11:45]OFD Sender: Processing packet 30273 [packets to send 10, broken 9] [10:11:45]ProducePacketName [10:11:45]name=ofd_packets/00030273 [10:11:45]OFD Sender: To server: pG, [10:11:45]CommunicateWithHost lk.salyk.kg:30040 [10:11:45]ConnectInit lk.salyk.kg [10:11:45]written 0, free lines is 4095 [10:11:45]Connected sock=10 [10:11: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 4E D4 07 01 87 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 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 67 D7 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 6B FA B4 E3 4E EC 1A 56 16 A7 F1 75 AE 13 [10:11: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 75 29 47 00 5B 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 41 76 00 00 F4 03 04 00 EC 81 14 67 B6 04 01 00 00 8F 34 34 0D 04 40 A4 33 [10:11:45]CommunicateWithHost err = 0 [10:11:45]CheckOFDResponse [10:11:45]1017 (14) - 77093643461234 [10:11:45]1041 (16) - 0000000002094219 [10:11:45]1040 (4) - 30273 [10:11:45]1012 (4) - 20.10.2024 04:07 [10:11:45]1206 (1) - 0 [10:11:45]OFD Sender: Remove packet 30273 [10:11:45]ProducePacketName [10:11:45]name=ofd_packets/00030273 [10:11:45]NVStorageDeleteData [10:11:45]Write to MH i2c: 01 00 00 7D 71 EE [10:11:45]Write i2c OK [10:11:45]MH_I2C_Read... [10:11:45]Read from MH i2c: 01 [10:11:45]MH_I2C_Read... [10:11:45]Read from MH i2c: 01 07 00 [10:11:45]MH_I2C_Read... [10:11:45]Read from MH i2c: 01 07 00 7D 71 00 00 00 00 00 EE 0C EF [10:11:45]RasterBufferAndPrint [10:11:45]line [10:11:45]line [10:11:45]line [10:11:45]line [10:11:45]line [10:11:45]written 0, free lines is 3316 [10:11:45]MH_Cut [10:11:45]Write to MH i2c: D1 01 00 84 71 01 C7 [10:11:45]Write i2c OK [10:11:45]MH_I2C_Read... [10:11:45]Read from MH i2c: D1 [10:11:45]MH_I2C_Read... [10:11:45]Read from MH i2c: D1 01 00 [10:11:45]MH_I2C_Read... [10:11:45]Read from MH i2c: D1 01 00 84 71 00 C6 [10:11:45]Write to MH i2c: 01 00 00 85 71 F6 [10:11:45]Write i2c OK [10:11:45]MH_I2C_Read... [10:11:45]OFD Sender: No OFD packet to send [10:11:46]*** Cut start [10:11:46]*** Partial cut [10:11:46]*** CUTSNS_PIN = 1 [10:11:46]*** CUTSNS_PIN = 0 [10:11:46]*** Brake cut motor [10:11:46]Read from MH i2c: 01 [10:11:46]MH_I2C_Read... [10:11:46]*** Stop cut motor [10:11:46]*** Cut end [10:11:46]Read from MH i2c: 01 07 00 [10:11:46]MH_I2C_Read... [10:11:46]Read from MH i2c: 01 07 00 85 71 00 00 00 00 00 FF 0F 0B [10:11:46]process_action close_receipt done [10:11:46]requested_data is exist [10:11:46]produce_requested_data [10:11:46]requested_item fm.sn is exist - process it [10:11:46]wFMCommunicate request_size=4 [10:11:46]MH_SAM_APDU [10:11:46]CAPDU: 80 11 00 00 [10:11:46]Write to MH i2c: E2 08 00 86 71 80 11 00 00 00 00 00 00 71 [10:11:46]Write i2c OK [10:11:46]MH_I2C_Read... [10:11:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:11:46]Read from MH i2c: E2 [10:11:46]MH_I2C_Read... [10:11:46]Read from MH i2c: E2 17 00 [10:11:46]MH_I2C_Read... [10:11:46]Read from MH i2c: E2 17 00 86 71 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 BF [10:11: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:11:46]wFMCommunicate OK [10:11:46]requested_item fd.num is exist - process it [10:11:46]SAM_PROTO_GetFieldsCounters [10:11:46]wFMCommunicate request_size=4 [10:11:46]MH_SAM_APDU [10:11:46]CAPDU: 80 13 00 00 [10:11:46]Write to MH i2c: E2 08 00 87 71 80 13 00 00 00 00 00 00 74 [10:11:46]Write i2c OK [10:11:46]MH_I2C_Read... [10:11:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:11:47]Read from MH i2c: E2 [10:11:47]MH_I2C_Read... [10:11:47]Read from MH i2c: E2 62 00 [10:11:47]MH_I2C_Read... [10:11:47]Read from MH i2c: E2 62 00 87 71 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 68 [10:11: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 41 76 00 00 0E 04 04 00 72 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:11:47]wFMCommunicate OK [10:11:47]SAM_PROTO_GetFieldsCounters done [10:11:47]requested_item shift.num is exist - process it [10:11:47]requested_item shift.opened is exist - process it [10:11:47]req_shift_opened [10:11:47]FM_GetShiftState [10:11:47]SAM_PROTO_GetShiftState [10:11:47]wFMCommunicate request_size=4 [10:11:47]MH_SAM_APDU [10:11:47]CAPDU: 80 13 01 00 [10:11:47]Write to MH i2c: E2 08 00 88 71 80 13 01 00 00 00 00 00 76 [10:11:47]Write i2c OK [10:11:47]MH_I2C_Read... [10:11:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:11:47]Read from MH i2c: E2 [10:11:47]MH_I2C_Read... [10:11:47]Read from MH i2c: E2 0E 00 [10:11:47]MH_I2C_Read... [10:11:47]Read from MH i2c: E2 0E 00 88 71 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 5C [10:11:47]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [10:11:47]wFMCommunicate OK [10:11:47]SAM_PROTO_GetShiftState done [10:11:47]FM_GetShiftState done [10:11:47]req_shift_opened done [10:11:47]requested_item shift.open_date is exist - process it [10:11:47]req_shift_open_date [10:11:47]req_shift_open_date done [10:11:47]produce_requested_data done [10:11:47]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30273,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [10:11:47]process_action_free close_receipt [10:11:47]json_value_free [10:11:47]json_value_free done [10:11:47]process_json_proto returns [10:11:47]Send response to host [10:11:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30273,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [10:11:47]free response buf [10:11:47]execute_script done [10:11:47]execute_script returns [10:11:47]free content buf [10:11:47]Sock 9.Close socket [10:11:47]Sock 9.Thread stoped [10:11:50]OFD Sender: No OFD packet to send [10:11:55]OFD Sender: No OFD packet to send [10:12:00]OFD Sender: No OFD packet to send [10:12:05]OFD Sender: No OFD packet to send [10:12:11]OFD Sender: No OFD packet to send [10:12:16]OFD Sender: No OFD packet to send [10:12:21]OFD Sender: No OFD packet to send [10:12:26]OFD Sender: No OFD packet to send [10:12:31]OFD Sender: No OFD packet to send [10:12:36]OFD Sender: No OFD packet to send [10:12:41]OFD Sender: No OFD packet to send [10:12:46]OFD Sender: No OFD packet to send [10:12:51]OFD Sender: No OFD packet to send [10:12:56]OFD Sender: No OFD packet to send [10:13:01]OFD Sender: No OFD packet to send [10:13:06]OFD Sender: No OFD packet to send [10:13:11]OFD Sender: No OFD packet to send [10:13:16]OFD Sender: No OFD packet to send [10:13:21]OFD Sender: No OFD packet to send [10:13:26]OFD Sender: No OFD packet to send [10:13:31]OFD Sender: No OFD packet to send [10:13:36]OFD Sender: No OFD packet to send [10:13:41]OFD Sender: No OFD packet to send [10:13:46]OFD Sender: No OFD packet to send [10:13:51]OFD Sender: No OFD packet to send [10:13:56]OFD Sender: No OFD packet to send [10:14:01]OFD Sender: No OFD packet to send [10:14:06]OFD Sender: No OFD packet to send [10:14:11]OFD Sender: No OFD packet to send [10:14:16]OFD Sender: No OFD packet to send [10:14:21]OFD Sender: No OFD packet to send [10:14:26]OFD Sender: No OFD packet to send [10:14:31]OFD Sender: No OFD packet to send [10:14:36]OFD Sender: No OFD packet to send [10:14:41]OFD Sender: No OFD packet to send [10:14:46]OFD Sender: No OFD packet to send [10:14:51]OFD Sender: No OFD packet to send [10:14:56]OFD Sender: No OFD packet to send [10:15:01]OFD Sender: No OFD packet to send [10:15:06]OFD Sender: No OFD packet to send [10:15:11]OFD Sender: No OFD packet to send [10:15:16]OFD Sender: No OFD packet to send [10:15:21]OFD Sender: No OFD packet to send [10:15:26]OFD Sender: No OFD packet to send [10:15:31]OFD Sender: No OFD packet to send [10:15:36]OFD Sender: No OFD packet to send [10:15:41]OFD Sender: No OFD packet to send [10:15:46]OFD Sender: No OFD packet to send [10:15:51]OFD Sender: No OFD packet to send [10:15:56]OFD Sender: No OFD packet to send [10:16:01]OFD Sender: No OFD packet to send [10:16:03]accept exits with 7 [10:16:03]New connection [10:16:03]New thread 3067514212 created [10:16:03]Thread 3067370852 joined [10:16:03]Waiting for new connection... [10:16:03] Sock 7.Parse request [10:16:03]Sock 7.Check first char [10:16:03]Sock 7.First char is OK [10:16:03]request: POST /json_proto HTTP/1.0 [10:16:03]Method: POST [10:16:03]URL: /json_proto [10:16:03]Method is POST - this is cgi request [10:16:03]url: /json_proto [10:16:03]query_string will be loaded in cgi processing [10:16:03]execute_cgi json_proto POST (null) [10:16:03]execute_cgi path=json_proto method=POST [10:16:03]POST find Content-Length [10:16:03]Host: 172.17.51.3:8080 [10:16:03]Content-Length: 677 [10:16:03]Content-Type: application/json [10:16:03] [10:16:03]POST finish read [10:16:03]Found Content-Length = 677 [10:16:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342667", "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" ] } } [10:16:03]execute_script... [10:16: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)342667", "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" ] } } [10:16:03]POST & json_proto [10:16:03]process_json_proto [10:16:03]json parsed OK: [10:16:03]protocol is kg_v1.0 [10:16:03]action value=close_receipt [10:16:03]process_action close_receipt [10:16:03]cmd_close_receipt [10:16:03]MH_GetDate [10:16:03]Write to MH i2c: F0 00 00 89 71 E9 [10:16:03]Write i2c OK [10:16:03]MH_I2C_Read... [10:16:03]Read from MH i2c: F0 [10:16:03]MH_I2C_Read... [10:16:03]Read from MH i2c: F0 09 00 [10:16:03]MH_I2C_Read... [10:16:03]Read from MH i2c: F0 09 00 89 71 00 6C D8 14 67 04 C1 95 66 71 [10:16:03]GetLastDocTimeStamp 1729419111 [10:16:03]current date 1729419372 [10:16:03]FM_GetShiftState [10:16:03]SAM_PROTO_GetShiftState [10:16:03]wFMCommunicate request_size=4 [10:16:03]MH_SAM_APDU [10:16:03]CAPDU: 80 13 01 00 [10:16:03]Write to MH i2c: E2 08 00 8A 71 80 13 01 00 00 00 00 00 78 [10:16:03]Write i2c OK [10:16:03]MH_I2C_Read... [10:16:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:16:03]Read from MH i2c: E2 [10:16:03]MH_I2C_Read... [10:16:03]Read from MH i2c: E2 0E 00 [10:16:03]MH_I2C_Read... [10:16:03]Read from MH i2c: E2 0E 00 8A 71 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 5E [10:16:03]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [10:16:03]wFMCommunicate OK [10:16:03]SAM_PROTO_GetShiftState done [10:16:03]FM_GetShiftState done [10:16:03]opened in 1729384718 [10:16:03]opened+sec_in_day 1729471118 [10:16:03]quantity*price = 40006 [10:16:03]sum+1 = 40007 [10:16: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 СНО: Общий режим Чек 56 20.10.2024 10:16 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30274 ФПД: 17319060222450 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T101612&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30274&fm=17319060222450&tin=02508201610067®Number=0000000000186857&sum=40000 [10:16:04]StoreToDocumentArchive [10:16:04]shift 114 fd 30274 [10:16:04]save to /storage/0114/doc_00030274 [10:16:04]save last doc name /storage/0114/doc_00030274 to /storage/kkm_last_doc_name [10:16:04]save OK [10:16:04]Clear old archive folders... [10:16:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:16:04]tlvbuf is 00CB6FC0 [10:16:04]SAM_PROTO_ClearQueue [10:16:04]wFMCommunicate request_size=4 [10:16:04]MH_SAM_APDU [10:16:04]CAPDU: 80 09 00 00 [10:16:04]Write to MH i2c: E2 08 00 97 71 80 09 00 00 00 00 00 00 7A [10:16:04]Write i2c OK [10:16:04]MH_I2C_Read... [10:16:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:16:04]Read from MH i2c: E2 [10:16:04]MH_I2C_Read... [10:16:04]Read from MH i2c: E2 03 00 [10:16:04]MH_I2C_Read... [10:16:04]Read from MH i2c: E2 03 00 97 71 00 90 00 7C [10:16:04]RAPDU: 90 00 [10:16:04]wFMCommunicate OK [10:16:04]SAM_PROTO_ClearQueue done [10:16:04]KKMCreateOFDPacket [10:16:04]OFDProtocolAddRootSTLVToBuf [10:16:04]FM_MakeSignedData [10:16:04]FM_MakeSignedData [10:16:04]SAM_PROTO_SignData [10:16:04]wFMCommunicate request_size=4 [10:16:04]MH_SAM_APDU [10:16:04]CAPDU: 80 0D 01 02 [10:16:04]Write to MH i2c: E2 08 00 98 71 80 0D 01 02 00 00 00 00 82 [10:16:04]Write i2c OK [10:16:04]MH_I2C_Read... [10:16:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:16:04]Read from MH i2c: E2 [10:16:04]MH_I2C_Read... [10:16:04]Read from MH i2c: E2 03 00 [10:16:04]MH_I2C_Read... [10:16:04]Read from MH i2c: E2 03 00 98 71 00 90 00 7D [10:16:04]RAPDU: 90 00 [10:16:04]wFMCommunicate OK [10:16:04]wFMCommunicate request_size=255 [10:16:04]MH_SAM_APDU [10:16: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 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 6C D8 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 0F [10:16:04]Write to MH i2c: E2 02 01 99 71 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 6C D8 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 0F 00 00 12 [10:16:04]Write i2c OK [10:16:04]MH_I2C_Read... [10:16:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:16:05]Read from MH i2c: E2 [10:16:05]MH_I2C_Read... [10:16:05]Read from MH i2c: E2 03 00 [10:16:05]MH_I2C_Read... [10:16:05]Read from MH i2c: E2 03 00 99 71 00 90 00 7E [10:16:05]RAPDU: 90 00 [10:16:05]wFMCommunicate OK [10:16:05]wFMCommunicate request_size=10 [10:16:05]MH_SAM_APDU [10:16:05]CAPDU: 80 0D 02 02 05 C0 68 6E B1 F2 [10:16:05]Write to MH i2c: E2 0D 00 9A 71 80 0D 02 02 05 00 C0 68 6E B1 F2 00 00 C8 [10:16:05]Write i2c OK [10:16:05]MH_I2C_Read... [10:16:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:16:05]Read from MH i2c: E2 [10:16:05]MH_I2C_Read... [10:16:05]Read from MH i2c: E2 03 00 [10:16:05]MH_I2C_Read... [10:16:05]Read from MH i2c: E2 03 00 9A 71 00 90 00 7F [10:16:05]RAPDU: 90 00 [10:16:05]wFMCommunicate OK [10:16:05]wFMCommunicate request_size=4 [10:16:05]MH_SAM_APDU [10:16:05]CAPDU: 80 0D 03 02 [10:16:05]Write to MH i2c: E2 08 00 9B 71 80 0D 03 02 00 00 00 00 87 [10:16:05]Write i2c OK [10:16:05]MH_I2C_Read... [10:16:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:16:05]Read from MH i2c: E2 [10:16:05]MH_I2C_Read... [10:16:05]Read from MH i2c: E2 0B 00 [10:16:05]MH_I2C_Read... [10:16:05]Read from MH i2c: E2 0B 00 9B 71 00 24 09 2D 1F 28 98 B4 58 90 00 CD [10:16:05]RAPDU: 24 09 2D 1F 28 98 B4 58 90 00 [10:16:05]wFMCommunicate OK [10:16:05]SAM_PROTO_SignData done [10:16:05]FM_MakeSignedData done [10:16:05]CreateOFDProtocolMessage [10:16:05]wFMCommunicate request_size=4 [10:16:05]MH_SAM_APDU [10:16:05]CAPDU: 80 11 00 00 [10:16:05]Write to MH i2c: E2 08 00 9C 71 80 11 00 00 00 00 00 00 87 [10:16:05]Write i2c OK [10:16:05]MH_I2C_Read... [10:16:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:16:05]Read from MH i2c: E2 [10:16:05]MH_I2C_Read... [10:16:05]Read from MH i2c: E2 17 00 [10:16:05]MH_I2C_Read... [10:16:05]Read from MH i2c: E2 17 00 9C 71 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 D5 [10:16: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:16:05]wFMCommunicate OK [10:16:05]CreateOFDProtocolMessage done [10:16:05]OFDSenderStorePacket 30274 [10:16:05]StoreOFDPacket docnum=30274 [10:16: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 7C 49 07 01 DC 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 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 6C D8 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 0F C0 68 6E B1 F2 24 09 2D 1F 28 98 B4 58 [10:16:05]CheckFolder [10:16:05]dirname=/storage/ofd_packets [10:16:05]CheckFolder done [10:16:05]ProducePacketName [10:16:05]name=ofd_packets/00030274 [10:16:05]NVStorageSaveData ofd_packets/00030274 [10:16:05]File name is /storage/ofd_packets/00030274 [10:16:05]Write 301 bytes [10:16:05]NVStorageSaveData done [10:16:05]OFDSenderStorePacket done [10:16:05]KKMCreateOFDPacket done [10:16:05]NVStorageSaveData kkm_last_timestamp [10:16:05]File name is /storage/kkm_last_timestamp [10:16:05]Write 4 bytes [10:16:05]NVStorageSaveData done [10:16:05]ExternCall_PrintAddStr [10:16:05]wPrintStart [10:16:05]Write to MH i2c: 01 00 00 9D 71 0E [10:16:05]Write i2c OK [10:16:05]MH_I2C_Read... [10:16:05]Read from MH i2c: 01 [10:16:05]MH_I2C_Read... [10:16:05]Read from MH i2c: 01 07 00 [10:16:05]MH_I2C_Read... [10:16:05]Read from MH i2c: 01 07 00 9D 71 00 00 00 00 00 FF 0F 23 [10:16:05]RasterBufferAndPrint [10:16:05]line Счет N : (1)342667 [10:16:05]line ИНН: 02508201610067 [10:16:05]line Контрольно-Кассовый Чек [10:16:05]line ПРОДАЖА [10:16:05]line ТРК (МРК, ГНК) : 43 [10:16:05]line Товар: 2710124130 [10:16:05]line Аи-92-К-2 [10:16:05]line 5.980 * 66.90 [10:16:05]line = 400.06 [10:16:05]line НДС 12% НСП 1% [10:16:05]line > о реализуемом товаре [10:16:05]line ОКРУГЛЕНИЕ: -0.06 [10:16:05]line ИТОГО: 400.00 [10:16:05]line Внесено: 400.00 [10:16:05]line СДАЧА: 0.00 [10:16:05]line НСП 1% : 3.54 [10:16:05]line НДС 12% : 42.48 [10:16:05]line Наличными: 400.00 [10:16:05]line Безнал.: 0.00 [10:16:05]line Место: АЗС № 78 "Партнер Нефть" [10:16:05]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [10:16:05]line СНО: Общий режим [10:16:05]line Чек 56 20.10.2024 10:16 [10:16:05]line Смена: 114 ФФД: 1.0 [10:16:05]line ЗНМ: 0300000137 [10:16:05]line РНМ: 0000000000186857 [10:16:05]line Версия ККМ: v1.0 [10:16:05]line ФМ: 0000000002094219 [10:16:05]line ФД: 30274 [10:16:05]line ФПД: 17319060222450 [10:16:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T101612&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30274&fm=17319060222450&tin=02508201610067®Number=0000000000186857&sum=40000 [10:16:05]OFD Sender: Processing packet 30274 [packets to send 10, broken 9] [10:16:05]ProducePacketName [10:16:05]name=ofd_packets/00030274 [10:16:05]OFD Sender: To server: pG, [10:16:05]CommunicateWithHost lk.salyk.kg:30040 [10:16:05]ConnectInit lk.salyk.kg [10:16:05]written 0, free lines is 4095 [10:16:05]Connected sock=10 [10:16: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 7C 49 07 01 DC 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 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 6C D8 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 0F C0 68 6E B1 F2 24 09 2D 1F 28 98 B4 58 [10:16: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 8F D5 47 00 43 B3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 42 76 00 00 F4 03 04 00 F0 82 14 67 B6 04 01 00 00 7A BA 1C 85 97 7A 5B A7 [10:16:06]CommunicateWithHost err = 0 [10:16:06]CheckOFDResponse [10:16:06]1017 (14) - 77093643461234 [10:16:06]1041 (16) - 0000000002094219 [10:16:06]1040 (4) - 30274 [10:16:06]1012 (4) - 20.10.2024 04:11 [10:16:06]1206 (1) - 0 [10:16:06]OFD Sender: Remove packet 30274 [10:16:06]ProducePacketName [10:16:06]name=ofd_packets/00030274 [10:16:06]NVStorageDeleteData [10:16:06]Write to MH i2c: 01 00 00 C8 71 39 [10:16:06]Write i2c OK [10:16:06]MH_I2C_Read... [10:16:06]Read from MH i2c: 01 [10:16:06]MH_I2C_Read... [10:16:06]Read from MH i2c: 01 07 00 [10:16:06]MH_I2C_Read... [10:16:06]Read from MH i2c: 01 07 00 C8 71 00 00 00 00 00 F4 0C 40 [10:16:06]RasterBufferAndPrint [10:16:06]line [10:16:06]line [10:16:06]line [10:16:06]line [10:16:06]line [10:16:06]written 0, free lines is 3322 [10:16:06]MH_Cut [10:16:06]Write to MH i2c: D1 01 00 CF 71 01 12 [10:16:06]Write i2c OK [10:16:06]MH_I2C_Read... [10:16:06]Read from MH i2c: D1 [10:16:06]MH_I2C_Read... [10:16:06]Read from MH i2c: D1 01 00 [10:16:06]MH_I2C_Read... [10:16:06]Read from MH i2c: D1 01 00 CF 71 00 11 [10:16:06]Write to MH i2c: 01 00 00 D0 71 41 [10:16:06]Write i2c OK [10:16:06]MH_I2C_Read... [10:16:06]OFD Sender: No OFD packet to send [10:16:06]*** Cut start [10:16:06]*** Partial cut [10:16:06]*** CUTSNS_PIN = 1 [10:16:06]*** CUTSNS_PIN = 0 [10:16:07]*** Brake cut motor [10:16:07]Read from MH i2c: 01 [10:16:07]MH_I2C_Read... [10:16:07]*** Stop cut motor [10:16:07]*** Cut end [10:16:07]Read from MH i2c: 01 07 00 [10:16:07]MH_I2C_Read... [10:16:07]Read from MH i2c: 01 07 00 D0 71 00 00 00 00 00 FF 0F 56 [10:16:07]process_action close_receipt done [10:16:07]requested_data is exist [10:16:07]produce_requested_data [10:16:07]requested_item fm.sn is exist - process it [10:16:07]wFMCommunicate request_size=4 [10:16:07]MH_SAM_APDU [10:16:07]CAPDU: 80 11 00 00 [10:16:07]Write to MH i2c: E2 08 00 D1 71 80 11 00 00 00 00 00 00 BC [10:16:07]Write i2c OK [10:16:07]MH_I2C_Read... [10:16:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:16:07]Read from MH i2c: E2 [10:16:07]MH_I2C_Read... [10:16:07]Read from MH i2c: E2 17 00 [10:16:07]MH_I2C_Read... [10:16:07]Read from MH i2c: E2 17 00 D1 71 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 0A [10:16: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:16:07]wFMCommunicate OK [10:16:07]requested_item fd.num is exist - process it [10:16:07]SAM_PROTO_GetFieldsCounters [10:16:07]wFMCommunicate request_size=4 [10:16:07]MH_SAM_APDU [10:16:07]CAPDU: 80 13 00 00 [10:16:07]Write to MH i2c: E2 08 00 D2 71 80 13 00 00 00 00 00 00 BF [10:16:07]Write i2c OK [10:16:07]MH_I2C_Read... [10:16:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:16:07]Read from MH i2c: E2 [10:16:07]MH_I2C_Read... [10:16:07]Read from MH i2c: E2 62 00 [10:16:07]MH_I2C_Read... [10:16:07]Read from MH i2c: E2 62 00 D2 71 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 B7 [10:16: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 42 76 00 00 0E 04 04 00 72 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:16:07]wFMCommunicate OK [10:16:07]SAM_PROTO_GetFieldsCounters done [10:16:07]requested_item shift.num is exist - process it [10:16:07]requested_item shift.opened is exist - process it [10:16:07]req_shift_opened [10:16:07]FM_GetShiftState [10:16:07]SAM_PROTO_GetShiftState [10:16:07]wFMCommunicate request_size=4 [10:16:07]MH_SAM_APDU [10:16:07]CAPDU: 80 13 01 00 [10:16:07]Write to MH i2c: E2 08 00 D3 71 80 13 01 00 00 00 00 00 C1 [10:16:07]Write i2c OK [10:16:07]MH_I2C_Read... [10:16:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:16:07]Read from MH i2c: E2 [10:16:07]MH_I2C_Read... [10:16:07]Read from MH i2c: E2 0E 00 [10:16:07]MH_I2C_Read... [10:16:07]Read from MH i2c: E2 0E 00 D3 71 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 A7 [10:16:07]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [10:16:07]wFMCommunicate OK [10:16:07]SAM_PROTO_GetShiftState done [10:16:07]FM_GetShiftState done [10:16:07]req_shift_opened done [10:16:07]requested_item shift.open_date is exist - process it [10:16:07]req_shift_open_date [10:16:07]req_shift_open_date done [10:16:07]produce_requested_data done [10:16:07]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30274,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [10:16:07]process_action_free close_receipt [10:16:07]json_value_free [10:16:07]json_value_free done [10:16:07]process_json_proto returns [10:16:07]Send response to host [10:16:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30274,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [10:16:07]free response buf [10:16:07]execute_script done [10:16:07]execute_script returns [10:16:07]free content buf [10:16:07]Sock 7.Close socket [10:16:07]Sock 7.Thread stoped [10:16:11]OFD Sender: No OFD packet to send [10:16:16]OFD Sender: No OFD packet to send [10:16:21]OFD Sender: No OFD packet to send [10:16:26]OFD Sender: No OFD packet to send [10:16:31]OFD Sender: No OFD packet to send [10:16:36]OFD Sender: No OFD packet to send [10:16:41]OFD Sender: No OFD packet to send [10:16:46]OFD Sender: No OFD packet to send [10:16:51]OFD Sender: No OFD packet to send [10:16:56]OFD Sender: No OFD packet to send [10:17:01]OFD Sender: No OFD packet to send [10:17:05]accept exits with 9 [10:17:05]New connection [10:17:05]New thread 3067370852 created [10:17:05]Thread 3067514212 joined [10:17:05]Waiting for new connection... [10:17:05] Sock 9.Parse request [10:17:05]Sock 9.Check first char [10:17:05]Sock 9.First char is OK [10:17:05]request: POST /json_proto HTTP/1.0 [10:17:05]Method: POST [10:17:05]URL: /json_proto [10:17:05]Method is POST - this is cgi request [10:17:05]url: /json_proto [10:17:05]query_string will be loaded in cgi processing [10:17:05]execute_cgi json_proto POST (null) [10:17:05]execute_cgi path=json_proto method=POST [10:17:05]POST find Content-Length [10:17:05]Host: 172.17.51.3:8080 [10:17:05]Content-Length: 977 [10:17:05]Content-Type: application/json [10:17:05] [10:17:05]POST finish read [10:17:05]Found Content-Length = 977 [10:17:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342666", "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" : 75.20, "quantity" : 61.180, "sum" : 4600.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 78\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 61.18 \u0441\u043E\u043C", "deposit" : 4600.00, "total" : 4600.00, "payments": [ { "type": 0, "sum" : 4600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:17:05]execute_script... [10:17: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)342666", "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" : 75.20, "quantity" : 61.180, "sum" : 4600.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 78\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 61.18 \u0441\u043E\u043C", "deposit" : 4600.00, "total" : 4600.00, "payments": [ { "type": 0, "sum" : 4600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:17:05]POST & json_proto [10:17:05]process_json_proto [10:17:05]json parsed OK: [10:17:05]protocol is kg_v1.0 [10:17:05]action value=close_receipt [10:17:05]process_action close_receipt [10:17:05]cmd_close_receipt [10:17:05]MH_GetDate [10:17:05]Write to MH i2c: F0 00 00 D4 71 34 [10:17:05]Write i2c OK [10:17:05]MH_I2C_Read... [10:17:05]Read from MH i2c: F0 [10:17:05]MH_I2C_Read... [10:17:05]Read from MH i2c: F0 09 00 [10:17:05]MH_I2C_Read... [10:17:05]Read from MH i2c: F0 09 00 D4 71 00 AA D8 14 67 04 C1 95 66 FA [10:17:05]GetLastDocTimeStamp 1729419372 [10:17:05]current date 1729419434 [10:17:05]FM_GetShiftState [10:17:05]SAM_PROTO_GetShiftState [10:17:05]wFMCommunicate request_size=4 [10:17:05]MH_SAM_APDU [10:17:05]CAPDU: 80 13 01 00 [10:17:05]Write to MH i2c: E2 08 00 D5 71 80 13 01 00 00 00 00 00 C3 [10:17:05]Write i2c OK [10:17:05]MH_I2C_Read... [10:17:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:17:05]Read from MH i2c: E2 [10:17:05]MH_I2C_Read... [10:17:05]Read from MH i2c: E2 0E 00 [10:17:05]MH_I2C_Read... [10:17:05]Read from MH i2c: E2 0E 00 D5 71 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 A9 [10:17:05]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [10:17:05]wFMCommunicate OK [10:17:05]SAM_PROTO_GetShiftState done [10:17:05]FM_GetShiftState done [10:17:05]opened in 1729384718 [10:17:05]opened+sec_in_day 1729471118 [10:17:05]quantity*price = 460073 [10:17:05]sum+1 = 460075 [10:17:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.74 ИТОГО: 4600.00 Внесено: 4600.00 СДАЧА: 0.00 НСП 1% : 40.71 НДС 12% : 488.57 Наличными: 4600.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 57 20.10.2024 10:17 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Дисконтная программа ДТ номер 78 сэкономлено 61.18 сом ФМ: 0000000002094219 ФД: 30275 ФПД: 183329806856890 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T101714&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30275&fm=183329806856890&tin=02508201610067®Number=0000000000186857&sum=460000 [10:17:06]StoreToDocumentArchive [10:17:06]shift 114 fd 30275 [10:17:06]save to /storage/0114/doc_00030275 [10:17:06]save last doc name /storage/0114/doc_00030275 to /storage/kkm_last_doc_name [10:17:06]save OK [10:17:06]Clear old archive folders... [10:17:06]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:17:06]tlvbuf is 00A9FF60 [10:17:06]SAM_PROTO_ClearQueue [10:17:06]wFMCommunicate request_size=4 [10:17:06]MH_SAM_APDU [10:17:06]CAPDU: 80 09 00 00 [10:17:06]Write to MH i2c: E2 08 00 E2 71 80 09 00 00 00 00 00 00 C5 [10:17:06]Write i2c OK [10:17:06]MH_I2C_Read... [10:17:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:17:06]Read from MH i2c: E2 [10:17:06]MH_I2C_Read... [10:17:06]Read from MH i2c: E2 03 00 [10:17:06]MH_I2C_Read... [10:17:06]Read from MH i2c: E2 03 00 E2 71 00 90 00 C7 [10:17:06]RAPDU: 90 00 [10:17:06]wFMCommunicate OK [10:17:06]SAM_PROTO_ClearQueue done [10:17:06]KKMCreateOFDPacket [10:17:06]OFDProtocolAddRootSTLVToBuf [10:17:06]FM_MakeSignedData [10:17:06]FM_MakeSignedData [10:17:06]SAM_PROTO_SignData [10:17:06]wFMCommunicate request_size=4 [10:17:06]MH_SAM_APDU [10:17:06]CAPDU: 80 0D 01 02 [10:17:06]Write to MH i2c: E2 08 00 E3 71 80 0D 01 02 00 00 00 00 CD [10:17:06]Write i2c OK [10:17:06]MH_I2C_Read... [10:17:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:17:06]Read from MH i2c: E2 [10:17:06]MH_I2C_Read... [10:17:06]Read from MH i2c: E2 03 00 [10:17:06]MH_I2C_Read... [10:17:06]Read from MH i2c: E2 03 00 E3 71 00 90 00 C8 [10:17:06]RAPDU: 90 00 [10:17:06]wFMCommunicate OK [10:17:06]wFMCommunicate request_size=255 [10:17:06]MH_SAM_APDU [10:17:06]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 FC EE 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 2A 05 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 04 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D9 BE 00 00 00 00 07 04 06 00 E0 04 07 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 AA D8 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 A6 BC CC 03 [10:17:06]Write to MH i2c: E2 02 01 E4 71 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 FC EE 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 2A 05 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 04 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D9 BE 00 00 00 00 07 04 06 00 E0 04 07 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 AA D8 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 A6 BC CC 03 00 00 BE [10:17:06]Write i2c OK [10:17:06]MH_I2C_Read... [10:17:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:17:06]Read from MH i2c: E2 [10:17:06]MH_I2C_Read... [10:17:06]Read from MH i2c: E2 03 00 [10:17:06]MH_I2C_Read... [10:17:06]Read from MH i2c: E2 03 00 E4 71 00 90 00 C9 [10:17:06]RAPDU: 90 00 [10:17:06]wFMCommunicate OK [10:17:06]wFMCommunicate request_size=7 [10:17:06]MH_SAM_APDU [10:17:06]CAPDU: 80 0D 02 02 02 B2 BA [10:17:06]Write to MH i2c: E2 0A 00 E5 71 80 0D 02 02 02 00 B2 BA 00 00 40 [10:17:06]Write i2c OK [10:17:06]MH_I2C_Read... [10:17:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:17:07]Read from MH i2c: E2 [10:17:07]MH_I2C_Read... [10:17:07]Read from MH i2c: E2 03 00 [10:17:07]MH_I2C_Read... [10:17:07]Read from MH i2c: E2 03 00 E5 71 00 90 00 CA [10:17:07]RAPDU: 90 00 [10:17:07]wFMCommunicate OK [10:17:07]wFMCommunicate request_size=4 [10:17:07]MH_SAM_APDU [10:17:07]CAPDU: 80 0D 03 02 [10:17:07]Write to MH i2c: E2 08 00 E6 71 80 0D 03 02 00 00 00 00 D2 [10:17:07]Write i2c OK [10:17:07]MH_I2C_Read... [10:17:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:17:07]Read from MH i2c: E2 [10:17:07]MH_I2C_Read... [10:17:07]Read from MH i2c: E2 0B 00 [10:17:07]MH_I2C_Read... [10:17:07]Read from MH i2c: E2 0B 00 E6 71 00 F2 3F 2F 4C D4 FB B4 4A 90 00 4C [10:17:07]RAPDU: F2 3F 2F 4C D4 FB B4 4A 90 00 [10:17:07]wFMCommunicate OK [10:17:07]SAM_PROTO_SignData done [10:17:07]FM_MakeSignedData done [10:17:07]CreateOFDProtocolMessage [10:17:07]wFMCommunicate request_size=4 [10:17:07]MH_SAM_APDU [10:17:07]CAPDU: 80 11 00 00 [10:17:07]Write to MH i2c: E2 08 00 E7 71 80 11 00 00 00 00 00 00 D2 [10:17:07]Write i2c OK [10:17:07]MH_I2C_Read... [10:17:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:17:07]Read from MH i2c: E2 [10:17:07]MH_I2C_Read... [10:17:07]Read from MH i2c: E2 17 00 [10:17:07]MH_I2C_Read... [10:17:07]Read from MH i2c: E2 17 00 E7 71 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 20 [10:17: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:17:07]wFMCommunicate OK [10:17:07]CreateOFDProtocolMessage done [10:17:07]OFDSenderStorePacket 30275 [10:17:07]StoreOFDPacket docnum=30275 [10:17: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 0C 01 00 00 4C 37 04 01 CE F4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 FC EE 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 2A 05 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 04 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D9 BE 00 00 00 00 07 04 06 00 E0 04 07 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 AA D8 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 A6 BC CC 03 B2 BA F2 3F 2F 4C D4 FB B4 4A [10:17:07]CheckFolder [10:17:07]dirname=/storage/ofd_packets [10:17:07]CheckFolder done [10:17:07]ProducePacketName [10:17:07]name=ofd_packets/00030275 [10:17:07]NVStorageSaveData ofd_packets/00030275 [10:17:07]File name is /storage/ofd_packets/00030275 [10:17:07]Write 298 bytes [10:17:07]NVStorageSaveData done [10:17:07]OFDSenderStorePacket done [10:17:07]KKMCreateOFDPacket done [10:17:07]NVStorageSaveData kkm_last_timestamp [10:17:07]File name is /storage/kkm_last_timestamp [10:17:07]Write 4 bytes [10:17:07]NVStorageSaveData done [10:17:07]ExternCall_PrintAddStr [10:17:07]wPrintStart [10:17:07]Write to MH i2c: 01 00 00 E8 71 59 [10:17:07]Write i2c OK [10:17:07]MH_I2C_Read... [10:17:07]Read from MH i2c: 01 [10:17:07]MH_I2C_Read... [10:17:07]Read from MH i2c: 01 07 00 [10:17:07]MH_I2C_Read... [10:17:07]Read from MH i2c: 01 07 00 E8 71 00 00 00 00 00 FF 0F 6E [10:17:07]RasterBufferAndPrint [10:17:07]line Счет N : (1)342666 [10:17:07]line ИНН: 02508201610067 [10:17:07]line Контрольно-Кассовый Чек [10:17:07]line ПРОДАЖА [10:17:07]line ТРК (МРК, ГНК) : 54 [10:17:07]line Товар: 2710194210 [10:17:07]line ДТ-К-2 [10:17:07]line 61.180 * 75.20 [10:17:07]line = 4600.74 [10:17:07]line НДС 12% НСП 1% [10:17:07]line > о реализуемом товаре [10:17:07]line ОКРУГЛЕНИЕ: -0.74 [10:17:07]line ИТОГО: 4600.00 [10:17:07]line Внесено: 4600.00 [10:17:07]line СДАЧА: 0.00 [10:17:07]line НСП 1% : 40.71 [10:17:07]line НДС 12% : 488.57 [10:17:07]line Наличными: 4600.00 [10:17:07]line Безнал.: 0.00 [10:17:07]line Место: АЗС № 78 "Партнер Нефть" [10:17:07]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [10:17:07]line СНО: Общий режим [10:17:07]line Чек 57 20.10.2024 10:17 [10:17:07]line Смена: 114 ФФД: 1.0 [10:17:07]line ЗНМ: 0300000137 [10:17:07]line РНМ: 0000000000186857 [10:17:07]line Версия ККМ: v1.0 [10:17:07]line [10:17:07]line Дисконтная программа [10:17:07]line ДТ [10:17:07]line номер 78 [10:17:07]line сэкономлено 61.18 сом [10:17:07]line ФМ: 0000000002094219 [10:17:07]line ФД: 30275 [10:17:07]line ФПД: 183329806856890 [10:17:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T101714&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30275&fm=183329806856890&tin=02508201610067®Number=0000000000186857&sum=460000 [10:17:07]OFD Sender: Processing packet 30275 [packets to send 10, broken 9] [10:17:07]ProducePacketName [10:17:07]name=ofd_packets/00030275 [10:17:07]OFD Sender: To server: pG, [10:17:07]CommunicateWithHost lk.salyk.kg:30040 [10:17:07]ConnectInit lk.salyk.kg [10:17:07]written 0, free lines is 4095 [10:17:07]Connected sock=10 [10:17: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 4C 37 04 01 CE F4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 FC EE 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 2A 05 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 04 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D9 BE 00 00 00 00 07 04 06 00 E0 04 07 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 AA D8 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 A6 BC CC 03 B2 BA F2 3F 2F 4C D4 FB B4 4A [10:17: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 D5 40 47 00 04 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 43 76 00 00 F4 03 04 00 2E 83 14 67 B6 04 01 00 00 52 0C 4B 6A 7A 0C 5F 4C [10:17:07]CommunicateWithHost err = 0 [10:17:07]CheckOFDResponse [10:17:07]1017 (14) - 77093643461234 [10:17:07]1041 (16) - 0000000002094219 [10:17:07]1040 (4) - 30275 [10:17:07]1012 (4) - 20.10.2024 04:12 [10:17:07]1206 (1) - 0 [10:17:07]OFD Sender: Remove packet 30275 [10:17:07]ProducePacketName [10:17:07]name=ofd_packets/00030275 [10:17:07]NVStorageDeleteData [10:17:07]Write to MH i2c: 01 00 00 18 72 8A [10:17:07]Write i2c OK [10:17:07]MH_I2C_Read... [10:17:07]Read from MH i2c: 01 [10:17:07]MH_I2C_Read... [10:17:07]Read from MH i2c: 01 07 00 [10:17:07]MH_I2C_Read... [10:17:07]Read from MH i2c: 01 07 00 18 72 00 00 00 00 00 A0 0C 3D [10:17:07]RasterBufferAndPrint [10:17:07]line [10:17:07]line [10:17:07]line [10:17:07]line [10:17:07]line [10:17:07]written 0, free lines is 3238 [10:17:08]MH_Cut [10:17:08]Write to MH i2c: D1 01 00 1F 72 01 63 [10:17:08]Write i2c OK [10:17:08]MH_I2C_Read... [10:17:08]Read from MH i2c: D1 [10:17:08]MH_I2C_Read... [10:17:08]Read from MH i2c: D1 01 00 [10:17:08]MH_I2C_Read... [10:17:08]Read from MH i2c: D1 01 00 1F 72 00 62 [10:17:08]Write to MH i2c: 01 00 00 20 72 92 [10:17:08]Write i2c OK [10:17:08]MH_I2C_Read... [10:17:08]OFD Sender: No OFD packet to send [10:17:08]*** Cut start [10:17:08]*** Partial cut [10:17:08]*** CUTSNS_PIN = 1 [10:17:08]*** CUTSNS_PIN = 0 [10:17:08]*** Brake cut motor [10:17:09]Read from MH i2c: 01 [10:17:09]MH_I2C_Read... [10:17:09]*** Stop cut motor [10:17:09]*** Cut end [10:17:09]Read from MH i2c: 01 07 00 [10:17:09]MH_I2C_Read... [10:17:09]Read from MH i2c: 01 07 00 20 72 00 00 00 00 00 FF 0F A7 [10:17:09]process_action close_receipt done [10:17:09]requested_data is exist [10:17:09]produce_requested_data [10:17:09]requested_item fm.sn is exist - process it [10:17:09]wFMCommunicate request_size=4 [10:17:09]MH_SAM_APDU [10:17:09]CAPDU: 80 11 00 00 [10:17:09]Write to MH i2c: E2 08 00 21 72 80 11 00 00 00 00 00 00 0D [10:17:09]Write i2c OK [10:17:09]MH_I2C_Read... [10:17:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:17:09]Read from MH i2c: E2 [10:17:09]MH_I2C_Read... [10:17:09]Read from MH i2c: E2 17 00 [10:17:09]MH_I2C_Read... [10:17:09]Read from MH i2c: E2 17 00 21 72 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 5B [10:17:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [10:17:09]wFMCommunicate OK [10:17:09]requested_item fd.num is exist - process it [10:17:09]SAM_PROTO_GetFieldsCounters [10:17:09]wFMCommunicate request_size=4 [10:17:09]MH_SAM_APDU [10:17:09]CAPDU: 80 13 00 00 [10:17:09]Write to MH i2c: E2 08 00 22 72 80 13 00 00 00 00 00 00 10 [10:17:09]Write i2c OK [10:17:09]MH_I2C_Read... [10:17:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:17:09]Read from MH i2c: E2 [10:17:09]MH_I2C_Read... [10:17:09]Read from MH i2c: E2 62 00 [10:17:09]MH_I2C_Read... [10:17:09]Read from MH i2c: E2 62 00 22 72 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 0C [10:17: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 43 76 00 00 0E 04 04 00 72 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:17:09]wFMCommunicate OK [10:17:09]SAM_PROTO_GetFieldsCounters done [10:17:09]requested_item shift.num is exist - process it [10:17:09]requested_item shift.opened is exist - process it [10:17:09]req_shift_opened [10:17:09]FM_GetShiftState [10:17:09]SAM_PROTO_GetShiftState [10:17:09]wFMCommunicate request_size=4 [10:17:09]MH_SAM_APDU [10:17:09]CAPDU: 80 13 01 00 [10:17:09]Write to MH i2c: E2 08 00 23 72 80 13 01 00 00 00 00 00 12 [10:17:09]Write i2c OK [10:17:09]MH_I2C_Read... [10:17:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:17:09]Read from MH i2c: E2 [10:17:09]MH_I2C_Read... [10:17:09]Read from MH i2c: E2 0E 00 [10:17:09]MH_I2C_Read... [10:17:09]Read from MH i2c: E2 0E 00 23 72 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 F8 [10:17:09]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [10:17:09]wFMCommunicate OK [10:17:09]SAM_PROTO_GetShiftState done [10:17:09]FM_GetShiftState done [10:17:09]req_shift_opened done [10:17:09]requested_item shift.open_date is exist - process it [10:17:09]req_shift_open_date [10:17:09]req_shift_open_date done [10:17:09]produce_requested_data done [10:17:09]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30275,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [10:17:09]process_action_free close_receipt [10:17:09]json_value_free [10:17:09]json_value_free done [10:17:09]process_json_proto returns [10:17:09]Send response to host [10:17:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30275,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [10:17:09]free response buf [10:17:09]execute_script done [10:17:09]execute_script returns [10:17:09]free content buf [10:17:09]Sock 9.Close socket [10:17:09]Sock 9.Thread stoped [10:17:13]OFD Sender: No OFD packet to send [10:17:18]OFD Sender: No OFD packet to send [10:17:23]OFD Sender: No OFD packet to send [10:17:28]OFD Sender: No OFD packet to send [10:17:33]OFD Sender: No OFD packet to send [10:17:38]OFD Sender: No OFD packet to send [10:17:43]OFD Sender: No OFD packet to send [10:17:48]OFD Sender: No OFD packet to send [10:17:53]OFD Sender: No OFD packet to send [10:17:58]OFD Sender: No OFD packet to send [10:18:03]OFD Sender: No OFD packet to send [10:18:08]OFD Sender: No OFD packet to send [10:18:13]OFD Sender: No OFD packet to send [10:18:18]OFD Sender: No OFD packet to send [10:18:23]OFD Sender: No OFD packet to send [10:18:28]OFD Sender: No OFD packet to send [10:18:33]OFD Sender: No OFD packet to send [10:18:38]OFD Sender: No OFD packet to send [10:18:43]OFD Sender: No OFD packet to send [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:08]OFD Sender: No OFD packet to send [10:20:13]OFD Sender: No OFD packet to send [10:20:18]OFD Sender: No OFD packet to send [10:20:23]OFD Sender: No OFD packet to send [10:20:28]OFD Sender: No OFD packet to send [10:20:33]OFD Sender: No OFD packet to send [10:20:38]OFD Sender: No OFD packet to send [10:20:43]OFD Sender: No OFD packet to send [10:20:48]OFD Sender: No OFD packet to send [10:20:53]OFD Sender: No OFD packet to send [10:20:58]OFD Sender: No OFD packet to send [10:21:03]OFD Sender: No OFD packet to send [10:21:08]OFD Sender: No OFD packet to send [10:21:13]OFD Sender: No OFD packet to send [10:21:18]OFD Sender: No OFD packet to send [10:21:23]OFD Sender: No OFD packet to send [10:21:28]OFD Sender: No OFD packet to send [10:21:33]OFD Sender: No OFD packet to send [10:21:38]OFD Sender: No OFD packet to send [10:21:43]OFD Sender: No OFD packet to send [10:21:48]OFD Sender: No OFD packet to send [10:21:53]OFD Sender: No OFD packet to send [10:21:58]OFD Sender: No OFD packet to send [10:22:03]OFD Sender: No OFD packet to send [10:22:08]OFD Sender: No OFD packet to send [10:22:13]OFD Sender: No OFD packet to send [10:22:18]OFD Sender: No OFD packet to send [10:22:23]OFD Sender: No OFD packet to send [10:22:28]OFD Sender: No OFD packet to send [10:22:33]OFD Sender: No OFD packet to send [10:22:38]OFD Sender: No OFD packet to send [10:22:43]OFD Sender: No OFD packet to send [10:22:48]OFD Sender: No OFD packet to send [10:22:53]OFD Sender: No OFD packet to send [10:22:58]OFD Sender: No OFD packet to send [10:23:03]OFD Sender: No OFD packet to send [10:23:08]OFD Sender: No OFD packet to send [10:23:13]OFD Sender: No OFD packet to send [10:23:18]OFD Sender: No OFD packet to send [10:23:23]OFD Sender: No OFD packet to send [10:23:28]OFD Sender: No OFD packet to send [10:23:33]OFD Sender: No OFD packet to send [10:23:38]OFD Sender: No OFD packet to send [10:23:43]OFD Sender: No OFD packet to send [10:23:48]OFD Sender: No OFD packet to send [10:23:53]OFD Sender: No OFD packet to send [10:23:58]OFD Sender: No OFD packet to send [10:24:03]OFD Sender: No OFD packet to send [10:24:08]OFD Sender: No OFD packet to send [10:24:13]OFD Sender: No OFD packet to send [10:24:18]OFD Sender: No OFD packet to send [10:24:23]OFD Sender: No OFD packet to send [10:24:28]OFD Sender: No OFD packet to send [10:24:33]OFD Sender: No OFD packet to send [10:24:38]OFD Sender: No OFD packet to send [10:24:43]OFD Sender: No OFD packet to send [10:24:48]OFD Sender: No OFD packet to send [10:24:53]OFD Sender: No OFD packet to send [10:24:58]OFD Sender: No OFD packet to send [10:25:03]OFD Sender: No OFD packet to send [10:25:08]OFD Sender: No OFD packet to send [10:25:13]OFD Sender: No OFD packet to send [10:25:18]OFD Sender: No OFD packet to send [10:25:23]OFD Sender: No OFD packet to send [10:25:28]OFD Sender: No OFD packet to send [10:25:33]OFD Sender: No OFD packet to send [10:25:38]OFD Sender: No OFD packet to send [10:25:43]OFD Sender: No OFD packet to send [10:25:48]OFD Sender: No OFD packet to send [10:25:53]OFD Sender: No OFD packet to send [10:25:58]OFD Sender: No OFD packet to send [10:26:03]OFD Sender: No OFD packet to send [10:26:08]OFD Sender: No OFD packet to send [10:26:13]OFD Sender: No OFD packet to send [10:26:18]OFD Sender: No OFD packet to send [10:26:23]OFD Sender: No OFD packet to send [10:26:28]OFD Sender: No OFD packet to send [10:26:33]OFD Sender: No OFD packet to send [10:26:38]OFD Sender: No OFD packet to send [10:26:43]OFD Sender: No OFD packet to send [10:26:48]OFD Sender: No OFD packet to send [10:26:53]OFD Sender: No OFD packet to send [10:26:58]OFD Sender: No OFD packet to send [10:27:03]OFD Sender: No OFD packet to send [10:27:08]OFD Sender: No OFD packet to send [10:27:13]OFD Sender: No OFD packet to send [10:27:18]OFD Sender: No OFD packet to send [10:27:23]OFD Sender: No OFD packet to send [10:27:25]accept exits with 7 [10:27:25]New connection [10:27:25]New thread 3067514212 created [10:27:25]Thread 3067370852 joined [10:27:25]Waiting for new connection... [10:27:25] Sock 7.Parse request [10:27:25]Sock 7.Check first char [10:27:25]Sock 7.First char is OK [10:27:25]request: POST /json_proto HTTP/1.0 [10:27:25]Method: POST [10:27:25]URL: /json_proto [10:27:25]Method is POST - this is cgi request [10:27:25]url: /json_proto [10:27:25]query_string will be loaded in cgi processing [10:27:25]execute_cgi json_proto POST (null) [10:27:25]execute_cgi path=json_proto method=POST [10:27:25]POST find Content-Length [10:27:25]Host: 172.17.51.3:8080 [10:27:25]Content-Length: 674 [10:27:25]Content-Type: application/json [10:27:25] [10:27:25]POST finish read [10:27:25]Found Content-Length = 674 [10:27:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342668", "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" ] } } [10:27:25]execute_script... [10:27: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)342668", "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" ] } } [10:27:25]POST & json_proto [10:27:25]process_json_proto [10:27:25]json parsed OK: [10:27:25]protocol is kg_v1.0 [10:27:25]action value=close_receipt [10:27:25]process_action close_receipt [10:27:25]cmd_close_receipt [10:27:25]MH_GetDate [10:27:25]Write to MH i2c: F0 00 00 24 72 85 [10:27:25]Write i2c OK [10:27:25]MH_I2C_Read... [10:27:25]Read from MH i2c: F0 [10:27:25]MH_I2C_Read... [10:27:25]Read from MH i2c: F0 09 00 [10:27:25]MH_I2C_Read... [10:27:25]Read from MH i2c: F0 09 00 24 72 00 16 DB 14 67 04 C1 95 66 BA [10:27:25]GetLastDocTimeStamp 1729419434 [10:27:25]current date 1729420054 [10:27:25]FM_GetShiftState [10:27:25]SAM_PROTO_GetShiftState [10:27:25]wFMCommunicate request_size=4 [10:27:25]MH_SAM_APDU [10:27:25]CAPDU: 80 13 01 00 [10:27:25]Write to MH i2c: E2 08 00 25 72 80 13 01 00 00 00 00 00 14 [10:27:25]Write i2c OK [10:27:25]MH_I2C_Read... [10:27:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:27:26]Read from MH i2c: E2 [10:27:26]MH_I2C_Read... [10:27:26]Read from MH i2c: E2 0E 00 [10:27:26]MH_I2C_Read... [10:27:26]Read from MH i2c: E2 0E 00 25 72 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 FA [10:27:26]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [10:27:26]wFMCommunicate OK [10:27:26]SAM_PROTO_GetShiftState done [10:27:26]FM_GetShiftState done [10:27:26]opened in 1729384718 [10:27:26]opened+sec_in_day 1729471118 [10:27:26]quantity*price = 50063 [10:27:26]sum+1 = 50064 [10:27:26]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 СНО: Общий режим Чек 58 20.10.2024 10:27 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30276 ФПД: 107502077061838 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T102734&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30276&fm=107502077061838&tin=02508201610067®Number=0000000000186857&sum=50000 [10:27:27]StoreToDocumentArchive [10:27:27]shift 114 fd 30276 [10:27:27]save to /storage/0114/doc_00030276 [10:27:27]save last doc name /storage/0114/doc_00030276 to /storage/kkm_last_doc_name [10:27:27]save OK [10:27:27]Clear old archive folders... [10:27:27]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:27:27]tlvbuf is 00C6E7B0 [10:27:27]SAM_PROTO_ClearQueue [10:27:27]wFMCommunicate request_size=4 [10:27:27]MH_SAM_APDU [10:27:27]CAPDU: 80 09 00 00 [10:27:27]Write to MH i2c: E2 08 00 32 72 80 09 00 00 00 00 00 00 16 [10:27:27]Write i2c OK [10:27:27]MH_I2C_Read... [10:27:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:27:27]Read from MH i2c: E2 [10:27:27]MH_I2C_Read... [10:27:27]Read from MH i2c: E2 03 00 [10:27:27]MH_I2C_Read... [10:27:27]Read from MH i2c: E2 03 00 32 72 00 90 00 18 [10:27:27]RAPDU: 90 00 [10:27:27]wFMCommunicate OK [10:27:27]SAM_PROTO_ClearQueue done [10:27:27]KKMCreateOFDPacket [10:27:27]OFDProtocolAddRootSTLVToBuf [10:27:27]FM_MakeSignedData [10:27:27]FM_MakeSignedData [10:27:27]SAM_PROTO_SignData [10:27:27]wFMCommunicate request_size=4 [10:27:27]MH_SAM_APDU [10:27:27]CAPDU: 80 0D 01 02 [10:27:27]Write to MH i2c: E2 08 00 33 72 80 0D 01 02 00 00 00 00 1E [10:27:27]Write i2c OK [10:27:27]MH_I2C_Read... [10:27:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:27:27]Read from MH i2c: E2 [10:27:27]MH_I2C_Read... [10:27:27]Read from MH i2c: E2 03 00 [10:27:27]MH_I2C_Read... [10:27:27]Read from MH i2c: E2 03 00 33 72 00 90 00 19 [10:27:27]RAPDU: 90 00 [10:27:27]wFMCommunicate OK [10:27:27]wFMCommunicate request_size=255 [10:27:27]MH_SAM_APDU [10:27: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 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 3A 00 00 00 F4 03 04 00 16 DB 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 61 C5 C7 1D [10:27:27]Write to MH i2c: E2 02 01 34 72 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 3A 00 00 00 F4 03 04 00 16 DB 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 61 C5 C7 1D 00 00 09 [10:27:27]Write i2c OK [10:27:27]MH_I2C_Read... [10:27:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:27:27]Read from MH i2c: E2 [10:27:27]MH_I2C_Read... [10:27:27]Read from MH i2c: E2 03 00 [10:27:27]MH_I2C_Read... [10:27:27]Read from MH i2c: E2 03 00 34 72 00 90 00 1A [10:27:27]RAPDU: 90 00 [10:27:27]wFMCommunicate OK [10:27:27]wFMCommunicate request_size=7 [10:27:27]MH_SAM_APDU [10:27:27]CAPDU: 80 0D 02 02 02 AA CE [10:27:27]Write to MH i2c: E2 0A 00 35 72 80 0D 02 02 02 00 AA CE 00 00 9D [10:27:27]Write i2c OK [10:27:27]MH_I2C_Read... [10:27:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:27:27]Read from MH i2c: E2 [10:27:27]MH_I2C_Read... [10:27:27]Read from MH i2c: E2 03 00 [10:27:27]MH_I2C_Read... [10:27:27]Read from MH i2c: E2 03 00 35 72 00 90 00 1B [10:27:27]RAPDU: 90 00 [10:27:27]wFMCommunicate OK [10:27:27]wFMCommunicate request_size=4 [10:27:27]MH_SAM_APDU [10:27:27]CAPDU: 80 0D 03 02 [10:27:27]Write to MH i2c: E2 08 00 36 72 80 0D 03 02 00 00 00 00 23 [10:27:27]Write i2c OK [10:27:27]MH_I2C_Read... [10:27:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:27:27]Read from MH i2c: E2 [10:27:27]MH_I2C_Read... [10:27:27]Read from MH i2c: E2 0B 00 [10:27:27]MH_I2C_Read... [10:27:27]Read from MH i2c: E2 0B 00 36 72 00 C5 76 86 29 E3 ED D1 E5 90 00 94 [10:27:27]RAPDU: C5 76 86 29 E3 ED D1 E5 90 00 [10:27:27]wFMCommunicate OK [10:27:27]SAM_PROTO_SignData done [10:27:27]FM_MakeSignedData done [10:27:27]CreateOFDProtocolMessage [10:27:27]wFMCommunicate request_size=4 [10:27:27]MH_SAM_APDU [10:27:27]CAPDU: 80 11 00 00 [10:27:27]Write to MH i2c: E2 08 00 37 72 80 11 00 00 00 00 00 00 23 [10:27:27]Write i2c OK [10:27:27]MH_I2C_Read... [10:27:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:27:27]Read from MH i2c: E2 [10:27:27]MH_I2C_Read... [10:27:27]Read from MH i2c: E2 17 00 [10:27:27]MH_I2C_Read... [10:27:27]Read from MH i2c: E2 17 00 37 72 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 71 [10:27:27]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:27]wFMCommunicate OK [10:27:27]CreateOFDProtocolMessage done [10:27:27]OFDSenderStorePacket 30276 [10:27:27]StoreOFDPacket docnum=30276 [10:27: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 F2 4A 04 01 9C 57 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 3A 00 00 00 F4 03 04 00 16 DB 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 61 C5 C7 1D AA CE C5 76 86 29 E3 ED D1 E5 [10:27:27]CheckFolder [10:27:27]dirname=/storage/ofd_packets [10:27:27]CheckFolder done [10:27:27]ProducePacketName [10:27:27]name=ofd_packets/00030276 [10:27:27]NVStorageSaveData ofd_packets/00030276 [10:27:27]File name is /storage/ofd_packets/00030276 [10:27:27]Write 298 bytes [10:27:27]NVStorageSaveData done [10:27:27]OFDSenderStorePacket done [10:27:27]KKMCreateOFDPacket done [10:27:27]NVStorageSaveData kkm_last_timestamp [10:27:27]File name is /storage/kkm_last_timestamp [10:27:27]Write 4 bytes [10:27:27]NVStorageSaveData done [10:27:27]ExternCall_PrintAddStr [10:27:27]wPrintStart [10:27:27]Write to MH i2c: 01 00 00 38 72 AA [10:27:27]Write i2c OK [10:27:27]MH_I2C_Read... [10:27:27]Read from MH i2c: 01 [10:27:27]MH_I2C_Read... [10:27:27]Read from MH i2c: 01 07 00 [10:27:27]MH_I2C_Read... [10:27:27]Read from MH i2c: 01 07 00 38 72 00 00 00 00 00 FF 0F BF [10:27:27]RasterBufferAndPrint [10:27:27]line Счет N : (1)342668 [10:27:27]line ИНН: 02508201610067 [10:27:27]line Контрольно-Кассовый Чек [10:27:27]line ПРОДАЖА [10:27:27]line ТРК (МРК, ГНК) : 64 [10:27:27]line Товар: 2710194210 [10:27:27]line ДТ-К-2 [10:27:27]line 6.570 * 76.20 [10:27:27]line = 500.63 [10:27:27]line НДС 12% НСП 1% [10:27:27]line > о реализуемом товаре [10:27:27]line ОКРУГЛЕНИЕ: -0.63 [10:27:27]line ИТОГО: 500.00 [10:27:27]line Внесено: 500.00 [10:27:27]line СДАЧА: 0.00 [10:27:27]line НСП 1% : 4.43 [10:27:27]line НДС 12% : 53.16 [10:27:27]line Наличными: 500.00 [10:27:27]line Безнал.: 0.00 [10:27:27]line Место: АЗС № 78 "Партнер Нефть" [10:27:27]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [10:27:27]line СНО: Общий режим [10:27:27]line Чек 58 20.10.2024 10:27 [10:27:27]line Смена: 114 ФФД: 1.0 [10:27:27]line ЗНМ: 0300000137 [10:27:27]line РНМ: 0000000000186857 [10:27:27]line Версия ККМ: v1.0 [10:27:27]line ФМ: 0000000002094219 [10:27:27]line ФД: 30276 [10:27:27]line ФПД: 107502077061838 [10:27:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T102734&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30276&fm=107502077061838&tin=02508201610067®Number=0000000000186857&sum=50000 [10:27:27]OFD Sender: Processing packet 30276 [packets to send 10, broken 9] [10:27:27]ProducePacketName [10:27:27]name=ofd_packets/00030276 [10:27:27]OFD Sender: To server: pG, [10:27:27]CommunicateWithHost lk.salyk.kg:30040 [10:27:27]ConnectInit lk.salyk.kg [10:27:27]written 0, free lines is 4095 [10:27:28]Connected sock=10 [10:27: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 0C 01 00 00 F2 4A 04 01 9C 57 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 3A 00 00 00 F4 03 04 00 16 DB 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 61 C5 C7 1D AA CE C5 76 86 29 E3 ED D1 E5 [10:27: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 55 7E 47 00 FD 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 44 76 00 00 F4 03 04 00 9B 85 14 67 B6 04 01 00 00 AC 6A 82 1F 8A E1 0B BB [10:27:28]CommunicateWithHost err = 0 [10:27:28]CheckOFDResponse [10:27:28]1017 (14) - 77093643461234 [10:27:28]1041 (16) - 0000000002094219 [10:27:28]1040 (4) - 30276 [10:27:28]1012 (4) - 20.10.2024 04:22 [10:27:28]1206 (1) - 0 [10:27:28]OFD Sender: Remove packet 30276 [10:27:28]ProducePacketName [10:27:28]name=ofd_packets/00030276 [10:27:28]NVStorageDeleteData [10:27:28]Write to MH i2c: 01 00 00 63 72 D5 [10:27:28]Write i2c OK [10:27:28]MH_I2C_Read... [10:27:28]Read from MH i2c: 01 [10:27:28]MH_I2C_Read... [10:27:28]Read from MH i2c: 01 07 00 [10:27:28]MH_I2C_Read... [10:27:28]Read from MH i2c: 01 07 00 63 72 00 00 00 00 00 E4 0C CC [10:27:28]RasterBufferAndPrint [10:27:28]line [10:27:28]line [10:27:28]line [10:27:28]line [10:27:28]line [10:27:28]written 0, free lines is 3306 [10:27:28]MH_Cut [10:27:28]Write to MH i2c: D1 01 00 6A 72 01 AE [10:27:28]Write i2c OK [10:27:28]MH_I2C_Read... [10:27:28]Read from MH i2c: D1 [10:27:28]MH_I2C_Read... [10:27:28]Read from MH i2c: D1 01 00 [10:27:28]MH_I2C_Read... [10:27:28]Read from MH i2c: D1 01 00 6A 72 00 AD [10:27:28]Write to MH i2c: 01 00 00 6B 72 DD [10:27:28]Write i2c OK [10:27:28]MH_I2C_Read... [10:27:28]OFD Sender: No OFD packet to send [10:27:29]*** Cut start [10:27:29]*** Partial cut [10:27:29]*** CUTSNS_PIN = 1 [10:27:29]*** CUTSNS_PIN = 0 [10:27:29]*** Brake cut motor [10:27:29]Read from MH i2c: 01 [10:27:29]MH_I2C_Read... [10:27:29]*** Stop cut motor [10:27:29]*** Cut end [10:27:29]Read from MH i2c: 01 07 00 [10:27:29]MH_I2C_Read... [10:27:29]Read from MH i2c: 01 07 00 6B 72 00 00 00 00 00 FF 0F F2 [10:27:29]process_action close_receipt done [10:27:29]requested_data is exist [10:27:29]produce_requested_data [10:27:29]requested_item fm.sn is exist - process it [10:27:29]wFMCommunicate request_size=4 [10:27:29]MH_SAM_APDU [10:27:29]CAPDU: 80 11 00 00 [10:27:29]Write to MH i2c: E2 08 00 6C 72 80 11 00 00 00 00 00 00 58 [10:27:29]Write i2c OK [10:27:29]MH_I2C_Read... [10:27:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:27:29]Read from MH i2c: E2 [10:27:29]MH_I2C_Read... [10:27:29]Read from MH i2c: E2 17 00 [10:27:29]MH_I2C_Read... [10:27:29]Read from MH i2c: E2 17 00 6C 72 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 A6 [10:27:29]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:29]wFMCommunicate OK [10:27:29]requested_item fd.num is exist - process it [10:27:29]SAM_PROTO_GetFieldsCounters [10:27:29]wFMCommunicate request_size=4 [10:27:29]MH_SAM_APDU [10:27:29]CAPDU: 80 13 00 00 [10:27:29]Write to MH i2c: E2 08 00 6D 72 80 13 00 00 00 00 00 00 5B [10:27:29]Write i2c OK [10:27:29]MH_I2C_Read... [10:27:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:27:29]Read from MH i2c: E2 [10:27:29]MH_I2C_Read... [10:27:29]Read from MH i2c: E2 62 00 [10:27:29]MH_I2C_Read... [10:27:29]Read from MH i2c: E2 62 00 6D 72 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 5B [10:27: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 44 76 00 00 0E 04 04 00 72 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:27:29]wFMCommunicate OK [10:27:29]SAM_PROTO_GetFieldsCounters done [10:27:29]requested_item shift.num is exist - process it [10:27:29]requested_item shift.opened is exist - process it [10:27:29]req_shift_opened [10:27:29]FM_GetShiftState [10:27:29]SAM_PROTO_GetShiftState [10:27:29]wFMCommunicate request_size=4 [10:27:29]MH_SAM_APDU [10:27:29]CAPDU: 80 13 01 00 [10:27:29]Write to MH i2c: E2 08 00 6E 72 80 13 01 00 00 00 00 00 5D [10:27:29]Write i2c OK [10:27:29]MH_I2C_Read... [10:27:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:27:29]Read from MH i2c: E2 [10:27:29]MH_I2C_Read... [10:27:29]Read from MH i2c: E2 0E 00 [10:27:29]MH_I2C_Read... [10:27:29]Read from MH i2c: E2 0E 00 6E 72 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 43 [10:27:29]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [10:27:29]wFMCommunicate OK [10:27:29]SAM_PROTO_GetShiftState done [10:27:29]FM_GetShiftState done [10:27:29]req_shift_opened done [10:27:29]requested_item shift.open_date is exist - process it [10:27:29]req_shift_open_date [10:27:29]req_shift_open_date done [10:27:29]produce_requested_data done [10:27:29]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30276,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [10:27:29]process_action_free close_receipt [10:27:29]json_value_free [10:27:29]json_value_free done [10:27:29]process_json_proto returns [10:27:29]Send response to host [10:27:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30276,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [10:27:29]free response buf [10:27:29]execute_script done [10:27:29]execute_script returns [10:27:29]free content buf [10:27:29]Sock 7.Close socket [10:27:29]Sock 7.Thread stoped [10:27:33]OFD Sender: No OFD packet to send [10:27:38]OFD Sender: No OFD packet to send [10:27:43]OFD Sender: No OFD packet to send [10:27:48]OFD Sender: No OFD packet to send [10:27:53]OFD Sender: No OFD packet to send [10:27:58]OFD Sender: No OFD packet to send [10:28:03]OFD Sender: No OFD packet to send [10:28:08]OFD Sender: No OFD packet to send [10:28:13]OFD Sender: No OFD packet to send [10:28:18]OFD Sender: No OFD packet to send [10:28:23]OFD Sender: No OFD packet to send [10:28:28]OFD Sender: No OFD packet to send [10:28:33]OFD Sender: No OFD packet to send [10:28:38]OFD Sender: No OFD packet to send [10:28:43]OFD Sender: No OFD packet to send [10:28:48]OFD Sender: No OFD packet to send [10:28:53]OFD Sender: No OFD packet to send [10:28:58]OFD Sender: No OFD packet to send [10:29:03]accept exits with 9 [10:29:03]New connection [10:29:03]New thread 3067370852 created [10:29:03]Thread 3067514212 joined [10:29:03]Waiting for new connection... [10:29:03] Sock 9.Parse request [10:29:03]Sock 9.Check first char [10:29:03]Sock 9.First char is OK [10:29:03]request: POST /json_proto HTTP/1.0 [10:29:03]Method: POST [10:29:03]URL: /json_proto [10:29:03]Method is POST - this is cgi request [10:29:03]url: /json_proto [10:29:03]query_string will be loaded in cgi processing [10:29:03]execute_cgi json_proto POST (null) [10:29:03]execute_cgi path=json_proto method=POST [10:29:03]POST find Content-Length [10:29:03]Host: 172.17.51.3:8080 [10:29:03]Content-Length: 678 [10:29:03]Content-Type: application/json [10:29:03] [10:29:03]POST finish read [10:29:03]Found Content-Length = 678 [10:29:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342669", "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.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" ] } } [10:29:03]execute_script... [10:29: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)342669", "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.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" ] } } [10:29:03]POST & json_proto [10:29:03]process_json_proto [10:29:03]json parsed OK: [10:29:03]protocol is kg_v1.0 [10:29:03]action value=close_receipt [10:29:03]process_action close_receipt [10:29:03]cmd_close_receipt [10:29:03]MH_GetDate [10:29:03]Write to MH i2c: F0 00 00 6F 72 D0 [10:29:03]Write i2c OK [10:29:03]MH_I2C_Read... [10:29:03]Read from MH i2c: F0 [10:29:03]MH_I2C_Read... [10:29:03]Read from MH i2c: F0 09 00 [10:29:03]MH_I2C_Read... [10:29:03]Read from MH i2c: F0 09 00 6F 72 00 78 DB 14 67 04 C1 95 66 67 [10:29:03]GetLastDocTimeStamp 1729420054 [10:29:03]current date 1729420152 [10:29:03]FM_GetShiftState [10:29:03]SAM_PROTO_GetShiftState [10:29:03]wFMCommunicate request_size=4 [10:29:03]MH_SAM_APDU [10:29:03]CAPDU: 80 13 01 00 [10:29:03]Write to MH i2c: E2 08 00 70 72 80 13 01 00 00 00 00 00 5F [10:29:03]Write i2c OK [10:29:03]MH_I2C_Read... [10:29:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:29:03]Read from MH i2c: E2 [10:29:03]MH_I2C_Read... [10:29:03]Read from MH i2c: E2 0E 00 [10:29:03]MH_I2C_Read... [10:29:03]Read from MH i2c: E2 0E 00 70 72 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 45 [10:29:03]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [10:29:03]wFMCommunicate OK [10:29:03]SAM_PROTO_GetShiftState done [10:29:03]FM_GetShiftState done [10:29:03]opened in 1729384718 [10:29:03]opened+sec_in_day 1729471118 [10:29:03]quantity*price = 67033 [10:29:03]sum+1 = 67035 [10:29:03]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 СНО: Общий режим Чек 59 20.10.2024 10:29 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30277 ФПД: 193973842510839 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T102912&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30277&fm=193973842510839&tin=02508201610067®Number=0000000000186857&sum=67000 [10:29:04]StoreToDocumentArchive [10:29:04]shift 114 fd 30277 [10:29:04]save to /storage/0114/doc_00030277 [10:29:04]save last doc name /storage/0114/doc_00030277 to /storage/kkm_last_doc_name [10:29:04]save OK [10:29:04]Clear old archive folders... [10:29:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:29:04]tlvbuf is 00C87870 [10:29:04]SAM_PROTO_ClearQueue [10:29:04]wFMCommunicate request_size=4 [10:29:04]MH_SAM_APDU [10:29:04]CAPDU: 80 09 00 00 [10:29:04]Write to MH i2c: E2 08 00 7D 72 80 09 00 00 00 00 00 00 61 [10:29:04]Write i2c OK [10:29:04]MH_I2C_Read... [10:29:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:29:04]Read from MH i2c: E2 [10:29:04]MH_I2C_Read... [10:29:04]Read from MH i2c: E2 03 00 [10:29:04]MH_I2C_Read... [10:29:04]Read from MH i2c: E2 03 00 7D 72 00 90 00 63 [10:29:04]RAPDU: 90 00 [10:29:04]wFMCommunicate OK [10:29:04]SAM_PROTO_ClearQueue done [10:29:04]KKMCreateOFDPacket [10:29:04]OFDProtocolAddRootSTLVToBuf [10:29:04]FM_MakeSignedData [10:29:04]FM_MakeSignedData [10:29:04]SAM_PROTO_SignData [10:29:04]wFMCommunicate request_size=4 [10:29:04]MH_SAM_APDU [10:29:04]CAPDU: 80 0D 01 02 [10:29:04]Write to MH i2c: E2 08 00 7E 72 80 0D 01 02 00 00 00 00 69 [10:29:04]Write i2c OK [10:29:04]MH_I2C_Read... [10:29:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:29:04]Read from MH i2c: E2 [10:29:04]MH_I2C_Read... [10:29:04]Read from MH i2c: E2 03 00 [10:29:04]MH_I2C_Read... [10:29:04]Read from MH i2c: E2 03 00 7E 72 00 90 00 64 [10:29:04]RAPDU: 90 00 [10:29:04]wFMCommunicate OK [10:29:04]wFMCommunicate request_size=255 [10:29:04]MH_SAM_APDU [10:29: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 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 3B 00 00 00 F4 03 04 00 78 DB 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 B0 [10:29:04]Write to MH i2c: E2 02 01 7F 72 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 3B 00 00 00 F4 03 04 00 78 DB 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 B0 00 00 7B [10:29:04]Write i2c OK [10:29:04]MH_I2C_Read... [10:29:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:29:04]Read from MH i2c: E2 [10:29:04]MH_I2C_Read... [10:29:04]Read from MH i2c: E2 03 00 [10:29:04]MH_I2C_Read... [10:29:04]Read from MH i2c: E2 03 00 7F 72 00 90 00 65 [10:29:04]RAPDU: 90 00 [10:29:04]wFMCommunicate OK [10:29:04]wFMCommunicate request_size=10 [10:29:04]MH_SAM_APDU [10:29:04]CAPDU: 80 0D 02 02 05 6B 0D FA 83 F7 [10:29:04]Write to MH i2c: E2 0D 00 80 72 80 0D 02 02 05 00 6B 0D FA 83 F7 00 00 62 [10:29:04]Write i2c OK [10:29:04]MH_I2C_Read... [10:29:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:29:04]Read from MH i2c: E2 [10:29:04]MH_I2C_Read... [10:29:04]Read from MH i2c: E2 03 00 [10:29:04]MH_I2C_Read... [10:29:04]Read from MH i2c: E2 03 00 80 72 00 90 00 66 [10:29:04]RAPDU: 90 00 [10:29:04]wFMCommunicate OK [10:29:04]wFMCommunicate request_size=4 [10:29:04]MH_SAM_APDU [10:29:04]CAPDU: 80 0D 03 02 [10:29:04]Write to MH i2c: E2 08 00 81 72 80 0D 03 02 00 00 00 00 6E [10:29:04]Write i2c OK [10:29:04]MH_I2C_Read... [10:29:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:29:05]Read from MH i2c: E2 [10:29:05]MH_I2C_Read... [10:29:05]Read from MH i2c: E2 0B 00 [10:29:05]MH_I2C_Read... [10:29:05]Read from MH i2c: E2 0B 00 81 72 00 12 D0 4E D4 5A F6 B2 AB 90 00 20 [10:29:05]RAPDU: 12 D0 4E D4 5A F6 B2 AB 90 00 [10:29:05]wFMCommunicate OK [10:29:05]SAM_PROTO_SignData done [10:29:05]FM_MakeSignedData done [10:29:05]CreateOFDProtocolMessage [10:29:05]wFMCommunicate request_size=4 [10:29:05]MH_SAM_APDU [10:29:05]CAPDU: 80 11 00 00 [10:29:05]Write to MH i2c: E2 08 00 82 72 80 11 00 00 00 00 00 00 6E [10:29:05]Write i2c OK [10:29:05]MH_I2C_Read... [10:29:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:29:05]Read from MH i2c: E2 [10:29:05]MH_I2C_Read... [10:29:05]Read from MH i2c: E2 17 00 [10:29:05]MH_I2C_Read... [10:29:05]Read from MH i2c: E2 17 00 82 72 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 BC [10:29: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:29:05]wFMCommunicate OK [10:29:05]CreateOFDProtocolMessage done [10:29:05]OFDSenderStorePacket 30277 [10:29:05]StoreOFDPacket docnum=30277 [10:29: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 64 AD 07 01 95 AD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 3B 00 00 00 F4 03 04 00 78 DB 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 B0 6B 0D FA 83 F7 12 D0 4E D4 5A F6 B2 AB [10:29:05]CheckFolder [10:29:05]dirname=/storage/ofd_packets [10:29:05]CheckFolder done [10:29:05]ProducePacketName [10:29:05]name=ofd_packets/00030277 [10:29:05]NVStorageSaveData ofd_packets/00030277 [10:29:05]File name is /storage/ofd_packets/00030277 [10:29:05]Write 301 bytes [10:29:05]NVStorageSaveData done [10:29:05]OFDSenderStorePacket done [10:29:05]KKMCreateOFDPacket done [10:29:05]NVStorageSaveData kkm_last_timestamp [10:29:05]File name is /storage/kkm_last_timestamp [10:29:05]Write 4 bytes [10:29:05]NVStorageSaveData done [10:29:05]ExternCall_PrintAddStr [10:29:05]wPrintStart [10:29:05]Write to MH i2c: 01 00 00 83 72 F5 [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 83 72 00 00 00 00 00 FF 0F 0A [10:29:05]RasterBufferAndPrint [10:29:05]line Счет N : (1)342669 [10:29:05]line ИНН: 02508201610067 [10:29:05]line Контрольно-Кассовый Чек [10:29:05]line ПРОДАЖА [10:29:05]line ТРК (МРК, ГНК) : 43 [10:29:05]line Товар: 2710124130 [10:29:05]line Аи-92-К-2 [10:29:05]line 10.020 * 66.90 [10:29:05]line = 670.34 [10:29:05]line НДС 12% НСП 1% [10:29:05]line > о реализуемом товаре [10:29:05]line ОКРУГЛЕНИЕ: -0.34 [10:29:05]line ИТОГО: 670.00 [10:29:05]line Внесено: 670.00 [10:29:05]line СДАЧА: 0.00 [10:29:05]line НСП 1% : 5.93 [10:29:05]line НДС 12% : 71.19 [10:29:05]line Наличными: 670.00 [10:29:05]line Безнал.: 0.00 [10:29:05]line Место: АЗС № 78 "Партнер Нефть" [10:29:05]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [10:29:05]line СНО: Общий режим [10:29:05]line Чек 59 20.10.2024 10:29 [10:29:05]line Смена: 114 ФФД: 1.0 [10:29:05]line ЗНМ: 0300000137 [10:29:05]line РНМ: 0000000000186857 [10:29:05]line Версия ККМ: v1.0 [10:29:05]line ФМ: 0000000002094219 [10:29:05]line ФД: 30277 [10:29:05]line ФПД: 193973842510839 [10:29:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T102912&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30277&fm=193973842510839&tin=02508201610067®Number=0000000000186857&sum=67000 [10:29:05]OFD Sender: Processing packet 30277 [packets to send 10, broken 9] [10:29:05]ProducePacketName [10:29:05]name=ofd_packets/00030277 [10:29:05]OFD Sender: To server: pG, [10:29:05]CommunicateWithHost lk.salyk.kg:30040 [10:29:05]ConnectInit lk.salyk.kg [10:29:05]written 0, free lines is 4095 [10:29:05]Connected sock=10 [10:29: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 64 AD 07 01 95 AD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 3B 00 00 00 F4 03 04 00 78 DB 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 B0 6B 0D FA 83 F7 12 D0 4E D4 5A F6 B2 AB [10: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 FF 28 47 00 BE 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 45 76 00 00 F4 03 04 00 FC 85 14 67 B6 04 01 00 00 B3 7E 4A 4B F4 4F 78 93 [10:29:05]CommunicateWithHost err = 0 [10:29:05]CheckOFDResponse [10:29:05]1017 (14) - 77093643461234 [10:29:05]1041 (16) - 0000000002094219 [10:29:05]1040 (4) - 30277 [10:29:05]1012 (4) - 20.10.2024 04:24 [10:29:05]1206 (1) - 0 [10:29:05]OFD Sender: Remove packet 30277 [10:29:05]ProducePacketName [10:29:05]name=ofd_packets/00030277 [10:29:05]NVStorageDeleteData [10:29:05]Write to MH i2c: 01 00 00 AE 72 20 [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 AE 72 00 00 00 00 00 F3 0C 26 [10:29:05]RasterBufferAndPrint [10:29:05]line [10:29:05]line [10:29:05]line [10:29:05]line [10:29:05]line [10:29:05]written 0, free lines is 3321 [10:29:05]MH_Cut [10:29:05]Write to MH i2c: D1 01 00 B5 72 01 F9 [10:29:05]Write i2c OK [10:29:05]MH_I2C_Read... [10:29:05]Read from MH i2c: D1 [10:29:05]MH_I2C_Read... [10:29:05]Read from MH i2c: D1 01 00 [10:29:05]MH_I2C_Read... [10:29:05]Read from MH i2c: D1 01 00 B5 72 00 F8 [10:29:05]Write to MH i2c: 01 00 00 B6 72 28 [10:29:05]Write i2c OK [10:29:05]MH_I2C_Read... [10:29:06]OFD Sender: No OFD packet to send [10:29:06]*** Cut start [10:29:06]*** Partial cut [10:29:06]*** CUTSNS_PIN = 1 [10:29:06]*** CUTSNS_PIN = 0 [10:29:06]*** Brake cut motor [10:29:07]Read from MH i2c: 01 [10:29:07]MH_I2C_Read... [10:29:07]*** Stop cut motor [10:29:07]*** Cut end [10:29:07]Read from MH i2c: 01 07 00 [10:29:07]MH_I2C_Read... [10:29:07]Read from MH i2c: 01 07 00 B6 72 00 00 00 00 00 FF 0F 3D [10:29:07]process_action close_receipt done [10:29:07]requested_data is exist [10:29:07]produce_requested_data [10:29:07]requested_item fm.sn is exist - process it [10:29:07]wFMCommunicate request_size=4 [10:29:07]MH_SAM_APDU [10:29:07]CAPDU: 80 11 00 00 [10:29:07]Write to MH i2c: E2 08 00 B7 72 80 11 00 00 00 00 00 00 A3 [10:29:07]Write i2c OK [10:29:07]MH_I2C_Read... [10:29:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:29:07]Read from MH i2c: E2 [10:29:07]MH_I2C_Read... [10:29:07]Read from MH i2c: E2 17 00 [10:29:07]MH_I2C_Read... [10:29:07]Read from MH i2c: E2 17 00 B7 72 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 F1 [10:29: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:29:07]wFMCommunicate OK [10:29:07]requested_item fd.num is exist - process it [10:29:07]SAM_PROTO_GetFieldsCounters [10:29:07]wFMCommunicate request_size=4 [10:29:07]MH_SAM_APDU [10:29:07]CAPDU: 80 13 00 00 [10:29:07]Write to MH i2c: E2 08 00 B8 72 80 13 00 00 00 00 00 00 A6 [10:29:07]Write i2c OK [10:29:07]MH_I2C_Read... [10:29:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:29:07]Read from MH i2c: E2 [10:29:07]MH_I2C_Read... [10:29:07]Read from MH i2c: E2 62 00 [10:29:07]MH_I2C_Read... [10:29:07]Read from MH i2c: E2 62 00 B8 72 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 AA [10:29: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 45 76 00 00 0E 04 04 00 72 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:29:07]wFMCommunicate OK [10:29:07]SAM_PROTO_GetFieldsCounters done [10:29:07]requested_item shift.num is exist - process it [10:29:07]requested_item shift.opened is exist - process it [10:29:07]req_shift_opened [10:29:07]FM_GetShiftState [10:29:07]SAM_PROTO_GetShiftState [10:29:07]wFMCommunicate request_size=4 [10:29:07]MH_SAM_APDU [10:29:07]CAPDU: 80 13 01 00 [10:29:07]Write to MH i2c: E2 08 00 B9 72 80 13 01 00 00 00 00 00 A8 [10:29:07]Write i2c OK [10:29:07]MH_I2C_Read... [10:29:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:29:07]Read from MH i2c: E2 [10:29:07]MH_I2C_Read... [10:29:07]Read from MH i2c: E2 0E 00 [10:29:07]MH_I2C_Read... [10:29:07]Read from MH i2c: E2 0E 00 B9 72 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 8E [10:29:07]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [10:29:07]wFMCommunicate OK [10:29:07]SAM_PROTO_GetShiftState done [10:29:07]FM_GetShiftState done [10:29:07]req_shift_opened done [10:29:07]requested_item shift.open_date is exist - process it [10:29:07]req_shift_open_date [10:29:07]req_shift_open_date done [10:29:07]produce_requested_data done [10:29:07]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30277,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [10:29:07]process_action_free close_receipt [10:29:07]json_value_free [10:29:07]json_value_free done [10:29:07]process_json_proto returns [10:29:07]Send response to host [10:29:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30277,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [10:29:07]free response buf [10:29:07]execute_script done [10:29:07]execute_script returns [10:29:07]free content buf [10:29:07]Sock 9.Close socket [10:29:07]Sock 9.Thread stoped [10:29:11]OFD Sender: No OFD packet to send [10:29:16]OFD Sender: No OFD packet to send [10:29:21]OFD Sender: No OFD packet to send [10:29:26]OFD Sender: No OFD packet to send [10:29:31]OFD Sender: No OFD packet to send [10:29:36]OFD Sender: No OFD packet to send [10:29:41]OFD Sender: No OFD packet to send [10:29:46]OFD Sender: No OFD packet to send [10:29:48]accept exits with 7 [10:29:48]New connection [10:29:48]New thread 3067514212 created [10:29:48]Thread 3067370852 joined [10:29:48]Waiting for new connection... [10:29:48] Sock 7.Parse request [10:29:48]Sock 7.Check first char [10:29:48]Sock 7.First char is OK [10:29:48]request: POST /json_proto HTTP/1.0 [10:29:48]Method: POST [10:29:48]URL: /json_proto [10:29:48]Method is POST - this is cgi request [10:29:48]url: /json_proto [10:29:48]query_string will be loaded in cgi processing [10:29:48]execute_cgi json_proto POST (null) [10:29:48]execute_cgi path=json_proto method=POST [10:29:48]POST find Content-Length [10:29:48]Host: 172.17.51.3:8080 [10:29:48]Content-Length: 682 [10:29:48]Content-Type: application/json [10:29:48] [10:29:48]POST finish read [10:29:48]Found Content-Length = 682 [10:29:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342670", "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" ] } } [10:29:48]execute_script... [10:29:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342670", "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" ] } } [10:29:48]POST & json_proto [10:29:48]process_json_proto [10:29:48]json parsed OK: [10:29:48]protocol is kg_v1.0 [10:29:48]action value=close_receipt [10:29:48]process_action close_receipt [10:29:48]cmd_close_receipt [10:29:48]MH_GetDate [10:29:48]Write to MH i2c: F0 00 00 BA 72 1B [10:29:48]Write i2c OK [10:29:48]MH_I2C_Read... [10:29:48]Read from MH i2c: F0 [10:29:48]MH_I2C_Read... [10:29:48]Read from MH i2c: F0 09 00 [10:29:48]MH_I2C_Read... [10:29:48]Read from MH i2c: F0 09 00 BA 72 00 A5 DB 14 67 04 C1 95 66 DF [10:29:48]GetLastDocTimeStamp 1729420152 [10:29:48]current date 1729420197 [10:29:48]FM_GetShiftState [10:29:48]SAM_PROTO_GetShiftState [10:29:48]wFMCommunicate request_size=4 [10:29:48]MH_SAM_APDU [10:29:48]CAPDU: 80 13 01 00 [10:29:48]Write to MH i2c: E2 08 00 BB 72 80 13 01 00 00 00 00 00 AA [10:29:48]Write i2c OK [10:29:48]MH_I2C_Read... [10:29:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:29:48]Read from MH i2c: E2 [10:29:48]MH_I2C_Read... [10:29:48]Read from MH i2c: E2 0E 00 [10:29:48]MH_I2C_Read... [10:29:48]Read from MH i2c: E2 0E 00 BB 72 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 90 [10:29:48]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [10:29:48]wFMCommunicate OK [10:29:48]SAM_PROTO_GetShiftState done [10:29:48]FM_GetShiftState done [10:29:48]opened in 1729384718 [10:29:48]opened+sec_in_day 1729471118 [10:29:48]quantity*price = 100015 [10:29:48]sum+1 = 100017 [10:29:48]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 СНО: Общий режим Чек 60 20.10.2024 10:29 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30278 ФПД: 248360494253649 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T102957&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30278&fm=248360494253649&tin=02508201610067®Number=0000000000186857&sum=100000 [10:29:49]StoreToDocumentArchive [10:29:49]shift 114 fd 30278 [10:29:49]save to /storage/0114/doc_00030278 [10:29:49]save last doc name /storage/0114/doc_00030278 to /storage/kkm_last_doc_name [10:29:49]save OK [10:29:49]Clear old archive folders... [10:29:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:29:49]tlvbuf is 00BEC000 [10:29:49]SAM_PROTO_ClearQueue [10:29:49]wFMCommunicate request_size=4 [10:29:49]MH_SAM_APDU [10:29:49]CAPDU: 80 09 00 00 [10:29:49]Write to MH i2c: E2 08 00 C8 72 80 09 00 00 00 00 00 00 AC [10:29:49]Write i2c OK [10:29:49]MH_I2C_Read... [10:29:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:29:49]Read from MH i2c: E2 [10:29:49]MH_I2C_Read... [10:29:49]Read from MH i2c: E2 03 00 [10:29:49]MH_I2C_Read... [10:29:49]Read from MH i2c: E2 03 00 C8 72 00 90 00 AE [10:29:49]RAPDU: 90 00 [10:29:49]wFMCommunicate OK [10:29:49]SAM_PROTO_ClearQueue done [10:29:49]KKMCreateOFDPacket [10:29:49]OFDProtocolAddRootSTLVToBuf [10:29:49]FM_MakeSignedData [10:29:49]FM_MakeSignedData [10:29:49]SAM_PROTO_SignData [10:29:49]wFMCommunicate request_size=4 [10:29:49]MH_SAM_APDU [10:29:49]CAPDU: 80 0D 01 02 [10:29:49]Write to MH i2c: E2 08 00 C9 72 80 0D 01 02 00 00 00 00 B4 [10:29:49]Write i2c OK [10:29:49]MH_I2C_Read... [10:29:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:29:50]Read from MH i2c: E2 [10:29:50]MH_I2C_Read... [10:29:50]Read from MH i2c: E2 03 00 [10:29:50]MH_I2C_Read... [10:29:50]Read from MH i2c: E2 03 00 C9 72 00 90 00 AF [10:29:50]RAPDU: 90 00 [10:29:50]wFMCommunicate OK [10:29:50]wFMCommunicate request_size=255 [10:29:50]MH_SAM_APDU [10:29: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 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 3C 00 00 00 F4 03 04 00 A5 DB 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 E1 [10:29:50]Write to MH i2c: E2 02 01 CA 72 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 3C 00 00 00 F4 03 04 00 A5 DB 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 E1 00 00 85 [10:29:50]Write i2c OK [10:29:50]MH_I2C_Read... [10:29:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:29:50]Read from MH i2c: E2 [10:29:50]MH_I2C_Read... [10:29:50]Read from MH i2c: E2 03 00 [10:29:50]MH_I2C_Read... [10:29:50]Read from MH i2c: E2 03 00 CA 72 00 90 00 B0 [10:29:50]RAPDU: 90 00 [10:29:50]wFMCommunicate OK [10:29:50]wFMCommunicate request_size=10 [10:29:50]MH_SAM_APDU [10:29:50]CAPDU: 80 0D 02 02 05 E1 EF 09 46 51 [10:29:50]Write to MH i2c: E2 0D 00 CB 72 80 0D 02 02 05 00 E1 EF 09 46 51 00 00 31 [10:29:50]Write i2c OK [10:29:50]MH_I2C_Read... [10:29:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:29:50]Read from MH i2c: E2 [10:29:50]MH_I2C_Read... [10:29:50]Read from MH i2c: E2 03 00 [10:29:50]MH_I2C_Read... [10:29:50]Read from MH i2c: E2 03 00 CB 72 00 90 00 B1 [10:29:50]RAPDU: 90 00 [10:29:50]wFMCommunicate OK [10:29:50]wFMCommunicate request_size=4 [10:29:50]MH_SAM_APDU [10:29:50]CAPDU: 80 0D 03 02 [10:29:50]Write to MH i2c: E2 08 00 CC 72 80 0D 03 02 00 00 00 00 B9 [10:29:50]Write i2c OK [10:29:50]MH_I2C_Read... [10:29:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:29:50]Read from MH i2c: E2 [10:29:50]MH_I2C_Read... [10:29:50]Read from MH i2c: E2 0B 00 [10:29:50]MH_I2C_Read... [10:29:50]Read from MH i2c: E2 0B 00 CC 72 00 2F D9 F8 63 EF B2 D0 05 90 00 93 [10:29:50]RAPDU: 2F D9 F8 63 EF B2 D0 05 90 00 [10:29:50]wFMCommunicate OK [10:29:50]SAM_PROTO_SignData done [10:29:50]FM_MakeSignedData done [10:29:50]CreateOFDProtocolMessage [10:29:50]wFMCommunicate request_size=4 [10:29:50]MH_SAM_APDU [10:29:50]CAPDU: 80 11 00 00 [10:29:50]Write to MH i2c: E2 08 00 CD 72 80 11 00 00 00 00 00 00 B9 [10:29:50]Write i2c OK [10:29:50]MH_I2C_Read... [10:29:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:29:50]Read from MH i2c: E2 [10:29:50]MH_I2C_Read... [10:29:50]Read from MH i2c: E2 17 00 [10:29:50]MH_I2C_Read... [10:29:50]Read from MH i2c: E2 17 00 CD 72 00 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:50]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:50]wFMCommunicate OK [10:29:50]CreateOFDProtocolMessage done [10:29:50]OFDSenderStorePacket 30278 [10:29:50]StoreOFDPacket docnum=30278 [10:29: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 BD 41 07 01 45 23 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 3C 00 00 00 F4 03 04 00 A5 DB 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 E1 E1 EF 09 46 51 2F D9 F8 63 EF B2 D0 05 [10:29:50]CheckFolder [10:29:50]dirname=/storage/ofd_packets [10:29:50]CheckFolder done [10:29:50]ProducePacketName [10:29:50]name=ofd_packets/00030278 [10:29:50]NVStorageSaveData ofd_packets/00030278 [10:29:50]File name is /storage/ofd_packets/00030278 [10:29:50]Write 301 bytes [10:29:50]NVStorageSaveData done [10:29:50]OFDSenderStorePacket done [10:29:50]KKMCreateOFDPacket done [10:29:50]NVStorageSaveData kkm_last_timestamp [10:29:50]File name is /storage/kkm_last_timestamp [10:29:50]Write 4 bytes [10:29:50]NVStorageSaveData done [10:29:50]ExternCall_PrintAddStr [10:29:50]wPrintStart [10:29:50]Write to MH i2c: 01 00 00 CE 72 40 [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 CE 72 00 00 00 00 00 FF 0F 55 [10:29:50]RasterBufferAndPrint [10:29:50]line Счет N : (1)342670 [10:29:50]line ИНН: 02508201610067 [10:29:50]line Контрольно-Кассовый Чек [10:29:50]line ПРОДАЖА [10:29:50]line ТРК (МРК, ГНК) : 33 [10:29:50]line Товар: 2710124130 [10:29:50]line Аи-92-К-2 [10:29:50]line 14.950 * 66.90 [10:29:50]line = 1000.16 [10:29:50]line НДС 12% НСП 1% [10:29:50]line > о реализуемом товаре [10:29:50]line ОКРУГЛЕНИЕ: -0.16 [10:29:50]line ИТОГО: 1000.00 [10:29:50]line Внесено: 1000.00 [10:29:50]line СДАЧА: 0.00 [10:29:50]line НСП 1% : 8.85 [10:29:50]line НДС 12% : 106.21 [10:29:50]line Наличными: 1000.00 [10:29:50]line Безнал.: 0.00 [10:29:50]line Место: АЗС № 78 "Партнер Нефть" [10:29:50]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [10:29:50]line СНО: Общий режим [10:29:50]line Чек 60 20.10.2024 10:29 [10:29:50]line Смена: 114 ФФД: 1.0 [10:29:50]line ЗНМ: 0300000137 [10:29:50]line РНМ: 0000000000186857 [10:29:50]line Версия ККМ: v1.0 [10:29:50]line ФМ: 0000000002094219 [10:29:50]line ФД: 30278 [10:29:50]line ФПД: 248360494253649 [10:29:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T102957&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30278&fm=248360494253649&tin=02508201610067®Number=0000000000186857&sum=100000 [10:29:50]OFD Sender: Processing packet 30278 [packets to send 10, broken 9] [10:29:50]ProducePacketName [10:29:50]name=ofd_packets/00030278 [10:29:50]OFD Sender: To server: pG, [10:29:50]CommunicateWithHost lk.salyk.kg:30040 [10:29:50]ConnectInit lk.salyk.kg [10:29:50]written 0, free lines is 4095 [10:29:50]Connected sock=9 [10:29: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 BD 41 07 01 45 23 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 3C 00 00 00 F4 03 04 00 A5 DB 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 E1 E1 EF 09 46 51 2F D9 F8 63 EF B2 D0 05 [10:29: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 42 24 47 00 03 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 46 76 00 00 F4 03 04 00 29 86 14 67 B6 04 01 00 00 95 D3 D3 19 AE 86 E3 CB [10:29:51]CommunicateWithHost err = 0 [10:29:51]CheckOFDResponse [10:29:51]1017 (14) - 77093643461234 [10:29:51]1041 (16) - 0000000002094219 [10:29:51]1040 (4) - 30278 [10:29:51]1012 (4) - 20.10.2024 04:25 [10:29:51]1206 (1) - 0 [10:29:51]OFD Sender: Remove packet 30278 [10:29:51]ProducePacketName [10:29:51]name=ofd_packets/00030278 [10:29:51]NVStorageDeleteData [10:29:51]Write to MH i2c: 01 00 00 F9 72 6B [10:29:51]Write i2c OK [10:29:51]MH_I2C_Read... [10:29:51]Read from MH i2c: 01 [10:29:51]MH_I2C_Read... [10:29:51]Read from MH i2c: 01 07 00 [10:29:51]MH_I2C_Read... [10:29:51]Read from MH i2c: 01 07 00 F9 72 00 00 00 00 00 EE 0C 6C [10:29:51]RasterBufferAndPrint [10:29:51]line [10:29:51]line [10:29:51]line [10:29:51]line [10:29:51]line [10:29:51]written 0, free lines is 3316 [10:29:51]MH_Cut [10:29:51]Write to MH i2c: D1 01 00 00 73 01 45 [10:29:51]Write i2c OK [10:29:51]MH_I2C_Read... [10:29:51]Read from MH i2c: D1 [10:29:51]MH_I2C_Read... [10:29:51]Read from MH i2c: D1 01 00 [10:29:51]MH_I2C_Read... [10:29:51]Read from MH i2c: D1 01 00 00 73 00 44 [10:29:51]Write to MH i2c: 01 00 00 01 73 74 [10:29:51]Write i2c OK [10:29:51]MH_I2C_Read... [10:29:51]OFD Sender: No OFD packet to send [10:29:51]*** Cut start [10:29:51]*** Partial cut [10:29:51]*** CUTSNS_PIN = 1 [10:29:51]*** CUTSNS_PIN = 0 [10:29:52]*** Brake cut motor [10:29:52]Read from MH i2c: 01 [10:29:52]MH_I2C_Read... [10:29:52]*** Stop cut motor [10:29:52]*** Cut end [10:29:52]Read from MH i2c: 01 07 00 [10:29:52]MH_I2C_Read... [10:29:52]Read from MH i2c: 01 07 00 01 73 00 00 00 00 00 FF 0F 89 [10:29:52]process_action close_receipt done [10:29:52]requested_data is exist [10:29:52]produce_requested_data [10:29:52]requested_item fm.sn is exist - process it [10:29:52]wFMCommunicate request_size=4 [10:29:52]MH_SAM_APDU [10:29:52]CAPDU: 80 11 00 00 [10:29:52]Write to MH i2c: E2 08 00 02 73 80 11 00 00 00 00 00 00 EF [10:29:52]Write i2c OK [10:29:52]MH_I2C_Read... [10:29:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:29:52]Read from MH i2c: E2 [10:29:52]MH_I2C_Read... [10:29:52]Read from MH i2c: E2 17 00 [10:29:52]MH_I2C_Read... [10:29:52]Read from MH i2c: E2 17 00 02 73 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 3D [10:29:52]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:52]wFMCommunicate OK [10:29:52]requested_item fd.num is exist - process it [10:29:52]SAM_PROTO_GetFieldsCounters [10:29:52]wFMCommunicate request_size=4 [10:29:52]MH_SAM_APDU [10:29:52]CAPDU: 80 13 00 00 [10:29:52]Write to MH i2c: E2 08 00 03 73 80 13 00 00 00 00 00 00 F2 [10:29:52]Write i2c OK [10:29:52]MH_I2C_Read... [10:29:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:29:52]Read from MH i2c: E2 [10:29:52]MH_I2C_Read... [10:29:52]Read from MH i2c: E2 62 00 [10:29:52]MH_I2C_Read... [10:29:52]Read from MH i2c: E2 62 00 03 73 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 FA [10:29: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 46 76 00 00 0E 04 04 00 72 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:29:52]wFMCommunicate OK [10:29:52]SAM_PROTO_GetFieldsCounters done [10:29:52]requested_item shift.num is exist - process it [10:29:52]requested_item shift.opened is exist - process it [10:29:52]req_shift_opened [10:29:52]FM_GetShiftState [10:29:52]SAM_PROTO_GetShiftState [10:29:52]wFMCommunicate request_size=4 [10:29:52]MH_SAM_APDU [10:29:52]CAPDU: 80 13 01 00 [10:29:52]Write to MH i2c: E2 08 00 04 73 80 13 01 00 00 00 00 00 F4 [10:29:52]Write i2c OK [10:29:52]MH_I2C_Read... [10:29:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:29:52]Read from MH i2c: E2 [10:29:52]MH_I2C_Read... [10:29:52]Read from MH i2c: E2 0E 00 [10:29:52]MH_I2C_Read... [10:29:52]Read from MH i2c: E2 0E 00 04 73 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 DA [10:29:52]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [10:29:52]wFMCommunicate OK [10:29:52]SAM_PROTO_GetShiftState done [10:29:52]FM_GetShiftState done [10:29:52]req_shift_opened done [10:29:52]requested_item shift.open_date is exist - process it [10:29:52]req_shift_open_date [10:29:52]req_shift_open_date done [10:29:52]produce_requested_data done [10:29:52]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30278,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [10:29:52]process_action_free close_receipt [10:29:52]json_value_free [10:29:52]json_value_free done [10:29:52]process_json_proto returns [10:29:52]Send response to host [10:29:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30278,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [10:29:52]free response buf [10:29:52]execute_script done [10:29:52]execute_script returns [10:29:52]free content buf [10:29:52]Sock 7.Close socket [10:29:52]Sock 7.Thread stoped [10:29:56]OFD Sender: No OFD packet to send [10:30:01]OFD Sender: No OFD packet to send [10:30:06]OFD Sender: No OFD packet to send [10:30:11]OFD Sender: No OFD packet to send [10:30:16]OFD Sender: No OFD packet to send [10:30:21]OFD Sender: No OFD packet to send [10:30:26]OFD Sender: No OFD packet to send [10:30:31]OFD Sender: No OFD packet to send [10:30:36]OFD Sender: No OFD packet to send [10:30:41]OFD Sender: No OFD packet to send [10:30:46]OFD Sender: No OFD packet to send [10:30:51]OFD Sender: No OFD packet to send [10:30:56]OFD Sender: No OFD packet to send [10:31:01]OFD Sender: No OFD packet to send [10:31:06]OFD Sender: No OFD packet to send [10:31:11]OFD Sender: No OFD packet to send [10:31:16]OFD Sender: No OFD packet to send [10:31:21]OFD Sender: No OFD packet to send [10:31:26]OFD Sender: No OFD packet to send [10:31:31]OFD Sender: No OFD packet to send [10:31:36]OFD Sender: No OFD packet to send [10:31:41]OFD Sender: No OFD packet to send [10:31:46]OFD Sender: No OFD packet to send [10:31:51]OFD Sender: No OFD packet to send [10:31:56]OFD Sender: No OFD packet to send [10:32:01]OFD Sender: No OFD packet to send [10:32:06]OFD Sender: No OFD packet to send [10:32:11]OFD Sender: No OFD packet to send [10:32:16]OFD Sender: No OFD packet to send [10:32:21]OFD Sender: No OFD packet to send [10:32:26]OFD Sender: No OFD packet to send [10:32:31]OFD Sender: No OFD packet to send [10:32:36]OFD Sender: No OFD packet to send [10:32:41]OFD Sender: No OFD packet to send [10:32:46]OFD Sender: No OFD packet to send [10:32:51]OFD Sender: No OFD packet to send [10:32:56]OFD Sender: No OFD packet to send [10:33:01]OFD Sender: No OFD packet to send [10:33:06]OFD Sender: No OFD packet to send [10:33:11]OFD Sender: No OFD packet to send [10:33:16]OFD Sender: No OFD packet to send [10:33:20]accept exits with 10 [10:33:20]New connection [10:33:20]New thread 3067370852 created [10:33:20]Thread 3067514212 joined [10:33:20]Waiting for new connection... [10:33:20] Sock 10.Parse request [10:33:20]Sock 10.Check first char [10:33:20]Sock 10.First char is OK [10:33:20]request: POST /json_proto HTTP/1.0 [10:33:20]Method: POST [10:33:20]URL: /json_proto [10:33:20]Method is POST - this is cgi request [10:33:20]url: /json_proto [10:33:20]query_string will be loaded in cgi processing [10:33:20]execute_cgi json_proto POST (null) [10:33:20]execute_cgi path=json_proto method=POST [10:33:20]POST find Content-Length [10:33:20]Host: 172.17.51.3:8080 [10:33:20]Content-Length: 840 [10:33:20]Content-Type: application/json [10:33:20] [10:33:20]POST finish read [10:33:20]Found Content-Length = 840 [10:33:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342671", "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.240, "sum" : 350.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" : 350.56 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:33:20]execute_script... [10:33: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)342671", "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.240, "sum" : 350.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" : 350.56 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:33:20]POST & json_proto [10:33:20]process_json_proto [10:33:20]json parsed OK: [10:33:20]protocol is kg_v1.0 [10:33:20]action value=close_receipt [10:33:20]process_action close_receipt [10:33:20]cmd_close_receipt [10:33:20]MH_GetDate [10:33:20]Write to MH i2c: F0 00 00 05 73 67 [10:33:20]Write i2c OK [10:33:20]MH_I2C_Read... [10:33:20]Read from MH i2c: F0 [10:33:20]MH_I2C_Read... [10:33:20]Read from MH i2c: F0 09 00 [10:33:20]MH_I2C_Read... [10:33:20]Read from MH i2c: F0 09 00 05 73 00 79 DC 14 67 04 C1 95 66 00 [10:33:20]GetLastDocTimeStamp 1729420197 [10:33:20]current date 1729420409 [10:33:20]FM_GetShiftState [10:33:20]SAM_PROTO_GetShiftState [10:33:20]wFMCommunicate request_size=4 [10:33:20]MH_SAM_APDU [10:33:20]CAPDU: 80 13 01 00 [10:33:20]Write to MH i2c: E2 08 00 06 73 80 13 01 00 00 00 00 00 F6 [10:33:20]Write i2c OK [10:33:20]MH_I2C_Read... [10:33:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:33:20]Read from MH i2c: E2 [10:33:20]MH_I2C_Read... [10:33:20]Read from MH i2c: E2 0E 00 [10:33:20]MH_I2C_Read... [10:33:20]Read from MH i2c: E2 0E 00 06 73 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 DC [10:33:20]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [10:33:20]wFMCommunicate OK [10:33:20]SAM_PROTO_GetShiftState done [10:33:20]FM_GetShiftState done [10:33:20]opened in 1729384718 [10:33:20]opened+sec_in_day 1729471118 [10:33:20]quantity*price = 35055 [10:33:20]sum+1 = 35057 [10:33:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 350.56 НСП 1% : 3.10 НДС 12% : 37.23 Наличными: 0.00 Безнал.: 350.56 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 61 20.10.2024 10:33 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Платежная система: АКБ Кыргызстан ФМ: 0000000002094219 ФД: 30279 ФПД: 61554478883311 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T103329&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30279&fm=61554478883311&tin=02508201610067®Number=0000000000186857&sum=35056 [10:33:21]StoreToDocumentArchive [10:33:21]shift 114 fd 30279 [10:33:21]save to /storage/0114/doc_00030279 [10:33:21]save last doc name /storage/0114/doc_00030279 to /storage/kkm_last_doc_name [10:33:21]save OK [10:33:21]Clear old archive folders... [10:33:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:33:21]tlvbuf is 00AB7A80 [10:33:21]SAM_PROTO_ClearQueue [10:33:21]wFMCommunicate request_size=4 [10:33:21]MH_SAM_APDU [10:33:21]CAPDU: 80 09 00 00 [10:33:21]Write to MH i2c: E2 08 00 13 73 80 09 00 00 00 00 00 00 F8 [10:33:21]Write i2c OK [10:33:21]MH_I2C_Read... [10:33:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:33:21]Read from MH i2c: E2 [10:33:21]MH_I2C_Read... [10:33:21]Read from MH i2c: E2 03 00 [10:33:21]MH_I2C_Read... [10:33:21]Read from MH i2c: E2 03 00 13 73 00 90 00 FA [10:33:21]RAPDU: 90 00 [10:33:21]wFMCommunicate OK [10:33:21]SAM_PROTO_ClearQueue done [10:33:21]KKMCreateOFDPacket [10:33:21]OFDProtocolAddRootSTLVToBuf [10:33:21]FM_MakeSignedData [10:33:21]FM_MakeSignedData [10:33:21]SAM_PROTO_SignData [10:33:21]wFMCommunicate request_size=4 [10:33:21]MH_SAM_APDU [10:33:21]CAPDU: 80 0D 01 02 [10:33:21]Write to MH i2c: E2 08 00 14 73 80 0D 01 02 00 00 00 00 00 [10:33:21]Write i2c OK [10:33:21]MH_I2C_Read... [10:33:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:33:21]Read from MH i2c: E2 [10:33:21]MH_I2C_Read... [10:33:21]Read from MH i2c: E2 03 00 [10:33:21]MH_I2C_Read... [10:33:21]Read from MH i2c: E2 03 00 14 73 00 90 00 FB [10:33:21]RAPDU: 90 00 [10:33:21]wFMCommunicate OK [10:33:21]wFMCommunicate request_size=255 [10:33:21]MH_SAM_APDU [10:33: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 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 F0 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 00 00 00 00 00 00 39 04 06 00 F0 88 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 79 DC 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 37 [10:33:21]Write to MH i2c: E2 02 01 15 73 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 F0 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 00 00 00 00 00 00 39 04 06 00 F0 88 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 79 DC 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 37 00 00 7F [10:33:21]Write i2c OK [10:33:21]MH_I2C_Read... [10:33:21]OFD Sender: No OFD packet to send [10:33:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:33:21]Read from MH i2c: E2 [10:33:21]MH_I2C_Read... [10:33:21]Read from MH i2c: E2 03 00 [10:33:21]MH_I2C_Read... [10:33:21]Read from MH i2c: E2 03 00 15 73 00 90 00 FC [10:33:21]RAPDU: 90 00 [10:33:21]wFMCommunicate OK [10:33:21]wFMCommunicate request_size=10 [10:33:21]MH_SAM_APDU [10:33:21]CAPDU: 80 0D 02 02 05 FB C4 D9 21 EF [10:33:21]Write to MH i2c: E2 0D 00 16 73 80 0D 02 02 05 00 FB C4 D9 21 EF 00 00 B5 [10:33:21]Write i2c OK [10:33:21]MH_I2C_Read... [10:33:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:33:22]Read from MH i2c: E2 [10:33:22]MH_I2C_Read... [10:33:22]Read from MH i2c: E2 03 00 [10:33:22]MH_I2C_Read... [10:33:22]Read from MH i2c: E2 03 00 16 73 00 90 00 FD [10:33:22]RAPDU: 90 00 [10:33:22]wFMCommunicate OK [10:33:22]wFMCommunicate request_size=4 [10:33:22]MH_SAM_APDU [10:33:22]CAPDU: 80 0D 03 02 [10:33:22]Write to MH i2c: E2 08 00 17 73 80 0D 03 02 00 00 00 00 05 [10:33:22]Write i2c OK [10:33:22]MH_I2C_Read... [10:33:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:33:22]Read from MH i2c: E2 [10:33:22]MH_I2C_Read... [10:33:22]Read from MH i2c: E2 0B 00 [10:33:22]MH_I2C_Read... [10:33:22]Read from MH i2c: E2 0B 00 17 73 00 91 45 EE 2E E8 82 47 62 90 00 0B [10:33:22]RAPDU: 91 45 EE 2E E8 82 47 62 90 00 [10:33:22]wFMCommunicate OK [10:33:22]SAM_PROTO_SignData done [10:33:22]FM_MakeSignedData done [10:33:22]CreateOFDProtocolMessage [10:33:22]wFMCommunicate request_size=4 [10:33:22]MH_SAM_APDU [10:33:22]CAPDU: 80 11 00 00 [10:33:22]Write to MH i2c: E2 08 00 18 73 80 11 00 00 00 00 00 00 05 [10:33:22]Write i2c OK [10:33:22]MH_I2C_Read... [10:33:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:33:22]Read from MH i2c: E2 [10:33:22]MH_I2C_Read... [10:33:22]Read from MH i2c: E2 17 00 [10:33:22]MH_I2C_Read... [10:33:22]Read from MH i2c: E2 17 00 18 73 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 53 [10:33: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:33:22]wFMCommunicate OK [10:33:22]CreateOFDProtocolMessage done [10:33:22]OFDSenderStorePacket 30279 [10:33:22]StoreOFDPacket docnum=30279 [10:33: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 AE 85 07 01 1B 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 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 F0 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 00 00 00 00 00 00 39 04 06 00 F0 88 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 79 DC 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 37 FB C4 D9 21 EF 91 45 EE 2E E8 82 47 62 [10:33:22]CheckFolder [10:33:22]dirname=/storage/ofd_packets [10:33:22]CheckFolder done [10:33:22]ProducePacketName [10:33:22]name=ofd_packets/00030279 [10:33:22]NVStorageSaveData ofd_packets/00030279 [10:33:22]File name is /storage/ofd_packets/00030279 [10:33:22]Write 301 bytes [10:33:22]NVStorageSaveData done [10:33:22]OFDSenderStorePacket done [10:33:22]KKMCreateOFDPacket done [10:33:22]NVStorageSaveData kkm_last_timestamp [10:33:22]File name is /storage/kkm_last_timestamp [10:33:22]Write 4 bytes [10:33:22]NVStorageSaveData done [10:33:22]ExternCall_PrintAddStr [10:33:22]wPrintStart [10:33:22]Write to MH i2c: 01 00 00 19 73 8C [10:33:22]Write i2c OK [10:33:22]MH_I2C_Read... [10:33:22]Read from MH i2c: 01 [10:33:22]MH_I2C_Read... [10:33:22]Read from MH i2c: 01 07 00 [10:33:22]MH_I2C_Read... [10:33:22]Read from MH i2c: 01 07 00 19 73 00 00 00 00 00 FF 0F A1 [10:33:22]RasterBufferAndPrint [10:33:22]line Счет N : (1)342671 [10:33:22]line ИНН: 02508201610067 [10:33:22]line Контрольно-Кассовый Чек [10:33:22]line ПРОДАЖА [10:33:22]line ТРК (МРК, ГНК) : 63 [10:33:22]line Товар: 2710124130 [10:33:22]line Аи-92-К-2 [10:33:22]line 5.240 * 66.90 [10:33:22]line = 350.56 [10:33:22]line НДС 12% НСП 1% [10:33:22]line > о реализуемом товаре [10:33:22]line ИТОГО: 350.56 [10:33:22]line НСП 1% : 3.10 [10:33:22]line НДС 12% : 37.23 [10:33:22]line Наличными: 0.00 [10:33:22]line Безнал.: 350.56 [10:33:22]line Место: АЗС № 78 "Партнер Нефть" [10:33:22]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [10:33:22]line СНО: Общий режим [10:33:22]line Чек 61 20.10.2024 10:33 [10:33:22]line Смена: 114 ФФД: 1.0 [10:33:22]line ЗНМ: 0300000137 [10:33:22]line РНМ: 0000000000186857 [10:33:22]line Версия ККМ: v1.0 [10:33:22]line Платежная система: АКБ Кыргызстан [10:33:22]line ФМ: 0000000002094219 [10:33:22]line ФД: 30279 [10:33:22]line ФПД: 61554478883311 [10:33:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T103329&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30279&fm=61554478883311&tin=02508201610067®Number=0000000000186857&sum=35056 [10:33:22]OFD Sender: Processing packet 30279 [packets to send 10, broken 9] [10:33:22]ProducePacketName [10:33:22]name=ofd_packets/00030279 [10:33:22]OFD Sender: To server: pG, [10:33:22]CommunicateWithHost lk.salyk.kg:30040 [10:33:22]ConnectInit lk.salyk.kg [10:33:22]written 0, free lines is 4095 [10:33:22]Connected sock=9 [10:33: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 AE 85 07 01 1B 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 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 F0 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 00 00 00 00 00 00 39 04 06 00 F0 88 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 79 DC 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 37 FB C4 D9 21 EF 91 45 EE 2E E8 82 47 62 [10:33: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 47 E7 47 00 ED 37 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 47 76 00 00 F4 03 04 00 FD 86 14 67 B6 04 01 00 00 B3 B6 7D C0 E4 C8 66 AF [10:33:22]CommunicateWithHost err = 0 [10:33:22]CheckOFDResponse [10:33:22]1017 (14) - 77093643461234 [10:33:22]1041 (16) - 0000000002094219 [10:33:22]1040 (4) - 30279 [10:33:22]1012 (4) - 20.10.2024 04:28 [10:33:22]1206 (1) - 0 [10:33:22]OFD Sender: Remove packet 30279 [10:33:22]ProducePacketName [10:33:22]name=ofd_packets/00030279 [10:33:22]NVStorageDeleteData [10:33:22]Write to MH i2c: 01 00 00 43 73 B6 [10:33:22]Write i2c OK [10:33:22]MH_I2C_Read... [10:33:22]Read from MH i2c: 01 [10:33:22]MH_I2C_Read... [10:33:22]Read from MH i2c: 01 07 00 [10:33:22]MH_I2C_Read... [10:33:22]Read from MH i2c: 01 07 00 43 73 00 00 00 00 00 0A 0D D4 [10:33:22]RasterBufferAndPrint [10:33:22]line [10:33:22]line [10:33:22]line [10:33:22]line [10:33:22]line [10:33:22]written 0, free lines is 3344 [10:33:22]MH_Cut [10:33:22]Write to MH i2c: D1 01 00 4A 73 01 8F [10:33:22]Write i2c OK [10:33:22]MH_I2C_Read... [10:33:22]Read from MH i2c: D1 [10:33:22]MH_I2C_Read... [10:33:22]Read from MH i2c: D1 01 00 [10:33:22]MH_I2C_Read... [10:33:22]Read from MH i2c: D1 01 00 4A 73 00 8E [10:33:22]Write to MH i2c: 01 00 00 4B 73 BE [10:33:22]Write i2c OK [10:33:22]MH_I2C_Read... [10:33:23]OFD Sender: No OFD packet to send [10:33:23]*** Cut start [10:33:23]*** Partial cut [10:33:23]*** CUTSNS_PIN = 1 [10:33:23]*** CUTSNS_PIN = 0 [10:33:23]*** Brake cut motor [10:33:24]Read from MH i2c: 01 [10:33:24]MH_I2C_Read... [10:33:24]*** Stop cut motor [10:33:24]*** Cut end [10:33:24]Read from MH i2c: 01 07 00 [10:33:24]MH_I2C_Read... [10:33:24]Read from MH i2c: 01 07 00 4B 73 00 00 00 00 00 FF 0F D3 [10:33:24]process_action close_receipt done [10:33:24]requested_data is exist [10:33:24]produce_requested_data [10:33:24]requested_item fm.sn is exist - process it [10:33:24]wFMCommunicate request_size=4 [10:33:24]MH_SAM_APDU [10:33:24]CAPDU: 80 11 00 00 [10:33:24]Write to MH i2c: E2 08 00 4C 73 80 11 00 00 00 00 00 00 39 [10:33:24]Write i2c OK [10:33:24]MH_I2C_Read... [10:33:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:33:24]Read from MH i2c: E2 [10:33:24]MH_I2C_Read... [10:33:24]Read from MH i2c: E2 17 00 [10:33:24]MH_I2C_Read... [10:33:24]Read from MH i2c: E2 17 00 4C 73 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 87 [10:33: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:33:24]wFMCommunicate OK [10:33:24]requested_item fd.num is exist - process it [10:33:24]SAM_PROTO_GetFieldsCounters [10:33:24]wFMCommunicate request_size=4 [10:33:24]MH_SAM_APDU [10:33:24]CAPDU: 80 13 00 00 [10:33:24]Write to MH i2c: E2 08 00 4D 73 80 13 00 00 00 00 00 00 3C [10:33:24]Write i2c OK [10:33:24]MH_I2C_Read... [10:33:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:33:24]Read from MH i2c: E2 [10:33:24]MH_I2C_Read... [10:33:24]Read from MH i2c: E2 62 00 [10:33:24]MH_I2C_Read... [10:33:24]Read from MH i2c: E2 62 00 4D 73 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 48 [10:33: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 47 76 00 00 0E 04 04 00 72 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:33:24]wFMCommunicate OK [10:33:24]SAM_PROTO_GetFieldsCounters done [10:33:24]requested_item shift.num is exist - process it [10:33:24]requested_item shift.opened is exist - process it [10:33:24]req_shift_opened [10:33:24]FM_GetShiftState [10:33:24]SAM_PROTO_GetShiftState [10:33:24]wFMCommunicate request_size=4 [10:33:24]MH_SAM_APDU [10:33:24]CAPDU: 80 13 01 00 [10:33:24]Write to MH i2c: E2 08 00 4E 73 80 13 01 00 00 00 00 00 3E [10:33:24]Write i2c OK [10:33:24]MH_I2C_Read... [10:33:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:33:24]Read from MH i2c: E2 [10:33:24]MH_I2C_Read... [10:33:24]Read from MH i2c: E2 0E 00 [10:33:24]MH_I2C_Read... [10:33:24]Read from MH i2c: E2 0E 00 4E 73 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 24 [10:33:24]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [10:33:24]wFMCommunicate OK [10:33:24]SAM_PROTO_GetShiftState done [10:33:24]FM_GetShiftState done [10:33:24]req_shift_opened done [10:33:24]requested_item shift.open_date is exist - process it [10:33:24]req_shift_open_date [10:33:24]req_shift_open_date done [10:33:24]produce_requested_data done [10:33:24]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30279,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [10:33:24]process_action_free close_receipt [10:33:24]json_value_free [10:33:24]json_value_free done [10:33:24]process_json_proto returns [10:33:24]Send response to host [10:33:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30279,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [10:33:24]free response buf [10:33:24]execute_script done [10:33:24]execute_script returns [10:33:24]free content buf [10:33:24]Sock 10.Close socket [10:33:24]Sock 10.Thread stoped [10:33:28]OFD Sender: No OFD packet to send [10:33:33]OFD Sender: No OFD packet to send [10:33:38]OFD Sender: No OFD packet to send [10:33:43]OFD Sender: No OFD packet to send [10:33:48]OFD Sender: No OFD packet to send [10:33:53]OFD Sender: No OFD packet to send [10:33:58]OFD Sender: No OFD packet to send [10:34:03]OFD Sender: No OFD packet to send [10:34:08]OFD Sender: No OFD packet to send [10:34:13]OFD Sender: No OFD packet to send [10:34:18]OFD Sender: No OFD packet to send [10:34:23]OFD Sender: No OFD packet to send [10:34:28]OFD Sender: No OFD packet to send [10:34:33]OFD Sender: No OFD packet to send [10:34:38]OFD Sender: No OFD packet to send [10:34:43]OFD Sender: No OFD packet to send [10:34:48]OFD Sender: No OFD packet to send [10:34:53]OFD Sender: No OFD packet to send [10:34:58]OFD Sender: No OFD packet to send [10:35:03]OFD Sender: No OFD packet to send [10:35:08]OFD Sender: No OFD packet to send [10:35:13]OFD Sender: No OFD packet to send [10:35:18]OFD Sender: No OFD packet to send [10:35:23]OFD Sender: No OFD packet to send [10:35:28]OFD Sender: No OFD packet to send [10:35:33]OFD Sender: No OFD packet to send [10:35:38]OFD Sender: No OFD packet to send [10:35:43]OFD Sender: No OFD packet to send [10:35:48]OFD Sender: No OFD packet to send [10:35:53]OFD Sender: No OFD packet to send [10:35:58]OFD Sender: No OFD packet to send [10:36:03]OFD Sender: No OFD packet to send [10:36:08]OFD Sender: No OFD packet to send [10:36:13]OFD Sender: No OFD packet to send [10:36:18]OFD Sender: No OFD packet to send [10:36:23]OFD Sender: No OFD packet to send [10:36:28]OFD Sender: No OFD packet to send [10:36:33]OFD Sender: No OFD packet to send [10:36:38]OFD Sender: No OFD packet to send [10:36:43]OFD Sender: No OFD packet to send [10:36:48]OFD Sender: No OFD packet to send [10:36:53]OFD Sender: No OFD packet to send [10:36:58]OFD Sender: No OFD packet to send [10:37:03]OFD Sender: No OFD packet to send [10:37:08]OFD Sender: No OFD packet to send [10:37:13]OFD Sender: No OFD packet to send [10:37:18]OFD Sender: No OFD packet to send [10:37:23]OFD Sender: No OFD packet to send [10:37:28]OFD Sender: No OFD packet to send [10:37:33]OFD Sender: No OFD packet to send [10:37:38]OFD Sender: No OFD packet to send [10:37:43]OFD Sender: No OFD packet to send [10:37:48]OFD Sender: No OFD packet to send [10:37:53]OFD Sender: No OFD packet to send [10:37:58]OFD Sender: No OFD packet to send [10:38:03]OFD Sender: No OFD packet to send [10:38:08]OFD Sender: No OFD packet to send [10:38:13]OFD Sender: No OFD packet to send [10:38:18]OFD Sender: No OFD packet to send [10:38:23]OFD Sender: No OFD packet to send [10:38:28]OFD Sender: No OFD packet to send [10:38:33]OFD Sender: No OFD packet to send [10:38:38]OFD Sender: No OFD packet to send [10:38:43]OFD Sender: No OFD packet to send [10:38:48]OFD Sender: No OFD packet to send [10:38:53]OFD Sender: No OFD packet to send [10:38:58]OFD Sender: No OFD packet to send [10:39:03]OFD Sender: No OFD packet to send [10:39:08]OFD Sender: No OFD packet to send [10:39:13]OFD Sender: No OFD packet to send [10:39:18]OFD Sender: No OFD packet to send [10:39:23]OFD Sender: No OFD packet to send [10:39:28]OFD Sender: No OFD packet to send [10:39:33]OFD Sender: No OFD packet to send [10:39:38]OFD Sender: No OFD packet to send [10:39:43]OFD Sender: No OFD packet to send [10:39:48]OFD Sender: No OFD packet to send [10:39:53]OFD Sender: No OFD packet to send [10:39:58]OFD Sender: No OFD packet to send [10:40:03]OFD Sender: No OFD packet to send [10:40:08]OFD Sender: No OFD packet to send [10:40:13]OFD Sender: No OFD packet to send [10:40:18]OFD Sender: No OFD packet to send [10:40:23]OFD Sender: No OFD packet to send [10:40:28]OFD Sender: No OFD packet to send [10:40:33]OFD Sender: No OFD packet to send [10:40:38]OFD Sender: No OFD packet to send [10:40:43]OFD Sender: No OFD packet to send [10:40:48]OFD Sender: No OFD packet to send [10:40:53]OFD Sender: No OFD packet to send [10:40:58]OFD Sender: No OFD packet to send [10:41:03]OFD Sender: No OFD packet to send [10:41:08]OFD Sender: No OFD packet to send [10:41:13]OFD Sender: No OFD packet to send [10:41:18]OFD Sender: No OFD packet to send [10:41:23]OFD Sender: No OFD packet to send [10:41:28]OFD Sender: No OFD packet to send [10:41:33]OFD Sender: No OFD packet to send [10:41:38]OFD Sender: No OFD packet to send [10:41:43]OFD Sender: No OFD packet to send [10:41:48]OFD Sender: No OFD packet to send [10:41:53]OFD Sender: No OFD packet to send [10:41:56]accept exits with 7 [10:41:56]New connection [10:41:56]New thread 3067514212 created [10:41:56]Thread 3067370852 joined [10:41:56]Waiting for new connection... [10:41:56] Sock 7.Parse request [10:41:56]Sock 7.Check first char [10:41:56]Sock 7.First char is OK [10:41:56]request: POST /json_proto HTTP/1.0 [10:41:56]Method: POST [10:41:56]URL: /json_proto [10:41:56]Method is POST - this is cgi request [10:41:56]url: /json_proto [10:41:56]query_string will be loaded in cgi processing [10:41:56]execute_cgi json_proto POST (null) [10:41:56]execute_cgi path=json_proto method=POST [10:41:56]POST find Content-Length [10:41:56]Host: 172.17.51.3:8080 [10:41:56]Content-Length: 677 [10:41:56]Content-Type: application/json [10:41:56] [10:41:56]POST finish read [10:41:56]Found Content-Length = 677 [10:41:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342672", "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" ] } } [10:41:56]execute_script... [10:41: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)342672", "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" ] } } [10:41:56]POST & json_proto [10:41:56]process_json_proto [10:41:56]json parsed OK: [10:41:56]protocol is kg_v1.0 [10:41:56]action value=close_receipt [10:41:56]process_action close_receipt [10:41:56]cmd_close_receipt [10:41:56]MH_GetDate [10:41:56]Write to MH i2c: F0 00 00 4F 73 B1 [10:41:56]Write i2c OK [10:41:56]MH_I2C_Read... [10:41:56]Read from MH i2c: F0 [10:41:56]MH_I2C_Read... [10:41:56]Read from MH i2c: F0 09 00 [10:41:56]MH_I2C_Read... [10:41:56]Read from MH i2c: F0 09 00 4F 73 00 7D DE 14 67 04 C1 95 66 50 [10:41:56]GetLastDocTimeStamp 1729420409 [10:41:56]current date 1729420925 [10:41:56]FM_GetShiftState [10:41:56]SAM_PROTO_GetShiftState [10:41:56]wFMCommunicate request_size=4 [10:41:56]MH_SAM_APDU [10:41:56]CAPDU: 80 13 01 00 [10:41:56]Write to MH i2c: E2 08 00 50 73 80 13 01 00 00 00 00 00 40 [10:41:56]Write i2c OK [10:41:56]MH_I2C_Read... [10:41:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:41:56]Read from MH i2c: E2 [10:41:56]MH_I2C_Read... [10:41:56]Read from MH i2c: E2 0E 00 [10:41:56]MH_I2C_Read... [10:41:56]Read from MH i2c: E2 0E 00 50 73 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 26 [10:41:56]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [10:41:56]wFMCommunicate OK [10:41:56]SAM_PROTO_GetShiftState done [10:41:56]FM_GetShiftState done [10:41:56]opened in 1729384718 [10:41:56]opened+sec_in_day 1729471118 [10:41:56]quantity*price = 40006 [10:41:56]sum+1 = 40007 [10:41:56]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 СНО: Общий режим Чек 62 20.10.2024 10:42 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30280 ФПД: 17455992802626 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T104205&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30280&fm=17455992802626&tin=02508201610067®Number=0000000000186857&sum=40000 [10:41:57]StoreToDocumentArchive [10:41:57]shift 114 fd 30280 [10:41:57]save to /storage/0114/doc_00030280 [10:41:57]save last doc name /storage/0114/doc_00030280 to /storage/kkm_last_doc_name [10:41:57]save OK [10:41:57]Clear old archive folders... [10:41:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:41:57]tlvbuf is 00C085B0 [10:41:57]SAM_PROTO_ClearQueue [10:41:57]wFMCommunicate request_size=4 [10:41:57]MH_SAM_APDU [10:41:57]CAPDU: 80 09 00 00 [10:41:57]Write to MH i2c: E2 08 00 5D 73 80 09 00 00 00 00 00 00 42 [10:41:57]Write i2c OK [10:41:57]MH_I2C_Read... [10:41:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:41:58]Read from MH i2c: E2 [10:41:58]MH_I2C_Read... [10:41:58]Read from MH i2c: E2 03 00 [10:41:58]MH_I2C_Read... [10:41:58]Read from MH i2c: E2 03 00 5D 73 00 90 00 44 [10:41:58]RAPDU: 90 00 [10:41:58]wFMCommunicate OK [10:41:58]SAM_PROTO_ClearQueue done [10:41:58]KKMCreateOFDPacket [10:41:58]OFDProtocolAddRootSTLVToBuf [10:41:58]FM_MakeSignedData [10:41:58]FM_MakeSignedData [10:41:58]SAM_PROTO_SignData [10:41:58]wFMCommunicate request_size=4 [10:41:58]MH_SAM_APDU [10:41:58]CAPDU: 80 0D 01 02 [10:41:58]Write to MH i2c: E2 08 00 5E 73 80 0D 01 02 00 00 00 00 4A [10:41:58]Write i2c OK [10:41:58]MH_I2C_Read... [10:41:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:41:58]Read from MH i2c: E2 [10:41:58]MH_I2C_Read... [10:41:58]Read from MH i2c: E2 03 00 [10:41:58]MH_I2C_Read... [10:41:58]Read from MH i2c: E2 03 00 5E 73 00 90 00 45 [10:41:58]RAPDU: 90 00 [10:41:58]wFMCommunicate OK [10:41:58]wFMCommunicate request_size=255 [10:41:58]MH_SAM_APDU [10:41: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 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 3E 00 00 00 F4 03 04 00 7D DE 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 0F [10:41:58]Write to MH i2c: E2 02 01 5F 73 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 3E 00 00 00 F4 03 04 00 7D DE 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 0F 00 00 FD [10:41:58]Write i2c OK [10:41:58]MH_I2C_Read... [10:41:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:41:58]Read from MH i2c: E2 [10:41:58]MH_I2C_Read... [10:41:58]Read from MH i2c: E2 03 00 [10:41:58]MH_I2C_Read... [10:41:58]Read from MH i2c: E2 03 00 5F 73 00 90 00 46 [10:41:58]RAPDU: 90 00 [10:41:58]wFMCommunicate OK [10:41:58]wFMCommunicate request_size=10 [10:41:58]MH_SAM_APDU [10:41:58]CAPDU: 80 0D 02 02 05 E0 4A 40 0D 42 [10:41:58]Write to MH i2c: E2 0D 00 60 73 80 0D 02 02 05 00 E0 4A 40 0D 42 00 00 10 [10:41:58]Write i2c OK [10:41:58]MH_I2C_Read... [10:41:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:41:58]Read from MH i2c: E2 [10:41:58]MH_I2C_Read... [10:41:58]Read from MH i2c: E2 03 00 [10:41:58]MH_I2C_Read... [10:41:58]Read from MH i2c: E2 03 00 60 73 00 90 00 47 [10:41:58]RAPDU: 90 00 [10:41:58]wFMCommunicate OK [10:41:58]wFMCommunicate request_size=4 [10:41:58]MH_SAM_APDU [10:41:58]CAPDU: 80 0D 03 02 [10:41:58]Write to MH i2c: E2 08 00 61 73 80 0D 03 02 00 00 00 00 4F [10:41:58]Write i2c OK [10:41:58]MH_I2C_Read... [10:41:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:41:58]Read from MH i2c: E2 [10:41:58]MH_I2C_Read... [10:41:58]Read from MH i2c: E2 0B 00 [10:41:58]MH_I2C_Read... [10:41:58]Read from MH i2c: E2 0B 00 61 73 00 94 80 8A 19 35 22 71 C1 90 00 90 [10:41:58]RAPDU: 94 80 8A 19 35 22 71 C1 90 00 [10:41:58]wFMCommunicate OK [10:41:58]SAM_PROTO_SignData done [10:41:58]FM_MakeSignedData done [10:41:58]CreateOFDProtocolMessage [10:41:58]wFMCommunicate request_size=4 [10:41:58]MH_SAM_APDU [10:41:58]CAPDU: 80 11 00 00 [10:41:58]Write to MH i2c: E2 08 00 62 73 80 11 00 00 00 00 00 00 4F [10:41:58]Write i2c OK [10:41:58]MH_I2C_Read... [10:41:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:41:58]Read from MH i2c: E2 [10:41:58]MH_I2C_Read... [10:41:58]Read from MH i2c: E2 17 00 [10:41:58]MH_I2C_Read... [10:41:58]Read from MH i2c: E2 17 00 62 73 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 9D [10:41:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [10:41:58]wFMCommunicate OK [10:41:58]CreateOFDProtocolMessage done [10:41:58]OFDSenderStorePacket 30280 [10:41:58]StoreOFDPacket docnum=30280 [10:41: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 68 38 07 01 C6 C2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 3E 00 00 00 F4 03 04 00 7D DE 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 0F E0 4A 40 0D 42 94 80 8A 19 35 22 71 C1 [10:41:58]CheckFolder [10:41:58]dirname=/storage/ofd_packets [10:41:58]CheckFolder done [10:41:58]ProducePacketName [10:41:58]name=ofd_packets/00030280 [10:41:58]NVStorageSaveData ofd_packets/00030280 [10:41:58]File name is /storage/ofd_packets/00030280 [10:41:58]Write 301 bytes [10:41:58]NVStorageSaveData done [10:41:58]OFDSenderStorePacket done [10:41:58]KKMCreateOFDPacket done [10:41:58]NVStorageSaveData kkm_last_timestamp [10:41:58]File name is /storage/kkm_last_timestamp [10:41:58]Write 4 bytes [10:41:58]NVStorageSaveData done [10:41:58]ExternCall_PrintAddStr [10:41:58]wPrintStart [10:41:58]Write to MH i2c: 01 00 00 63 73 D6 [10:41:58]OFD Sender: Processing packet 30280 [packets to send 10, broken 9] [10:41:58]ProducePacketName [10:41:58]name=ofd_packets/00030280 [10:41:58]OFD Sender: To server: pG, [10:41:58]CommunicateWithHost lk.salyk.kg:30040 [10:41:58]ConnectInit lk.salyk.kg [10:41:58]Write i2c OK [10:41:58]MH_I2C_Read... [10:41:58]Read from MH i2c: 01 [10:41:58]MH_I2C_Read... [10:41:58]Read from MH i2c: 01 07 00 [10:41:58]MH_I2C_Read... [10:41:58]Read from MH i2c: 01 07 00 63 73 00 00 00 00 00 FF 0F EB [10:41:58]RasterBufferAndPrint [10:41:58]line Счет N : (1)342672 [10:41:58]line ИНН: 02508201610067 [10:41:58]line Контрольно-Кассовый Чек [10:41:58]line ПРОДАЖА [10:41:58]line ТРК (МРК, ГНК) : 53 [10:41:58]line Товар: 2710124130 [10:41:58]line Аи-92-К-2 [10:41:58]line 5.980 * 66.90 [10:41:58]line = 400.06 [10:41:58]line НДС 12% НСП 1% [10:41:58]line > о реализуемом товаре [10:41:58]line ОКРУГЛЕНИЕ: -0.06 [10:41:58]line ИТОГО: 400.00 [10:41:58]line Внесено: 400.00 [10:41:58]line СДАЧА: 0.00 [10:41:58]line НСП 1% : 3.54 [10:41:58]line НДС 12% : 42.48 [10:41:58]line Наличными: 400.00 [10:41:58]line Безнал.: 0.00 [10:41:58]line Место: АЗС № 78 "Партнер Нефть" [10:41:58]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [10:41:58]line СНО: Общий режим [10:41:58]line Чек 62 20.10.2024 10:42 [10:41:58]line Смена: 114 ФФД: 1.0 [10:41:58]line ЗНМ: 0300000137 [10:41:58]line РНМ: 0000000000186857 [10:41:58]line Версия ККМ: v1.0 [10:41:58]line ФМ: 0000000002094219 [10:41:58]line ФД: 30280 [10:41:58]line ФПД: 17455992802626 [10:41:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T104205&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30280&fm=17455992802626&tin=02508201610067®Number=0000000000186857&sum=40000 [10:41:58]Connected sock=10 [10:41: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 68 38 07 01 C6 written 0, free lines is 4095 [10:41:58]C2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 3E 00 00 00 F4 03 04 00 7D DE 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 0F E0 4A 40 0D 42 94 80 8A 19 35 22 71 C1 [10:41: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 20 86 47 00 F0 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 48 76 00 00 F4 03 04 00 01 89 14 67 B6 04 01 00 00 B1 38 3F AA B9 1B BE 5D [10:41:59]CommunicateWithHost err = 0 [10:41:59]CheckOFDResponse [10:41:59]1017 (14) - 77093643461234 [10:41:59]1041 (16) - 0000000002094219 [10:41:59]1040 (4) - 30280 [10:41:59]1012 (4) - 20.10.2024 04:37 [10:41:59]1206 (1) - 0 [10:41:59]OFD Sender: Remove packet 30280 [10:41:59]ProducePacketName [10:41:59]name=ofd_packets/00030280 [10:41:59]NVStorageDeleteData [10:41:59]Write to MH i2c: 01 00 00 8E 73 01 [10:41:59]Write i2c OK [10:41:59]MH_I2C_Read... [10:41:59]Read from MH i2c: 01 [10:41:59]MH_I2C_Read... [10:41:59]Read from MH i2c: 01 07 00 [10:41:59]MH_I2C_Read... [10:41:59]Read from MH i2c: 01 07 00 8E 73 00 00 00 00 00 E4 0C F8 [10:41:59]RasterBufferAndPrint [10:41:59]line [10:41:59]line [10:41:59]line [10:41:59]line [10:41:59]line [10:41:59]written 0, free lines is 3306 [10:41:59]MH_Cut [10:41:59]Write to MH i2c: D1 01 00 95 73 01 DA [10:41:59]Write i2c OK [10:41:59]MH_I2C_Read... [10:41:59]Read from MH i2c: D1 [10:41:59]MH_I2C_Read... [10:41:59]Read from MH i2c: D1 01 00 [10:41:59]MH_I2C_Read... [10:41:59]Read from MH i2c: D1 01 00 95 73 00 D9 [10:41:59]Write to MH i2c: 01 00 00 96 73 09 [10:41:59]Write i2c OK [10:41:59]MH_I2C_Read... [10:41:59]OFD Sender: No OFD packet to send [10:41:59]*** Cut start [10:41:59]*** Partial cut [10:42:00]*** CUTSNS_PIN = 1 [10:42:00]*** CUTSNS_PIN = 0 [10:42:00]*** Brake cut motor [10:42:00]Read from MH i2c: 01 [10:42:00]MH_I2C_Read... [10:42:00]*** Stop cut motor [10:42:00]*** Cut end [10:42:00]Read from MH i2c: 01 07 00 [10:42:00]MH_I2C_Read... [10:42:00]Read from MH i2c: 01 07 00 96 73 00 00 00 00 00 FF 0F 1E [10:42:00]process_action close_receipt done [10:42:00]requested_data is exist [10:42:00]produce_requested_data [10:42:00]requested_item fm.sn is exist - process it [10:42:00]wFMCommunicate request_size=4 [10:42:00]MH_SAM_APDU [10:42:00]CAPDU: 80 11 00 00 [10:42:00]Write to MH i2c: E2 08 00 97 73 80 11 00 00 00 00 00 00 84 [10:42:00]Write i2c OK [10:42:00]MH_I2C_Read... [10:42:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:42:00]Read from MH i2c: E2 [10:42:00]MH_I2C_Read... [10:42:00]Read from MH i2c: E2 17 00 [10:42:00]MH_I2C_Read... [10:42:00]Read from MH i2c: E2 17 00 97 73 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 D2 [10:42: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:42:00]wFMCommunicate OK [10:42:00]requested_item fd.num is exist - process it [10:42:00]SAM_PROTO_GetFieldsCounters [10:42:00]wFMCommunicate request_size=4 [10:42:00]MH_SAM_APDU [10:42:00]CAPDU: 80 13 00 00 [10:42:00]Write to MH i2c: E2 08 00 98 73 80 13 00 00 00 00 00 00 87 [10:42:00]Write i2c OK [10:42:00]MH_I2C_Read... [10:42:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:42:00]Read from MH i2c: E2 [10:42:00]MH_I2C_Read... [10:42:00]Read from MH i2c: E2 62 00 [10:42:00]MH_I2C_Read... [10:42:00]Read from MH i2c: E2 62 00 98 73 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 97 [10:42: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 48 76 00 00 0E 04 04 00 72 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:42:00]wFMCommunicate OK [10:42:00]SAM_PROTO_GetFieldsCounters done [10:42:00]requested_item shift.num is exist - process it [10:42:00]requested_item shift.opened is exist - process it [10:42:00]req_shift_opened [10:42:00]FM_GetShiftState [10:42:00]SAM_PROTO_GetShiftState [10:42:00]wFMCommunicate request_size=4 [10:42:00]MH_SAM_APDU [10:42:00]CAPDU: 80 13 01 00 [10:42:00]Write to MH i2c: E2 08 00 99 73 80 13 01 00 00 00 00 00 89 [10:42:00]Write i2c OK [10:42:00]MH_I2C_Read... [10:42:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:42:00]Read from MH i2c: E2 [10:42:00]MH_I2C_Read... [10:42:00]Read from MH i2c: E2 0E 00 [10:42:00]MH_I2C_Read... [10:42:00]Read from MH i2c: E2 0E 00 99 73 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 6F [10:42:00]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [10:42:00]wFMCommunicate OK [10:42:00]SAM_PROTO_GetShiftState done [10:42:00]FM_GetShiftState done [10:42:00]req_shift_opened done [10:42:00]requested_item shift.open_date is exist - process it [10:42:00]req_shift_open_date [10:42:00]req_shift_open_date done [10:42:00]produce_requested_data done [10:42:00]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30280,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [10:42:00]process_action_free close_receipt [10:42:00]json_value_free [10:42:00]json_value_free done [10:42:00]process_json_proto returns [10:42:00]Send response to host [10:42:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30280,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [10:42:00]free response buf [10:42:00]execute_script done [10:42:00]execute_script returns [10:42:00]free content buf [10:42:00]Sock 7.Close socket [10:42:00]Sock 7.Thread stoped [10:42:04]OFD Sender: No OFD packet to send [10:42:09]OFD Sender: No OFD packet to send [10:42:14]OFD Sender: No OFD packet to send [10:42:19]OFD Sender: No OFD packet to send [10:42:24]OFD Sender: No OFD packet to send [10:42:29]OFD Sender: No OFD packet to send [10:42:34]OFD Sender: No OFD packet to send [10:42:39]OFD Sender: No OFD packet to send [10:42:44]OFD Sender: No OFD packet to send [10:42:49]OFD Sender: No OFD packet to send [10:42:54]OFD Sender: No OFD packet to send [10:42:59]OFD Sender: No OFD packet to send [10:43:04]OFD Sender: No OFD packet to send [10:43:09]OFD Sender: No OFD packet to send [10:43:14]OFD Sender: No OFD packet to send [10:43:19]OFD Sender: No OFD packet to send [10:43:24]OFD Sender: No OFD packet to send [10:43:29]OFD Sender: No OFD packet to send [10:43:34]OFD Sender: No OFD packet to send [10:43:39]OFD Sender: No OFD packet to send [10:43:44]OFD Sender: No OFD packet to send [10:43:49]OFD Sender: No OFD packet to send [10:43:54]OFD Sender: No OFD packet to send [10:43:59]OFD Sender: No OFD packet to send [10:44:04]OFD Sender: No OFD packet to send [10:44:09]OFD Sender: No OFD packet to send [10:44:14]OFD Sender: No OFD packet to send [10:44:19]OFD Sender: No OFD packet to send [10:44:24]OFD Sender: No OFD packet to send [10:44:29]OFD Sender: No OFD packet to send [10:44:34]OFD Sender: No OFD packet to send [10:44:39]OFD Sender: No OFD packet to send [10:44:44]OFD Sender: No OFD packet to send [10:44:49]OFD Sender: No OFD packet to send [10:44:54]OFD Sender: No OFD packet to send [10:44:59]OFD Sender: No OFD packet to send [10:45:04]OFD Sender: No OFD packet to send [10:45:09]OFD Sender: No OFD packet to send [10:45:14]OFD Sender: No OFD packet to send [10:45:19]OFD Sender: No OFD packet to send [10:45:24]OFD Sender: No OFD packet to send [10:45:29]OFD Sender: No OFD packet to send [10:45:34]OFD Sender: No OFD packet to send [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:25]accept exits with 9 [10:46:25]New connection [10:46:25]New thread 3067370852 created [10:46:25]Thread 3067514212 joined [10:46:25]Waiting for new connection... [10:46:25] Sock 9.Parse request [10:46:25]Sock 9.Check first char [10:46:25]Sock 9.First char is OK [10:46:25]request: POST /json_proto HTTP/1.0 [10:46:25]Method: POST [10:46:25]URL: /json_proto [10:46:25]Method is POST - this is cgi request [10:46:25]url: /json_proto [10:46:25]query_string will be loaded in cgi processing [10:46:25]execute_cgi json_proto POST (null) [10:46:25]execute_cgi path=json_proto method=POST [10:46:25]POST find Content-Length [10:46:25]Host: 172.17.51.3:8080 [10:46:25]Content-Length: 688 [10:46:25]Content-Type: application/json [10:46:25] [10:46:25]POST finish read [10:46:25]Found Content-Length = 688 [10:46:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342673", "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" : 16.270, "sum" : 1256.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1256.00, "total" : 1256.00, "payments": [ { "type": 0, "sum" : 1256.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:46:25]execute_script... [10:46: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)342673", "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" : 16.270, "sum" : 1256.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1256.00, "total" : 1256.00, "payments": [ { "type": 0, "sum" : 1256.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:46:25]POST & json_proto [10:46:25]process_json_proto [10:46:25]json parsed OK: [10:46:25]protocol is kg_v1.0 [10:46:25]action value=close_receipt [10:46:25]process_action close_receipt [10:46:25]cmd_close_receipt [10:46:25]MH_GetDate [10:46:25]Write to MH i2c: F0 00 00 9A 73 FC [10:46:25]Write i2c OK [10:46:25]MH_I2C_Read... [10:46:25]Read from MH i2c: F0 [10:46:25]MH_I2C_Read... [10:46:25]Read from MH i2c: F0 09 00 [10:46:25]MH_I2C_Read... [10:46:25]Read from MH i2c: F0 09 00 9A 73 00 8A DF 14 67 04 C1 95 66 A9 [10:46:25]GetLastDocTimeStamp 1729420925 [10:46:25]current date 1729421194 [10:46:25]FM_GetShiftState [10:46:25]SAM_PROTO_GetShiftState [10:46:25]wFMCommunicate request_size=4 [10:46:25]MH_SAM_APDU [10:46:25]CAPDU: 80 13 01 00 [10:46:25]Write to MH i2c: E2 08 00 9B 73 80 13 01 00 00 00 00 00 8B [10:46:25]Write i2c OK [10:46:25]MH_I2C_Read... [10:46:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:46:25]Read from MH i2c: E2 [10:46:25]MH_I2C_Read... [10:46:25]Read from MH i2c: E2 0E 00 [10:46:25]MH_I2C_Read... [10:46:25]Read from MH i2c: E2 0E 00 9B 73 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 71 [10:46:25]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [10:46:25]wFMCommunicate OK [10:46:25]SAM_PROTO_GetShiftState done [10:46:25]FM_GetShiftState done [10:46:25]opened in 1729384718 [10:46:25]opened+sec_in_day 1729471118 [10:46:25]quantity*price = 125604 [10:46:25]sum+1 = 125605 [10:46:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 1256.00 Внесено: 1256.00 СДАЧА: 0.00 НСП 1% : 11.11 НДС 12% : 133.38 Наличными: 1256.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 63 20.10.2024 10:46 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30281 ФПД: 199565331979989 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T104634&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30281&fm=199565331979989&tin=02508201610067®Number=0000000000186857&sum=125600 [10:46:26]StoreToDocumentArchive [10:46:26]shift 114 fd 30281 [10:46:26]save to /storage/0114/doc_00030281 [10:46:26]save last doc name /storage/0114/doc_00030281 to /storage/kkm_last_doc_name [10:46:26]save OK [10:46:26]Clear old archive folders... [10:46:26]ProcessDocumentItem done err = 0, tmpTLVsize=257 [10:46:26]tlvbuf is 00AB72C0 [10:46:26]SAM_PROTO_ClearQueue [10:46:26]wFMCommunicate request_size=4 [10:46:26]MH_SAM_APDU [10:46:26]CAPDU: 80 09 00 00 [10:46:26]Write to MH i2c: E2 08 00 A8 73 80 09 00 00 00 00 00 00 8D [10:46:26]Write i2c OK [10:46:26]MH_I2C_Read... [10:46:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:46:26]Read from MH i2c: E2 [10:46:26]MH_I2C_Read... [10:46:26]Read from MH i2c: E2 03 00 [10:46:26]MH_I2C_Read... [10:46:26]Read from MH i2c: E2 03 00 A8 73 00 90 00 8F [10:46:26]RAPDU: 90 00 [10:46:26]wFMCommunicate OK [10:46:26]SAM_PROTO_ClearQueue done [10:46:26]KKMCreateOFDPacket [10:46:26]OFDProtocolAddRootSTLVToBuf [10:46:26]FM_MakeSignedData [10:46:26]FM_MakeSignedData [10:46:26]SAM_PROTO_SignData [10:46:26]wFMCommunicate request_size=4 [10:46:26]MH_SAM_APDU [10:46:26]CAPDU: 80 0D 01 02 [10:46:26]Write to MH i2c: E2 08 00 A9 73 80 0D 01 02 00 00 00 00 95 [10:46:26]Write i2c OK [10:46:26]MH_I2C_Read... [10:46:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:46:26]Read from MH i2c: E2 [10:46:26]MH_I2C_Read... [10:46:26]Read from MH i2c: E2 03 00 [10:46:26]MH_I2C_Read... [10:46:26]Read from MH i2c: E2 03 00 A9 73 00 90 00 90 [10:46:26]RAPDU: 90 00 [10:46:26]wFMCommunicate OK [10:46:26]wFMCommunicate request_size=255 [10:46:26]MH_SAM_APDU [10:46:26]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 8E 3F 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 A4 EA 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 EA 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 57 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1A 34 00 00 00 00 07 04 06 00 A0 EA 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 8A DF 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 [10:46:26]Write to MH i2c: E2 02 01 AA 73 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 8E 3F 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 A4 EA 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 EA 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 57 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1A 34 00 00 00 00 07 04 06 00 A0 EA 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 8A DF 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 00 C2 [10:46:26]Write i2c OK [10:46:26]MH_I2C_Read... [10:46:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:46:27]Read from MH i2c: E2 [10:46:27]MH_I2C_Read... [10:46:27]Read from MH i2c: E2 03 00 [10:46:27]MH_I2C_Read... [10:46:27]Read from MH i2c: E2 03 00 AA 73 00 90 00 91 [10:46:27]RAPDU: 90 00 [10:46:27]wFMCommunicate OK [10:46:27]wFMCommunicate request_size=16 [10:46:27]MH_SAM_APDU [10:46:27]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 B5 80 EC B8 DE D5 [10:46:27]Write to MH i2c: E2 13 00 AB 73 80 0D 02 02 0B 00 00 35 04 06 00 B5 80 EC B8 DE D5 00 00 79 [10:46:27]Write i2c OK [10:46:27]MH_I2C_Read... [10:46:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:46:27]Read from MH i2c: E2 [10:46:27]MH_I2C_Read... [10:46:27]Read from MH i2c: E2 03 00 [10:46:27]MH_I2C_Read... [10:46:27]Read from MH i2c: E2 03 00 AB 73 00 90 00 92 [10:46:27]RAPDU: 90 00 [10:46:27]wFMCommunicate OK [10:46:27]wFMCommunicate request_size=4 [10:46:27]MH_SAM_APDU [10:46:27]CAPDU: 80 0D 03 02 [10:46:27]Write to MH i2c: E2 08 00 AC 73 80 0D 03 02 00 00 00 00 9A [10:46:27]Write i2c OK [10:46:27]MH_I2C_Read... [10:46:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:46:27]Read from MH i2c: E2 [10:46:27]MH_I2C_Read... [10:46:27]Read from MH i2c: E2 0B 00 [10:46:27]MH_I2C_Read... [10:46:27]Read from MH i2c: E2 0B 00 AC 73 00 10 2E 5B 37 81 BC B1 23 90 00 7C [10:46:27]RAPDU: 10 2E 5B 37 81 BC B1 23 90 00 [10:46:27]wFMCommunicate OK [10:46:27]SAM_PROTO_SignData done [10:46:27]FM_MakeSignedData done [10:46:27]CreateOFDProtocolMessage [10:46:27]wFMCommunicate request_size=4 [10:46:27]MH_SAM_APDU [10:46:27]CAPDU: 80 11 00 00 [10:46:27]Write to MH i2c: E2 08 00 AD 73 80 11 00 00 00 00 00 00 9A [10:46:27]Write i2c OK [10:46:27]MH_I2C_Read... [10:46:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:46:27]Read from MH i2c: E2 [10:46:27]MH_I2C_Read... [10:46:27]Read from MH i2c: E2 17 00 [10:46:27]MH_I2C_Read... [10:46:27]Read from MH i2c: E2 17 00 AD 73 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 E8 [10:46:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [10:46:27]wFMCommunicate OK [10:46:27]CreateOFDProtocolMessage done [10:46:27]OFDSenderStorePacket 30281 [10:46:27]StoreOFDPacket docnum=30281 [10:46: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 15 01 00 00 D5 A3 0D 01 9E 6D 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 8E 3F 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 A4 EA 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 EA 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 57 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1A 34 00 00 00 00 07 04 06 00 A0 EA 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 8A DF 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 B5 80 EC B8 DE D5 10 2E 5B 37 81 BC B1 23 [10:46:27]CheckFolder [10:46:27]dirname=/storage/ofd_packets [10:46:27]CheckFolder done [10:46:27]ProducePacketName [10:46:27]name=ofd_packets/00030281 [10:46:27]NVStorageSaveData ofd_packets/00030281 [10:46:27]File name is /storage/ofd_packets/00030281 [10:46:27]Write 307 bytes [10:46:27]NVStorageSaveData done [10:46:27]OFDSenderStorePacket done [10:46:27]KKMCreateOFDPacket done [10:46:27]NVStorageSaveData kkm_last_timestamp [10:46:27]File name is /storage/kkm_last_timestamp [10:46:27]Write 4 bytes [10:46:27]NVStorageSaveData done [10:46:27]ExternCall_PrintAddStr [10:46:27]wPrintStart [10:46:27]Write to MH i2c: 01 00 00 AE 73 21 [10:46:27]Write i2c OK [10:46:27]MH_I2C_Read... [10:46:27]Read from MH i2c: 01 [10:46:27]MH_I2C_Read... [10:46:27]Read from MH i2c: 01 07 00 [10:46:27]MH_I2C_Read... [10:46:27]Read from MH i2c: 01 07 00 AE 73 00 00 00 00 00 FF 0F 36 [10:46:27]RasterBufferAndPrint [10:46:27]line Счет N : (1)342673 [10:46:27]line ИНН: 02508201610067 [10:46:27]line Контрольно-Кассовый Чек [10:46:27]line ПРОДАЖА [10:46:27]line ТРК (МРК, ГНК) : 51 [10:46:27]line Товар: 2710194210 [10:46:27]line D-ENERGY Дт-К-2 [10:46:27]line 16.270 * 77.20 [10:46:27]line = 1256.04 [10:46:27]line НДС 12% НСП 1% [10:46:27]line > о реализуемом товаре [10:46:27]line ОКРУГЛЕНИЕ: -0.04 [10:46:27]line ИТОГО: 1256.00 [10:46:27]line Внесено: 1256.00 [10:46:27]line СДАЧА: 0.00 [10:46:27]line НСП 1% : 11.11 [10:46:27]line НДС 12% : 133.38 [10:46:27]line Наличными: 1256.00 [10:46:27]line Безнал.: 0.00 [10:46:27]line Место: АЗС № 78 "Партнер Нефть" [10:46:27]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [10:46:27]line СНО: Общий режим [10:46:27]line Чек 63 20.10.2024 10:46 [10:46:27]line Смена: 114 ФФД: 1.0 [10:46:27]line ЗНМ: 0300000137 [10:46:27]line РНМ: 0000000000186857 [10:46:27]line Версия ККМ: v1.0 [10:46:27]line ФМ: 0000000002094219 [10:46:27]line ФД: 30281 [10:46:27]line ФПД: 199565331979989 [10:46:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T104634&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30281&fm=199565331979989&tin=02508201610067®Number=0000000000186857&sum=125600 [10:46:27]OFD Sender: Processing packet 30281 [packets to send 10, broken 9] [10:46:27]ProducePacketName [10:46:27]name=ofd_packets/00030281 [10:46:27]OFD Sender: To server: pG, [10:46:27]CommunicateWithHost lk.salyk.kg:30040 [10:46:27]ConnectInit lk.salyk.kg [10:46:27]written 0, free lines is 4095 [10:46:27]Connected sock=10 [10:46: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 15 01 00 00 D5 A3 0D 01 9E 6D 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 8E 3F 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 A4 EA 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 EA 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 57 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1A 34 00 00 00 00 07 04 06 00 A0 EA 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 8A DF 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 B5 80 EC B8 DE D5 10 2E 5B 37 81 BC B1 23 [10:46: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 76 02 47 00 17 D5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 49 76 00 00 F4 03 04 00 0E 8A 14 67 B6 04 01 00 00 83 EE 61 5F FB C9 A9 7C [10:46:27]CommunicateWithHost err = 0 [10:46:27]CheckOFDResponse [10:46:27]1017 (14) - 77093643461234 [10:46:27]1041 (16) - 0000000002094219 [10:46:27]1040 (4) - 30281 [10:46:27]1012 (4) - 20.10.2024 04:41 [10:46:27]1206 (1) - 0 [10:46:27]OFD Sender: Remove packet 30281 [10:46:27]ProducePacketName [10:46:27]name=ofd_packets/00030281 [10:46:27]NVStorageDeleteData [10:46:28]Write to MH i2c: 01 00 00 D9 73 4C [10:46:28]Write i2c OK [10:46:28]MH_I2C_Read... [10:46:28]Read from MH i2c: 01 [10:46:28]MH_I2C_Read... [10:46:28]Read from MH i2c: 01 07 00 [10:46:28]MH_I2C_Read... [10:46:28]Read from MH i2c: 01 07 00 D9 73 00 00 00 00 00 ED 0C 4C [10:46:28]RasterBufferAndPrint [10:46:28]line [10:46:28]line [10:46:28]line [10:46:28]line [10:46:28]line [10:46:28]written 0, free lines is 3315 [10:46:28]MH_Cut [10:46:28]Write to MH i2c: D1 01 00 E0 73 01 25 [10:46:28]Write i2c OK [10:46:28]MH_I2C_Read... [10:46:28]Read from MH i2c: D1 [10:46:28]MH_I2C_Read... [10:46:28]Read from MH i2c: D1 01 00 [10:46:28]MH_I2C_Read... [10:46:28]Read from MH i2c: D1 01 00 E0 73 00 24 [10:46:28]Write to MH i2c: 01 00 00 E1 73 54 [10:46:28]Write i2c OK [10:46:28]MH_I2C_Read... [10:46:28]OFD Sender: No OFD packet to send [10:46:28]*** Cut start [10:46:28]*** Partial cut [10:46:28]*** CUTSNS_PIN = 1 [10:46:28]*** CUTSNS_PIN = 0 [10:46:29]*** Brake cut motor [10:46:29]Read from MH i2c: 01 [10:46:29]MH_I2C_Read... [10:46:29]*** Stop cut motor [10:46:29]*** Cut end [10:46:29]Read from MH i2c: 01 07 00 [10:46:29]MH_I2C_Read... [10:46:29]Read from MH i2c: 01 07 00 E1 73 00 00 00 00 00 FF 0F 69 [10:46:29]process_action close_receipt done [10:46:29]requested_data is exist [10:46:29]produce_requested_data [10:46:29]requested_item fm.sn is exist - process it [10:46:29]wFMCommunicate request_size=4 [10:46:29]MH_SAM_APDU [10:46:29]CAPDU: 80 11 00 00 [10:46:29]Write to MH i2c: E2 08 00 E2 73 80 11 00 00 00 00 00 00 CF [10:46:29]Write i2c OK [10:46:29]MH_I2C_Read... [10:46:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:46:29]Read from MH i2c: E2 [10:46:29]MH_I2C_Read... [10:46:29]Read from MH i2c: E2 17 00 [10:46:29]MH_I2C_Read... [10:46:29]Read from MH i2c: E2 17 00 E2 73 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 1D [10:46:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [10:46:29]wFMCommunicate OK [10:46:29]requested_item fd.num is exist - process it [10:46:29]SAM_PROTO_GetFieldsCounters [10:46:29]wFMCommunicate request_size=4 [10:46:29]MH_SAM_APDU [10:46:29]CAPDU: 80 13 00 00 [10:46:29]Write to MH i2c: E2 08 00 E3 73 80 13 00 00 00 00 00 00 D2 [10:46:29]Write i2c OK [10:46:29]MH_I2C_Read... [10:46:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:46:29]Read from MH i2c: E2 [10:46:29]MH_I2C_Read... [10:46:29]Read from MH i2c: E2 62 00 [10:46:29]MH_I2C_Read... [10:46:29]Read from MH i2c: E2 62 00 E3 73 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 E6 [10:46: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 49 76 00 00 0E 04 04 00 72 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:46:29]wFMCommunicate OK [10:46:29]SAM_PROTO_GetFieldsCounters done [10:46:29]requested_item shift.num is exist - process it [10:46:29]requested_item shift.opened is exist - process it [10:46:29]req_shift_opened [10:46:29]FM_GetShiftState [10:46:29]SAM_PROTO_GetShiftState [10:46:29]wFMCommunicate request_size=4 [10:46:29]MH_SAM_APDU [10:46:29]CAPDU: 80 13 01 00 [10:46:29]Write to MH i2c: E2 08 00 E4 73 80 13 01 00 00 00 00 00 D4 [10:46:29]Write i2c OK [10:46:29]MH_I2C_Read... [10:46:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:46:29]Read from MH i2c: E2 [10:46:29]MH_I2C_Read... [10:46:29]Read from MH i2c: E2 0E 00 [10:46:29]MH_I2C_Read... [10:46:29]Read from MH i2c: E2 0E 00 E4 73 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 BA [10:46:29]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [10:46:29]wFMCommunicate OK [10:46:29]SAM_PROTO_GetShiftState done [10:46:29]FM_GetShiftState done [10:46:29]req_shift_opened done [10:46:29]requested_item shift.open_date is exist - process it [10:46:29]req_shift_open_date [10:46:29]req_shift_open_date done [10:46:29]produce_requested_data done [10:46:29]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30281,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [10:46:29]process_action_free close_receipt [10:46:29]json_value_free [10:46:29]json_value_free done [10:46:29]process_json_proto returns [10:46:29]Send response to host [10:46:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30281,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [10:46:29]free response buf [10:46:29]execute_script done [10:46:29]execute_script returns [10:46:29]free content buf [10:46:29]Sock 9.Close socket [10:46:29]Sock 9.Thread stoped [10:46:33]OFD Sender: No OFD packet to send [10:46:38]OFD Sender: No OFD packet to send [10:46:43]OFD Sender: No OFD packet to send [10:46:48]OFD Sender: No OFD packet to send [10:46:53]OFD Sender: No OFD packet to send [10:46:58]OFD Sender: No OFD packet to send [10:47:03]OFD Sender: No OFD packet to send [10:47:08]OFD Sender: No OFD packet to send [10:47:13]OFD Sender: No OFD packet to send [10:47:18]OFD Sender: No OFD packet to send [10:47:23]OFD Sender: No OFD packet to send [10:47:28]OFD Sender: No OFD packet to send [10:47:33]OFD Sender: No OFD packet to send [10:47:38]OFD Sender: No OFD packet to send [10:47:43]OFD Sender: No OFD packet to send [10:47:48]OFD Sender: No OFD packet to send [10:47:53]OFD Sender: No OFD packet to send [10:47:58]OFD Sender: No OFD packet to send [10:48:03]OFD Sender: No OFD packet to send [10:48:08]OFD Sender: No OFD packet to send [10:48:13]OFD Sender: No OFD packet to send [10:48:18]OFD Sender: No OFD packet to send [10:48:23]OFD Sender: No OFD packet to send [10:48:28]OFD Sender: No OFD packet to send [10:48:33]OFD Sender: No OFD packet to send [10:48:38]OFD Sender: No OFD packet to send [10:48:43]OFD Sender: No OFD packet to send [10:48:48]OFD Sender: No OFD packet to send [10:48:53]OFD Sender: No OFD packet to send [10:48:58]OFD Sender: No OFD packet to send [10:49:03]OFD Sender: No OFD packet to send [10:49:08]OFD Sender: No OFD packet to send [10:49:09]accept exits with 7 [10:49:09]New connection [10:49:09]New thread 3067514212 created [10:49:09]Thread 3067370852 joined [10:49:09]Waiting for new connection... [10:49:09] Sock 7.Parse request [10:49:09]Sock 7.Check first char [10:49:09]Sock 7.First char is OK [10:49:09]request: POST /json_proto HTTP/1.0 [10:49:09]Method: POST [10:49:09]URL: /json_proto [10:49:09]Method is POST - this is cgi request [10:49:09]url: /json_proto [10:49:09]query_string will be loaded in cgi processing [10:49:09]execute_cgi json_proto POST (null) [10:49:09]execute_cgi path=json_proto method=POST [10:49:09]POST find Content-Length [10:49:09]Host: 172.17.51.3:8080 [10:49:09]Content-Length: 799 [10:49:09]Content-Type: application/json [10:49:09] [10:49:09]POST finish read [10:49:09]Found Content-Length = 799 [10:49:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342674", "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" : 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\u000A4865621", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:49:09]execute_script... [10:49:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342674", "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" : 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\u000A4865621", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:49:09]POST & json_proto [10:49:09]process_json_proto [10:49:09]json parsed OK: [10:49:09]protocol is kg_v1.0 [10:49:09]action value=close_receipt [10:49:09]process_action close_receipt [10:49:09]cmd_close_receipt [10:49:09]MH_GetDate [10:49:09]Write to MH i2c: F0 00 00 E5 73 47 [10:49:09]Write i2c OK [10:49:09]MH_I2C_Read... [10:49:09]Read from MH i2c: F0 [10:49:09]MH_I2C_Read... [10:49:09]Read from MH i2c: F0 09 00 [10:49:09]MH_I2C_Read... [10:49:09]Read from MH i2c: F0 09 00 E5 73 00 2E E0 14 67 04 C1 95 66 99 [10:49:09]GetLastDocTimeStamp 1729421194 [10:49:09]current date 1729421358 [10:49:09]FM_GetShiftState [10:49:09]SAM_PROTO_GetShiftState [10:49:09]wFMCommunicate request_size=4 [10:49:09]MH_SAM_APDU [10:49:09]CAPDU: 80 13 01 00 [10:49:09]Write to MH i2c: E2 08 00 E6 73 80 13 01 00 00 00 00 00 D6 [10:49:09]Write i2c OK [10:49:09]MH_I2C_Read... [10:49:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:49:09]Read from MH i2c: E2 [10:49:09]MH_I2C_Read... [10:49:09]Read from MH i2c: E2 0E 00 [10:49:09]MH_I2C_Read... [10:49:09]Read from MH i2c: E2 0E 00 E6 73 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 BC [10:49:09]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [10:49:09]wFMCommunicate OK [10:49:09]SAM_PROTO_GetShiftState done [10:49:09]FM_GetShiftState done [10:49:09]opened in 1729384718 [10:49:09]opened+sec_in_day 1729471118 [10:49:09]quantity*price = 0 [10:49:09]sum+1 = 1 [10:49:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 64 20.10.2024 10:49 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Талоны: Топливные Талоны 4865621 ФМ: 0000000002094219 ФД: 30282 ФПД: 83710090093370 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T104918&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30282&fm=83710090093370&tin=02508201610067®Number=0000000000186857&sum=0 [10:49:10]StoreToDocumentArchive [10:49:10]shift 114 fd 30282 [10:49:10]save to /storage/0114/doc_00030282 [10:49:10]save last doc name /storage/0114/doc_00030282 to /storage/kkm_last_doc_name [10:49:10]save OK [10:49:10]Clear old archive folders... [10:49:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:49:10]tlvbuf is 00AB1820 [10:49:10]SAM_PROTO_ClearQueue [10:49:10]wFMCommunicate request_size=4 [10:49:10]MH_SAM_APDU [10:49:10]CAPDU: 80 09 00 00 [10:49:10]Write to MH i2c: E2 08 00 F3 73 80 09 00 00 00 00 00 00 D8 [10:49:10]Write i2c OK [10:49:10]MH_I2C_Read... [10:49:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:49:10]Read from MH i2c: E2 [10:49:10]MH_I2C_Read... [10:49:10]Read from MH i2c: E2 03 00 [10:49:10]MH_I2C_Read... [10:49:10]Read from MH i2c: E2 03 00 F3 73 00 90 00 DA [10:49:10]RAPDU: 90 00 [10:49:10]wFMCommunicate OK [10:49:10]SAM_PROTO_ClearQueue done [10:49:10]KKMCreateOFDPacket [10:49:10]OFDProtocolAddRootSTLVToBuf [10:49:10]FM_MakeSignedData [10:49:10]FM_MakeSignedData [10:49:10]SAM_PROTO_SignData [10:49:10]wFMCommunicate request_size=4 [10:49:10]MH_SAM_APDU [10:49:10]CAPDU: 80 0D 01 02 [10:49:10]Write to MH i2c: E2 08 00 F4 73 80 0D 01 02 00 00 00 00 E0 [10:49:10]Write i2c OK [10:49:10]MH_I2C_Read... [10:49:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:49:10]Read from MH i2c: E2 [10:49:10]MH_I2C_Read... [10:49:10]Read from MH i2c: E2 03 00 [10:49:10]MH_I2C_Read... [10:49:10]Read from MH i2c: E2 03 00 F4 73 00 90 00 DB [10:49:10]RAPDU: 90 00 [10:49:10]wFMCommunicate OK [10:49:10]wFMCommunicate request_size=255 [10:49:10]MH_SAM_APDU [10:49: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 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 40 00 00 00 F4 03 04 00 2E E0 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 4C [10:49:10]Write to MH i2c: E2 02 01 F5 73 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 40 00 00 00 F4 03 04 00 2E E0 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 4C 00 00 CE [10:49:10]Write i2c OK [10:49:10]MH_I2C_Read... [10:49:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:49:10]Read from MH i2c: E2 [10:49:10]MH_I2C_Read... [10:49:10]Read from MH i2c: E2 03 00 [10:49:10]MH_I2C_Read... [10:49:10]Read from MH i2c: E2 03 00 F5 73 00 90 00 DC [10:49:10]RAPDU: 90 00 [10:49:10]wFMCommunicate OK [10:49:10]wFMCommunicate request_size=10 [10:49:10]MH_SAM_APDU [10:49:10]CAPDU: 80 0D 02 02 05 22 46 2F 23 3A [10:49:10]Write to MH i2c: E2 0D 00 F6 73 80 0D 02 02 05 00 22 46 2F 23 3A 00 00 E1 [10:49:10]Write i2c OK [10:49:10]MH_I2C_Read... [10:49:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:49:10]Read from MH i2c: E2 [10:49:10]MH_I2C_Read... [10:49:10]Read from MH i2c: E2 03 00 [10:49:10]MH_I2C_Read... [10:49:10]Read from MH i2c: E2 03 00 F6 73 00 90 00 DD [10:49:10]RAPDU: 90 00 [10:49:10]wFMCommunicate OK [10:49:10]wFMCommunicate request_size=4 [10:49:10]MH_SAM_APDU [10:49:10]CAPDU: 80 0D 03 02 [10:49:10]Write to MH i2c: E2 08 00 F7 73 80 0D 03 02 00 00 00 00 E5 [10:49:10]Write i2c OK [10:49:10]MH_I2C_Read... [10:49:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:49:10]Read from MH i2c: E2 [10:49:10]MH_I2C_Read... [10:49:10]Read from MH i2c: E2 0B 00 [10:49:10]MH_I2C_Read... [10:49:10]Read from MH i2c: E2 0B 00 F7 73 00 92 CF 24 86 26 AB 6B 83 90 00 B0 [10:49:10]RAPDU: 92 CF 24 86 26 AB 6B 83 90 00 [10:49:10]wFMCommunicate OK [10:49:10]SAM_PROTO_SignData done [10:49:10]FM_MakeSignedData done [10:49:10]CreateOFDProtocolMessage [10:49:10]wFMCommunicate request_size=4 [10:49:10]MH_SAM_APDU [10:49:10]CAPDU: 80 11 00 00 [10:49:10]Write to MH i2c: E2 08 00 F8 73 80 11 00 00 00 00 00 00 E5 [10:49:10]Write i2c OK [10:49:10]MH_I2C_Read... [10:49:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:49:10]Read from MH i2c: E2 [10:49:10]MH_I2C_Read... [10:49:10]Read from MH i2c: E2 17 00 [10:49:10]MH_I2C_Read... [10:49:10]Read from MH i2c: E2 17 00 F8 73 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 33 [10:49:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [10:49:10]wFMCommunicate OK [10:49:10]CreateOFDProtocolMessage done [10:49:10]OFDSenderStorePacket 30282 [10:49:10]StoreOFDPacket docnum=30282 [10:49: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 E8 81 07 01 9C 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 40 00 00 00 F4 03 04 00 2E E0 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 4C 22 46 2F 23 3A 92 CF 24 86 26 AB 6B 83 [10:49:10]CheckFolder [10:49:10]dirname=/storage/ofd_packets [10:49:10]CheckFolder done [10:49:10]ProducePacketName [10:49:10]name=ofd_packets/00030282 [10:49:10]NVStorageSaveData ofd_packets/00030282 [10:49:10]File name is /storage/ofd_packets/00030282 [10:49:10]Write 301 bytes [10:49:10]NVStorageSaveData done [10:49:10]OFDSenderStorePacket done [10:49:10]KKMCreateOFDPacket done [10:49:10]NVStorageSaveData kkm_last_timestamp [10:49:10]File name is /storage/kkm_last_timestamp [10:49:10]Write 4 bytes [10:49:10]NVStorageSaveData done [10:49:10]ExternCall_PrintAddStr [10:49:10]wPrintStart [10:49:10]Write to MH i2c: 01 00 00 F9 73 6C [10:49:10]Write i2c OK [10:49:10]MH_I2C_Read... [10:49:10]Read from MH i2c: 01 [10:49:10]MH_I2C_Read... [10:49:10]Read from MH i2c: 01 07 00 [10:49:10]MH_I2C_Read... [10:49:10]Read from MH i2c: 01 07 00 F9 73 00 00 00 00 00 FF 0F 81 [10:49:10]RasterBufferAndPrint [10:49:10]line Счет N : (1)342674 [10:49:10]line ИНН: 02508201610067 [10:49:10]line Контрольно-Кассовый Чек [10:49:10]line ПРОДАЖА [10:49:10]line ТРК (МРК, ГНК) : 53 [10:49:10]line Товар: 2710124130 [10:49:10]line Аи-92-К-2 [10:49:10]line 5.000 * 0.00 [10:49:10]line = 0.00 [10:49:10]line НДС 12% НСП 1% [10:49:10]line > о реализуемом товаре [10:49:10]line ИТОГО: 0.00 [10:49:10]line НСП 1% : 0.00 [10:49:10]line НДС 12% : 0.00 [10:49:10]line Наличными: 0.00 [10:49:10]line Безнал.: 0.00 [10:49:10]line Место: АЗС № 78 "Партнер Нефть" [10:49:10]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [10:49:10]line СНО: Общий режим [10:49:10]line Чек 64 20.10.2024 10:49 [10:49:10]line Смена: 114 ФФД: 1.0 [10:49:10]line ЗНМ: 0300000137 [10:49:10]line РНМ: 0000000000186857 [10:49:10]line Версия ККМ: v1.0 [10:49:10]line Талоны: Топливные Талоны [10:49:11]line 4865621 [10:49:11]line ФМ: 0000000002094219 [10:49:11]line ФД: 30282 [10:49:11]line ФПД: 83710090093370 [10:49:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T104918&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30282&fm=83710090093370&tin=02508201610067®Number=0000000000186857&sum=0 [10:49:11]OFD Sender: Processing packet 30282 [packets to send 10, broken 9] [10:49:11]ProducePacketName [10:49:11]name=ofd_packets/00030282 [10:49:11]OFD Sender: To server: pG, [10:49:11]CommunicateWithHost lk.salyk.kg:30040 [10:49:11]ConnectInit lk.salyk.kg [10:49:11]written 0, free lines is 4095 [10:49:11]Connected sock=10 [10:49: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 E8 81 07 01 9C 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 40 00 00 00 F4 03 04 00 2E E0 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 4C 22 46 2F 23 3A 92 CF 24 86 26 AB 6B 83 [10:49: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 66 48 47 00 83 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 4A 76 00 00 F4 03 04 00 B2 8A 14 67 B6 04 01 00 00 3D 77 94 6B 41 B1 81 6D [10:49:11]CommunicateWithHost err = 0 [10:49:11]CheckOFDResponse [10:49:11]1017 (14) - 77093643461234 [10:49:11]1041 (16) - 0000000002094219 [10:49:11]1040 (4) - 30282 [10:49:11]1012 (4) - 20.10.2024 04:44 [10:49:11]1206 (1) - 0 [10:49:11]OFD Sender: Remove packet 30282 [10:49:11]ProducePacketName [10:49:11]name=ofd_packets/00030282 [10:49:11]NVStorageDeleteData [10:49:11]Write to MH i2c: 01 00 00 23 74 97 [10:49:11]Write i2c OK [10:49:11]MH_I2C_Read... [10:49:11]Read from MH i2c: 01 [10:49:11]MH_I2C_Read... [10:49:11]Read from MH i2c: 01 07 00 [10:49:11]MH_I2C_Read... [10:49:11]Read from MH i2c: 01 07 00 23 74 00 00 00 00 00 FB 0C A5 [10:49:11]RasterBufferAndPrint [10:49:11]line [10:49:11]line [10:49:11]line [10:49:11]line [10:49:11]line [10:49:11]written 0, free lines is 3329 [10:49:11]MH_Cut [10:49:11]Write to MH i2c: D1 01 00 2A 74 01 70 [10:49:11]Write i2c OK [10:49:11]MH_I2C_Read... [10:49:11]Read from MH i2c: D1 [10:49:11]MH_I2C_Read... [10:49:11]Read from MH i2c: D1 01 00 [10:49:11]MH_I2C_Read... [10:49:11]Read from MH i2c: D1 01 00 2A 74 00 6F [10:49:11]Write to MH i2c: 01 00 00 2B 74 9F [10:49:11]Write i2c OK [10:49:11]MH_I2C_Read... [10:49:11]OFD Sender: No OFD packet to send [10:49:12]*** Cut start [10:49:12]*** Partial cut [10:49:12]*** CUTSNS_PIN = 1 [10:49:12]*** CUTSNS_PIN = 0 [10:49:12]*** Brake cut motor [10:49:12]Read from MH i2c: 01 [10:49:12]MH_I2C_Read... [10:49:12]*** Stop cut motor [10:49:12]*** Cut end [10:49:12]Read from MH i2c: 01 07 00 [10:49:12]MH_I2C_Read... [10:49:12]Read from MH i2c: 01 07 00 2B 74 00 00 00 00 00 FF 0F B4 [10:49:12]process_action close_receipt done [10:49:12]requested_data is exist [10:49:12]produce_requested_data [10:49:12]requested_item fm.sn is exist - process it [10:49:12]wFMCommunicate request_size=4 [10:49:12]MH_SAM_APDU [10:49:12]CAPDU: 80 11 00 00 [10:49:12]Write to MH i2c: E2 08 00 2C 74 80 11 00 00 00 00 00 00 1A [10:49:12]Write i2c OK [10:49:12]MH_I2C_Read... [10:49:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:49:12]Read from MH i2c: E2 [10:49:12]MH_I2C_Read... [10:49:12]Read from MH i2c: E2 17 00 [10:49:12]MH_I2C_Read... [10:49:12]Read from MH i2c: E2 17 00 2C 74 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 68 [10:49:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [10:49:12]wFMCommunicate OK [10:49:12]requested_item fd.num is exist - process it [10:49:12]SAM_PROTO_GetFieldsCounters [10:49:12]wFMCommunicate request_size=4 [10:49:12]MH_SAM_APDU [10:49:12]CAPDU: 80 13 00 00 [10:49:12]Write to MH i2c: E2 08 00 2D 74 80 13 00 00 00 00 00 00 1D [10:49:12]Write i2c OK [10:49:12]MH_I2C_Read... [10:49:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:49:13]Read from MH i2c: E2 [10:49:13]MH_I2C_Read... [10:49:13]Read from MH i2c: E2 62 00 [10:49:13]MH_I2C_Read... [10:49:13]Read from MH i2c: E2 62 00 2D 74 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 35 [10:49: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 4A 76 00 00 0E 04 04 00 72 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:49:13]wFMCommunicate OK [10:49:13]SAM_PROTO_GetFieldsCounters done [10:49:13]requested_item shift.num is exist - process it [10:49:13]requested_item shift.opened is exist - process it [10:49:13]req_shift_opened [10:49:13]FM_GetShiftState [10:49:13]SAM_PROTO_GetShiftState [10:49:13]wFMCommunicate request_size=4 [10:49:13]MH_SAM_APDU [10:49:13]CAPDU: 80 13 01 00 [10:49:13]Write to MH i2c: E2 08 00 2E 74 80 13 01 00 00 00 00 00 1F [10:49:13]Write i2c OK [10:49:13]MH_I2C_Read... [10:49:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:49:13]Read from MH i2c: E2 [10:49:13]MH_I2C_Read... [10:49:13]Read from MH i2c: E2 0E 00 [10:49:13]MH_I2C_Read... [10:49:13]Read from MH i2c: E2 0E 00 2E 74 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 05 [10:49:13]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [10:49:13]wFMCommunicate OK [10:49:13]SAM_PROTO_GetShiftState done [10:49:13]FM_GetShiftState done [10:49:13]req_shift_opened done [10:49:13]requested_item shift.open_date is exist - process it [10:49:13]req_shift_open_date [10:49:13]req_shift_open_date done [10:49:13]produce_requested_data done [10:49:13]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30282,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [10:49:13]process_action_free close_receipt [10:49:13]json_value_free [10:49:13]json_value_free done [10:49:13]process_json_proto returns [10:49:13]Send response to host [10:49:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30282,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [10:49:13]free response buf [10:49:13]execute_script done [10:49:13]execute_script returns [10:49:13]free content buf [10:49:13]Sock 7.Close socket [10:49:13]Sock 7.Thread stoped [10:49:16]OFD Sender: No OFD packet to send [10:49:21]OFD Sender: No OFD packet to send [10:49:26]OFD Sender: No OFD packet to send [10:49:31]OFD Sender: No OFD packet to send [10:49:37]OFD Sender: No OFD packet to send [10:49:42]OFD Sender: No OFD packet to send [10:49:47]OFD Sender: No OFD packet to send [10:49:52]OFD Sender: No OFD packet to send [10:49:57]OFD Sender: No OFD packet to send [10:50:02]OFD Sender: No OFD packet to send [10:50:07]OFD Sender: No OFD packet to send [10:50:12]OFD Sender: No OFD packet to send [10:50:17]OFD Sender: No OFD packet to send [10:50:22]OFD Sender: No OFD packet to send [10:50:27]OFD Sender: No OFD packet to send [10:50:32]OFD Sender: No OFD packet to send [10:50:37]OFD Sender: No OFD packet to send [10:50:42]OFD Sender: No OFD packet to send [10:50:47]OFD Sender: No OFD packet to send [10:50:52]OFD Sender: No OFD packet to send [10:50:57]OFD Sender: No OFD packet to send [10:51:02]OFD Sender: No OFD packet to send [10:51:07]OFD Sender: No OFD packet to send [10:51:12]OFD Sender: No OFD packet to send [10:51:17]OFD Sender: No OFD packet to send [10:51:21]accept exits with 9 [10:51:21]New connection [10:51:21]New thread 3067370852 created [10:51:21]Thread 3067514212 joined [10:51:21]Waiting for new connection... [10:51:21] Sock 9.Parse request [10:51:21]Sock 9.Check first char [10:51:21]Sock 9.First char is OK [10:51:21]request: POST /json_proto HTTP/1.0 [10:51:21]Method: POST [10:51:21]URL: /json_proto [10:51:21]Method is POST - this is cgi request [10:51:21]url: /json_proto [10:51:21]query_string will be loaded in cgi processing [10:51:21]execute_cgi json_proto POST (null) [10:51:21]execute_cgi path=json_proto method=POST [10:51:21]POST find Content-Length [10:51:21]Host: 172.17.51.3:8080 [10:51:21]Content-Length: 674 [10:51:21]Content-Type: application/json [10:51:21] [10:51:21]POST finish read [10:51:21]Found Content-Length = 674 [10:51:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342675", "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.090, "sum" : 72.92, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 72.00, "payments": [ { "type": 0, "sum" : 72.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:51:21]execute_script... [10: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)342675", "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.090, "sum" : 72.92, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 72.00, "payments": [ { "type": 0, "sum" : 72.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:51:21]POST & json_proto [10:51:21]process_json_proto [10:51:21]json parsed OK: [10:51:21]protocol is kg_v1.0 [10:51:21]action value=close_receipt [10:51:21]process_action close_receipt [10:51:21]cmd_close_receipt [10:51:21]MH_GetDate [10:51:21]Write to MH i2c: F0 00 00 2F 74 92 [10:51:21]Write i2c OK [10:51:21]MH_I2C_Read... [10:51:21]Read from MH i2c: F0 [10:51:21]MH_I2C_Read... [10:51:21]Read from MH i2c: F0 09 00 [10:51:21]MH_I2C_Read... [10:51:21]Read from MH i2c: F0 09 00 2F 74 00 B1 E0 14 67 04 C1 95 66 67 [10:51:21]GetLastDocTimeStamp 1729421358 [10:51:21]current date 1729421489 [10:51:21]FM_GetShiftState [10:51:21]SAM_PROTO_GetShiftState [10:51:21]wFMCommunicate request_size=4 [10:51:21]MH_SAM_APDU [10:51:21]CAPDU: 80 13 01 00 [10:51:21]Write to MH i2c: E2 08 00 30 74 80 13 01 00 00 00 00 00 21 [10:51:21]Write i2c OK [10:51:21]MH_I2C_Read... [10:51:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:51:21]Read from MH i2c: E2 [10:51:21]MH_I2C_Read... [10:51:21]Read from MH i2c: E2 0E 00 [10:51:21]MH_I2C_Read... [10:51:21]Read from MH i2c: E2 0E 00 30 74 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 07 [10:51:21]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [10:51:21]wFMCommunicate OK [10:51:21]SAM_PROTO_GetShiftState done [10:51:21]FM_GetShiftState done [10:51:21]opened in 1729384718 [10:51:21]opened+sec_in_day 1729471118 [10:51:21]quantity*price = 7292 [10:51:21]sum+1 = 7293 [10:51:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.92 ИТОГО: 72.00 Внесено: 100.00 СДАЧА: 28.00 НСП 1% : 0.64 НДС 12% : 7.74 Наличными: 72.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 65 20.10.2024 10:51 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30283 ФПД: 248765810113329 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T105130&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30283&fm=248765810113329&tin=02508201610067®Number=0000000000186857&sum=7200 [10:51:22]StoreToDocumentArchive [10:51:22]shift 114 fd 30283 [10:51:22]save to /storage/0114/doc_00030283 [10:51:22]save last doc name /storage/0114/doc_00030283 to /storage/kkm_last_doc_name [10:51:22]save OK [10:51:22]Clear old archive folders... [10:51:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:51:22]tlvbuf is 00C6E2A0 [10:51:22]SAM_PROTO_ClearQueue [10:51:22]wFMCommunicate request_size=4 [10:51:22]MH_SAM_APDU [10:51:22]CAPDU: 80 09 00 00 [10:51:22]Write to MH i2c: E2 08 00 3D 74 80 09 00 00 00 00 00 00 23 [10:51:22]Write i2c OK [10:51:22]MH_I2C_Read... [10:51:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:51:22]Read from MH i2c: E2 [10:51:22]MH_I2C_Read... [10:51:22]Read from MH i2c: E2 03 00 [10:51:22]MH_I2C_Read... [10:51:22]Read from MH i2c: E2 03 00 3D 74 00 90 00 25 [10:51:22]RAPDU: 90 00 [10:51:22]wFMCommunicate OK [10:51:22]SAM_PROTO_ClearQueue done [10:51:22]KKMCreateOFDPacket [10:51:22]OFDProtocolAddRootSTLVToBuf [10:51:22]FM_MakeSignedData [10:51:22]FM_MakeSignedData [10:51:22]SAM_PROTO_SignData [10:51:22]wFMCommunicate request_size=4 [10:51:22]MH_SAM_APDU [10:51:22]CAPDU: 80 0D 01 02 [10:51:22]Write to MH i2c: E2 08 00 3E 74 80 0D 01 02 00 00 00 00 2B [10:51:22]Write i2c OK [10:51:22]MH_I2C_Read... [10:51:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:51:22]Read from MH i2c: E2 [10:51:22]MH_I2C_Read... [10:51:22]Read from MH i2c: E2 03 00 [10:51:22]MH_I2C_Read... [10:51:22]Read from MH i2c: E2 03 00 3E 74 00 90 00 26 [10:51:22]RAPDU: 90 00 [10:51:22]wFMCommunicate OK [10:51:22]wFMCommunicate request_size=255 [10:51:22]MH_SAM_APDU [10:51: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 42 04 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 7C 1C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 1C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 06 03 00 00 00 00 07 04 06 00 20 1C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 B2 E0 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 E2 [10:51:22]Write to MH i2c: E2 02 01 3F 74 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 42 04 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 7C 1C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 1C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 06 03 00 00 00 00 07 04 06 00 20 1C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 B2 E0 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 E2 00 00 75 [10:51:22]Write i2c OK [10:51:22]MH_I2C_Read... [10:51:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:51:22]Read from MH i2c: E2 [10:51:22]MH_I2C_Read... [10:51:22]Read from MH i2c: E2 03 00 [10:51:22]MH_I2C_Read... [10:51:22]Read from MH i2c: E2 03 00 3F 74 00 90 00 27 [10:51:22]RAPDU: 90 00 [10:51:22]wFMCommunicate OK [10:51:22]wFMCommunicate request_size=10 [10:51:22]MH_SAM_APDU [10:51:22]CAPDU: 80 0D 02 02 05 40 4D BE 7B 31 [10:51:22]Write to MH i2c: E2 0D 00 40 74 80 0D 02 02 05 00 40 4D BE 7B 31 00 00 2F [10:51:22]Write i2c OK [10:51:22]MH_I2C_Read... [10:51:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:51:22]Read from MH i2c: E2 [10:51:22]MH_I2C_Read... [10:51:22]Read from MH i2c: E2 03 00 [10:51:22]MH_I2C_Read... [10:51:22]Read from MH i2c: E2 03 00 40 74 00 90 00 28 [10:51:22]RAPDU: 90 00 [10:51:22]wFMCommunicate OK [10:51:22]wFMCommunicate request_size=4 [10:51:22]MH_SAM_APDU [10:51:22]CAPDU: 80 0D 03 02 [10:51:22]Write to MH i2c: E2 08 00 41 74 80 0D 03 02 00 00 00 00 30 [10:51:22]Write i2c OK [10:51:22]MH_I2C_Read... [10:51:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:51:22]Read from MH i2c: E2 [10:51:22]MH_I2C_Read... [10:51:22]Read from MH i2c: E2 0B 00 [10:51:22]MH_I2C_Read... [10:51:22]Read from MH i2c: E2 0B 00 41 74 00 B4 4E B1 5E 47 40 F4 02 90 00 BF [10:51:22]RAPDU: B4 4E B1 5E 47 40 F4 02 90 00 [10:51:22]wFMCommunicate OK [10:51:22]SAM_PROTO_SignData done [10:51:22]FM_MakeSignedData done [10:51:22]CreateOFDProtocolMessage [10:51:22]wFMCommunicate request_size=4 [10:51:22]MH_SAM_APDU [10:51:22]CAPDU: 80 11 00 00 [10:51:22]Write to MH i2c: E2 08 00 42 74 80 11 00 00 00 00 00 00 30 [10:51:22]Write i2c OK [10:51:22]MH_I2C_Read... [10:51:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:51:22]Read from MH i2c: E2 [10:51:22]MH_I2C_Read... [10:51:22]Read from MH i2c: E2 17 00 [10:51:22]MH_I2C_Read... [10:51:22]Read from MH i2c: E2 17 00 42 74 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 7E [10:51: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:51:22]wFMCommunicate OK [10:51:22]CreateOFDProtocolMessage done [10:51:22]OFDSenderStorePacket 30283 [10:51:22]StoreOFDPacket docnum=30283 [10:51: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 AD B5 07 01 92 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 42 04 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 7C 1C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 1C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 06 03 00 00 00 00 07 04 06 00 20 1C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 B2 E0 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 E2 40 4D BE 7B 31 B4 4E B1 5E 47 40 F4 02 [10:51:22]CheckFolder [10:51:22]dirname=/storage/ofd_packets [10:51:22]CheckFolder done [10:51:22]ProducePacketName [10:51:22]name=ofd_packets/00030283 [10:51:22]NVStorageSaveData ofd_packets/00030283 [10:51:22]File name is /storage/ofd_packets/00030283 [10:51:22]Write 301 bytes [10:51:22]NVStorageSaveData done [10:51:22]OFDSenderStorePacket done [10:51:22]KKMCreateOFDPacket done [10:51:22]NVStorageSaveData kkm_last_timestamp [10:51:22]File name is /storage/kkm_last_timestamp [10:51:22]Write 4 bytes [10:51:22]NVStorageSaveData done [10:51:22]ExternCall_PrintAddStr [10:51:22]wPrintStart [10:51:22]Write to MH i2c: 01 00 00 43 74 B7 [10:51:22]Write i2c OK [10:51:22]MH_I2C_Read... [10:51:22]Read from MH i2c: 01 [10:51:22]MH_I2C_Read... [10:51:22]Read from MH i2c: 01 07 00 [10:51:22]MH_I2C_Read... [10:51:22]Read from MH i2c: 01 07 00 43 74 00 00 00 00 00 FF 0F CC [10:51:22]RasterBufferAndPrint [10:51:22]line Счет N : (1)342675 [10:51:22]line ИНН: 02508201610067 [10:51:22]line Контрольно-Кассовый Чек [10:51:22]line ПРОДАЖА [10:51:22]line ТРК (МРК, ГНК) : 63 [10:51:22]line Товар: 2710124130 [10:51:22]line Аи-92-К-2 [10:51:22]line 1.090 * 66.90 [10:51:22]line = 72.92 [10:51:22]line НДС 12% НСП 1% [10:51:22]line > о реализуемом товаре [10:51:22]line ОКРУГЛЕНИЕ: -0.92 [10:51:22]line ИТОГО: 72.00 [10:51:22]line Внесено: 100.00 [10:51:22]line СДАЧА: 28.00 [10:51:22]line НСП 1% : 0.64 [10:51:22]line НДС 12% : 7.74 [10:51:22]line Наличными: 72.00 [10:51:22]line Безнал.: 0.00 [10:51:22]line Место: АЗС № 78 "Партнер Нефть" [10:51:22]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [10:51:22]line СНО: Общий режим [10:51:22]line Чек 65 20.10.2024 10:51 [10:51:22]line Смена: 114 ФФД: 1.0 [10:51:22]line ЗНМ: 0300000137 [10:51:22]line РНМ: 0000000000186857 [10:51:22]line Версия ККМ: v1.0 [10:51:22]line ФМ: 0000000002094219 [10:51:22]line ФД: 30283 [10:51:22]line ФПД: 248765810113329 [10:51:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T105130&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30283&fm=248765810113329&tin=02508201610067®Number=0000000000186857&sum=7200 [10:51:23]OFD Sender: Processing packet 30283 [packets to send 10, broken 9] [10:51:23]ProducePacketName [10:51:23]name=ofd_packets/00030283 [10:51:23]OFD Sender: To server: pG, [10:51:23]CommunicateWithHost lk.salyk.kg:30040 [10:51:23]ConnectInit lk.salyk.kg [10:51:23]written 0, free lines is 4095 [10:51:23]Connected sock=10 [10: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 0F 01 00 00 AD B5 07 01 92 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 42 04 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 7C 1C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 1C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 06 03 00 00 00 00 07 04 06 00 20 1C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 B2 E0 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 E2 40 4D BE 7B 31 B4 4E B1 5E 47 40 F4 02 [10: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 D9 6E 47 00 61 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 4B 76 00 00 F4 03 04 00 36 8B 14 67 B6 04 01 00 00 43 97 8B 07 63 8B 8C 4D [10:51:23]CommunicateWithHost err = 0 [10:51:23]CheckOFDResponse [10:51:23]1017 (14) - 77093643461234 [10:51:23]1041 (16) - 0000000002094219 [10:51:23]1040 (4) - 30283 [10:51:23]1012 (4) - 20.10.2024 04:46 [10:51:23]1206 (1) - 0 [10:51:23]OFD Sender: Remove packet 30283 [10:51:23]ProducePacketName [10:51:23]name=ofd_packets/00030283 [10:51:23]NVStorageDeleteData [10:51:23]Write to MH i2c: 01 00 00 6E 74 E2 [10:51:23]Write i2c OK [10:51:23]MH_I2C_Read... [10:51:23]Read from MH i2c: 01 [10:51:23]MH_I2C_Read... [10:51:23]Read from MH i2c: 01 07 00 [10:51:23]MH_I2C_Read... [10:51:23]Read from MH i2c: 01 07 00 6E 74 00 00 00 00 00 ED 0C E2 [10:51:23]RasterBufferAndPrint [10:51:23]line [10:51:23]line [10:51:23]line [10:51:23]line [10:51:23]line [10:51:23]written 0, free lines is 3315 [10:51:23]MH_Cut [10:51:23]Write to MH i2c: D1 01 00 75 74 01 BB [10:51:23]Write i2c OK [10:51:23]MH_I2C_Read... [10:51:23]Read from MH i2c: D1 [10:51:23]MH_I2C_Read... [10:51:23]Read from MH i2c: D1 01 00 [10:51:23]MH_I2C_Read... [10:51:23]Read from MH i2c: D1 01 00 75 74 00 BA [10:51:23]Write to MH i2c: 01 00 00 76 74 EA [10:51:23]Write i2c OK [10:51:23]MH_I2C_Read... [10:51:23]OFD Sender: No OFD packet to send [10:51:24]*** Cut start [10:51:24]*** Partial cut [10:51:24]*** CUTSNS_PIN = 1 [10:51:24]*** CUTSNS_PIN = 0 [10:51:24]*** Brake cut motor [10:51:24]Read from MH i2c: 01 [10:51:24]MH_I2C_Read... [10:51:24]*** Stop cut motor [10:51:24]*** Cut end [10:51:24]Read from MH i2c: 01 07 00 [10:51:24]MH_I2C_Read... [10:51:24]Read from MH i2c: 01 07 00 76 74 00 00 00 00 00 FF 0F FF [10:51:24]process_action close_receipt done [10:51:24]requested_data is exist [10:51:24]produce_requested_data [10:51:24]requested_item fm.sn is exist - process it [10:51:24]wFMCommunicate request_size=4 [10:51:24]MH_SAM_APDU [10:51:24]CAPDU: 80 11 00 00 [10:51:24]Write to MH i2c: E2 08 00 77 74 80 11 00 00 00 00 00 00 65 [10:51:24]Write i2c OK [10:51:24]MH_I2C_Read... [10:51:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:51:24]Read from MH i2c: E2 [10:51:24]MH_I2C_Read... [10:51:24]Read from MH i2c: E2 17 00 [10:51:24]MH_I2C_Read... [10:51:24]Read from MH i2c: E2 17 00 77 74 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 B3 [10:51: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:51:24]wFMCommunicate OK [10:51:24]requested_item fd.num is exist - process it [10:51:24]SAM_PROTO_GetFieldsCounters [10:51:24]wFMCommunicate request_size=4 [10:51:24]MH_SAM_APDU [10:51:24]CAPDU: 80 13 00 00 [10:51:24]Write to MH i2c: E2 08 00 78 74 80 13 00 00 00 00 00 00 68 [10:51:24]Write i2c OK [10:51:24]MH_I2C_Read... [10:51:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:51:25]Read from MH i2c: E2 [10:51:25]MH_I2C_Read... [10:51:25]Read from MH i2c: E2 62 00 [10:51:25]MH_I2C_Read... [10:51:25]Read from MH i2c: E2 62 00 78 74 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 84 [10: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 4B 76 00 00 0E 04 04 00 72 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:51:25]wFMCommunicate OK [10:51:25]SAM_PROTO_GetFieldsCounters done [10:51:25]requested_item shift.num is exist - process it [10:51:25]requested_item shift.opened is exist - process it [10:51:25]req_shift_opened [10:51:25]FM_GetShiftState [10:51:25]SAM_PROTO_GetShiftState [10:51:25]wFMCommunicate request_size=4 [10:51:25]MH_SAM_APDU [10:51:25]CAPDU: 80 13 01 00 [10:51:25]Write to MH i2c: E2 08 00 79 74 80 13 01 00 00 00 00 00 6A [10:51:25]Write i2c OK [10:51:25]MH_I2C_Read... [10:51:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:51:25]Read from MH i2c: E2 [10:51:25]MH_I2C_Read... [10:51:25]Read from MH i2c: E2 0E 00 [10:51:25]MH_I2C_Read... [10:51:25]Read from MH i2c: E2 0E 00 79 74 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 50 [10:51:25]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [10:51:25]wFMCommunicate OK [10:51:25]SAM_PROTO_GetShiftState done [10:51:25]FM_GetShiftState done [10:51:25]req_shift_opened done [10:51:25]requested_item shift.open_date is exist - process it [10:51:25]req_shift_open_date [10:51:25]req_shift_open_date done [10:51:25]produce_requested_data done [10:51:25]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30283,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [10:51:25]process_action_free close_receipt [10:51:25]json_value_free [10:51:25]json_value_free done [10:51:25]process_json_proto returns [10:51:25]Send response to host [10:51:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30283,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [10:51:25]free response buf [10:51:25]execute_script done [10:51:25]execute_script returns [10:51:25]free content buf [10:51:25]Sock 9.Close socket [10:51:25]Sock 9.Thread stoped [10:51:28]OFD Sender: No OFD packet to send [10:51:33]OFD Sender: No OFD packet to send [10:51:38]OFD Sender: No OFD packet to send [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:54]accept exits with 7 [10:53:54]New connection [10:53:54]New thread 3067514212 created [10:53:54]Thread 3067370852 joined [10:53:54]Waiting for new connection... [10:53:54] Sock 7.Parse request [10:53:54]Sock 7.Check first char [10:53:54]Sock 7.First char is OK [10:53:54]request: POST /json_proto HTTP/1.0 [10:53:54]Method: POST [10:53:54]URL: /json_proto [10:53:54]Method is POST - this is cgi request [10:53:54]url: /json_proto [10:53:54]query_string will be loaded in cgi processing [10:53:54]execute_cgi json_proto POST (null) [10:53:54]execute_cgi path=json_proto method=POST [10:53:54]POST find Content-Length [10:53:54]Host: 172.17.51.3:8080 [10:53:54]Content-Length: 677 [10:53:54]Content-Type: application/json [10:53:54] [10:53:54]POST finish read [10:53:54]Found Content-Length = 677 [10:53:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342676", "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" : 6.130, "sum" : 410.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 410.00, "total" : 410.00, "payments": [ { "type": 0, "sum" : 410.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:53:54]execute_script... [10:53: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)342676", "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" : 6.130, "sum" : 410.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 410.00, "total" : 410.00, "payments": [ { "type": 0, "sum" : 410.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:53:54]POST & json_proto [10:53:54]process_json_proto [10:53:54]json parsed OK: [10:53:54]protocol is kg_v1.0 [10:53:54]action value=close_receipt [10:53:54]process_action close_receipt [10:53:54]cmd_close_receipt [10:53:54]MH_GetDate [10:53:54]Write to MH i2c: F0 00 00 7A 74 DD [10:53:54]Write i2c OK [10:53:54]MH_I2C_Read... [10:53:54]Read from MH i2c: F0 [10:53:54]MH_I2C_Read... [10:53:54]Read from MH i2c: F0 09 00 [10:53:54]MH_I2C_Read... [10:53:54]Read from MH i2c: F0 09 00 7A 74 00 4B E1 14 67 04 C1 95 66 4D [10:53:54]GetLastDocTimeStamp 1729421490 [10:53:54]current date 1729421643 [10:53:54]FM_GetShiftState [10:53:54]SAM_PROTO_GetShiftState [10:53:54]wFMCommunicate request_size=4 [10:53:54]MH_SAM_APDU [10:53:54]CAPDU: 80 13 01 00 [10:53:54]Write to MH i2c: E2 08 00 7B 74 80 13 01 00 00 00 00 00 6C [10:53:54]Write i2c OK [10:53:54]MH_I2C_Read... [10:53:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:53:54]Read from MH i2c: E2 [10:53:54]MH_I2C_Read... [10:53:54]Read from MH i2c: E2 0E 00 [10:53:54]MH_I2C_Read... [10:53:54]Read from MH i2c: E2 0E 00 7B 74 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 52 [10:53:54]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [10:53:54]wFMCommunicate OK [10:53:54]SAM_PROTO_GetShiftState done [10:53:54]FM_GetShiftState done [10:53:54]opened in 1729384718 [10:53:54]opened+sec_in_day 1729471118 [10:53:54]quantity*price = 41009 [10:53:54]sum+1 = 41011 [10:53:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 410.00 Внесено: 410.00 СДАЧА: 0.00 НСП 1% : 3.63 НДС 12% : 43.55 Наличными: 410.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 66 20.10.2024 10:54 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30284 ФПД: 193339292246322 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T105403&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30284&fm=193339292246322&tin=02508201610067®Number=0000000000186857&sum=41000 [10:53:55]StoreToDocumentArchive [10:53:55]shift 114 fd 30284 [10:53:55]save to /storage/0114/doc_00030284 [10:53:55]save last doc name /storage/0114/doc_00030284 to /storage/kkm_last_doc_name [10:53:55]save OK [10:53:55]Clear old archive folders... [10:53:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:53:55]tlvbuf is 00BEE9F0 [10:53:55]SAM_PROTO_ClearQueue [10:53:55]wFMCommunicate request_size=4 [10:53:55]MH_SAM_APDU [10:53:55]CAPDU: 80 09 00 00 [10:53:55]Write to MH i2c: E2 08 00 88 74 80 09 00 00 00 00 00 00 6E [10:53:55]Write i2c OK [10:53:55]MH_I2C_Read... [10:53:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:53:55]Read from MH i2c: E2 [10:53:55]MH_I2C_Read... [10:53:55]Read from MH i2c: E2 03 00 [10:53:55]MH_I2C_Read... [10:53:55]Read from MH i2c: E2 03 00 88 74 00 90 00 70 [10:53:55]RAPDU: 90 00 [10:53:55]wFMCommunicate OK [10:53:55]SAM_PROTO_ClearQueue done [10:53:55]KKMCreateOFDPacket [10:53:55]OFDProtocolAddRootSTLVToBuf [10:53:55]FM_MakeSignedData [10:53:55]FM_MakeSignedData [10:53:55]SAM_PROTO_SignData [10:53:55]wFMCommunicate request_size=4 [10:53:55]MH_SAM_APDU [10:53:55]CAPDU: 80 0D 01 02 [10:53:55]Write to MH i2c: E2 08 00 89 74 80 0D 01 02 00 00 00 00 76 [10:53:55]Write i2c OK [10:53:55]MH_I2C_Read... [10:53:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:53:55]Read from MH i2c: E2 [10:53:55]MH_I2C_Read... [10:53:55]Read from MH i2c: E2 03 00 [10:53:55]MH_I2C_Read... [10:53:55]Read from MH i2c: E2 03 00 89 74 00 90 00 71 [10:53:55]RAPDU: 90 00 [10:53:55]wFMCommunicate OK [10:53:55]wFMCommunicate request_size=255 [10:53:55]MH_SAM_APDU [10:53: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 F2 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 32 A0 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 A0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 03 11 00 00 00 00 07 04 06 00 28 A0 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 4B E1 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 AF [10:53:55]Write to MH i2c: E2 02 01 8A 74 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 F2 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 32 A0 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 A0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 03 11 00 00 00 00 07 04 06 00 28 A0 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 4B E1 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 AF 00 00 75 [10:53:55]Write i2c OK [10:53:55]MH_I2C_Read... [10:53:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:53:56]Read from MH i2c: E2 [10:53:56]MH_I2C_Read... [10:53:56]Read from MH i2c: E2 03 00 [10:53:56]MH_I2C_Read... [10:53:56]Read from MH i2c: E2 03 00 8A 74 00 90 00 72 [10:53:56]RAPDU: 90 00 [10:53:56]wFMCommunicate OK [10:53:56]wFMCommunicate request_size=10 [10:53:56]MH_SAM_APDU [10:53:56]CAPDU: 80 0D 02 02 05 D7 4F D5 E1 32 [10:53:56]Write to MH i2c: E2 0D 00 8B 74 80 0D 02 02 05 00 D7 4F D5 E1 32 00 00 91 [10:53:56]Write i2c OK [10:53:56]MH_I2C_Read... [10:53:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:53:56]Read from MH i2c: E2 [10:53:56]MH_I2C_Read... [10:53:56]Read from MH i2c: E2 03 00 [10:53:56]MH_I2C_Read... [10:53:56]Read from MH i2c: E2 03 00 8B 74 00 90 00 73 [10:53:56]RAPDU: 90 00 [10:53:56]wFMCommunicate OK [10:53:56]wFMCommunicate request_size=4 [10:53:56]MH_SAM_APDU [10:53:56]CAPDU: 80 0D 03 02 [10:53:56]Write to MH i2c: E2 08 00 8C 74 80 0D 03 02 00 00 00 00 7B [10:53:56]Write i2c OK [10:53:56]MH_I2C_Read... [10:53:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:53:56]Read from MH i2c: E2 [10:53:56]MH_I2C_Read... [10:53:56]Read from MH i2c: E2 0B 00 [10:53:56]MH_I2C_Read... [10:53:56]Read from MH i2c: E2 0B 00 8C 74 00 C6 A0 F1 4C C0 9B C3 87 90 00 C4 [10:53:56]RAPDU: C6 A0 F1 4C C0 9B C3 87 90 00 [10:53:56]wFMCommunicate OK [10:53:56]SAM_PROTO_SignData done [10:53:56]FM_MakeSignedData done [10:53:56]CreateOFDProtocolMessage [10:53:56]wFMCommunicate request_size=4 [10:53:56]MH_SAM_APDU [10:53:56]CAPDU: 80 11 00 00 [10:53:56]Write to MH i2c: E2 08 00 8D 74 80 11 00 00 00 00 00 00 7B [10:53:56]Write i2c OK [10:53:56]MH_I2C_Read... [10:53:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:53:56]Read from MH i2c: E2 [10:53:56]MH_I2C_Read... [10:53:56]Read from MH i2c: E2 17 00 [10:53:56]MH_I2C_Read... [10:53:56]Read from MH i2c: E2 17 00 8D 74 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 C9 [10: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 [10:53:56]wFMCommunicate OK [10:53:56]CreateOFDProtocolMessage done [10:53:56]OFDSenderStorePacket 30284 [10:53:56]StoreOFDPacket docnum=30284 [10:53: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 D9 DF 07 01 90 13 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 F2 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 32 A0 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 A0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 03 11 00 00 00 00 07 04 06 00 28 A0 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 4B E1 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 AF D7 4F D5 E1 32 C6 A0 F1 4C C0 9B C3 87 [10:53:56]CheckFolder [10:53:56]dirname=/storage/ofd_packets [10:53:56]CheckFolder done [10:53:56]ProducePacketName [10:53:56]name=ofd_packets/00030284 [10:53:56]NVStorageSaveData ofd_packets/00030284 [10:53:56]File name is /storage/ofd_packets/00030284 [10:53:56]Write 301 bytes [10:53:56]NVStorageSaveData done [10:53:56]OFDSenderStorePacket done [10:53:56]KKMCreateOFDPacket done [10:53:56]NVStorageSaveData kkm_last_timestamp [10:53:56]File name is /storage/kkm_last_timestamp [10:53:56]Write 4 bytes [10:53:56]NVStorageSaveData done [10:53:56]ExternCall_PrintAddStr [10:53:56]wPrintStart [10:53:56]Write to MH i2c: 01 00 00 8E 74 02 [10:53:56]Write i2c OK [10:53:56]MH_I2C_Read... [10:53:56]Read from MH i2c: 01 [10:53:56]MH_I2C_Read... [10:53:56]Read from MH i2c: 01 07 00 [10:53:56]MH_I2C_Read... [10:53:56]Read from MH i2c: 01 07 00 8E 74 00 00 00 00 00 FF 0F 17 [10:53:56]RasterBufferAndPrint [10:53:56]line Счет N : (1)342676 [10:53:56]line ИНН: 02508201610067 [10:53:56]line Контрольно-Кассовый Чек [10:53:56]line ПРОДАЖА [10:53:56]line ТРК (МРК, ГНК) : 33 [10:53:56]line Товар: 2710124130 [10:53:56]line Аи-92-К-2 [10:53:56]line 6.130 * 66.90 [10:53:56]line = 410.10 [10:53:56]line НДС 12% НСП 1% [10:53:56]line > о реализуемом товаре [10:53:56]line ОКРУГЛЕНИЕ: -0.10 [10:53:56]line ИТОГО: 410.00 [10:53:56]line Внесено: 410.00 [10:53:56]line СДАЧА: 0.00 [10:53:56]line НСП 1% : 3.63 [10:53:56]line НДС 12% : 43.55 [10:53:56]line Наличными: 410.00 [10:53:56]line Безнал.: 0.00 [10:53:56]line Место: АЗС № 78 "Партнер Нефть" [10:53:56]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [10:53:56]line СНО: Общий режим [10:53:56]line Чек 66 20.10.2024 10:54 [10:53:56]line Смена: 114 ФФД: 1.0 [10:53:56]line ЗНМ: 0300000137 [10:53:56]line РНМ: 0000000000186857 [10:53:56]line Версия ККМ: v1.0 [10:53:56]line ФМ: 0000000002094219 [10:53:56]line ФД: 30284 [10:53:56]line ФПД: 193339292246322 [10:53:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T105403&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30284&fm=193339292246322&tin=02508201610067®Number=0000000000186857&sum=41000 [10:53:56]OFD Sender: Processing packet 30284 [packets to send 10, broken 9] [10:53:56]ProducePacketName [10:53:56]name=ofd_packets/00030284 [10:53:56]OFD Sender: To server: pG, [10:53:56]CommunicateWithHost lk.salyk.kg:30040 [10:53:56]ConnectInit lk.salyk.kg [10:53:56]written 0, free lines is 4095 [10:53:56]Connected sock=10 [10:53: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 D9 DF 07 01 90 13 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 F2 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 32 A0 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 A0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 03 11 00 00 00 00 07 04 06 00 28 A0 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 4B E1 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 AF D7 4F D5 E1 32 C6 A0 F1 4C C0 9B C3 87 [10:53: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 A9 A0 47 00 42 51 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 4C 76 00 00 F4 03 04 00 CF 8B 14 67 B6 04 01 00 00 CA 83 72 28 C1 2C E1 D5 [10:53:56]CommunicateWithHost err = 0 [10:53:56]CheckOFDResponse [10:53:56]1017 (14) - 77093643461234 [10:53:56]1041 (16) - 0000000002094219 [10:53:56]1040 (4) - 30284 [10:53:56]1012 (4) - 20.10.2024 04:49 [10:53:56]1206 (1) - 0 [10:53:56]OFD Sender: Remove packet 30284 [10:53:56]ProducePacketName [10:53:56]name=ofd_packets/00030284 [10:53:56]NVStorageDeleteData [10:53:57]Write to MH i2c: 01 00 00 B9 74 2D [10:53:57]Write i2c OK [10:53:57]MH_I2C_Read... [10:53:57]Read from MH i2c: 01 [10:53:57]MH_I2C_Read... [10:53:57]Read from MH i2c: 01 07 00 [10:53:57]MH_I2C_Read... [10:53:57]Read from MH i2c: 01 07 00 B9 74 00 00 00 00 00 E4 0C 24 [10:53:57]RasterBufferAndPrint [10:53:57]line [10:53:57]line [10:53:57]line [10:53:57]line [10:53:57]line [10:53:57]written 0, free lines is 3306 [10:53:57]MH_Cut [10:53:57]Write to MH i2c: D1 01 00 C0 74 01 06 [10:53:57]Write i2c OK [10:53:57]MH_I2C_Read... [10:53:57]Read from MH i2c: D1 [10:53:57]MH_I2C_Read... [10:53:57]Read from MH i2c: D1 01 00 [10:53:57]MH_I2C_Read... [10:53:57]Read from MH i2c: D1 01 00 C0 74 00 05 [10:53:57]Write to MH i2c: 01 00 00 C1 74 35 [10:53:57]Write i2c OK [10:53:57]MH_I2C_Read... [10:53:57]OFD Sender: No OFD packet to send [10:53:57]*** Cut start [10:53:57]*** Partial cut [10:53:57]*** CUTSNS_PIN = 1 [10:53:57]*** CUTSNS_PIN = 0 [10:53:57]*** Brake cut motor [10:53:58]Read from MH i2c: 01 [10:53:58]MH_I2C_Read... [10:53:58]*** Stop cut motor [10:53:58]*** Cut end [10:53:58]Read from MH i2c: 01 07 00 [10:53:58]MH_I2C_Read... [10:53:58]Read from MH i2c: 01 07 00 C1 74 00 00 00 00 00 FF 0F 4A [10:53:58]process_action close_receipt done [10:53:58]requested_data is exist [10:53:58]produce_requested_data [10:53:58]requested_item fm.sn is exist - process it [10:53:58]wFMCommunicate request_size=4 [10:53:58]MH_SAM_APDU [10:53:58]CAPDU: 80 11 00 00 [10:53:58]Write to MH i2c: E2 08 00 C2 74 80 11 00 00 00 00 00 00 B0 [10:53:58]Write i2c OK [10:53:58]MH_I2C_Read... [10:53:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:53:58]Read from MH i2c: E2 [10:53:58]MH_I2C_Read... [10:53:58]Read from MH i2c: E2 17 00 [10:53:58]MH_I2C_Read... [10:53:58]Read from MH i2c: E2 17 00 C2 74 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 FE [10:53:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [10:53:58]wFMCommunicate OK [10:53:58]requested_item fd.num is exist - process it [10:53:58]SAM_PROTO_GetFieldsCounters [10:53:58]wFMCommunicate request_size=4 [10:53:58]MH_SAM_APDU [10:53:58]CAPDU: 80 13 00 00 [10:53:58]Write to MH i2c: E2 08 00 C3 74 80 13 00 00 00 00 00 00 B3 [10:53:58]Write i2c OK [10:53:58]MH_I2C_Read... [10:53:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:53:58]Read from MH i2c: E2 [10:53:58]MH_I2C_Read... [10:53:58]Read from MH i2c: E2 62 00 [10:53:58]MH_I2C_Read... [10:53:58]Read from MH i2c: E2 62 00 C3 74 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 D3 [10:53: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 4C 76 00 00 0E 04 04 00 72 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:53:58]wFMCommunicate OK [10:53:58]SAM_PROTO_GetFieldsCounters done [10:53:58]requested_item shift.num is exist - process it [10:53:58]requested_item shift.opened is exist - process it [10:53:58]req_shift_opened [10:53:58]FM_GetShiftState [10:53:58]SAM_PROTO_GetShiftState [10:53:58]wFMCommunicate request_size=4 [10:53:58]MH_SAM_APDU [10:53:58]CAPDU: 80 13 01 00 [10:53:58]Write to MH i2c: E2 08 00 C4 74 80 13 01 00 00 00 00 00 B5 [10:53:58]Write i2c OK [10:53:58]MH_I2C_Read... [10:53:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:53:58]Read from MH i2c: E2 [10:53:58]MH_I2C_Read... [10:53:58]Read from MH i2c: E2 0E 00 [10:53:58]MH_I2C_Read... [10:53:58]Read from MH i2c: E2 0E 00 C4 74 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 9B [10:53:58]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [10:53:58]wFMCommunicate OK [10:53:58]SAM_PROTO_GetShiftState done [10:53:58]FM_GetShiftState done [10:53:58]req_shift_opened done [10:53:58]requested_item shift.open_date is exist - process it [10:53:58]req_shift_open_date [10:53:58]req_shift_open_date done [10:53:58]produce_requested_data done [10:53:58]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30284,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [10:53:58]process_action_free close_receipt [10:53:58]json_value_free [10:53:58]json_value_free done [10:53:58]process_json_proto returns [10:53:58]Send response to host [10:53:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30284,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [10:53:58]free response buf [10:53:58]execute_script done [10:53:58]execute_script returns [10:53:58]free content buf [10:53:58]Sock 7.Close socket [10:53:58]Sock 7.Thread stoped [10:54:02]OFD Sender: No OFD packet to send [10:54:07]OFD Sender: No OFD packet to send [10:54:12]OFD Sender: No OFD packet to send [10:54:17]OFD Sender: No OFD packet to send [10:54:22]OFD Sender: No OFD packet to send [10:54:27]OFD Sender: No OFD packet to send [10:54:32]OFD Sender: No OFD packet to send [10:54:37]OFD Sender: No OFD packet to send [10:54:42]OFD Sender: No OFD packet to send [10:54:47]OFD Sender: No OFD packet to send [10:54:52]OFD Sender: No OFD packet to send [10:54:57]OFD Sender: No OFD packet to send [10:55:02]OFD Sender: No OFD packet to send [10:55:04]accept exits with 9 [10:55:04]New connection [10:55:04]New thread 3067370852 created [10:55:04]Thread 3067514212 joined [10:55:04]Waiting for new connection... [10:55:04] Sock 9.Parse request [10:55:04]Sock 9.Check first char [10:55:04]Sock 9.First char is OK [10:55:04]request: POST /json_proto HTTP/1.0 [10:55:04]Method: POST [10:55:04]URL: /json_proto [10:55:04]Method is POST - this is cgi request [10:55:04]url: /json_proto [10:55:04]query_string will be loaded in cgi processing [10:55:04]execute_cgi json_proto POST (null) [10:55:04]execute_cgi path=json_proto method=POST [10:55:04]POST find Content-Length [10:55:04]Host: 172.17.51.3:8080 [10:55:04]Content-Length: 677 [10:55:04]Content-Type: application/json [10:55:04] [10:55:04]POST finish read [10:55:04]Found Content-Length = 677 [10:55:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342677", "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.710, "sum" : 720.48, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 720.00, "total" : 720.00, "payments": [ { "type": 0, "sum" : 720.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:55:04]execute_script... [10:55: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)342677", "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.710, "sum" : 720.48, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 720.00, "total" : 720.00, "payments": [ { "type": 0, "sum" : 720.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:55:04]POST & json_proto [10:55:04]process_json_proto [10:55:04]json parsed OK: [10:55:04]protocol is kg_v1.0 [10:55:04]action value=close_receipt [10:55:04]process_action close_receipt [10:55:04]cmd_close_receipt [10:55:04]MH_GetDate [10:55:04]Write to MH i2c: F0 00 00 C5 74 28 [10:55:04]Write i2c OK [10:55:04]MH_I2C_Read... [10:55:04]Read from MH i2c: F0 [10:55:04]MH_I2C_Read... [10:55:04]Read from MH i2c: F0 09 00 [10:55:04]MH_I2C_Read... [10:55:04]Read from MH i2c: F0 09 00 C5 74 00 91 E1 14 67 04 C1 95 66 DE [10:55:04]GetLastDocTimeStamp 1729421643 [10:55:04]current date 1729421713 [10:55:04]FM_GetShiftState [10:55:04]SAM_PROTO_GetShiftState [10:55:04]wFMCommunicate request_size=4 [10:55:04]MH_SAM_APDU [10:55:04]CAPDU: 80 13 01 00 [10:55:04]Write to MH i2c: E2 08 00 C6 74 80 13 01 00 00 00 00 00 B7 [10:55:04]Write i2c OK [10:55:04]MH_I2C_Read... [10:55:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:55:04]Read from MH i2c: E2 [10:55:04]MH_I2C_Read... [10:55:04]Read from MH i2c: E2 0E 00 [10:55:04]MH_I2C_Read... [10:55:04]Read from MH i2c: E2 0E 00 C6 74 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 9D [10:55:04]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [10:55:04]wFMCommunicate OK [10:55:04]SAM_PROTO_GetShiftState done [10:55:04]FM_GetShiftState done [10:55:04]opened in 1729384718 [10:55:04]opened+sec_in_day 1729471118 [10:55:04]quantity*price = 72048 [10:55:04]sum+1 = 72049 [10:55:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.48 ИТОГО: 720.00 Внесено: 720.00 СДАЧА: 0.00 НСП 1% : 6.38 НДС 12% : 76.51 Наличными: 720.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 67 20.10.2024 10:55 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30285 ФПД: 53981341988178 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T105513&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30285&fm=53981341988178&tin=02508201610067®Number=0000000000186857&sum=72000 [10:55:05]StoreToDocumentArchive [10:55:05]shift 114 fd 30285 [10:55:05]save to /storage/0114/doc_00030285 [10:55:05]save last doc name /storage/0114/doc_00030285 to /storage/kkm_last_doc_name [10:55:05]save OK [10:55:05]Clear old archive folders... [10:55:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:55:05]tlvbuf is 00BEBA80 [10:55:05]SAM_PROTO_ClearQueue [10:55:05]wFMCommunicate request_size=4 [10:55:05]MH_SAM_APDU [10:55:05]CAPDU: 80 09 00 00 [10:55:05]Write to MH i2c: E2 08 00 D3 74 80 09 00 00 00 00 00 00 B9 [10:55:05]Write i2c OK [10:55:05]MH_I2C_Read... [10:55:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:55:05]Read from MH i2c: E2 [10:55:05]MH_I2C_Read... [10:55:05]Read from MH i2c: E2 03 00 [10:55:05]MH_I2C_Read... [10:55:05]Read from MH i2c: E2 03 00 D3 74 00 90 00 BB [10:55:05]RAPDU: 90 00 [10:55:05]wFMCommunicate OK [10:55:05]SAM_PROTO_ClearQueue done [10:55:05]KKMCreateOFDPacket [10:55:05]OFDProtocolAddRootSTLVToBuf [10:55:05]FM_MakeSignedData [10:55:05]FM_MakeSignedData [10:55:05]SAM_PROTO_SignData [10:55:05]wFMCommunicate request_size=4 [10:55:05]MH_SAM_APDU [10:55:05]CAPDU: 80 0D 01 02 [10:55:05]Write to MH i2c: E2 08 00 D4 74 80 0D 01 02 00 00 00 00 C1 [10:55:05]Write i2c OK [10:55:05]MH_I2C_Read... [10:55:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:55:05]Read from MH i2c: E2 [10:55:05]MH_I2C_Read... [10:55:05]Read from MH i2c: E2 03 00 [10:55:05]MH_I2C_Read... [10:55:05]Read from MH i2c: E2 03 00 D4 74 00 90 00 BC [10:55:05]RAPDU: 90 00 [10:55:05]wFMCommunicate OK [10:55:05]wFMCommunicate request_size=255 [10:55:05]MH_SAM_APDU [10:55:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 EE 25 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 70 19 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 19 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E3 1D 00 00 00 00 07 04 06 00 40 19 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 91 E1 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 31 [10:55:05]Write to MH i2c: E2 02 01 D5 74 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 EE 25 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 70 19 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 19 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E3 1D 00 00 00 00 07 04 06 00 40 19 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 91 E1 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 31 00 00 51 [10:55:05]Write i2c OK [10:55:05]MH_I2C_Read... [10:55:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:55:06]Read from MH i2c: E2 [10:55:06]MH_I2C_Read... [10:55:06]Read from MH i2c: E2 03 00 [10:55:06]MH_I2C_Read... [10:55:06]Read from MH i2c: E2 03 00 D5 74 00 90 00 BD [10:55:06]RAPDU: 90 00 [10:55:06]wFMCommunicate OK [10:55:06]wFMCommunicate request_size=10 [10:55:06]MH_SAM_APDU [10:55:06]CAPDU: 80 0D 02 02 05 18 82 B6 B5 52 [10:55:06]Write to MH i2c: E2 0D 00 D6 74 80 0D 02 02 05 00 18 82 B6 B5 52 00 00 25 [10:55:06]Write i2c OK [10:55:06]MH_I2C_Read... [10:55:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:55:06]Read from MH i2c: E2 [10:55:06]MH_I2C_Read... [10:55:06]Read from MH i2c: E2 03 00 [10:55:06]MH_I2C_Read... [10:55:06]Read from MH i2c: E2 03 00 D6 74 00 90 00 BE [10:55:06]RAPDU: 90 00 [10:55:06]wFMCommunicate OK [10:55:06]wFMCommunicate request_size=4 [10:55:06]MH_SAM_APDU [10:55:06]CAPDU: 80 0D 03 02 [10:55:06]Write to MH i2c: E2 08 00 D7 74 80 0D 03 02 00 00 00 00 C6 [10:55:06]Write i2c OK [10:55:06]MH_I2C_Read... [10:55:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:55:06]Read from MH i2c: E2 [10:55:06]MH_I2C_Read... [10:55:06]Read from MH i2c: E2 0B 00 [10:55:06]MH_I2C_Read... [10:55:06]Read from MH i2c: E2 0B 00 D7 74 00 D9 A0 0A 83 CE 77 74 37 90 00 BD [10:55:06]RAPDU: D9 A0 0A 83 CE 77 74 37 90 00 [10:55:06]wFMCommunicate OK [10:55:06]SAM_PROTO_SignData done [10:55:06]FM_MakeSignedData done [10:55:06]CreateOFDProtocolMessage [10:55:06]wFMCommunicate request_size=4 [10:55:06]MH_SAM_APDU [10:55:06]CAPDU: 80 11 00 00 [10:55:06]Write to MH i2c: E2 08 00 D8 74 80 11 00 00 00 00 00 00 C6 [10:55:06]Write i2c OK [10:55:06]MH_I2C_Read... [10:55:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:55:06]Read from MH i2c: E2 [10:55:06]MH_I2C_Read... [10:55:06]Read from MH i2c: E2 17 00 [10:55:06]MH_I2C_Read... [10:55:06]Read from MH i2c: E2 17 00 D8 74 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 14 [10:55:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [10:55:06]wFMCommunicate OK [10:55:06]CreateOFDProtocolMessage done [10:55:06]OFDSenderStorePacket 30285 [10:55:06]StoreOFDPacket docnum=30285 [10:55: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 04 EF 07 01 41 8F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 EE 25 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 70 19 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 19 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E3 1D 00 00 00 00 07 04 06 00 40 19 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 91 E1 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 31 18 82 B6 B5 52 D9 A0 0A 83 CE 77 74 37 [10:55:06]CheckFolder [10:55:06]dirname=/storage/ofd_packets [10:55:06]CheckFolder done [10:55:06]ProducePacketName [10:55:06]name=ofd_packets/00030285 [10:55:06]NVStorageSaveData ofd_packets/00030285 [10:55:06]File name is /storage/ofd_packets/00030285 [10:55:06]Write 301 bytes [10:55:06]NVStorageSaveData done [10:55:06]OFDSenderStorePacket done [10:55:06]KKMCreateOFDPacket done [10:55:06]NVStorageSaveData kkm_last_timestamp [10:55:06]File name is /storage/kkm_last_timestamp [10:55:06]Write 4 bytes [10:55:06]OFD Sender: Processing packet 30285 [packets to send 10, broken 9] [10:55:06]ProducePacketName [10:55:06]name=ofd_packets/00030285 [10:55:06]OFD Sender: To server: pG, [10:55:06]CommunicateWithHost lk.salyk.kg:30040 [10:55:06]ConnectInit lk.salyk.kg [10:55:06]NVStorageSaveData done [10:55:06]ExternCall_PrintAddStr [10:55:06]wPrintStart [10:55:06]Write to MH i2c: 01 00 00 D9 74 4D [10:55:06]Write i2c OK [10:55:06]MH_I2C_Read... [10:55:06]Read from MH i2c: 01 [10:55:06]MH_I2C_Read... [10:55:06]Read from MH i2c: 01 07 00 [10:55:06]MH_I2C_Read... [10:55:06]Read from MH i2c: 01 07 00 D9 74 00 00 00 00 00 FF 0F 62 [10:55:06]RasterBufferAndPrint [10:55:06]line Счет N : (1)342677 [10:55:06]line ИНН: 02508201610067 [10:55:06]line Контрольно-Кассовый Чек [10:55:06]line ПРОДАЖА [10:55:06]line ТРК (МРК, ГНК) : 62 [10:55:06]line Товар: 2710124500 [10:55:06]line Аи-95-К-3 [10:55:06]line 9.710 * 74.20 [10:55:06]line = 720.48 [10:55:06]line НДС 12% НСП 1% [10:55:06]line > о реализуемом товаре [10:55:06]line ОКРУГЛЕНИЕ: -0.48 [10:55:06]line ИТОГО: 720.00 [10:55:06]line Внесено: 720.00 [10:55:06]line СДАЧА: 0.00 [10:55:06]line НСП 1% : 6.38 [10:55:06]line НДС 12% : 76.51 [10:55:06]line Наличными: 720.00 [10:55:06]line Безнал.: 0.00 [10:55:06]line Место: АЗС № 78 "Партнер Нефть" [10:55:06]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [10:55:06]line СНО: Общий режим [10:55:06]line Чек 67 20.10.2024 10:55 [10:55:06]line Смена: 114 ФФД: 1.0 [10:55:06]line ЗНМ: 0300000137 [10:55:06]line РНМ: 0000000000186857 [10:55:06]line Версия ККМ: v1.0 [10:55:06]line ФМ: 0000000002094219 [10:55:06]line ФД: 30285 [10:55:06]line ФПД: 53981341988178 [10:55:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T105513&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30285&fm=53981341988178&tin=02508201610067®Number=0000000000186857&sum=72000 [10:55:06]Connected sock=10 [10:55: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 04 EF 07 01 41 8F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 EE 25 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 70 19 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 19 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 written 0, free lines is 4095 [10:55:06]E3 1D 00 00 00 00 07 04 06 00 40 19 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 91 E1 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 31 18 82 B6 B5 52 D9 A0 0A 83 CE 77 74 37 [10:55: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 87 39 47 00 9D 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 4D 76 00 00 F4 03 04 00 15 8C 14 67 B6 04 01 00 00 E5 3C 77 F8 9A AB D9 9A [10:55:06]CommunicateWithHost err = 0 [10:55:06]CheckOFDResponse [10:55:06]1017 (14) - 77093643461234 [10:55:06]1041 (16) - 0000000002094219 [10:55:06]1040 (4) - 30285 [10:55:06]1012 (4) - 20.10.2024 04:50 [10:55:06]1206 (1) - 0 [10:55:06]OFD Sender: Remove packet 30285 [10:55:06]ProducePacketName [10:55:06]name=ofd_packets/00030285 [10:55:06]NVStorageDeleteData [10:55:06]Write to MH i2c: 01 00 00 04 75 79 [10:55:07]Write i2c OK [10:55:07]MH_I2C_Read... [10:55:07]Read from MH i2c: 01 [10:55:07]MH_I2C_Read... [10:55:07]Read from MH i2c: 01 07 00 [10:55:07]MH_I2C_Read... [10:55:07]Read from MH i2c: 01 07 00 04 75 00 00 00 00 00 F1 0C 7D [10:55:07]RasterBufferAndPrint [10:55:07]line [10:55:07]line [10:55:07]line [10:55:07]line [10:55:07]line [10:55:07]written 0, free lines is 3319 [10:55:07]MH_Cut [10:55:07]Write to MH i2c: D1 01 00 0B 75 01 52 [10:55:07]Write i2c OK [10:55:07]MH_I2C_Read... [10:55:07]Read from MH i2c: D1 [10:55:07]MH_I2C_Read... [10:55:07]Read from MH i2c: D1 01 00 [10:55:07]MH_I2C_Read... [10:55:07]Read from MH i2c: D1 01 00 0B 75 00 51 [10:55:07]Write to MH i2c: 01 00 00 0C 75 81 [10:55:07]Write i2c OK [10:55:07]MH_I2C_Read... [10:55:07]OFD Sender: No OFD packet to send [10:55:07]*** Cut start [10:55:07]*** Partial cut [10:55:07]*** CUTSNS_PIN = 1 [10:55:07]*** CUTSNS_PIN = 0 [10:55:07]*** Brake cut motor [10:55:08]Read from MH i2c: 01 [10:55:08]MH_I2C_Read... [10:55:08]*** Stop cut motor [10:55:08]*** Cut end [10:55:08]Read from MH i2c: 01 07 00 [10:55:08]MH_I2C_Read... [10:55:08]Read from MH i2c: 01 07 00 0C 75 00 00 00 00 00 FF 0F 96 [10:55:08]process_action close_receipt done [10:55:08]requested_data is exist [10:55:08]produce_requested_data [10:55:08]requested_item fm.sn is exist - process it [10:55:08]wFMCommunicate request_size=4 [10:55:08]MH_SAM_APDU [10:55:08]CAPDU: 80 11 00 00 [10:55:08]Write to MH i2c: E2 08 00 0D 75 80 11 00 00 00 00 00 00 FC [10:55:08]Write i2c OK [10:55:08]MH_I2C_Read... [10:55:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:55:08]Read from MH i2c: E2 [10:55:08]MH_I2C_Read... [10:55:08]Read from MH i2c: E2 17 00 [10:55:08]MH_I2C_Read... [10:55:08]Read from MH i2c: E2 17 00 0D 75 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 4A [10:55: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:55:08]wFMCommunicate OK [10:55:08]requested_item fd.num is exist - process it [10:55:08]SAM_PROTO_GetFieldsCounters [10:55:08]wFMCommunicate request_size=4 [10:55:08]MH_SAM_APDU [10:55:08]CAPDU: 80 13 00 00 [10:55:08]Write to MH i2c: E2 08 00 0E 75 80 13 00 00 00 00 00 00 FF [10:55:08]Write i2c OK [10:55:08]MH_I2C_Read... [10:55:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:55:08]Read from MH i2c: E2 [10:55:08]MH_I2C_Read... [10:55:08]Read from MH i2c: E2 62 00 [10:55:08]MH_I2C_Read... [10:55:08]Read from MH i2c: E2 62 00 0E 75 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 23 [10:55: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 4D 76 00 00 0E 04 04 00 72 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:55:08]wFMCommunicate OK [10:55:08]SAM_PROTO_GetFieldsCounters done [10:55:08]requested_item shift.num is exist - process it [10:55:08]requested_item shift.opened is exist - process it [10:55:08]req_shift_opened [10:55:08]FM_GetShiftState [10:55:08]SAM_PROTO_GetShiftState [10:55:08]wFMCommunicate request_size=4 [10:55:08]MH_SAM_APDU [10:55:08]CAPDU: 80 13 01 00 [10:55:08]Write to MH i2c: E2 08 00 0F 75 80 13 01 00 00 00 00 00 01 [10:55:08]Write i2c OK [10:55:08]MH_I2C_Read... [10:55:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:55:08]Read from MH i2c: E2 [10:55:08]MH_I2C_Read... [10:55:08]Read from MH i2c: E2 0E 00 [10:55:08]MH_I2C_Read... [10:55:08]Read from MH i2c: E2 0E 00 0F 75 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 E7 [10:55:08]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [10:55:08]wFMCommunicate OK [10:55:08]SAM_PROTO_GetShiftState done [10:55:08]FM_GetShiftState done [10:55:08]req_shift_opened done [10:55:08]requested_item shift.open_date is exist - process it [10:55:08]req_shift_open_date [10:55:08]req_shift_open_date done [10:55:08]produce_requested_data done [10:55:08]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30285,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [10:55:08]process_action_free close_receipt [10:55:08]json_value_free [10:55:08]json_value_free done [10:55:08]process_json_proto returns [10:55:08]Send response to host [10:55:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30285,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [10:55:08]free response buf [10:55:08]execute_script done [10:55:08]execute_script returns [10:55:08]free content buf [10:55:08]Sock 9.Close socket [10:55:08]Sock 9.Thread stoped [10:55:12]OFD Sender: No OFD packet to send [10:55:17]OFD Sender: No OFD packet to send [10:55:22]OFD Sender: No OFD packet to send [10:55:27]OFD Sender: No OFD packet to send [10:55:32]OFD Sender: No OFD packet to send [10:55:37]OFD Sender: No OFD packet to send [10:55:42]OFD Sender: No OFD packet to send [10:55:47]OFD Sender: No OFD packet to send [10:55:52]OFD Sender: No OFD packet to send [10:55:57]OFD Sender: No OFD packet to send [10:56:02]OFD Sender: No OFD packet to send [10:56:07]OFD Sender: No OFD packet to send [10:56:12]OFD Sender: No OFD packet to send [10:56:17]OFD Sender: No OFD packet to send [10:56:22]OFD Sender: No OFD packet to send [10:56:27]OFD Sender: No OFD packet to send [10:56:32]OFD Sender: No OFD packet to send [10:56:37]OFD Sender: No OFD packet to send [10:56:42]OFD Sender: No OFD packet to send [10:56:47]OFD Sender: No OFD packet to send [10:56:52]OFD Sender: No OFD packet to send [10:56:57]OFD Sender: No OFD packet to send [10:57:02]OFD Sender: No OFD packet to send [10:57:07]OFD Sender: No OFD packet to send [10:57:12]OFD Sender: No OFD packet to send [10:57:17]OFD Sender: No OFD packet to send [10:57:22]OFD Sender: No OFD packet to send [10:57:27]OFD Sender: No OFD packet to send [10:57:32]OFD Sender: No OFD packet to send [10:57:35]accept exits with 7 [10:57:35]New connection [10:57:35]New thread 3067514212 created [10:57:35]Thread 3067370852 joined [10:57:35]Waiting for new connection... [10:57:35] Sock 7.Parse request [10:57:35]Sock 7.Check first char [10:57:35]Sock 7.First char is OK [10:57:35]request: POST /json_proto HTTP/1.0 [10:57:35]Method: POST [10:57:35]URL: /json_proto [10:57:35]Method is POST - this is cgi request [10:57:35]url: /json_proto [10:57:35]query_string will be loaded in cgi processing [10:57:35]execute_cgi json_proto POST (null) [10:57:35]execute_cgi path=json_proto method=POST [10:57:35]POST find Content-Length [10:57:35]Host: 172.17.51.3:8080 [10:57:35]Content-Length: 674 [10:57:35]Content-Type: application/json [10:57:35] [10:57:35]POST finish read [10:57:35]Found Content-Length = 674 [10:57:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342678", "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" : 4.070, "sum" : 310.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 310.00, "total" : 310.00, "payments": [ { "type": 0, "sum" : 310.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:57:35]execute_script... [10:57:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342678", "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" : 4.070, "sum" : 310.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 310.00, "total" : 310.00, "payments": [ { "type": 0, "sum" : 310.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:57:35]POST & json_proto [10:57:35]process_json_proto [10:57:35]json parsed OK: [10:57:35]protocol is kg_v1.0 [10:57:35]action value=close_receipt [10:57:35]process_action close_receipt [10:57:35]cmd_close_receipt [10:57:35]MH_GetDate [10:57:35]Write to MH i2c: F0 00 00 10 75 74 [10:57:35]Write i2c OK [10:57:35]MH_I2C_Read... [10:57:35]Read from MH i2c: F0 [10:57:35]MH_I2C_Read... [10:57:35]Read from MH i2c: F0 09 00 [10:57:35]MH_I2C_Read... [10:57:35]Read from MH i2c: F0 09 00 10 75 00 28 E2 14 67 04 C1 95 66 C2 [10:57:35]GetLastDocTimeStamp 1729421713 [10:57:35]current date 1729421864 [10:57:35]FM_GetShiftState [10:57:35]SAM_PROTO_GetShiftState [10:57:35]wFMCommunicate request_size=4 [10:57:35]MH_SAM_APDU [10:57:35]CAPDU: 80 13 01 00 [10:57:35]Write to MH i2c: E2 08 00 11 75 80 13 01 00 00 00 00 00 03 [10:57:35]Write i2c OK [10:57:35]MH_I2C_Read... [10:57:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:57:35]Read from MH i2c: E2 [10:57:35]MH_I2C_Read... [10:57:35]Read from MH i2c: E2 0E 00 [10:57:35]MH_I2C_Read... [10:57:35]Read from MH i2c: E2 0E 00 11 75 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 E9 [10:57:35]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [10:57:35]wFMCommunicate OK [10:57:35]SAM_PROTO_GetShiftState done [10:57:35]FM_GetShiftState done [10:57:35]opened in 1729384718 [10:57:35]opened+sec_in_day 1729471118 [10:57:35]quantity*price = 31013 [10:57:35]sum+1 = 31014 [10:57:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 310.00 Внесено: 310.00 СДАЧА: 0.00 НСП 1% : 2.74 НДС 12% : 32.93 Наличными: 310.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 68 20.10.2024 10:57 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30286 ФПД: 177383404116140 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T105744&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30286&fm=177383404116140&tin=02508201610067®Number=0000000000186857&sum=31000 [10:57:36]StoreToDocumentArchive [10:57:36]shift 114 fd 30286 [10:57:36]save to /storage/0114/doc_00030286 [10:57:36]save last doc name /storage/0114/doc_00030286 to /storage/kkm_last_doc_name [10:57:36]save OK [10:57:36]Clear old archive folders... [10:57:36]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:57:36]tlvbuf is B6FE19E0 [10:57:36]SAM_PROTO_ClearQueue [10:57:36]wFMCommunicate request_size=4 [10:57:36]MH_SAM_APDU [10:57:36]CAPDU: 80 09 00 00 [10:57:36]Write to MH i2c: E2 08 00 1E 75 80 09 00 00 00 00 00 00 05 [10:57:36]Write i2c OK [10:57:36]MH_I2C_Read... [10:57:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:57:36]Read from MH i2c: E2 [10:57:36]MH_I2C_Read... [10:57:36]Read from MH i2c: E2 03 00 [10:57:36]MH_I2C_Read... [10:57:36]Read from MH i2c: E2 03 00 1E 75 00 90 00 07 [10:57:36]RAPDU: 90 00 [10:57:36]wFMCommunicate OK [10:57:36]SAM_PROTO_ClearQueue done [10:57:36]KKMCreateOFDPacket [10:57:36]OFDProtocolAddRootSTLVToBuf [10:57:36]FM_MakeSignedData [10:57:36]FM_MakeSignedData [10:57:36]SAM_PROTO_SignData [10:57:36]wFMCommunicate request_size=4 [10:57:36]MH_SAM_APDU [10:57:36]CAPDU: 80 0D 01 02 [10:57:36]Write to MH i2c: E2 08 00 1F 75 80 0D 01 02 00 00 00 00 0D [10:57:36]Write i2c OK [10:57:36]MH_I2C_Read... [10:57:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:57:36]Read from MH i2c: E2 [10:57:36]MH_I2C_Read... [10:57:36]Read from MH i2c: E2 03 00 [10:57:36]MH_I2C_Read... [10:57:36]Read from MH i2c: E2 03 00 1F 75 00 90 00 08 [10:57:36]RAPDU: 90 00 [10:57:36]wFMCommunicate OK [10:57:36]wFMCommunicate request_size=255 [10:57:36]MH_SAM_APDU [10:57: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 E6 0F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 25 79 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DD 0C 00 00 00 00 07 04 06 00 18 79 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 28 E2 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 A1 54 4A CA [10:57:36]Write to MH i2c: E2 02 01 20 75 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 0F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 25 79 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DD 0C 00 00 00 00 07 04 06 00 18 79 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 28 E2 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 A1 54 4A CA 00 00 06 [10:57:36]Write i2c OK [10:57:36]MH_I2C_Read... [10:57:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:57:36]Read from MH i2c: E2 [10:57:36]MH_I2C_Read... [10:57:36]Read from MH i2c: E2 03 00 [10:57:36]MH_I2C_Read... [10:57:36]Read from MH i2c: E2 03 00 20 75 00 90 00 09 [10:57:36]RAPDU: 90 00 [10:57:36]wFMCommunicate OK [10:57:36]wFMCommunicate request_size=7 [10:57:36]MH_SAM_APDU [10:57:36]CAPDU: 80 0D 02 02 02 98 AC [10:57:36]Write to MH i2c: E2 0A 00 21 75 80 0D 02 02 02 00 98 AC 00 00 58 [10:57:36]Write i2c OK [10:57:36]MH_I2C_Read... [10:57:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:57:37]Read from MH i2c: E2 [10:57:37]MH_I2C_Read... [10:57:37]Read from MH i2c: E2 03 00 [10:57:37]MH_I2C_Read... [10:57:37]Read from MH i2c: E2 03 00 21 75 00 90 00 0A [10:57:37]RAPDU: 90 00 [10:57:37]wFMCommunicate OK [10:57:37]wFMCommunicate request_size=4 [10:57:37]MH_SAM_APDU [10:57:37]CAPDU: 80 0D 03 02 [10:57:37]Write to MH i2c: E2 08 00 22 75 80 0D 03 02 00 00 00 00 12 [10:57:37]Write i2c OK [10:57:37]MH_I2C_Read... [10:57:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:57:37]Read from MH i2c: E2 [10:57:37]MH_I2C_Read... [10:57:37]Read from MH i2c: E2 0B 00 [10:57:37]MH_I2C_Read... [10:57:37]Read from MH i2c: E2 0B 00 22 75 00 45 6E 3F 9C EE BD 06 0D 90 00 5F [10:57:37]RAPDU: 45 6E 3F 9C EE BD 06 0D 90 00 [10:57:37]wFMCommunicate OK [10:57:37]SAM_PROTO_SignData done [10:57:37]FM_MakeSignedData done [10:57:37]CreateOFDProtocolMessage [10:57:37]wFMCommunicate request_size=4 [10:57:37]MH_SAM_APDU [10:57:37]CAPDU: 80 11 00 00 [10:57:37]Write to MH i2c: E2 08 00 23 75 80 11 00 00 00 00 00 00 12 [10:57:37]Write i2c OK [10:57:37]MH_I2C_Read... [10:57:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:57:37]Read from MH i2c: E2 [10:57:37]MH_I2C_Read... [10:57:37]Read from MH i2c: E2 17 00 [10:57:37]MH_I2C_Read... [10:57:37]Read from MH i2c: E2 17 00 23 75 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 60 [10:57:37]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:37]wFMCommunicate OK [10:57:37]CreateOFDProtocolMessage done [10:57:37]OFDSenderStorePacket 30286 [10:57:37]StoreOFDPacket docnum=30286 [10:57: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 0C 01 00 00 24 8D 04 01 45 14 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 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 0F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 25 79 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DD 0C 00 00 00 00 07 04 06 00 18 79 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 28 E2 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 A1 54 4A CA 98 AC 45 6E 3F 9C EE BD 06 0D [10:57:37]CheckFolder [10:57:37]dirname=/storage/ofd_packets [10:57:37]CheckFolder done [10:57:37]ProducePacketName [10:57:37]name=ofd_packets/00030286 [10:57:37]NVStorageSaveData ofd_packets/00030286 [10:57:37]File name is /storage/ofd_packets/00030286 [10:57:37]Write 298 bytes [10:57:37]NVStorageSaveData done [10:57:37]OFDSenderStorePacket done [10:57:37]KKMCreateOFDPacket done [10:57:37]NVStorageSaveData kkm_last_timestamp [10:57:37]File name is /storage/kkm_last_timestamp [10:57:37]Write 4 bytes [10:57:37]NVStorageSaveData done [10:57:37]ExternCall_PrintAddStr [10:57:37]wPrintStart [10:57:37]Write to MH i2c: 01 00 00 24 75 99 [10:57:37]Write i2c OK [10:57:37]MH_I2C_Read... [10:57:37]Read from MH i2c: 01 [10:57:37]MH_I2C_Read... [10:57:37]Read from MH i2c: 01 07 00 [10:57:37]MH_I2C_Read... [10:57:37]Read from MH i2c: 01 07 00 24 75 00 00 00 00 00 FF 0F AE [10:57:37]RasterBufferAndPrint [10:57:37]line Счет N : (1)342678 [10:57:37]line ИНН: 02508201610067 [10:57:37]line Контрольно-Кассовый Чек [10:57:37]line ПРОДАЖА [10:57:37]line ТРК (МРК, ГНК) : 44 [10:57:37]line Товар: 2710194210 [10:57:37]line ДТ-К-2 [10:57:37]line 4.070 * 76.20 [10:57:37]line = 310.13 [10:57:37]line НДС 12% НСП 1% [10:57:37]line > о реализуемом товаре [10:57:37]line ОКРУГЛЕНИЕ: -0.13 [10:57:37]line ИТОГО: 310.00 [10:57:37]line Внесено: 310.00 [10:57:37]line СДАЧА: 0.00 [10:57:37]line НСП 1% : 2.74 [10:57:37]line НДС 12% : 32.93 [10:57:37]line Наличными: 310.00 [10:57:37]line Безнал.: 0.00 [10:57:37]line Место: АЗС № 78 "Партнер Нефть" [10:57:37]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [10:57:37]line СНО: Общий режим [10:57:37]line Чек 68 20.10.2024 10:57 [10:57:37]line Смена: 114 ФФД: 1.0 [10:57:37]line ЗНМ: 0300000137 [10:57:37]line РНМ: 0000000000186857 [10:57:37]line Версия ККМ: v1.0 [10:57:37]line ФМ: 0000000002094219 [10:57:37]line ФД: 30286 [10:57:37]line ФПД: 177383404116140 [10:57:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T105744&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30286&fm=177383404116140&tin=02508201610067®Number=0000000000186857&sum=31000 [10:57:37]OFD Sender: Processing packet 30286 [packets to send 10, broken 9] [10:57:37]ProducePacketName [10:57:37]name=ofd_packets/00030286 [10:57:37]OFD Sender: To server: pG, [10:57:37]CommunicateWithHost lk.salyk.kg:30040 [10:57:37]ConnectInit lk.salyk.kg [10:57:37]written 0, free lines is 4095 [10:57:37]Connected sock=10 [10: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 0C 01 00 00 24 8D 04 01 45 14 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 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 0F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 25 79 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DD 0C 00 00 00 00 07 04 06 00 18 79 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 28 E2 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 A1 54 4A CA 98 AC 45 6E 3F 9C EE BD 06 0D [10: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 23 CE 47 00 D6 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 4E 76 00 00 F4 03 04 00 AC 8C 14 67 B6 04 01 00 00 0C A2 35 59 AB 43 DF 81 [10:57:37]CommunicateWithHost err = 0 [10:57:37]CheckOFDResponse [10:57:37]1017 (14) - 77093643461234 [10:57:37]1041 (16) - 0000000002094219 [10:57:37]1040 (4) - 30286 [10:57:37]1012 (4) - 20.10.2024 04:53 [10:57:37]1206 (1) - 0 [10:57:37]OFD Sender: Remove packet 30286 [10:57:37]ProducePacketName [10:57:37]name=ofd_packets/00030286 [10:57:37]NVStorageDeleteData [10:57:37]Write to MH i2c: 01 00 00 4F 75 C4 [10:57:37]Write i2c OK [10:57:37]MH_I2C_Read... [10:57:37]Read from MH i2c: 01 [10:57:37]MH_I2C_Read... [10:57:37]Read from MH i2c: 01 07 00 [10:57:37]MH_I2C_Read... [10:57:37]Read from MH i2c: 01 07 00 4F 75 00 00 00 00 00 E4 0C BB [10:57:37]RasterBufferAndPrint [10:57:37]line [10:57:37]line [10:57:37]line [10:57:37]line [10:57:37]line [10:57:37]written 0, free lines is 3306 [10:57:37]MH_Cut [10:57:37]Write to MH i2c: D1 01 00 56 75 01 9D [10:57:37]Write i2c OK [10:57:37]MH_I2C_Read... [10:57:37]Read from MH i2c: D1 [10:57:37]MH_I2C_Read... [10:57:37]Read from MH i2c: D1 01 00 [10:57:37]MH_I2C_Read... [10:57:37]Read from MH i2c: D1 01 00 56 75 00 9C [10:57:37]Write to MH i2c: 01 00 00 57 75 CC [10:57:37]Write i2c OK [10:57:37]MH_I2C_Read... [10:57:38]OFD Sender: No OFD packet to send [10:57:38]*** Cut start [10:57:38]*** Partial cut [10:57:38]*** CUTSNS_PIN = 1 [10:57:38]*** CUTSNS_PIN = 0 [10:57:38]*** Brake cut motor [10:57:39]Read from MH i2c: 01 [10:57:39]MH_I2C_Read... [10:57:39]*** Stop cut motor [10:57:39]*** Cut end [10:57:39]Read from MH i2c: 01 07 00 [10:57:39]MH_I2C_Read... [10:57:39]Read from MH i2c: 01 07 00 57 75 00 00 00 00 00 FF 0F E1 [10:57:39]process_action close_receipt done [10:57:39]requested_data is exist [10:57:39]produce_requested_data [10:57:39]requested_item fm.sn is exist - process it [10:57:39]wFMCommunicate request_size=4 [10:57:39]MH_SAM_APDU [10:57:39]CAPDU: 80 11 00 00 [10:57:39]Write to MH i2c: E2 08 00 58 75 80 11 00 00 00 00 00 00 47 [10:57:39]Write i2c OK [10:57:39]MH_I2C_Read... [10:57:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:57:39]Read from MH i2c: E2 [10:57:39]MH_I2C_Read... [10:57:39]Read from MH i2c: E2 17 00 [10:57:39]MH_I2C_Read... [10:57:39]Read from MH i2c: E2 17 00 58 75 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 95 [10:57: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:57:39]wFMCommunicate OK [10:57:39]requested_item fd.num is exist - process it [10:57:39]SAM_PROTO_GetFieldsCounters [10:57:39]wFMCommunicate request_size=4 [10:57:39]MH_SAM_APDU [10:57:39]CAPDU: 80 13 00 00 [10:57:39]Write to MH i2c: E2 08 00 59 75 80 13 00 00 00 00 00 00 4A [10:57:39]Write i2c OK [10:57:39]MH_I2C_Read... [10:57:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:57:39]Read from MH i2c: E2 [10:57:39]MH_I2C_Read... [10:57:39]Read from MH i2c: E2 62 00 [10:57:39]MH_I2C_Read... [10:57:39]Read from MH i2c: E2 62 00 59 75 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 72 [10:57: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 4E 76 00 00 0E 04 04 00 72 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:39]wFMCommunicate OK [10:57:39]SAM_PROTO_GetFieldsCounters done [10:57:39]requested_item shift.num is exist - process it [10:57:39]requested_item shift.opened is exist - process it [10:57:39]req_shift_opened [10:57:39]FM_GetShiftState [10:57:39]SAM_PROTO_GetShiftState [10:57:39]wFMCommunicate request_size=4 [10:57:39]MH_SAM_APDU [10:57:39]CAPDU: 80 13 01 00 [10:57:39]Write to MH i2c: E2 08 00 5A 75 80 13 01 00 00 00 00 00 4C [10:57:39]Write i2c OK [10:57:39]MH_I2C_Read... [10:57:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:57:39]Read from MH i2c: E2 [10:57:39]MH_I2C_Read... [10:57:39]Read from MH i2c: E2 0E 00 [10:57:39]MH_I2C_Read... [10:57:39]Read from MH i2c: E2 0E 00 5A 75 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 32 [10:57:39]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [10:57:39]wFMCommunicate OK [10:57:39]SAM_PROTO_GetShiftState done [10:57:39]FM_GetShiftState done [10:57:39]req_shift_opened done [10:57:39]requested_item shift.open_date is exist - process it [10:57:39]req_shift_open_date [10:57:39]req_shift_open_date done [10:57:39]produce_requested_data done [10:57:39]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30286,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [10:57:39]process_action_free close_receipt [10:57:39]json_value_free [10:57:39]json_value_free done [10:57:39]process_json_proto returns [10:57:39]Send response to host [10:57:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30286,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [10:57:39]free response buf [10:57:39]execute_script done [10:57:39]execute_script returns [10:57:39]free content buf [10:57:39]Sock 7.Close socket [10:57:39]Sock 7.Thread stoped [10:57:43]OFD Sender: No OFD packet to send [10:57:48]OFD Sender: No OFD packet to send [10:57:53]OFD Sender: No OFD packet to send [10:57:58]OFD Sender: No OFD packet to send [10:58:03]OFD Sender: No OFD packet to send [10:58:08]OFD Sender: No OFD packet to send [10:58:13]OFD Sender: No OFD packet to send [10:58:18]OFD Sender: No OFD packet to send [10:58:23]accept exits with 9 [10:58:23]New connection [10:58:23]New thread 3067370852 created [10:58:23]Thread 3067514212 joined [10:58:23]Waiting for new connection... [10:58:23] Sock 9.Parse request [10:58:23]Sock 9.Check first char [10:58:23]Sock 9.First char is OK [10:58:23]request: POST /json_proto HTTP/1.0 [10:58:23]Method: POST [10:58:23]URL: /json_proto [10:58:23]Method is POST - this is cgi request [10:58:23]url: /json_proto [10:58:23]query_string will be loaded in cgi processing [10:58:23]execute_cgi json_proto POST (null) [10:58:23]execute_cgi path=json_proto method=POST [10:58:23]POST find Content-Length [10:58:23]Host: 172.17.51.3:8080 [10:58:23]Content-Length: 677 [10:58:23]Content-Type: application/json [10:58:23] [10:58:23]POST finish read [10:58:23]Found Content-Length = 677 [10:58:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342679", "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" ] } } [10:58:23]execute_script... [10:58:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342679", "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" ] } } [10:58:23]POST & json_proto [10:58:23]process_json_proto [10:58:23]json parsed OK: [10:58:23]protocol is kg_v1.0 [10:58:23]action value=close_receipt [10:58:23]process_action close_receipt [10:58:23]cmd_close_receipt [10:58:23]MH_GetDate [10:58:23]Write to MH i2c: F0 00 00 5B 75 BF [10:58:23]Write i2c OK [10:58:23]MH_I2C_Read... [10:58:23]Read from MH i2c: F0 [10:58:23]MH_I2C_Read... [10:58:23]Read from MH i2c: F0 09 00 [10:58:23]MH_I2C_Read... [10:58:23]Read from MH i2c: F0 09 00 5B 75 00 58 E2 14 67 04 C1 95 66 3D [10:58:23]GetLastDocTimeStamp 1729421864 [10:58:23]current date 1729421912 [10:58:23]FM_GetShiftState [10:58:23]SAM_PROTO_GetShiftState [10:58:23]wFMCommunicate request_size=4 [10:58:23]MH_SAM_APDU [10:58:23]CAPDU: 80 13 01 00 [10:58:23]Write to MH i2c: E2 08 00 5C 75 80 13 01 00 00 00 00 00 4E [10:58:23]Write i2c OK [10:58:23]MH_I2C_Read... [10:58:23]OFD Sender: No OFD packet to send [10:58:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:58:23]Read from MH i2c: E2 [10:58:23]MH_I2C_Read... [10:58:23]Read from MH i2c: E2 0E 00 [10:58:23]MH_I2C_Read... [10:58:23]Read from MH i2c: E2 0E 00 5C 75 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 34 [10:58:23]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [10:58:23]wFMCommunicate OK [10:58:23]SAM_PROTO_GetShiftState done [10:58:23]FM_GetShiftState done [10:58:23]opened in 1729384718 [10:58:23]opened+sec_in_day 1729471118 [10:58:23]quantity*price = 50041 [10:58:23]sum+1 = 50042 [10:58:23]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 СНО: Общий режим Чек 69 20.10.2024 10:58 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30287 ФПД: 87592642687913 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T105832&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30287&fm=87592642687913&tin=02508201610067®Number=0000000000186857&sum=50000 [10:58:24]StoreToDocumentArchive [10:58:24]shift 114 fd 30287 [10:58:24]save to /storage/0114/doc_00030287 [10:58:24]save last doc name /storage/0114/doc_00030287 to /storage/kkm_last_doc_name [10:58:24]save OK [10:58:24]Clear old archive folders... [10:58:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:58:24]tlvbuf is 00BE9430 [10:58:24]SAM_PROTO_ClearQueue [10:58:24]wFMCommunicate request_size=4 [10:58:24]MH_SAM_APDU [10:58:24]CAPDU: 80 09 00 00 [10:58:24]Write to MH i2c: E2 08 00 69 75 80 09 00 00 00 00 00 00 50 [10:58:24]Write i2c OK [10:58:24]MH_I2C_Read... [10:58:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:58:24]Read from MH i2c: E2 [10:58:24]MH_I2C_Read... [10:58:24]Read from MH i2c: E2 03 00 [10:58:24]MH_I2C_Read... [10:58:24]Read from MH i2c: E2 03 00 69 75 00 90 00 52 [10:58:24]RAPDU: 90 00 [10:58:24]wFMCommunicate OK [10:58:24]SAM_PROTO_ClearQueue done [10:58:24]KKMCreateOFDPacket [10:58:24]OFDProtocolAddRootSTLVToBuf [10:58:24]FM_MakeSignedData [10:58:24]FM_MakeSignedData [10:58:24]SAM_PROTO_SignData [10:58:24]wFMCommunicate request_size=4 [10:58:24]MH_SAM_APDU [10:58:24]CAPDU: 80 0D 01 02 [10:58:24]Write to MH i2c: E2 08 00 6A 75 80 0D 01 02 00 00 00 00 58 [10:58:24]Write i2c OK [10:58:24]MH_I2C_Read... [10:58:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:58:24]Read from MH i2c: E2 [10:58:24]MH_I2C_Read... [10:58:24]Read from MH i2c: E2 03 00 [10:58:24]MH_I2C_Read... [10:58:24]Read from MH i2c: E2 03 00 6A 75 00 90 00 53 [10:58:24]RAPDU: 90 00 [10:58:24]wFMCommunicate OK [10:58:24]wFMCommunicate request_size=255 [10:58:24]MH_SAM_APDU [10:58: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 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 45 00 00 00 F4 03 04 00 58 E2 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 4F [10:58:24]Write to MH i2c: E2 02 01 6B 75 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 45 00 00 00 F4 03 04 00 58 E2 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 4F 00 00 69 [10:58:24]Write i2c OK [10:58:24]MH_I2C_Read... [10:58:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:58:24]Read from MH i2c: E2 [10:58:24]MH_I2C_Read... [10:58:24]Read from MH i2c: E2 03 00 [10:58:24]MH_I2C_Read... [10:58:24]Read from MH i2c: E2 03 00 6B 75 00 90 00 54 [10:58:24]RAPDU: 90 00 [10:58:24]wFMCommunicate OK [10:58:24]wFMCommunicate request_size=10 [10:58:24]MH_SAM_APDU [10:58:24]CAPDU: 80 0D 02 02 05 AA 40 5A 33 A9 [10:58:24]Write to MH i2c: E2 0D 00 6C 75 80 0D 02 02 05 00 AA 40 5A 33 A9 00 00 85 [10:58:24]Write i2c OK [10:58:24]MH_I2C_Read... [10:58:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:58:24]Read from MH i2c: E2 [10:58:24]MH_I2C_Read... [10:58:24]Read from MH i2c: E2 03 00 [10:58:24]MH_I2C_Read... [10:58:24]Read from MH i2c: E2 03 00 6C 75 00 90 00 55 [10:58:24]RAPDU: 90 00 [10:58:24]wFMCommunicate OK [10:58:24]wFMCommunicate request_size=4 [10:58:24]MH_SAM_APDU [10:58:24]CAPDU: 80 0D 03 02 [10:58:24]Write to MH i2c: E2 08 00 6D 75 80 0D 03 02 00 00 00 00 5D [10:58:24]Write i2c OK [10:58:24]MH_I2C_Read... [10:58:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:58:24]Read from MH i2c: E2 [10:58:24]MH_I2C_Read... [10:58:24]Read from MH i2c: E2 0B 00 [10:58:24]MH_I2C_Read... [10:58:24]Read from MH i2c: E2 0B 00 6D 75 00 F4 B9 E5 FA 31 3C 3E AE 90 00 43 [10:58:24]RAPDU: F4 B9 E5 FA 31 3C 3E AE 90 00 [10:58:24]wFMCommunicate OK [10:58:24]SAM_PROTO_SignData done [10:58:24]FM_MakeSignedData done [10:58:24]CreateOFDProtocolMessage [10:58:24]wFMCommunicate request_size=4 [10:58:24]MH_SAM_APDU [10:58:24]CAPDU: 80 11 00 00 [10:58:24]Write to MH i2c: E2 08 00 6E 75 80 11 00 00 00 00 00 00 5D [10:58:24]Write i2c OK [10:58:24]MH_I2C_Read... [10:58:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:58:25]Read from MH i2c: E2 [10:58:25]MH_I2C_Read... [10:58:25]Read from MH i2c: E2 17 00 [10:58:25]MH_I2C_Read... [10:58:25]Read from MH i2c: E2 17 00 6E 75 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 AB [10:58:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [10:58:25]wFMCommunicate OK [10:58:25]CreateOFDProtocolMessage done [10:58:25]OFDSenderStorePacket 30287 [10:58:25]StoreOFDPacket docnum=30287 [10:58: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 1C FD 07 01 73 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 45 00 00 00 F4 03 04 00 58 E2 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 4F AA 40 5A 33 A9 F4 B9 E5 FA 31 3C 3E AE [10:58:25]CheckFolder [10:58:25]dirname=/storage/ofd_packets [10:58:25]CheckFolder done [10:58:25]ProducePacketName [10:58:25]name=ofd_packets/00030287 [10:58:25]NVStorageSaveData ofd_packets/00030287 [10:58:25]File name is /storage/ofd_packets/00030287 [10:58:25]Write 301 bytes [10:58:25]NVStorageSaveData done [10:58:25]OFDSenderStorePacket done [10:58:25]KKMCreateOFDPacket done [10:58:25]NVStorageSaveData kkm_last_timestamp [10:58:25]File name is /storage/kkm_last_timestamp [10:58:25]Write 4 bytes [10:58:25]NVStorageSaveData done [10:58:25]ExternCall_PrintAddStr [10:58:25]wPrintStart [10:58:25]Write to MH i2c: 01 00 00 6F 75 E4 [10:58:25]Write i2c OK [10:58:25]MH_I2C_Read... [10:58:25]Read from MH i2c: 01 [10:58:25]MH_I2C_Read... [10:58:25]Read from MH i2c: 01 07 00 [10:58:25]MH_I2C_Read... [10:58:25]Read from MH i2c: 01 07 00 6F 75 00 00 00 00 00 FF 0F F9 [10:58:25]RasterBufferAndPrint [10:58:25]line Счет N : (1)342679 [10:58:25]line ИНН: 02508201610067 [10:58:25]line Контрольно-Кассовый Чек [10:58:25]line ПРОДАЖА [10:58:25]line ТРК (МРК, ГНК) : 63 [10:58:25]line Товар: 2710124130 [10:58:25]line Аи-92-К-2 [10:58:25]line 7.480 * 66.90 [10:58:25]line = 500.41 [10:58:25]line НДС 12% НСП 1% [10:58:25]line > о реализуемом товаре [10:58:25]line ОКРУГЛЕНИЕ: -0.41 [10:58:25]line ИТОГО: 500.00 [10:58:25]line Внесено: 500.00 [10:58:25]line СДАЧА: 0.00 [10:58:25]line НСП 1% : 4.43 [10:58:25]line НДС 12% : 53.14 [10:58:25]line Наличными: 500.00 [10:58:25]line Безнал.: 0.00 [10:58:25]line Место: АЗС № 78 "Партнер Нефть" [10:58:25]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [10:58:25]line СНО: Общий режим [10:58:25]line Чек 69 20.10.2024 10:58 [10:58:25]line Смена: 114 ФФД: 1.0 [10:58:25]line ЗНМ: 0300000137 [10:58:25]line РНМ: 0000000000186857 [10:58:25]line Версия ККМ: v1.0 [10:58:25]line ФМ: 0000000002094219 [10:58:25]line ФД: 30287 [10:58:25]line ФПД: 87592642687913 [10:58:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T105832&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30287&fm=87592642687913&tin=02508201610067®Number=0000000000186857&sum=50000 [10:58:25]OFD Sender: Processing packet 30287 [packets to send 10, broken 9] [10:58:25]ProducePacketName [10:58:25]name=ofd_packets/00030287 [10:58:25]OFD Sender: To server: pG, [10:58:25]CommunicateWithHost lk.salyk.kg:30040 [10:58:25]ConnectInit lk.salyk.kg [10:58:25]written 0, free lines is 4095 [10:58:25]Connected sock=10 [10:58: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 1C FD 07 01 73 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 45 00 00 00 F4 03 04 00 58 E2 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 4F AA 40 5A 33 A9 F4 B9 E5 FA 31 3C 3E AE [10:58: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 5F 9C 47 00 7B 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 4F 76 00 00 F4 03 04 00 DC 8C 14 67 B6 04 01 00 00 9C 60 DD 60 27 8C F4 C0 [10:58:25]CommunicateWithHost err = 0 [10:58:25]CheckOFDResponse [10:58:25]1017 (14) - 77093643461234 [10:58:25]1041 (16) - 0000000002094219 [10:58:25]1040 (4) - 30287 [10:58:25]1012 (4) - 20.10.2024 04:53 [10:58:25]1206 (1) - 0 [10:58:25]OFD Sender: Remove packet 30287 [10:58:25]ProducePacketName [10:58:25]name=ofd_packets/00030287 [10:58:25]NVStorageDeleteData [10:58:25]Write to MH i2c: 01 00 00 9A 75 0F [10:58:25]Write i2c OK [10:58:25]MH_I2C_Read... [10:58:25]Read from MH i2c: 01 [10:58:25]MH_I2C_Read... [10:58:25]Read from MH i2c: 01 07 00 [10:58:25]MH_I2C_Read... [10:58:25]Read from MH i2c: 01 07 00 9A 75 00 00 00 00 00 EA 0C 0C [10:58:25]RasterBufferAndPrint [10:58:25]line [10:58:25]line [10:58:25]line [10:58:25]line [10:58:25]line [10:58:25]written 0, free lines is 3315 [10:58:25]MH_Cut [10:58:25]Write to MH i2c: D1 01 00 A1 75 01 E8 [10:58:25]Write i2c OK [10:58:25]MH_I2C_Read... [10:58:25]Read from MH i2c: D1 [10:58:25]MH_I2C_Read... [10:58:25]Read from MH i2c: D1 01 00 [10:58:25]MH_I2C_Read... [10:58:25]Read from MH i2c: D1 01 00 A1 75 00 E7 [10:58:25]Write to MH i2c: 01 00 00 A2 75 17 [10:58:25]Write i2c OK [10:58:25]MH_I2C_Read... [10:58:26]OFD Sender: No OFD packet to send [10:58:26]*** Cut start [10:58:26]*** Partial cut [10:58:26]*** CUTSNS_PIN = 1 [10:58:26]*** CUTSNS_PIN = 0 [10:58:26]*** Brake cut motor [10:58:27]Read from MH i2c: 01 [10:58:27]MH_I2C_Read... [10:58:27]*** Stop cut motor [10:58:27]*** Cut end [10:58:27]Read from MH i2c: 01 07 00 [10:58:27]MH_I2C_Read... [10:58:27]Read from MH i2c: 01 07 00 A2 75 00 00 00 00 00 FF 0F 2C [10:58:27]process_action close_receipt done [10:58:27]requested_data is exist [10:58:27]produce_requested_data [10:58:27]requested_item fm.sn is exist - process it [10:58:27]wFMCommunicate request_size=4 [10:58:27]MH_SAM_APDU [10:58:27]CAPDU: 80 11 00 00 [10:58:27]Write to MH i2c: E2 08 00 A3 75 80 11 00 00 00 00 00 00 92 [10:58:27]Write i2c OK [10:58:27]MH_I2C_Read... [10:58:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:58:27]Read from MH i2c: E2 [10:58:27]MH_I2C_Read... [10:58:27]Read from MH i2c: E2 17 00 [10:58:27]MH_I2C_Read... [10:58:27]Read from MH i2c: E2 17 00 A3 75 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 E0 [10:58:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [10:58:27]wFMCommunicate OK [10:58:27]requested_item fd.num is exist - process it [10:58:27]SAM_PROTO_GetFieldsCounters [10:58:27]wFMCommunicate request_size=4 [10:58:27]MH_SAM_APDU [10:58:27]CAPDU: 80 13 00 00 [10:58:27]Write to MH i2c: E2 08 00 A4 75 80 13 00 00 00 00 00 00 95 [10:58:27]Write i2c OK [10:58:27]MH_I2C_Read... [10:58:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:58:27]Read from MH i2c: E2 [10:58:27]MH_I2C_Read... [10:58:27]Read from MH i2c: E2 62 00 [10:58:27]MH_I2C_Read... [10:58:27]Read from MH i2c: E2 62 00 A4 75 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 C1 [10:58: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 4F 76 00 00 0E 04 04 00 72 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 [10:58:27]wFMCommunicate OK [10:58:27]SAM_PROTO_GetFieldsCounters done [10:58:27]requested_item shift.num is exist - process it [10:58:27]requested_item shift.opened is exist - process it [10:58:27]req_shift_opened [10:58:27]FM_GetShiftState [10:58:27]SAM_PROTO_GetShiftState [10:58:27]wFMCommunicate request_size=4 [10:58:27]MH_SAM_APDU [10:58:27]CAPDU: 80 13 01 00 [10:58:27]Write to MH i2c: E2 08 00 A5 75 80 13 01 00 00 00 00 00 97 [10:58:27]Write i2c OK [10:58:27]MH_I2C_Read... [10:58:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:58:27]Read from MH i2c: E2 [10:58:27]MH_I2C_Read... [10:58:27]Read from MH i2c: E2 0E 00 [10:58:27]MH_I2C_Read... [10:58:27]Read from MH i2c: E2 0E 00 A5 75 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 7D [10:58:27]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [10:58:27]wFMCommunicate OK [10:58:27]SAM_PROTO_GetShiftState done [10:58:27]FM_GetShiftState done [10:58:27]req_shift_opened done [10:58:27]requested_item shift.open_date is exist - process it [10:58:27]req_shift_open_date [10:58:27]req_shift_open_date done [10:58:27]produce_requested_data done [10:58:27]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30287,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [10:58:27]process_action_free close_receipt [10:58:27]json_value_free [10:58:27]json_value_free done [10:58:27]process_json_proto returns [10:58:27]Send response to host [10:58:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30287,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [10:58:27]free response buf [10:58:27]execute_script done [10:58:27]execute_script returns [10:58:27]free content buf [10:58:27]Sock 9.Close socket [10:58:27]Sock 9.Thread stoped [10:58:31]OFD Sender: No OFD packet to send [10:58:36]OFD Sender: No OFD packet to send [10:58:41]OFD Sender: No OFD packet to send [10:58:46]OFD Sender: No OFD packet to send [10:58:51]OFD Sender: No OFD packet to send [10:58:56]OFD Sender: No OFD packet to send [10:59:01]OFD Sender: No OFD packet to send [10:59:06]OFD Sender: No OFD packet to send [10:59:11]OFD Sender: No OFD packet to send [10:59:16]OFD Sender: No OFD packet to send [10:59:21]OFD Sender: No OFD packet to send [10:59:25]accept exits with 7 [10:59:25]New connection [10:59:25]New thread 3067514212 created [10:59:25]Thread 3067370852 joined [10:59:25]Waiting for new connection... [10:59:25] Sock 7.Parse request [10:59:25]Sock 7.Check first char [10:59:25]Sock 7.First char is OK [10:59:25]request: POST /json_proto HTTP/1.0 [10:59:25]Method: POST [10:59:25]URL: /json_proto [10:59:25]Method is POST - this is cgi request [10:59:25]url: /json_proto [10:59:25]query_string will be loaded in cgi processing [10:59:25]execute_cgi json_proto POST (null) [10:59:25]execute_cgi path=json_proto method=POST [10:59:25]POST find Content-Length [10:59:25]Host: 172.17.51.3:8080 [10:59:25]Content-Length: 677 [10:59:25]Content-Type: application/json [10:59:25] [10:59:25]POST finish read [10:59:25]Found Content-Length = 677 [10:59:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342680", "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" : 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" ] } } [10:59:25]execute_script... [10:59:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342680", "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" : 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" ] } } [10:59:25]POST & json_proto [10:59:25]process_json_proto [10:59:25]json parsed OK: [10:59:25]protocol is kg_v1.0 [10:59:25]action value=close_receipt [10:59:25]process_action close_receipt [10:59:25]cmd_close_receipt [10:59:25]MH_GetDate [10:59:25]Write to MH i2c: F0 00 00 A6 75 0A [10:59:25]Write i2c OK [10:59:25]MH_I2C_Read... [10:59:25]Read from MH i2c: F0 [10:59:25]MH_I2C_Read... [10:59:25]Read from MH i2c: F0 09 00 [10:59:25]MH_I2C_Read... [10:59:25]Read from MH i2c: F0 09 00 A6 75 00 96 E2 14 67 04 C1 95 66 C6 [10:59:25]GetLastDocTimeStamp 1729421912 [10:59:25]current date 1729421974 [10:59:25]FM_GetShiftState [10:59:25]SAM_PROTO_GetShiftState [10:59:25]wFMCommunicate request_size=4 [10:59:25]MH_SAM_APDU [10:59:25]CAPDU: 80 13 01 00 [10:59:25]Write to MH i2c: E2 08 00 A7 75 80 13 01 00 00 00 00 00 99 [10:59:25]Write i2c OK [10:59:25]MH_I2C_Read... [10:59:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:59:25]Read from MH i2c: E2 [10:59:25]MH_I2C_Read... [10:59:25]Read from MH i2c: E2 0E 00 [10:59:25]MH_I2C_Read... [10:59:25]Read from MH i2c: E2 0E 00 A7 75 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 7F [10:59:25]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [10:59:25]wFMCommunicate OK [10:59:25]SAM_PROTO_GetShiftState done [10:59:25]FM_GetShiftState done [10:59:25]opened in 1729384718 [10:59:25]opened+sec_in_day 1729471118 [10:59:25]quantity*price = 60009 [10:59:25]sum+1 = 60010 [10:59:25]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 СНО: Общий режим Чек 70 20.10.2024 10:59 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30288 ФПД: 172605248310465 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T105934&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30288&fm=172605248310465&tin=02508201610067®Number=0000000000186857&sum=60000 [10:59:26]StoreToDocumentArchive [10:59:26]shift 114 fd 30288 [10:59:26]save to /storage/0114/doc_00030288 [10:59:26]save last doc name /storage/0114/doc_00030288 to /storage/kkm_last_doc_name [10:59:26]save OK [10:59:26]Clear old archive folders... [10:59:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:59:26]tlvbuf is B6F634B0 [10:59:26]SAM_PROTO_ClearQueue [10:59:26]wFMCommunicate request_size=4 [10:59:26]MH_SAM_APDU [10:59:26]CAPDU: 80 09 00 00 [10:59:26]Write to MH i2c: E2 08 00 B4 75 80 09 00 00 00 00 00 00 9B [10:59:26]Write i2c OK [10:59:26]MH_I2C_Read... [10:59:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:59:26]Read from MH i2c: E2 [10:59:26]MH_I2C_Read... [10:59:26]Read from MH i2c: E2 03 00 [10:59:26]MH_I2C_Read... [10:59:26]Read from MH i2c: E2 03 00 B4 75 00 90 00 9D [10:59:26]RAPDU: 90 00 [10:59:26]wFMCommunicate OK [10:59:26]SAM_PROTO_ClearQueue done [10:59:26]KKMCreateOFDPacket [10:59:26]OFDProtocolAddRootSTLVToBuf [10:59:26]FM_MakeSignedData [10:59:26]FM_MakeSignedData [10:59:26]SAM_PROTO_SignData [10:59:26]wFMCommunicate request_size=4 [10:59:26]MH_SAM_APDU [10:59:26]CAPDU: 80 0D 01 02 [10:59:26]Write to MH i2c: E2 08 00 B5 75 80 0D 01 02 00 00 00 00 A3 [10:59:26]Write i2c OK [10:59:26]MH_I2C_Read... [10:59:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:59:26]Read from MH i2c: E2 [10:59:26]MH_I2C_Read... [10:59:26]Read from MH i2c: E2 03 00 [10:59:26]MH_I2C_Read... [10:59:26]Read from MH i2c: E2 03 00 B5 75 00 90 00 9E [10:59:26]RAPDU: 90 00 [10:59:26]wFMCommunicate OK [10:59:26]wFMCommunicate request_size=255 [10:59:26]MH_SAM_APDU [10:59: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 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 46 00 00 00 F4 03 04 00 96 E2 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 9C [10:59:26]Write to MH i2c: E2 02 01 B6 75 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 46 00 00 00 F4 03 04 00 96 E2 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 9C 00 00 1E [10:59:26]Write i2c OK [10:59:26]MH_I2C_Read... [10:59:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:59:26]Read from MH i2c: E2 [10:59:26]MH_I2C_Read... [10:59:26]Read from MH i2c: E2 03 00 [10:59:26]MH_I2C_Read... [10:59:26]Read from MH i2c: E2 03 00 B6 75 00 90 00 9F [10:59:26]RAPDU: 90 00 [10:59:26]wFMCommunicate OK [10:59:26]wFMCommunicate request_size=10 [10:59:26]MH_SAM_APDU [10:59:26]CAPDU: 80 0D 02 02 05 FB CA 83 0C C1 [10:59:26]Write to MH i2c: E2 0D 00 B7 75 80 0D 02 02 05 00 FB CA 83 0C C1 00 00 C5 [10:59:26]Write i2c OK [10:59:26]MH_I2C_Read... [10:59:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:59:26]Read from MH i2c: E2 [10:59:26]MH_I2C_Read... [10:59:26]Read from MH i2c: E2 03 00 [10:59:26]MH_I2C_Read... [10:59:26]Read from MH i2c: E2 03 00 B7 75 00 90 00 A0 [10:59:26]RAPDU: 90 00 [10:59:26]wFMCommunicate OK [10:59:26]wFMCommunicate request_size=4 [10:59:26]MH_SAM_APDU [10:59:26]CAPDU: 80 0D 03 02 [10:59:26]Write to MH i2c: E2 08 00 B8 75 80 0D 03 02 00 00 00 00 A8 [10:59:26]Write i2c OK [10:59:26]MH_I2C_Read... [10:59:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:59:26]Read from MH i2c: E2 [10:59:26]MH_I2C_Read... [10:59:26]Read from MH i2c: E2 0B 00 [10:59:26]MH_I2C_Read... [10:59:26]Read from MH i2c: E2 0B 00 B8 75 00 44 35 9B 59 33 F6 44 5D 90 00 E0 [10:59:26]RAPDU: 44 35 9B 59 33 F6 44 5D 90 00 [10:59:26]wFMCommunicate OK [10:59:26]SAM_PROTO_SignData done [10:59:26]FM_MakeSignedData done [10:59:26]CreateOFDProtocolMessage [10:59:26]wFMCommunicate request_size=4 [10:59:26]MH_SAM_APDU [10:59:26]CAPDU: 80 11 00 00 [10:59:26]Write to MH i2c: E2 08 00 B9 75 80 11 00 00 00 00 00 00 A8 [10:59:26]Write i2c OK [10:59:26]MH_I2C_Read... [10:59:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:59:26]Read from MH i2c: E2 [10:59:26]MH_I2C_Read... [10:59:26]Read from MH i2c: E2 17 00 [10:59:26]MH_I2C_Read... [10:59:26]Read from MH i2c: E2 17 00 B9 75 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 F6 [10:59:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [10:59:26]wFMCommunicate OK [10:59:26]CreateOFDProtocolMessage done [10:59:26]OFDSenderStorePacket 30288 [10:59:26]StoreOFDPacket docnum=30288 [10:59: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 44 90 07 01 C7 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 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 46 00 00 00 F4 03 04 00 96 E2 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 9C FB CA 83 0C C1 44 35 9B 59 33 F6 44 5D [10:59:26]CheckFolder [10:59:26]dirname=/storage/ofd_packets [10:59:26]CheckFolder done [10:59:26]ProducePacketName [10:59:26]name=ofd_packets/00030288 [10:59:26]NVStorageSaveData ofd_packets/00030288 [10:59:26]File name is /storage/ofd_packets/00030288 [10:59:26]Write 301 bytes [10:59:26]NVStorageSaveData done [10:59:26]OFDSenderStorePacket done [10:59:26]KKMCreateOFDPacket done [10:59:26]NVStorageSaveData kkm_last_timestamp [10:59:26]File name is /storage/kkm_last_timestamp [10:59:26]Write 4 bytes [10:59:26]NVStorageSaveData done [10:59:26]ExternCall_PrintAddStr [10:59:26]wPrintStart [10:59:26]Write to MH i2c: 01 00 00 BA 75 2F [10:59:26]Write i2c OK [10:59:26]MH_I2C_Read... [10:59:26]Read from MH i2c: 01 [10:59:26]MH_I2C_Read... [10:59:26]Read from MH i2c: 01 07 00 [10:59:26]MH_I2C_Read... [10:59:26]Read from MH i2c: 01 07 00 BA 75 00 00 00 00 00 FF 0F 44 [10:59:26]RasterBufferAndPrint [10:59:26]line Счет N : (1)342680 [10:59:26]line ИНН: 02508201610067 [10:59:26]line Контрольно-Кассовый Чек [10:59:26]line ПРОДАЖА [10:59:26]line ТРК (МРК, ГНК) : 43 [10:59:26]line Товар: 2710124130 [10:59:26]line Аи-92-К-2 [10:59:26]line 8.970 * 66.90 [10:59:26]line = 600.09 [10:59:26]line НДС 12% НСП 1% [10:59:26]line > о реализуемом товаре [10:59:26]line ОКРУГЛЕНИЕ: -0.09 [10:59:26]line ИТОГО: 600.00 [10:59:26]line Внесено: 600.00 [10:59:26]line СДАЧА: 0.00 [10:59:26]line НСП 1% : 5.31 [10:59:26]line НДС 12% : 63.73 [10:59:26]line Наличными: 600.00 [10:59:26]line Безнал.: 0.00 [10:59:26]line Место: АЗС № 78 "Партнер Нефть" [10:59:26]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [10:59:26]line СНО: Общий режим [10:59:26]line Чек 70 20.10.2024 10:59 [10:59:26]line Смена: 114 ФФД: 1.0 [10:59:26]line ЗНМ: 0300000137 [10:59:26]line РНМ: 0000000000186857 [10:59:26]line Версия ККМ: v1.0 [10:59:26]line ФМ: 0000000002094219 [10:59:26]line ФД: 30288 [10:59:26]line ФПД: 172605248310465 [10:59:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T105934&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30288&fm=172605248310465&tin=02508201610067®Number=0000000000186857&sum=60000 [10:59:27]OFD Sender: Processing packet 30288 [packets to send 10, broken 9] [10:59:27]ProducePacketName [10:59:27]name=ofd_packets/00030288 [10:59:27]OFD Sender: To server: pG, [10:59:27]CommunicateWithHost lk.salyk.kg:30040 [10:59:27]ConnectInit lk.salyk.kg [10:59:27]written 0, free lines is 4095 [10:59:27]Connected sock=10 [10:59: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 44 90 07 01 C7 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 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 46 00 00 00 F4 03 04 00 96 E2 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 9C FB CA 83 0C C1 44 35 9B 59 33 F6 44 5D [10:59: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 23 AD 47 00 BC 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 50 76 00 00 F4 03 04 00 1A 8D 14 67 B6 04 01 00 00 4C 73 E6 89 3F 6B D5 37 [10:59:27]CommunicateWithHost err = 0 [10:59:27]CheckOFDResponse [10:59:27]1017 (14) - 77093643461234 [10:59:27]1041 (16) - 0000000002094219 [10:59:27]1040 (4) - 30288 [10:59:27]1012 (4) - 20.10.2024 04:54 [10:59:27]1206 (1) - 0 [10:59:27]OFD Sender: Remove packet 30288 [10:59:27]ProducePacketName [10:59:27]name=ofd_packets/00030288 [10:59:27]NVStorageDeleteData [10:59:27]Write to MH i2c: 01 00 00 E5 75 5A [10:59:27]Write i2c OK [10:59:27]MH_I2C_Read... [10:59:27]Read from MH i2c: 01 [10:59:27]MH_I2C_Read... [10:59:27]Read from MH i2c: 01 07 00 [10:59:27]MH_I2C_Read... [10:59:27]Read from MH i2c: 01 07 00 E5 75 00 00 00 00 00 EE 0C 5B [10:59:27]RasterBufferAndPrint [10:59:27]line [10:59:27]line [10:59:27]line [10:59:27]line [10:59:27]line [10:59:27]written 0, free lines is 3316 [10:59:27]MH_Cut [10:59:27]Write to MH i2c: D1 01 00 EC 75 01 33 [10:59:27]Write i2c OK [10:59:27]MH_I2C_Read... [10:59:27]Read from MH i2c: D1 [10:59:27]MH_I2C_Read... [10:59:27]Read from MH i2c: D1 01 00 [10:59:27]MH_I2C_Read... [10:59:27]Read from MH i2c: D1 01 00 EC 75 00 32 [10:59:27]Write to MH i2c: 01 00 00 ED 75 62 [10:59:27]Write i2c OK [10:59:27]MH_I2C_Read... [10:59:28]OFD Sender: No OFD packet to send [10:59:28]*** Cut start [10:59:28]*** Partial cut [10:59:28]*** CUTSNS_PIN = 1 [10:59:28]*** CUTSNS_PIN = 0 [10:59:28]*** Brake cut motor [10:59:29]Read from MH i2c: 01 [10:59:29]MH_I2C_Read... [10:59:29]*** Stop cut motor [10:59:29]*** Cut end [10:59:29]Read from MH i2c: 01 07 00 [10:59:29]MH_I2C_Read... [10:59:29]Read from MH i2c: 01 07 00 ED 75 00 00 00 00 00 FF 0F 77 [10:59:29]process_action close_receipt done [10:59:29]requested_data is exist [10:59:29]produce_requested_data [10:59:29]requested_item fm.sn is exist - process it [10:59:29]wFMCommunicate request_size=4 [10:59:29]MH_SAM_APDU [10:59:29]CAPDU: 80 11 00 00 [10:59:29]Write to MH i2c: E2 08 00 EE 75 80 11 00 00 00 00 00 00 DD [10:59:29]Write i2c OK [10:59:29]MH_I2C_Read... [10:59:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:59:29]Read from MH i2c: E2 [10:59:29]MH_I2C_Read... [10:59:29]Read from MH i2c: E2 17 00 [10:59:29]MH_I2C_Read... [10:59:29]Read from MH i2c: E2 17 00 EE 75 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 2B [10:59:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [10:59:29]wFMCommunicate OK [10:59:29]requested_item fd.num is exist - process it [10:59:29]SAM_PROTO_GetFieldsCounters [10:59:29]wFMCommunicate request_size=4 [10:59:29]MH_SAM_APDU [10:59:29]CAPDU: 80 13 00 00 [10:59:29]Write to MH i2c: E2 08 00 EF 75 80 13 00 00 00 00 00 00 E0 [10:59:29]Write i2c OK [10:59:29]MH_I2C_Read... [10:59:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:59:29]Read from MH i2c: E2 [10:59:29]MH_I2C_Read... [10:59:29]Read from MH i2c: E2 62 00 [10:59:29]MH_I2C_Read... [10:59:29]Read from MH i2c: E2 62 00 EF 75 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 10 [10:59: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 50 76 00 00 0E 04 04 00 72 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 [10:59:29]wFMCommunicate OK [10:59:29]SAM_PROTO_GetFieldsCounters done [10:59:29]requested_item shift.num is exist - process it [10:59:29]requested_item shift.opened is exist - process it [10:59:29]req_shift_opened [10:59:29]FM_GetShiftState [10:59:29]SAM_PROTO_GetShiftState [10:59:29]wFMCommunicate request_size=4 [10:59:29]MH_SAM_APDU [10:59:29]CAPDU: 80 13 01 00 [10:59:29]Write to MH i2c: E2 08 00 F0 75 80 13 01 00 00 00 00 00 E2 [10:59:29]Write i2c OK [10:59:29]MH_I2C_Read... [10:59:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:59:29]Read from MH i2c: E2 [10:59:29]MH_I2C_Read... [10:59:29]Read from MH i2c: E2 0E 00 [10:59:29]MH_I2C_Read... [10:59:29]Read from MH i2c: E2 0E 00 F0 75 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 C8 [10:59:29]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [10:59:29]wFMCommunicate OK [10:59:29]SAM_PROTO_GetShiftState done [10:59:29]FM_GetShiftState done [10:59:29]req_shift_opened done [10:59:29]requested_item shift.open_date is exist - process it [10:59:29]req_shift_open_date [10:59:29]req_shift_open_date done [10:59:29]produce_requested_data done [10:59:29]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30288,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [10:59:29]process_action_free close_receipt [10:59:29]json_value_free [10:59:29]json_value_free done [10:59:29]process_json_proto returns [10:59:29]Send response to host [10:59:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30288,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [10:59:29]free response buf [10:59:29]execute_script done [10:59:29]execute_script returns [10:59:29]free content buf [10:59:29]Sock 7.Close socket [10:59:29]Sock 7.Thread stoped [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:19]accept exits with 9 [11:02:19]New connection [11:02:19]New thread 3067370852 created [11:02:19]Thread 3067514212 joined [11:02:19]Waiting for new connection... [11:02:19] Sock 9.Parse request [11:02:19]Sock 9.Check first char [11:02:19]Sock 9.First char is OK [11:02:19]request: POST /json_proto HTTP/1.0 [11:02:19]Method: POST [11:02:19]URL: /json_proto [11:02:19]Method is POST - this is cgi request [11:02:19]url: /json_proto [11:02:19]query_string will be loaded in cgi processing [11:02:19]execute_cgi json_proto POST (null) [11:02:19]execute_cgi path=json_proto method=POST [11:02:19]POST find Content-Length [11:02:19]Host: 172.17.51.3:8080 [11:02:19]Content-Length: 682 [11:02:19]Content-Type: application/json [11:02:19] [11:02:19]POST finish read [11:02:19]Found Content-Length = 682 [11:02:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342681", "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" ] } } [11:02:19]execute_script... [11:02: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)342681", "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" ] } } [11:02:19]POST & json_proto [11:02:19]process_json_proto [11:02:19]json parsed OK: [11:02:19]protocol is kg_v1.0 [11:02:19]action value=close_receipt [11:02:19]process_action close_receipt [11:02:19]cmd_close_receipt [11:02:19]MH_GetDate [11:02:19]Write to MH i2c: F0 00 00 F1 75 55 [11:02:19]Write i2c OK [11:02:19]MH_I2C_Read... [11:02:19]Read from MH i2c: F0 [11:02:19]MH_I2C_Read... [11:02:19]Read from MH i2c: F0 09 00 [11:02:19]MH_I2C_Read... [11:02:19]Read from MH i2c: F0 09 00 F1 75 00 44 E3 14 67 04 C1 95 66 C0 [11:02:19]GetLastDocTimeStamp 1729421974 [11:02:19]current date 1729422148 [11:02:19]FM_GetShiftState [11:02:19]SAM_PROTO_GetShiftState [11:02:19]wFMCommunicate request_size=4 [11:02:19]MH_SAM_APDU [11:02:19]CAPDU: 80 13 01 00 [11:02:19]Write to MH i2c: E2 08 00 F2 75 80 13 01 00 00 00 00 00 E4 [11:02:19]Write i2c OK [11:02:19]MH_I2C_Read... [11:02:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:02:19]Read from MH i2c: E2 [11:02:19]MH_I2C_Read... [11:02:19]Read from MH i2c: E2 0E 00 [11:02:19]MH_I2C_Read... [11:02:19]Read from MH i2c: E2 0E 00 F2 75 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 CA [11:02:19]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [11:02:19]wFMCommunicate OK [11:02:19]SAM_PROTO_GetShiftState done [11:02:19]FM_GetShiftState done [11:02:19]opened in 1729384718 [11:02:19]opened+sec_in_day 1729471118 [11:02:19]quantity*price = 100021 [11:02:19]sum+1 = 100023 [11:02:19]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 СНО: Общий режим Чек 71 20.10.2024 11:02 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30289 ФПД: 133487190421760 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T110228&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30289&fm=133487190421760&tin=02508201610067®Number=0000000000186857&sum=100000 [11:02:20]StoreToDocumentArchive [11:02:20]shift 114 fd 30289 [11:02:20]save to /storage/0114/doc_00030289 [11:02:20]save last doc name /storage/0114/doc_00030289 to /storage/kkm_last_doc_name [11:02:20]save OK [11:02:20]Clear old archive folders... [11:02:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:02:20]tlvbuf is 00B0ED90 [11:02:20]SAM_PROTO_ClearQueue [11:02:20]wFMCommunicate request_size=4 [11:02:20]MH_SAM_APDU [11:02:20]CAPDU: 80 09 00 00 [11:02:20]Write to MH i2c: E2 08 00 FF 75 80 09 00 00 00 00 00 00 E6 [11:02:20]Write i2c OK [11:02:20]MH_I2C_Read... [11:02:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:02:20]Read from MH i2c: E2 [11:02:20]MH_I2C_Read... [11:02:20]Read from MH i2c: E2 03 00 [11:02:20]MH_I2C_Read... [11:02:20]Read from MH i2c: E2 03 00 FF 75 00 90 00 E8 [11:02:20]RAPDU: 90 00 [11:02:20]wFMCommunicate OK [11:02:20]SAM_PROTO_ClearQueue done [11:02:20]KKMCreateOFDPacket [11:02:20]OFDProtocolAddRootSTLVToBuf [11:02:20]FM_MakeSignedData [11:02:20]FM_MakeSignedData [11:02:20]SAM_PROTO_SignData [11:02:20]wFMCommunicate request_size=4 [11:02:20]MH_SAM_APDU [11:02:20]CAPDU: 80 0D 01 02 [11:02:20]Write to MH i2c: E2 08 00 00 76 80 0D 01 02 00 00 00 00 EF [11:02:20]Write i2c OK [11:02:20]MH_I2C_Read... [11:02:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:02:21]Read from MH i2c: E2 [11:02:21]MH_I2C_Read... [11:02:21]Read from MH i2c: E2 03 00 [11:02:21]MH_I2C_Read... [11:02:21]Read from MH i2c: E2 03 00 00 76 00 90 00 EA [11:02:21]RAPDU: 90 00 [11:02:21]wFMCommunicate OK [11:02:21]wFMCommunicate request_size=255 [11:02:21]MH_SAM_APDU [11:02: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 47 00 00 00 F4 03 04 00 44 E3 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 79 [11:02:21]Write to MH i2c: E2 02 01 01 76 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 47 00 00 00 F4 03 04 00 44 E3 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 79 00 00 39 [11:02:21]Write i2c OK [11:02:21]MH_I2C_Read... [11:02:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:02:21]Read from MH i2c: E2 [11:02:21]MH_I2C_Read... [11:02:21]Read from MH i2c: E2 03 00 [11:02:21]MH_I2C_Read... [11:02:21]Read from MH i2c: E2 03 00 01 76 00 90 00 EB [11:02:21]RAPDU: 90 00 [11:02:21]wFMCommunicate OK [11:02:21]wFMCommunicate request_size=10 [11:02:21]MH_SAM_APDU [11:02:21]CAPDU: 80 0D 02 02 05 67 E8 91 31 00 [11:02:21]Write to MH i2c: E2 0D 00 02 76 80 0D 02 02 05 00 67 E8 91 31 00 00 00 0D [11:02:21]Write i2c OK [11:02:21]MH_I2C_Read... [11:02:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:02:21]Read from MH i2c: E2 [11:02:21]MH_I2C_Read... [11:02:21]Read from MH i2c: E2 03 00 [11:02:21]MH_I2C_Read... [11:02:21]Read from MH i2c: E2 03 00 02 76 00 90 00 EC [11:02:21]RAPDU: 90 00 [11:02:21]wFMCommunicate OK [11:02:21]wFMCommunicate request_size=4 [11:02:21]MH_SAM_APDU [11:02:21]CAPDU: 80 0D 03 02 [11:02:21]Write to MH i2c: E2 08 00 03 76 80 0D 03 02 00 00 00 00 F4 [11:02:21]Write i2c OK [11:02:21]MH_I2C_Read... [11:02:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:02:21]Read from MH i2c: E2 [11:02:21]MH_I2C_Read... [11:02:21]Read from MH i2c: E2 0B 00 [11:02:21]MH_I2C_Read... [11:02:21]Read from MH i2c: E2 0B 00 03 76 00 BD 94 A7 AE 0B D3 08 50 90 00 D1 [11:02:21]RAPDU: BD 94 A7 AE 0B D3 08 50 90 00 [11:02:21]wFMCommunicate OK [11:02:21]SAM_PROTO_SignData done [11:02:21]FM_MakeSignedData done [11:02:21]CreateOFDProtocolMessage [11:02:21]wFMCommunicate request_size=4 [11:02:21]MH_SAM_APDU [11:02:21]CAPDU: 80 11 00 00 [11:02:21]Write to MH i2c: E2 08 00 04 76 80 11 00 00 00 00 00 00 F4 [11:02:21]Write i2c OK [11:02:21]MH_I2C_Read... [11:02:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:02:21]Read from MH i2c: E2 [11:02:21]MH_I2C_Read... [11:02:21]Read from MH i2c: E2 17 00 [11:02:21]MH_I2C_Read... [11:02:21]Read from MH i2c: E2 17 00 04 76 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 42 [11:02: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:02:21]wFMCommunicate OK [11:02:21]CreateOFDProtocolMessage done [11:02:21]OFDSenderStorePacket 30289 [11:02:21]StoreOFDPacket docnum=30289 [11:02: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 E7 DD 07 01 77 0F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 47 00 00 00 F4 03 04 00 44 E3 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 79 67 E8 91 31 00 BD 94 A7 AE 0B D3 08 50 [11:02:21]CheckFolder [11:02:21]dirname=/storage/ofd_packets [11:02:21]CheckFolder done [11:02:21]ProducePacketName [11:02:21]name=ofd_packets/00030289 [11:02:21]NVStorageSaveData ofd_packets/00030289 [11:02:21]File name is /storage/ofd_packets/00030289 [11:02:21]Write 301 bytes [11:02:21]NVStorageSaveData done [11:02:21]OFDSenderStorePacket done [11:02:21]KKMCreateOFDPacket done [11:02:21]NVStorageSaveData kkm_last_timestamp [11:02:21]File name is /storage/kkm_last_timestamp [11:02:21]Write 4 bytes [11:02:21]NVStorageSaveData done [11:02:21]ExternCall_PrintAddStr [11:02:21]wPrintStart [11:02:21]Write to MH i2c: 01 00 00 05 76 7B [11:02:21]Write i2c OK [11:02:21]MH_I2C_Read... [11:02:21]Read from MH i2c: 01 [11:02:21]MH_I2C_Read... [11:02:21]Read from MH i2c: 01 07 00 [11:02:21]MH_I2C_Read... [11:02:21]Read from MH i2c: 01 07 00 05 76 00 00 00 00 00 FF 0F 90 [11:02:21]RasterBufferAndPrint [11:02:21]line Счет N : (1)342681 [11:02:21]line ИНН: 02508201610067 [11:02:21]line Контрольно-Кассовый Чек [11:02:21]line ПРОДАЖА [11:02:21]line ТРК (МРК, ГНК) : 52 [11:02:21]line Товар: 2710124500 [11:02:21]line Аи-95-К-3 [11:02:21]line 13.480 * 74.20 [11:02:21]line = 1000.22 [11:02:21]line НДС 12% НСП 1% [11:02:21]line > о реализуемом товаре [11:02:21]line ОКРУГЛЕНИЕ: -0.22 [11:02:21]line ИТОГО: 1000.00 [11:02:21]line Внесено: 1000.00 [11:02:21]line СДАЧА: 0.00 [11:02:21]line НСП 1% : 8.85 [11:02:21]line НДС 12% : 106.22 [11:02:21]line Наличными: 1000.00 [11:02:21]line Безнал.: 0.00 [11:02:21]line Место: АЗС № 78 "Партнер Нефть" [11:02:21]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [11:02:21]line СНО: Общий режим [11:02:21]line Чек 71 20.10.2024 11:02 [11:02:21]line Смена: 114 ФФД: 1.0 [11:02:21]line ЗНМ: 0300000137 [11:02:21]line РНМ: 0000000000186857 [11:02:21]line Версия ККМ: v1.0 [11:02:21]line ФМ: 0000000002094219 [11:02:21]line ФД: 30289 [11:02:21]line ФПД: 133487190421760 [11:02:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T110228&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30289&fm=133487190421760&tin=02508201610067®Number=0000000000186857&sum=100000 [11:02:21]OFD Sender: Processing packet 30289 [packets to send 10, broken 9] [11:02:21]ProducePacketName [11:02:21]name=ofd_packets/00030289 [11:02:21]OFD Sender: To server: pG, [11:02:21]written 0, free lines is 4095 [11:02:21]CommunicateWithHost lk.salyk.kg:30040 [11:02:21]ConnectInit lk.salyk.kg [11:02:21]Connected sock=10 [11:02: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 E7 DD 07 01 77 0F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 47 00 00 00 F4 03 04 00 44 E3 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 79 67 E8 91 31 00 BD 94 A7 AE 0B D3 08 50 [11:02: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 D6 54 47 00 8D 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 51 76 00 00 F4 03 04 00 C8 8D 14 67 B6 04 01 00 00 C4 FC 1C 12 5E 75 BE 2E [11:02:22]CommunicateWithHost err = 0 [11:02:22]CheckOFDResponse [11:02:22]1017 (14) - 77093643461234 [11:02:22]1041 (16) - 0000000002094219 [11:02:22]1040 (4) - 30289 [11:02:22]1012 (4) - 20.10.2024 04:57 [11:02:22]1206 (1) - 0 [11:02:22]OFD Sender: Remove packet 30289 [11:02:22]ProducePacketName [11:02:22]name=ofd_packets/00030289 [11:02:22]NVStorageDeleteData [11:02:22]Write to MH i2c: 01 00 00 30 76 A6 [11:02:22]Write i2c OK [11:02:22]MH_I2C_Read... [11:02:22]Read from MH i2c: 01 [11:02:22]MH_I2C_Read... [11:02:22]Read from MH i2c: 01 07 00 [11:02:22]MH_I2C_Read... [11:02:22]Read from MH i2c: 01 07 00 30 76 00 00 00 00 00 EE 0C A7 [11:02:22]RasterBufferAndPrint [11:02:22]line [11:02:22]line [11:02:22]line [11:02:22]line [11:02:22]line [11:02:22]written 0, free lines is 3319 [11:02:22]MH_Cut [11:02:22]Write to MH i2c: D1 01 00 37 76 01 7F [11:02:22]Write i2c OK [11:02:22]MH_I2C_Read... [11:02:22]Read from MH i2c: D1 [11:02:22]MH_I2C_Read... [11:02:22]Read from MH i2c: D1 01 00 [11:02:22]MH_I2C_Read... [11:02:22]Read from MH i2c: D1 01 00 37 76 00 7E [11:02:22]Write to MH i2c: 01 00 00 38 76 AE [11:02:22]Write i2c OK [11:02:22]MH_I2C_Read... [11:02:22]OFD Sender: No OFD packet to send [11:02:22]*** Cut start [11:02:22]*** Partial cut [11:02:22]*** CUTSNS_PIN = 1 [11:02:22]*** CUTSNS_PIN = 0 [11:02:23]*** Brake cut motor [11:02:23]Read from MH i2c: 01 [11:02:23]MH_I2C_Read... [11:02:23]*** Stop cut motor [11:02:23]*** Cut end [11:02:23]Read from MH i2c: 01 07 00 [11:02:23]MH_I2C_Read... [11:02:23]Read from MH i2c: 01 07 00 38 76 00 00 00 00 00 FF 0F C3 [11:02:23]process_action close_receipt done [11:02:23]requested_data is exist [11:02:23]produce_requested_data [11:02:23]requested_item fm.sn is exist - process it [11:02:23]wFMCommunicate request_size=4 [11:02:23]MH_SAM_APDU [11:02:23]CAPDU: 80 11 00 00 [11:02:23]Write to MH i2c: E2 08 00 39 76 80 11 00 00 00 00 00 00 29 [11:02:23]Write i2c OK [11:02:23]MH_I2C_Read... [11:02:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:02:23]Read from MH i2c: E2 [11:02:23]MH_I2C_Read... [11:02:23]Read from MH i2c: E2 17 00 [11:02:23]MH_I2C_Read... [11:02:23]Read from MH i2c: E2 17 00 39 76 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 77 [11:02: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:02:23]wFMCommunicate OK [11:02:23]requested_item fd.num is exist - process it [11:02:23]SAM_PROTO_GetFieldsCounters [11:02:23]wFMCommunicate request_size=4 [11:02:23]MH_SAM_APDU [11:02:23]CAPDU: 80 13 00 00 [11:02:23]Write to MH i2c: E2 08 00 3A 76 80 13 00 00 00 00 00 00 2C [11:02:23]Write i2c OK [11:02:23]MH_I2C_Read... [11:02:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:02:23]Read from MH i2c: E2 [11:02:23]MH_I2C_Read... [11:02:23]Read from MH i2c: E2 62 00 [11:02:23]MH_I2C_Read... [11:02:23]Read from MH i2c: E2 62 00 3A 76 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 60 [11:02: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 51 76 00 00 0E 04 04 00 72 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:02:23]wFMCommunicate OK [11:02:23]SAM_PROTO_GetFieldsCounters done [11:02:23]requested_item shift.num is exist - process it [11:02:23]requested_item shift.opened is exist - process it [11:02:23]req_shift_opened [11:02:23]FM_GetShiftState [11:02:23]SAM_PROTO_GetShiftState [11:02:23]wFMCommunicate request_size=4 [11:02:23]MH_SAM_APDU [11:02:23]CAPDU: 80 13 01 00 [11:02:23]Write to MH i2c: E2 08 00 3B 76 80 13 01 00 00 00 00 00 2E [11:02:23]Write i2c OK [11:02:23]MH_I2C_Read... [11:02:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:02:23]Read from MH i2c: E2 [11:02:23]MH_I2C_Read... [11:02:23]Read from MH i2c: E2 0E 00 [11:02:23]MH_I2C_Read... [11:02:23]Read from MH i2c: E2 0E 00 3B 76 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 14 [11:02:23]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [11:02:23]wFMCommunicate OK [11:02:23]SAM_PROTO_GetShiftState done [11:02:23]FM_GetShiftState done [11:02:23]req_shift_opened done [11:02:23]requested_item shift.open_date is exist - process it [11:02:23]req_shift_open_date [11:02:23]req_shift_open_date done [11:02:23]produce_requested_data done [11:02:23]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30289,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [11:02:23]process_action_free close_receipt [11:02:23]json_value_free [11:02:23]json_value_free done [11:02:23]process_json_proto returns [11:02:23]Send response to host [11:02:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30289,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [11:02:23]free response buf [11:02:23]execute_script done [11:02:23]execute_script returns [11:02:23]free content buf [11:02:23]Sock 9.Close socket [11:02:23]Sock 9.Thread stoped [11:02:27]OFD Sender: No OFD packet to send [11:02:32]OFD Sender: No OFD packet to send [11:02:37]OFD Sender: No OFD packet to send [11:02:42]OFD Sender: No OFD packet to send [11:02:47]OFD Sender: No OFD packet to send [11:02:52]OFD Sender: No OFD packet to send [11:02:57]OFD Sender: No OFD packet to send [11:03:02]OFD Sender: No OFD packet to send [11:03:07]OFD Sender: No OFD packet to send [11:03:12]OFD Sender: No OFD packet to send [11:03:17]OFD Sender: No OFD packet to send [11:03:22]OFD Sender: No OFD packet to send [11:03:27]OFD Sender: No OFD packet to send [11:03:32]OFD Sender: No OFD packet to send [11:03:32]accept exits with 7 [11:03:32]New connection [11:03:32]New thread 3067514212 created [11:03:32]Thread 3067370852 joined [11:03:32]Waiting for new connection... [11:03:32] Sock 7.Parse request [11:03:32]Sock 7.Check first char [11:03:32]Sock 7.First char is OK [11:03:32]request: POST /json_proto HTTP/1.0 [11:03:32]Method: POST [11:03:32]URL: /json_proto [11:03:32]Method is POST - this is cgi request [11:03:32]url: /json_proto [11:03:32]query_string will be loaded in cgi processing [11:03:32]execute_cgi json_proto POST (null) [11:03:32]execute_cgi path=json_proto method=POST [11:03:32]POST find Content-Length [11:03:32]Host: 172.17.51.3:8080 [11:03:32]Content-Length: 682 [11:03:32]Content-Type: application/json [11:03:32] [11:03:32]POST finish read [11:03:32]Found Content-Length = 682 [11:03:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342682", "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" ] } } [11:03:32]execute_script... [11:03: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)342682", "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" ] } } [11:03:32]POST & json_proto [11:03:32]process_json_proto [11:03:32]json parsed OK: [11:03:32]protocol is kg_v1.0 [11:03:32]action value=close_receipt [11:03:32]process_action close_receipt [11:03:32]cmd_close_receipt [11:03:32]MH_GetDate [11:03:32]Write to MH i2c: F0 00 00 3C 76 A1 [11:03:32]Write i2c OK [11:03:32]MH_I2C_Read... [11:03:32]Read from MH i2c: F0 [11:03:32]MH_I2C_Read... [11:03:32]Read from MH i2c: F0 09 00 [11:03:32]MH_I2C_Read... [11:03:32]Read from MH i2c: F0 09 00 3C 76 00 8D E3 14 67 04 C1 95 66 55 [11:03:32]GetLastDocTimeStamp 1729422148 [11:03:32]current date 1729422221 [11:03:32]FM_GetShiftState [11:03:32]SAM_PROTO_GetShiftState [11:03:32]wFMCommunicate request_size=4 [11:03:32]MH_SAM_APDU [11:03:32]CAPDU: 80 13 01 00 [11:03:32]Write to MH i2c: E2 08 00 3D 76 80 13 01 00 00 00 00 00 30 [11:03:32]Write i2c OK [11:03:32]MH_I2C_Read... [11:03:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:03:32]Read from MH i2c: E2 [11:03:32]MH_I2C_Read... [11:03:32]Read from MH i2c: E2 0E 00 [11:03:32]MH_I2C_Read... [11:03:32]Read from MH i2c: E2 0E 00 3D 76 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 16 [11:03:32]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [11:03:32]wFMCommunicate OK [11:03:32]SAM_PROTO_GetShiftState done [11:03:32]FM_GetShiftState done [11:03:32]opened in 1729384718 [11:03:32]opened+sec_in_day 1729471118 [11:03:32]quantity*price = 100015 [11:03:32]sum+1 = 100017 [11:03:32]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 СНО: Общий режим Чек 72 20.10.2024 11:03 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30290 ФПД: 43052897477248 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T110341&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30290&fm=43052897477248&tin=02508201610067®Number=0000000000186857&sum=100000 [11:03:34]StoreToDocumentArchive [11:03:34]shift 114 fd 30290 [11:03:34]save to /storage/0114/doc_00030290 [11:03:34]save last doc name /storage/0114/doc_00030290 to /storage/kkm_last_doc_name [11:03:34]save OK [11:03:34]Clear old archive folders... [11:03:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:03:34]tlvbuf is 00B86230 [11:03:34]SAM_PROTO_ClearQueue [11:03:34]wFMCommunicate request_size=4 [11:03:34]MH_SAM_APDU [11:03:34]CAPDU: 80 09 00 00 [11:03:34]Write to MH i2c: E2 08 00 4A 76 80 09 00 00 00 00 00 00 32 [11:03:34]Write i2c OK [11:03:34]MH_I2C_Read... [11:03:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:03:34]Read from MH i2c: E2 [11:03:34]MH_I2C_Read... [11:03:34]Read from MH i2c: E2 03 00 [11:03:34]MH_I2C_Read... [11:03:34]Read from MH i2c: E2 03 00 4A 76 00 90 00 34 [11:03:34]RAPDU: 90 00 [11:03:34]wFMCommunicate OK [11:03:34]SAM_PROTO_ClearQueue done [11:03:34]KKMCreateOFDPacket [11:03:34]OFDProtocolAddRootSTLVToBuf [11:03:34]FM_MakeSignedData [11:03:34]FM_MakeSignedData [11:03:34]SAM_PROTO_SignData [11:03:34]wFMCommunicate request_size=4 [11:03:34]MH_SAM_APDU [11:03:34]CAPDU: 80 0D 01 02 [11:03:34]Write to MH i2c: E2 08 00 4B 76 80 0D 01 02 00 00 00 00 3A [11:03:34]Write i2c OK [11:03:34]MH_I2C_Read... [11:03:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:03:34]Read from MH i2c: E2 [11:03:34]MH_I2C_Read... [11:03:34]Read from MH i2c: E2 03 00 [11:03:34]MH_I2C_Read... [11:03:34]Read from MH i2c: E2 03 00 4B 76 00 90 00 35 [11:03:34]RAPDU: 90 00 [11:03:34]wFMCommunicate OK [11:03:34]wFMCommunicate request_size=255 [11:03:34]MH_SAM_APDU [11:03: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 48 00 00 00 F4 03 04 00 8D E3 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 27 [11:03:34]Write to MH i2c: E2 02 01 4C 76 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 48 00 00 00 F4 03 04 00 8D E3 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 27 00 00 59 [11:03:34]Write i2c OK [11:03:34]MH_I2C_Read... [11:03:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:03:34]Read from MH i2c: E2 [11:03:34]MH_I2C_Read... [11:03:34]Read from MH i2c: E2 03 00 [11:03:34]MH_I2C_Read... [11:03:34]Read from MH i2c: E2 03 00 4C 76 00 90 00 36 [11:03:34]RAPDU: 90 00 [11:03:34]wFMCommunicate OK [11:03:34]wFMCommunicate request_size=10 [11:03:34]MH_SAM_APDU [11:03:34]CAPDU: 80 0D 02 02 05 28 08 A9 22 80 [11:03:34]Write to MH i2c: E2 0D 00 4D 76 80 0D 02 02 05 00 28 08 A9 22 80 00 00 C2 [11:03:34]Write i2c OK [11:03:34]MH_I2C_Read... [11:03:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:03:34]Read from MH i2c: E2 [11:03:34]MH_I2C_Read... [11:03:34]Read from MH i2c: E2 03 00 [11:03:34]MH_I2C_Read... [11:03:34]Read from MH i2c: E2 03 00 4D 76 00 90 00 37 [11:03:34]RAPDU: 90 00 [11:03:34]wFMCommunicate OK [11:03:34]wFMCommunicate request_size=4 [11:03:34]MH_SAM_APDU [11:03:34]CAPDU: 80 0D 03 02 [11:03:34]Write to MH i2c: E2 08 00 4E 76 80 0D 03 02 00 00 00 00 3F [11:03:34]Write i2c OK [11:03:34]MH_I2C_Read... [11:03:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:03:34]Read from MH i2c: E2 [11:03:34]MH_I2C_Read... [11:03:34]Read from MH i2c: E2 0B 00 [11:03:34]MH_I2C_Read... [11:03:34]Read from MH i2c: E2 0B 00 4E 76 00 F6 02 4C 31 43 CD AD 24 90 00 96 [11:03:34]RAPDU: F6 02 4C 31 43 CD AD 24 90 00 [11:03:34]wFMCommunicate OK [11:03:34]SAM_PROTO_SignData done [11:03:34]FM_MakeSignedData done [11:03:34]CreateOFDProtocolMessage [11:03:34]wFMCommunicate request_size=4 [11:03:34]MH_SAM_APDU [11:03:34]CAPDU: 80 11 00 00 [11:03:34]Write to MH i2c: E2 08 00 4F 76 80 11 00 00 00 00 00 00 3F [11:03:34]Write i2c OK [11:03:34]MH_I2C_Read... [11:03:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:03:34]Read from MH i2c: E2 [11:03:34]MH_I2C_Read... [11:03:34]Read from MH i2c: E2 17 00 [11:03:34]MH_I2C_Read... [11:03:34]Read from MH i2c: E2 17 00 4F 76 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 8D [11:03:34]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:34]wFMCommunicate OK [11:03:34]CreateOFDProtocolMessage done [11:03:34]OFDSenderStorePacket 30290 [11:03:34]StoreOFDPacket docnum=30290 [11:03: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 BD 77 07 01 0B 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 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 48 00 00 00 F4 03 04 00 8D E3 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 27 28 08 A9 22 80 F6 02 4C 31 43 CD AD 24 [11:03:34]CheckFolder [11:03:34]dirname=/storage/ofd_packets [11:03:34]CheckFolder done [11:03:34]ProducePacketName [11:03:34]name=ofd_packets/00030290 [11:03:34]NVStorageSaveData ofd_packets/00030290 [11:03:34]File name is /storage/ofd_packets/00030290 [11:03:34]Write 301 bytes [11:03:34]NVStorageSaveData done [11:03:34]OFDSenderStorePacket done [11:03:34]KKMCreateOFDPacket done [11:03:34]NVStorageSaveData kkm_last_timestamp [11:03:34]File name is /storage/kkm_last_timestamp [11:03:34]Write 4 bytes [11:03:34]NVStorageSaveData done [11:03:34]ExternCall_PrintAddStr [11:03:34]wPrintStart [11:03:34]Write to MH i2c: 01 00 00 50 76 C6 [11:03:34]Write i2c OK [11:03:34]MH_I2C_Read... [11:03:34]Read from MH i2c: 01 [11:03:34]MH_I2C_Read... [11:03:34]Read from MH i2c: 01 07 00 [11:03:34]MH_I2C_Read... [11:03:34]Read from MH i2c: 01 07 00 50 76 00 00 00 00 00 FF 0F DB [11:03:34]RasterBufferAndPrint [11:03:34]line Счет N : (1)342682 [11:03:34]line ИНН: 02508201610067 [11:03:34]line Контрольно-Кассовый Чек [11:03:34]line ПРОДАЖА [11:03:34]line ТРК (МРК, ГНК) : 33 [11:03:34]line Товар: 2710124130 [11:03:34]line Аи-92-К-2 [11:03:34]line 14.950 * 66.90 [11:03:34]line = 1000.16 [11:03:34]line НДС 12% НСП 1% [11:03:34]line > о реализуемом товаре [11:03:34]line ОКРУГЛЕНИЕ: -0.16 [11:03:34]line ИТОГО: 1000.00 [11:03:34]line Внесено: 1000.00 [11:03:34]line СДАЧА: 0.00 [11:03:34]line НСП 1% : 8.85 [11:03:34]line НДС 12% : 106.21 [11:03:34]line Наличными: 1000.00 [11:03:34]line Безнал.: 0.00 [11:03:34]line Место: АЗС № 78 "Партнер Нефть" [11:03:34]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [11:03:34]line СНО: Общий режим [11:03:34]line Чек 72 20.10.2024 11:03 [11:03:34]line Смена: 114 ФФД: 1.0 [11:03:34]line ЗНМ: 0300000137 [11:03:34]line РНМ: 0000000000186857 [11:03:34]line Версия ККМ: v1.0 [11:03:34]line ФМ: 0000000002094219 [11:03:34]line ФД: 30290 [11:03:34]line ФПД: 43052897477248 [11:03:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T110341&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30290&fm=43052897477248&tin=02508201610067®Number=0000000000186857&sum=100000 [11:03:34]OFD Sender: Processing packet 30290 [packets to send 10, broken 9] [11:03:34]ProducePacketName [11:03:34]name=ofd_packets/00030290 [11:03:34]OFD Sender: To server: pG, [11:03:34]CommunicateWithHost lk.salyk.kg:30040 [11:03:34]ConnectInit lk.salyk.kg [11:03:34]written 0, free lines is 4095 [11:03:34]Connected sock=10 [11:03: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 BD 77 07 01 0B 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 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 48 00 00 00 F4 03 04 00 8D E3 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 27 28 08 A9 22 80 F6 02 4C 31 43 CD AD 24 [11:03: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 4C 89 47 00 75 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 52 76 00 00 F4 03 04 00 12 8E 14 67 B6 04 01 00 00 BD AA D0 C1 C6 4D 73 19 [11:03:35]CommunicateWithHost err = 0 [11:03:35]CheckOFDResponse [11:03:35]1017 (14) - 77093643461234 [11:03:35]1041 (16) - 0000000002094219 [11:03:35]1040 (4) - 30290 [11:03:35]1012 (4) - 20.10.2024 04:58 [11:03:35]1206 (1) - 0 [11:03:35]OFD Sender: Remove packet 30290 [11:03:35]ProducePacketName [11:03:35]name=ofd_packets/00030290 [11:03:35]NVStorageDeleteData [11:03:35]Write to MH i2c: 01 00 00 7B 76 F1 [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 7B 76 00 00 00 00 00 ED 0C F1 [11:03:35]RasterBufferAndPrint [11:03:35]line [11:03:35]line [11:03:35]line [11:03:35]line [11:03:35]line [11:03:35]written 0, free lines is 3315 [11:03:35]MH_Cut [11:03:35]Write to MH i2c: D1 01 00 82 76 01 CA [11:03:35]Write i2c OK [11:03:35]MH_I2C_Read... [11:03:35]Read from MH i2c: D1 [11:03:35]MH_I2C_Read... [11:03:35]Read from MH i2c: D1 01 00 [11:03:35]MH_I2C_Read... [11:03:35]Read from MH i2c: D1 01 00 82 76 00 C9 [11:03:35]Write to MH i2c: 01 00 00 83 76 F9 [11:03:35]Write i2c OK [11:03:35]MH_I2C_Read... [11:03:35]OFD Sender: No OFD packet to send [11:03:36]*** Cut start [11:03:36]*** Partial cut [11:03:36]*** CUTSNS_PIN = 1 [11:03:36]*** CUTSNS_PIN = 0 [11:03:36]*** Brake cut motor [11:03:36]Read from MH i2c: 01 [11:03:36]MH_I2C_Read... [11:03:36]*** Stop cut motor [11:03:36]*** Cut end [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 83 76 00 00 00 00 00 FF 0F 0E [11:03:36]process_action close_receipt done [11:03:36]requested_data is exist [11:03:36]produce_requested_data [11:03:36]requested_item fm.sn is exist - process it [11:03:36]wFMCommunicate request_size=4 [11:03:36]MH_SAM_APDU [11:03:36]CAPDU: 80 11 00 00 [11:03:36]Write to MH i2c: E2 08 00 84 76 80 11 00 00 00 00 00 00 74 [11:03:36]Write i2c OK [11:03:36]MH_I2C_Read... [11:03:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:03:36]Read from MH i2c: E2 [11:03:36]MH_I2C_Read... [11:03:36]Read from MH i2c: E2 17 00 [11:03:36]MH_I2C_Read... [11:03:36]Read from MH i2c: E2 17 00 84 76 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 C2 [11:03: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:03:36]wFMCommunicate OK [11:03:36]requested_item fd.num is exist - process it [11:03:36]SAM_PROTO_GetFieldsCounters [11:03:36]wFMCommunicate request_size=4 [11:03:36]MH_SAM_APDU [11:03:36]CAPDU: 80 13 00 00 [11:03:36]Write to MH i2c: E2 08 00 85 76 80 13 00 00 00 00 00 00 77 [11:03:36]Write i2c OK [11:03:36]MH_I2C_Read... [11:03:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:03:36]Read from MH i2c: E2 [11:03:36]MH_I2C_Read... [11:03:36]Read from MH i2c: E2 62 00 [11:03:36]MH_I2C_Read... [11:03:36]Read from MH i2c: E2 62 00 85 76 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 AF [11:03: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 52 76 00 00 0E 04 04 00 72 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:03:36]wFMCommunicate OK [11:03:36]SAM_PROTO_GetFieldsCounters done [11:03:36]requested_item shift.num is exist - process it [11:03:36]requested_item shift.opened is exist - process it [11:03:36]req_shift_opened [11:03:36]FM_GetShiftState [11:03:36]SAM_PROTO_GetShiftState [11:03:36]wFMCommunicate request_size=4 [11:03:36]MH_SAM_APDU [11:03:36]CAPDU: 80 13 01 00 [11:03:36]Write to MH i2c: E2 08 00 86 76 80 13 01 00 00 00 00 00 79 [11:03:36]Write i2c OK [11:03:36]MH_I2C_Read... [11:03:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:03:36]Read from MH i2c: E2 [11:03:36]MH_I2C_Read... [11:03:36]Read from MH i2c: E2 0E 00 [11:03:36]MH_I2C_Read... [11:03:36]Read from MH i2c: E2 0E 00 86 76 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 5F [11:03:36]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [11:03:36]wFMCommunicate OK [11:03:36]SAM_PROTO_GetShiftState done [11:03:36]FM_GetShiftState done [11:03:36]req_shift_opened done [11:03:36]requested_item shift.open_date is exist - process it [11:03:36]req_shift_open_date [11:03:36]req_shift_open_date done [11:03:36]produce_requested_data done [11:03:36]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30290,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [11:03:36]process_action_free close_receipt [11:03:36]json_value_free [11:03:36]json_value_free done [11:03:36]process_json_proto returns [11:03:36]Send response to host [11:03:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30290,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [11:03:36]free response buf [11:03:36]execute_script done [11:03:36]execute_script returns [11:03:36]free content buf [11:03:36]Sock 7.Close socket [11:03:36]Sock 7.Thread stoped [11:03:40]OFD Sender: No OFD packet to send [11:03:45]OFD Sender: No OFD packet to send [11:03:50]OFD Sender: No OFD packet to send [11:03:55]OFD Sender: No OFD packet to send [11:04:00]OFD Sender: No OFD packet to send [11:04:05]OFD Sender: No OFD packet to send [11:04:10]OFD Sender: No OFD packet to send [11:04:15]OFD Sender: No OFD packet to send [11:04:20]OFD Sender: No OFD packet to send [11:04:21]accept exits with 9 [11:04:21]New connection [11:04:21]New thread 3067370852 created [11:04:21]Thread 3067514212 joined [11:04:21]Waiting for new connection... [11:04:21] Sock 9.Parse request [11:04:21]Sock 9.Check first char [11:04:21]Sock 9.First char is OK [11:04:21]request: POST /json_proto HTTP/1.0 [11:04:21]Method: POST [11:04:21]URL: /json_proto [11:04:21]Method is POST - this is cgi request [11:04:21]url: /json_proto [11:04:21]query_string will be loaded in cgi processing [11:04:21]execute_cgi json_proto POST (null) [11:04:21]execute_cgi path=json_proto method=POST [11:04:21]POST find Content-Length [11:04:21]Host: 172.17.51.3:8080 [11:04:21]Content-Length: 840 [11:04:21]Content-Type: application/json [11:04:21] [11:04:21]POST finish read [11:04:21]Found Content-Length = 840 [11:04:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342683", "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:04:21]execute_script... [11:04:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342683", "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:04:21]POST & json_proto [11:04:21]process_json_proto [11:04:21]json parsed OK: [11:04:21]protocol is kg_v1.0 [11:04:21]action value=close_receipt [11:04:21]process_action close_receipt [11:04:21]cmd_close_receipt [11:04:21]MH_GetDate [11:04:21]Write to MH i2c: F0 00 00 87 76 EC [11:04:21]Write i2c OK [11:04:21]MH_I2C_Read... [11:04:21]Read from MH i2c: F0 [11:04:21]MH_I2C_Read... [11:04:21]Read from MH i2c: F0 09 00 [11:04:21]MH_I2C_Read... [11:04:21]Read from MH i2c: F0 09 00 87 76 00 BE E3 14 67 04 C1 95 66 D1 [11:04:21]GetLastDocTimeStamp 1729422221 [11:04:21]current date 1729422270 [11:04:21]FM_GetShiftState [11:04:21]SAM_PROTO_GetShiftState [11:04:21]wFMCommunicate request_size=4 [11:04:21]MH_SAM_APDU [11:04:21]CAPDU: 80 13 01 00 [11:04:21]Write to MH i2c: E2 08 00 88 76 80 13 01 00 00 00 00 00 7B [11:04:21]Write i2c OK [11:04:21]MH_I2C_Read... [11:04:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:04:22]Read from MH i2c: E2 [11:04:22]MH_I2C_Read... [11:04:22]Read from MH i2c: E2 0E 00 [11:04:22]MH_I2C_Read... [11:04:22]Read from MH i2c: E2 0E 00 88 76 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 61 [11:04:22]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [11:04:22]wFMCommunicate OK [11:04:22]SAM_PROTO_GetShiftState done [11:04:22]FM_GetShiftState done [11:04:22]opened in 1729384718 [11:04:22]opened+sec_in_day 1729471118 [11:04:22]quantity*price = 100050 [11:04:22]sum+1 = 100052 [11:04:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.51 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 0.00 Безнал.: 1000.51 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 73 20.10.2024 11:04 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Платежная система: АКБ Кыргызстан ФМ: 0000000002094219 ФД: 30291 ФПД: 102675744907203 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T110431&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30291&fm=102675744907203&tin=02508201610067®Number=0000000000186857&sum=100051 [11:04:23]StoreToDocumentArchive [11:04:23]shift 114 fd 30291 [11:04:23]save to /storage/0114/doc_00030291 [11:04:23]save last doc name /storage/0114/doc_00030291 to /storage/kkm_last_doc_name [11:04:23]save OK [11:04:23]Clear old archive folders... [11:04:23]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:04:23]tlvbuf is 00BE9590 [11:04:23]SAM_PROTO_ClearQueue [11:04:23]wFMCommunicate request_size=4 [11:04:23]MH_SAM_APDU [11:04:23]CAPDU: 80 09 00 00 [11:04:23]Write to MH i2c: E2 08 00 95 76 80 09 00 00 00 00 00 00 7D [11:04:23]Write i2c OK [11:04:23]MH_I2C_Read... [11:04:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:04:23]Read from MH i2c: E2 [11:04:23]MH_I2C_Read... [11:04:23]Read from MH i2c: E2 03 00 [11:04:23]MH_I2C_Read... [11:04:23]Read from MH i2c: E2 03 00 95 76 00 90 00 7F [11:04:23]RAPDU: 90 00 [11:04:23]wFMCommunicate OK [11:04:23]SAM_PROTO_ClearQueue done [11:04:23]KKMCreateOFDPacket [11:04:23]OFDProtocolAddRootSTLVToBuf [11:04:23]FM_MakeSignedData [11:04:23]FM_MakeSignedData [11:04:23]SAM_PROTO_SignData [11:04:23]wFMCommunicate request_size=4 [11:04:23]MH_SAM_APDU [11:04:23]CAPDU: 80 0D 01 02 [11:04:23]Write to MH i2c: E2 08 00 96 76 80 0D 01 02 00 00 00 00 85 [11:04:23]Write i2c OK [11:04:23]MH_I2C_Read... [11:04:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:04:23]Read from MH i2c: E2 [11:04:23]MH_I2C_Read... [11:04:23]Read from MH i2c: E2 03 00 [11:04:23]MH_I2C_Read... [11:04:23]Read from MH i2c: E2 03 00 96 76 00 90 00 80 [11:04:23]RAPDU: 90 00 [11:04:23]wFMCommunicate OK [11:04:23]wFMCommunicate request_size=255 [11:04:23]MH_SAM_APDU [11:04:23]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 49 00 00 00 F4 03 04 00 BF E3 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 5D 62 0F 4D [11:04:23]Write to MH i2c: E2 02 01 97 76 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 49 00 00 00 F4 03 04 00 BF E3 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 5D 62 0F 4D 00 00 2E [11:04:23]Write i2c OK [11:04:23]MH_I2C_Read... [11:04:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:04:23]Read from MH i2c: E2 [11:04:23]MH_I2C_Read... [11:04:23]Read from MH i2c: E2 03 00 [11:04:23]MH_I2C_Read... [11:04:23]Read from MH i2c: E2 03 00 97 76 00 90 00 81 [11:04:23]RAPDU: 90 00 [11:04:23]wFMCommunicate OK [11:04:23]wFMCommunicate request_size=7 [11:04:23]MH_SAM_APDU [11:04:23]CAPDU: 80 0D 02 02 02 5F C3 [11:04:23]Write to MH i2c: E2 0A 00 98 76 80 0D 02 02 02 00 5F C3 00 00 AE [11:04:23]Write i2c OK [11:04:23]MH_I2C_Read... [11:04:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:04:23]Read from MH i2c: E2 [11:04:23]MH_I2C_Read... [11:04:23]Read from MH i2c: E2 03 00 [11:04:23]MH_I2C_Read... [11:04:23]Read from MH i2c: E2 03 00 98 76 00 90 00 82 [11:04:23]RAPDU: 90 00 [11:04:23]wFMCommunicate OK [11:04:23]wFMCommunicate request_size=4 [11:04:23]MH_SAM_APDU [11:04:23]CAPDU: 80 0D 03 02 [11:04:23]Write to MH i2c: E2 08 00 99 76 80 0D 03 02 00 00 00 00 8A [11:04:23]Write i2c OK [11:04:23]MH_I2C_Read... [11:04:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:04:23]Read from MH i2c: E2 [11:04:23]MH_I2C_Read... [11:04:23]Read from MH i2c: E2 0B 00 [11:04:23]MH_I2C_Read... [11:04:23]Read from MH i2c: E2 0B 00 99 76 00 17 02 78 4D 00 84 10 C3 90 00 C0 [11:04:23]RAPDU: 17 02 78 4D 00 84 10 C3 90 00 [11:04:23]wFMCommunicate OK [11:04:23]SAM_PROTO_SignData done [11:04:23]FM_MakeSignedData done [11:04:23]CreateOFDProtocolMessage [11:04:23]wFMCommunicate request_size=4 [11:04:23]MH_SAM_APDU [11:04:23]CAPDU: 80 11 00 00 [11:04:23]Write to MH i2c: E2 08 00 9A 76 80 11 00 00 00 00 00 00 8A [11:04:23]Write i2c OK [11:04:23]MH_I2C_Read... [11:04:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:04:23]Read from MH i2c: E2 [11:04:23]MH_I2C_Read... [11:04:23]Read from MH i2c: E2 17 00 [11:04:23]MH_I2C_Read... [11:04:23]Read from MH i2c: E2 17 00 9A 76 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 D8 [11:04: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:04:23]wFMCommunicate OK [11:04:23]CreateOFDProtocolMessage done [11:04:23]OFDSenderStorePacket 30291 [11:04:23]StoreOFDPacket docnum=30291 [11:04: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 58 16 04 01 BF 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 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 49 00 00 00 F4 03 04 00 BF E3 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 5D 62 0F 4D 5F C3 17 02 78 4D 00 84 10 C3 [11:04:23]CheckFolder [11:04:23]dirname=/storage/ofd_packets [11:04:23]CheckFolder done [11:04:23]ProducePacketName [11:04:23]name=ofd_packets/00030291 [11:04:23]NVStorageSaveData ofd_packets/00030291 [11:04:23]File name is /storage/ofd_packets/00030291 [11:04:23]Write 298 bytes [11:04:23]NVStorageSaveData done [11:04:23]OFDSenderStorePacket done [11:04:23]KKMCreateOFDPacket done [11:04:23]NVStorageSaveData kkm_last_timestamp [11:04:23]File name is /storage/kkm_last_timestamp [11:04:23]Write 4 bytes [11:04:23]NVStorageSaveData done [11:04:23]ExternCall_PrintAddStr [11:04:23]wPrintStart [11:04:23]Write to MH i2c: 01 00 00 9B 76 11 [11:04:23]Write i2c OK [11:04:23]MH_I2C_Read... [11:04:23]Read from MH i2c: 01 [11:04:23]MH_I2C_Read... [11:04:23]Read from MH i2c: 01 07 00 [11:04:23]MH_I2C_Read... [11:04:23]Read from MH i2c: 01 07 00 9B 76 00 00 00 00 00 FF 0F 26 [11:04:23]RasterBufferAndPrint [11:04:23]line Счет N : (1)342683 [11:04:23]line ИНН: 02508201610067 [11:04:23]line Контрольно-Кассовый Чек [11:04:23]line ПРОДАЖА [11:04:23]line ТРК (МРК, ГНК) : 64 [11:04:23]line Товар: 2710194210 [11:04:23]line ДТ-К-2 [11:04:23]line 13.130 * 76.20 [11:04:23]line = 1000.51 [11:04:23]line НДС 12% НСП 1% [11:04:23]line > о реализуемом товаре [11:04:23]line ИТОГО: 1000.51 [11:04:23]line НСП 1% : 8.85 [11:04:23]line НДС 12% : 106.25 [11:04:23]line Наличными: 0.00 [11:04:23]line Безнал.: 1000.51 [11:04:23]line Место: АЗС № 78 "Партнер Нефть" [11:04:23]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [11:04:23]line СНО: Общий режим [11:04:23]line Чек 73 20.10.2024 11:04 [11:04:23]line Смена: 114 ФФД: 1.0 [11:04:23]line ЗНМ: 0300000137 [11:04:23]line РНМ: 0000000000186857 [11:04:23]line Версия ККМ: v1.0 [11:04:23]line Платежная система: АКБ Кыргызстан [11:04:23]line ФМ: 0000000002094219 [11:04:23]line ФД: 30291 [11:04:23]line ФПД: 102675744907203 [11:04:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T110431&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30291&fm=102675744907203&tin=02508201610067®Number=0000000000186857&sum=100051 [11:04:23]OFD Sender: Processing packet 30291 [packets to send 10, broken 9] [11:04:23]ProducePacketName [11:04:23]name=ofd_packets/00030291 [11:04:23]OFD Sender: To server: pG, [11:04:23]CommunicateWithHost lk.salyk.kg:30040 [11:04:24]ConnectInit lk.salyk.kg [11:04:24]written 0, free lines is 4095 [11:04:24]Connected sock=10 [11:04: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 0C 01 00 00 58 16 04 01 BF 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 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 49 00 00 00 F4 03 04 00 BF E3 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 5D 62 0F 4D 5F C3 17 02 78 4D 00 84 10 C3 [11:04: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 EA 08 47 00 CE E2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 53 76 00 00 F4 03 04 00 43 8E 14 67 B6 04 01 00 00 3C AC AE D4 7A B2 1D 11 [11:04:24]CommunicateWithHost err = 0 [11:04:24]CheckOFDResponse [11:04:24]1017 (14) - 77093643461234 [11:04:24]1041 (16) - 0000000002094219 [11:04:24]1040 (4) - 30291 [11:04:24]1012 (4) - 20.10.2024 04:59 [11:04:24]1206 (1) - 0 [11:04:24]OFD Sender: Remove packet 30291 [11:04:24]ProducePacketName [11:04:24]name=ofd_packets/00030291 [11:04:24]NVStorageDeleteData [11:04:24]Write to MH i2c: 01 00 00 C5 76 3B [11:04:24]Write i2c OK [11:04:24]MH_I2C_Read... [11:04:24]Read from MH i2c: 01 [11:04:24]MH_I2C_Read... [11:04:24]Read from MH i2c: 01 07 00 [11:04:24]MH_I2C_Read... [11:04:24]Read from MH i2c: 01 07 00 C5 76 00 00 00 00 00 10 0D 5F [11:04:24]RasterBufferAndPrint [11:04:24]line [11:04:24]line [11:04:24]line [11:04:24]line [11:04:24]line [11:04:24]written 0, free lines is 3351 [11:04:24]MH_Cut [11:04:24]Write to MH i2c: D1 01 00 CC 76 01 14 [11:04:24]Write i2c OK [11:04:24]MH_I2C_Read... [11:04:24]Read from MH i2c: D1 [11:04:24]MH_I2C_Read... [11:04:24]Read from MH i2c: D1 01 00 [11:04:24]MH_I2C_Read... [11:04:24]Read from MH i2c: D1 01 00 CC 76 00 13 [11:04:24]Write to MH i2c: 01 00 00 CD 76 43 [11:04:24]Write i2c OK [11:04:24]MH_I2C_Read... [11:04:24]OFD Sender: No OFD packet to send [11:04:25]*** Cut start [11:04:25]*** Partial cut [11:04:25]*** CUTSNS_PIN = 1 [11:04:25]*** CUTSNS_PIN = 0 [11:04:25]*** Brake cut motor [11:04:25]Read from MH i2c: 01 [11:04:25]MH_I2C_Read... [11:04:25]*** Stop cut motor [11:04:25]*** Cut end [11:04:25]Read from MH i2c: 01 07 00 [11:04:25]MH_I2C_Read... [11:04:25]Read from MH i2c: 01 07 00 CD 76 00 00 00 00 00 FF 0F 58 [11:04:25]process_action close_receipt done [11:04:25]requested_data is exist [11:04:25]produce_requested_data [11:04:25]requested_item fm.sn is exist - process it [11:04:25]wFMCommunicate request_size=4 [11:04:25]MH_SAM_APDU [11:04:25]CAPDU: 80 11 00 00 [11:04:25]Write to MH i2c: E2 08 00 CE 76 80 11 00 00 00 00 00 00 BE [11:04:25]Write i2c OK [11:04:25]MH_I2C_Read... [11:04:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:04:25]Read from MH i2c: E2 [11:04:25]MH_I2C_Read... [11:04:25]Read from MH i2c: E2 17 00 [11:04:25]MH_I2C_Read... [11:04:25]Read from MH i2c: E2 17 00 CE 76 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 0C [11:04: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:04:25]wFMCommunicate OK [11:04:25]requested_item fd.num is exist - process it [11:04:25]SAM_PROTO_GetFieldsCounters [11:04:25]wFMCommunicate request_size=4 [11:04:25]MH_SAM_APDU [11:04:25]CAPDU: 80 13 00 00 [11:04:25]Write to MH i2c: E2 08 00 CF 76 80 13 00 00 00 00 00 00 C1 [11:04:25]Write i2c OK [11:04:25]MH_I2C_Read... [11:04:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:04:25]Read from MH i2c: E2 [11:04:25]MH_I2C_Read... [11:04:25]Read from MH i2c: E2 62 00 [11:04:25]MH_I2C_Read... [11:04:25]Read from MH i2c: E2 62 00 CF 76 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 FD [11:04: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 53 76 00 00 0E 04 04 00 72 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:04:25]wFMCommunicate OK [11:04:25]SAM_PROTO_GetFieldsCounters done [11:04:25]requested_item shift.num is exist - process it [11:04:25]requested_item shift.opened is exist - process it [11:04:25]req_shift_opened [11:04:25]FM_GetShiftState [11:04:25]SAM_PROTO_GetShiftState [11:04:25]wFMCommunicate request_size=4 [11:04:25]MH_SAM_APDU [11:04:25]CAPDU: 80 13 01 00 [11:04:25]Write to MH i2c: E2 08 00 D0 76 80 13 01 00 00 00 00 00 C3 [11:04:25]Write i2c OK [11:04:25]MH_I2C_Read... [11:04:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:04:25]Read from MH i2c: E2 [11:04:25]MH_I2C_Read... [11:04:25]Read from MH i2c: E2 0E 00 [11:04:25]MH_I2C_Read... [11:04:25]Read from MH i2c: E2 0E 00 D0 76 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 A9 [11:04:25]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [11:04:25]wFMCommunicate OK [11:04:25]SAM_PROTO_GetShiftState done [11:04:25]FM_GetShiftState done [11:04:25]req_shift_opened done [11:04:25]requested_item shift.open_date is exist - process it [11:04:25]req_shift_open_date [11:04:25]req_shift_open_date done [11:04:25]produce_requested_data done [11:04:25]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30291,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [11:04:25]process_action_free close_receipt [11:04:25]json_value_free [11:04:25]json_value_free done [11:04:25]process_json_proto returns [11:04:25]Send response to host [11:04:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30291,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [11:04:25]free response buf [11:04:25]execute_script done [11:04:25]execute_script returns [11:04:25]free content buf [11:04:25]Sock 9.Close socket [11:04:25]Sock 9.Thread stoped [11:04:29]OFD Sender: No OFD packet to send [11:04:34]OFD Sender: No OFD packet to send [11:04:39]OFD Sender: No OFD packet to send [11:04:44]OFD Sender: No OFD packet to send [11:04:49]OFD Sender: No OFD packet to send [11:04:54]OFD Sender: No OFD packet to send [11:04:59]OFD Sender: No OFD packet to send [11:05:04]OFD Sender: No OFD packet to send [11:05:09]OFD Sender: No OFD packet to send [11:05:14]OFD Sender: No OFD packet to send [11:05:19]OFD Sender: No OFD packet to send [11:05:22]accept exits with 7 [11:05:22]New connection [11:05:22]New thread 3067514212 created [11:05:22]Thread 3067370852 joined [11:05:22]Waiting for new connection... [11:05:22] Sock 7.Parse request [11:05:22]Sock 7.Check first char [11:05:22]Sock 7.First char is OK [11:05:22]request: POST /json_proto HTTP/1.0 [11:05:22]Method: POST [11:05:22]URL: /json_proto [11:05:22]Method is POST - this is cgi request [11:05:22]url: /json_proto [11:05:22]query_string will be loaded in cgi processing [11:05:22]execute_cgi json_proto POST (null) [11:05:22]execute_cgi path=json_proto method=POST [11:05:22]POST find Content-Length [11:05:22]Host: 172.17.51.3:8080 [11:05:22]Content-Length: 679 [11:05:22]Content-Type: application/json [11:05:22] [11:05:22]POST finish read [11:05:22]Found Content-Length = 679 [11:05:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342684", "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" ] } } [11:05:22]execute_script... [11:05: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)342684", "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" ] } } [11:05:22]POST & json_proto [11:05:22]process_json_proto [11:05:22]json parsed OK: [11:05:22]protocol is kg_v1.0 [11:05:22]action value=close_receipt [11:05:22]process_action close_receipt [11:05:22]cmd_close_receipt [11:05:22]MH_GetDate [11:05:22]Write to MH i2c: F0 00 00 D1 76 36 [11:05:22]Write i2c OK [11:05:22]MH_I2C_Read... [11:05:22]Read from MH i2c: F0 [11:05:22]MH_I2C_Read... [11:05:22]Read from MH i2c: F0 09 00 [11:05:22]MH_I2C_Read... [11:05:22]Read from MH i2c: F0 09 00 D1 76 00 FB E3 14 67 04 C1 95 66 58 [11:05:22]GetLastDocTimeStamp 1729422271 [11:05:22]current date 1729422331 [11:05:22]FM_GetShiftState [11:05:22]SAM_PROTO_GetShiftState [11:05:22]wFMCommunicate request_size=4 [11:05:22]MH_SAM_APDU [11:05:22]CAPDU: 80 13 01 00 [11:05:22]Write to MH i2c: E2 08 00 D2 76 80 13 01 00 00 00 00 00 C5 [11:05:22]Write i2c OK [11:05:22]MH_I2C_Read... [11:05:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:05:22]Read from MH i2c: E2 [11:05:22]MH_I2C_Read... [11:05:22]Read from MH i2c: E2 0E 00 [11:05:22]MH_I2C_Read... [11:05:22]Read from MH i2c: E2 0E 00 D2 76 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 AB [11:05:22]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [11:05:22]wFMCommunicate OK [11:05:22]SAM_PROTO_GetShiftState done [11:05:22]FM_GetShiftState done [11:05:22]opened in 1729384718 [11:05:22]opened+sec_in_day 1729471118 [11:05:22]quantity*price = 200025 [11:05:22]sum+1 = 200026 [11:05:22]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 СНО: Общий режим Чек 74 20.10.2024 11:05 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30292 ФПД: 259532021406401 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T110531&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30292&fm=259532021406401&tin=02508201610067®Number=0000000000186857&sum=200000 [11:05:23]StoreToDocumentArchive [11:05:23]shift 114 fd 30292 [11:05:23]save to /storage/0114/doc_00030292 [11:05:23]save last doc name /storage/0114/doc_00030292 to /storage/kkm_last_doc_name [11:05:23]save OK [11:05:23]Clear old archive folders... [11:05:23]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:05:23]tlvbuf is 00BA7430 [11:05:23]SAM_PROTO_ClearQueue [11:05:23]wFMCommunicate request_size=4 [11:05:23]MH_SAM_APDU [11:05:23]CAPDU: 80 09 00 00 [11:05:23]Write to MH i2c: E2 08 00 DF 76 80 09 00 00 00 00 00 00 C7 [11:05:23]Write i2c OK [11:05:23]MH_I2C_Read... [11:05:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:05:23]Read from MH i2c: E2 [11:05:23]MH_I2C_Read... [11:05:23]Read from MH i2c: E2 03 00 [11:05:23]MH_I2C_Read... [11:05:23]Read from MH i2c: E2 03 00 DF 76 00 90 00 C9 [11:05:23]RAPDU: 90 00 [11:05:23]wFMCommunicate OK [11:05:23]SAM_PROTO_ClearQueue done [11:05:23]KKMCreateOFDPacket [11:05:23]OFDProtocolAddRootSTLVToBuf [11:05:23]FM_MakeSignedData [11:05:23]FM_MakeSignedData [11:05:23]SAM_PROTO_SignData [11:05:23]wFMCommunicate request_size=4 [11:05:23]MH_SAM_APDU [11:05:23]CAPDU: 80 0D 01 02 [11:05:23]Write to MH i2c: E2 08 00 E0 76 80 0D 01 02 00 00 00 00 CF [11:05:23]Write i2c OK [11:05:23]MH_I2C_Read... [11:05:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:05:23]Read from MH i2c: E2 [11:05:23]MH_I2C_Read... [11:05:23]Read from MH i2c: E2 03 00 [11:05:23]MH_I2C_Read... [11:05:23]Read from MH i2c: E2 03 00 E0 76 00 90 00 CA [11:05:23]RAPDU: 90 00 [11:05:23]wFMCommunicate OK [11:05:23]wFMCommunicate request_size=255 [11:05:23]MH_SAM_APDU [11:05:23]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 4A 00 00 00 F4 03 04 00 FB E3 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 EC 0B 01 F1 [11:05:23]Write to MH i2c: E2 02 01 E1 76 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 4A 00 00 00 F4 03 04 00 FB E3 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 EC 0B 01 F1 00 00 0C [11:05:23]Write i2c OK [11:05:23]MH_I2C_Read... [11:05:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:05:24]Read from MH i2c: E2 [11:05:24]MH_I2C_Read... [11:05:24]Read from MH i2c: E2 03 00 [11:05:24]MH_I2C_Read... [11:05:24]Read from MH i2c: E2 03 00 E1 76 00 90 00 CB [11:05:24]RAPDU: 90 00 [11:05:24]wFMCommunicate OK [11:05:24]wFMCommunicate request_size=7 [11:05:24]MH_SAM_APDU [11:05:24]CAPDU: 80 0D 02 02 02 9A C1 [11:05:24]Write to MH i2c: E2 0A 00 E2 76 80 0D 02 02 02 00 9A C1 00 00 31 [11:05:24]Write i2c OK [11:05:24]MH_I2C_Read... [11:05:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:05:24]Read from MH i2c: E2 [11:05:24]MH_I2C_Read... [11:05:24]Read from MH i2c: E2 03 00 [11:05:24]MH_I2C_Read... [11:05:24]Read from MH i2c: E2 03 00 E2 76 00 90 00 CC [11:05:24]RAPDU: 90 00 [11:05:24]wFMCommunicate OK [11:05:24]wFMCommunicate request_size=4 [11:05:24]MH_SAM_APDU [11:05:24]CAPDU: 80 0D 03 02 [11:05:24]Write to MH i2c: E2 08 00 E3 76 80 0D 03 02 00 00 00 00 D4 [11:05:24]Write i2c OK [11:05:24]MH_I2C_Read... [11:05:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:05:24]Read from MH i2c: E2 [11:05:24]MH_I2C_Read... [11:05:24]Read from MH i2c: E2 0B 00 [11:05:24]MH_I2C_Read... [11:05:24]Read from MH i2c: E2 0B 00 E3 76 00 0E 86 9D 95 AA DF C2 EB 90 00 D1 [11:05:24]RAPDU: 0E 86 9D 95 AA DF C2 EB 90 00 [11:05:24]wFMCommunicate OK [11:05:24]SAM_PROTO_SignData done [11:05:24]FM_MakeSignedData done [11:05:24]CreateOFDProtocolMessage [11:05:24]wFMCommunicate request_size=4 [11:05:24]MH_SAM_APDU [11:05:24]CAPDU: 80 11 00 00 [11:05:24]Write to MH i2c: E2 08 00 E4 76 80 11 00 00 00 00 00 00 D4 [11:05:24]Write i2c OK [11:05:24]MH_I2C_Read... [11:05:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:05:24]Read from MH i2c: E2 [11:05:24]MH_I2C_Read... [11:05:24]Read from MH i2c: E2 17 00 [11:05:24]MH_I2C_Read... [11:05:24]Read from MH i2c: E2 17 00 E4 76 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 22 [11:05:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [11:05:24]wFMCommunicate OK [11:05:24]CreateOFDProtocolMessage done [11:05:24]OFDSenderStorePacket 30292 [11:05:24]StoreOFDPacket docnum=30292 [11:05:24]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 9A 0C 04 01 7B 0F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 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 4A 00 00 00 F4 03 04 00 FB E3 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 EC 0B 01 F1 9A C1 0E 86 9D 95 AA DF C2 EB [11:05:24]CheckFolder [11:05:24]dirname=/storage/ofd_packets [11:05:24]CheckFolder done [11:05:24]ProducePacketName [11:05:24]name=ofd_packets/00030292 [11:05:24]NVStorageSaveData ofd_packets/00030292 [11:05:24]File name is /storage/ofd_packets/00030292 [11:05:24]Write 298 bytes [11:05:24]NVStorageSaveData done [11:05:24]OFDSenderStorePacket done [11:05:24]KKMCreateOFDPacket done [11:05:24]NVStorageSaveData kkm_last_timestamp [11:05:24]File name is /storage/kkm_last_timestamp [11:05:24]Write 4 bytes [11:05:24]NVStorageSaveData done [11:05:24]ExternCall_PrintAddStr [11:05:24]wPrintStart [11:05:24]Write to MH i2c: 01 00 00 E5 76 5B [11:05:24]Write i2c OK [11:05:24]MH_I2C_Read... [11:05:24]Read from MH i2c: 01 [11:05:24]MH_I2C_Read... [11:05:24]Read from MH i2c: 01 07 00 [11:05:24]MH_I2C_Read... [11:05:24]Read from MH i2c: 01 07 00 E5 76 00 00 00 00 00 FF 0F 70 [11:05:24]RasterBufferAndPrint [11:05:24]line Счет N : (1)342684 [11:05:24]line ИНН: 02508201610067 [11:05:24]line Контрольно-Кассовый Чек [11:05:24]line ПРОДАЖА [11:05:24]line ТРК (МРК, ГНК) : 64 [11:05:24]line Товар: 2710194210 [11:05:24]line ДТ-К-2 [11:05:24]line 26.250 * 76.20 [11:05:24]line = 2000.25 [11:05:24]line НДС 12% НСП 1% [11:05:24]line > о реализуемом товаре [11:05:24]line ОКРУГЛЕНИЕ: -0.25 [11:05:24]line ИТОГО: 2000.00 [11:05:24]line Внесено: 2000.00 [11:05:24]line СДАЧА: 0.00 [11:05:24]line НСП 1% : 17.70 [11:05:24]line НДС 12% : 212.42 [11:05:24]line Наличными: 2000.00 [11:05:24]line Безнал.: 0.00 [11:05:24]line Место: АЗС № 78 "Партнер Нефть" [11:05:24]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [11:05:24]line СНО: Общий режим [11:05:24]line Чек 74 20.10.2024 11:05 [11:05:24]line Смена: 114 ФФД: 1.0 [11:05:24]line ЗНМ: 0300000137 [11:05:24]line РНМ: 0000000000186857 [11:05:24]line Версия ККМ: v1.0 [11:05:24]line ФМ: 0000000002094219 [11:05:24]line ФД: 30292 [11:05:24]line ФПД: 259532021406401 [11:05:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T110531&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30292&fm=259532021406401&tin=02508201610067®Number=0000000000186857&sum=200000 [11:05:24]OFD Sender: Processing packet 30292 [packets to send 10, broken 9] [11:05:24]ProducePacketName [11:05:24]name=ofd_packets/00030292 [11:05:24]OFD Sender: To server: pG, [11:05:24]CommunicateWithHost lk.salyk.kg:30040 [11:05:24]ConnectInit lk.salyk.kg [11:05:24]written 0, free lines is 4095 [11:05:24]Connected sock=10 [11:05: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 0C 01 00 00 9A 0C 04 01 7B 0F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 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 4A 00 00 00 F4 03 04 00 FB E3 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 EC 0B 01 F1 9A C1 0E 86 9D 95 AA DF C2 EB [11:05: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 05 7D 47 00 EA 10 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 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 76 00 00 F4 03 04 00 7F 8E 14 67 B6 04 01 00 00 E7 0C 82 FB 09 8B 5C 23 [11:05:24]CommunicateWithHost err = 0 [11:05:24]CheckOFDResponse [11:05:24]1017 (14) - 77093643461234 [11:05:24]1041 (16) - 0000000002094219 [11:05:24]1040 (4) - 30292 [11:05:24]1012 (4) - 20.10.2024 05:00 [11:05:24]1206 (1) - 0 [11:05:24]OFD Sender: Remove packet 30292 [11:05:24]ProducePacketName [11:05:24]name=ofd_packets/00030292 [11:05:24]NVStorageDeleteData [11:05:24]Write to MH i2c: 01 00 00 10 77 87 [11:05:24]Write i2c OK [11:05:24]MH_I2C_Read... [11:05:24]Read from MH i2c: 01 [11:05:24]MH_I2C_Read... [11:05:24]Read from MH i2c: 01 07 00 [11:05:24]MH_I2C_Read... [11:05:24]Read from MH i2c: 01 07 00 10 77 00 00 00 00 00 F8 0C 92 [11:05:24]RasterBufferAndPrint [11:05:24]line [11:05:24]line [11:05:24]line [11:05:24]line [11:05:24]line [11:05:24]written 0, free lines is 3326 [11:05:24]MH_Cut [11:05:24]Write to MH i2c: D1 01 00 17 77 01 60 [11:05:24]Write i2c OK [11:05:24]MH_I2C_Read... [11:05:24]Read from MH i2c: D1 [11:05:24]MH_I2C_Read... [11:05:24]Read from MH i2c: D1 01 00 [11:05:24]MH_I2C_Read... [11:05:24]Read from MH i2c: D1 01 00 17 77 00 5F [11:05:24]Write to MH i2c: 01 00 00 18 77 8F [11:05:24]Write i2c OK [11:05:24]MH_I2C_Read... [11:05:25]OFD Sender: No OFD packet to send [11:05:25]*** Cut start [11:05:25]*** Partial cut [11:05:25]*** CUTSNS_PIN = 1 [11:05:25]*** CUTSNS_PIN = 0 [11:05:25]*** Brake cut motor [11:05:26]Read from MH i2c: *** Stop cut motor [11:05:26]*** Cut end [11:05:26]01 [11:05:26]MH_I2C_Read... [11:05:26]Read from MH i2c: 01 07 00 [11:05:26]MH_I2C_Read... [11:05:26]Read from MH i2c: 01 07 00 18 77 00 00 00 00 00 FF 0F A4 [11:05:26]process_action close_receipt done [11:05:26]requested_data is exist [11:05:26]produce_requested_data [11:05:26]requested_item fm.sn is exist - process it [11:05:26]wFMCommunicate request_size=4 [11:05:26]MH_SAM_APDU [11:05:26]CAPDU: 80 11 00 00 [11:05:26]Write to MH i2c: E2 08 00 19 77 80 11 00 00 00 00 00 00 0A [11:05:26]Write i2c OK [11:05:26]MH_I2C_Read... [11:05:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:05:26]Read from MH i2c: E2 [11:05:26]MH_I2C_Read... [11:05:26]Read from MH i2c: E2 17 00 [11:05:26]MH_I2C_Read... [11:05:26]Read from MH i2c: E2 17 00 19 77 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 58 [11:05: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:05:26]wFMCommunicate OK [11:05:26]requested_item fd.num is exist - process it [11:05:26]SAM_PROTO_GetFieldsCounters [11:05:26]wFMCommunicate request_size=4 [11:05:26]MH_SAM_APDU [11:05:26]CAPDU: 80 13 00 00 [11:05:26]Write to MH i2c: E2 08 00 1A 77 80 13 00 00 00 00 00 00 0D [11:05:26]Write i2c OK [11:05:26]MH_I2C_Read... [11:05:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:05:26]Read from MH i2c: E2 [11:05:26]MH_I2C_Read... [11:05:26]Read from MH i2c: E2 62 00 [11:05:26]MH_I2C_Read... [11:05:26]Read from MH i2c: E2 62 00 1A 77 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 4D [11:05: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 54 76 00 00 0E 04 04 00 72 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:05:26]wFMCommunicate OK [11:05:26]SAM_PROTO_GetFieldsCounters done [11:05:26]requested_item shift.num is exist - process it [11:05:26]requested_item shift.opened is exist - process it [11:05:26]req_shift_opened [11:05:26]FM_GetShiftState [11:05:26]SAM_PROTO_GetShiftState [11:05:26]wFMCommunicate request_size=4 [11:05:26]MH_SAM_APDU [11:05:26]CAPDU: 80 13 01 00 [11:05:26]Write to MH i2c: E2 08 00 1B 77 80 13 01 00 00 00 00 00 0F [11:05:26]Write i2c OK [11:05:26]MH_I2C_Read... [11:05:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:05:26]Read from MH i2c: E2 [11:05:26]MH_I2C_Read... [11:05:26]Read from MH i2c: E2 0E 00 [11:05:26]MH_I2C_Read... [11:05:26]Read from MH i2c: E2 0E 00 1B 77 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 F5 [11:05:26]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [11:05:26]wFMCommunicate OK [11:05:26]SAM_PROTO_GetShiftState done [11:05:26]FM_GetShiftState done [11:05:26]req_shift_opened done [11:05:26]requested_item shift.open_date is exist - process it [11:05:26]req_shift_open_date [11:05:26]req_shift_open_date done [11:05:26]produce_requested_data done [11:05:26]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30292,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [11:05:26]process_action_free close_receipt [11:05:26]json_value_free [11:05:26]json_value_free done [11:05:26]process_json_proto returns [11:05:26]Send response to host [11:05:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30292,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [11:05:26]free response buf [11:05:26]execute_script done [11:05:26]execute_script returns [11:05:26]free content buf [11:05:26]Sock 7.Close socket [11:05:26]Sock 7.Thread stoped [11:05:28]accept exits with 9 [11:05:28]New connection [11:05:28]New thread 3067370852 created [11:05:28]Thread 3067514212 joined [11:05:28]Waiting for new connection... [11:05:28] Sock 9.Parse request [11:05:28]Sock 9.Check first char [11:05:28]Sock 9.First char is OK [11:05:28]request: POST /json_proto HTTP/1.0 [11:05:28]Method: POST [11:05:28]URL: /json_proto [11:05:28]Method is POST - this is cgi request [11:05:28]url: /json_proto [11:05:28]query_string will be loaded in cgi processing [11:05:28]execute_cgi json_proto POST (null) [11:05:28]execute_cgi path=json_proto method=POST [11:05:28]POST find Content-Length [11:05:28]Host: 172.17.51.3:8080 [11:05:28]Content-Length: 679 [11:05:28]Content-Type: application/json [11:05:28] [11:05:28]POST finish read [11:05:28]Found Content-Length = 679 [11:05:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342685", "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" : 14.440, "sum" : 1100.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1100.00, "total" : 1100.00, "payments": [ { "type": 0, "sum" : 1100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:05:28]execute_script... [11:05: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)342685", "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" : 14.440, "sum" : 1100.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1100.00, "total" : 1100.00, "payments": [ { "type": 0, "sum" : 1100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:05:28]POST & json_proto [11:05:28]process_json_proto [11:05:28]json parsed OK: [11:05:28]protocol is kg_v1.0 [11:05:28]action value=close_receipt [11:05:28]process_action close_receipt [11:05:28]cmd_close_receipt [11:05:28]MH_GetDate [11:05:28]Write to MH i2c: F0 00 00 1C 77 82 [11:05:28]Write i2c OK [11:05:28]MH_I2C_Read... [11:05:28]Read from MH i2c: F0 [11:05:28]MH_I2C_Read... [11:05:28]Read from MH i2c: F0 09 00 [11:05:28]MH_I2C_Read... [11:05:28]Read from MH i2c: F0 09 00 1C 77 00 01 E4 14 67 04 C1 95 66 AB [11:05:28]GetLastDocTimeStamp 1729422331 [11:05:28]current date 1729422337 [11:05:28]FM_GetShiftState [11:05:28]SAM_PROTO_GetShiftState [11:05:28]wFMCommunicate request_size=4 [11:05:28]MH_SAM_APDU [11:05:28]CAPDU: 80 13 01 00 [11:05:28]Write to MH i2c: E2 08 00 1D 77 80 13 01 00 00 00 00 00 11 [11:05:28]Write i2c OK [11:05:28]MH_I2C_Read... [11:05:28]Read from MH i2c: E2 [11:05:28]MH_I2C_Read... [11:05:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:05:28]Read from MH i2c: E2 0E 00 [11:05:28]MH_I2C_Read... [11:05:28]Read from MH i2c: E2 0E 00 1D 77 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 F7 [11:05:28]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [11:05:28]wFMCommunicate OK [11:05:28]SAM_PROTO_GetShiftState done [11:05:28]FM_GetShiftState done [11:05:28]opened in 1729384718 [11:05:28]opened+sec_in_day 1729471118 [11:05:28]quantity*price = 110032 [11:05:28]sum+1 = 110034 [11:05:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.33 ИТОГО: 1100.00 Внесено: 1100.00 СДАЧА: 0.00 НСП 1% : 9.74 НДС 12% : 116.85 Наличными: 1100.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 75 20.10.2024 11:05 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30293 ФПД: 247290589920924 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T110537&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30293&fm=247290589920924&tin=02508201610067®Number=0000000000186857&sum=110000 [11:05:29]StoreToDocumentArchive [11:05:29]shift 114 fd 30293 [11:05:29]save to /storage/0114/doc_00030293 [11:05:29]save last doc name /storage/0114/doc_00030293 to /storage/kkm_last_doc_name [11:05:29]save OK [11:05:29]Clear old archive folders... [11:05:29]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:05:29]tlvbuf is 00BEBD30 [11:05:29]SAM_PROTO_ClearQueue [11:05:29]wFMCommunicate request_size=4 [11:05:29]MH_SAM_APDU [11:05:29]CAPDU: 80 09 00 00 [11:05:29]Write to MH i2c: E2 08 00 2A 77 80 09 00 00 00 00 00 00 13 [11:05:29]Write i2c OK [11:05:29]MH_I2C_Read... [11:05:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:05:30]Read from MH i2c: E2 [11:05:30]MH_I2C_Read... [11:05:30]Read from MH i2c: E2 03 00 [11:05:30]MH_I2C_Read... [11:05:30]Read from MH i2c: E2 03 00 2A 77 00 90 00 15 [11:05:30]RAPDU: 90 00 [11:05:30]wFMCommunicate OK [11:05:30]SAM_PROTO_ClearQueue done [11:05:30]KKMCreateOFDPacket [11:05:30]OFDProtocolAddRootSTLVToBuf [11:05:30]FM_MakeSignedData [11:05:30]FM_MakeSignedData [11:05:30]SAM_PROTO_SignData [11:05:30]wFMCommunicate request_size=4 [11:05:30]MH_SAM_APDU [11:05:30]CAPDU: 80 0D 01 02 [11:05:30]Write to MH i2c: E2 08 00 2B 77 80 0D 01 02 00 00 00 00 1B [11:05:30]Write i2c OK [11:05:30]MH_I2C_Read... [11:05:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:05:30]Read from MH i2c: E2 [11:05:30]MH_I2C_Read... [11:05:30]Read from MH i2c: E2 03 00 [11:05:30]MH_I2C_Read... [11:05:30]Read from MH i2c: E2 03 00 2B 77 00 90 00 16 [11:05:30]RAPDU: 90 00 [11:05:30]wFMCommunicate OK [11:05:30]wFMCommunicate request_size=255 [11:05:30]MH_SAM_APDU [11:05:30]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 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 68 38 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D1 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A5 2D 00 00 00 00 07 04 06 00 B0 AD 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 01 E4 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 E0 E8 D3 C4 [11:05:30]Write to MH i2c: E2 02 01 2C 77 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 68 38 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D1 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A5 2D 00 00 00 00 07 04 06 00 B0 AD 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 01 E4 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 E0 E8 D3 C4 00 00 20 [11:05:30]Write i2c OK [11:05:30]MH_I2C_Read... [11:05:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:05:30]Read from MH i2c: E2 [11:05:30]MH_I2C_Read... [11:05:30]Read from MH i2c: E2 03 00 [11:05:30]MH_I2C_Read... [11:05:30]Read from MH i2c: E2 03 00 2C 77 00 90 00 17 [11:05:30]RAPDU: 90 00 [11:05:30]wFMCommunicate OK [11:05:30]wFMCommunicate request_size=7 [11:05:30]MH_SAM_APDU [11:05:30]CAPDU: 80 0D 02 02 02 BE 9C [11:05:30]Write to MH i2c: E2 0A 00 2D 77 80 0D 02 02 02 00 BE 9C 00 00 7C [11:05:30]Write i2c OK [11:05:30]MH_I2C_Read... [11:05:30]OFD Sender: No OFD packet to send [11:05:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:05:30]Read from MH i2c: E2 [11:05:30]MH_I2C_Read... [11:05:30]Read from MH i2c: E2 03 00 [11:05:30]MH_I2C_Read... [11:05:30]Read from MH i2c: E2 03 00 2D 77 00 90 00 18 [11:05:30]RAPDU: 90 00 [11:05:30]wFMCommunicate OK [11:05:30]wFMCommunicate request_size=4 [11:05:30]MH_SAM_APDU [11:05:30]CAPDU: 80 0D 03 02 [11:05:30]Write to MH i2c: E2 08 00 2E 77 80 0D 03 02 00 00 00 00 20 [11:05:30]Write i2c OK [11:05:30]MH_I2C_Read... [11:05:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:05:30]Read from MH i2c: E2 [11:05:30]MH_I2C_Read... [11:05:30]Read from MH i2c: E2 0B 00 [11:05:30]MH_I2C_Read... [11:05:30]Read from MH i2c: E2 0B 00 2E 77 00 E9 2A F2 E9 16 19 3C D9 90 00 53 [11:05:30]RAPDU: E9 2A F2 E9 16 19 3C D9 90 00 [11:05:30]wFMCommunicate OK [11:05:30]SAM_PROTO_SignData done [11:05:30]FM_MakeSignedData done [11:05:30]CreateOFDProtocolMessage [11:05:30]wFMCommunicate request_size=4 [11:05:30]MH_SAM_APDU [11:05:30]CAPDU: 80 11 00 00 [11:05:30]Write to MH i2c: E2 08 00 2F 77 80 11 00 00 00 00 00 00 20 [11:05:30]Write i2c OK [11:05:30]MH_I2C_Read... [11:05:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:05:30]Read from MH i2c: E2 [11:05:30]MH_I2C_Read... [11:05:30]Read from MH i2c: E2 17 00 [11:05:30]MH_I2C_Read... [11:05:30]Read from MH i2c: E2 17 00 2F 77 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 6E [11:05:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [11:05:30]wFMCommunicate OK [11:05:30]CreateOFDProtocolMessage done [11:05:30]OFDSenderStorePacket 30293 [11:05:30]StoreOFDPacket docnum=30293 [11:05: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 06 CF 04 01 A6 60 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 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 68 38 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D1 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A5 2D 00 00 00 00 07 04 06 00 B0 AD 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 01 E4 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 E0 E8 D3 C4 BE 9C E9 2A F2 E9 16 19 3C D9 [11:05:30]CheckFolder [11:05:30]dirname=/storage/ofd_packets [11:05:30]CheckFolder done [11:05:30]ProducePacketName [11:05:30]name=ofd_packets/00030293 [11:05:30]NVStorageSaveData ofd_packets/00030293 [11:05:30]File name is /storage/ofd_packets/00030293 [11:05:30]Write 298 bytes [11:05:30]NVStorageSaveData done [11:05:30]OFDSenderStorePacket done [11:05:30]KKMCreateOFDPacket done [11:05:30]NVStorageSaveData kkm_last_timestamp [11:05:30]File name is /storage/kkm_last_timestamp [11:05:30]Write 4 bytes [11:05:30]NVStorageSaveData done [11:05:30]ExternCall_PrintAddStr [11:05:30]wPrintStart [11:05:30]Write to MH i2c: 01 00 00 30 77 A7 [11:05:30]Write i2c OK [11:05:30]MH_I2C_Read... [11:05:30]Read from MH i2c: 01 [11:05:30]MH_I2C_Read... [11:05:30]Read from MH i2c: 01 07 00 [11:05:30]MH_I2C_Read... [11:05:30]Read from MH i2c: 01 07 00 30 77 00 00 00 00 00 FF 0F BC [11:05:30]RasterBufferAndPrint [11:05:30]line Счет N : (1)342685 [11:05:30]line ИНН: 02508201610067 [11:05:30]line Контрольно-Кассовый Чек [11:05:30]line ПРОДАЖА [11:05:30]line ТРК (МРК, ГНК) : 54 [11:05:30]line Товар: 2710194210 [11:05:30]line ДТ-К-2 [11:05:30]line 14.440 * 76.20 [11:05:30]line = 1100.33 [11:05:30]line НДС 12% НСП 1% [11:05:30]line > о реализуемом товаре [11:05:30]line ОКРУГЛЕНИЕ: -0.33 [11:05:30]line ИТОГО: 1100.00 [11:05:30]line Внесено: 1100.00 [11:05:30]line СДАЧА: 0.00 [11:05:30]line НСП 1% : 9.74 [11:05:30]line НДС 12% : 116.85 [11:05:30]line Наличными: 1100.00 [11:05:30]line Безнал.: 0.00 [11:05:30]line Место: АЗС № 78 "Партнер Нефть" [11:05:30]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [11:05:30]line СНО: Общий режим [11:05:30]line Чек 75 20.10.2024 11:05 [11:05:30]line Смена: 114 ФФД: 1.0 [11:05:30]line ЗНМ: 0300000137 [11:05:30]line РНМ: 0000000000186857 [11:05:30]line Версия ККМ: v1.0 [11:05:30]line ФМ: 0000000002094219 [11:05:30]line ФД: 30293 [11:05:30]line ФПД: 247290589920924 [11:05:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T110537&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30293&fm=247290589920924&tin=02508201610067®Number=0000000000186857&sum=110000 [11:05:30]OFD Sender: Processing packet 30293 [packets to send 10, broken 9] [11:05:30]ProducePacketName [11:05:30]name=ofd_packets/00030293 [11:05:30]OFD Sender: To server: pG, [11:05:30]CommunicateWithHost lk.salyk.kg:30040 [11:05:30]ConnectInit lk.salyk.kg [11:05:30]written 0, free lines is 4095 [11:05:30]Connected sock=10 [11:05: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 06 CF 04 01 A6 60 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 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 68 38 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D1 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A5 2D 00 00 00 00 07 04 06 00 B0 AD 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 01 E4 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 E0 E8 D3 C4 BE 9C E9 2A F2 E9 16 19 3C D9 [11:05: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 8E DB 47 00 9C 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 55 76 00 00 F4 03 04 00 85 8E 14 67 B6 04 01 00 00 A6 EF A0 18 4E 3E A6 5D [11:05:31]CommunicateWithHost err = 0 [11:05:31]CheckOFDResponse [11:05:31]1017 (14) - 77093643461234 [11:05:31]1041 (16) - 0000000002094219 [11:05:31]1040 (4) - 30293 [11:05:31]1012 (4) - 20.10.2024 05:00 [11:05:31]1206 (1) - 0 [11:05:31]OFD Sender: Remove packet 30293 [11:05:31]ProducePacketName [11:05:31]name=ofd_packets/00030293 [11:05:31]NVStorageDeleteData [11:05:31]Write to MH i2c: 01 00 00 5B 77 D2 [11:05:31]Write i2c OK [11:05:31]MH_I2C_Read... [11:05:31]Read from MH i2c: 01 [11:05:31]MH_I2C_Read... [11:05:31]Read from MH i2c: 01 07 00 [11:05:31]MH_I2C_Read... [11:05:31]Read from MH i2c: 01 07 00 5B 77 00 00 00 00 00 21 0D 07 [11:05:31]RasterBufferAndPrint [11:05:31]line [11:05:31]line [11:05:31]line [11:05:31]line [11:05:31]line [11:05:31]written 0, free lines is 3373 [11:05:31]MH_Cut [11:05:31]Write to MH i2c: D1 01 00 62 77 01 AB [11:05:31]Write i2c OK [11:05:31]MH_I2C_Read... [11:05:31]Read from MH i2c: D1 [11:05:31]MH_I2C_Read... [11:05:31]Read from MH i2c: D1 01 00 [11:05:31]MH_I2C_Read... [11:05:31]Read from MH i2c: D1 01 00 62 77 00 AA [11:05:31]Write to MH i2c: 01 00 00 63 77 DA [11:05:31]Write i2c OK [11:05:31]MH_I2C_Read... [11:05:31]OFD Sender: No OFD packet to send [11:05:31]*** Cut start [11:05:31]*** Partial cut [11:05:31]*** CUTSNS_PIN = 1 [11:05:32]*** CUTSNS_PIN = 0 [11:05:32]*** Brake cut motor [11:05:32]Read from MH i2c: 01 [11:05:32]MH_I2C_Read... [11:05:32]*** Stop cut motor [11:05:32]*** Cut end [11:05:32]Read from MH i2c: 01 07 00 [11:05:32]MH_I2C_Read... [11:05:32]Read from MH i2c: 01 07 00 63 77 00 00 00 00 00 FF 0F EF [11:05:32]process_action close_receipt done [11:05:32]requested_data is exist [11:05:32]produce_requested_data [11:05:32]requested_item fm.sn is exist - process it [11:05:32]wFMCommunicate request_size=4 [11:05:32]MH_SAM_APDU [11:05:32]CAPDU: 80 11 00 00 [11:05:32]Write to MH i2c: E2 08 00 64 77 80 11 00 00 00 00 00 00 55 [11:05:32]Write i2c OK [11:05:32]MH_I2C_Read... [11:05:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:05:32]Read from MH i2c: E2 [11:05:32]MH_I2C_Read... [11:05:32]Read from MH i2c: E2 17 00 [11:05:32]MH_I2C_Read... [11:05:32]Read from MH i2c: E2 17 00 64 77 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 A3 [11:05:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [11:05:32]wFMCommunicate OK [11:05:32]requested_item fd.num is exist - process it [11:05:32]SAM_PROTO_GetFieldsCounters [11:05:32]wFMCommunicate request_size=4 [11:05:32]MH_SAM_APDU [11:05:32]CAPDU: 80 13 00 00 [11:05:32]Write to MH i2c: E2 08 00 65 77 80 13 00 00 00 00 00 00 58 [11:05:32]Write i2c OK [11:05:32]MH_I2C_Read... [11:05:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:05:32]Read from MH i2c: E2 [11:05:32]MH_I2C_Read... [11:05:32]Read from MH i2c: E2 62 00 [11:05:32]MH_I2C_Read... [11:05:32]Read from MH i2c: E2 62 00 65 77 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 9C [11:05: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 55 76 00 00 0E 04 04 00 72 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:05:32]wFMCommunicate OK [11:05:32]SAM_PROTO_GetFieldsCounters done [11:05:32]requested_item shift.num is exist - process it [11:05:32]requested_item shift.opened is exist - process it [11:05:32]req_shift_opened [11:05:32]FM_GetShiftState [11:05:32]SAM_PROTO_GetShiftState [11:05:32]wFMCommunicate request_size=4 [11:05:32]MH_SAM_APDU [11:05:32]CAPDU: 80 13 01 00 [11:05:32]Write to MH i2c: E2 08 00 66 77 80 13 01 00 00 00 00 00 5A [11:05:32]Write i2c OK [11:05:32]MH_I2C_Read... [11:05:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:05:32]Read from MH i2c: E2 [11:05:32]MH_I2C_Read... [11:05:32]Read from MH i2c: E2 0E 00 [11:05:32]MH_I2C_Read... [11:05:32]Read from MH i2c: E2 0E 00 66 77 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 40 [11:05:32]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [11:05:32]wFMCommunicate OK [11:05:32]SAM_PROTO_GetShiftState done [11:05:32]FM_GetShiftState done [11:05:32]req_shift_opened done [11:05:32]requested_item shift.open_date is exist - process it [11:05:32]req_shift_open_date [11:05:32]req_shift_open_date done [11:05:32]produce_requested_data done [11:05:32]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30293,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [11:05:32]process_action_free close_receipt [11:05:32]json_value_free [11:05:32]json_value_free done [11:05:32]process_json_proto returns [11:05:32]Send response to host [11:05:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30293,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [11:05:32]free response buf [11:05:32]execute_script done [11:05:32]execute_script returns [11:05:32]free content buf [11:05:32]Sock 9.Close socket [11:05:32]Sock 9.Thread stoped [11:05:36]OFD Sender: No OFD packet to send [11:05:41]OFD Sender: No OFD packet to send [11:05:46]OFD Sender: No OFD packet to send [11:05:51]OFD Sender: No OFD packet to send [11:05:56]OFD Sender: No OFD packet to send [11:05:59]accept exits with 7 [11:05:59]New connection [11:05:59]New thread 3067514212 created [11:05:59]Thread 3067370852 joined [11:05:59]Waiting for new connection... [11:05:59] Sock 7.Parse request [11:05:59]Sock 7.Check first char [11:05:59]Sock 7.First char is OK [11:05:59]request: POST /json_proto HTTP/1.0 [11:05:59]Method: POST [11:05:59]URL: /json_proto [11:05:59]Method is POST - this is cgi request [11:05:59]url: /json_proto [11:05:59]query_string will be loaded in cgi processing [11:05:59]execute_cgi json_proto POST (null) [11:05:59]execute_cgi path=json_proto method=POST [11:05:59]POST find Content-Length [11:05:59]Host: 172.17.51.3:8080 [11:05:59]Content-Length: 682 [11:05:59]Content-Type: application/json [11:05:59] [11:05:59]POST finish read [11:05:59]Found Content-Length = 682 [11:05:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342686", "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:05:59]execute_script... [11:05: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)342686", "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:05:59]POST & json_proto [11:05:59]process_json_proto [11:05:59]json parsed OK: [11:05:59]protocol is kg_v1.0 [11:05:59]action value=close_receipt [11:05:59]process_action close_receipt [11:05:59]cmd_close_receipt [11:05:59]MH_GetDate [11:05:59]Write to MH i2c: F0 00 00 67 77 CD [11:05:59]Write i2c OK [11:05:59]MH_I2C_Read... [11:05:59]Read from MH i2c: F0 [11:05:59]MH_I2C_Read... [11:05:59]Read from MH i2c: F0 09 00 [11:05:59]MH_I2C_Read... [11:05:59]Read from MH i2c: F0 09 00 67 77 00 20 E4 14 67 04 C1 95 66 15 [11:05:59]GetLastDocTimeStamp 1729422337 [11:05:59]current date 1729422368 [11:05:59]FM_GetShiftState [11:05:59]SAM_PROTO_GetShiftState [11:05:59]wFMCommunicate request_size=4 [11:05:59]MH_SAM_APDU [11:05:59]CAPDU: 80 13 01 00 [11:05:59]Write to MH i2c: E2 08 00 68 77 80 13 01 00 00 00 00 00 5C [11:05:59]Write i2c OK [11:05:59]MH_I2C_Read... [11:05:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:05:59]Read from MH i2c: E2 [11:05:59]MH_I2C_Read... [11:05:59]Read from MH i2c: E2 0E 00 [11:05:59]MH_I2C_Read... [11:05:59]Read from MH i2c: E2 0E 00 68 77 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 42 [11:05:59]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [11:05:59]wFMCommunicate OK [11:05:59]SAM_PROTO_GetShiftState done [11:05:59]FM_GetShiftState done [11:05:59]opened in 1729384718 [11:05:59]opened+sec_in_day 1729471118 [11:05:59]quantity*price = 100015 [11:05:59]sum+1 = 100017 [11:05: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 СНО: Общий режим Чек 76 20.10.2024 11:06 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30294 ФПД: 24805509413222 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T110608&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30294&fm=24805509413222&tin=02508201610067®Number=0000000000186857&sum=100000 [11:06:00]StoreToDocumentArchive [11:06:00]shift 114 fd 30294 [11:06:00]save to /storage/0114/doc_00030294 [11:06:00]save last doc name /storage/0114/doc_00030294 to /storage/kkm_last_doc_name [11:06:00]save OK [11:06:00]Clear old archive folders... [11:06:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:06:00]tlvbuf is 00B0C5C0 [11:06:00]SAM_PROTO_ClearQueue [11:06:00]wFMCommunicate request_size=4 [11:06:00]MH_SAM_APDU [11:06:00]CAPDU: 80 09 00 00 [11:06:00]Write to MH i2c: E2 08 00 75 77 80 09 00 00 00 00 00 00 5E [11:06:00]Write i2c OK [11:06:00]MH_I2C_Read... [11:06:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:06:00]Read from MH i2c: E2 [11:06:00]MH_I2C_Read... [11:06:00]Read from MH i2c: E2 03 00 [11:06:00]MH_I2C_Read... [11:06:00]Read from MH i2c: E2 03 00 75 77 00 90 00 60 [11:06:00]RAPDU: 90 00 [11:06:00]wFMCommunicate OK [11:06:00]SAM_PROTO_ClearQueue done [11:06:00]KKMCreateOFDPacket [11:06:00]OFDProtocolAddRootSTLVToBuf [11:06:00]FM_MakeSignedData [11:06:00]FM_MakeSignedData [11:06:00]SAM_PROTO_SignData [11:06:00]wFMCommunicate request_size=4 [11:06:00]MH_SAM_APDU [11:06:00]CAPDU: 80 0D 01 02 [11:06:00]Write to MH i2c: E2 08 00 76 77 80 0D 01 02 00 00 00 00 66 [11:06:00]Write i2c OK [11:06:00]MH_I2C_Read... [11:06:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:06:00]Read from MH i2c: E2 [11:06:00]MH_I2C_Read... [11:06:00]Read from MH i2c: E2 03 00 [11:06:00]MH_I2C_Read... [11:06:00]Read from MH i2c: E2 03 00 76 77 00 90 00 61 [11:06:00]RAPDU: 90 00 [11:06:00]wFMCommunicate OK [11:06:00]wFMCommunicate request_size=255 [11:06:00]MH_SAM_APDU [11:06: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 4C 00 00 00 F4 03 04 00 20 E4 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 16 [11:06:00]Write to MH i2c: E2 02 01 77 77 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 4C 00 00 00 F4 03 04 00 20 E4 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 16 00 00 10 [11:06:00]Write i2c OK [11:06:00]MH_I2C_Read... [11:06:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:06:01]Read from MH i2c: E2 [11:06:01]MH_I2C_Read... [11:06:01]Read from MH i2c: E2 03 00 [11:06:01]MH_I2C_Read... [11:06:01]Read from MH i2c: E2 03 00 77 77 00 90 00 62 [11:06:01]RAPDU: 90 00 [11:06:01]wFMCommunicate OK [11:06:01]wFMCommunicate request_size=10 [11:06:01]MH_SAM_APDU [11:06:01]CAPDU: 80 0D 02 02 05 8F 7B 93 B9 66 [11:06:01]Write to MH i2c: E2 0D 00 78 77 80 0D 02 02 05 00 8F 7B 93 B9 66 00 00 2F [11:06:01]Write i2c OK [11:06:01]MH_I2C_Read... [11:06:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:06:01]Read from MH i2c: E2 [11:06:01]MH_I2C_Read... [11:06:01]Read from MH i2c: E2 03 00 [11:06:01]MH_I2C_Read... [11:06:01]Read from MH i2c: E2 03 00 78 77 00 90 00 63 [11:06:01]RAPDU: 90 00 [11:06:01]wFMCommunicate OK [11:06:01]wFMCommunicate request_size=4 [11:06:01]MH_SAM_APDU [11:06:01]CAPDU: 80 0D 03 02 [11:06:01]Write to MH i2c: E2 08 00 79 77 80 0D 03 02 00 00 00 00 6B [11:06:01]Write i2c OK [11:06:01]MH_I2C_Read... [11:06:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:06:01]Read from MH i2c: E2 [11:06:01]MH_I2C_Read... [11:06:01]Read from MH i2c: E2 0B 00 [11:06:01]MH_I2C_Read... [11:06:01]Read from MH i2c: E2 0B 00 79 77 00 8F 35 C5 DC 21 38 FA 30 90 00 54 [11:06:01]RAPDU: 8F 35 C5 DC 21 38 FA 30 90 00 [11:06:01]wFMCommunicate OK [11:06:01]SAM_PROTO_SignData done [11:06:01]FM_MakeSignedData done [11:06:01]CreateOFDProtocolMessage [11:06:01]wFMCommunicate request_size=4 [11:06:01]MH_SAM_APDU [11:06:01]CAPDU: 80 11 00 00 [11:06:01]Write to MH i2c: E2 08 00 7A 77 80 11 00 00 00 00 00 00 6B [11:06:01]Write i2c OK [11:06:01]MH_I2C_Read... [11:06:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:06:01]Read from MH i2c: E2 [11:06:01]MH_I2C_Read... [11:06:01]Read from MH i2c: E2 17 00 [11:06:01]MH_I2C_Read... [11:06:01]Read from MH i2c: E2 17 00 7A 77 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 B9 [11:06:01]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:01]wFMCommunicate OK [11:06:01]CreateOFDProtocolMessage done [11:06:01]OFDSenderStorePacket 30294 [11:06:01]StoreOFDPacket docnum=30294 [11:06: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 8B 1B 07 01 A9 23 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 4C 00 00 00 F4 03 04 00 20 E4 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 16 8F 7B 93 B9 66 8F 35 C5 DC 21 38 FA 30 [11:06:01]CheckFolder [11:06:01]dirname=/storage/ofd_packets [11:06:01]CheckFolder done [11:06:01]ProducePacketName [11:06:01]name=ofd_packets/00030294 [11:06:01]NVStorageSaveData ofd_packets/00030294 [11:06:01]File name is /storage/ofd_packets/00030294 [11:06:01]Write 301 bytes [11:06:01]NVStorageSaveData done [11:06:01]OFDSenderStorePacket done [11:06:01]KKMCreateOFDPacket done [11:06:01]NVStorageSaveData kkm_last_timestamp [11:06:01]File name is /storage/kkm_last_timestamp [11:06:01]Write 4 bytes [11:06:01]NVStorageSaveData done [11:06:01]ExternCall_PrintAddStr [11:06:01]wPrintStart [11:06:01]Write to MH i2c: 01 00 00 7B 77 F2 [11:06:01]Write i2c OK [11:06:01]MH_I2C_Read... [11:06:01]Read from MH i2c: 01 [11:06:01]MH_I2C_Read... [11:06:01]Read from MH i2c: 01 07 00 [11:06:01]MH_I2C_Read... [11:06:01]Read from MH i2c: 01 07 00 7B 77 00 00 00 00 00 FF 0F 07 [11:06:01]RasterBufferAndPrint [11:06:01]line Счет N : (1)342686 [11:06:01]line ИНН: 02508201610067 [11:06:01]line Контрольно-Кассовый Чек [11:06:01]line ПРОДАЖА [11:06:01]line ТРК (МРК, ГНК) : 43 [11:06:01]line Товар: 2710124130 [11:06:01]line Аи-92-К-2 [11:06:01]line 14.950 * 66.90 [11:06:01]line = 1000.16 [11:06:01]line НДС 12% НСП 1% [11:06:01]line > о реализуемом товаре [11:06:01]line ОКРУГЛЕНИЕ: -0.16 [11:06:01]line ИТОГО: 1000.00 [11:06:01]line Внесено: 1000.00 [11:06:01]line СДАЧА: 0.00 [11:06:01]line НСП 1% : 8.85 [11:06:01]line НДС 12% : 106.21 [11:06:01]line Наличными: 1000.00 [11:06:01]line Безнал.: 0.00 [11:06:01]line Место: АЗС № 78 "Партнер Нефть" [11:06:01]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [11:06:01]line СНО: Общий режим [11:06:01]line Чек 76 20.10.2024 11:06 [11:06:01]line Смена: 114 ФФД: 1.0 [11:06:01]line ЗНМ: 0300000137 [11:06:01]line РНМ: 0000000000186857 [11:06:01]line Версия ККМ: v1.0 [11:06:01]line ФМ: 0000000002094219 [11:06:01]line ФД: 30294 [11:06:01]line ФПД: 24805509413222 [11:06:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T110608&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30294&fm=24805509413222&tin=02508201610067®Number=0000000000186857&sum=100000 [11:06:01]written 0, free lines is 4095 [11:06:01]OFD Sender: Processing packet 30294 [packets to send 10, broken 9] [11:06:01]ProducePacketName [11:06:01]name=ofd_packets/00030294 [11:06:01]OFD Sender: To server: pG, [11:06:01]CommunicateWithHost lk.salyk.kg:30040 [11:06:01]ConnectInit lk.salyk.kg [11:06:01]Connected sock=11 [11:06: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 8B 1B 07 01 A9 23 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 4C 00 00 00 F4 03 04 00 20 E4 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 16 8F 7B 93 B9 66 8F 35 C5 DC 21 38 FA 30 [11:06: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 3B A1 47 00 6D F6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 56 76 00 00 F4 03 04 00 A4 8E 14 67 B6 04 01 00 00 E4 0D 05 65 5D 9E BE 6D [11:06:01]CommunicateWithHost err = 0 [11:06:01]CheckOFDResponse [11:06:01]1017 (14) - 77093643461234 [11:06:01]1041 (16) - 0000000002094219 [11:06:01]1040 (4) - 30294 [11:06:01]1012 (4) - 20.10.2024 05:01 [11:06:01]1206 (1) - 0 [11:06:01]OFD Sender: Remove packet 30294 [11:06:01]ProducePacketName [11:06:01]name=ofd_packets/00030294 [11:06:01]NVStorageDeleteData [11:06:01]Write to MH i2c: 01 00 00 A6 77 1D [11:06:01]Write i2c OK [11:06:01]MH_I2C_Read... [11:06:01]Read from MH i2c: 01 [11:06:01]MH_I2C_Read... [11:06:01]Read from MH i2c: 01 07 00 [11:06:01]MH_I2C_Read... [11:06:01]Read from MH i2c: 01 07 00 A6 77 00 00 00 00 00 FB 0C 2B [11:06:01]RasterBufferAndPrint [11:06:01]line [11:06:01]line [11:06:01]line [11:06:01]line [11:06:01]line [11:06:01]written 0, free lines is 3329 [11:06:01]MH_Cut [11:06:01]Write to MH i2c: D1 01 00 AD 77 01 F6 [11:06:01]Write i2c OK [11:06:01]MH_I2C_Read... [11:06:01]Read from MH i2c: D1 [11:06:01]MH_I2C_Read... [11:06:01]Read from MH i2c: D1 01 00 [11:06:01]MH_I2C_Read... [11:06:01]Read from MH i2c: D1 01 00 AD 77 00 F5 [11:06:01]Write to MH i2c: 01 00 00 AE 77 25 [11:06:01]Write i2c OK [11:06:01]MH_I2C_Read... [11:06:02]OFD Sender: No OFD packet to send [11:06:02]*** Cut start [11:06:02]*** Partial cut [11:06:02]*** CUTSNS_PIN = 1 [11:06:02]*** CUTSNS_PIN = 0 [11:06:02]*** Brake cut motor [11:06:03]Read from MH i2c: 01 [11:06:03]MH_I2C_Read... [11:06:03]*** Stop cut motor [11:06:03]*** Cut end [11:06:03]Read from MH i2c: 01 07 00 [11:06:03]MH_I2C_Read... [11:06:03]Read from MH i2c: 01 07 00 AE 77 00 00 00 00 00 FF 0F 3A [11:06:03]process_action close_receipt done [11:06:03]requested_data is exist [11:06:03]produce_requested_data [11:06:03]requested_item fm.sn is exist - process it [11:06:03]wFMCommunicate request_size=4 [11:06:03]MH_SAM_APDU [11:06:03]CAPDU: 80 11 00 00 [11:06:03]Write to MH i2c: E2 08 00 AF 77 80 11 00 00 00 00 00 00 A0 [11:06:03]Write i2c OK [11:06:03]MH_I2C_Read... [11:06:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:06:03]Read from MH i2c: E2 [11:06:03]MH_I2C_Read... [11:06:03]Read from MH i2c: E2 17 00 [11:06:03]MH_I2C_Read... [11:06:03]Read from MH i2c: E2 17 00 AF 77 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 EE [11:06:03]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:03]wFMCommunicate OK [11:06:03]requested_item fd.num is exist - process it [11:06:03]SAM_PROTO_GetFieldsCounters [11:06:03]wFMCommunicate request_size=4 [11:06:03]MH_SAM_APDU [11:06:03]CAPDU: 80 13 00 00 [11:06:03]Write to MH i2c: E2 08 00 B0 77 80 13 00 00 00 00 00 00 A3 [11:06:03]Write i2c OK [11:06:03]MH_I2C_Read... [11:06:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:06:03]Read from MH i2c: E2 [11:06:03]MH_I2C_Read... [11:06:03]Read from MH i2c: E2 62 00 [11:06:03]MH_I2C_Read... [11:06:03]Read from MH i2c: E2 62 00 B0 77 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 EB [11:06: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 56 76 00 00 0E 04 04 00 72 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:06:03]wFMCommunicate OK [11:06:03]SAM_PROTO_GetFieldsCounters done [11:06:03]requested_item shift.num is exist - process it [11:06:03]requested_item shift.opened is exist - process it [11:06:03]req_shift_opened [11:06:03]FM_GetShiftState [11:06:03]SAM_PROTO_GetShiftState [11:06:03]wFMCommunicate request_size=4 [11:06:03]MH_SAM_APDU [11:06:03]CAPDU: 80 13 01 00 [11:06:03]Write to MH i2c: E2 08 00 B1 77 80 13 01 00 00 00 00 00 A5 [11:06:03]Write i2c OK [11:06:03]MH_I2C_Read... [11:06:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:06:03]Read from MH i2c: E2 [11:06:03]MH_I2C_Read... [11:06:03]Read from MH i2c: E2 0E 00 [11:06:03]MH_I2C_Read... [11:06:03]Read from MH i2c: E2 0E 00 B1 77 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 8B [11:06:03]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [11:06:03]wFMCommunicate OK [11:06:03]SAM_PROTO_GetShiftState done [11:06:03]FM_GetShiftState done [11:06:03]req_shift_opened done [11:06:03]requested_item shift.open_date is exist - process it [11:06:03]req_shift_open_date [11:06:03]req_shift_open_date done [11:06:03]produce_requested_data done [11:06:03]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30294,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [11:06:03]process_action_free close_receipt [11:06:03]json_value_free [11:06:03]json_value_free done [11:06:03]process_json_proto returns [11:06:03]Send response to host [11:06:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30294,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [11:06:03]free response buf [11:06:03]execute_script done [11:06:03]execute_script returns [11:06:03]free content buf [11:06:03]Sock 7.Close socket [11:06:03]Sock 7.Thread stoped [11:06:07]OFD Sender: No OFD packet to send [11:06:12]OFD Sender: No OFD packet to send [11:06:17]OFD Sender: No OFD packet to send [11:06:22]OFD Sender: No OFD packet to send [11:06:27]OFD Sender: No OFD packet to send [11:06:32]OFD Sender: No OFD packet to send [11:06:37]OFD Sender: No OFD packet to send [11:06:42]OFD Sender: No OFD packet to send [11:06:47]OFD Sender: No OFD packet to send [11:06:52]OFD Sender: No OFD packet to send [11:06:57]OFD Sender: No OFD packet to send [11:07:02]OFD Sender: No OFD packet to send [11:07:07]OFD Sender: No OFD packet to send [11:07:12]OFD Sender: No OFD packet to send [11:07:17]OFD Sender: No OFD packet to send [11:07:22]OFD Sender: No OFD packet to send [11:07:27]OFD Sender: No OFD packet to send [11:07:32]OFD Sender: No OFD packet to send [11:07:37]OFD Sender: No OFD packet to send [11:07:42]OFD Sender: No OFD packet to send [11:07:47]OFD Sender: No OFD packet to send [11:07:52]OFD Sender: No OFD packet to send [11:07:57]OFD Sender: No OFD packet to send [11:08:02]OFD Sender: No OFD packet to send [11:08:07]OFD Sender: No OFD packet to send [11:08:12]OFD Sender: No OFD packet to send [11:08:17]OFD Sender: No OFD packet to send [11:08:22]OFD Sender: No OFD packet to send [11:08:27]OFD Sender: No OFD packet to send [11:08:32]OFD Sender: No OFD packet to send [11:08:37]OFD Sender: No OFD packet to send [11:08:42]OFD Sender: No OFD packet to send [11:08:47]OFD Sender: No OFD packet to send [11:08:52]OFD Sender: No OFD packet to send [11:08:57]OFD Sender: No OFD packet to send [11:09:02]OFD Sender: No OFD packet to send [11:09:07]OFD Sender: No OFD packet to send [11:09:12]OFD Sender: No OFD packet to send [11:09:17]OFD Sender: No OFD packet to send [11:09:22]OFD Sender: No OFD packet to send [11:09:27]OFD Sender: No OFD packet to send [11:09:32]OFD Sender: No OFD packet to send [11:09:37]OFD Sender: No OFD packet to send [11:09:42]OFD Sender: No OFD packet to send [11:09:47]OFD Sender: No OFD packet to send [11:09:52]OFD Sender: No OFD packet to send [11:09:57]OFD Sender: No OFD packet to send [11:10:02]OFD Sender: No OFD packet to send [11:10:07]OFD Sender: No OFD packet to send [11:10:12]OFD Sender: No OFD packet to send [11:10:16]accept exits with 9 [11:10:16]New connection [11:10:16]New thread 3067370852 created [11:10:16]Thread 3067514212 joined [11:10:16]Waiting for new connection... [11:10:16] Sock 9.Parse request [11:10:16]Sock 9.Check first char [11:10:16]Sock 9.First char is OK [11:10:16]request: POST /json_proto HTTP/1.0 [11:10:16]Method: POST [11:10:16]URL: /json_proto [11:10:16]Method is POST - this is cgi request [11:10:16]url: /json_proto [11:10:16]query_string will be loaded in cgi processing [11:10:16]execute_cgi json_proto POST (null) [11:10:16]execute_cgi path=json_proto method=POST [11:10:16]POST find Content-Length [11:10:16]Host: 172.17.51.3:8080 [11:10:16]Content-Length: 843 [11:10:16]Content-Type: application/json [11:10:16] [11:10:16]POST finish read [11:10:16]Found Content-Length = 843 [11:10:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342687", "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" ] } } [11:10:16]execute_script... [11:10: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)342687", "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" ] } } [11:10:16]POST & json_proto [11:10:16]process_json_proto [11:10:16]json parsed OK: [11:10:16]protocol is kg_v1.0 [11:10:16]action value=close_receipt [11:10:16]process_action close_receipt [11:10:16]cmd_close_receipt [11:10:16]MH_GetDate [11:10:16]Write to MH i2c: F0 00 00 B2 77 18 [11:10:16]Write i2c OK [11:10:16]MH_I2C_Read... [11:10:16]Read from MH i2c: F0 [11:10:16]MH_I2C_Read... [11:10:16]Read from MH i2c: F0 09 00 [11:10:16]MH_I2C_Read... [11:10:16]Read from MH i2c: F0 09 00 B2 77 00 21 E5 14 67 04 C1 95 66 62 [11:10:16]GetLastDocTimeStamp 1729422368 [11:10:16]current date 1729422625 [11:10:16]FM_GetShiftState [11:10:16]SAM_PROTO_GetShiftState [11:10:16]wFMCommunicate request_size=4 [11:10:16]MH_SAM_APDU [11:10:16]CAPDU: 80 13 01 00 [11:10:16]Write to MH i2c: E2 08 00 B3 77 80 13 01 00 00 00 00 00 A7 [11:10:16]Write i2c OK [11:10:16]MH_I2C_Read... [11:10:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:10:16]Read from MH i2c: E2 [11:10:16]MH_I2C_Read... [11:10:16]Read from MH i2c: E2 0E 00 [11:10:16]MH_I2C_Read... [11:10:16]Read from MH i2c: E2 0E 00 B3 77 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 8D [11:10:16]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [11:10:16]wFMCommunicate OK [11:10:16]SAM_PROTO_GetShiftState done [11:10:16]FM_GetShiftState done [11:10:16]opened in 1729384718 [11:10:16]opened+sec_in_day 1729471118 [11:10:16]quantity*price = 100015 [11:10:16]sum+1 = 100017 [11:10:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 77 20.10.2024 11:10 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Платежная система: АКБ Кыргызстан ФМ: 0000000002094219 ФД: 30295 ФПД: 48711172781718 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T111025&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30295&fm=48711172781718&tin=02508201610067®Number=0000000000186857&sum=100016 [11:10:17]StoreToDocumentArchive [11:10:17]shift 114 fd 30295 [11:10:17]save to /storage/0114/doc_00030295 [11:10:17]save last doc name /storage/0114/doc_00030295 to /storage/kkm_last_doc_name [11:10:17]save OK [11:10:17]Clear old archive folders... [11:10:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:10:17]tlvbuf is 00BC8740 [11:10:17]SAM_PROTO_ClearQueue [11:10:17]wFMCommunicate request_size=4 [11:10:17]MH_SAM_APDU [11:10:17]CAPDU: 80 09 00 00 [11:10:17]Write to MH i2c: E2 08 00 C0 77 80 09 00 00 00 00 00 00 A9 [11:10:17]Write i2c OK [11:10:17]MH_I2C_Read... [11:10:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:10:17]Read from MH i2c: E2 [11:10:17]MH_I2C_Read... [11:10:17]Read from MH i2c: E2 03 00 [11:10:17]MH_I2C_Read... [11:10:17]Read from MH i2c: E2 03 00 C0 77 00 90 00 AB [11:10:17]RAPDU: 90 00 [11:10:17]wFMCommunicate OK [11:10:17]SAM_PROTO_ClearQueue done [11:10:17]KKMCreateOFDPacket [11:10:17]OFDProtocolAddRootSTLVToBuf [11:10:17]FM_MakeSignedData [11:10:17]FM_MakeSignedData [11:10:17]SAM_PROTO_SignData [11:10:17]wFMCommunicate request_size=4 [11:10:17]MH_SAM_APDU [11:10:17]CAPDU: 80 0D 01 02 [11:10:17]Write to MH i2c: E2 08 00 C1 77 80 0D 01 02 00 00 00 00 B1 [11:10:17]Write i2c OK [11:10:17]MH_I2C_Read... [11:10:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:10:17]Read from MH i2c: E2 [11:10:17]MH_I2C_Read... [11:10:17]Read from MH i2c: E2 03 00 [11:10:17]MH_I2C_Read... [11:10:17]Read from MH i2c: E2 03 00 C1 77 00 90 00 AC [11:10:17]RAPDU: 90 00 [11:10:17]wFMCommunicate OK [11:10:17]wFMCommunicate request_size=255 [11:10:17]MH_SAM_APDU [11:10: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 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 4D 00 00 00 F4 03 04 00 21 E5 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 2C [11:10:17]Write to MH i2c: E2 02 01 C2 77 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 4D 00 00 00 F4 03 04 00 21 E5 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 2C 00 00 95 [11:10:17]Write i2c OK [11:10:17]MH_I2C_Read... [11:10:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:10:18]Read from MH i2c: E2 [11:10:18]MH_I2C_Read... [11:10:18]Read from MH i2c: E2 03 00 [11:10:18]MH_I2C_Read... [11:10:18]Read from MH i2c: E2 03 00 C2 77 00 90 00 AD [11:10:18]RAPDU: 90 00 [11:10:18]wFMCommunicate OK [11:10:18]wFMCommunicate request_size=10 [11:10:18]MH_SAM_APDU [11:10:18]CAPDU: 80 0D 02 02 05 4D 74 26 76 96 [11:10:18]Write to MH i2c: E2 0D 00 C3 77 80 0D 02 02 05 00 4D 74 26 76 96 00 00 B1 [11:10:18]Write i2c OK [11:10:18]MH_I2C_Read... [11:10:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:10:18]Read from MH i2c: E2 [11:10:18]MH_I2C_Read... [11:10:18]Read from MH i2c: E2 03 00 [11:10:18]MH_I2C_Read... [11:10:18]Read from MH i2c: E2 03 00 C3 77 00 90 00 AE [11:10:18]RAPDU: 90 00 [11:10:18]wFMCommunicate OK [11:10:18]wFMCommunicate request_size=4 [11:10:18]MH_SAM_APDU [11:10:18]CAPDU: 80 0D 03 02 [11:10:18]Write to MH i2c: E2 08 00 C4 77 80 0D 03 02 00 00 00 00 B6 [11:10:18]Write i2c OK [11:10:18]MH_I2C_Read... [11:10:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:10:18]Read from MH i2c: E2 [11:10:18]MH_I2C_Read... [11:10:18]Read from MH i2c: E2 0B 00 [11:10:18]MH_I2C_Read... [11:10:18]Read from MH i2c: E2 0B 00 C4 77 00 53 6C F5 28 45 49 95 97 90 00 4D [11:10:18]RAPDU: 53 6C F5 28 45 49 95 97 90 00 [11:10:18]wFMCommunicate OK [11:10:18]SAM_PROTO_SignData done [11:10:18]FM_MakeSignedData done [11:10:18]CreateOFDProtocolMessage [11:10:18]wFMCommunicate request_size=4 [11:10:18]MH_SAM_APDU [11:10:18]CAPDU: 80 11 00 00 [11:10:18]Write to MH i2c: E2 08 00 C5 77 80 11 00 00 00 00 00 00 B6 [11:10:18]Write i2c OK [11:10:18]MH_I2C_Read... [11:10:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:10:18]Read from MH i2c: E2 [11:10:18]MH_I2C_Read... [11:10:18]Read from MH i2c: E2 17 00 [11:10:18]MH_I2C_Read... [11:10:18]Read from MH i2c: E2 17 00 C5 77 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 04 [11:10:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [11:10:18]wFMCommunicate OK [11:10:18]CreateOFDProtocolMessage done [11:10:18]OFDSenderStorePacket 30295 [11:10:18]StoreOFDPacket docnum=30295 [11:10: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 F7 B9 07 01 2F 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 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 4D 00 00 00 F4 03 04 00 21 E5 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 2C 4D 74 26 76 96 53 6C F5 28 45 49 95 97 [11:10:18]CheckFolder [11:10:18]dirname=/storage/ofd_packets [11:10:18]CheckFolder done [11:10:18]ProducePacketName [11:10:18]name=ofd_packets/00030295 [11:10:18]NVStorageSaveData ofd_packets/00030295 [11:10:18]File name is /storage/ofd_packets/00030295 [11:10:18]Write 301 bytes [11:10:18]NVStorageSaveData done [11:10:18]OFDSenderStorePacket done [11:10:18]KKMCreateOFDPacket done [11:10:18]NVStorageSaveData kkm_last_timestamp [11:10:18]File name is /storage/kkm_last_timestamp [11:10:18]Write 4 bytes [11:10:18]NVStorageSaveData done [11:10:18]ExternCall_PrintAddStr [11:10:18]wPrintStart [11:10:18]Write to MH i2c: 01 00 00 C6 77 3D [11:10:18]Write i2c OK [11:10:18]MH_I2C_Read... [11:10:18]Read from MH i2c: 01 [11:10:18]MH_I2C_Read... [11:10:18]Read from MH i2c: 01 07 00 [11:10:18]MH_I2C_Read... [11:10:18]Read from MH i2c: 01 07 00 C6 77 00 00 00 00 00 FF 0F 52 [11:10:18]RasterBufferAndPrint [11:10:18]line Счет N : (1)342687 [11:10:18]line ИНН: 02508201610067 [11:10:18]line Контрольно-Кассовый Чек [11:10:18]line ПРОДАЖА [11:10:18]line ТРК (МРК, ГНК) : 63 [11:10:18]line Товар: 2710124130 [11:10:18]line Аи-92-К-2 [11:10:18]line 14.950 * 66.90 [11:10:18]line = 1000.16 [11:10:18]line НДС 12% НСП 1% [11:10:18]line > о реализуемом товаре [11:10:18]line ИТОГО: 1000.16 [11:10:18]line НСП 1% : 8.85 [11:10:18]line НДС 12% : 106.21 [11:10:18]line Наличными: 0.00 [11:10:18]line Безнал.: 1000.16 [11:10:18]line Место: АЗС № 78 "Партнер Нефть" [11:10:18]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [11:10:18]line СНО: Общий режим [11:10:18]line Чек 77 20.10.2024 11:10 [11:10:18]line Смена: 114 ФФД: 1.0 [11:10:18]line ЗНМ: 0300000137 [11:10:18]line РНМ: 0000000000186857 [11:10:18]line Версия ККМ: v1.0 [11:10:18]line Платежная система: АКБ Кыргызстан [11:10:18]line ФМ: 0000000002094219 [11:10:18]line ФД: 30295 [11:10:18]line ФПД: 48711172781718 [11:10:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T111025&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30295&fm=48711172781718&tin=02508201610067®Number=0000000000186857&sum=100016 [11:10:18]OFD Sender: Processing packet 30295 [packets to send 10, broken 9] [11:10:18]ProducePacketName [11:10:18]name=ofd_packets/00030295 [11:10:18]OFD Sender: To server: pG, [11:10:18]CommunicateWithHost lk.salyk.kg:30040 [11:10:18]ConnectInit lk.salyk.kg [11:10:18]written 0, free lines is 4095 [11:10:18]Connected sock=10 [11:10: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 F7 B9 07 01 2F 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 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 4D 00 00 00 F4 03 04 00 21 E5 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 2C 4D 74 26 76 96 53 6C F5 28 45 49 95 97 [11:10: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 C7 AE 47 00 15 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 57 76 00 00 F4 03 04 00 A5 8F 14 67 B6 04 01 00 00 41 EC 81 CA C6 4B D9 BA [11:10:19]CommunicateWithHost err = 0 [11:10:19]CheckOFDResponse [11:10:19]1017 (14) - 77093643461234 [11:10:19]1041 (16) - 0000000002094219 [11:10:19]1040 (4) - 30295 [11:10:19]1012 (4) - 20.10.2024 05:05 [11:10:19]1206 (1) - 0 [11:10:19]OFD Sender: Remove packet 30295 [11:10:19]ProducePacketName [11:10:19]name=ofd_packets/00030295 [11:10:19]NVStorageDeleteData [11:10:19]Write to MH i2c: 01 00 00 F0 77 67 [11:10:19]Write i2c OK [11:10:19]MH_I2C_Read... [11:10:19]Read from MH i2c: 01 [11:10:19]MH_I2C_Read... [11:10:19]Read from MH i2c: 01 07 00 [11:10:19]MH_I2C_Read... [11:10:19]Read from MH i2c: 01 07 00 F0 77 00 00 00 00 00 0D 0D 88 [11:10:19]RasterBufferAndPrint [11:10:19]line [11:10:19]line [11:10:19]line [11:10:19]line [11:10:19]line [11:10:19]written 0, free lines is 3348 [11:10:19]MH_Cut [11:10:19]Write to MH i2c: D1 01 00 F7 77 01 40 [11:10:19]Write i2c OK [11:10:19]MH_I2C_Read... [11:10:19]Read from MH i2c: D1 [11:10:19]MH_I2C_Read... [11:10:19]Read from MH i2c: D1 01 00 [11:10:19]MH_I2C_Read... [11:10:19]Read from MH i2c: D1 01 00 F7 77 00 3F [11:10:19]Write to MH i2c: 01 00 00 F8 77 6F [11:10:19]Write i2c OK [11:10:19]MH_I2C_Read... [11:10:19]OFD Sender: No OFD packet to send [11:10:19]*** Cut start [11:10:19]*** Partial cut [11:10:19]*** CUTSNS_PIN = 1 [11:10:19]*** CUTSNS_PIN = 0 [11:10:20]*** Brake cut motor [11:10:20]Read from MH i2c: 01 [11:10:20]MH_I2C_Read... [11:10:20]*** Stop cut motor [11:10:20]*** Cut end [11:10:20]Read from MH i2c: 01 07 00 [11:10:20]MH_I2C_Read... [11:10:20]Read from MH i2c: 01 07 00 F8 77 00 00 00 00 00 FF 0F 84 [11:10:20]process_action close_receipt done [11:10:20]requested_data is exist [11:10:20]produce_requested_data [11:10:20]requested_item fm.sn is exist - process it [11:10:20]wFMCommunicate request_size=4 [11:10:20]MH_SAM_APDU [11:10:20]CAPDU: 80 11 00 00 [11:10:20]Write to MH i2c: E2 08 00 F9 77 80 11 00 00 00 00 00 00 EA [11:10:20]Write i2c OK [11:10:20]MH_I2C_Read... [11:10:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:10:20]Read from MH i2c: E2 [11:10:20]MH_I2C_Read... [11:10:20]Read from MH i2c: E2 17 00 [11:10:20]MH_I2C_Read... [11:10:20]Read from MH i2c: E2 17 00 F9 77 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 38 [11:10:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [11:10:20]wFMCommunicate OK [11:10:20]requested_item fd.num is exist - process it [11:10:20]SAM_PROTO_GetFieldsCounters [11:10:20]wFMCommunicate request_size=4 [11:10:20]MH_SAM_APDU [11:10:20]CAPDU: 80 13 00 00 [11:10:20]Write to MH i2c: E2 08 00 FA 77 80 13 00 00 00 00 00 00 ED [11:10:20]Write i2c OK [11:10:20]MH_I2C_Read... [11:10:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:10:20]Read from MH i2c: E2 [11:10:20]MH_I2C_Read... [11:10:20]Read from MH i2c: E2 62 00 [11:10:20]MH_I2C_Read... [11:10:20]Read from MH i2c: E2 62 00 FA 77 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 39 [11:10: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 57 76 00 00 0E 04 04 00 72 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:10:20]wFMCommunicate OK [11:10:20]SAM_PROTO_GetFieldsCounters done [11:10:20]requested_item shift.num is exist - process it [11:10:20]requested_item shift.opened is exist - process it [11:10:20]req_shift_opened [11:10:20]FM_GetShiftState [11:10:20]SAM_PROTO_GetShiftState [11:10:20]wFMCommunicate request_size=4 [11:10:20]MH_SAM_APDU [11:10:20]CAPDU: 80 13 01 00 [11:10:20]Write to MH i2c: E2 08 00 FB 77 80 13 01 00 00 00 00 00 EF [11:10:20]Write i2c OK [11:10:20]MH_I2C_Read... [11:10:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:10:20]Read from MH i2c: E2 [11:10:20]MH_I2C_Read... [11:10:20]Read from MH i2c: E2 0E 00 [11:10:20]MH_I2C_Read... [11:10:20]Read from MH i2c: E2 0E 00 FB 77 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 D5 [11:10:20]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [11:10:20]wFMCommunicate OK [11:10:20]SAM_PROTO_GetShiftState done [11:10:20]FM_GetShiftState done [11:10:20]req_shift_opened done [11:10:20]requested_item shift.open_date is exist - process it [11:10:20]req_shift_open_date [11:10:20]req_shift_open_date done [11:10:20]produce_requested_data done [11:10:20]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30295,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [11:10:20]process_action_free close_receipt [11:10:20]json_value_free [11:10:20]json_value_free done [11:10:20]process_json_proto returns [11:10:20]Send response to host [11:10:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30295,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [11:10:20]free response buf [11:10:20]execute_script done [11:10:20]execute_script returns [11:10:20]free content buf [11:10:20]Sock 9.Close socket [11:10:20]Sock 9.Thread stoped [11:10:24]OFD Sender: No OFD packet to send [11:10:29]OFD Sender: No OFD packet to send [11:10:34]OFD Sender: No OFD packet to send [11:10:39]OFD Sender: No OFD packet to send [11:10:44]OFD Sender: No OFD packet to send [11:10:49]OFD Sender: No OFD packet to send [11:10:54]OFD Sender: No OFD packet to send [11:10:59]OFD Sender: No OFD packet to send [11:11:04]OFD Sender: No OFD packet to send [11:11:09]OFD Sender: No OFD packet to send [11:11:14]OFD Sender: No OFD packet to send [11:11:19]OFD Sender: No OFD packet to send [11:11:24]OFD Sender: No OFD packet to send [11:11:29]OFD Sender: No OFD packet to send [11:11:34]OFD Sender: No OFD packet to send [11:11:39]OFD Sender: No OFD packet to send [11:11:44]OFD Sender: No OFD packet to send [11:11:49]OFD Sender: No OFD packet to send [11:11:54]OFD Sender: No OFD packet to send [11:11:59]OFD Sender: No OFD packet to send [11:12:04]OFD Sender: No OFD packet to send [11:12:09]OFD Sender: No OFD packet to send [11:12:14]OFD Sender: No OFD packet to send [11:12:19]OFD Sender: No OFD packet to send [11:12:24]OFD Sender: No OFD packet to send [11:12:29]OFD Sender: No OFD packet to send [11:12:34]OFD Sender: No OFD packet to send [11:12:39]OFD Sender: No OFD packet to send [11:12:44]OFD Sender: No OFD packet to send [11:12:49]OFD Sender: No OFD packet to send [11:12:54]OFD Sender: No OFD packet to send [11:12:59]OFD Sender: No OFD packet to send [11:13:04]OFD Sender: No OFD packet to send [11:13:09]OFD Sender: No OFD packet to send [11:13:14]OFD Sender: No OFD packet to send [11:13:19]OFD Sender: No OFD packet to send [11:13:24]OFD Sender: No OFD packet to send [11:13:29]OFD Sender: No OFD packet to send [11:13:34]OFD Sender: No OFD packet to send [11:13:39]OFD Sender: No OFD packet to send [11:13:44]OFD Sender: No OFD packet to send [11:13:49]OFD Sender: No OFD packet to send [11:13:54]OFD Sender: No OFD packet to send [11:13:59]OFD Sender: No OFD packet to send [11:14:04]OFD Sender: No OFD packet to send [11:14:09]OFD Sender: No OFD packet to send [11:14:14]OFD Sender: No OFD packet to send [11:14:19]OFD Sender: No OFD packet to send [11:14:24]OFD Sender: No OFD packet to send [11:14:29]OFD Sender: No OFD packet to send [11:14:34]OFD Sender: No OFD packet to send [11:14:39]OFD Sender: No OFD packet to send [11:14:44]OFD Sender: No OFD packet to send [11:14:49]OFD Sender: No OFD packet to send [11:14:54]OFD Sender: No OFD packet to send [11:14:59]OFD Sender: No OFD packet to send [11:15:04]OFD Sender: No OFD packet to send [11:15:09]OFD Sender: No OFD packet to send [11:15:14]OFD Sender: No OFD packet to send [11:15:19]OFD Sender: No OFD packet to send [11:15:24]OFD Sender: No OFD packet to send [11:15:29]OFD Sender: No OFD packet to send [11:15:34]OFD Sender: No OFD packet to send [11:15:39]OFD Sender: No OFD packet to send [11:15:44]OFD Sender: No OFD packet to send [11:15:49]OFD Sender: No OFD packet to send [11:15:54]OFD Sender: No OFD packet to send [11:15:59]OFD Sender: No OFD packet to send [11:16:04]OFD Sender: No OFD packet to send [11:16:09]OFD Sender: No OFD packet to send [11:16:14]OFD Sender: No OFD packet to send [11:16:16]accept exits with 7 [11:16:16]New connection [11:16:16]New thread 3067514212 created [11:16:16]Thread 3067370852 joined [11:16:16]Waiting for new connection... [11:16:16] Sock 7.Parse request [11:16:16]Sock 7.Check first char [11:16:16]Sock 7.First char is OK [11:16:16]request: POST /json_proto HTTP/1.0 [11:16:16]Method: POST [11:16:16]URL: /json_proto [11:16:16]Method is POST - this is cgi request [11:16:16]url: /json_proto [11:16:16]query_string will be loaded in cgi processing [11:16:16]execute_cgi json_proto POST (null) [11:16:16]execute_cgi path=json_proto method=POST [11:16:16]POST find Content-Length [11:16:16]Host: 172.17.51.3:8080 [11:16:16]Content-Length: 682 [11:16:16]Content-Type: application/json [11:16:16] [11:16:16]POST finish read [11:16:16]Found Content-Length = 682 [11:16:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342688", "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" : 35.920, "sum" : 2403.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2403.00, "payments": [ { "type": 0, "sum" : 2403.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:16:16]execute_script... [11:16:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342688", "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" : 35.920, "sum" : 2403.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2403.00, "payments": [ { "type": 0, "sum" : 2403.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:16:16]POST & json_proto [11:16:16]process_json_proto [11:16:16]json parsed OK: [11:16:16]protocol is kg_v1.0 [11:16:16]action value=close_receipt [11:16:16]process_action close_receipt [11:16:16]cmd_close_receipt [11:16:16]MH_GetDate [11:16:16]Write to MH i2c: F0 00 00 FC 77 62 [11:16:16]Write i2c OK [11:16:16]MH_I2C_Read... [11:16:16]Read from MH i2c: F0 [11:16:16]MH_I2C_Read... [11:16:16]Read from MH i2c: F0 09 00 [11:16:16]MH_I2C_Read... [11:16:16]Read from MH i2c: F0 09 00 FC 77 00 89 E6 14 67 04 C1 95 66 15 [11:16:16]GetLastDocTimeStamp 1729422625 [11:16:16]current date 1729422985 [11:16:16]FM_GetShiftState [11:16:16]SAM_PROTO_GetShiftState [11:16:16]wFMCommunicate request_size=4 [11:16:16]MH_SAM_APDU [11:16:16]CAPDU: 80 13 01 00 [11:16:16]Write to MH i2c: E2 08 00 FD 77 80 13 01 00 00 00 00 00 F1 [11:16:16]Write i2c OK [11:16:16]MH_I2C_Read... [11:16:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:16:16]Read from MH i2c: E2 [11:16:16]MH_I2C_Read... [11:16:16]Read from MH i2c: E2 0E 00 [11:16:16]MH_I2C_Read... [11:16:16]Read from MH i2c: E2 0E 00 FD 77 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 D7 [11:16:16]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [11:16:16]wFMCommunicate OK [11:16:16]SAM_PROTO_GetShiftState done [11:16:16]FM_GetShiftState done [11:16:16]opened in 1729384718 [11:16:16]opened+sec_in_day 1729471118 [11:16:16]quantity*price = 240304 [11:16:16]sum+1 = 240306 [11:16:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 2403.00 Внесено: 2500.00 СДАЧА: 97.00 НСП 1% : 21.27 НДС 12% : 255.19 Наличными: 2403.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 78 20.10.2024 11:16 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30296 ФПД: 210400595433217 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T111625&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30296&fm=210400595433217&tin=02508201610067®Number=0000000000186857&sum=240300 [11:16:17]StoreToDocumentArchive [11:16:17]shift 114 fd 30296 [11:16:17]save to /storage/0114/doc_00030296 [11:16:17]save last doc name /storage/0114/doc_00030296 to /storage/kkm_last_doc_name [11:16:17]save OK [11:16:17]Clear old archive folders... [11:16:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:16:17]tlvbuf is 00B06E70 [11:16:17]SAM_PROTO_ClearQueue [11:16:17]wFMCommunicate request_size=4 [11:16:17]MH_SAM_APDU [11:16:17]CAPDU: 80 09 00 00 [11:16:17]Write to MH i2c: E2 08 00 0A 78 80 09 00 00 00 00 00 00 F4 [11:16:17]Write i2c OK [11:16:17]MH_I2C_Read... [11:16:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:16:17]Read from MH i2c: E2 [11:16:17]MH_I2C_Read... [11:16:17]Read from MH i2c: E2 03 00 [11:16:17]MH_I2C_Read... [11:16:17]Read from MH i2c: E2 03 00 0A 78 00 90 00 F6 [11:16:17]RAPDU: 90 00 [11:16:17]wFMCommunicate OK [11:16:17]SAM_PROTO_ClearQueue done [11:16:17]KKMCreateOFDPacket [11:16:17]OFDProtocolAddRootSTLVToBuf [11:16:17]FM_MakeSignedData [11:16:17]FM_MakeSignedData [11:16:17]SAM_PROTO_SignData [11:16:17]wFMCommunicate request_size=4 [11:16:17]MH_SAM_APDU [11:16:17]CAPDU: 80 0D 01 02 [11:16:17]Write to MH i2c: E2 08 00 0B 78 80 0D 01 02 00 00 00 00 FC [11:16:17]Write i2c OK [11:16:17]MH_I2C_Read... [11:16:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:16:17]Read from MH i2c: E2 [11:16:17]MH_I2C_Read... [11:16:17]Read from MH i2c: E2 03 00 [11:16:17]MH_I2C_Read... [11:16:17]Read from MH i2c: E2 03 00 0B 78 00 90 00 F7 [11:16:17]RAPDU: 90 00 [11:16:17]wFMCommunicate OK [11:16:17]wFMCommunicate request_size=255 [11:16:17]MH_SAM_APDU [11:16:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 50 8C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B1 AA 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC AA 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4F 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AF 63 00 00 00 00 07 04 06 00 AC AA 03 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 89 E6 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 BF [11:16:17]Write to MH i2c: E2 02 01 0C 78 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 50 8C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B1 AA 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC AA 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4F 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AF 63 00 00 00 00 07 04 06 00 AC AA 03 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 89 E6 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 BF 00 00 D0 [11:16:17]Write i2c OK [11:16:17]MH_I2C_Read... [11:16:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:16:17]Read from MH i2c: E2 [11:16:17]MH_I2C_Read... [11:16:17]Read from MH i2c: E2 03 00 [11:16:17]MH_I2C_Read... [11:16:17]Read from MH i2c: E2 03 00 0C 78 00 90 00 F8 [11:16:17]RAPDU: 90 00 [11:16:17]wFMCommunicate OK [11:16:17]wFMCommunicate request_size=10 [11:16:17]MH_SAM_APDU [11:16:17]CAPDU: 80 0D 02 02 05 5B B4 C0 57 01 [11:16:17]Write to MH i2c: E2 0D 00 0D 78 80 0D 02 02 05 00 5B B4 C0 57 01 00 00 30 [11:16:17]Write i2c OK [11:16:17]MH_I2C_Read... [11:16:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:16:17]Read from MH i2c: E2 [11:16:17]MH_I2C_Read... [11:16:17]Read from MH i2c: E2 03 00 [11:16:17]MH_I2C_Read... [11:16:17]Read from MH i2c: E2 03 00 0D 78 00 90 00 F9 [11:16:17]RAPDU: 90 00 [11:16:17]wFMCommunicate OK [11:16:17]wFMCommunicate request_size=4 [11:16:17]MH_SAM_APDU [11:16:17]CAPDU: 80 0D 03 02 [11:16:17]Write to MH i2c: E2 08 00 0E 78 80 0D 03 02 00 00 00 00 01 [11:16:17]Write i2c OK [11:16:17]MH_I2C_Read... [11:16:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:16:18]Read from MH i2c: E2 [11:16:18]MH_I2C_Read... [11:16:18]Read from MH i2c: E2 0B 00 [11:16:18]MH_I2C_Read... [11:16:18]Read from MH i2c: E2 0B 00 0E 78 00 E0 E7 A4 5A 2D DB 4F 2D 90 00 4B [11:16:18]RAPDU: E0 E7 A4 5A 2D DB 4F 2D 90 00 [11:16:18]wFMCommunicate OK [11:16:18]SAM_PROTO_SignData done [11:16:18]FM_MakeSignedData done [11:16:18]CreateOFDProtocolMessage [11:16:18]wFMCommunicate request_size=4 [11:16:18]MH_SAM_APDU [11:16:18]CAPDU: 80 11 00 00 [11:16:18]Write to MH i2c: E2 08 00 0F 78 80 11 00 00 00 00 00 00 01 [11:16:18]Write i2c OK [11:16:18]MH_I2C_Read... [11:16:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:16:18]Read from MH i2c: E2 [11:16:18]MH_I2C_Read... [11:16:18]Read from MH i2c: E2 17 00 [11:16:18]MH_I2C_Read... [11:16:18]Read from MH i2c: E2 17 00 0F 78 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 4F [11:16:18]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:18]wFMCommunicate OK [11:16:18]CreateOFDProtocolMessage done [11:16:18]OFDSenderStorePacket 30296 [11:16:18]StoreOFDPacket docnum=30296 [11:16: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 71 96 07 01 3E 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 50 8C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B1 AA 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC AA 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4F 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AF 63 00 00 00 00 07 04 06 00 AC AA 03 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 89 E6 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 BF 5B B4 C0 57 01 E0 E7 A4 5A 2D DB 4F 2D [11:16:18]CheckFolder [11:16:18]dirname=/storage/ofd_packets [11:16:18]CheckFolder done [11:16:18]ProducePacketName [11:16:18]name=ofd_packets/00030296 [11:16:18]NVStorageSaveData ofd_packets/00030296 [11:16:18]File name is /storage/ofd_packets/00030296 [11:16:18]Write 301 bytes [11:16:18]NVStorageSaveData done [11:16:18]OFDSenderStorePacket done [11:16:18]KKMCreateOFDPacket done [11:16:18]NVStorageSaveData kkm_last_timestamp [11:16:18]File name is /storage/kkm_last_timestamp [11:16:18]Write 4 bytes [11:16:18]NVStorageSaveData done [11:16:18]ExternCall_PrintAddStr [11:16:18]wPrintStart [11:16:18]Write to MH i2c: 01 00 00 10 78 88 [11:16:18]Write i2c OK [11:16:18]MH_I2C_Read... [11:16:18]Read from MH i2c: 01 [11:16:18]MH_I2C_Read... [11:16:18]Read from MH i2c: 01 07 00 [11:16:18]MH_I2C_Read... [11:16:18]Read from MH i2c: 01 07 00 10 78 00 00 00 00 00 FF 0F 9D [11:16:18]RasterBufferAndPrint [11:16:18]line Счет N : (1)342688 [11:16:18]line ИНН: 02508201610067 [11:16:18]line Контрольно-Кассовый Чек [11:16:18]line ПРОДАЖА [11:16:18]line ТРК (МРК, ГНК) : 43 [11:16:18]line Товар: 2710124130 [11:16:18]line Аи-92-К-2 [11:16:18]line 35.920 * 66.90 [11:16:18]line = 2403.05 [11:16:18]line НДС 12% НСП 1% [11:16:18]line > о реализуемом товаре [11:16:18]line ОКРУГЛЕНИЕ: -0.05 [11:16:18]line ИТОГО: 2403.00 [11:16:18]line Внесено: 2500.00 [11:16:18]line СДАЧА: 97.00 [11:16:18]line НСП 1% : 21.27 [11:16:18]line НДС 12% : 255.19 [11:16:18]line Наличными: 2403.00 [11:16:18]line Безнал.: 0.00 [11:16:18]line Место: АЗС № 78 "Партнер Нефть" [11:16:18]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [11:16:18]line СНО: Общий режим [11:16:18]line Чек 78 20.10.2024 11:16 [11:16:18]line Смена: 114 ФФД: 1.0 [11:16:18]line ЗНМ: 0300000137 [11:16:18]line РНМ: 0000000000186857 [11:16:18]line Версия ККМ: v1.0 [11:16:18]line ФМ: 0000000002094219 [11:16:18]line ФД: 30296 [11:16:18]line ФПД: 210400595433217 [11:16:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T111625&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30296&fm=210400595433217&tin=02508201610067®Number=0000000000186857&sum=240300 [11:16:18]OFD Sender: Processing packet 30296 [packets to send 10, broken 9] [11:16:18]ProducePacketName [11:16:18]name=ofd_packets/00030296 [11:16:18]OFD Sender: To server: pG, [11:16:18]CommunicateWithHost lk.salyk.kg:30040 [11:16:18]ConnectInit lk.salyk.kg [11:16:18]written 0, free lines is 4095 [11:16:18]Connected sock=10 [11:16: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 71 96 07 01 3E 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 50 8C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B1 AA 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC AA 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4F 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AF 63 00 00 00 00 07 04 06 00 AC AA 03 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 89 E6 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 BF 5B B4 C0 57 01 E0 E7 A4 5A 2D DB 4F 2D [11:16: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 AB 57 47 00 87 64 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 58 76 00 00 F4 03 04 00 0D 91 14 67 B6 04 01 00 00 F5 B1 D4 7A FD 40 42 B9 [11:16:18]CommunicateWithHost err = 0 [11:16:18]CheckOFDResponse [11:16:18]1017 (14) - 77093643461234 [11:16:18]1041 (16) - 0000000002094219 [11:16:18]1040 (4) - 30296 [11:16:18]1012 (4) - 20.10.2024 05:11 [11:16:18]1206 (1) - 0 [11:16:18]OFD Sender: Remove packet 30296 [11:16:18]ProducePacketName [11:16:18]name=ofd_packets/00030296 [11:16:18]NVStorageDeleteData [11:16:18]Write to MH i2c: 01 00 00 3B 78 B3 [11:16:18]Write i2c OK [11:16:18]MH_I2C_Read... [11:16:18]Read from MH i2c: 01 [11:16:18]MH_I2C_Read... [11:16:18]Read from MH i2c: 01 07 00 [11:16:18]MH_I2C_Read... [11:16:18]Read from MH i2c: 01 07 00 3B 78 00 00 00 00 00 FD 0C C3 [11:16:18]RasterBufferAndPrint [11:16:18]line [11:16:18]line [11:16:18]line [11:16:18]line [11:16:18]line [11:16:18]written 0, free lines is 3331 [11:16:18]MH_Cut [11:16:18]Write to MH i2c: D1 01 00 42 78 01 8C [11:16:18]Write i2c OK [11:16:18]MH_I2C_Read... [11:16:18]Read from MH i2c: D1 [11:16:18]MH_I2C_Read... [11:16:18]Read from MH i2c: D1 01 00 [11:16:18]MH_I2C_Read... [11:16:18]Read from MH i2c: D1 01 00 42 78 00 8B [11:16:18]Write to MH i2c: 01 00 00 43 78 BB [11:16:18]Write i2c OK [11:16:18]MH_I2C_Read... [11:16:19]OFD Sender: No OFD packet to send [11:16:19]*** Cut start [11:16:19]*** Partial cut [11:16:19]*** CUTSNS_PIN = 1 [11:16:19]*** CUTSNS_PIN = 0 [11:16:19]*** Brake cut motor [11:16:20]Read from MH i2c: 01 [11:16:20]MH_I2C_Read... [11:16:20]*** Stop cut motor [11:16:20]*** Cut end [11:16:20]Read from MH i2c: 01 07 00 [11:16:20]MH_I2C_Read... [11:16:20]Read from MH i2c: 01 07 00 43 78 00 00 00 00 00 FF 0F D0 [11:16:20]process_action close_receipt done [11:16:20]requested_data is exist [11:16:20]produce_requested_data [11:16:20]requested_item fm.sn is exist - process it [11:16:20]wFMCommunicate request_size=4 [11:16:20]MH_SAM_APDU [11:16:20]CAPDU: 80 11 00 00 [11:16:20]Write to MH i2c: E2 08 00 44 78 80 11 00 00 00 00 00 00 36 [11:16:20]Write i2c OK [11:16:20]MH_I2C_Read... [11:16:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:16:20]Read from MH i2c: E2 [11:16:20]MH_I2C_Read... [11:16:20]Read from MH i2c: E2 17 00 [11:16:20]MH_I2C_Read... [11:16:20]Read from MH i2c: E2 17 00 44 78 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 84 [11:16:20]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:20]wFMCommunicate OK [11:16:20]requested_item fd.num is exist - process it [11:16:20]SAM_PROTO_GetFieldsCounters [11:16:20]wFMCommunicate request_size=4 [11:16:20]MH_SAM_APDU [11:16:20]CAPDU: 80 13 00 00 [11:16:20]Write to MH i2c: E2 08 00 45 78 80 13 00 00 00 00 00 00 39 [11:16:20]Write i2c OK [11:16:20]MH_I2C_Read... [11:16:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:16:20]Read from MH i2c: E2 [11:16:20]MH_I2C_Read... [11:16:20]Read from MH i2c: E2 62 00 [11:16:20]MH_I2C_Read... [11:16:20]Read from MH i2c: E2 62 00 45 78 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 89 [11:16: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 58 76 00 00 0E 04 04 00 72 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:16:20]wFMCommunicate OK [11:16:20]SAM_PROTO_GetFieldsCounters done [11:16:20]requested_item shift.num is exist - process it [11:16:20]requested_item shift.opened is exist - process it [11:16:20]req_shift_opened [11:16:20]FM_GetShiftState [11:16:20]SAM_PROTO_GetShiftState [11:16:20]wFMCommunicate request_size=4 [11:16:20]MH_SAM_APDU [11:16:20]CAPDU: 80 13 01 00 [11:16:20]Write to MH i2c: E2 08 00 46 78 80 13 01 00 00 00 00 00 3B [11:16:20]Write i2c OK [11:16:20]MH_I2C_Read... [11:16:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:16:20]Read from MH i2c: E2 [11:16:20]MH_I2C_Read... [11:16:20]Read from MH i2c: E2 0E 00 [11:16:20]MH_I2C_Read... [11:16:20]Read from MH i2c: E2 0E 00 46 78 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 21 [11:16:20]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [11:16:20]wFMCommunicate OK [11:16:20]SAM_PROTO_GetShiftState done [11:16:20]FM_GetShiftState done [11:16:20]req_shift_opened done [11:16:20]requested_item shift.open_date is exist - process it [11:16:20]req_shift_open_date [11:16:20]req_shift_open_date done [11:16:20]produce_requested_data done [11:16:20]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30296,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [11:16:20]process_action_free close_receipt [11:16:20]json_value_free [11:16:20]json_value_free done [11:16:20]process_json_proto returns [11:16:20]Send response to host [11:16:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30296,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [11:16:20]free response buf [11:16:20]execute_script done [11:16:20]execute_script returns [11:16:20]free content buf [11:16:20]Sock 7.Close socket [11:16:20]Sock 7.Thread stoped [11:16:24]OFD Sender: No OFD packet to send [11:16:29]OFD Sender: No OFD packet to send [11:16:34]OFD Sender: No OFD packet to send [11:16:39]OFD Sender: No OFD packet to send [11:16:44]OFD Sender: No OFD packet to send [11:16:49]OFD Sender: No OFD packet to send [11:16:54]OFD Sender: No OFD packet to send [11:16:59]OFD Sender: No OFD packet to send [11:17:04]OFD Sender: No OFD packet to send [11:17:09]OFD Sender: No OFD packet to send [11:17:14]OFD Sender: No OFD packet to send [11:17:19]OFD Sender: No OFD packet to send [11:17:24]OFD Sender: No OFD packet to send [11:17:29]OFD Sender: No OFD packet to send [11:17:34]OFD Sender: No OFD packet to send [11:17:39]OFD Sender: No OFD packet to send [11:17:44]OFD Sender: No OFD packet to send [11:17:49]OFD Sender: No OFD packet to send [11:17:54]OFD Sender: No OFD packet to send [11:17:59]OFD Sender: No OFD packet to send [11:18:04]OFD Sender: No OFD packet to send [11:18:09]OFD Sender: No OFD packet to send [11:18:12]accept exits with 9 [11:18:12]New connection [11:18:12]New thread 3067370852 created [11:18:12]Thread 3067514212 joined [11:18:12]Waiting for new connection... [11:18:12] Sock 9.Parse request [11:18:12]Sock 9.Check first char [11:18:12]Sock 9.First char is OK [11:18:12]request: POST /json_proto HTTP/1.0 [11:18:12]Method: POST [11:18:12]URL: /json_proto [11:18:12]Method is POST - this is cgi request [11:18:12]url: /json_proto [11:18:12]query_string will be loaded in cgi processing [11:18:12]execute_cgi json_proto POST (null) [11:18:12]execute_cgi path=json_proto method=POST [11:18:12]POST find Content-Length [11:18:12]Host: 172.17.51.3:8080 [11:18:12]Content-Length: 682 [11:18:12]Content-Type: application/json [11:18:12] [11:18:12]POST finish read [11:18:12]Found Content-Length = 682 [11:18:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342689", "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" ] } } [11:18:12]execute_script... [11:18: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)342689", "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" ] } } [11:18:12]POST & json_proto [11:18:12]process_json_proto [11:18:12]json parsed OK: [11:18:12]protocol is kg_v1.0 [11:18:12]action value=close_receipt [11:18:12]process_action close_receipt [11:18:12]cmd_close_receipt [11:18:12]MH_GetDate [11:18:12]Write to MH i2c: F0 00 00 47 78 AE [11:18:12]Write i2c OK [11:18:12]MH_I2C_Read... [11:18:12]Read from MH i2c: F0 [11:18:12]MH_I2C_Read... [11:18:12]Read from MH i2c: F0 09 00 [11:18:12]MH_I2C_Read... [11:18:12]Read from MH i2c: F0 09 00 47 78 00 FD E6 14 67 04 C1 95 66 D5 [11:18:12]GetLastDocTimeStamp 1729422985 [11:18:12]current date 1729423101 [11:18:12]FM_GetShiftState [11:18:12]SAM_PROTO_GetShiftState [11:18:12]wFMCommunicate request_size=4 [11:18:12]MH_SAM_APDU [11:18:12]CAPDU: 80 13 01 00 [11:18:12]Write to MH i2c: E2 08 00 48 78 80 13 01 00 00 00 00 00 3D [11:18:12]Write i2c OK [11:18:12]MH_I2C_Read... [11:18:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:18:12]Read from MH i2c: E2 [11:18:12]MH_I2C_Read... [11:18:12]Read from MH i2c: E2 0E 00 [11:18:12]MH_I2C_Read... [11:18:12]Read from MH i2c: E2 0E 00 48 78 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 23 [11:18:12]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [11:18:12]wFMCommunicate OK [11:18:12]SAM_PROTO_GetShiftState done [11:18:12]FM_GetShiftState done [11:18:12]opened in 1729384718 [11:18:12]opened+sec_in_day 1729471118 [11:18:12]quantity*price = 100015 [11:18:12]sum+1 = 100017 [11:18:12]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 СНО: Общий режим Чек 79 20.10.2024 11:18 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30297 ФПД: 143653189706586 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T111821&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30297&fm=143653189706586&tin=02508201610067®Number=0000000000186857&sum=100000 [11:18:13]StoreToDocumentArchive [11:18:13]shift 114 fd 30297 [11:18:13]save to /storage/0114/doc_00030297 [11:18:13]save last doc name /storage/0114/doc_00030297 to /storage/kkm_last_doc_name [11:18:13]save OK [11:18:13]Clear old archive folders... [11:18:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:18:13]tlvbuf is 00CA7C50 [11:18:13]SAM_PROTO_ClearQueue [11:18:13]wFMCommunicate request_size=4 [11:18:13]MH_SAM_APDU [11:18:13]CAPDU: 80 09 00 00 [11:18:13]Write to MH i2c: E2 08 00 55 78 80 09 00 00 00 00 00 00 3F [11:18:13]Write i2c OK [11:18:13]MH_I2C_Read... [11:18:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:18:13]Read from MH i2c: E2 [11:18:13]MH_I2C_Read... [11:18:13]Read from MH i2c: E2 03 00 [11:18:13]MH_I2C_Read... [11:18:13]Read from MH i2c: E2 03 00 55 78 00 90 00 41 [11:18:13]RAPDU: 90 00 [11:18:13]wFMCommunicate OK [11:18:13]SAM_PROTO_ClearQueue done [11:18:13]KKMCreateOFDPacket [11:18:13]OFDProtocolAddRootSTLVToBuf [11:18:13]FM_MakeSignedData [11:18:13]FM_MakeSignedData [11:18:13]SAM_PROTO_SignData [11:18:13]wFMCommunicate request_size=4 [11:18:13]MH_SAM_APDU [11:18:13]CAPDU: 80 0D 01 02 [11:18:13]Write to MH i2c: E2 08 00 56 78 80 0D 01 02 00 00 00 00 47 [11:18:13]Write i2c OK [11:18:13]MH_I2C_Read... [11:18:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:18:13]Read from MH i2c: E2 [11:18:13]MH_I2C_Read... [11:18:13]Read from MH i2c: E2 03 00 [11:18:13]MH_I2C_Read... [11:18:13]Read from MH i2c: E2 03 00 56 78 00 90 00 42 [11:18:13]RAPDU: 90 00 [11:18:13]wFMCommunicate OK [11:18:13]wFMCommunicate request_size=255 [11:18:13]MH_SAM_APDU [11:18: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 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 4F 00 00 00 F4 03 04 00 FD E6 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 82 [11:18:13]Write to MH i2c: E2 02 01 57 78 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 4F 00 00 00 F4 03 04 00 FD E6 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 82 00 00 42 [11:18:13]Write i2c OK [11:18:13]MH_I2C_Read... [11:18:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:18:14]Read from MH i2c: E2 [11:18:14]MH_I2C_Read... [11:18:14]Read from MH i2c: E2 03 00 [11:18:14]MH_I2C_Read... [11:18:14]Read from MH i2c: E2 03 00 57 78 00 90 00 43 [11:18:14]RAPDU: 90 00 [11:18:14]wFMCommunicate OK [11:18:14]wFMCommunicate request_size=10 [11:18:14]MH_SAM_APDU [11:18:14]CAPDU: 80 0D 02 02 05 A6 DD 57 E3 5A [11:18:14]Write to MH i2c: E2 0D 00 58 78 80 0D 02 02 05 00 A6 DD 57 E3 5A 00 00 6B [11:18:14]Write i2c OK [11:18:14]MH_I2C_Read... [11:18:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:18:14]Read from MH i2c: E2 [11:18:14]MH_I2C_Read... [11:18:14]Read from MH i2c: E2 03 00 [11:18:14]MH_I2C_Read... [11:18:14]Read from MH i2c: E2 03 00 58 78 00 90 00 44 [11:18:14]RAPDU: 90 00 [11:18:14]wFMCommunicate OK [11:18:14]wFMCommunicate request_size=4 [11:18:14]MH_SAM_APDU [11:18:14]CAPDU: 80 0D 03 02 [11:18:14]Write to MH i2c: E2 08 00 59 78 80 0D 03 02 00 00 00 00 4C [11:18:14]Write i2c OK [11:18:14]MH_I2C_Read... [11:18:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:18:14]Read from MH i2c: E2 [11:18:14]MH_I2C_Read... [11:18:14]Read from MH i2c: E2 0B 00 [11:18:14]MH_I2C_Read... [11:18:14]Read from MH i2c: E2 0B 00 59 78 00 79 32 0B 2C FA 43 26 65 90 00 F7 [11:18:14]RAPDU: 79 32 0B 2C FA 43 26 65 90 00 [11:18:14]wFMCommunicate OK [11:18:14]SAM_PROTO_SignData done [11:18:14]FM_MakeSignedData done [11:18:14]CreateOFDProtocolMessage [11:18:14]wFMCommunicate request_size=4 [11:18:14]MH_SAM_APDU [11:18:14]CAPDU: 80 11 00 00 [11:18:14]Write to MH i2c: E2 08 00 5A 78 80 11 00 00 00 00 00 00 4C [11:18:14]Write i2c OK [11:18:14]MH_I2C_Read... [11:18:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:18:14]Read from MH i2c: E2 [11:18:14]MH_I2C_Read... [11:18:14]Read from MH i2c: E2 17 00 [11:18:14]MH_I2C_Read... [11:18:14]Read from MH i2c: E2 17 00 5A 78 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 9A [11:18: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:18:14]wFMCommunicate OK [11:18:14]CreateOFDProtocolMessage done [11:18:14]OFDSenderStorePacket 30297 [11:18:14]StoreOFDPacket docnum=30297 [11:18: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 60 33 07 01 69 FA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 4F 00 00 00 F4 03 04 00 FD E6 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 82 A6 DD 57 E3 5A 79 32 0B 2C FA 43 26 65 [11:18:14]CheckFolder [11:18:14]dirname=/storage/ofd_packets [11:18:14]CheckFolder done [11:18:14]ProducePacketName [11:18:14]name=ofd_packets/00030297 [11:18:14]NVStorageSaveData ofd_packets/00030297 [11:18:14]File name is /storage/ofd_packets/00030297 [11:18:14]Write 301 bytes [11:18:14]NVStorageSaveData done [11:18:14]OFDSenderStorePacket done [11:18:14]KKMCreateOFDPacket done [11:18:14]NVStorageSaveData kkm_last_timestamp [11:18:14]File name is /storage/kkm_last_timestamp [11:18:14]Write 4 bytes [11:18:14]NVStorageSaveData done [11:18:14]ExternCall_PrintAddStr [11:18:14]wPrintStart [11:18:14]Write to MH i2c: 01 00 00 5B 78 D3 [11:18:14]Write i2c OK [11:18:14]MH_I2C_Read... [11:18:14]Read from MH i2c: 01 [11:18:14]MH_I2C_Read... [11:18:14]Read from MH i2c: 01 07 00 [11:18:14]MH_I2C_Read... [11:18:14]Read from MH i2c: 01 07 00 5B 78 00 00 00 00 00 FF 0F E8 [11:18:14]RasterBufferAndPrint [11:18:14]line Счет N : (1)342689 [11:18:14]line ИНН: 02508201610067 [11:18:14]line Контрольно-Кассовый Чек [11:18:14]line ПРОДАЖА [11:18:14]line ТРК (МРК, ГНК) : 33 [11:18:14]line Товар: 2710124130 [11:18:14]line Аи-92-К-2 [11:18:14]line 14.950 * 66.90 [11:18:14]line = 1000.16 [11:18:14]line НДС 12% НСП 1% [11:18:14]line > о реализуемом товаре [11:18:14]line ОКРУГЛЕНИЕ: -0.16 [11:18:14]line ИТОГО: 1000.00 [11:18:14]line Внесено: 1000.00 [11:18:14]line СДАЧА: 0.00 [11:18:14]line НСП 1% : 8.85 [11:18:14]line НДС 12% : 106.21 [11:18:14]line Наличными: 1000.00 [11:18:14]line Безнал.: 0.00 [11:18:14]line Место: АЗС № 78 "Партнер Нефть" [11:18:14]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [11:18:14]line СНО: Общий режим [11:18:14]line Чек 79 20.10.2024 11:18 [11:18:14]line Смена: 114 ФФД: 1.0 [11:18:14]line ЗНМ: 0300000137 [11:18:14]line РНМ: 0000000000186857 [11:18:14]line Версия ККМ: v1.0 [11:18:14]line ФМ: 0000000002094219 [11:18:14]line ФД: 30297 [11:18:14]line ФПД: 143653189706586 [11:18:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T111821&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30297&fm=143653189706586&tin=02508201610067®Number=0000000000186857&sum=100000 [11:18:14]OFD Sender: Processing packet 30297 [packets to send 10, broken 9] [11:18:14]ProducePacketName [11:18:14]name=ofd_packets/00030297 [11:18:14]OFD Sender: To server: pG, [11:18:14]CommunicateWithHost lk.salyk.kg:30040 [11:18:14]ConnectInit lk.salyk.kg [11:18:14]written 0, free lines is 4095 [11:18:14]Write to MH i2c: 01 00 00 86 78 FE [11:18:14]Write i2c OK [11:18:14]MH_I2C_Read... [11:18:14]Read from MH i2c: 01 [11:18:14]MH_I2C_Read... [11:18:14]Read from MH i2c: 01 07 00 [11:18:14]MH_I2C_Read... [11:18:14]Read from MH i2c: 01 07 00 86 78 00 00 00 00 00 EE 0C FF [11:18:14]RasterBufferAndPrint [11:18:14]line [11:18:14]line [11:18:14]line [11:18:14]line [11:18:14]line [11:18:14]written 0, free lines is 3316 [11:18:14]MH_Cut [11:18:14]Write to MH i2c: D1 01 00 8D 78 01 D7 [11:18:14]Write i2c OK [11:18:14]MH_I2C_Read... [11:18:14]Read from MH i2c: D1 [11:18:14]MH_I2C_Read... [11:18:14]Read from MH i2c: D1 01 00 [11:18:14]MH_I2C_Read... [11:18:14]Read from MH i2c: D1 01 00 8D 78 00 D6 [11:18:14]Write to MH i2c: 01 00 00 8E 78 06 [11:18:15]Write i2c OK [11:18:15]MH_I2C_Read... [11:18:15]*** Cut start [11:18:15]*** Partial cut [11:18:15]*** CUTSNS_PIN = 1 [11:18:15]*** CUTSNS_PIN = 0 [11:18:15]*** Brake cut motor [11:18:16]Read from MH i2c: 01 [11:18:16]MH_I2C_Read... [11:18:16]*** Stop cut motor [11:18:16]*** Cut end [11:18:16]Read from MH i2c: 01 07 00 [11:18:16]MH_I2C_Read... [11:18:16]Read from MH i2c: 01 07 00 8E 78 00 00 00 00 00 FF 0F 1B [11:18:16]process_action close_receipt done [11:18:16]requested_data is exist [11:18:16]produce_requested_data [11:18:16]requested_item fm.sn is exist - process it [11:18:16]wFMCommunicate request_size=4 [11:18:16]MH_SAM_APDU [11:18:16]CAPDU: 80 11 00 00 [11:18:16]Write to MH i2c: E2 08 00 8F 78 80 11 00 00 00 00 00 00 81 [11:18:16]Write i2c OK [11:18:16]MH_I2C_Read... [11:18:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:18:16]Read from MH i2c: E2 [11:18:16]MH_I2C_Read... [11:18:16]Read from MH i2c: E2 17 00 [11:18:16]MH_I2C_Read... [11:18:16]Read from MH i2c: E2 17 00 8F 78 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 CF [11:18:16]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:16]wFMCommunicate OK [11:18:16]requested_item fd.num is exist - process it [11:18:16]SAM_PROTO_GetFieldsCounters [11:18:16]wFMCommunicate request_size=4 [11:18:16]MH_SAM_APDU [11:18:16]CAPDU: 80 13 00 00 [11:18:16]Write to MH i2c: E2 08 00 90 78 80 13 00 00 00 00 00 00 84 [11:18:16]Write i2c OK [11:18:16]MH_I2C_Read... [11:18:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:18:16]Read from MH i2c: E2 [11:18:16]MH_I2C_Read... [11:18:16]Read from MH i2c: E2 62 00 [11:18:16]MH_I2C_Read... [11:18:16]Read from MH i2c: E2 62 00 90 78 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 D8 [11:18: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 59 76 00 00 0E 04 04 00 72 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:18:16]wFMCommunicate OK [11:18:16]SAM_PROTO_GetFieldsCounters done [11:18:16]requested_item shift.num is exist - process it [11:18:16]requested_item shift.opened is exist - process it [11:18:16]req_shift_opened [11:18:16]FM_GetShiftState [11:18:16]SAM_PROTO_GetShiftState [11:18:16]wFMCommunicate request_size=4 [11:18:16]MH_SAM_APDU [11:18:16]CAPDU: 80 13 01 00 [11:18:16]Write to MH i2c: E2 08 00 91 78 80 13 01 00 00 00 00 00 86 [11:18:16]Write i2c OK [11:18:16]MH_I2C_Read... [11:18:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:18:16]Read from MH i2c: E2 [11:18:16]MH_I2C_Read... [11:18:16]Read from MH i2c: E2 0E 00 [11:18:16]MH_I2C_Read... [11:18:16]Read from MH i2c: E2 0E 00 91 78 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 6C [11:18:16]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [11:18:16]wFMCommunicate OK [11:18:16]SAM_PROTO_GetShiftState done [11:18:16]FM_GetShiftState done [11:18:16]req_shift_opened done [11:18:16]requested_item shift.open_date is exist - process it [11:18:16]req_shift_open_date [11:18:16]req_shift_open_date done [11:18:16]produce_requested_data done [11:18:16]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30297,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [11:18:16]process_action_free close_receipt [11:18:16]json_value_free [11:18:16]json_value_free done [11:18:16]process_json_proto returns [11:18:16]Send response to host [11:18:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30297,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [11:18:16]free response buf [11:18:16]execute_script done [11:18:16]execute_script returns [11:18:16]free content buf [11:18:16]Sock 9.Close socket [11:18:16]Sock 9.Thread stoped [11:19:40]accept exits with 7 [11:19:40]New connection [11:19:40]New thread 3067514212 created [11:19:40]Thread 3067370852 joined [11:19:40]Waiting for new connection... [11:19:40] Sock 7.Parse request [11:19:40]Sock 7.Check first char [11:19:40]Sock 7.First char is OK [11:19:40]request: POST /json_proto HTTP/1.0 [11:19:40]Method: POST [11:19:40]URL: /json_proto [11:19:40]Method is POST - this is cgi request [11:19:40]url: /json_proto [11:19:40]query_string will be loaded in cgi processing [11:19:40]execute_cgi json_proto POST (null) [11:19:40]execute_cgi path=json_proto method=POST [11:19:40]POST find Content-Length [11:19:40]Host: 172.17.51.3:8080 [11:19:40]Content-Length: 678 [11:19:40]Content-Type: application/json [11:19:40] [11:19:40]POST finish read [11:19:40]Found Content-Length = 678 [11:19:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342690", "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" ] } } [11:19:40]execute_script... [11:19: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)342690", "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" ] } } [11:19:40]POST & json_proto [11:19:40]process_json_proto [11:19:40]json parsed OK: [11:19:40]protocol is kg_v1.0 [11:19:40]action value=close_receipt [11:19:40]process_action close_receipt [11:19:40]cmd_close_receipt [11:19:40]MH_GetDate [11:19:40]Write to MH i2c: F0 00 00 92 78 F9 [11:19:40]Write i2c OK [11:19:40]MH_I2C_Read... [11:19:40]Read from MH i2c: F0 [11:19:40]MH_I2C_Read... [11:19:40]Read from MH i2c: F0 09 00 [11:19:40]MH_I2C_Read... [11:19:40]Read from MH i2c: F0 09 00 92 78 00 55 E7 14 67 04 C1 95 66 79 [11:19:40]GetLastDocTimeStamp 1729423101 [11:19:40]current date 1729423189 [11:19:40]FM_GetShiftState [11:19:40]SAM_PROTO_GetShiftState [11:19:40]wFMCommunicate request_size=4 [11:19:40]MH_SAM_APDU [11:19:40]CAPDU: 80 13 01 00 [11:19:40]Write to MH i2c: E2 08 00 93 78 80 13 01 00 00 00 00 00 88 [11:19:40]Write i2c OK [11:19:40]MH_I2C_Read... [11:19:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:19:40]Read from MH i2c: E2 [11:19:40]MH_I2C_Read... [11:19:40]Read from MH i2c: E2 0E 00 [11:19:40]MH_I2C_Read... [11:19:40]Read from MH i2c: E2 0E 00 93 78 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 6E [11:19:40]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [11:19:40]wFMCommunicate OK [11:19:40]SAM_PROTO_GetShiftState done [11:19:40]FM_GetShiftState done [11:19:40]opened in 1729384718 [11:19:40]opened+sec_in_day 1729471118 [11:19:40]quantity*price = 70044 [11:19:40]sum+1 = 70045 [11:19:40]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 СНО: Общий режим Чек 80 20.10.2024 11:19 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30298 ФПД: 198192759175143 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T111949&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30298&fm=198192759175143&tin=02508201610067®Number=0000000000186857&sum=70000 [11:19:41]StoreToDocumentArchive [11:19:41]shift 114 fd 30298 [11:19:41]save to /storage/0114/doc_00030298 [11:19:41]save last doc name /storage/0114/doc_00030298 to /storage/kkm_last_doc_name [11:19:41]save OK [11:19:41]Clear old archive folders... [11:19:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:19:41]tlvbuf is 00A79B40 [11:19:41]SAM_PROTO_ClearQueue [11:19:41]wFMCommunicate request_size=4 [11:19:41]MH_SAM_APDU [11:19:41]CAPDU: 80 09 00 00 [11:19:41]Write to MH i2c: E2 08 00 A0 78 80 09 00 00 00 00 00 00 8A [11:19:41]Write i2c OK [11:19:41]MH_I2C_Read... [11:19:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:19:41]Read from MH i2c: E2 [11:19:41]MH_I2C_Read... [11:19:41]Read from MH i2c: E2 03 00 [11:19:41]MH_I2C_Read... [11:19:41]Read from MH i2c: E2 03 00 A0 78 00 90 00 8C [11:19:41]RAPDU: 90 00 [11:19:41]wFMCommunicate OK [11:19:41]SAM_PROTO_ClearQueue done [11:19:41]KKMCreateOFDPacket [11:19:41]OFDProtocolAddRootSTLVToBuf [11:19:41]FM_MakeSignedData [11:19:41]FM_MakeSignedData [11:19:41]SAM_PROTO_SignData [11:19:41]wFMCommunicate request_size=4 [11:19:41]MH_SAM_APDU [11:19:41]CAPDU: 80 0D 01 02 [11:19:41]Write to MH i2c: E2 08 00 A1 78 80 0D 01 02 00 00 00 00 92 [11:19:41]Write i2c OK [11:19:41]MH_I2C_Read... [11:19:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:19:41]Read from MH i2c: E2 [11:19:41]MH_I2C_Read... [11:19:41]Read from MH i2c: E2 03 00 [11:19:41]MH_I2C_Read... [11:19:41]Read from MH i2c: E2 03 00 A1 78 00 90 00 8D [11:19:41]RAPDU: 90 00 [11:19:41]wFMCommunicate OK [11:19:41]wFMCommunicate request_size=255 [11:19:41]MH_SAM_APDU [11:19: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 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 50 00 00 00 F4 03 04 00 55 E7 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 B4 [11:19:41]Write to MH i2c: E2 02 01 A2 78 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 50 00 00 00 F4 03 04 00 55 E7 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 B4 00 00 30 [11:19:41]Write i2c OK [11:19:41]MH_I2C_Read... [11:19:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:19:41]Read from MH i2c: E2 [11:19:41]MH_I2C_Read... [11:19:41]Read from MH i2c: E2 03 00 [11:19:41]MH_I2C_Read... [11:19:41]Read from MH i2c: E2 03 00 A2 78 00 90 00 8E [11:19:41]RAPDU: 90 00 [11:19:41]wFMCommunicate OK [11:19:41]wFMCommunicate request_size=10 [11:19:41]MH_SAM_APDU [11:19:41]CAPDU: 80 0D 02 02 05 41 59 01 F7 E7 [11:19:41]Write to MH i2c: E2 0D 00 A3 78 80 0D 02 02 05 00 41 59 01 F7 E7 00 00 18 [11:19:41]Write i2c OK [11:19:41]MH_I2C_Read... [11:19:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:19:41]Read from MH i2c: E2 [11:19:41]MH_I2C_Read... [11:19:41]Read from MH i2c: E2 03 00 [11:19:41]MH_I2C_Read... [11:19:41]Read from MH i2c: E2 03 00 A3 78 00 90 00 8F [11:19:41]RAPDU: 90 00 [11:19:41]wFMCommunicate OK [11:19:41]wFMCommunicate request_size=4 [11:19:41]MH_SAM_APDU [11:19:41]CAPDU: 80 0D 03 02 [11:19:41]Write to MH i2c: E2 08 00 A4 78 80 0D 03 02 00 00 00 00 97 [11:19:41]Write i2c OK [11:19:41]MH_I2C_Read... [11:19:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:19:41]Read from MH i2c: E2 [11:19:41]MH_I2C_Read... [11:19:41]Read from MH i2c: E2 0B 00 [11:19:41]MH_I2C_Read... [11:19:41]Read from MH i2c: E2 0B 00 A4 78 00 5A 15 F3 D6 4F 28 A1 A9 90 00 91 [11:19:41]RAPDU: 5A 15 F3 D6 4F 28 A1 A9 90 00 [11:19:41]wFMCommunicate OK [11:19:41]SAM_PROTO_SignData done [11:19:41]FM_MakeSignedData done [11:19:41]CreateOFDProtocolMessage [11:19:41]wFMCommunicate request_size=4 [11:19:41]MH_SAM_APDU [11:19:41]CAPDU: 80 11 00 00 [11:19:41]Write to MH i2c: E2 08 00 A5 78 80 11 00 00 00 00 00 00 97 [11:19:41]Write i2c OK [11:19:41]MH_I2C_Read... [11:19:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:19:41]Read from MH i2c: E2 [11:19:41]MH_I2C_Read... [11:19:41]Read from MH i2c: E2 17 00 [11:19:41]MH_I2C_Read... [11:19:41]Read from MH i2c: E2 17 00 A5 78 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 E5 [11:19:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [11:19:41]wFMCommunicate OK [11:19:41]CreateOFDProtocolMessage done [11:19:41]OFDSenderStorePacket 30298 [11:19:41]StoreOFDPacket docnum=30298 [11:19: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 B5 E5 07 01 DA 2C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 50 00 00 00 F4 03 04 00 55 E7 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 B4 41 59 01 F7 E7 5A 15 F3 D6 4F 28 A1 A9 [11:19:41]CheckFolder [11:19:41]dirname=/storage/ofd_packets [11:19:41]CheckFolder done [11:19:41]ProducePacketName [11:19:41]name=ofd_packets/00030298 [11:19:41]NVStorageSaveData ofd_packets/00030298 [11:19:41]File name is /storage/ofd_packets/00030298 [11:19:41]Write 301 bytes [11:19:41]NVStorageSaveData done [11:19:41]OFDSenderStorePacket done [11:19:41]KKMCreateOFDPacket done [11:19:41]NVStorageSaveData kkm_last_timestamp [11:19:41]File name is /storage/kkm_last_timestamp [11:19:41]Write 4 bytes [11:19:41]NVStorageSaveData done [11:19:41]ExternCall_PrintAddStr [11:19:41]wPrintStart [11:19:41]Write to MH i2c: 01 00 00 A6 78 1E [11:19:41]Write i2c OK [11:19:41]MH_I2C_Read... [11:19:41]Read from MH i2c: 01 [11:19:41]MH_I2C_Read... [11:19:41]Read from MH i2c: 01 07 00 [11:19:41]MH_I2C_Read... [11:19:41]Read from MH i2c: 01 07 00 A6 78 00 00 00 00 00 FF 0F 33 [11:19:41]RasterBufferAndPrint [11:19:41]line Счет N : (1)342690 [11:19:41]line ИНН: 02508201610067 [11:19:41]line Контрольно-Кассовый Чек [11:19:41]line ПРОДАЖА [11:19:41]line ТРК (МРК, ГНК) : 63 [11:19:41]line Товар: 2710124130 [11:19:41]line Аи-92-К-2 [11:19:41]line 10.470 * 66.90 [11:19:41]line = 700.44 [11:19:41]line НДС 12% НСП 1% [11:19:41]line > о реализуемом товаре [11:19:41]line ОКРУГЛЕНИЕ: -0.44 [11:19:41]line ИТОГО: 700.00 [11:19:41]line Внесено: 700.00 [11:19:41]line СДАЧА: 0.00 [11:19:41]line НСП 1% : 6.20 [11:19:41]line НДС 12% : 74.38 [11:19:41]line Наличными: 700.00 [11:19:41]line Безнал.: 0.00 [11:19:41]line Место: АЗС № 78 "Партнер Нефть" [11:19:41]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [11:19:41]line СНО: Общий режим [11:19:41]line Чек 80 20.10.2024 11:19 [11:19:41]line Смена: 114 ФФД: 1.0 [11:19:41]line ЗНМ: 0300000137 [11:19:41]line РНМ: 0000000000186857 [11:19:41]line Версия ККМ: v1.0 [11:19:41]line ФМ: 0000000002094219 [11:19:41]line ФД: 30298 [11:19:41]line ФПД: 198192759175143 [11:19:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T111949&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30298&fm=198192759175143&tin=02508201610067®Number=0000000000186857&sum=70000 [11:19:42]written 0, free lines is 4095 [11:19:42]Write to MH i2c: 01 00 00 D1 78 49 [11:19:42]Write i2c OK [11:19:42]MH_I2C_Read... [11:19:42]Read from MH i2c: 01 [11:19:42]MH_I2C_Read... [11:19:42]Read from MH i2c: 01 07 00 [11:19:42]MH_I2C_Read... [11:19:42]Read from MH i2c: 01 07 00 D1 78 00 00 00 00 00 E6 0C 42 [11:19:42]RasterBufferAndPrint [11:19:42]line [11:19:42]line [11:19:42]line [11:19:42]line [11:19:42]line [11:19:42]written 0, free lines is 3308 [11:19:42]MH_Cut [11:19:42]Write to MH i2c: D1 01 00 D8 78 01 22 [11:19:42]Write i2c OK [11:19:42]MH_I2C_Read... [11:19:42]Read from MH i2c: D1 [11:19:42]MH_I2C_Read... [11:19:42]Read from MH i2c: D1 01 00 [11:19:42]MH_I2C_Read... [11:19:42]Read from MH i2c: D1 01 00 D8 78 00 21 [11:19:42]Write to MH i2c: 01 00 00 D9 78 51 [11:19:42]Write i2c OK [11:19:42]MH_I2C_Read... [11:19:43]*** Cut start [11:19:43]*** Partial cut [11:19:43]*** CUTSNS_PIN = 1 [11:19:43]*** CUTSNS_PIN = 0 [11:19:43]*** Brake cut motor [11:19:44]Read from MH i2c: 01 [11:19:44]MH_I2C_Read... [11:19:44]*** Stop cut motor [11:19:44]*** Cut end [11:19:44]Read from MH i2c: 01 07 00 [11:19:44]MH_I2C_Read... [11:19:44]Read from MH i2c: 01 07 00 D9 78 00 00 00 00 00 FF 0F 66 [11:19:44]process_action close_receipt done [11:19:44]requested_data is exist [11:19:44]produce_requested_data [11:19:44]requested_item fm.sn is exist - process it [11:19:44]wFMCommunicate request_size=4 [11:19:44]MH_SAM_APDU [11:19:44]CAPDU: 80 11 00 00 [11:19:44]Write to MH i2c: E2 08 00 DA 78 80 11 00 00 00 00 00 00 CC [11:19:44]Write i2c OK [11:19:44]MH_I2C_Read... [11:19:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:19:44]Read from MH i2c: E2 [11:19:44]MH_I2C_Read... [11:19:44]Read from MH i2c: E2 17 00 [11:19:44]MH_I2C_Read... [11:19:44]Read from MH i2c: E2 17 00 DA 78 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 1A [11:19:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [11:19:44]wFMCommunicate OK [11:19:44]requested_item fd.num is exist - process it [11:19:44]SAM_PROTO_GetFieldsCounters [11:19:44]wFMCommunicate request_size=4 [11:19:44]MH_SAM_APDU [11:19:44]CAPDU: 80 13 00 00 [11:19:44]Write to MH i2c: E2 08 00 DB 78 80 13 00 00 00 00 00 00 CF [11:19:44]Write i2c OK [11:19:44]MH_I2C_Read... [11:19:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:19:44]Read from MH i2c: E2 [11:19:44]MH_I2C_Read... [11:19:44]Read from MH i2c: E2 62 00 [11:19:44]MH_I2C_Read... [11:19:44]Read from MH i2c: E2 62 00 DB 78 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 27 [11:19: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 5A 76 00 00 0E 04 04 00 72 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:19:44]wFMCommunicate OK [11:19:44]SAM_PROTO_GetFieldsCounters done [11:19:44]requested_item shift.num is exist - process it [11:19:44]requested_item shift.opened is exist - process it [11:19:44]req_shift_opened [11:19:44]FM_GetShiftState [11:19:44]SAM_PROTO_GetShiftState [11:19:44]wFMCommunicate request_size=4 [11:19:44]MH_SAM_APDU [11:19:44]CAPDU: 80 13 01 00 [11:19:44]Write to MH i2c: E2 08 00 DC 78 80 13 01 00 00 00 00 00 D1 [11:19:44]Write i2c OK [11:19:44]MH_I2C_Read... [11:19:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:19:44]Read from MH i2c: E2 [11:19:44]MH_I2C_Read... [11:19:44]Read from MH i2c: E2 0E 00 [11:19:44]MH_I2C_Read... [11:19:44]Read from MH i2c: E2 0E 00 DC 78 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 B7 [11:19:44]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [11:19:44]wFMCommunicate OK [11:19:44]SAM_PROTO_GetShiftState done [11:19:44]FM_GetShiftState done [11:19:44]req_shift_opened done [11:19:44]requested_item shift.open_date is exist - process it [11:19:44]req_shift_open_date [11:19:44]req_shift_open_date done [11:19:44]produce_requested_data done [11:19:44]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30298,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [11:19:44]process_action_free close_receipt [11:19:44]json_value_free [11:19:44]json_value_free done [11:19:44]process_json_proto returns [11:19:44]Send response to host [11:19:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30298,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [11:19:44]free response buf [11:19:44]execute_script done [11:19:44]execute_script returns [11:19:44]free content buf [11:19:44]Sock 7.Close socket [11:19:44]Sock 7.Thread stoped [11:20:28]ConnectInit Can't connect to host [11:20:28]CommunicateWithHost connect error [11:20:28]CommunicateWithHost err = -1 [11:20:28]OFD Sender: Server communicate error [11:20:28]OFD Sender: Processing packet 30297 [packets to send 11, broken 9] [11:20:28]ProducePacketName [11:20:28]name=ofd_packets/00030297 [11:20:28]OFD Sender: To server: pG, [11:20:28]CommunicateWithHost lk.salyk.kg:30040 [11:20:28]ConnectInit lk.salyk.kg [11:20:28]Connected sock=7 [11:20: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 60 33 07 01 69 FA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 4F 00 00 00 F4 03 04 00 FD E6 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 82 A6 DD 57 E3 5A 79 32 0B 2C FA 43 26 65 [11:20: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 81 ED 47 00 6B 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 59 76 00 00 F4 03 04 00 07 92 14 67 B6 04 01 00 00 35 76 B3 3D 49 89 B9 C7 [11:20:28]CommunicateWithHost err = 0 [11:20:28]CheckOFDResponse [11:20:28]1017 (14) - 77093643461234 [11:20:28]1041 (16) - 0000000002094219 [11:20:28]1040 (4) - 30297 [11:20:28]1012 (4) - 20.10.2024 05:15 [11:20:28]1206 (1) - 0 [11:20:28]OFD Sender: Remove packet 30297 [11:20:28]ProducePacketName [11:20:28]name=ofd_packets/00030297 [11:20:28]NVStorageDeleteData [11:20:29]OFD Sender: Processing packet 30298 [packets to send 10, broken 9] [11:20:29]ProducePacketName [11:20:29]name=ofd_packets/00030298 [11:20:29]OFD Sender: To server: pG, [11:20:29]CommunicateWithHost lk.salyk.kg:30040 [11:20:29]ConnectInit lk.salyk.kg [11:20:29]Connected sock=7 [11:20: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 B5 E5 07 01 DA 2C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 50 00 00 00 F4 03 04 00 55 E7 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 B4 41 59 01 F7 E7 5A 15 F3 D6 4F 28 A1 A9 [11:20: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 D3 5E 47 00 D4 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 5A 76 00 00 F4 03 04 00 08 92 14 67 B6 04 01 00 00 2E 7F 57 3C AD 7E 06 ED [11:20:29]CommunicateWithHost err = 0 [11:20:29]CheckOFDResponse [11:20:29]1017 (14) - 77093643461234 [11:20:29]1041 (16) - 0000000002094219 [11:20:29]1040 (4) - 30298 [11:20:29]1012 (4) - 20.10.2024 05:15 [11:20:29]1206 (1) - 0 [11:20:29]OFD Sender: Remove packet 30298 [11:20:29]ProducePacketName [11:20:29]name=ofd_packets/00030298 [11:20:29]NVStorageDeleteData [11:20:30]OFD Sender: No OFD packet to send [11:20:35]OFD Sender: No OFD packet to send [11:20:40]OFD Sender: No OFD packet to send [11:20:45]OFD Sender: No OFD packet to send [11:20:50]OFD Sender: No OFD packet to send [11:20:55]OFD Sender: No OFD packet to send [11:21:00]OFD Sender: No OFD packet to send [11:21:05]OFD Sender: No OFD packet to send [11:21:10]OFD Sender: No OFD packet to send [11:21:15]OFD Sender: No OFD packet to send [11:21:20]OFD Sender: No OFD packet to send [11:21:25]OFD Sender: No OFD packet to send [11:21:30]OFD Sender: No OFD packet to send [11:21:35]OFD Sender: No OFD packet to send [11:21:40]OFD Sender: No OFD packet to send [11:21:45]OFD Sender: No OFD packet to send [11:21:50]OFD Sender: No OFD packet to send [11:21:55]OFD Sender: No OFD packet to send [11:21:58]accept exits with 9 [11:21:58]New connection [11:21:58]New thread 3067370852 created [11:21:58]Thread 3067514212 joined [11:21:58]Waiting for new connection... [11:21:58] Sock 9.Parse request [11:21:58]Sock 9.Check first char [11:21:58]Sock 9.First char is OK [11:21:58]request: POST /json_proto HTTP/1.0 [11:21:58]Method: POST [11:21:58]URL: /json_proto [11:21:58]Method is POST - this is cgi request [11:21:58]url: /json_proto [11:21:58]query_string will be loaded in cgi processing [11:21:58]execute_cgi json_proto POST (null) [11:21:58]execute_cgi path=json_proto method=POST [11:21:58]POST find Content-Length [11:21:58]Host: 172.17.51.3:8080 [11:21:58]Content-Length: 679 [11:21:58]Content-Type: application/json [11:21:58] [11:21:58]POST finish read [11:21:58]Found Content-Length = 679 [11:21:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342691", "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:21:58]execute_script... [11:21: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)342691", "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:21:58]POST & json_proto [11:21:58]process_json_proto [11:21:58]json parsed OK: [11:21:58]protocol is kg_v1.0 [11:21:58]action value=close_receipt [11:21:58]process_action close_receipt [11:21:58]cmd_close_receipt [11:21:58]MH_GetDate [11:21:58]Write to MH i2c: F0 00 00 DD 78 44 [11:21:58]Write i2c OK [11:21:58]MH_I2C_Read... [11:21:58]Read from MH i2c: F0 [11:21:58]MH_I2C_Read... [11:21:58]Read from MH i2c: F0 09 00 [11:21:58]MH_I2C_Read... [11:21:58]Read from MH i2c: F0 09 00 DD 78 00 DF E7 14 67 04 C1 95 66 4E [11:21:58]GetLastDocTimeStamp 1729423189 [11:21:58]current date 1729423327 [11:21:58]FM_GetShiftState [11:21:58]SAM_PROTO_GetShiftState [11:21:58]wFMCommunicate request_size=4 [11:21:58]MH_SAM_APDU [11:21:58]CAPDU: 80 13 01 00 [11:21:58]Write to MH i2c: E2 08 00 DE 78 80 13 01 00 00 00 00 00 D3 [11:21:58]Write i2c OK [11:21:58]MH_I2C_Read... [11:21:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:21:58]Read from MH i2c: E2 [11:21:58]MH_I2C_Read... [11:21:58]Read from MH i2c: E2 0E 00 [11:21:58]MH_I2C_Read... [11:21:58]Read from MH i2c: E2 0E 00 DE 78 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 B9 [11:21:58]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [11:21:58]wFMCommunicate OK [11:21:58]SAM_PROTO_GetShiftState done [11:21:58]FM_GetShiftState done [11:21:58]opened in 1729384718 [11:21:58]opened+sec_in_day 1729471118 [11:21:58]quantity*price = 100050 [11:21:58]sum+1 = 100052 [11:21:58]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 СНО: Общий режим Чек 81 20.10.2024 11:22 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30299 ФПД: 65952823854751 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T112207&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30299&fm=65952823854751&tin=02508201610067®Number=0000000000186857&sum=100000 [11:22:00]StoreToDocumentArchive [11:22:00]shift 114 fd 30299 [11:22:00]save to /storage/0114/doc_00030299 [11:22:00]save last doc name /storage/0114/doc_00030299 to /storage/kkm_last_doc_name [11:22:00]save OK [11:22:00]Clear old archive folders... [11:22:00]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:22:00]tlvbuf is 00BE9430 [11:22:00]SAM_PROTO_ClearQueue [11:22:00]wFMCommunicate request_size=4 [11:22:00]MH_SAM_APDU [11:22:00]CAPDU: 80 09 00 00 [11:22:00]Write to MH i2c: E2 08 00 EB 78 80 09 00 00 00 00 00 00 D5 [11:22:00]Write i2c OK [11:22:00]MH_I2C_Read... [11:22:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:22:00]Read from MH i2c: E2 [11:22:00]MH_I2C_Read... [11:22:00]Read from MH i2c: E2 03 00 [11:22:00]MH_I2C_Read... [11:22:00]Read from MH i2c: E2 03 00 EB 78 00 90 00 D7 [11:22:00]RAPDU: 90 00 [11:22:00]wFMCommunicate OK [11:22:00]SAM_PROTO_ClearQueue done [11:22:00]KKMCreateOFDPacket [11:22:00]OFDProtocolAddRootSTLVToBuf [11:22:00]FM_MakeSignedData [11:22:00]FM_MakeSignedData [11:22:00]SAM_PROTO_SignData [11:22:00]wFMCommunicate request_size=4 [11:22:00]MH_SAM_APDU [11:22:00]CAPDU: 80 0D 01 02 [11:22:00]Write to MH i2c: E2 08 00 EC 78 80 0D 01 02 00 00 00 00 DD [11:22:00]Write i2c OK [11:22:00]MH_I2C_Read... [11:22:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:22:00]Read from MH i2c: E2 [11:22:00]MH_I2C_Read... [11:22:00]Read from MH i2c: E2 03 00 [11:22:00]MH_I2C_Read... [11:22:00]Read from MH i2c: E2 03 00 EC 78 00 90 00 D8 [11:22:00]RAPDU: 90 00 [11:22:00]wFMCommunicate OK [11:22:00]wFMCommunicate request_size=255 [11:22:00]MH_SAM_APDU [11:22: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 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 51 00 00 00 F4 03 04 00 DF E7 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 3B FB D6 A3 [11:22:00]Write to MH i2c: E2 02 01 ED 78 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 51 00 00 00 F4 03 04 00 DF E7 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 3B FB D6 A3 00 00 E8 [11:22:00]Write i2c OK [11:22:00]MH_I2C_Read... [11:22:00]OFD Sender: No OFD packet to send [11:22:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:22:00]Read from MH i2c: E2 [11:22:00]MH_I2C_Read... [11:22:00]Read from MH i2c: E2 03 00 [11:22:00]MH_I2C_Read... [11:22:00]Read from MH i2c: E2 03 00 ED 78 00 90 00 D9 [11:22:00]RAPDU: 90 00 [11:22:00]wFMCommunicate OK [11:22:00]wFMCommunicate request_size=7 [11:22:00]MH_SAM_APDU [11:22:00]CAPDU: 80 0D 02 02 02 46 9F [11:22:00]Write to MH i2c: E2 0A 00 EE 78 80 0D 02 02 02 00 46 9F 00 00 C9 [11:22:00]Write i2c OK [11:22:00]MH_I2C_Read... [11:22:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:22:00]Read from MH i2c: E2 [11:22:00]MH_I2C_Read... [11:22:00]Read from MH i2c: E2 03 00 [11:22:00]MH_I2C_Read... [11:22:00]Read from MH i2c: E2 03 00 EE 78 00 90 00 DA [11:22:00]RAPDU: 90 00 [11:22:00]wFMCommunicate OK [11:22:00]wFMCommunicate request_size=4 [11:22:00]MH_SAM_APDU [11:22:00]CAPDU: 80 0D 03 02 [11:22:00]Write to MH i2c: E2 08 00 EF 78 80 0D 03 02 00 00 00 00 E2 [11:22:00]Write i2c OK [11:22:00]MH_I2C_Read... [11:22:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:22:00]Read from MH i2c: E2 [11:22:00]MH_I2C_Read... [11:22:00]Read from MH i2c: E2 0B 00 [11:22:00]MH_I2C_Read... [11:22:00]Read from MH i2c: E2 0B 00 EF 78 00 6B B3 93 DF 80 55 13 DE 90 00 39 [11:22:00]RAPDU: 6B B3 93 DF 80 55 13 DE 90 00 [11:22:00]wFMCommunicate OK [11:22:00]SAM_PROTO_SignData done [11:22:00]FM_MakeSignedData done [11:22:00]CreateOFDProtocolMessage [11:22:00]wFMCommunicate request_size=4 [11:22:00]MH_SAM_APDU [11:22:00]CAPDU: 80 11 00 00 [11:22:00]Write to MH i2c: E2 08 00 F0 78 80 11 00 00 00 00 00 00 E2 [11:22:00]Write i2c OK [11:22:00]MH_I2C_Read... [11:22:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:22:00]Read from MH i2c: E2 [11:22:00]MH_I2C_Read... [11:22:00]Read from MH i2c: E2 17 00 [11:22:00]MH_I2C_Read... [11:22:00]Read from MH i2c: E2 17 00 F0 78 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 30 [11:22:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [11:22:00]wFMCommunicate OK [11:22:00]CreateOFDProtocolMessage done [11:22:00]OFDSenderStorePacket 30299 [11:22:00]StoreOFDPacket docnum=30299 [11:22: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 19 BA 04 01 2A C2 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 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 51 00 00 00 F4 03 04 00 DF E7 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 3B FB D6 A3 46 9F 6B B3 93 DF 80 55 13 DE [11:22:00]CheckFolder [11:22:00]dirname=/storage/ofd_packets [11:22:00]CheckFolder done [11:22:00]ProducePacketName [11:22:00]name=ofd_packets/00030299 [11:22:00]NVStorageSaveData ofd_packets/00030299 [11:22:00]File name is /storage/ofd_packets/00030299 [11:22:00]Write 298 bytes [11:22:00]NVStorageSaveData done [11:22:00]OFDSenderStorePacket done [11:22:00]KKMCreateOFDPacket done [11:22:00]NVStorageSaveData kkm_last_timestamp [11:22:00]File name is /storage/kkm_last_timestamp [11:22:00]Write 4 bytes [11:22:00]NVStorageSaveData done [11:22:00]ExternCall_PrintAddStr [11:22:00]wPrintStart [11:22:00]Write to MH i2c: 01 00 00 F1 78 69 [11:22:00]Write i2c OK [11:22:00]MH_I2C_Read... [11:22:00]Read from MH i2c: 01 [11:22:00]MH_I2C_Read... [11:22:00]Read from MH i2c: 01 07 00 [11:22:00]MH_I2C_Read... [11:22:00]Read from MH i2c: 01 07 00 F1 78 00 00 00 00 00 FF 0F 7E [11:22:00]RasterBufferAndPrint [11:22:00]line Счет N : (1)342691 [11:22:00]line ИНН: 02508201610067 [11:22:00]line Контрольно-Кассовый Чек [11:22:00]line ПРОДАЖА [11:22:00]line ТРК (МРК, ГНК) : 64 [11:22:00]line Товар: 2710194210 [11:22:00]line ДТ-К-2 [11:22:00]line 13.130 * 76.20 [11:22:00]line = 1000.51 [11:22:00]line НДС 12% НСП 1% [11:22:00]line > о реализуемом товаре [11:22:00]line ОКРУГЛЕНИЕ: -0.51 [11:22:00]line ИТОГО: 1000.00 [11:22:00]line Внесено: 1000.00 [11:22:00]line СДАЧА: 0.00 [11:22:00]line НСП 1% : 8.85 [11:22:00]line НДС 12% : 106.25 [11:22:00]line Наличными: 1000.00 [11:22:00]line Безнал.: 0.00 [11:22:00]line Место: АЗС № 78 "Партнер Нефть" [11:22:00]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [11:22:00]line СНО: Общий режим [11:22:00]line Чек 81 20.10.2024 11:22 [11:22:00]line Смена: 114 ФФД: 1.0 [11:22:00]line ЗНМ: 0300000137 [11:22:00]line РНМ: 0000000000186857 [11:22:00]line Версия ККМ: v1.0 [11:22:00]line ФМ: 0000000002094219 [11:22:00]line ФД: 30299 [11:22:00]line ФПД: 65952823854751 [11:22:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T112207&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30299&fm=65952823854751&tin=02508201610067®Number=0000000000186857&sum=100000 [11:22:00]OFD Sender: Processing packet 30299 [packets to send 10, broken 9] [11:22:00]ProducePacketName [11:22:00]name=ofd_packets/00030299 [11:22:00]OFD Sender: To server: pG, [11:22:00]CommunicateWithHost lk.salyk.kg:30040 [11:22:00]ConnectInit lk.salyk.kg [11:22:00]written 0, free lines is 4095 [11:22:00]Connected sock=10 [11:22: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 19 BA 04 01 2A C2 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 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 51 00 00 00 F4 03 04 00 DF E7 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 3B FB D6 A3 46 9F 6B B3 93 DF 80 55 13 DE [11:22: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 26 52 47 00 63 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 5B 76 00 00 F4 03 04 00 64 92 14 67 B6 04 01 00 00 22 B6 7B 54 CA B4 74 91 [11:22:01]CommunicateWithHost err = 0 [11:22:01]CheckOFDResponse [11:22:01]1017 (14) - 77093643461234 [11:22:01]1041 (16) - 0000000002094219 [11:22:01]1040 (4) - 30299 [11:22:01]1012 (4) - 20.10.2024 05:17 [11:22:01]1206 (1) - 0 [11:22:01]OFD Sender: Remove packet 30299 [11:22:01]ProducePacketName [11:22:01]name=ofd_packets/00030299 [11:22:01]NVStorageDeleteData [11:22:01]Write to MH i2c: 01 00 00 1C 79 95 [11:22:01]Write i2c OK [11:22:01]MH_I2C_Read... [11:22:01]Read from MH i2c: 01 [11:22:01]MH_I2C_Read... [11:22:01]Read from MH i2c: 01 07 00 [11:22:01]MH_I2C_Read... [11:22:01]Read from MH i2c: 01 07 00 1C 79 00 00 00 00 00 00 0D A9 [11:22:01]RasterBufferAndPrint [11:22:01]line [11:22:01]line [11:22:01]line [11:22:01]line [11:22:01]line [11:22:01]written 0, free lines is 3337 [11:22:01]MH_Cut [11:22:01]Write to MH i2c: D1 01 00 23 79 01 6E [11:22:01]Write i2c OK [11:22:01]MH_I2C_Read... [11:22:01]Read from MH i2c: D1 [11:22:01]MH_I2C_Read... [11:22:01]Read from MH i2c: D1 01 00 [11:22:01]MH_I2C_Read... [11:22:01]Read from MH i2c: D1 01 00 23 79 00 6D [11:22:01]Write to MH i2c: 01 00 00 24 79 9D [11:22:01]Write i2c OK [11:22:01]MH_I2C_Read... [11:22:01]OFD Sender: No OFD packet to send [11:22:02]*** Cut start [11:22:02]*** Partial cut [11:22:02]*** CUTSNS_PIN = 1 [11:22:02]*** CUTSNS_PIN = 0 [11:22:02]*** Brake cut motor [11:22:02]Read from MH i2c: 01 [11:22:02]MH_I2C_Read... [11:22:02]*** Stop cut motor [11:22:02]*** Cut end [11:22:02]Read from MH i2c: 01 07 00 [11:22:02]MH_I2C_Read... [11:22:02]Read from MH i2c: 01 07 00 24 79 00 00 00 00 00 FF 0F B2 [11:22:02]process_action close_receipt done [11:22:02]requested_data is exist [11:22:02]produce_requested_data [11:22:02]requested_item fm.sn is exist - process it [11:22:02]wFMCommunicate request_size=4 [11:22:02]MH_SAM_APDU [11:22:02]CAPDU: 80 11 00 00 [11:22:02]Write to MH i2c: E2 08 00 25 79 80 11 00 00 00 00 00 00 18 [11:22:02]Write i2c OK [11:22:02]MH_I2C_Read... [11:22:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:22:02]Read from MH i2c: E2 [11:22:02]MH_I2C_Read... [11:22:02]Read from MH i2c: E2 17 00 [11:22:02]MH_I2C_Read... [11:22:02]Read from MH i2c: E2 17 00 25 79 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 66 [11:22: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:22:02]wFMCommunicate OK [11:22:02]requested_item fd.num is exist - process it [11:22:02]SAM_PROTO_GetFieldsCounters [11:22:02]wFMCommunicate request_size=4 [11:22:02]MH_SAM_APDU [11:22:02]CAPDU: 80 13 00 00 [11:22:02]Write to MH i2c: E2 08 00 26 79 80 13 00 00 00 00 00 00 1B [11:22:02]Write i2c OK [11:22:02]MH_I2C_Read... [11:22:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:22:02]Read from MH i2c: E2 [11:22:02]MH_I2C_Read... [11:22:02]Read from MH i2c: E2 62 00 [11:22:02]MH_I2C_Read... [11:22:02]Read from MH i2c: E2 62 00 26 79 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 77 [11:22: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 5B 76 00 00 0E 04 04 00 72 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:22:02]wFMCommunicate OK [11:22:02]SAM_PROTO_GetFieldsCounters done [11:22:02]requested_item shift.num is exist - process it [11:22:02]requested_item shift.opened is exist - process it [11:22:02]req_shift_opened [11:22:02]FM_GetShiftState [11:22:02]SAM_PROTO_GetShiftState [11:22:02]wFMCommunicate request_size=4 [11:22:02]MH_SAM_APDU [11:22:02]CAPDU: 80 13 01 00 [11:22:02]Write to MH i2c: E2 08 00 27 79 80 13 01 00 00 00 00 00 1D [11:22:02]Write i2c OK [11:22:02]MH_I2C_Read... [11:22:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:22:02]Read from MH i2c: E2 [11:22:02]MH_I2C_Read... [11:22:02]Read from MH i2c: E2 0E 00 [11:22:02]MH_I2C_Read... [11:22:02]Read from MH i2c: E2 0E 00 27 79 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 03 [11:22:02]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [11:22:02]wFMCommunicate OK [11:22:02]SAM_PROTO_GetShiftState done [11:22:02]FM_GetShiftState done [11:22:02]req_shift_opened done [11:22:02]requested_item shift.open_date is exist - process it [11:22:02]req_shift_open_date [11:22:02]req_shift_open_date done [11:22:02]produce_requested_data done [11:22:02]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30299,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [11:22:02]process_action_free close_receipt [11:22:02]json_value_free [11:22:02]json_value_free done [11:22:02]process_json_proto returns [11:22:02]Send response to host [11:22:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30299,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [11:22:02]free response buf [11:22:02]execute_script done [11:22:02]execute_script returns [11:22:02]free content buf [11:22:02]Sock 9.Close socket [11:22:02]Sock 9.Thread stoped [11:22:06]OFD Sender: No OFD packet to send [11:22:11]OFD Sender: No OFD packet to send [11:22:16]OFD Sender: No OFD packet to send [11:22:21]OFD Sender: No OFD packet to send [11:22:26]OFD Sender: No OFD packet to send [11:22:31]OFD Sender: No OFD packet to send [11:22:32]accept exits with 7 [11:22:32]New connection [11:22:32]New thread 3067514212 created [11:22:32]Thread 3067370852 joined [11:22:32]Waiting for new connection... [11:22:32] Sock 7.Parse request [11:22:32]Sock 7.Check first char [11:22:32]Sock 7.First char is OK [11:22:32]request: POST /json_proto HTTP/1.0 [11:22:32]Method: POST [11:22:32]URL: /json_proto [11:22:32]Method is POST - this is cgi request [11:22:32]url: /json_proto [11:22:32]query_string will be loaded in cgi processing [11:22:32]execute_cgi json_proto POST (null) [11:22:32]execute_cgi path=json_proto method=POST [11:22:32]POST find Content-Length [11:22:32]Host: 172.17.51.3:8080 [11:22:32]Content-Length: 688 [11:22:32]Content-Type: application/json [11:22:32] [11:22:32]POST finish read [11:22:32]Found Content-Length = 688 [11:22:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342692", "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 }]} ], "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" ] } } [11:22:32]execute_script... [11:22: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)342692", "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 }]} ], "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" ] } } [11:22:32]POST & json_proto [11:22:32]process_json_proto [11:22:32]json parsed OK: [11:22:32]protocol is kg_v1.0 [11:22:32]action value=close_receipt [11:22:32]process_action close_receipt [11:22:32]cmd_close_receipt [11:22:32]MH_GetDate [11:22:32]Write to MH i2c: F0 00 00 28 79 90 [11:22:32]Write i2c OK [11:22:32]MH_I2C_Read... [11:22:32]Read from MH i2c: F0 [11:22:32]MH_I2C_Read... [11:22:32]Read from MH i2c: F0 09 00 [11:22:32]MH_I2C_Read... [11:22:32]Read from MH i2c: F0 09 00 28 79 00 01 E8 14 67 04 C1 95 66 BD [11:22:32]GetLastDocTimeStamp 1729423327 [11:22:32]current date 1729423361 [11:22:32]FM_GetShiftState [11:22:32]SAM_PROTO_GetShiftState [11:22:32]wFMCommunicate request_size=4 [11:22:32]MH_SAM_APDU [11:22:32]CAPDU: 80 13 01 00 [11:22:32]Write to MH i2c: E2 08 00 29 79 80 13 01 00 00 00 00 00 1F [11:22:32]Write i2c OK [11:22:32]MH_I2C_Read... [11:22:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:22:32]Read from MH i2c: E2 [11:22:32]MH_I2C_Read... [11:22:32]Read from MH i2c: E2 0E 00 [11:22:32]MH_I2C_Read... [11:22:32]Read from MH i2c: E2 0E 00 29 79 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 05 [11:22:32]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [11:22:32]wFMCommunicate OK [11:22:32]SAM_PROTO_GetShiftState done [11:22:32]FM_GetShiftState done [11:22:32]opened in 1729384718 [11:22:32]opened+sec_in_day 1729471118 [11:22:32]quantity*price = 120046 [11:22:32]sum+1 = 120047 [11:22:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.48 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 82 20.10.2024 11:22 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30300 ФПД: 86683971470770 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T112241&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30300&fm=86683971470770&tin=02508201610067®Number=0000000000186857&sum=120000 [11:22:34]StoreToDocumentArchive [11:22:34]shift 114 fd 30300 [11:22:34]save to /storage/0114/doc_00030300 [11:22:34]save last doc name /storage/0114/doc_00030300 to /storage/kkm_last_doc_name [11:22:34]save OK [11:22:34]Clear old archive folders... [11:22:34]ProcessDocumentItem done err = 0, tmpTLVsize=257 [11:22:34]tlvbuf is 00B86210 [11:22:34]SAM_PROTO_ClearQueue [11:22:34]wFMCommunicate request_size=4 [11:22:34]MH_SAM_APDU [11:22:34]CAPDU: 80 09 00 00 [11:22:34]Write to MH i2c: E2 08 00 36 79 80 09 00 00 00 00 00 00 21 [11:22:34]Write i2c OK [11:22:34]MH_I2C_Read... [11:22:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:22:34]Read from MH i2c: E2 [11:22:34]MH_I2C_Read... [11:22:34]Read from MH i2c: E2 03 00 [11:22:34]MH_I2C_Read... [11:22:34]Read from MH i2c: E2 03 00 36 79 00 90 00 23 [11:22:34]RAPDU: 90 00 [11:22:34]wFMCommunicate OK [11:22:34]SAM_PROTO_ClearQueue done [11:22:34]KKMCreateOFDPacket [11:22:34]OFDProtocolAddRootSTLVToBuf [11:22:34]FM_MakeSignedData [11:22:34]FM_MakeSignedData [11:22:34]SAM_PROTO_SignData [11:22:34]wFMCommunicate request_size=4 [11:22:34]MH_SAM_APDU [11:22:34]CAPDU: 80 0D 01 02 [11:22:34]Write to MH i2c: E2 08 00 37 79 80 0D 01 02 00 00 00 00 29 [11:22:34]Write i2c OK [11:22:34]MH_I2C_Read... [11:22:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:22:34]Read from MH i2c: E2 [11:22:34]MH_I2C_Read... [11:22:34]Read from MH i2c: E2 03 00 [11:22:34]MH_I2C_Read... [11:22:34]Read from MH i2c: E2 03 00 37 79 00 90 00 24 [11:22:34]RAPDU: 90 00 [11:22:34]wFMCommunicate OK [11:22:34]wFMCommunicate request_size=255 [11:22:34]MH_SAM_APDU [11: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 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 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 CC 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 52 00 00 00 F4 03 04 00 01 E8 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 [11:22:34]Write to MH i2c: E2 02 01 38 79 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 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 CC 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 52 00 00 00 F4 03 04 00 01 E8 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 00 EF [11:22:34]Write i2c OK [11:22:34]MH_I2C_Read... [11:22:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:22:34]Read from MH i2c: E2 [11:22:34]MH_I2C_Read... [11:22:34]Read from MH i2c: E2 03 00 [11:22:34]MH_I2C_Read... [11:22:34]Read from MH i2c: E2 03 00 38 79 00 90 00 25 [11:22:34]RAPDU: 90 00 [11:22:34]wFMCommunicate OK [11:22:34]wFMCommunicate request_size=16 [11:22:34]MH_SAM_APDU [11:22:34]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 4E D6 AF 53 C5 B2 [11:22:34]Write to MH i2c: E2 13 00 39 79 80 0D 02 02 0B 00 00 35 04 06 00 4E D6 AF 53 C5 B2 00 00 1E [11:22:34]Write i2c OK [11:22:34]MH_I2C_Read... [11:22:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:22:34]Read from MH i2c: E2 [11:22:34]MH_I2C_Read... [11:22:34]Read from MH i2c: E2 03 00 [11:22:34]MH_I2C_Read... [11:22:34]Read from MH i2c: E2 03 00 39 79 00 90 00 26 [11:22:34]RAPDU: 90 00 [11:22:34]wFMCommunicate OK [11:22:34]wFMCommunicate request_size=4 [11:22:34]MH_SAM_APDU [11:22:34]CAPDU: 80 0D 03 02 [11:22:34]Write to MH i2c: E2 08 00 3A 79 80 0D 03 02 00 00 00 00 2E [11:22:34]Write i2c OK [11:22:34]MH_I2C_Read... [11:22:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:22:34]Read from MH i2c: E2 [11:22:34]MH_I2C_Read... [11:22:34]Read from MH i2c: E2 0B 00 [11:22:34]MH_I2C_Read... [11:22:34]Read from MH i2c: E2 0B 00 3A 79 00 28 B0 2D BA A4 78 29 F9 90 00 2C [11:22:34]RAPDU: 28 B0 2D BA A4 78 29 F9 90 00 [11:22:34]wFMCommunicate OK [11:22:34]SAM_PROTO_SignData done [11:22:34]FM_MakeSignedData done [11:22:34]CreateOFDProtocolMessage [11:22:34]wFMCommunicate request_size=4 [11:22:34]MH_SAM_APDU [11:22:34]CAPDU: 80 11 00 00 [11:22:34]Write to MH i2c: E2 08 00 3B 79 80 11 00 00 00 00 00 00 2E [11:22:34]Write i2c OK [11:22:34]MH_I2C_Read... [11:22:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:22:34]Read from MH i2c: E2 [11:22:34]MH_I2C_Read... [11:22:34]Read from MH i2c: E2 17 00 [11:22:34]MH_I2C_Read... [11:22:34]Read from MH i2c: E2 17 00 3B 79 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 7C [11:22:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [11:22:34]wFMCommunicate OK [11:22:34]CreateOFDProtocolMessage done [11:22:34]OFDSenderStorePacket 30300 [11:22:34]StoreOFDPacket docnum=30300 [11:22: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 15 01 00 00 64 18 0D 01 1E 50 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 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 CC 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 52 00 00 00 F4 03 04 00 01 E8 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 4E D6 AF 53 C5 B2 28 B0 2D BA A4 78 29 F9 [11:22:34]CheckFolder [11:22:34]dirname=/storage/ofd_packets [11:22:34]CheckFolder done [11:22:34]ProducePacketName [11:22:34]name=ofd_packets/00030300 [11:22:34]NVStorageSaveData ofd_packets/00030300 [11:22:34]File name is /storage/ofd_packets/00030300 [11:22:34]Write 307 bytes [11:22:34]NVStorageSaveData done [11:22:34]OFDSenderStorePacket done [11:22:34]KKMCreateOFDPacket done [11:22:34]NVStorageSaveData kkm_last_timestamp [11:22:34]File name is /storage/kkm_last_timestamp [11:22:34]Write 4 bytes [11:22:34]NVStorageSaveData done [11:22:34]ExternCall_PrintAddStr [11:22:34]wPrintStart [11:22:34]Write to MH i2c: 01 00 00 3C 79 B5 [11:22:34]Write i2c OK [11:22:34]MH_I2C_Read... [11:22:34]Read from MH i2c: 01 [11:22:34]MH_I2C_Read... [11:22:34]Read from MH i2c: 01 07 00 [11:22:34]MH_I2C_Read... [11:22:34]Read from MH i2c: 01 07 00 3C 79 00 00 00 00 00 FF 0F CA [11:22:34]RasterBufferAndPrint [11:22:34]line Счет N : (1)342692 [11:22:34]line ИНН: 02508201610067 [11:22:34]line Контрольно-Кассовый Чек [11:22:34]line ПРОДАЖА [11:22:34]line ТРК (МРК, ГНК) : 51 [11:22:34]line Товар: 2710194210 [11:22:34]line D-ENERGY Дт-К-2 [11:22:34]line 15.550 * 77.20 [11:22:34]line = 1200.46 [11:22:34]line НДС 12% НСП 1% [11:22:34]line > о реализуемом товаре [11:22:34]line ОКРУГЛЕНИЕ: -0.46 [11:22:34]line ИТОГО: 1200.00 [11:22:34]line Внесено: 1200.00 [11:22:34]line СДАЧА: 0.00 [11:22:34]line НСП 1% : 10.62 [11:22:34]line НДС 12% : 127.48 [11:22:34]line Наличными: 1200.00 [11:22:34]line Безнал.: 0.00 [11:22:34]line Место: АЗС № 78 "Партнер Нефть" [11:22:34]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [11:22:34]line СНО: Общий режим [11:22:34]line Чек 82 20.10.2024 11:22 [11:22:34]line Смена: 114 ФФД: 1.0 [11:22:34]line ЗНМ: 0300000137 [11:22:34]line РНМ: 0000000000186857 [11:22:34]line Версия ККМ: v1.0 [11:22:34]line ФМ: 0000000002094219 [11:22:34]line ФД: 30300 [11:22:34]line ФПД: 86683971470770 [11:22:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T112241&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30300&fm=86683971470770&tin=02508201610067®Number=0000000000186857&sum=120000 [11:22:34]OFD Sender: Processing packet 30300 [packets to send 10, broken 9] [11:22:34]ProducePacketName [11:22:34]name=ofd_packets/00030300 [11:22:34]OFD Sender: To server: pG, [11:22:34]CommunicateWithHost lk.salyk.kg:30040 [11:22:34]ConnectInit lk.salyk.kg [11:22:34]written 0, free lines is 4095 [11:22:34]Connected sock=10 [11:22: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 15 01 00 00 64 18 0D 01 1E 50 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 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 CC 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 52 00 00 00 F4 03 04 00 01 E8 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 4E D6 AF 53 C5 B2 28 B0 2D BA A4 78 29 F9 [11: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 56 21 47 00 21 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 5C 76 00 00 F4 03 04 00 86 92 14 67 B6 04 01 00 00 A5 F9 D8 45 FE B2 B3 3A [11:22:35]CommunicateWithHost err = 0 [11:22:35]CheckOFDResponse [11:22:35]1017 (14) - 77093643461234 [11:22:35]1041 (16) - 0000000002094219 [11:22:35]1040 (4) - 30300 [11:22:35]1012 (4) - 20.10.2024 05:17 [11:22:35]1206 (1) - 0 [11:22:35]OFD Sender: Remove packet 30300 [11:22:35]ProducePacketName [11:22:35]name=ofd_packets/00030300 [11:22:35]NVStorageDeleteData [11:22:35]Write to MH i2c: 01 00 00 67 79 E0 [11:22:35]Write i2c OK [11:22:35]MH_I2C_Read... [11:22:35]Read from MH i2c: 01 [11:22:35]MH_I2C_Read... [11:22:35]Read from MH i2c: 01 07 00 [11:22:35]MH_I2C_Read... [11:22:35]Read from MH i2c: 01 07 00 67 79 00 00 00 00 00 F5 0C E8 [11:22:35]RasterBufferAndPrint [11:22:35]line [11:22:35]line [11:22:35]line [11:22:35]line [11:22:35]line [11:22:35]written 0, free lines is 3323 [11:22:35]MH_Cut [11:22:35]Write to MH i2c: D1 01 00 6E 79 01 B9 [11:22:35]Write i2c OK [11:22:35]MH_I2C_Read... [11:22:35]Read from MH i2c: D1 [11:22:35]MH_I2C_Read... [11:22:35]Read from MH i2c: D1 01 00 [11:22:35]MH_I2C_Read... [11:22:35]Read from MH i2c: D1 01 00 6E 79 00 B8 [11:22:35]Write to MH i2c: 01 00 00 6F 79 E8 [11:22:35]Write i2c OK [11:22:35]MH_I2C_Read... [11:22:35]OFD Sender: No OFD packet to send [11:22:36]*** Cut start [11:22:36]*** Partial cut [11:22:36]*** CUTSNS_PIN = 1 [11:22:36]*** CUTSNS_PIN = 0 [11:22:36]*** Brake cut motor [11:22:36]Read from MH i2c: 01 [11:22:36]MH_I2C_Read... [11:22:36]*** Stop cut motor [11:22:36]*** Cut end [11:22:36]Read from MH i2c: 01 07 00 [11:22:36]MH_I2C_Read... [11:22:36]Read from MH i2c: 01 07 00 6F 79 00 00 00 00 00 FF 0F FD [11:22:36]process_action close_receipt done [11:22:36]requested_data is exist [11:22:36]produce_requested_data [11:22:36]requested_item fm.sn is exist - process it [11:22:36]wFMCommunicate request_size=4 [11:22:36]MH_SAM_APDU [11:22:36]CAPDU: 80 11 00 00 [11:22:36]Write to MH i2c: E2 08 00 70 79 80 11 00 00 00 00 00 00 63 [11:22:36]Write i2c OK [11:22:36]MH_I2C_Read... [11:22:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:22:36]Read from MH i2c: E2 [11:22:36]MH_I2C_Read... [11:22:36]Read from MH i2c: E2 17 00 [11:22:36]MH_I2C_Read... [11:22:36]Read from MH i2c: E2 17 00 70 79 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 B1 [11:22: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:22:36]wFMCommunicate OK [11:22:36]requested_item fd.num is exist - process it [11:22:36]SAM_PROTO_GetFieldsCounters [11:22:36]wFMCommunicate request_size=4 [11:22:36]MH_SAM_APDU [11:22:36]CAPDU: 80 13 00 00 [11:22:36]Write to MH i2c: E2 08 00 71 79 80 13 00 00 00 00 00 00 66 [11:22:36]Write i2c OK [11:22:36]MH_I2C_Read... [11:22:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:22:36]Read from MH i2c: E2 [11:22:36]MH_I2C_Read... [11:22:36]Read from MH i2c: E2 62 00 [11:22:36]MH_I2C_Read... [11:22:36]Read from MH i2c: E2 62 00 71 79 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 C6 [11:22: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 5C 76 00 00 0E 04 04 00 72 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:22:36]wFMCommunicate OK [11:22:36]SAM_PROTO_GetFieldsCounters done [11:22:36]requested_item shift.num is exist - process it [11:22:36]requested_item shift.opened is exist - process it [11:22:36]req_shift_opened [11:22:36]FM_GetShiftState [11:22:36]SAM_PROTO_GetShiftState [11:22:36]wFMCommunicate request_size=4 [11:22:36]MH_SAM_APDU [11:22:36]CAPDU: 80 13 01 00 [11:22:36]Write to MH i2c: E2 08 00 72 79 80 13 01 00 00 00 00 00 68 [11:22:36]Write i2c OK [11:22:36]MH_I2C_Read... [11:22:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:22:36]Read from MH i2c: E2 [11:22:36]MH_I2C_Read... [11:22:36]Read from MH i2c: E2 0E 00 [11:22:36]MH_I2C_Read... [11:22:36]Read from MH i2c: E2 0E 00 72 79 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 4E [11:22:36]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [11:22:36]wFMCommunicate OK [11:22:36]SAM_PROTO_GetShiftState done [11:22:36]FM_GetShiftState done [11:22:36]req_shift_opened done [11:22:36]requested_item shift.open_date is exist - process it [11:22:36]req_shift_open_date [11:22:36]req_shift_open_date done [11:22:36]produce_requested_data done [11:22:36]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30300,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [11:22:36]process_action_free close_receipt [11:22:36]json_value_free [11:22:36]json_value_free done [11:22:36]process_json_proto returns [11:22:36]Send response to host [11:22:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30300,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [11:22:36]free response buf [11:22:36]execute_script done [11:22:36]execute_script returns [11:22:36]free content buf [11:22:36]Sock 7.Close socket [11:22:36]Sock 7.Thread stoped [11:22:40]OFD Sender: No OFD packet to send [11:22:45]OFD Sender: No OFD packet to send [11:22:48]accept exits with 9 [11:22:48]New connection [11:22:48]New thread 3067370852 created [11:22:48]Thread 3067514212 joined [11:22:48]Waiting for new connection... [11:22:48] Sock 9.Parse request [11:22:48]Sock 9.Check first char [11:22:48]Sock 9.First char is OK [11:22:48]request: POST /json_proto HTTP/1.0 [11:22:48]Method: POST [11:22:48]URL: /json_proto [11:22:48]Method is POST - this is cgi request [11:22:48]url: /json_proto [11:22:48]query_string will be loaded in cgi processing [11:22:48]execute_cgi json_proto POST (null) [11:22:48]execute_cgi path=json_proto method=POST [11:22:48]POST find Content-Length [11:22:48]Host: 172.17.51.3:8080 [11:22:48]Content-Length: 677 [11:22:48]Content-Type: application/json [11:22:48] [11:22:48]POST finish read [11:22:48]Found Content-Length = 677 [11:22:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342693", "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:22:48]execute_script... [11:22:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342693", "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:22:48]POST & json_proto [11:22:48]process_json_proto [11:22:48]json parsed OK: [11:22:48]protocol is kg_v1.0 [11:22:48]action value=close_receipt [11:22:48]process_action close_receipt [11:22:48]cmd_close_receipt [11:22:48]MH_GetDate [11:22:48]Write to MH i2c: F0 00 00 73 79 DB [11:22:48]Write i2c OK [11:22:48]MH_I2C_Read... [11:22:48]Read from MH i2c: F0 [11:22:48]MH_I2C_Read... [11:22:48]Read from MH i2c: F0 09 00 [11:22:48]MH_I2C_Read... [11:22:48]Read from MH i2c: F0 09 00 73 79 00 11 E8 14 67 04 C1 95 66 18 [11:22:48]GetLastDocTimeStamp 1729423361 [11:22:48]current date 1729423377 [11:22:48]FM_GetShiftState [11:22:48]SAM_PROTO_GetShiftState [11:22:48]wFMCommunicate request_size=4 [11:22:48]MH_SAM_APDU [11:22:48]CAPDU: 80 13 01 00 [11:22:48]Write to MH i2c: E2 08 00 74 79 80 13 01 00 00 00 00 00 6A [11:22:48]Write i2c OK [11:22:48]MH_I2C_Read... [11:22:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:22:48]Read from MH i2c: E2 [11:22:48]MH_I2C_Read... [11:22:48]Read from MH i2c: E2 0E 00 [11:22:48]MH_I2C_Read... [11:22:48]Read from MH i2c: E2 0E 00 74 79 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 50 [11:22:48]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [11:22:48]wFMCommunicate OK [11:22:48]SAM_PROTO_GetShiftState done [11:22:48]FM_GetShiftState done [11:22:48]opened in 1729384718 [11:22:48]opened+sec_in_day 1729471118 [11:22:48]quantity*price = 20003 [11:22:48]sum+1 = 20004 [11:22: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 СНО: Общий режим Чек 83 20.10.2024 11:22 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30301 ФПД: 123796681027077 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T112257&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30301&fm=123796681027077&tin=02508201610067®Number=0000000000186857&sum=20000 [11:22:49]StoreToDocumentArchive [11:22:49]shift 114 fd 30301 [11:22:49]save to /storage/0114/doc_00030301 [11:22:49]save last doc name /storage/0114/doc_00030301 to /storage/kkm_last_doc_name [11:22:49]save OK [11:22:49]Clear old archive folders... [11:22:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:22:49]tlvbuf is 00B06CD0 [11:22:49]SAM_PROTO_ClearQueue [11:22:49]wFMCommunicate request_size=4 [11:22:49]MH_SAM_APDU [11:22:49]CAPDU: 80 09 00 00 [11:22:49]Write to MH i2c: E2 08 00 81 79 80 09 00 00 00 00 00 00 6C [11:22:49]Write i2c OK [11:22:49]MH_I2C_Read... [11:22:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:22:49]Read from MH i2c: E2 [11:22:49]MH_I2C_Read... [11:22:49]Read from MH i2c: E2 03 00 [11:22:49]MH_I2C_Read... [11:22:49]Read from MH i2c: E2 03 00 81 79 00 90 00 6E [11:22:49]RAPDU: 90 00 [11:22:49]wFMCommunicate OK [11:22:49]SAM_PROTO_ClearQueue done [11:22:49]KKMCreateOFDPacket [11:22:49]OFDProtocolAddRootSTLVToBuf [11:22:49]FM_MakeSignedData [11:22:49]FM_MakeSignedData [11:22:49]SAM_PROTO_SignData [11:22:49]wFMCommunicate request_size=4 [11:22:49]MH_SAM_APDU [11:22:49]CAPDU: 80 0D 01 02 [11:22:49]Write to MH i2c: E2 08 00 82 79 80 0D 01 02 00 00 00 00 74 [11:22:49]Write i2c OK [11:22:49]MH_I2C_Read... [11:22:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:22:49]Read from MH i2c: E2 [11:22:49]MH_I2C_Read... [11:22:49]Read from MH i2c: E2 03 00 [11:22:49]MH_I2C_Read... [11:22:49]Read from MH i2c: E2 03 00 82 79 00 90 00 6F [11:22:49]RAPDU: 90 00 [11:22:49]wFMCommunicate OK [11:22:49]wFMCommunicate request_size=255 [11:22:49]MH_SAM_APDU [11:22:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 53 00 00 00 F4 03 04 00 11 E8 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 70 [11:22:49]Write to MH i2c: E2 02 01 83 79 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 53 00 00 00 F4 03 04 00 11 E8 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 70 00 00 43 [11:22:49]Write i2c OK [11:22:49]MH_I2C_Read... [11:22:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:22:49]Read from MH i2c: E2 [11:22:49]MH_I2C_Read... [11:22:49]Read from MH i2c: E2 03 00 [11:22:49]MH_I2C_Read... [11:22:49]Read from MH i2c: E2 03 00 83 79 00 90 00 70 [11:22:49]RAPDU: 90 00 [11:22:49]wFMCommunicate OK [11:22:49]wFMCommunicate request_size=10 [11:22:49]MH_SAM_APDU [11:22:49]CAPDU: 80 0D 02 02 05 97 A9 32 6E 05 [11:22:49]Write to MH i2c: E2 0D 00 84 79 80 0D 02 02 05 00 97 A9 32 6E 05 00 00 66 [11:22:49]Write i2c OK [11:22:49]MH_I2C_Read... [11:22:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:22:49]Read from MH i2c: E2 [11:22:49]MH_I2C_Read... [11:22:49]Read from MH i2c: E2 03 00 [11:22:49]MH_I2C_Read... [11:22:49]Read from MH i2c: E2 03 00 84 79 00 90 00 71 [11:22:49]RAPDU: 90 00 [11:22:49]wFMCommunicate OK [11:22:49]wFMCommunicate request_size=4 [11:22:50]MH_SAM_APDU [11:22:50]CAPDU: 80 0D 03 02 [11:22:50]Write to MH i2c: E2 08 00 85 79 80 0D 03 02 00 00 00 00 79 [11:22:50]Write i2c OK [11:22:50]MH_I2C_Read... [11:22:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:22:50]Read from MH i2c: E2 [11:22:50]MH_I2C_Read... [11:22:50]Read from MH i2c: E2 0B 00 [11:22:50]MH_I2C_Read... [11:22:50]Read from MH i2c: E2 0B 00 85 79 00 D2 A7 FD 2E 1B BE F3 A4 90 00 8E [11:22:50]RAPDU: D2 A7 FD 2E 1B BE F3 A4 90 00 [11:22:50]wFMCommunicate OK [11:22:50]SAM_PROTO_SignData done [11:22:50]FM_MakeSignedData done [11:22:50]CreateOFDProtocolMessage [11:22:50]wFMCommunicate request_size=4 [11:22:50]MH_SAM_APDU [11:22:50]CAPDU: 80 11 00 00 [11:22:50]Write to MH i2c: E2 08 00 86 79 80 11 00 00 00 00 00 00 79 [11:22:50]Write i2c OK [11:22:50]MH_I2C_Read... [11:22:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:22:50]Read from MH i2c: E2 [11:22:50]MH_I2C_Read... [11:22:50]Read from MH i2c: E2 17 00 [11:22:50]MH_I2C_Read... [11:22:50]Read from MH i2c: E2 17 00 86 79 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 C7 [11:22:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [11:22:50]wFMCommunicate OK [11:22:50]CreateOFDProtocolMessage done [11:22:50]OFDSenderStorePacket 30301 [11:22:50]StoreOFDPacket docnum=30301 [11:22: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 34 FE 07 01 59 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 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 53 00 00 00 F4 03 04 00 11 E8 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 70 97 A9 32 6E 05 D2 A7 FD 2E 1B BE F3 A4 [11:22:50]CheckFolder [11:22:50]dirname=/storage/ofd_packets [11:22:50]CheckFolder done [11:22:50]ProducePacketName [11:22:50]name=ofd_packets/00030301 [11:22:50]NVStorageSaveData ofd_packets/00030301 [11:22:50]File name is /storage/ofd_packets/00030301 [11:22:50]Write 301 bytes [11:22:50]NVStorageSaveData done [11:22:50]OFDSenderStorePacket done [11:22:50]KKMCreateOFDPacket done [11:22:50]NVStorageSaveData kkm_last_timestamp [11:22:50]File name is /storage/kkm_last_timestamp [11:22:50]Write 4 bytes [11:22:50]NVStorageSaveData done [11:22:50]ExternCall_PrintAddStr [11:22:50]wPrintStart [11:22:50]Write to MH i2c: 01 00 00 87 79 00 [11:22:50]Write i2c OK [11:22:50]MH_I2C_Read... [11:22:50]Read from MH i2c: 01 [11:22:50]MH_I2C_Read... [11:22:50]Read from MH i2c: 01 07 00 [11:22:50]MH_I2C_Read... [11:22:50]Read from MH i2c: 01 07 00 87 79 00 00 00 00 00 FF 0F 15 [11:22:50]RasterBufferAndPrint [11:22:50]line Счет N : (1)342693 [11:22:50]line ИНН: 02508201610067 [11:22:50]line Контрольно-Кассовый Чек [11:22:50]line ПРОДАЖА [11:22:50]line ТРК (МРК, ГНК) : 63 [11:22:50]line Товар: 2710124130 [11:22:50]line Аи-92-К-2 [11:22:50]line 2.990 * 66.90 [11:22:50]line = 200.03 [11:22:50]line НДС 12% НСП 1% [11:22:50]line > о реализуемом товаре [11:22:50]line ОКРУГЛЕНИЕ: -0.03 [11:22:50]line ИТОГО: 200.00 [11:22:50]line Внесено: 200.00 [11:22:50]line СДАЧА: 0.00 [11:22:50]line НСП 1% : 1.77 [11:22:50]line НДС 12% : 21.24 [11:22:50]line Наличными: 200.00 [11:22:50]line Безнал.: 0.00 [11:22:50]line Место: АЗС № 78 "Партнер Нефть" [11:22:50]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [11:22:50]line СНО: Общий режим [11:22:50]line Чек 83 20.10.2024 11:22 [11:22:50]line Смена: 114 ФФД: 1.0 [11:22:50]line ЗНМ: 0300000137 [11:22:50]line РНМ: 0000000000186857 [11:22:50]line Версия ККМ: v1.0 [11:22:50]line ФМ: 0000000002094219 [11:22:50]line ФД: 30301 [11:22:50]line ФПД: 123796681027077 [11:22:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T112257&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30301&fm=123796681027077&tin=02508201610067®Number=0000000000186857&sum=20000 [11:22:50]OFD Sender: Processing packet 30301 [packets to send 10, broken 9] [11:22:50]ProducePacketName [11:22:50]name=ofd_packets/00030301 [11:22:50]OFD Sender: To server: pG, [11:22:50]CommunicateWithHost lk.salyk.kg:30040 [11:22:50]ConnectInit lk.salyk.kg [11:22:50]written 0, free lines is 4095 [11:22:50]Connected sock=10 [11:22: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 34 FE 07 01 59 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 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 53 00 00 00 F4 03 04 00 11 E8 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 70 97 A9 32 6E 05 D2 A7 FD 2E 1B BE F3 A4 [11:22: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 5A 53 47 00 C8 B9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 5D 76 00 00 F4 03 04 00 95 92 14 67 B6 04 01 00 00 75 C2 F9 76 29 ED C9 9A [11:22:50]CommunicateWithHost err = 0 [11:22:50]CheckOFDResponse [11:22:50]1017 (14) - 77093643461234 [11:22:50]1041 (16) - 0000000002094219 [11:22:50]1040 (4) - 30301 [11:22:50]1012 (4) - 20.10.2024 05:18 [11:22:50]1206 (1) - 0 [11:22:50]OFD Sender: Remove packet 30301 [11:22:50]ProducePacketName [11:22:50]name=ofd_packets/00030301 [11:22:50]NVStorageDeleteData [11:22:50]Write to MH i2c: 01 00 00 B2 79 2B [11:22:50]Write i2c OK [11:22:50]MH_I2C_Read... [11:22:50]Read from MH i2c: 01 [11:22:50]MH_I2C_Read... [11:22:50]Read from MH i2c: 01 07 00 [11:22:50]MH_I2C_Read... [11:22:50]Read from MH i2c: 01 07 00 B2 79 00 00 00 00 00 EE 0C 2C [11:22:50]RasterBufferAndPrint [11:22:50]line [11:22:50]line [11:22:50]line [11:22:50]line [11:22:50]line [11:22:50]written 0, free lines is 3316 [11:22:50]MH_Cut [11:22:50]Write to MH i2c: D1 01 00 B9 79 01 04 [11:22:50]Write i2c OK [11:22:50]MH_I2C_Read... [11:22:50]Read from MH i2c: D1 [11:22:50]MH_I2C_Read... [11:22:50]Read from MH i2c: D1 01 00 [11:22:50]MH_I2C_Read... [11:22:50]Read from MH i2c: D1 01 00 B9 79 00 03 [11:22:50]Write to MH i2c: 01 00 00 BA 79 33 [11:22:50]Write i2c OK [11:22:50]MH_I2C_Read... [11:22:51]OFD Sender: No OFD packet to send [11:22:51]*** Cut start [11:22:51]*** Partial cut [11:22:51]*** CUTSNS_PIN = 1 [11:22:51]*** CUTSNS_PIN = 0 [11:22:51]*** Brake cut motor [11:22:52]Read from MH i2c: 01 [11:22:52]MH_I2C_Read... [11:22:52]*** Stop cut motor [11:22:52]*** Cut end [11:22:52]Read from MH i2c: 01 07 00 [11:22:52]MH_I2C_Read... [11:22:52]Read from MH i2c: 01 07 00 BA 79 00 00 00 00 00 FF 0F 48 [11:22:52]process_action close_receipt done [11:22:52]requested_data is exist [11:22:52]produce_requested_data [11:22:52]requested_item fm.sn is exist - process it [11:22:52]wFMCommunicate request_size=4 [11:22:52]MH_SAM_APDU [11:22:52]CAPDU: 80 11 00 00 [11:22:52]Write to MH i2c: E2 08 00 BB 79 80 11 00 00 00 00 00 00 AE [11:22:52]Write i2c OK [11:22:52]MH_I2C_Read... [11:22:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:22:52]Read from MH i2c: E2 [11:22:52]MH_I2C_Read... [11:22:52]Read from MH i2c: E2 17 00 [11:22:52]MH_I2C_Read... [11:22:52]Read from MH i2c: E2 17 00 BB 79 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 FC [11:22: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:22:52]wFMCommunicate OK [11:22:52]requested_item fd.num is exist - process it [11:22:52]SAM_PROTO_GetFieldsCounters [11:22:52]wFMCommunicate request_size=4 [11:22:52]MH_SAM_APDU [11:22:52]CAPDU: 80 13 00 00 [11:22:52]Write to MH i2c: E2 08 00 BC 79 80 13 00 00 00 00 00 00 B1 [11:22:52]Write i2c OK [11:22:52]MH_I2C_Read... [11:22:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:22:52]Read from MH i2c: E2 [11:22:52]MH_I2C_Read... [11:22:52]Read from MH i2c: E2 62 00 [11:22:52]MH_I2C_Read... [11:22:52]Read from MH i2c: E2 62 00 BC 79 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 15 [11:22: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 5D 76 00 00 0E 04 04 00 72 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:22:52]wFMCommunicate OK [11:22:52]SAM_PROTO_GetFieldsCounters done [11:22:52]requested_item shift.num is exist - process it [11:22:52]requested_item shift.opened is exist - process it [11:22:52]req_shift_opened [11:22:52]FM_GetShiftState [11:22:52]SAM_PROTO_GetShiftState [11:22:52]wFMCommunicate request_size=4 [11:22:52]MH_SAM_APDU [11:22:52]CAPDU: 80 13 01 00 [11:22:52]Write to MH i2c: E2 08 00 BD 79 80 13 01 00 00 00 00 00 B3 [11:22:52]Write i2c OK [11:22:52]MH_I2C_Read... [11:22:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:22:52]Read from MH i2c: E2 [11:22:52]MH_I2C_Read... [11:22:52]Read from MH i2c: E2 0E 00 [11:22:52]MH_I2C_Read... [11:22:52]Read from MH i2c: E2 0E 00 BD 79 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 99 [11:22:52]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [11:22:52]wFMCommunicate OK [11:22:52]SAM_PROTO_GetShiftState done [11:22:52]FM_GetShiftState done [11:22:52]req_shift_opened done [11:22:52]requested_item shift.open_date is exist - process it [11:22:52]req_shift_open_date [11:22:52]req_shift_open_date done [11:22:52]produce_requested_data done [11:22:52]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30301,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [11:22:52]process_action_free close_receipt [11:22:52]json_value_free [11:22:52]json_value_free done [11:22:52]process_json_proto returns [11:22:52]Send response to host [11:22:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30301,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [11:22:52]free response buf [11:22:52]execute_script done [11:22:52]execute_script returns [11:22:52]free content buf [11:22:52]Sock 9.Close socket [11:22:52]Sock 9.Thread stoped [11:22:56]OFD Sender: No OFD packet to send [11:23:01]OFD Sender: No OFD packet to send [11:23:06]OFD Sender: No OFD packet to send [11:23:11]OFD Sender: No OFD packet to send [11:23:16]OFD Sender: No OFD packet to send [11:23:21]OFD Sender: No OFD packet to send [11:23:26]OFD Sender: No OFD packet to send [11:23:31]OFD Sender: No OFD packet to send [11:23:36]OFD Sender: No OFD packet to send [11:23:41]OFD Sender: No OFD packet to send [11:23:46]OFD Sender: No OFD packet to send [11:23:51]OFD Sender: No OFD packet to send [11:23:56]OFD Sender: No OFD packet to send [11:24:01]OFD Sender: No OFD packet to send [11:24:06]OFD Sender: No OFD packet to send [11:24:11]OFD Sender: No OFD packet to send [11:24:16]OFD Sender: No OFD packet to send [11:24:21]OFD Sender: No OFD packet to send [11:24:26]OFD Sender: No OFD packet to send [11:24:31]OFD Sender: No OFD packet to send [11:24:36]OFD Sender: No OFD packet to send [11:24:41]OFD Sender: No OFD packet to send [11:24:46]OFD Sender: No OFD packet to send [11:24:51]OFD Sender: No OFD packet to send [11:24:56]OFD Sender: No OFD packet to send [11:25:01]OFD Sender: No OFD packet to send [11:25:06]OFD Sender: No OFD packet to send [11:25:11]OFD Sender: No OFD packet to send [11:25:16]OFD Sender: No OFD packet to send [11:25:21]OFD Sender: No OFD packet to send [11:25:26]OFD Sender: No OFD packet to send [11:25:31]OFD Sender: No OFD packet to send [11:25:36]OFD Sender: No OFD packet to send [11:25:41]OFD Sender: No OFD packet to send [11:25:46]OFD Sender: No OFD packet to send [11:25:51]OFD Sender: No OFD packet to send [11:25:56]OFD Sender: No OFD packet to send [11:26:01]OFD Sender: No OFD packet to send [11:26:06]OFD Sender: No OFD packet to send [11:26:11]OFD Sender: No OFD packet to send [11:26:16]OFD Sender: No OFD packet to send [11:26:21]OFD Sender: No OFD packet to send [11:26:26]OFD Sender: No OFD packet to send [11:26:31]OFD Sender: No OFD packet to send [11:26:36]OFD Sender: No OFD packet to send [11:26:41]OFD Sender: No OFD packet to send [11:26:46]OFD Sender: No OFD packet to send [11:26:51]OFD Sender: No OFD packet to send [11:26:56]OFD Sender: No OFD packet to send [11:27:01]OFD Sender: No OFD packet to send [11:27:06]OFD Sender: No OFD packet to send [11:27:11]OFD Sender: No OFD packet to send [11:27:16]OFD Sender: No OFD packet to send [11:27:21]OFD Sender: No OFD packet to send [11:27:26]OFD Sender: No OFD packet to send [11:27:31]OFD Sender: No OFD packet to send [11:27:36]OFD Sender: No OFD packet to send [11:27:41]OFD Sender: No OFD packet to send [11:27:46]OFD Sender: No OFD packet to send [11:27:51]OFD Sender: No OFD packet to send [11:27:56]OFD Sender: No OFD packet to send [11:28:01]OFD Sender: No OFD packet to send [11:28:06]OFD Sender: No OFD packet to send [11:28:11]OFD Sender: No OFD packet to send [11:28:16]OFD Sender: No OFD packet to send [11:28:21]OFD Sender: No OFD packet to send [11:28:26]OFD Sender: No OFD packet to send [11:28:31]OFD Sender: No OFD packet to send [11:28:36]OFD Sender: No OFD packet to send [11:28:41]OFD Sender: No OFD packet to send [11:28:46]OFD Sender: No OFD packet to send [11:28:51]OFD Sender: No OFD packet to send [11:28:56]OFD Sender: No OFD packet to send [11:29:01]OFD Sender: No OFD packet to send [11:29:06]OFD Sender: No OFD packet to send [11:29:11]OFD Sender: No OFD packet to send [11:29:16]OFD Sender: No OFD packet to send [11:29:21]OFD Sender: No OFD packet to send [11:29:26]OFD Sender: No OFD packet to send [11:29:31]OFD Sender: No OFD packet to send [11:29:36]OFD Sender: No OFD packet to send [11:29:41]OFD Sender: No OFD packet to send [11:29:46]OFD Sender: No OFD packet to send [11:29:51]OFD Sender: No OFD packet to send [11:29:56]OFD Sender: No OFD packet to send [11:30:01]OFD Sender: No OFD packet to send [11:30:06]OFD Sender: No OFD packet to send [11:30:11]OFD Sender: No OFD packet to send [11:30:16]OFD Sender: No OFD packet to send [11:30:21]OFD Sender: No OFD packet to send [11:30:26]OFD Sender: No OFD packet to send [11:30:31]OFD Sender: No OFD packet to send [11:30:36]OFD Sender: No OFD packet to send [11:30:41]OFD Sender: No OFD packet to send [11:30:46]OFD Sender: No OFD packet to send [11:30:51]OFD Sender: No OFD packet to send [11:30:56]OFD Sender: No OFD packet to send [11:31:01]OFD Sender: No OFD packet to send [11:31:06]OFD Sender: No OFD packet to send [11:31:11]OFD Sender: No OFD packet to send [11:31:16]OFD Sender: No OFD packet to send [11:31:21]OFD Sender: No OFD packet to send [11:31:26]OFD Sender: No OFD packet to send [11:31:31]OFD Sender: No OFD packet to send [11:31:32]accept exits with 7 [11:31:32]New connection [11:31:32]New thread 3067514212 created [11:31:32]Thread 3067370852 joined [11:31:32]Waiting for new connection... [11:31:32] Sock 7.Parse request [11:31:32]Sock 7.Check first char [11:31:32]Sock 7.First char is OK [11:31:32]request: POST /json_proto HTTP/1.0 [11:31:32]Method: POST [11:31:32]URL: /json_proto [11:31:32]Method is POST - this is cgi request [11:31:32]url: /json_proto [11:31:32]query_string will be loaded in cgi processing [11:31:32]execute_cgi json_proto POST (null) [11:31:32]execute_cgi path=json_proto method=POST [11:31:32]POST find Content-Length [11:31:32]Host: 172.17.51.3:8080 [11:31:32]Content-Length: 677 [11:31:32]Content-Type: application/json [11:31:32] [11:31:32]POST finish read [11:31:32]Found Content-Length = 677 [11:31:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342694", "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:31:32]execute_script... [11:31: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)342694", "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:31:32]POST & json_proto [11:31:32]process_json_proto [11:31:32]json parsed OK: [11:31:32]protocol is kg_v1.0 [11:31:32]action value=close_receipt [11:31:32]process_action close_receipt [11:31:32]cmd_close_receipt [11:31:32]MH_GetDate [11:31:32]Write to MH i2c: F0 00 00 BE 79 26 [11:31:32]Write i2c OK [11:31:32]MH_I2C_Read... [11:31:32]Read from MH i2c: F0 [11:31:32]MH_I2C_Read... [11:31:32]Read from MH i2c: F0 09 00 [11:31:32]MH_I2C_Read... [11:31:32]Read from MH i2c: F0 09 00 BE 79 00 1D EA 14 67 04 C1 95 66 71 [11:31:32]GetLastDocTimeStamp 1729423377 [11:31:32]current date 1729423901 [11:31:32]FM_GetShiftState [11:31:32]SAM_PROTO_GetShiftState [11:31:32]wFMCommunicate request_size=4 [11:31:32]MH_SAM_APDU [11:31:32]CAPDU: 80 13 01 00 [11:31:32]Write to MH i2c: E2 08 00 BF 79 80 13 01 00 00 00 00 00 B5 [11:31:32]Write i2c OK [11:31:32]MH_I2C_Read... [11:31:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:31:32]Read from MH i2c: E2 [11:31:32]MH_I2C_Read... [11:31:32]Read from MH i2c: E2 0E 00 [11:31:32]MH_I2C_Read... [11:31:32]Read from MH i2c: E2 0E 00 BF 79 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 9B [11:31:32]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [11:31:32]wFMCommunicate OK [11:31:32]SAM_PROTO_GetShiftState done [11:31:32]FM_GetShiftState done [11:31:32]opened in 1729384718 [11:31:32]opened+sec_in_day 1729471118 [11:31:32]quantity*price = 20003 [11:31:32]sum+1 = 20004 [11:31:32]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 СНО: Общий режим Чек 84 20.10.2024 11:31 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30302 ФПД: 2683904360989 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T113141&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30302&fm=2683904360989&tin=02508201610067®Number=0000000000186857&sum=20000 [11:31:33]StoreToDocumentArchive [11:31:33]shift 114 fd 30302 [11:31:33]save to /storage/0114/doc_00030302 [11:31:33]save last doc name /storage/0114/doc_00030302 to /storage/kkm_last_doc_name [11:31:33]save OK [11:31:33]Clear old archive folders... [11:31:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:31:33]tlvbuf is 00AE57C0 [11:31:33]SAM_PROTO_ClearQueue [11:31:33]wFMCommunicate request_size=4 [11:31:33]MH_SAM_APDU [11:31:33]CAPDU: 80 09 00 00 [11:31:33]Write to MH i2c: E2 08 00 CC 79 80 09 00 00 00 00 00 00 B7 [11:31:33]Write i2c OK [11:31:33]MH_I2C_Read... [11:31:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:31:33]Read from MH i2c: E2 [11:31:33]MH_I2C_Read... [11:31:33]Read from MH i2c: E2 03 00 [11:31:33]MH_I2C_Read... [11:31:33]Read from MH i2c: E2 03 00 CC 79 00 90 00 B9 [11:31:33]RAPDU: 90 00 [11:31:33]wFMCommunicate OK [11:31:33]SAM_PROTO_ClearQueue done [11:31:33]KKMCreateOFDPacket [11:31:33]OFDProtocolAddRootSTLVToBuf [11:31:33]FM_MakeSignedData [11:31:33]FM_MakeSignedData [11:31:33]SAM_PROTO_SignData [11:31:33]wFMCommunicate request_size=4 [11:31:33]MH_SAM_APDU [11:31:33]CAPDU: 80 0D 01 02 [11:31:33]Write to MH i2c: E2 08 00 CD 79 80 0D 01 02 00 00 00 00 BF [11:31:33]Write i2c OK [11:31:33]MH_I2C_Read... [11:31:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:31:33]Read from MH i2c: E2 [11:31:33]MH_I2C_Read... [11:31:33]Read from MH i2c: E2 03 00 [11:31:33]MH_I2C_Read... [11:31:33]Read from MH i2c: E2 03 00 CD 79 00 90 00 BA [11:31:33]RAPDU: 90 00 [11:31:33]wFMCommunicate OK [11:31:33]wFMCommunicate request_size=255 [11:31:33]MH_SAM_APDU [11:31: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 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 54 00 00 00 F4 03 04 00 1D EA 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 02 [11:31:34]Write to MH i2c: E2 02 01 CE 79 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 54 00 00 00 F4 03 04 00 1D EA 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 02 00 00 30 [11:31:34]Write i2c OK [11:31:34]MH_I2C_Read... [11:31:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:31:34]Read from MH i2c: E2 [11:31:34]MH_I2C_Read... [11:31:34]Read from MH i2c: E2 03 00 [11:31:34]MH_I2C_Read... [11:31:34]Read from MH i2c: E2 03 00 CE 79 00 90 00 BB [11:31:34]RAPDU: 90 00 [11:31:34]wFMCommunicate OK [11:31:34]wFMCommunicate request_size=10 [11:31:34]MH_SAM_APDU [11:31:34]CAPDU: 80 0D 02 02 05 70 E5 2A 82 1D [11:31:34]Write to MH i2c: E2 0D 00 CF 79 80 0D 02 02 05 00 70 E5 2A 82 1D 00 00 EA [11:31:34]Write i2c OK [11:31:34]MH_I2C_Read... [11:31:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:31:34]Read from MH i2c: E2 [11:31:34]MH_I2C_Read... [11:31:34]Read from MH i2c: E2 03 00 [11:31:34]MH_I2C_Read... [11:31:34]Read from MH i2c: E2 03 00 CF 79 00 90 00 BC [11:31:34]RAPDU: 90 00 [11:31:34]wFMCommunicate OK [11:31:34]wFMCommunicate request_size=4 [11:31:34]MH_SAM_APDU [11:31:34]CAPDU: 80 0D 03 02 [11:31:34]Write to MH i2c: E2 08 00 D0 79 80 0D 03 02 00 00 00 00 C4 [11:31:34]Write i2c OK [11:31:34]MH_I2C_Read... [11:31:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:31:34]Read from MH i2c: E2 [11:31:34]MH_I2C_Read... [11:31:34]Read from MH i2c: E2 0B 00 [11:31:34]MH_I2C_Read... [11:31:34]Read from MH i2c: E2 0B 00 D0 79 00 71 62 88 17 0B D3 F0 A1 90 00 A6 [11:31:34]RAPDU: 71 62 88 17 0B D3 F0 A1 90 00 [11:31:34]wFMCommunicate OK [11:31:34]SAM_PROTO_SignData done [11:31:34]FM_MakeSignedData done [11:31:34]CreateOFDProtocolMessage [11:31:34]wFMCommunicate request_size=4 [11:31:34]MH_SAM_APDU [11:31:34]CAPDU: 80 11 00 00 [11:31:34]Write to MH i2c: E2 08 00 D1 79 80 11 00 00 00 00 00 00 C4 [11:31:34]Write i2c OK [11:31:34]MH_I2C_Read... [11:31:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:31:34]Read from MH i2c: E2 [11:31:34]MH_I2C_Read... [11:31:34]Read from MH i2c: E2 17 00 [11:31:34]MH_I2C_Read... [11:31:34]Read from MH i2c: E2 17 00 D1 79 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 12 [11:31:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [11:31:34]wFMCommunicate OK [11:31:34]CreateOFDProtocolMessage done [11:31:34]OFDSenderStorePacket 30302 [11:31:34]StoreOFDPacket docnum=30302 [11:31: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 0B 8A 07 01 29 F7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 54 00 00 00 F4 03 04 00 1D EA 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 02 70 E5 2A 82 1D 71 62 88 17 0B D3 F0 A1 [11:31:34]CheckFolder [11:31:34]dirname=/storage/ofd_packets [11:31:34]CheckFolder done [11:31:34]ProducePacketName [11:31:34]name=ofd_packets/00030302 [11:31:34]NVStorageSaveData ofd_packets/00030302 [11:31:34]File name is /storage/ofd_packets/00030302 [11:31:34]Write 301 bytes [11:31:34]NVStorageSaveData done [11:31:34]OFDSenderStorePacket done [11:31:34]KKMCreateOFDPacket done [11:31:34]NVStorageSaveData kkm_last_timestamp [11:31:34]File name is /storage/kkm_last_timestamp [11:31:34]Write 4 bytes [11:31:34]NVStorageSaveData done [11:31:34]ExternCall_PrintAddStr [11:31:34]wPrintStart [11:31:34]Write to MH i2c: 01 00 00 D2 79 4B [11:31:34]Write i2c OK [11:31:34]MH_I2C_Read... [11:31:34]Read from MH i2c: 01 [11:31:34]MH_I2C_Read... [11:31:34]Read from MH i2c: 01 07 00 [11:31:34]MH_I2C_Read... [11:31:34]Read from MH i2c: 01 07 00 D2 79 00 00 00 00 00 FF 0F 60 [11:31:34]RasterBufferAndPrint [11:31:34]line Счет N : (1)342694 [11:31:34]line ИНН: 02508201610067 [11:31:34]line Контрольно-Кассовый Чек [11:31:34]line ПРОДАЖА [11:31:34]line ТРК (МРК, ГНК) : 63 [11:31:34]line Товар: 2710124130 [11:31:34]line Аи-92-К-2 [11:31:34]line 2.990 * 66.90 [11:31:34]line = 200.03 [11:31:34]line НДС 12% НСП 1% [11:31:34]line > о реализуемом товаре [11:31:34]line ОКРУГЛЕНИЕ: -0.03 [11:31:34]line ИТОГО: 200.00 [11:31:34]line Внесено: 200.00 [11:31:34]line СДАЧА: 0.00 [11:31:34]line НСП 1% : 1.77 [11:31:34]line НДС 12% : 21.24 [11:31:34]line Наличными: 200.00 [11:31:34]line Безнал.: 0.00 [11:31:34]line Место: АЗС № 78 "Партнер Нефть" [11:31:34]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [11:31:34]line СНО: Общий режим [11:31:34]line Чек 84 20.10.2024 11:31 [11:31:34]line Смена: 114 ФФД: 1.0 [11:31:34]line ЗНМ: 0300000137 [11:31:34]line РНМ: 0000000000186857 [11:31:34]line Версия ККМ: v1.0 [11:31:34]line ФМ: 0000000002094219 [11:31:34]line ФД: 30302 [11:31:34]line ФПД: 2683904360989 [11:31:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T113141&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30302&fm=2683904360989&tin=02508201610067®Number=0000000000186857&sum=20000 [11:31:34]OFD Sender: Processing packet 30302 [packets to send 10, broken 9] [11:31:34]ProducePacketName [11:31:34]name=ofd_packets/00030302 [11:31:34]OFD Sender: To server: pG, [11:31:34]CommunicateWithHost lk.salyk.kg:30040 [11:31:34]ConnectInit lk.salyk.kg [11:31:34]written 0, free lines is 4095 [11:31:34]Connected sock=10 [11:31: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 0B 8A 07 01 29 F7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 54 00 00 00 F4 03 04 00 1D EA 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 02 70 E5 2A 82 1D 71 62 88 17 0B D3 F0 A1 [11:31: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 92 5D 47 00 32 10 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 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 76 00 00 F4 03 04 00 A1 94 14 67 B6 04 01 00 00 85 11 F5 A4 00 06 0A F7 [11:31:35]CommunicateWithHost err = 0 [11:31:35]CheckOFDResponse [11:31:35]1017 (14) - 77093643461234 [11:31:35]1041 (16) - 0000000002094219 [11:31:35]1040 (4) - 30302 [11:31:35]1012 (4) - 20.10.2024 05:26 [11:31:35]1206 (1) - 0 [11:31:35]OFD Sender: Remove packet 30302 [11:31:35]ProducePacketName [11:31:35]name=ofd_packets/00030302 [11:31:35]NVStorageDeleteData [11:31:35]Write to MH i2c: 01 00 00 FD 79 76 [11:31:35]Write i2c OK [11:31:35]MH_I2C_Read... [11:31:35]Read from MH i2c: 01 [11:31:35]MH_I2C_Read... [11:31:35]Read from MH i2c: 01 07 00 [11:31:35]MH_I2C_Read... [11:31:35]Read from MH i2c: 01 07 00 FD 79 00 00 00 00 00 E4 0C 6D [11:31:35]RasterBufferAndPrint [11:31:35]line [11:31:35]line [11:31:35]line [11:31:35]line [11:31:35]line [11:31:35]written 0, free lines is 3306 [11:31:35]MH_Cut [11:31:35]Write to MH i2c: D1 01 00 04 7A 01 50 [11:31:35]Write i2c OK [11:31:35]MH_I2C_Read... [11:31:35]Read from MH i2c: D1 [11:31:35]MH_I2C_Read... [11:31:35]Read from MH i2c: D1 01 00 [11:31:35]MH_I2C_Read... [11:31:35]Read from MH i2c: D1 01 00 04 7A 00 4F [11:31:35]Write to MH i2c: 01 00 00 05 7A 7F [11:31:35]Write i2c OK [11:31:35]MH_I2C_Read... [11:31:35]OFD Sender: No OFD packet to send [11:31:35]*** Cut start [11:31:35]*** Partial cut [11:31:35]*** CUTSNS_PIN = 1 [11:31:35]*** CUTSNS_PIN = 0 [11:31:36]*** Brake cut motor [11:31:36]Read from MH i2c: 01 [11:31:36]MH_I2C_Read... [11:31:36]*** Stop cut motor [11:31:36]*** Cut end [11:31:36]Read from MH i2c: 01 07 00 [11:31:36]MH_I2C_Read... [11:31:36]Read from MH i2c: 01 07 00 05 7A 00 00 00 00 00 FF 0F 94 [11:31:36]process_action close_receipt done [11:31:36]requested_data is exist [11:31:36]produce_requested_data [11:31:36]requested_item fm.sn is exist - process it [11:31:36]wFMCommunicate request_size=4 [11:31:36]MH_SAM_APDU [11:31:36]CAPDU: 80 11 00 00 [11:31:36]Write to MH i2c: E2 08 00 06 7A 80 11 00 00 00 00 00 00 FA [11:31:36]Write i2c OK [11:31:36]MH_I2C_Read... [11:31:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:31:36]Read from MH i2c: E2 [11:31:36]MH_I2C_Read... [11:31:36]Read from MH i2c: E2 17 00 [11:31:36]MH_I2C_Read... [11:31:36]Read from MH i2c: E2 17 00 06 7A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 48 [11:31: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:31:36]wFMCommunicate OK [11:31:36]requested_item fd.num is exist - process it [11:31:36]SAM_PROTO_GetFieldsCounters [11:31:36]wFMCommunicate request_size=4 [11:31:36]MH_SAM_APDU [11:31:36]CAPDU: 80 13 00 00 [11:31:36]Write to MH i2c: E2 08 00 07 7A 80 13 00 00 00 00 00 00 FD [11:31:36]Write i2c OK [11:31:36]MH_I2C_Read... [11:31:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:31:36]Read from MH i2c: E2 [11:31:36]MH_I2C_Read... [11:31:36]Read from MH i2c: E2 62 00 [11:31:36]MH_I2C_Read... [11:31:36]Read from MH i2c: E2 62 00 07 7A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 65 [11:31: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 5E 76 00 00 0E 04 04 00 72 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:31:36]wFMCommunicate OK [11:31:36]SAM_PROTO_GetFieldsCounters done [11:31:36]requested_item shift.num is exist - process it [11:31:36]requested_item shift.opened is exist - process it [11:31:36]req_shift_opened [11:31:36]FM_GetShiftState [11:31:36]SAM_PROTO_GetShiftState [11:31:36]wFMCommunicate request_size=4 [11:31:36]MH_SAM_APDU [11:31:36]CAPDU: 80 13 01 00 [11:31:36]Write to MH i2c: E2 08 00 08 7A 80 13 01 00 00 00 00 00 FF [11:31:36]Write i2c OK [11:31:36]MH_I2C_Read... [11:31:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:31:36]Read from MH i2c: E2 [11:31:36]MH_I2C_Read... [11:31:36]Read from MH i2c: E2 0E 00 [11:31:36]MH_I2C_Read... [11:31:36]Read from MH i2c: E2 0E 00 08 7A 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 E5 [11:31:36]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [11:31:36]wFMCommunicate OK [11:31:36]SAM_PROTO_GetShiftState done [11:31:36]FM_GetShiftState done [11:31:36]req_shift_opened done [11:31:36]requested_item shift.open_date is exist - process it [11:31:36]req_shift_open_date [11:31:36]req_shift_open_date done [11:31:36]produce_requested_data done [11:31:36]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30302,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [11:31:36]process_action_free close_receipt [11:31:36]json_value_free [11:31:36]json_value_free done [11:31:36]process_json_proto returns [11:31:36]Send response to host [11:31:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30302,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [11:31:36]free response buf [11:31:36]execute_script done [11:31:36]execute_script returns [11:31:36]free content buf [11:31:36]Sock 7.Close socket [11:31:36]Sock 7.Thread stoped [11:31:40]OFD Sender: No OFD packet to send [11:31:45]OFD Sender: No OFD packet to send [11:31:50]OFD Sender: No OFD packet to send [11:31:55]OFD Sender: No OFD packet to send [11:32:00]OFD Sender: No OFD packet to send [11:32:05]OFD Sender: No OFD packet to send [11:32:10]OFD Sender: No OFD packet to send [11:32:15]OFD Sender: No OFD packet to send [11:32:20]OFD Sender: No OFD packet to send [11:32:25]OFD Sender: No OFD packet to send [11:32:30]OFD Sender: No OFD packet to send [11:32:35]OFD Sender: No OFD packet to send [11:32:40]OFD Sender: No OFD packet to send [11:32:45]OFD Sender: No OFD packet to send [11:32:50]OFD Sender: No OFD packet to send [11:32:55]OFD Sender: No OFD packet to send [11:33:00]OFD Sender: No OFD packet to send [11:33:05]OFD Sender: No OFD packet to send [11:33:10]OFD Sender: No OFD packet to send [11:33:15]OFD Sender: No OFD packet to send [11:33:20]OFD Sender: No OFD packet to send [11:33:25]OFD Sender: No OFD packet to send [11:33:30]OFD Sender: No OFD packet to send [11:33:35]OFD Sender: No OFD packet to send [11:33:40]OFD Sender: No OFD packet to send [11:33:45]OFD Sender: No OFD packet to send [11:33:50]OFD Sender: No OFD packet to send [11:33:55]OFD Sender: No OFD packet to send [11:34:00]OFD Sender: No OFD packet to send [11:34:05]OFD Sender: No OFD packet to send [11:34:10]OFD Sender: No OFD packet to send [11:34:14]accept exits with 9 [11:34:14]New connection [11:34:14]New thread 3067370852 created [11:34:14]Thread 3067514212 joined [11:34:14]Waiting for new connection... [11:34:14] Sock 9.Parse request [11:34:14]Sock 9.Check first char [11:34:14]Sock 9.First char is OK [11:34:14]request: POST /json_proto HTTP/1.0 [11:34:14]Method: POST [11:34:14]URL: /json_proto [11:34:14]Method is POST - this is cgi request [11:34:14]url: /json_proto [11:34:14]query_string will be loaded in cgi processing [11:34:14]execute_cgi json_proto POST (null) [11:34:14]execute_cgi path=json_proto method=POST [11:34:14]POST find Content-Length [11:34:14]Host: 172.17.51.3:8080 [11:34:14]Content-Length: 677 [11:34:14]Content-Type: application/json [11:34:14] [11:34:14]POST finish read [11:34:14]Found Content-Length = 677 [11:34:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342695", "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" ] } } [11:34:14]execute_script... [11:34: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)342695", "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" ] } } [11:34:14]POST & json_proto [11:34:14]process_json_proto [11:34:14]json parsed OK: [11:34:14]protocol is kg_v1.0 [11:34:14]action value=close_receipt [11:34:14]process_action close_receipt [11:34:14]cmd_close_receipt [11:34:14]MH_GetDate [11:34:14]Write to MH i2c: F0 00 00 09 7A 72 [11:34:14]Write i2c OK [11:34:14]MH_I2C_Read... [11:34:14]Read from MH i2c: F0 [11:34:14]MH_I2C_Read... [11:34:14]Read from MH i2c: F0 09 00 [11:34:14]MH_I2C_Read... [11:34:14]Read from MH i2c: F0 09 00 09 7A 00 BF EA 14 67 04 C1 95 66 5F [11:34:14]GetLastDocTimeStamp 1729423901 [11:34:14]current date 1729424063 [11:34:14]FM_GetShiftState [11:34:14]SAM_PROTO_GetShiftState [11:34:14]wFMCommunicate request_size=4 [11:34:14]MH_SAM_APDU [11:34:14]CAPDU: 80 13 01 00 [11:34:14]Write to MH i2c: E2 08 00 0A 7A 80 13 01 00 00 00 00 00 01 [11:34:14]Write i2c OK [11:34:14]MH_I2C_Read... [11:34:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:34:14]Read from MH i2c: E2 [11:34:14]MH_I2C_Read... [11:34:14]Read from MH i2c: E2 0E 00 [11:34:14]MH_I2C_Read... [11:34:14]Read from MH i2c: E2 0E 00 0A 7A 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 E7 [11:34:14]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [11:34:14]wFMCommunicate OK [11:34:14]SAM_PROTO_GetShiftState done [11:34:14]FM_GetShiftState done [11:34:14]opened in 1729384718 [11:34:14]opened+sec_in_day 1729471118 [11:34:14]quantity*price = 50041 [11:34:14]sum+1 = 50042 [11:34: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 СНО: Общий режим Чек 85 20.10.2024 11:34 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30303 ФПД: 171136221291902 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T113423&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30303&fm=171136221291902&tin=02508201610067®Number=0000000000186857&sum=50000 [11:34:16]StoreToDocumentArchive [11:34:16]shift 114 fd 30303 [11:34:16]save to /storage/0114/doc_00030303 [11:34:16]save last doc name /storage/0114/doc_00030303 to /storage/kkm_last_doc_name [11:34:16]save OK [11:34:16]Clear old archive folders... [11:34:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:34:16]tlvbuf is 00D2FE50 [11:34:16]SAM_PROTO_ClearQueue [11:34:16]wFMCommunicate request_size=4 [11:34:16]MH_SAM_APDU [11:34:16]CAPDU: 80 09 00 00 [11:34:16]Write to MH i2c: E2 08 00 17 7A 80 09 00 00 00 00 00 00 03 [11:34:16]Write i2c OK [11:34:16]MH_I2C_Read... [11:34:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:34:16]Read from MH i2c: E2 [11:34:16]MH_I2C_Read... [11:34:16]Read from MH i2c: E2 03 00 [11:34:16]MH_I2C_Read... [11:34:16]Read from MH i2c: E2 03 00 17 7A 00 90 00 05 [11:34:16]RAPDU: 90 00 [11:34:16]wFMCommunicate OK [11:34:16]SAM_PROTO_ClearQueue done [11:34:16]KKMCreateOFDPacket [11:34:16]OFDProtocolAddRootSTLVToBuf [11:34:16]FM_MakeSignedData [11:34:16]FM_MakeSignedData [11:34:16]SAM_PROTO_SignData [11:34:16]wFMCommunicate request_size=4 [11:34:16]MH_SAM_APDU [11:34:16]CAPDU: 80 0D 01 02 [11:34:16]Write to MH i2c: E2 08 00 18 7A 80 0D 01 02 00 00 00 00 0B [11:34:16]Write i2c OK [11:34:16]MH_I2C_Read... [11:34:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:34:16]Read from MH i2c: E2 [11:34:16]MH_I2C_Read... [11:34:16]Read from MH i2c: E2 03 00 [11:34:16]MH_I2C_Read... [11:34:16]Read from MH i2c: E2 03 00 18 7A 00 90 00 06 [11:34:16]RAPDU: 90 00 [11:34:16]wFMCommunicate OK [11:34:16]wFMCommunicate request_size=255 [11:34:16]MH_SAM_APDU [11:34:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 55 00 00 00 F4 03 04 00 BF EA 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 9B [11:34:16]Write to MH i2c: E2 02 01 19 7A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 55 00 00 00 F4 03 04 00 BF EA 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 9B 00 00 F7 [11:34:16]Write i2c OK [11:34:16]MH_I2C_Read... [11:34:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:34:16]Read from MH i2c: E2 [11:34:16]MH_I2C_Read... [11:34:16]Read from MH i2c: E2 03 00 [11:34:16]MH_I2C_Read... [11:34:16]Read from MH i2c: E2 03 00 19 7A 00 90 00 07 [11:34:16]RAPDU: 90 00 [11:34:16]wFMCommunicate OK [11:34:16]wFMCommunicate request_size=10 [11:34:16]MH_SAM_APDU [11:34:16]CAPDU: 80 0D 02 02 05 A5 C1 AD A5 7E [11:34:16]Write to MH i2c: E2 0D 00 1A 7A 80 0D 02 02 05 00 A5 C1 AD A5 7E 00 00 4E [11:34:16]Write i2c OK [11:34:16]MH_I2C_Read... [11:34:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:34:16]Read from MH i2c: E2 [11:34:16]MH_I2C_Read... [11:34:16]Read from MH i2c: E2 03 00 [11:34:16]MH_I2C_Read... [11:34:16]Read from MH i2c: E2 03 00 1A 7A 00 90 00 08 [11:34:16]RAPDU: 90 00 [11:34:16]wFMCommunicate OK [11:34:16]wFMCommunicate request_size=4 [11:34:16]MH_SAM_APDU [11:34:16]CAPDU: 80 0D 03 02 [11:34:16]Write to MH i2c: E2 08 00 1B 7A 80 0D 03 02 00 00 00 00 10 [11:34:16]Write i2c OK [11:34:16]MH_I2C_Read... [11:34:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:34:16]Read from MH i2c: E2 [11:34:16]MH_I2C_Read... [11:34:16]Read from MH i2c: E2 0B 00 [11:34:16]MH_I2C_Read... [11:34:16]Read from MH i2c: E2 0B 00 1B 7A 00 03 3F 90 F2 75 9B FB 58 90 00 38 [11:34:16]RAPDU: 03 3F 90 F2 75 9B FB 58 90 00 [11:34:16]wFMCommunicate OK [11:34:16]SAM_PROTO_SignData done [11:34:16]FM_MakeSignedData done [11:34:16]CreateOFDProtocolMessage [11:34:16]wFMCommunicate request_size=4 [11:34:16]MH_SAM_APDU [11:34:16]CAPDU: 80 11 00 00 [11:34:16]Write to MH i2c: E2 08 00 1C 7A 80 11 00 00 00 00 00 00 10 [11:34:16]Write i2c OK [11:34:16]MH_I2C_Read... [11:34:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:34:16]Read from MH i2c: E2 [11:34:16]MH_I2C_Read... [11:34:16]Read from MH i2c: E2 17 00 [11:34:16]MH_I2C_Read... [11:34:16]Read from MH i2c: E2 17 00 1C 7A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 5E [11:34:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [11:34:16]wFMCommunicate OK [11:34:16]CreateOFDProtocolMessage done [11:34:16]OFDSenderStorePacket 30303 [11:34:16]StoreOFDPacket docnum=30303 [11:34: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 81 30 07 01 6B 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 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 55 00 00 00 F4 03 04 00 BF EA 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 9B A5 C1 AD A5 7E 03 3F 90 F2 75 9B FB 58 [11:34:16]CheckFolder [11:34:16]dirname=/storage/ofd_packets [11:34:16]CheckFolder done [11:34:16]ProducePacketName [11:34:16]name=ofd_packets/00030303 [11:34:16]NVStorageSaveData ofd_packets/00030303 [11:34:16]File name is /storage/ofd_packets/00030303 [11:34:16]Write 301 bytes [11:34:16]NVStorageSaveData done [11:34:16]OFDSenderStorePacket done [11:34:16]KKMCreateOFDPacket done [11:34:16]NVStorageSaveData kkm_last_timestamp [11:34:16]File name is /storage/kkm_last_timestamp [11:34:16]Write 4 bytes [11:34:16]NVStorageSaveData done [11:34:16]ExternCall_PrintAddStr [11:34:16]wPrintStart [11:34:16]Write to MH i2c: 01 00 00 1D 7A 97 [11:34:16]Write i2c OK [11:34:16]MH_I2C_Read... [11:34:16]Read from MH i2c: 01 [11:34:16]MH_I2C_Read... [11:34:16]Read from MH i2c: 01 07 00 [11:34:16]MH_I2C_Read... [11:34:16]Read from MH i2c: 01 07 00 1D 7A 00 00 00 00 00 FF 0F AC [11:34:16]RasterBufferAndPrint [11:34:16]line Счет N : (1)342695 [11:34:16]line ИНН: 02508201610067 [11:34:16]line Контрольно-Кассовый Чек [11:34:16]line ПРОДАЖА [11:34:16]line ТРК (МРК, ГНК) : 53 [11:34:16]line Товар: 2710124130 [11:34:16]line Аи-92-К-2 [11:34:16]line 7.480 * 66.90 [11:34:16]line = 500.41 [11:34:16]line НДС 12% НСП 1% [11:34:16]line > о реализуемом товаре [11:34:16]line ОКРУГЛЕНИЕ: -0.41 [11:34:16]line ИТОГО: 500.00 [11:34:16]line Внесено: 500.00 [11:34:16]line СДАЧА: 0.00 [11:34:16]line НСП 1% : 4.43 [11:34:16]line НДС 12% : 53.14 [11:34:16]line Наличными: 500.00 [11:34:16]line Безнал.: 0.00 [11:34:16]line Место: АЗС № 78 "Партнер Нефть" [11:34:16]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [11:34:16]line СНО: Общий режим [11:34:16]line Чек 85 20.10.2024 11:34 [11:34:16]line Смена: 114 ФФД: 1.0 [11:34:16]line ЗНМ: 0300000137 [11:34:16]line РНМ: 0000000000186857 [11:34:16]line Версия ККМ: v1.0 [11:34:16]line ФМ: 0000000002094219 [11:34:16]line ФД: 30303 [11:34:16]line ФПД: 171136221291902 [11:34:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T113423&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30303&fm=171136221291902&tin=02508201610067®Number=0000000000186857&sum=50000 [11:34:16]OFD Sender: Processing packet 30303 [packets to send 10, broken 9] [11:34:16]ProducePacketName [11:34:16]name=ofd_packets/00030303 [11:34:16]OFD Sender: To server: pG, [11:34:16]CommunicateWithHost lk.salyk.kg:30040 [11:34:16]ConnectInit lk.salyk.kg [11:34:16]written 0, free lines is 4095 [11:34:16]Connected sock=10 [11:34: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 81 30 07 01 6B 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 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 55 00 00 00 F4 03 04 00 BF EA 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 9B A5 C1 AD A5 7E 03 3F 90 F2 75 9B FB 58 [11:34: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 A7 B0 47 00 76 41 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 5F 76 00 00 F4 03 04 00 44 95 14 67 B6 04 01 00 00 74 76 24 EE 9F 18 BC 64 [11:34:17]CommunicateWithHost err = 0 [11:34:17]CheckOFDResponse [11:34:17]1017 (14) - 77093643461234 [11:34:17]1041 (16) - 0000000002094219 [11:34:17]1040 (4) - 30303 [11:34:17]1012 (4) - 20.10.2024 05:29 [11:34:17]1206 (1) - 0 [11:34:17]OFD Sender: Remove packet 30303 [11:34:17]ProducePacketName [11:34:17]name=ofd_packets/00030303 [11:34:17]NVStorageDeleteData [11:34:17]Write to MH i2c: 01 00 00 48 7A C2 [11:34:17]Write i2c OK [11:34:17]MH_I2C_Read... [11:34:17]Read from MH i2c: 01 [11:34:17]MH_I2C_Read... [11:34:17]Read from MH i2c: 01 07 00 [11:34:17]MH_I2C_Read... [11:34:17]Read from MH i2c: 01 07 00 48 7A 00 00 00 00 00 E4 0C B9 [11:34:17]RasterBufferAndPrint [11:34:17]line [11:34:17]line [11:34:17]line [11:34:17]line [11:34:17]line [11:34:17]written 0, free lines is 3309 [11:34:17]MH_Cut [11:34:17]Write to MH i2c: D1 01 00 4F 7A 01 9B [11:34:17]Write i2c OK [11:34:17]MH_I2C_Read... [11:34:17]Read from MH i2c: D1 [11:34:17]MH_I2C_Read... [11:34:17]Read from MH i2c: D1 01 00 [11:34:17]MH_I2C_Read... [11:34:17]Read from MH i2c: D1 01 00 4F 7A 00 9A [11:34:17]Write to MH i2c: 01 00 00 50 7A CA [11:34:17]Write i2c OK [11:34:17]MH_I2C_Read... [11:34:17]OFD Sender: No OFD packet to send [11:34:18]*** Cut start [11:34:18]*** Partial cut [11:34:18]*** CUTSNS_PIN = 1 [11:34:18]*** CUTSNS_PIN = 0 [11:34:18]*** Brake cut motor [11:34:18]Read from MH i2c: 01 [11:34:18]MH_I2C_Read... [11:34:18]*** Stop cut motor [11:34:18]*** Cut end [11:34:18]Read from MH i2c: 01 07 00 [11:34:18]MH_I2C_Read... [11:34:18]Read from MH i2c: 01 07 00 50 7A 00 00 00 00 00 FF 0F DF [11:34:18]process_action close_receipt done [11:34:18]requested_data is exist [11:34:18]produce_requested_data [11:34:18]requested_item fm.sn is exist - process it [11:34:18]wFMCommunicate request_size=4 [11:34:18]MH_SAM_APDU [11:34:18]CAPDU: 80 11 00 00 [11:34:18]Write to MH i2c: E2 08 00 51 7A 80 11 00 00 00 00 00 00 45 [11:34:18]Write i2c OK [11:34:18]MH_I2C_Read... [11:34:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:34:18]Read from MH i2c: E2 [11:34:18]MH_I2C_Read... [11:34:18]Read from MH i2c: E2 17 00 [11:34:18]MH_I2C_Read... [11:34:18]Read from MH i2c: E2 17 00 51 7A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 93 [11: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 [11:34:18]wFMCommunicate OK [11:34:18]requested_item fd.num is exist - process it [11:34:18]SAM_PROTO_GetFieldsCounters [11:34:18]wFMCommunicate request_size=4 [11:34:18]MH_SAM_APDU [11:34:18]CAPDU: 80 13 00 00 [11:34:18]Write to MH i2c: E2 08 00 52 7A 80 13 00 00 00 00 00 00 48 [11:34:18]Write i2c OK [11:34:18]MH_I2C_Read... [11:34:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:34:18]Read from MH i2c: E2 [11:34:18]MH_I2C_Read... [11:34:18]Read from MH i2c: E2 62 00 [11:34:18]MH_I2C_Read... [11:34:18]Read from MH i2c: E2 62 00 52 7A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 B4 [11:34: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 5F 76 00 00 0E 04 04 00 72 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:34:18]wFMCommunicate OK [11:34:18]SAM_PROTO_GetFieldsCounters done [11:34:18]requested_item shift.num is exist - process it [11:34:18]requested_item shift.opened is exist - process it [11:34:18]req_shift_opened [11:34:18]FM_GetShiftState [11:34:18]SAM_PROTO_GetShiftState [11:34:18]wFMCommunicate request_size=4 [11:34:18]MH_SAM_APDU [11:34:18]CAPDU: 80 13 01 00 [11:34:18]Write to MH i2c: E2 08 00 53 7A 80 13 01 00 00 00 00 00 4A [11:34:18]Write i2c OK [11:34:18]MH_I2C_Read... [11:34:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:34:18]Read from MH i2c: E2 [11:34:18]MH_I2C_Read... [11:34:18]Read from MH i2c: E2 0E 00 [11:34:18]MH_I2C_Read... [11:34:18]Read from MH i2c: E2 0E 00 53 7A 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 30 [11:34:18]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [11:34:18]wFMCommunicate OK [11:34:18]SAM_PROTO_GetShiftState done [11:34:18]FM_GetShiftState done [11:34:18]req_shift_opened done [11:34:18]requested_item shift.open_date is exist - process it [11:34:18]req_shift_open_date [11:34:18]req_shift_open_date done [11:34:18]produce_requested_data done [11:34:18]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30303,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [11:34:18]process_action_free close_receipt [11:34:18]json_value_free [11:34:18]json_value_free done [11:34:18]process_json_proto returns [11:34:18]Send response to host [11:34:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30303,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [11:34:18]free response buf [11:34:18]execute_script done [11:34:18]execute_script returns [11:34:18]free content buf [11:34:18]Sock 9.Close socket [11:34:18]Sock 9.Thread stoped [11:34:22]OFD Sender: No OFD packet to send [11:34:27]OFD Sender: No OFD packet to send [11:34:32]OFD Sender: No OFD packet to send [11:34:37]OFD Sender: No OFD packet to send [11:34:42]OFD Sender: No OFD packet to send [11:34:47]OFD Sender: No OFD packet to send [11:34:52]OFD Sender: No OFD packet to send [11:34:57]OFD Sender: No OFD packet to send [11:35:02]OFD Sender: No OFD packet to send [11:35:07]OFD Sender: No OFD packet to send [11:35:12]OFD Sender: No OFD packet to send [11:35:17]OFD Sender: No OFD packet to send [11:35:22]OFD Sender: No OFD packet to send [11:35:27]OFD Sender: No OFD packet to send [11:35:32]OFD Sender: No OFD packet to send [11:35:37]OFD Sender: No OFD packet to send [11:35:37]accept exits with 7 [11:35:37]New connection [11:35:37]New thread 3067514212 created [11:35:37]Thread 3067370852 joined [11:35:37]Waiting for new connection... [11:35:37] Sock 7.Parse request [11:35:37]Sock 7.Check first char [11:35:37]Sock 7.First char is OK [11:35:37]request: POST /json_proto HTTP/1.0 [11:35:37]Method: POST [11:35:37]URL: /json_proto [11:35:37]Method is POST - this is cgi request [11:35:37]url: /json_proto [11:35:37]query_string will be loaded in cgi processing [11:35:37]execute_cgi json_proto POST (null) [11:35:37]execute_cgi path=json_proto method=POST [11:35:37]POST find Content-Length [11:35:37]Host: 172.17.51.3:8080 [11:35:37]Content-Length: 679 [11:35:37]Content-Type: application/json [11:35:37] [11:35:37]POST finish read [11:35:37]Found Content-Length = 679 [11:35:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342696", "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" : 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" ] } } [11:35:37]execute_script... [11:35: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)342696", "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" : 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" ] } } [11:35:37]POST & json_proto [11:35:37]process_json_proto [11:35:37]json parsed OK: [11:35:37]protocol is kg_v1.0 [11:35:37]action value=close_receipt [11:35:37]process_action close_receipt [11:35:37]cmd_close_receipt [11:35:37]MH_GetDate [11:35:37]Write to MH i2c: F0 00 00 54 7A BD [11:35:37]Write i2c OK [11:35:37]MH_I2C_Read... [11:35:37]Read from MH i2c: F0 [11:35:37]MH_I2C_Read... [11:35:37]Read from MH i2c: F0 09 00 [11:35:37]MH_I2C_Read... [11:35:37]Read from MH i2c: F0 09 00 54 7A 00 13 EB 14 67 04 C1 95 66 FF [11:35:37]GetLastDocTimeStamp 1729424063 [11:35:37]current date 1729424147 [11:35:37]FM_GetShiftState [11:35:37]SAM_PROTO_GetShiftState [11:35:37]wFMCommunicate request_size=4 [11:35:37]MH_SAM_APDU [11:35:37]CAPDU: 80 13 01 00 [11:35:37]Write to MH i2c: E2 08 00 55 7A 80 13 01 00 00 00 00 00 4C [11:35:38]Write i2c OK [11:35:38]MH_I2C_Read... [11:35:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:35:38]Read from MH i2c: E2 [11:35:38]MH_I2C_Read... [11:35:38]Read from MH i2c: E2 0E 00 [11:35:38]MH_I2C_Read... [11:35:38]Read from MH i2c: E2 0E 00 55 7A 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 32 [11:35:38]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [11:35:38]wFMCommunicate OK [11:35:38]SAM_PROTO_GetShiftState done [11:35:38]FM_GetShiftState done [11:35:38]opened in 1729384718 [11:35:38]opened+sec_in_day 1729471118 [11:35:38]quantity*price = 150037 [11:35:38]sum+1 = 150039 [11:35:38]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 СНО: Общий режим Чек 86 20.10.2024 11:35 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30304 ФПД: 221727040720891 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T113547&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30304&fm=221727040720891&tin=02508201610067®Number=0000000000186857&sum=150000 [11:35:39]StoreToDocumentArchive [11:35:39]shift 114 fd 30304 [11:35:39]save to /storage/0114/doc_00030304 [11:35:39]save last doc name /storage/0114/doc_00030304 to /storage/kkm_last_doc_name [11:35:39]save OK [11:35:39]Clear old archive folders... [11:35:39]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:35:39]tlvbuf is 00BC87F0 [11:35:39]SAM_PROTO_ClearQueue [11:35:39]wFMCommunicate request_size=4 [11:35:39]MH_SAM_APDU [11:35:39]CAPDU: 80 09 00 00 [11:35:39]Write to MH i2c: E2 08 00 62 7A 80 09 00 00 00 00 00 00 4E [11:35:39]Write i2c OK [11:35:39]MH_I2C_Read... [11:35:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:35:39]Read from MH i2c: E2 [11:35:39]MH_I2C_Read... [11:35:39]Read from MH i2c: E2 03 00 [11:35:39]MH_I2C_Read... [11:35:39]Read from MH i2c: E2 03 00 62 7A 00 90 00 50 [11:35:39]RAPDU: 90 00 [11:35:39]wFMCommunicate OK [11:35:39]SAM_PROTO_ClearQueue done [11:35:39]KKMCreateOFDPacket [11:35:39]OFDProtocolAddRootSTLVToBuf [11:35:39]FM_MakeSignedData [11:35:39]FM_MakeSignedData [11:35:39]SAM_PROTO_SignData [11:35:39]wFMCommunicate request_size=4 [11:35:39]MH_SAM_APDU [11:35:39]CAPDU: 80 0D 01 02 [11:35:39]Write to MH i2c: E2 08 00 63 7A 80 0D 01 02 00 00 00 00 56 [11:35:39]Write i2c OK [11:35:39]MH_I2C_Read... [11:35:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:35:39]Read from MH i2c: E2 [11:35:39]MH_I2C_Read... [11:35:39]Read from MH i2c: E2 03 00 [11:35:39]MH_I2C_Read... [11:35:39]Read from MH i2c: E2 03 00 63 7A 00 90 00 51 [11:35:39]RAPDU: 90 00 [11:35:39]wFMCommunicate OK [11:35:39]wFMCommunicate request_size=255 [11:35:39]MH_SAM_APDU [11:35: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 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 56 00 00 00 F4 03 04 00 13 EB 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 C9 A8 D9 7F [11:35:39]Write to MH i2c: E2 02 01 64 7A 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 56 00 00 00 F4 03 04 00 13 EB 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 C9 A8 D9 7F 00 00 34 [11:35:39]Write i2c OK [11:35:39]MH_I2C_Read... [11:35:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:35:39]Read from MH i2c: E2 [11:35:39]MH_I2C_Read... [11:35:39]Read from MH i2c: E2 03 00 [11:35:39]MH_I2C_Read... [11:35:39]Read from MH i2c: E2 03 00 64 7A 00 90 00 52 [11:35:39]RAPDU: 90 00 [11:35:39]wFMCommunicate OK [11:35:39]wFMCommunicate request_size=7 [11:35:39]MH_SAM_APDU [11:35:39]CAPDU: 80 0D 02 02 02 CF FB [11:35:39]Write to MH i2c: E2 0A 00 65 7A 80 0D 02 02 02 00 CF FB 00 00 27 [11:35:39]Write i2c OK [11:35:39]MH_I2C_Read... [11:35:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:35:39]Read from MH i2c: E2 [11:35:39]MH_I2C_Read... [11:35:39]Read from MH i2c: E2 03 00 [11:35:39]MH_I2C_Read... [11:35:39]Read from MH i2c: E2 03 00 65 7A 00 90 00 53 [11:35:39]RAPDU: 90 00 [11:35:39]wFMCommunicate OK [11:35:39]wFMCommunicate request_size=4 [11:35:39]MH_SAM_APDU [11:35:39]CAPDU: 80 0D 03 02 [11:35:39]Write to MH i2c: E2 08 00 66 7A 80 0D 03 02 00 00 00 00 5B [11:35:39]Write i2c OK [11:35:39]MH_I2C_Read... [11:35:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:35:39]Read from MH i2c: E2 [11:35:39]MH_I2C_Read... [11:35:39]Read from MH i2c: E2 0B 00 [11:35:39]MH_I2C_Read... [11:35:39]Read from MH i2c: E2 0B 00 66 7A 00 91 BB C1 DE 06 55 31 76 90 00 49 [11:35:39]RAPDU: 91 BB C1 DE 06 55 31 76 90 00 [11:35:39]wFMCommunicate OK [11:35:39]SAM_PROTO_SignData done [11:35:39]FM_MakeSignedData done [11:35:39]CreateOFDProtocolMessage [11:35:39]wFMCommunicate request_size=4 [11:35:39]MH_SAM_APDU [11:35:39]CAPDU: 80 11 00 00 [11:35:39]Write to MH i2c: E2 08 00 67 7A 80 11 00 00 00 00 00 00 5B [11:35:39]Write i2c OK [11:35:39]MH_I2C_Read... [11:35:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:35:39]Read from MH i2c: E2 [11:35:39]MH_I2C_Read... [11:35:39]Read from MH i2c: E2 17 00 [11:35:39]MH_I2C_Read... [11:35:39]Read from MH i2c: E2 17 00 67 7A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 A9 [11:35: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:35:39]wFMCommunicate OK [11:35:39]CreateOFDProtocolMessage done [11:35:39]OFDSenderStorePacket 30304 [11:35:39]StoreOFDPacket docnum=30304 [11:35: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 0C 01 00 00 55 53 04 01 5B 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 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 56 00 00 00 F4 03 04 00 13 EB 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 C9 A8 D9 7F CF FB 91 BB C1 DE 06 55 31 76 [11:35:39]CheckFolder [11:35:39]dirname=/storage/ofd_packets [11:35:39]CheckFolder done [11:35:39]ProducePacketName [11:35:39]name=ofd_packets/00030304 [11:35:39]NVStorageSaveData ofd_packets/00030304 [11:35:39]File name is /storage/ofd_packets/00030304 [11:35:39]Write 298 bytes [11:35:39]NVStorageSaveData done [11:35:39]OFDSenderStorePacket done [11:35:39]KKMCreateOFDPacket done [11:35:39]NVStorageSaveData kkm_last_timestamp [11:35:39]File name is /storage/kkm_last_timestamp [11:35:39]Write 4 bytes [11:35:39]NVStorageSaveData done [11:35:39]ExternCall_PrintAddStr [11:35:39]wPrintStart [11:35:39]Write to MH i2c: 01 00 00 68 7A E2 [11:35:39]Write i2c OK [11:35:39]MH_I2C_Read... [11:35:39]Read from MH i2c: 01 [11:35:39]MH_I2C_Read... [11:35:39]Read from MH i2c: 01 07 00 [11:35:39]MH_I2C_Read... [11:35:39]Read from MH i2c: 01 07 00 68 7A 00 00 00 00 00 FF 0F F7 [11:35:39]RasterBufferAndPrint [11:35:39]line Счет N : (1)342696 [11:35:39]line ИНН: 02508201610067 [11:35:39]line Контрольно-Кассовый Чек [11:35:39]line ПРОДАЖА [11:35:39]line ТРК (МРК, ГНК) : 64 [11:35:39]line Товар: 2710194210 [11:35:39]line ДТ-К-2 [11:35:39]line 19.690 * 76.20 [11:35:39]line = 1500.38 [11:35:39]line НДС 12% НСП 1% [11:35:39]line > о реализуемом товаре [11:35:39]line ОКРУГЛЕНИЕ: -0.38 [11:35:39]line ИТОГО: 1500.00 [11:35:39]line Внесено: 1500.00 [11:35:39]line СДАЧА: 0.00 [11:35:39]line НСП 1% : 13.28 [11:35:39]line НДС 12% : 159.33 [11:35:39]line Наличными: 1500.00 [11:35:39]line Безнал.: 0.00 [11:35:39]line Место: АЗС № 78 "Партнер Нефть" [11:35:39]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [11:35:39]line СНО: Общий режим [11:35:39]line Чек 86 20.10.2024 11:35 [11:35:39]line Смена: 114 ФФД: 1.0 [11:35:39]line ЗНМ: 0300000137 [11:35:39]line РНМ: 0000000000186857 [11:35:39]line Версия ККМ: v1.0 [11:35:39]line ФМ: 0000000002094219 [11:35:39]line ФД: 30304 [11:35:39]line ФПД: 221727040720891 [11:35:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T113547&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30304&fm=221727040720891&tin=02508201610067®Number=0000000000186857&sum=150000 [11:35:40]OFD Sender: Processing packet 30304 [packets to send 10, broken 9] [11:35:40]ProducePacketName [11:35:40]name=ofd_packets/00030304 [11:35:40]OFD Sender: To server: pG, [11:35:40]CommunicateWithHost lk.salyk.kg:30040 [11:35:40]ConnectInit lk.salyk.kg [11:35:40]written 0, free lines is 4095 [11:35:40]Connected sock=9 [11:35: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 55 53 04 01 5B 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 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 56 00 00 00 F4 03 04 00 13 EB 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 C9 A8 D9 7F CF FB 91 BB C1 DE 06 55 31 76 [11:35: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 C6 5A 47 00 C6 53 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 60 76 00 00 F4 03 04 00 97 95 14 67 B6 04 01 00 00 EF D9 76 15 82 25 DB 30 [11:35:40]CommunicateWithHost err = 0 [11:35:40]CheckOFDResponse [11:35:40]1017 (14) - 77093643461234 [11:35:40]1041 (16) - 0000000002094219 [11:35:40]1040 (4) - 30304 [11:35:40]1012 (4) - 20.10.2024 05:31 [11:35:40]1206 (1) - 0 [11:35:40]OFD Sender: Remove packet 30304 [11:35:40]ProducePacketName [11:35:40]name=ofd_packets/00030304 [11:35:40]NVStorageDeleteData [11:35:40]Write to MH i2c: 01 00 00 93 7A 0D [11:35:40]Write i2c OK [11:35:40]MH_I2C_Read... [11:35:40]Read from MH i2c: 01 [11:35:40]MH_I2C_Read... [11:35:40]Read from MH i2c: 01 07 00 [11:35:40]MH_I2C_Read... [11:35:40]Read from MH i2c: 01 07 00 93 7A 00 00 00 00 00 E8 0C 08 [11:35:40]RasterBufferAndPrint [11:35:40]line [11:35:40]line [11:35:40]line [11:35:40]line [11:35:40]line [11:35:40]written 0, free lines is 3310 [11:35:40]MH_Cut [11:35:40]Write to MH i2c: D1 01 00 9A 7A 01 E6 [11:35:40]Write i2c OK [11:35:40]MH_I2C_Read... [11:35:40]Read from MH i2c: D1 [11:35:40]MH_I2C_Read... [11:35:40]Read from MH i2c: D1 01 00 [11:35:40]MH_I2C_Read... [11:35:40]Read from MH i2c: D1 01 00 9A 7A 00 E5 [11:35:40]Write to MH i2c: 01 00 00 9B 7A 15 [11:35:40]Write i2c OK [11:35:40]MH_I2C_Read... [11:35:40]OFD Sender: No OFD packet to send [11:35:41]*** Cut start [11:35:41]*** Partial cut [11:35:41]*** CUTSNS_PIN = 1 [11:35:41]*** CUTSNS_PIN = 0 [11:35:41]*** Brake cut motor [11:35:41]Read from MH i2c: 01 [11:35:41]MH_I2C_Read... [11:35:41]*** Stop cut motor [11:35:41]*** Cut end [11:35:41]Read from MH i2c: 01 07 00 [11:35:41]MH_I2C_Read... [11:35:41]Read from MH i2c: 01 07 00 9B 7A 00 00 00 00 00 FF 0F 2A [11:35:41]process_action close_receipt done [11:35:41]requested_data is exist [11:35:41]produce_requested_data [11:35:41]requested_item fm.sn is exist - process it [11:35:41]wFMCommunicate request_size=4 [11:35:41]MH_SAM_APDU [11:35:41]CAPDU: 80 11 00 00 [11:35:41]Write to MH i2c: E2 08 00 9C 7A 80 11 00 00 00 00 00 00 90 [11:35:41]Write i2c OK [11:35:41]MH_I2C_Read... [11:35:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:35:41]Read from MH i2c: E2 [11:35:41]MH_I2C_Read... [11:35:41]Read from MH i2c: E2 17 00 [11:35:41]MH_I2C_Read... [11:35:41]Read from MH i2c: E2 17 00 9C 7A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 DE [11:35:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [11:35:41]wFMCommunicate OK [11:35:41]requested_item fd.num is exist - process it [11:35:41]SAM_PROTO_GetFieldsCounters [11:35:41]wFMCommunicate request_size=4 [11:35:41]MH_SAM_APDU [11:35:41]CAPDU: 80 13 00 00 [11:35:41]Write to MH i2c: E2 08 00 9D 7A 80 13 00 00 00 00 00 00 93 [11:35:41]Write i2c OK [11:35:41]MH_I2C_Read... [11:35:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:35:41]Read from MH i2c: E2 [11:35:41]MH_I2C_Read... [11:35:41]Read from MH i2c: E2 62 00 [11:35:41]MH_I2C_Read... [11:35:41]Read from MH i2c: E2 62 00 9D 7A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 03 [11:35: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 60 76 00 00 0E 04 04 00 72 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:35:41]wFMCommunicate OK [11:35:41]SAM_PROTO_GetFieldsCounters done [11:35:41]requested_item shift.num is exist - process it [11:35:41]requested_item shift.opened is exist - process it [11:35:41]req_shift_opened [11:35:41]FM_GetShiftState [11:35:41]SAM_PROTO_GetShiftState [11:35:41]wFMCommunicate request_size=4 [11:35:41]MH_SAM_APDU [11:35:41]CAPDU: 80 13 01 00 [11:35:41]Write to MH i2c: E2 08 00 9E 7A 80 13 01 00 00 00 00 00 95 [11:35:41]Write i2c OK [11:35:41]MH_I2C_Read... [11:35:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:35:42]Read from MH i2c: E2 [11:35:42]MH_I2C_Read... [11:35:42]Read from MH i2c: E2 0E 00 [11:35:42]MH_I2C_Read... [11:35:42]Read from MH i2c: E2 0E 00 9E 7A 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 7B [11:35:42]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [11:35:42]wFMCommunicate OK [11:35:42]SAM_PROTO_GetShiftState done [11:35:42]FM_GetShiftState done [11:35:42]req_shift_opened done [11:35:42]requested_item shift.open_date is exist - process it [11:35:42]req_shift_open_date [11:35:42]req_shift_open_date done [11:35:42]produce_requested_data done [11:35:42]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30304,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [11:35:42]process_action_free close_receipt [11:35:42]json_value_free [11:35:42]json_value_free done [11:35:42]process_json_proto returns [11:35:42]Send response to host [11:35:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30304,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [11:35:42]free response buf [11:35:42]execute_script done [11:35:42]execute_script returns [11:35:42]free content buf [11:35:42]Sock 7.Close socket [11:35:42]Sock 7.Thread stoped [11:35:45]OFD Sender: No OFD packet to send [11:35:50]OFD Sender: No OFD packet to send [11:35:55]OFD Sender: No OFD packet to send [11:36:00]OFD Sender: No OFD packet to send [11:36:04]accept exits with 10 [11:36:04]New connection [11:36:04]New thread 3067370852 created [11:36:04]Thread 3067514212 joined [11:36:04]Waiting for new connection... [11:36:04] Sock 10.Parse request [11:36:04]Sock 10.Check first char [11:36:04]Sock 10.First char is OK [11:36:04]request: POST /json_proto HTTP/1.0 [11:36:04]Method: POST [11:36:04]URL: /json_proto [11:36:04]Method is POST - this is cgi request [11:36:04]url: /json_proto [11:36:04]query_string will be loaded in cgi processing [11:36:04]execute_cgi json_proto POST (null) [11:36:04]execute_cgi path=json_proto method=POST [11:36:04]POST find Content-Length [11:36:04]Host: 172.17.51.3:8080 [11:36:04]Content-Length: 679 [11:36:04]Content-Type: application/json [11:36:04] [11:36:04]POST finish read [11:36:04]Found Content-Length = 679 [11:36:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342697", "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:36:04]execute_script... [11:36: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)342697", "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:36:04]POST & json_proto [11:36:04]process_json_proto [11:36:04]json parsed OK: [11:36:04]protocol is kg_v1.0 [11:36:04]action value=close_receipt [11:36:04]process_action close_receipt [11:36:04]cmd_close_receipt [11:36:04]MH_GetDate [11:36:04]Write to MH i2c: F0 00 00 9F 7A 08 [11:36:04]Write i2c OK [11:36:04]MH_I2C_Read... [11:36:04]Read from MH i2c: F0 [11:36:04]MH_I2C_Read... [11:36:04]Read from MH i2c: F0 09 00 [11:36:04]MH_I2C_Read... [11:36:04]Read from MH i2c: F0 09 00 9F 7A 00 2D EB 14 67 04 C1 95 66 64 [11:36:04]GetLastDocTimeStamp 1729424147 [11:36:04]current date 1729424173 [11:36:04]FM_GetShiftState [11:36:04]SAM_PROTO_GetShiftState [11:36:04]wFMCommunicate request_size=4 [11:36:04]MH_SAM_APDU [11:36:04]CAPDU: 80 13 01 00 [11:36:04]Write to MH i2c: E2 08 00 A0 7A 80 13 01 00 00 00 00 00 97 [11:36:04]Write i2c OK [11:36:04]MH_I2C_Read... [11:36:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:36:04]Read from MH i2c: E2 [11:36:04]MH_I2C_Read... [11:36:04]Read from MH i2c: E2 0E 00 [11:36:04]MH_I2C_Read... [11:36:04]Read from MH i2c: E2 0E 00 A0 7A 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 7D [11:36:04]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [11:36:04]wFMCommunicate OK [11:36:04]SAM_PROTO_GetShiftState done [11:36:04]FM_GetShiftState done [11:36:04]opened in 1729384718 [11:36:04]opened+sec_in_day 1729471118 [11:36:04]quantity*price = 200025 [11:36:04]sum+1 = 200026 [11:36:04]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 СНО: Общий режим Чек 87 20.10.2024 11:36 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30305 ФПД: 266553067938247 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T113613&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30305&fm=266553067938247&tin=02508201610067®Number=0000000000186857&sum=200000 [11:36:05]StoreToDocumentArchive [11:36:05]shift 114 fd 30305 [11:36:05]save to /storage/0114/doc_00030305 [11:36:05]save last doc name /storage/0114/doc_00030305 to /storage/kkm_last_doc_name [11:36:05]save OK [11:36:05]Clear old archive folders... [11:36:05]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:36:05]tlvbuf is 00BE93E0 [11:36:05]SAM_PROTO_ClearQueue [11:36:05]wFMCommunicate request_size=4 [11:36:05]MH_SAM_APDU [11:36:05]CAPDU: 80 09 00 00 [11:36:05]Write to MH i2c: E2 08 00 AD 7A 80 09 00 00 00 00 00 00 99 [11:36:05]Write i2c OK [11:36:05]MH_I2C_Read... [11:36:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:36:05]Read from MH i2c: E2 [11:36:05]MH_I2C_Read... [11:36:05]Read from MH i2c: E2 03 00 [11:36:05]MH_I2C_Read... [11:36:05]Read from MH i2c: E2 03 00 AD 7A 00 90 00 9B [11:36:05]RAPDU: 90 00 [11:36:05]wFMCommunicate OK [11:36:05]SAM_PROTO_ClearQueue done [11:36:05]KKMCreateOFDPacket [11:36:05]OFDProtocolAddRootSTLVToBuf [11:36:05]FM_MakeSignedData [11:36:05]FM_MakeSignedData [11:36:05]SAM_PROTO_SignData [11:36:05]wFMCommunicate request_size=4 [11:36:05]MH_SAM_APDU [11:36:05]CAPDU: 80 0D 01 02 [11:36:05]Write to MH i2c: E2 08 00 AE 7A 80 0D 01 02 00 00 00 00 A1 [11:36:05]Write i2c OK [11:36:05]MH_I2C_Read... [11:36:05]OFD Sender: No OFD packet to send [11:36:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:36:05]Read from MH i2c: E2 [11:36:05]MH_I2C_Read... [11:36:05]Read from MH i2c: E2 03 00 [11:36:05]MH_I2C_Read... [11:36:05]Read from MH i2c: E2 03 00 AE 7A 00 90 00 9C [11:36:05]RAPDU: 90 00 [11:36:05]wFMCommunicate OK [11:36:05]wFMCommunicate request_size=255 [11:36:05]MH_SAM_APDU [11:36:05]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 57 00 00 00 F4 03 04 00 2D EB 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 F2 6D B8 ED [11:36:05]Write to MH i2c: E2 02 01 AF 7A 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 57 00 00 00 F4 03 04 00 2D EB 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 F2 6D B8 ED 00 00 4D [11:36:05]Write i2c OK [11:36:05]MH_I2C_Read... [11:36:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:36:06]Read from MH i2c: E2 [11:36:06]MH_I2C_Read... [11:36:06]Read from MH i2c: E2 03 00 [11:36:06]MH_I2C_Read... [11:36:06]Read from MH i2c: E2 03 00 AF 7A 00 90 00 9D [11:36:06]RAPDU: 90 00 [11:36:06]wFMCommunicate OK [11:36:06]wFMCommunicate request_size=7 [11:36:06]MH_SAM_APDU [11:36:06]CAPDU: 80 0D 02 02 02 A1 C7 [11:36:06]Write to MH i2c: E2 0A 00 B0 7A 80 0D 02 02 02 00 A1 C7 00 00 10 [11:36:06]Write i2c OK [11:36:06]MH_I2C_Read... [11:36:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:36:06]Read from MH i2c: E2 [11:36:06]MH_I2C_Read... [11:36:06]Read from MH i2c: E2 03 00 [11:36:06]MH_I2C_Read... [11:36:06]Read from MH i2c: E2 03 00 B0 7A 00 90 00 9E [11:36:06]RAPDU: 90 00 [11:36:06]wFMCommunicate OK [11:36:06]wFMCommunicate request_size=4 [11:36:06]MH_SAM_APDU [11:36:06]CAPDU: 80 0D 03 02 [11:36:06]Write to MH i2c: E2 08 00 B1 7A 80 0D 03 02 00 00 00 00 A6 [11:36:06]Write i2c OK [11:36:06]MH_I2C_Read... [11:36:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:36:06]Read from MH i2c: E2 [11:36:06]MH_I2C_Read... [11:36:06]Read from MH i2c: E2 0B 00 [11:36:06]MH_I2C_Read... [11:36:06]Read from MH i2c: E2 0B 00 B1 7A 00 FB 84 58 4F F3 72 08 1C 90 00 56 [11:36:06]RAPDU: FB 84 58 4F F3 72 08 1C 90 00 [11:36:06]wFMCommunicate OK [11:36:06]SAM_PROTO_SignData done [11:36:06]FM_MakeSignedData done [11:36:06]CreateOFDProtocolMessage [11:36:06]wFMCommunicate request_size=4 [11:36:06]MH_SAM_APDU [11:36:06]CAPDU: 80 11 00 00 [11:36:06]Write to MH i2c: E2 08 00 B2 7A 80 11 00 00 00 00 00 00 A6 [11:36:06]Write i2c OK [11:36:06]MH_I2C_Read... [11:36:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:36:06]Read from MH i2c: E2 [11:36:06]MH_I2C_Read... [11:36:06]Read from MH i2c: E2 17 00 [11:36:06]MH_I2C_Read... [11:36:06]Read from MH i2c: E2 17 00 B2 7A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 F4 [11:36:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [11:36:06]wFMCommunicate OK [11:36:06]CreateOFDProtocolMessage done [11:36:06]OFDSenderStorePacket 30305 [11:36:06]StoreOFDPacket docnum=30305 [11:36: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 0C 01 00 00 26 7A 04 01 F4 C9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 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 57 00 00 00 F4 03 04 00 2D EB 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 F2 6D B8 ED A1 C7 FB 84 58 4F F3 72 08 1C [11:36:06]CheckFolder [11:36:06]dirname=/storage/ofd_packets [11:36:06]CheckFolder done [11:36:06]ProducePacketName [11:36:06]name=ofd_packets/00030305 [11:36:06]NVStorageSaveData ofd_packets/00030305 [11:36:06]File name is /storage/ofd_packets/00030305 [11:36:06]Write 298 bytes [11:36:06]NVStorageSaveData done [11:36:06]OFDSenderStorePacket done [11:36:06]KKMCreateOFDPacket done [11:36:06]NVStorageSaveData kkm_last_timestamp [11:36:06]File name is /storage/kkm_last_timestamp [11:36:06]Write 4 bytes [11:36:06]NVStorageSaveData done [11:36:06]ExternCall_PrintAddStr [11:36:06]wPrintStart [11:36:06]Write to MH i2c: 01 00 00 B3 7A 2D [11:36:06]Write i2c OK [11:36:06]MH_I2C_Read... [11:36:06]Read from MH i2c: 01 [11:36:06]MH_I2C_Read... [11:36:06]Read from MH i2c: 01 07 00 [11:36:06]MH_I2C_Read... [11:36:06]Read from MH i2c: 01 07 00 B3 7A 00 00 00 00 00 FF 0F 42 [11:36:06]RasterBufferAndPrint [11:36:06]line Счет N : (1)342697 [11:36:06]line ИНН: 02508201610067 [11:36:06]line Контрольно-Кассовый Чек [11:36:06]line ПРОДАЖА [11:36:06]line ТРК (МРК, ГНК) : 44 [11:36:06]line Товар: 2710194210 [11:36:06]line ДТ-К-2 [11:36:06]line 26.250 * 76.20 [11:36:06]line = 2000.25 [11:36:06]line НДС 12% НСП 1% [11:36:06]line > о реализуемом товаре [11:36:06]line ОКРУГЛЕНИЕ: -0.25 [11:36:06]line ИТОГО: 2000.00 [11:36:06]line Внесено: 2000.00 [11:36:06]line СДАЧА: 0.00 [11:36:06]line НСП 1% : 17.70 [11:36:06]line НДС 12% : 212.42 [11:36:06]line Наличными: 2000.00 [11:36:06]line Безнал.: 0.00 [11:36:06]line Место: АЗС № 78 "Партнер Нефть" [11:36:06]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [11:36:06]line СНО: Общий режим [11:36:06]line Чек 87 20.10.2024 11:36 [11:36:06]line Смена: 114 ФФД: 1.0 [11:36:06]line ЗНМ: 0300000137 [11:36:06]line РНМ: 0000000000186857 [11:36:06]line Версия ККМ: v1.0 [11:36:06]line ФМ: 0000000002094219 [11:36:06]line ФД: 30305 [11:36:06]line ФПД: 266553067938247 [11:36:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T113613&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30305&fm=266553067938247&tin=02508201610067®Number=0000000000186857&sum=200000 [11:36:06]OFD Sender: Processing packet 30305 [packets to send 10, broken 9] [11:36:06]ProducePacketName [11:36:06]name=ofd_packets/00030305 [11:36:06]OFD Sender: To server: pG, [11:36:06]CommunicateWithHost lk.salyk.kg:30040 [11:36:06]ConnectInit lk.salyk.kg [11:36:06]written 0, free lines is 4095 [11:36:06]Connected sock=9 [11:36: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 0C 01 00 00 26 7A 04 01 F4 C9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 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 57 00 00 00 F4 03 04 00 2D EB 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 F2 6D B8 ED A1 C7 FB 84 58 4F F3 72 08 1C [11:36: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 FC 95 47 00 58 01 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 61 76 00 00 F4 03 04 00 B1 95 14 67 B6 04 01 00 00 64 A2 B7 44 02 BE 06 C3 [11:36:07]CommunicateWithHost err = 0 [11:36:07]CheckOFDResponse [11:36:07]1017 (14) - 77093643461234 [11:36:07]1041 (16) - 0000000002094219 [11:36:07]1040 (4) - 30305 [11:36:07]1012 (4) - 20.10.2024 05:31 [11:36:07]1206 (1) - 0 [11:36:07]OFD Sender: Remove packet 30305 [11:36:07]ProducePacketName [11:36:07]name=ofd_packets/00030305 [11:36:07]NVStorageDeleteData [11:36:07]Write to MH i2c: 01 00 00 DE 7A 58 [11:36:07]Write i2c OK [11:36:07]MH_I2C_Read... [11:36:07]Read from MH i2c: 01 [11:36:07]MH_I2C_Read... [11:36:07]Read from MH i2c: 01 07 00 [11:36:07]MH_I2C_Read... [11:36:07]Read from MH i2c: 01 07 00 DE 7A 00 00 00 00 00 EF 0C 5A [11:36:07]RasterBufferAndPrint [11:36:07]line [11:36:07]line [11:36:07]line [11:36:07]line [11:36:07]line [11:36:07]written 0, free lines is 3320 [11:36:07]MH_Cut [11:36:07]Write to MH i2c: D1 01 00 E5 7A 01 31 [11:36:07]Write i2c OK [11:36:07]MH_I2C_Read... [11:36:07]Read from MH i2c: D1 [11:36:07]MH_I2C_Read... [11:36:07]Read from MH i2c: D1 01 00 [11:36:07]MH_I2C_Read... [11:36:07]Read from MH i2c: D1 01 00 E5 7A 00 30 [11:36:07]Write to MH i2c: 01 00 00 E6 7A 60 [11:36:07]Write i2c OK [11:36:07]MH_I2C_Read... [11:36:07]OFD Sender: No OFD packet to send [11:36:07]*** Cut start [11:36:07]*** Partial cut [11:36:07]*** CUTSNS_PIN = 1 [11:36:07]*** CUTSNS_PIN = 0 [11:36:08]*** Brake cut motor [11:36:08]Read from MH i2c: 01 [11:36:08]MH_I2C_Read... [11:36:08]*** Stop cut motor [11:36:08]*** Cut end [11:36:08]Read from MH i2c: 01 07 00 [11:36:08]MH_I2C_Read... [11:36:08]Read from MH i2c: 01 07 00 E6 7A 00 00 00 00 00 FF 0F 75 [11:36:08]process_action close_receipt done [11:36:08]requested_data is exist [11:36:08]produce_requested_data [11:36:08]requested_item fm.sn is exist - process it [11:36:08]wFMCommunicate request_size=4 [11:36:08]MH_SAM_APDU [11:36:08]CAPDU: 80 11 00 00 [11:36:08]Write to MH i2c: E2 08 00 E7 7A 80 11 00 00 00 00 00 00 DB [11:36:08]Write i2c OK [11:36:08]MH_I2C_Read... [11:36:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:36:08]Read from MH i2c: E2 [11:36:08]MH_I2C_Read... [11:36:08]Read from MH i2c: E2 17 00 [11:36:08]MH_I2C_Read... [11:36:08]Read from MH i2c: E2 17 00 E7 7A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 29 [11:36:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [11:36:08]wFMCommunicate OK [11:36:08]requested_item fd.num is exist - process it [11:36:08]SAM_PROTO_GetFieldsCounters [11:36:08]wFMCommunicate request_size=4 [11:36:08]MH_SAM_APDU [11:36:08]CAPDU: 80 13 00 00 [11:36:08]Write to MH i2c: E2 08 00 E8 7A 80 13 00 00 00 00 00 00 DE [11:36:08]Write i2c OK [11:36:08]MH_I2C_Read... [11:36:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:36:08]Read from MH i2c: E2 [11:36:08]MH_I2C_Read... [11:36:08]Read from MH i2c: E2 62 00 [11:36:08]MH_I2C_Read... [11:36:08]Read from MH i2c: E2 62 00 E8 7A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 52 [11:36: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 61 76 00 00 0E 04 04 00 72 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:36:08]wFMCommunicate OK [11:36:08]SAM_PROTO_GetFieldsCounters done [11:36:08]requested_item shift.num is exist - process it [11:36:08]requested_item shift.opened is exist - process it [11:36:08]req_shift_opened [11:36:08]FM_GetShiftState [11:36:08]SAM_PROTO_GetShiftState [11:36:08]wFMCommunicate request_size=4 [11:36:08]MH_SAM_APDU [11:36:08]CAPDU: 80 13 01 00 [11:36:08]Write to MH i2c: E2 08 00 E9 7A 80 13 01 00 00 00 00 00 E0 [11:36:08]Write i2c OK [11:36:08]MH_I2C_Read... [11:36:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:36:08]Read from MH i2c: E2 [11:36:08]MH_I2C_Read... [11:36:08]Read from MH i2c: E2 0E 00 [11:36:08]MH_I2C_Read... [11:36:08]Read from MH i2c: E2 0E 00 E9 7A 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 C6 [11:36:08]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [11:36:08]wFMCommunicate OK [11:36:08]SAM_PROTO_GetShiftState done [11:36:08]FM_GetShiftState done [11:36:08]req_shift_opened done [11:36:08]requested_item shift.open_date is exist - process it [11:36:08]req_shift_open_date [11:36:08]req_shift_open_date done [11:36:08]produce_requested_data done [11:36:08]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30305,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [11:36:08]process_action_free close_receipt [11:36:08]json_value_free [11:36:08]json_value_free done [11:36:08]process_json_proto returns [11:36:08]Send response to host [11:36:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30305,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [11:36:08]free response buf [11:36:08]execute_script done [11:36:08]execute_script returns [11:36:08]free content buf [11:36:08]Sock 10.Close socket [11:36:08]Sock 10.Thread stoped [11:36:10]accept exits with 7 [11:36:10]New connection [11:36:10]New thread 3067514212 created [11:36:10]Thread 3067370852 joined [11:36:10]Waiting for new connection... [11:36:10] Sock 7.Parse request [11:36:10]Sock 7.Check first char [11:36:10]Sock 7.First char is OK [11:36:10]request: POST /json_proto HTTP/1.0 [11:36:10]Method: POST [11:36:10]URL: /json_proto [11:36:10]Method is POST - this is cgi request [11:36:10]url: /json_proto [11:36:10]query_string will be loaded in cgi processing [11:36:10]execute_cgi json_proto POST (null) [11:36:10]execute_cgi path=json_proto method=POST [11:36:10]POST find Content-Length [11:36:10]Host: 172.17.51.3:8080 [11:36:10]Content-Length: 677 [11:36:10]Content-Type: application/json [11:36:10] [11:36:10]POST finish read [11:36:10]Found Content-Length = 677 [11:36:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342698", "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" ] } } [11:36:10]execute_script... [11:36:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342698", "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" ] } } [11:36:10]POST & json_proto [11:36:10]process_json_proto [11:36:10]json parsed OK: [11:36:10]protocol is kg_v1.0 [11:36:10]action value=close_receipt [11:36:10]process_action close_receipt [11:36:10]cmd_close_receipt [11:36:10]MH_GetDate [11:36:10]Write to MH i2c: F0 00 00 EA 7A 53 [11:36:10]Write i2c OK [11:36:10]MH_I2C_Read... [11:36:10]Read from MH i2c: F0 [11:36:10]MH_I2C_Read... [11:36:10]Read from MH i2c: F0 09 00 [11:36:10]MH_I2C_Read... [11:36:10]Read from MH i2c: F0 09 00 EA 7A 00 33 EB 14 67 04 C1 95 66 B5 [11:36:10]GetLastDocTimeStamp 1729424173 [11:36:10]current date 1729424179 [11:36:10]FM_GetShiftState [11:36:10]SAM_PROTO_GetShiftState [11:36:10]wFMCommunicate request_size=4 [11:36:10]MH_SAM_APDU [11:36:10]CAPDU: 80 13 01 00 [11:36:10]Write to MH i2c: E2 08 00 EB 7A 80 13 01 00 00 00 00 00 E2 [11:36:10]Write i2c OK [11:36:10]MH_I2C_Read... [11:36:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:36:10]Read from MH i2c: E2 [11:36:10]MH_I2C_Read... [11:36:10]Read from MH i2c: E2 0E 00 [11:36:10]MH_I2C_Read... [11:36:10]Read from MH i2c: E2 0E 00 EB 7A 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 C8 [11:36:10]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [11:36:10]wFMCommunicate OK [11:36:10]SAM_PROTO_GetShiftState done [11:36:10]FM_GetShiftState done [11:36:10]opened in 1729384718 [11:36:10]opened+sec_in_day 1729471118 [11:36:10]quantity*price = 20003 [11:36:10]sum+1 = 20004 [11:36:10]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 СНО: Общий режим Чек 88 20.10.2024 11:36 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30306 ФПД: 145934322149915 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T113619&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30306&fm=145934322149915&tin=02508201610067®Number=0000000000186857&sum=20000 [11:36:12]StoreToDocumentArchive [11:36:12]shift 114 fd 30306 [11:36:12]save to /storage/0114/doc_00030306 [11:36:12]save last doc name /storage/0114/doc_00030306 to /storage/kkm_last_doc_name [11:36:12]save OK [11:36:12]Clear old archive folders... [11:36:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:36:12]tlvbuf is 00B9D8D0 [11:36:12]SAM_PROTO_ClearQueue [11:36:12]wFMCommunicate request_size=4 [11:36:12]MH_SAM_APDU [11:36:12]CAPDU: 80 09 00 00 [11:36:12]Write to MH i2c: E2 08 00 F8 7A 80 09 00 00 00 00 00 00 E4 [11:36:12]Write i2c OK [11:36:12]MH_I2C_Read... [11:36:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:36:12]Read from MH i2c: E2 [11:36:12]MH_I2C_Read... [11:36:12]Read from MH i2c: E2 03 00 [11:36:12]MH_I2C_Read... [11:36:12]Read from MH i2c: E2 03 00 F8 7A 00 90 00 E6 [11:36:12]RAPDU: 90 00 [11:36:12]wFMCommunicate OK [11:36:12]SAM_PROTO_ClearQueue done [11:36:12]KKMCreateOFDPacket [11:36:12]OFDProtocolAddRootSTLVToBuf [11:36:12]FM_MakeSignedData [11:36:12]FM_MakeSignedData [11:36:12]SAM_PROTO_SignData [11:36:12]wFMCommunicate request_size=4 [11:36:12]MH_SAM_APDU [11:36:12]CAPDU: 80 0D 01 02 [11:36:12]Write to MH i2c: E2 08 00 F9 7A 80 0D 01 02 00 00 00 00 EC [11:36:12]Write i2c OK [11:36:12]MH_I2C_Read... [11:36:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:36:12]Read from MH i2c: E2 [11:36:12]MH_I2C_Read... [11:36:12]Read from MH i2c: E2 03 00 [11:36:12]MH_I2C_Read... [11:36:12]Read from MH i2c: E2 03 00 F9 7A 00 90 00 E7 [11:36:12]RAPDU: 90 00 [11:36:12]wFMCommunicate OK [11:36:12]wFMCommunicate request_size=255 [11:36:12]MH_SAM_APDU [11:36: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 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 58 00 00 00 F4 03 04 00 33 EB 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 84 [11:36:12]Write to MH i2c: E2 02 01 FA 7A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 58 00 00 00 F4 03 04 00 33 EB 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 84 00 00 FE [11:36:12]Write i2c OK [11:36:12]MH_I2C_Read... [11:36:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:36:12]Read from MH i2c: E2 [11:36:12]MH_I2C_Read... [11:36:12]Read from MH i2c: E2 03 00 [11:36:12]MH_I2C_Read... [11:36:12]Read from MH i2c: E2 03 00 FA 7A 00 90 00 E8 [11:36:12]RAPDU: 90 00 [11:36:12]wFMCommunicate OK [11:36:12]wFMCommunicate request_size=10 [11:36:12]MH_SAM_APDU [11:36:12]CAPDU: 80 0D 02 02 05 B9 FB 6E AA 1B [11:36:12]Write to MH i2c: E2 0D 00 FB 7A 80 0D 02 02 05 00 B9 FB 6E AA 1B 00 00 E0 [11:36:12]Write i2c OK [11:36:12]MH_I2C_Read... [11:36:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:36:12]Read from MH i2c: E2 [11:36:12]MH_I2C_Read... [11:36:12]Read from MH i2c: E2 03 00 [11:36:12]MH_I2C_Read... [11:36:12]Read from MH i2c: E2 03 00 FB 7A 00 90 00 E9 [11:36:12]RAPDU: 90 00 [11:36:12]wFMCommunicate OK [11:36:12]wFMCommunicate request_size=4 [11:36:12]MH_SAM_APDU [11:36:12]CAPDU: 80 0D 03 02 [11:36:12]Write to MH i2c: E2 08 00 FC 7A 80 0D 03 02 00 00 00 00 F1 [11:36:12]Write i2c OK [11:36:12]MH_I2C_Read... [11:36:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:36:12]Read from MH i2c: E2 [11:36:12]MH_I2C_Read... [11:36:12]Read from MH i2c: E2 0B 00 [11:36:12]MH_I2C_Read... [11:36:12]Read from MH i2c: E2 0B 00 FC 7A 00 03 71 06 F9 3E 1E 25 13 90 00 F9 [11:36:12]RAPDU: 03 71 06 F9 3E 1E 25 13 90 00 [11:36:12]wFMCommunicate OK [11:36:12]SAM_PROTO_SignData done [11:36:12]FM_MakeSignedData done [11:36:12]CreateOFDProtocolMessage [11:36:12]wFMCommunicate request_size=4 [11:36:12]MH_SAM_APDU [11:36:12]CAPDU: 80 11 00 00 [11:36:12]Write to MH i2c: E2 08 00 FD 7A 80 11 00 00 00 00 00 00 F1 [11:36:12]Write i2c OK [11:36:12]MH_I2C_Read... [11:36:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:36:12]Read from MH i2c: E2 [11:36:12]MH_I2C_Read... [11:36:12]Read from MH i2c: E2 17 00 [11:36:12]MH_I2C_Read... [11:36:12]Read from MH i2c: E2 17 00 FD 7A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 3F [11:36:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [11:36:12]wFMCommunicate OK [11:36:12]CreateOFDProtocolMessage done [11:36:12]OFDSenderStorePacket 30306 [11:36:12]StoreOFDPacket docnum=30306 [11:36: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 0B 6D 07 01 8C 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 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 58 00 00 00 F4 03 04 00 33 EB 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 84 B9 FB 6E AA 1B 03 71 06 F9 3E 1E 25 13 [11:36:12]CheckFolder [11:36:12]dirname=/storage/ofd_packets [11:36:12]CheckFolder done [11:36:12]ProducePacketName [11:36:12]name=ofd_packets/00030306 [11:36:12]NVStorageSaveData ofd_packets/00030306 [11:36:12]File name is /storage/ofd_packets/00030306 [11:36:12]Write 301 bytes [11:36:12]NVStorageSaveData done [11:36:12]OFDSenderStorePacket done [11:36:12]KKMCreateOFDPacket done [11:36:12]NVStorageSaveData kkm_last_timestamp [11:36:12]File name is /storage/kkm_last_timestamp [11:36:12]Write 4 bytes [11:36:12]NVStorageSaveData done [11:36:12]ExternCall_PrintAddStr [11:36:12]wPrintStart [11:36:12]Write to MH i2c: 01 00 00 FE 7A 78 [11:36:12]OFD Sender: Processing packet 30306 [packets to send 10, broken 9] [11:36:12]ProducePacketName [11:36:12]name=ofd_packets/00030306 [11:36:12]OFD Sender: To server: pG, [11:36:12]CommunicateWithHost lk.salyk.kg:30040 [11:36:12]ConnectInit lk.salyk.kg [11:36:12]Write i2c OK [11:36:12]MH_I2C_Read... [11:36:12]Read from MH i2c: 01 [11:36:12]MH_I2C_Read... [11:36:12]Read from MH i2c: 01 07 00 [11:36:12]MH_I2C_Read... [11:36:12]Read from MH i2c: 01 07 00 FE 7A 00 00 00 00 00 FF 0F 8D [11:36:12]RasterBufferAndPrint [11:36:12]line Счет N : (1)342698 [11:36:12]line ИНН: 02508201610067 [11:36:12]line Контрольно-Кассовый Чек [11:36:12]line ПРОДАЖА [11:36:12]line ТРК (МРК, ГНК) : 33 [11:36:12]line Товар: 2710124130 [11:36:12]line Аи-92-К-2 [11:36:12]line 2.990 * 66.90 [11:36:12]line = 200.03 [11:36:12]line НДС 12% НСП 1% [11:36:12]line > о реализуемом товаре [11:36:12]line ОКРУГЛЕНИЕ: -0.03 [11:36:12]line ИТОГО: 200.00 [11:36:12]line Внесено: 200.00 [11:36:12]line СДАЧА: 0.00 [11:36:12]line НСП 1% : 1.77 [11:36:12]line НДС 12% : 21.24 [11:36:12]line Наличными: 200.00 [11:36:12]line Безнал.: 0.00 [11:36:12]line Место: АЗС № 78 "Партнер Нефть" [11:36:12]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [11:36:12]line СНО: Общий режим [11:36:12]line Чек 88 20.10.2024 11:36 [11:36:12]line Смена: 114 ФФД: 1.0 [11:36:12]line ЗНМ: 0300000137 [11:36:12]line РНМ: 0000000000186857 [11:36:12]line Версия ККМ: v1.0 [11:36:12]line ФМ: 0000000002094219 [11:36:12]line ФД: 30306 [11:36:12]line ФПД: 145934322149915 [11:36:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T113619&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30306&fm=145934322149915&tin=02508201610067®Number=0000000000186857&sum=20000 [11:36:12]written 0, free lines is 4095 [11:36:12]Connected sock=10 [11:36: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 0B 6D 07 01 8C 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 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 58 00 00 00 F4 03 04 00 33 EB 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 84 B9 FB 6E AA 1B 03 71 06 F9 3E 1E 25 13 [11:36: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 97 E9 47 00 B8 10 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 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 76 00 00 F4 03 04 00 B7 95 14 67 B6 04 01 00 00 72 5A F5 27 85 93 44 8F [11:36:12]CommunicateWithHost err = 0 [11:36:12]CheckOFDResponse [11:36:12]1017 (14) - 77093643461234 [11:36:12]1041 (16) - 0000000002094219 [11:36:12]1040 (4) - 30306 [11:36:12]1012 (4) - 20.10.2024 05:31 [11:36:12]1206 (1) - 0 [11:36:12]OFD Sender: Remove packet 30306 [11:36:12]ProducePacketName [11:36:12]name=ofd_packets/00030306 [11:36:12]NVStorageDeleteData [11:36:13]Write to MH i2c: 01 00 00 29 7B A4 [11:36:13]Write i2c OK [11:36:13]MH_I2C_Read... [11:36:13]Read from MH i2c: 01 [11:36:13]MH_I2C_Read... [11:36:13]Read from MH i2c: 01 07 00 [11:36:13]MH_I2C_Read... [11:36:13]Read from MH i2c: 01 07 00 29 7B 00 00 00 00 00 FA 0C B1 [11:36:13]RasterBufferAndPrint [11:36:13]line [11:36:13]line [11:36:13]line [11:36:13]line [11:36:13]line [11:36:13]written 0, free lines is 3337 [11:36:13]MH_Cut [11:36:13]Write to MH i2c: D1 01 00 30 7B 01 7D [11:36:13]Write i2c OK [11:36:13]MH_I2C_Read... [11:36:13]Read from MH i2c: D1 [11:36:13]MH_I2C_Read... [11:36:13]Read from MH i2c: D1 01 00 [11:36:13]MH_I2C_Read... [11:36:13]Read from MH i2c: D1 01 00 30 7B 00 7C [11:36:13]Write to MH i2c: 01 00 00 31 7B AC [11:36:13]Write i2c OK [11:36:13]MH_I2C_Read... [11:36:13]OFD Sender: No OFD packet to send [11:36:13]*** Cut start [11:36:13]*** Partial cut [11:36:13]*** CUTSNS_PIN = 1 [11:36:13]*** CUTSNS_PIN = 0 [11:36:14]*** Brake cut motor [11:36:14]Read from MH i2c: 01 [11:36:14]MH_I2C_Read... [11:36:14]*** Stop cut motor [11:36:14]*** Cut end [11:36:14]Read from MH i2c: 01 07 00 [11:36:14]MH_I2C_Read... [11:36:14]Read from MH i2c: 01 07 00 31 7B 00 00 00 00 00 FF 0F C1 [11:36:14]process_action close_receipt done [11:36:14]requested_data is exist [11:36:14]produce_requested_data [11:36:14]requested_item fm.sn is exist - process it [11:36:14]wFMCommunicate request_size=4 [11:36:14]MH_SAM_APDU [11:36:14]CAPDU: 80 11 00 00 [11:36:14]Write to MH i2c: E2 08 00 32 7B 80 11 00 00 00 00 00 00 27 [11:36:14]Write i2c OK [11:36:14]MH_I2C_Read... [11:36:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:36:14]Read from MH i2c: E2 [11:36:14]MH_I2C_Read... [11:36:14]Read from MH i2c: E2 17 00 [11:36:14]MH_I2C_Read... [11:36:14]Read from MH i2c: E2 17 00 32 7B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 75 [11:36: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:36:14]wFMCommunicate OK [11:36:14]requested_item fd.num is exist - process it [11:36:14]SAM_PROTO_GetFieldsCounters [11:36:14]wFMCommunicate request_size=4 [11:36:14]MH_SAM_APDU [11:36:14]CAPDU: 80 13 00 00 [11:36:14]Write to MH i2c: E2 08 00 33 7B 80 13 00 00 00 00 00 00 2A [11:36:14]Write i2c OK [11:36:14]MH_I2C_Read... [11:36:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:36:14]Read from MH i2c: E2 [11:36:14]MH_I2C_Read... [11:36:14]Read from MH i2c: E2 62 00 [11:36:14]MH_I2C_Read... [11:36:14]Read from MH i2c: E2 62 00 33 7B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 A2 [11:36: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 62 76 00 00 0E 04 04 00 72 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 [11:36:14]wFMCommunicate OK [11:36:14]SAM_PROTO_GetFieldsCounters done [11:36:14]requested_item shift.num is exist - process it [11:36:14]requested_item shift.opened is exist - process it [11:36:14]req_shift_opened [11:36:14]FM_GetShiftState [11:36:14]SAM_PROTO_GetShiftState [11:36:14]wFMCommunicate request_size=4 [11:36:14]MH_SAM_APDU [11:36:14]CAPDU: 80 13 01 00 [11:36:14]Write to MH i2c: E2 08 00 34 7B 80 13 01 00 00 00 00 00 2C [11:36:14]Write i2c OK [11:36:14]MH_I2C_Read... [11:36:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:36:14]Read from MH i2c: E2 [11:36:14]MH_I2C_Read... [11:36:14]Read from MH i2c: E2 0E 00 [11:36:14]MH_I2C_Read... [11:36:14]Read from MH i2c: E2 0E 00 34 7B 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 12 [11:36:14]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [11:36:14]wFMCommunicate OK [11:36:14]SAM_PROTO_GetShiftState done [11:36:14]FM_GetShiftState done [11:36:14]req_shift_opened done [11:36:14]requested_item shift.open_date is exist - process it [11:36:14]req_shift_open_date [11:36:14]req_shift_open_date done [11:36:14]produce_requested_data done [11:36:14]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30306,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [11:36:14]process_action_free close_receipt [11:36:14]json_value_free [11:36:14]json_value_free done [11:36:14]process_json_proto returns [11:36:14]Send response to host [11:36:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30306,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [11:36:14]free response buf [11:36:14]execute_script done [11:36:14]execute_script returns [11:36:14]free content buf [11:36:14]Sock 7.Close socket [11:36:14]Sock 7.Thread stoped [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:44]accept exits with 9 [11:37:44]New connection [11:37:44]New thread 3067370852 created [11:37:44]Thread 3067514212 joined [11:37:44]Waiting for new connection... [11:37:44] Sock 9.Parse request [11:37:44]Sock 9.Check first char [11:37:44]Sock 9.First char is OK [11:37:44]request: POST /json_proto HTTP/1.0 [11:37:44]Method: POST [11:37:44]URL: /json_proto [11:37:44]Method is POST - this is cgi request [11:37:44]url: /json_proto [11:37:44]query_string will be loaded in cgi processing [11:37:44]execute_cgi json_proto POST (null) [11:37:44]execute_cgi path=json_proto method=POST [11:37:44]POST find Content-Length [11:37:44]Host: 172.17.51.3:8080 [11:37:44]Content-Length: 843 [11:37:44]Content-Type: application/json [11:37:44] [11:37:44]POST finish read [11:37:44]Found Content-Length = 843 [11:37:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342699", "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" ] } } [11:37:44]execute_script... [11:37: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)342699", "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" ] } } [11:37:44]POST & json_proto [11:37:44]process_json_proto [11:37:44]json parsed OK: [11:37:44]protocol is kg_v1.0 [11:37:44]action value=close_receipt [11:37:44]process_action close_receipt [11:37:44]cmd_close_receipt [11:37:44]MH_GetDate [11:37:44]Write to MH i2c: F0 00 00 35 7B 9F [11:37:44]Write i2c OK [11:37:44]MH_I2C_Read... [11:37:44]Read from MH i2c: F0 [11:37:44]MH_I2C_Read... [11:37:44]Read from MH i2c: F0 09 00 [11:37:44]MH_I2C_Read... [11:37:44]Read from MH i2c: F0 09 00 35 7B 00 91 EB 14 67 04 C1 95 66 5F [11:37:44]GetLastDocTimeStamp 1729424179 [11:37:44]current date 1729424273 [11:37:44]FM_GetShiftState [11:37:44]SAM_PROTO_GetShiftState [11:37:44]wFMCommunicate request_size=4 [11:37:44]MH_SAM_APDU [11:37:44]CAPDU: 80 13 01 00 [11:37:44]Write to MH i2c: E2 08 00 36 7B 80 13 01 00 00 00 00 00 2E [11:37:44]Write i2c OK [11:37:44]MH_I2C_Read... [11:37:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:37:44]Read from MH i2c: E2 [11:37:44]MH_I2C_Read... [11:37:44]Read from MH i2c: E2 0E 00 [11:37:44]MH_I2C_Read... [11:37:44]Read from MH i2c: E2 0E 00 36 7B 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 14 [11:37:44]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [11:37:44]wFMCommunicate OK [11:37:44]SAM_PROTO_GetShiftState done [11:37:44]FM_GetShiftState done [11:37:44]opened in 1729384718 [11:37:44]opened+sec_in_day 1729471118 [11:37:44]quantity*price = 100015 [11:37:44]sum+1 = 100017 [11:37: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 СНО: Общий режим Чек 89 20.10.2024 11:37 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Платежная система: АКБ Кыргызстан ФМ: 0000000002094219 ФД: 30307 ФПД: 10497821591060 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T113754&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30307&fm=10497821591060&tin=02508201610067®Number=0000000000186857&sum=100016 [11:37:45]StoreToDocumentArchive [11:37:45]shift 114 fd 30307 [11:37:45]save to /storage/0114/doc_00030307 [11:37:45]save last doc name /storage/0114/doc_00030307 to /storage/kkm_last_doc_name [11:37:45]save OK [11:37:45]Clear old archive folders... [11:37:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:37:46]tlvbuf is 00B9D1A0 [11:37:46]SAM_PROTO_ClearQueue [11:37:46]wFMCommunicate request_size=4 [11:37:46]MH_SAM_APDU [11:37:46]CAPDU: 80 09 00 00 [11:37:46]Write to MH i2c: E2 08 00 43 7B 80 09 00 00 00 00 00 00 30 [11:37:46]Write i2c OK [11:37:46]MH_I2C_Read... [11:37:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:37:46]Read from MH i2c: E2 [11:37:46]MH_I2C_Read... [11:37:46]Read from MH i2c: E2 03 00 [11:37:46]MH_I2C_Read... [11:37:46]Read from MH i2c: E2 03 00 43 7B 00 90 00 32 [11:37:46]RAPDU: 90 00 [11:37:46]wFMCommunicate OK [11:37:46]SAM_PROTO_ClearQueue done [11:37:46]KKMCreateOFDPacket [11:37:46]OFDProtocolAddRootSTLVToBuf [11:37:46]FM_MakeSignedData [11:37:46]FM_MakeSignedData [11:37:46]SAM_PROTO_SignData [11:37:46]wFMCommunicate request_size=4 [11:37:46]MH_SAM_APDU [11:37:46]CAPDU: 80 0D 01 02 [11:37:46]Write to MH i2c: E2 08 00 44 7B 80 0D 01 02 00 00 00 00 38 [11:37:46]Write i2c OK [11:37:46]MH_I2C_Read... [11:37:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:37:46]Read from MH i2c: E2 [11:37:46]MH_I2C_Read... [11:37:46]Read from MH i2c: E2 03 00 [11:37:46]MH_I2C_Read... [11:37:46]Read from MH i2c: E2 03 00 44 7B 00 90 00 33 [11:37:46]RAPDU: 90 00 [11:37:46]wFMCommunicate OK [11:37:46]wFMCommunicate request_size=255 [11:37:46]MH_SAM_APDU [11:37: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 59 00 00 00 F4 03 04 00 92 EB 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 09 [11:37:46]Write to MH i2c: E2 02 01 45 7B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 59 00 00 00 F4 03 04 00 92 EB 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 09 00 00 88 [11:37:46]Write i2c OK [11:37:46]MH_I2C_Read... [11:37:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:37:46]Read from MH i2c: E2 [11:37:46]MH_I2C_Read... [11:37:46]Read from MH i2c: E2 03 00 [11:37:46]MH_I2C_Read... [11:37:46]Read from MH i2c: E2 03 00 45 7B 00 90 00 34 [11:37:46]RAPDU: 90 00 [11:37:46]wFMCommunicate OK [11:37:46]wFMCommunicate request_size=10 [11:37:46]MH_SAM_APDU [11:37:46]CAPDU: 80 0D 02 02 05 8C 36 ED 46 14 [11:37:46]Write to MH i2c: E2 0D 00 46 7B 80 0D 02 02 05 00 8C 36 ED 46 14 00 00 4E [11:37:46]Write i2c OK [11:37:46]MH_I2C_Read... [11:37:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:37:46]Read from MH i2c: E2 [11:37:46]MH_I2C_Read... [11:37:46]Read from MH i2c: E2 03 00 [11:37:46]MH_I2C_Read... [11:37:46]Read from MH i2c: E2 03 00 46 7B 00 90 00 35 [11:37:46]RAPDU: 90 00 [11:37:46]wFMCommunicate OK [11:37:46]wFMCommunicate request_size=4 [11:37:46]MH_SAM_APDU [11:37:46]CAPDU: 80 0D 03 02 [11:37:46]Write to MH i2c: E2 08 00 47 7B 80 0D 03 02 00 00 00 00 3D [11:37:46]Write i2c OK [11:37:46]MH_I2C_Read... [11:37:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:37:46]Read from MH i2c: E2 [11:37:46]MH_I2C_Read... [11:37:46]Read from MH i2c: E2 0B 00 [11:37:46]MH_I2C_Read... [11:37:46]Read from MH i2c: E2 0B 00 47 7B 00 35 FB 49 C6 A2 46 9C DB 90 00 DC [11:37:46]RAPDU: 35 FB 49 C6 A2 46 9C DB 90 00 [11:37:46]wFMCommunicate OK [11:37:46]SAM_PROTO_SignData done [11:37:46]FM_MakeSignedData done [11:37:46]CreateOFDProtocolMessage [11:37:46]wFMCommunicate request_size=4 [11:37:46]MH_SAM_APDU [11:37:46]CAPDU: 80 11 00 00 [11:37:46]Write to MH i2c: E2 08 00 48 7B 80 11 00 00 00 00 00 00 3D [11:37:46]Write i2c OK [11:37:46]MH_I2C_Read... [11:37:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:37:46]Read from MH i2c: E2 [11:37:46]MH_I2C_Read... [11:37:46]Read from MH i2c: E2 17 00 [11:37:46]MH_I2C_Read... [11:37:46]Read from MH i2c: E2 17 00 48 7B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 8B [11:37: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:37:46]wFMCommunicate OK [11:37:46]CreateOFDProtocolMessage done [11:37:46]OFDSenderStorePacket 30307 [11:37:46]StoreOFDPacket docnum=30307 [11:37: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 B0 40 07 01 81 99 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 59 00 00 00 F4 03 04 00 92 EB 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 09 8C 36 ED 46 14 35 FB 49 C6 A2 46 9C DB [11:37:46]CheckFolder [11:37:46]dirname=/storage/ofd_packets [11:37:46]CheckFolder done [11:37:46]ProducePacketName [11:37:46]name=ofd_packets/00030307 [11:37:46]NVStorageSaveData ofd_packets/00030307 [11:37:46]File name is /storage/ofd_packets/00030307 [11:37:46]Write 301 bytes [11:37:46]NVStorageSaveData done [11:37:46]OFDSenderStorePacket done [11:37:46]KKMCreateOFDPacket done [11:37:46]NVStorageSaveData kkm_last_timestamp [11:37:46]File name is /storage/kkm_last_timestamp [11:37:46]Write 4 bytes [11:37:46]NVStorageSaveData done [11:37:46]ExternCall_PrintAddStr [11:37:46]wPrintStart [11:37:46]Write to MH i2c: 01 00 00 49 7B C4 [11:37:46]Write i2c OK [11:37:46]MH_I2C_Read... [11:37:46]Read from MH i2c: 01 [11:37:46]MH_I2C_Read... [11:37:46]Read from MH i2c: 01 07 00 [11:37:46]MH_I2C_Read... [11:37:46]Read from MH i2c: 01 07 00 49 7B 00 00 00 00 00 FF 0F D9 [11:37:46]RasterBufferAndPrint [11:37:46]line Счет N : (1)342699 [11:37:46]line ИНН: 02508201610067 [11:37:46]line Контрольно-Кассовый Чек [11:37:46]line ПРОДАЖА [11:37:46]line ТРК (МРК, ГНК) : 53 [11:37:46]line Товар: 2710124130 [11:37:46]line Аи-92-К-2 [11:37:46]line 14.950 * 66.90 [11:37:46]line = 1000.16 [11:37:46]line НДС 12% НСП 1% [11:37:46]line > о реализуемом товаре [11:37:46]line ИТОГО: 1000.16 [11:37:46]line НСП 1% : 8.85 [11:37:46]line НДС 12% : 106.21 [11:37:46]line Наличными: 0.00 [11:37:46]line Безнал.: 1000.16 [11:37:46]line Место: АЗС № 78 "Партнер Нефть" [11:37:46]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [11:37:46]line СНО: Общий режим [11:37:46]line Чек 89 20.10.2024 11:37 [11:37:46]line Смена: 114 ФФД: 1.0 [11:37:46]line ЗНМ: 0300000137 [11:37:46]line РНМ: 0000000000186857 [11:37:46]line Версия ККМ: v1.0 [11:37:46]line Платежная система: АКБ Кыргызстан [11:37:46]line ФМ: 0000000002094219 [11:37:46]line ФД: 30307 [11:37:46]line ФПД: 10497821591060 [11:37:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T113754&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30307&fm=10497821591060&tin=02508201610067®Number=0000000000186857&sum=100016 [11:37:46]OFD Sender: Processing packet 30307 [packets to send 10, broken 9] [11:37:46]ProducePacketName [11:37:46]name=ofd_packets/00030307 [11:37:46]OFD Sender: To server: pG, [11:37:46]CommunicateWithHost lk.salyk.kg:30040 [11:37:46]ConnectInit lk.salyk.kg [11:37:46]written 0, free lines is 4095 [11:37:46]Connected sock=7 [11:37: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 B0 40 07 01 81 99 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 59 00 00 00 F4 03 04 00 92 EB 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 09 8C 36 ED 46 14 35 FB 49 C6 A2 46 9C DB [11:37: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 9B 0E 47 00 49 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 63 76 00 00 F4 03 04 00 16 96 14 67 B6 04 01 00 00 07 CD E6 64 8D 86 40 90 [11:37:47]CommunicateWithHost err = 0 [11:37:47]CheckOFDResponse [11:37:47]1017 (14) - 77093643461234 [11:37:47]1041 (16) - 0000000002094219 [11:37:47]1040 (4) - 30307 [11:37:47]1012 (4) - 20.10.2024 05:33 [11:37:47]1206 (1) - 0 [11:37:47]OFD Sender: Remove packet 30307 [11:37:47]ProducePacketName [11:37:47]name=ofd_packets/00030307 [11:37:47]NVStorageDeleteData [11:37:47]Write to MH i2c: 01 00 00 73 7B EE [11:37:47]Write i2c OK [11:37:47]MH_I2C_Read... [11:37:47]Read from MH i2c: 01 [11:37:47]MH_I2C_Read... [11:37:47]Read from MH i2c: 01 07 00 [11:37:47]MH_I2C_Read... [11:37:47]Read from MH i2c: 01 07 00 73 7B 00 00 00 00 00 02 0D 04 [11:37:47]RasterBufferAndPrint [11:37:47]line [11:37:47]line [11:37:47]line [11:37:47]line [11:37:47]line [11:37:47]written 0, free lines is 3339 [11:37:47]MH_Cut [11:37:47]Write to MH i2c: D1 01 00 7A 7B 01 C7 [11:37:47]Write i2c OK [11:37:47]MH_I2C_Read... [11:37:47]Read from MH i2c: D1 [11:37:47]MH_I2C_Read... [11:37:47]Read from MH i2c: D1 01 00 [11:37:47]MH_I2C_Read... [11:37:47]Read from MH i2c: D1 01 00 7A 7B 00 C6 [11:37:47]Write to MH i2c: 01 00 00 7B 7B F6 [11:37:47]Write i2c OK [11:37:47]MH_I2C_Read... [11:37:47]OFD Sender: No OFD packet to send [11:37:47]*** Cut start [11:37:47]*** Partial cut [11:37:47]*** CUTSNS_PIN = 1 [11:37:48]*** CUTSNS_PIN = 0 [11:37:48]*** Brake cut motor [11:37:48]Read from MH i2c: 01 [11:37:48]MH_I2C_Read... [11:37:48]*** Stop cut motor [11:37:48]*** Cut end [11:37:48]Read from MH i2c: 01 07 00 [11:37:48]MH_I2C_Read... [11:37:48]Read from MH i2c: 01 07 00 7B 7B 00 00 00 00 00 FF 0F 0B [11:37:48]process_action close_receipt done [11:37:48]requested_data is exist [11:37:48]produce_requested_data [11:37:48]requested_item fm.sn is exist - process it [11:37:48]wFMCommunicate request_size=4 [11:37:48]MH_SAM_APDU [11:37:48]CAPDU: 80 11 00 00 [11:37:48]Write to MH i2c: E2 08 00 7C 7B 80 11 00 00 00 00 00 00 71 [11:37:48]Write i2c OK [11:37:48]MH_I2C_Read... [11:37:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:37:48]Read from MH i2c: E2 [11:37:48]MH_I2C_Read... [11:37:48]Read from MH i2c: E2 17 00 [11:37:48]MH_I2C_Read... [11:37:48]Read from MH i2c: E2 17 00 7C 7B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 BF [11:37: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:37:48]wFMCommunicate OK [11:37:48]requested_item fd.num is exist - process it [11:37:48]SAM_PROTO_GetFieldsCounters [11:37:48]wFMCommunicate request_size=4 [11:37:48]MH_SAM_APDU [11:37:48]CAPDU: 80 13 00 00 [11:37:48]Write to MH i2c: E2 08 00 7D 7B 80 13 00 00 00 00 00 00 74 [11:37:48]Write i2c OK [11:37:48]MH_I2C_Read... [11:37:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:37:48]Read from MH i2c: E2 [11:37:48]MH_I2C_Read... [11:37:48]Read from MH i2c: E2 62 00 [11:37:48]MH_I2C_Read... [11:37:48]Read from MH i2c: E2 62 00 7D 7B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 F0 [11:37: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 63 76 00 00 0E 04 04 00 72 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 [11:37:48]wFMCommunicate OK [11:37:48]SAM_PROTO_GetFieldsCounters done [11:37:48]requested_item shift.num is exist - process it [11:37:48]requested_item shift.opened is exist - process it [11:37:48]req_shift_opened [11:37:48]FM_GetShiftState [11:37:48]SAM_PROTO_GetShiftState [11:37:48]wFMCommunicate request_size=4 [11:37:48]MH_SAM_APDU [11:37:48]CAPDU: 80 13 01 00 [11:37:48]Write to MH i2c: E2 08 00 7E 7B 80 13 01 00 00 00 00 00 76 [11:37:48]Write i2c OK [11:37:48]MH_I2C_Read... [11:37:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:37:48]Read from MH i2c: E2 [11:37:48]MH_I2C_Read... [11:37:48]Read from MH i2c: E2 0E 00 [11:37:48]MH_I2C_Read... [11:37:48]Read from MH i2c: E2 0E 00 7E 7B 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 5C [11:37:48]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [11:37:48]wFMCommunicate OK [11:37:48]SAM_PROTO_GetShiftState done [11:37:48]FM_GetShiftState done [11:37:48]req_shift_opened done [11:37:48]requested_item shift.open_date is exist - process it [11:37:48]req_shift_open_date [11:37:48]req_shift_open_date done [11:37:48]produce_requested_data done [11:37:48]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30307,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [11:37:48]process_action_free close_receipt [11:37:48]json_value_free [11:37:48]json_value_free done [11:37:48]process_json_proto returns [11:37:48]Send response to host [11:37:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30307,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [11:37:48]free response buf [11:37:48]execute_script done [11:37:48]execute_script returns [11:37:48]free content buf [11:37:48]Sock 9.Close socket [11:37:48]Sock 9.Thread stoped [11:37:52]OFD Sender: No OFD packet to send [11:37:57]OFD Sender: No OFD packet to send [11:38:02]OFD Sender: No OFD packet to send [11:38:07]OFD Sender: No OFD packet to send [11:38:12]OFD Sender: No OFD packet to send [11:38:17]OFD Sender: No OFD packet to send [11:38:22]OFD Sender: No OFD packet to send [11:38:27]OFD Sender: No OFD packet to send [11:38:32]OFD Sender: No OFD packet to send [11:38:37]OFD Sender: No OFD packet to send [11:38:42]OFD Sender: No OFD packet to send [11:38:47]OFD Sender: No OFD packet to send [11:38:52]OFD Sender: No OFD packet to send [11:38:57]OFD Sender: No OFD packet to send [11:39:02]OFD Sender: No OFD packet to send [11:39:07]OFD Sender: No OFD packet to send [11:39:12]OFD Sender: No OFD packet to send [11:39:17]OFD Sender: No OFD packet to send [11:39:22]accept exits with 10 [11:39:22]New connection [11:39:22]New thread 3067514212 created [11:39:22]Thread 3067370852 joined [11:39:22]Waiting for new connection... [11:39:22] Sock 10.Parse request [11:39:22]Sock 10.Check first char [11:39:22]Sock 10.First char is OK [11:39:22]request: POST /json_proto HTTP/1.0 [11:39:22]Method: POST [11:39:22]URL: /json_proto [11:39:22]Method is POST - this is cgi request [11:39:22]url: /json_proto [11:39:22]query_string will be loaded in cgi processing [11:39:22]execute_cgi json_proto POST (null) [11:39:22]execute_cgi path=json_proto method=POST [11:39:22]POST find Content-Length [11:39:22]Host: 172.17.51.3:8080 [11:39:22]Content-Length: 677 [11:39:22]Content-Type: application/json [11:39:22] [11:39:22]POST finish read [11:39:22]Found Content-Length = 677 [11:39:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342700", "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" ] } } [11:39:22]execute_script... [11:39: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)342700", "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" ] } } [11:39:22]POST & json_proto [11:39:22]process_json_proto [11:39:22]json parsed OK: [11:39:22]protocol is kg_v1.0 [11:39:22]action value=close_receipt [11:39:22]process_action close_receipt [11:39:22]cmd_close_receipt [11:39:22]MH_GetDate [11:39:22]Write to MH i2c: F0 00 00 7F 7B E9 [11:39:22]Write i2c OK [11:39:22]MH_I2C_Read... [11:39:22]Read from MH i2c: F0 [11:39:22]MH_I2C_Read... [11:39:22]Read from MH i2c: F0 09 00 [11:39:22]MH_I2C_Read... [11:39:22]Read from MH i2c: F0 09 00 7F 7B 00 F3 EB 14 67 04 C1 95 66 0B [11:39:22]GetLastDocTimeStamp 1729424274 [11:39:22]current date 1729424371 [11:39:22]FM_GetShiftState [11:39:22]SAM_PROTO_GetShiftState [11:39:22]wFMCommunicate request_size=4 [11:39:22]MH_SAM_APDU [11:39:22]CAPDU: 80 13 01 00 [11:39:22]Write to MH i2c: E2 08 00 80 7B 80 13 01 00 00 00 00 00 78 [11:39:22]Write i2c OK [11:39:22]MH_I2C_Read... [11:39:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:39:22]Read from MH i2c: E2 [11:39:22]MH_I2C_Read... [11:39:22]Read from MH i2c: E2 0E 00 [11:39:22]MH_I2C_Read... [11:39:22]Read from MH i2c: E2 0E 00 80 7B 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 5E [11:39:22]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [11:39:22]wFMCommunicate OK [11:39:22]SAM_PROTO_GetShiftState done [11:39:22]FM_GetShiftState done [11:39:22]opened in 1729384718 [11:39:22]opened+sec_in_day 1729471118 [11:39:22]quantity*price = 30038 [11:39:22]sum+1 = 30039 [11:39:22]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 СНО: Общий режим Чек 90 20.10.2024 11:39 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30308 ФПД: 260380279590304 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T113931&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30308&fm=260380279590304&tin=02508201610067®Number=0000000000186857&sum=30000 [11:39:23]StoreToDocumentArchive [11:39:23]shift 114 fd 30308 [11:39:23]save to /storage/0114/doc_00030308 [11:39:23]save last doc name /storage/0114/doc_00030308 to /storage/kkm_last_doc_name [11:39:23]save OK [11:39:23]Clear old archive folders... [11:39:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:39:23]tlvbuf is 00CA7BA0 [11:39:23]SAM_PROTO_ClearQueue [11:39:23]wFMCommunicate request_size=4 [11:39:23]MH_SAM_APDU [11:39:23]CAPDU: 80 09 00 00 [11:39:23]Write to MH i2c: E2 08 00 8D 7B 80 09 00 00 00 00 00 00 7A [11:39:23]Write i2c OK [11:39:23]MH_I2C_Read... [11:39:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:39:23]Read from MH i2c: E2 [11:39:23]MH_I2C_Read... [11:39:23]Read from MH i2c: E2 03 00 [11:39:23]MH_I2C_Read... [11:39:23]Read from MH i2c: E2 03 00 8D 7B 00 90 00 7C [11:39:23]RAPDU: 90 00 [11:39:23]wFMCommunicate OK [11:39:23]SAM_PROTO_ClearQueue done [11:39:23]KKMCreateOFDPacket [11:39:23]OFDProtocolAddRootSTLVToBuf [11:39:23]FM_MakeSignedData [11:39:23]FM_MakeSignedData [11:39:23]SAM_PROTO_SignData [11:39:23]wFMCommunicate request_size=4 [11:39:23]MH_SAM_APDU [11:39:23]CAPDU: 80 0D 01 02 [11:39:23]Write to MH i2c: E2 08 00 8E 7B 80 0D 01 02 00 00 00 00 82 [11:39:23]Write i2c OK [11:39:23]MH_I2C_Read... [11:39:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:39:23]Read from MH i2c: E2 [11:39:23]MH_I2C_Read... [11:39:23]Read from MH i2c: E2 03 00 [11:39:23]MH_I2C_Read... [11:39:23]Read from MH i2c: E2 03 00 8E 7B 00 90 00 7D [11:39:23]RAPDU: 90 00 [11:39:23]wFMCommunicate OK [11:39:23]wFMCommunicate request_size=255 [11:39:23]MH_SAM_APDU [11:39: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 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 5A 00 00 00 F4 03 04 00 F3 EB 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 EC [11:39:23]Write to MH i2c: E2 02 01 8F 7B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 5A 00 00 00 F4 03 04 00 F3 EB 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 EC 00 00 F2 [11:39:23]Write i2c OK [11:39:23]MH_I2C_Read... [11:39:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:39:23]Read from MH i2c: E2 [11:39:23]MH_I2C_Read... [11:39:23]Read from MH i2c: E2 03 00 [11:39:23]MH_I2C_Read... [11:39:23]Read from MH i2c: E2 03 00 8F 7B 00 90 00 7E [11:39:23]RAPDU: 90 00 [11:39:23]wFMCommunicate OK [11:39:23]wFMCommunicate request_size=10 [11:39:23]MH_SAM_APDU [11:39:23]CAPDU: 80 0D 02 02 05 D0 82 12 4D A0 [11:39:23]Write to MH i2c: E2 0D 00 90 7B 80 0D 02 02 05 00 D0 82 12 4D A0 00 00 E0 [11:39:23]Write i2c OK [11:39:23]MH_I2C_Read... [11:39:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:39:23]Read from MH i2c: E2 [11:39:23]MH_I2C_Read... [11:39:23]Read from MH i2c: E2 03 00 [11:39:23]MH_I2C_Read... [11:39:23]Read from MH i2c: E2 03 00 90 7B 00 90 00 7F [11:39:23]RAPDU: 90 00 [11:39:23]wFMCommunicate OK [11:39:23]wFMCommunicate request_size=4 [11:39:23]MH_SAM_APDU [11:39:23]CAPDU: 80 0D 03 02 [11:39:23]Write to MH i2c: E2 08 00 91 7B 80 0D 03 02 00 00 00 00 87 [11:39:23]Write i2c OK [11:39:23]MH_I2C_Read... [11:39:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:39:23]Read from MH i2c: E2 [11:39:23]MH_I2C_Read... [11:39:23]Read from MH i2c: E2 0B 00 [11:39:23]MH_I2C_Read... [11:39:23]Read from MH i2c: E2 0B 00 91 7B 00 97 1C 49 36 7D 55 9F B1 90 00 DC [11:39:23]RAPDU: 97 1C 49 36 7D 55 9F B1 90 00 [11:39:23]wFMCommunicate OK [11:39:23]SAM_PROTO_SignData done [11:39:23]FM_MakeSignedData done [11:39:23]CreateOFDProtocolMessage [11:39:23]wFMCommunicate request_size=4 [11:39:23]MH_SAM_APDU [11:39:23]CAPDU: 80 11 00 00 [11:39:23]Write to MH i2c: E2 08 00 92 7B 80 11 00 00 00 00 00 00 87 [11:39:23]Write i2c OK [11:39:23]MH_I2C_Read... [11:39:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:39:23]Read from MH i2c: E2 [11:39:23]MH_I2C_Read... [11:39:23]Read from MH i2c: E2 17 00 [11:39:23]MH_I2C_Read... [11:39:23]Read from MH i2c: E2 17 00 92 7B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 D5 [11:39: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:39:23]wFMCommunicate OK [11:39:23]CreateOFDProtocolMessage done [11:39:23]OFDSenderStorePacket 30308 [11:39:23]StoreOFDPacket docnum=30308 [11:39: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 EB AF 07 01 06 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 5A 00 00 00 F4 03 04 00 F3 EB 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 EC D0 82 12 4D A0 97 1C 49 36 7D 55 9F B1 [11:39:23]CheckFolder [11:39:23]dirname=/storage/ofd_packets [11:39:23]CheckFolder done [11:39:23]ProducePacketName [11:39:23]name=ofd_packets/00030308 [11:39:23]NVStorageSaveData ofd_packets/00030308 [11:39:23]File name is /storage/ofd_packets/00030308 [11:39:23]Write 301 bytes [11:39:23]NVStorageSaveData done [11:39:23]OFDSenderStorePacket done [11:39:23]KKMCreateOFDPacket done [11:39:23]NVStorageSaveData kkm_last_timestamp [11:39:23]File name is /storage/kkm_last_timestamp [11:39:23]Write 4 bytes [11:39:23]NVStorageSaveData done [11:39:23]ExternCall_PrintAddStr [11:39:23]wPrintStart [11:39:23]Write to MH i2c: 01 00 00 93 7B 0E [11:39:23]Write i2c OK [11:39:23]MH_I2C_Read... [11:39:23]Read from MH i2c: 01 [11:39:23]MH_I2C_Read... [11:39:23]Read from MH i2c: 01 07 00 [11:39:23]MH_I2C_Read... [11:39:23]Read from MH i2c: 01 07 00 93 7B 00 00 00 00 00 FF 0F 23 [11:39:23]RasterBufferAndPrint [11:39:23]line Счет N : (1)342700 [11:39:23]line ИНН: 02508201610067 [11:39:23]line Контрольно-Кассовый Чек [11:39:23]line ПРОДАЖА [11:39:23]line ТРК (МРК, ГНК) : 33 [11:39:23]line Товар: 2710124130 [11:39:23]line Аи-92-К-2 [11:39:23]line 4.490 * 66.90 [11:39:23]line = 300.38 [11:39:23]line НДС 12% НСП 1% [11:39:23]line > о реализуемом товаре [11:39:23]line ОКРУГЛЕНИЕ: -0.38 [11:39:23]line ИТОГО: 300.00 [11:39:23]line Внесено: 300.00 [11:39:23]line СДАЧА: 0.00 [11:39:23]line НСП 1% : 2.66 [11:39:23]line НДС 12% : 31.90 [11:39:23]line Наличными: 300.00 [11:39:23]line Безнал.: 0.00 [11:39:23]line Место: АЗС № 78 "Партнер Нефть" [11:39:23]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [11:39:23]line СНО: Общий режим [11:39:23]line Чек 90 20.10.2024 11:39 [11:39:23]line Смена: 114 ФФД: 1.0 [11:39:23]line ЗНМ: 0300000137 [11:39:23]line РНМ: 0000000000186857 [11:39:23]line Версия ККМ: v1.0 [11:39:23]line ФМ: 0000000002094219 [11:39:23]line ФД: 30308 [11:39:23]line ФПД: 260380279590304 [11:39:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T113931&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30308&fm=260380279590304&tin=02508201610067®Number=0000000000186857&sum=30000 [11:39:24]OFD Sender: Processing packet 30308 [packets to send 10, broken 9] [11:39:24]ProducePacketName [11:39:24]name=ofd_packets/00030308 [11:39:24]OFD Sender: To server: pG, [11:39:24]CommunicateWithHost lk.salyk.kg:30040 [11:39:24]ConnectInit lk.salyk.kg [11:39:24]written 0, free lines is 4095 [11:39:24]Connected sock=9 [11:39: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 EB AF 07 01 06 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 5A 00 00 00 F4 03 04 00 F3 EB 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 EC D0 82 12 4D A0 97 1C 49 36 7D 55 9F B1 [11:39: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 8F 68 47 00 47 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 64 76 00 00 F4 03 04 00 77 96 14 67 B6 04 01 00 00 C1 15 A8 56 61 78 2B EC [11:39:24]CommunicateWithHost err = 0 [11:39:24]CheckOFDResponse [11:39:24]1017 (14) - 77093643461234 [11:39:24]1041 (16) - 0000000002094219 [11:39:24]1040 (4) - 30308 [11:39:24]1012 (4) - 20.10.2024 05:34 [11:39:24]1206 (1) - 0 [11:39:24]OFD Sender: Remove packet 30308 [11:39:24]ProducePacketName [11:39:24]name=ofd_packets/00030308 [11:39:24]NVStorageDeleteData [11:39:24]Write to MH i2c: 01 00 00 BE 7B 39 [11:39:24]Write i2c OK [11:39:24]MH_I2C_Read... [11:39:24]Read from MH i2c: 01 [11:39:24]MH_I2C_Read... [11:39:24]Read from MH i2c: 01 07 00 [11:39:24]MH_I2C_Read... [11:39:24]Read from MH i2c: 01 07 00 BE 7B 00 00 00 00 00 EB 0C 37 [11:39:24]RasterBufferAndPrint [11:39:24]line [11:39:24]line [11:39:24]line [11:39:24]line [11:39:24]line [11:39:24]written 0, free lines is 3313 [11:39:24]MH_Cut [11:39:24]Write to MH i2c: D1 01 00 C5 7B 01 12 [11:39:24]Write i2c OK [11:39:24]MH_I2C_Read... [11:39:24]Read from MH i2c: D1 [11:39:24]MH_I2C_Read... [11:39:24]Read from MH i2c: D1 01 00 [11:39:24]MH_I2C_Read... [11:39:24]Read from MH i2c: D1 01 00 C5 7B 00 11 [11:39:24]Write to MH i2c: 01 00 00 C6 7B 41 [11:39:24]Write i2c OK [11:39:24]MH_I2C_Read... [11:39:25]OFD Sender: No OFD packet to send [11:39:25]*** Cut start [11:39:25]*** Partial cut [11:39:25]*** CUTSNS_PIN = 1 [11:39:25]*** CUTSNS_PIN = 0 [11:39:25]*** Brake cut motor [11:39:26]Read from MH i2c: 01 [11:39:26]MH_I2C_Read... [11:39:26]*** Stop cut motor [11:39:26]*** Cut end [11:39:26]Read from MH i2c: 01 07 00 [11:39:26]MH_I2C_Read... [11:39:26]Read from MH i2c: 01 07 00 C6 7B 00 00 00 00 00 FF 0F 56 [11:39:26]process_action close_receipt done [11:39:26]requested_data is exist [11:39:26]produce_requested_data [11:39:26]requested_item fm.sn is exist - process it [11:39:26]wFMCommunicate request_size=4 [11:39:26]MH_SAM_APDU [11:39:26]CAPDU: 80 11 00 00 [11:39:26]Write to MH i2c: E2 08 00 C7 7B 80 11 00 00 00 00 00 00 BC [11:39:26]Write i2c OK [11:39:26]MH_I2C_Read... [11:39:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:39:26]Read from MH i2c: E2 [11:39:26]MH_I2C_Read... [11:39:26]Read from MH i2c: E2 17 00 [11:39:26]MH_I2C_Read... [11:39:26]Read from MH i2c: E2 17 00 C7 7B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 0A [11:39: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:39:26]wFMCommunicate OK [11:39:26]requested_item fd.num is exist - process it [11:39:26]SAM_PROTO_GetFieldsCounters [11:39:26]wFMCommunicate request_size=4 [11:39:26]MH_SAM_APDU [11:39:26]CAPDU: 80 13 00 00 [11:39:26]Write to MH i2c: E2 08 00 C8 7B 80 13 00 00 00 00 00 00 BF [11:39:26]Write i2c OK [11:39:26]MH_I2C_Read... [11:39:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:39:26]Read from MH i2c: E2 [11:39:26]MH_I2C_Read... [11:39:26]Read from MH i2c: E2 62 00 [11:39:26]MH_I2C_Read... [11:39:26]Read from MH i2c: E2 62 00 C8 7B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 3F [11:39: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 64 76 00 00 0E 04 04 00 72 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 [11:39:26]wFMCommunicate OK [11:39:26]SAM_PROTO_GetFieldsCounters done [11:39:26]requested_item shift.num is exist - process it [11:39:26]requested_item shift.opened is exist - process it [11:39:26]req_shift_opened [11:39:26]FM_GetShiftState [11:39:26]SAM_PROTO_GetShiftState [11:39:26]wFMCommunicate request_size=4 [11:39:26]MH_SAM_APDU [11:39:26]CAPDU: 80 13 01 00 [11:39:26]Write to MH i2c: E2 08 00 C9 7B 80 13 01 00 00 00 00 00 C1 [11:39:26]Write i2c OK [11:39:26]MH_I2C_Read... [11:39:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:39:26]Read from MH i2c: E2 [11:39:26]MH_I2C_Read... [11:39:26]Read from MH i2c: E2 0E 00 [11:39:26]MH_I2C_Read... [11:39:26]Read from MH i2c: E2 0E 00 C9 7B 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 A7 [11:39:26]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [11:39:26]wFMCommunicate OK [11:39:26]SAM_PROTO_GetShiftState done [11:39:26]FM_GetShiftState done [11:39:26]req_shift_opened done [11:39:26]requested_item shift.open_date is exist - process it [11:39:26]req_shift_open_date [11:39:26]req_shift_open_date done [11:39:26]produce_requested_data done [11:39:26]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30308,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [11:39:26]process_action_free close_receipt [11:39:26]json_value_free [11:39:26]json_value_free done [11:39:26]process_json_proto returns [11:39:26]Send response to host [11:39:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30308,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [11:39:26]free response buf [11:39:26]execute_script done [11:39:26]execute_script returns [11:39:26]free content buf [11:39:26]Sock 10.Close socket [11:39:26]Sock 10.Thread stoped [11:39:30]OFD Sender: No OFD packet to send [11:39:35]OFD Sender: No OFD packet to send [11:39:40]OFD Sender: No OFD packet to send [11:39:45]OFD Sender: No OFD packet to send [11:39:50]OFD Sender: No OFD packet to send [11:39:55]OFD Sender: No OFD packet to send [11:40:00]OFD Sender: No OFD packet to send [11:40:05]OFD Sender: No OFD packet to send [11:40:10]OFD Sender: No OFD packet to send [11:40:15]OFD Sender: No OFD packet to send [11:40:20]OFD Sender: No OFD packet to send [11:40:25]OFD Sender: No OFD packet to send [11:40:30]OFD Sender: No OFD packet to send [11:40:35]OFD Sender: No OFD packet to send [11:40:40]OFD Sender: No OFD packet to send [11:40:45]OFD Sender: No OFD packet to send [11:40:50]OFD Sender: No OFD packet to send [11:40:55]OFD Sender: No OFD packet to send [11:41:00]OFD Sender: No OFD packet to send [11:41:05]OFD Sender: No OFD packet to send [11:41:10]OFD Sender: No OFD packet to send [11:41:15]OFD Sender: No OFD packet to send [11:41:20]OFD Sender: No OFD packet to send [11:41:25]OFD Sender: No OFD packet to send [11:41:30]OFD Sender: No OFD packet to send [11:41:35]OFD Sender: No OFD packet to send [11:41:40]OFD Sender: No OFD packet to send [11:41:45]OFD Sender: No OFD packet to send [11:41:50]OFD Sender: No OFD packet to send [11:41:55]OFD Sender: No OFD packet to send [11:42:00]OFD Sender: No OFD packet to send [11:42:05]OFD Sender: No OFD packet to send [11:42:10]OFD Sender: No OFD packet to send [11:42:15]OFD Sender: No OFD packet to send [11:42:20]OFD Sender: No OFD packet to send [11:42:25]OFD Sender: No OFD packet to send [11:42:30]OFD Sender: No OFD packet to send [11:42:35]OFD Sender: No OFD packet to send [11:42:40]OFD Sender: No OFD packet to send [11:42:45]OFD Sender: No OFD packet to send [11:42:50]OFD Sender: No OFD packet to send [11:42:55]OFD Sender: No OFD packet to send [11:43:00]OFD Sender: No OFD packet to send [11:43:05]OFD Sender: No OFD packet to send [11:43:10]OFD Sender: No OFD packet to send [11:43:15]OFD Sender: No OFD packet to send [11:43:20]OFD Sender: No OFD packet to send [11:43:25]OFD Sender: No OFD packet to send [11:43:30]OFD Sender: No OFD packet to send [11:43:31]accept exits with 7 [11:43:31]New connection [11:43:31]New thread 3067370852 created [11:43:31]Thread 3067514212 joined [11:43:31]Waiting for new connection... [11:43:31] Sock 7.Parse request [11:43:31]Sock 7.Check first char [11:43:31]Sock 7.First char is OK [11:43:31]request: POST /json_proto HTTP/1.0 [11:43:31]Method: POST [11:43:31]URL: /json_proto [11:43:31]Method is POST - this is cgi request [11:43:31]url: /json_proto [11:43:31]query_string will be loaded in cgi processing [11:43:31]execute_cgi json_proto POST (null) [11:43:31]execute_cgi path=json_proto method=POST [11:43:31]POST find Content-Length [11:43:31]Host: 172.17.51.3:8080 [11:43:31]Content-Length: 682 [11:43:31]Content-Type: application/json [11:43:31] [11:43:31]POST finish read [11:43:31]Found Content-Length = 682 [11:43:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342701", "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" : 27.570, "sum" : 2045.69, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2045.00, "total" : 2045.00, "payments": [ { "type": 0, "sum" : 2045.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:43:31]execute_script... [11:43: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)342701", "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" : 27.570, "sum" : 2045.69, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2045.00, "total" : 2045.00, "payments": [ { "type": 0, "sum" : 2045.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:43:31]POST & json_proto [11:43:31]process_json_proto [11:43:31]json parsed OK: [11:43:31]protocol is kg_v1.0 [11:43:31]action value=close_receipt [11:43:31]process_action close_receipt [11:43:31]cmd_close_receipt [11:43:31]MH_GetDate [11:43:31]Write to MH i2c: F0 00 00 CA 7B 34 [11:43:31]Write i2c OK [11:43:31]MH_I2C_Read... [11:43:31]Read from MH i2c: F0 [11:43:31]MH_I2C_Read... [11:43:31]Read from MH i2c: F0 09 00 [11:43:31]MH_I2C_Read... [11:43:31]Read from MH i2c: F0 09 00 CA 7B 00 ED EC 14 67 04 C1 95 66 51 [11:43:31]GetLastDocTimeStamp 1729424371 [11:43:31]current date 1729424621 [11:43:31]FM_GetShiftState [11:43:31]SAM_PROTO_GetShiftState [11:43:31]wFMCommunicate request_size=4 [11:43:31]MH_SAM_APDU [11:43:31]CAPDU: 80 13 01 00 [11:43:31]Write to MH i2c: E2 08 00 CB 7B 80 13 01 00 00 00 00 00 C3 [11:43:31]Write i2c OK [11:43:31]MH_I2C_Read... [11:43:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:43:31]Read from MH i2c: E2 [11:43:31]MH_I2C_Read... [11:43:31]Read from MH i2c: E2 0E 00 [11:43:31]MH_I2C_Read... [11:43:31]Read from MH i2c: E2 0E 00 CB 7B 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 A9 [11:43:31]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [11:43:31]wFMCommunicate OK [11:43:31]SAM_PROTO_GetShiftState done [11:43:31]FM_GetShiftState done [11:43:31]opened in 1729384718 [11:43:31]opened+sec_in_day 1729471118 [11:43:31]quantity*price = 204569 [11:43:31]sum+1 = 204570 [11:43:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.69 ИТОГО: 2045.00 Внесено: 2045.00 СДАЧА: 0.00 НСП 1% : 18.10 НДС 12% : 217.24 Наличными: 2045.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 91 20.10.2024 11:43 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30309 ФПД: 21994175432453 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T114341&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30309&fm=21994175432453&tin=02508201610067®Number=0000000000186857&sum=204500 [11:43:33]StoreToDocumentArchive [11:43:33]shift 114 fd 30309 [11:43:33]save to /storage/0114/doc_00030309 [11:43:33]save last doc name /storage/0114/doc_00030309 to /storage/kkm_last_doc_name [11:43:33]save OK [11:43:33]Clear old archive folders... [11:43:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:43:33]tlvbuf is 00A95280 [11:43:33]SAM_PROTO_ClearQueue [11:43:33]wFMCommunicate request_size=4 [11:43:33]MH_SAM_APDU [11:43:33]CAPDU: 80 09 00 00 [11:43:33]Write to MH i2c: E2 08 00 D8 7B 80 09 00 00 00 00 00 00 C5 [11:43:33]Write i2c OK [11:43:33]MH_I2C_Read... [11:43:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:43:33]Read from MH i2c: E2 [11:43:33]MH_I2C_Read... [11:43:33]Read from MH i2c: E2 03 00 [11:43:33]MH_I2C_Read... [11:43:33]Read from MH i2c: E2 03 00 D8 7B 00 90 00 C7 [11:43:33]RAPDU: 90 00 [11:43:33]wFMCommunicate OK [11:43:33]SAM_PROTO_ClearQueue done [11:43:33]KKMCreateOFDPacket [11:43:33]OFDProtocolAddRootSTLVToBuf [11:43:33]FM_MakeSignedData [11:43:33]FM_MakeSignedData [11:43:33]SAM_PROTO_SignData [11:43:33]wFMCommunicate request_size=4 [11:43:33]MH_SAM_APDU [11:43:33]CAPDU: 80 0D 01 02 [11:43:33]Write to MH i2c: E2 08 00 D9 7B 80 0D 01 02 00 00 00 00 CD [11:43:33]Write i2c OK [11:43:33]MH_I2C_Read... [11:43:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:43:33]Read from MH i2c: E2 [11:43:33]MH_I2C_Read... [11:43:33]Read from MH i2c: E2 03 00 [11:43:33]MH_I2C_Read... [11:43:33]Read from MH i2c: E2 03 00 D9 7B 00 90 00 C8 [11:43:33]RAPDU: 90 00 [11:43:33]wFMCommunicate OK [11:43:33]wFMCommunicate request_size=255 [11:43:33]MH_SAM_APDU [11:43: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 B2 6B 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 19 1F 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 1E 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DC 54 00 00 00 00 07 04 06 00 D4 1E 03 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 ED EC 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 14 [11:43:33]Write to MH i2c: E2 02 01 DA 7B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 B2 6B 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 19 1F 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 1E 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DC 54 00 00 00 00 07 04 06 00 D4 1E 03 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 ED EC 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 14 00 00 91 [11:43:33]Write i2c OK [11:43:33]MH_I2C_Read... [11:43:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:43:33]Read from MH i2c: E2 [11:43:33]MH_I2C_Read... [11:43:33]Read from MH i2c: E2 03 00 [11:43:33]MH_I2C_Read... [11:43:33]Read from MH i2c: E2 03 00 DA 7B 00 90 00 C9 [11:43:33]RAPDU: 90 00 [11:43:33]wFMCommunicate OK [11:43:33]wFMCommunicate request_size=10 [11:43:33]MH_SAM_APDU [11:43:33]CAPDU: 80 0D 02 02 05 00 EB 03 87 05 [11:43:33]Write to MH i2c: E2 0D 00 DB 7B 80 0D 02 02 05 00 00 EB 03 87 05 00 00 54 [11:43:33]Write i2c OK [11:43:33]MH_I2C_Read... [11:43:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:43:33]Read from MH i2c: E2 [11:43:33]MH_I2C_Read... [11:43:33]Read from MH i2c: E2 03 00 [11:43:33]MH_I2C_Read... [11:43:33]Read from MH i2c: E2 03 00 DB 7B 00 90 00 CA [11:43:33]RAPDU: 90 00 [11:43:33]wFMCommunicate OK [11:43:33]wFMCommunicate request_size=4 [11:43:33]MH_SAM_APDU [11:43:33]CAPDU: 80 0D 03 02 [11:43:33]Write to MH i2c: E2 08 00 DC 7B 80 0D 03 02 00 00 00 00 D2 [11:43:33]Write i2c OK [11:43:33]MH_I2C_Read... [11:43:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:43:33]Read from MH i2c: E2 [11:43:33]MH_I2C_Read... [11:43:33]Read from MH i2c: E2 0B 00 [11:43:33]MH_I2C_Read... [11:43:33]Read from MH i2c: E2 0B 00 DC 7B 00 0E A4 FD DB BE A4 83 B4 90 00 F6 [11:43:33]RAPDU: 0E A4 FD DB BE A4 83 B4 90 00 [11:43:33]wFMCommunicate OK [11:43:33]SAM_PROTO_SignData done [11:43:33]FM_MakeSignedData done [11:43:33]CreateOFDProtocolMessage [11:43:33]wFMCommunicate request_size=4 [11:43:33]MH_SAM_APDU [11:43:33]CAPDU: 80 11 00 00 [11:43:33]Write to MH i2c: E2 08 00 DD 7B 80 11 00 00 00 00 00 00 D2 [11:43:33]Write i2c OK [11:43:33]MH_I2C_Read... [11:43:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:43:33]Read from MH i2c: E2 [11:43:33]MH_I2C_Read... [11:43:33]Read from MH i2c: E2 17 00 [11:43:33]MH_I2C_Read... [11:43:33]Read from MH i2c: E2 17 00 DD 7B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 20 [11: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 [11:43:33]wFMCommunicate OK [11:43:33]CreateOFDProtocolMessage done [11:43:33]OFDSenderStorePacket 30309 [11:43:33]StoreOFDPacket docnum=30309 [11:43: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 36 96 07 01 26 EC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 B2 6B 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 19 1F 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 1E 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DC 54 00 00 00 00 07 04 06 00 D4 1E 03 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 ED EC 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 14 00 EB 03 87 05 0E A4 FD DB BE A4 83 B4 [11:43:33]CheckFolder [11:43:33]dirname=/storage/ofd_packets [11:43:33]CheckFolder done [11:43:33]ProducePacketName [11:43:33]name=ofd_packets/00030309 [11:43:33]NVStorageSaveData ofd_packets/00030309 [11:43:33]File name is /storage/ofd_packets/00030309 [11:43:33]Write 301 bytes [11:43:33]NVStorageSaveData done [11:43:33]OFDSenderStorePacket done [11:43:33]KKMCreateOFDPacket done [11:43:33]NVStorageSaveData kkm_last_timestamp [11:43:33]File name is /storage/kkm_last_timestamp [11:43:33]Write 4 bytes [11:43:33]NVStorageSaveData done [11:43:33]ExternCall_PrintAddStr [11:43:33]wPrintStart [11:43:33]Write to MH i2c: 01 00 00 DE 7B 59 [11:43:33]Write i2c OK [11:43:33]MH_I2C_Read... [11:43:33]Read from MH i2c: 01 [11:43:33]MH_I2C_Read... [11:43:33]Read from MH i2c: 01 07 00 [11:43:33]MH_I2C_Read... [11:43:33]Read from MH i2c: 01 07 00 DE 7B 00 00 00 00 00 FF 0F 6E [11:43:33]RasterBufferAndPrint [11:43:33]line Счет N : (1)342701 [11:43:33]line ИНН: 02508201610067 [11:43:33]line Контрольно-Кассовый Чек [11:43:33]line ПРОДАЖА [11:43:33]line ТРК (МРК, ГНК) : 52 [11:43:33]line Товар: 2710124500 [11:43:33]line Аи-95-К-3 [11:43:33]line 27.570 * 74.20 [11:43:33]line = 2045.69 [11:43:33]line НДС 12% НСП 1% [11:43:33]line > о реализуемом товаре [11:43:33]line ОКРУГЛЕНИЕ: -0.69 [11:43:33]line ИТОГО: 2045.00 [11:43:33]line Внесено: 2045.00 [11:43:33]line СДАЧА: 0.00 [11:43:33]line НСП 1% : 18.10 [11:43:33]line НДС 12% : 217.24 [11:43:33]line Наличными: 2045.00 [11:43:33]line Безнал.: 0.00 [11:43:33]line Место: АЗС № 78 "Партнер Нефть" [11:43:33]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [11:43:33]line СНО: Общий режим [11:43:33]line Чек 91 20.10.2024 11:43 [11:43:33]line Смена: 114 ФФД: 1.0 [11:43:33]line ЗНМ: 0300000137 [11:43:33]line РНМ: 0000000000186857 [11:43:33]line Версия ККМ: v1.0 [11:43:33]line ФМ: 0000000002094219 [11:43:33]line ФД: 30309 [11:43:33]line ФПД: 21994175432453 [11:43:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T114341&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30309&fm=21994175432453&tin=02508201610067®Number=0000000000186857&sum=204500 [11:43:33]OFD Sender: Processing packet 30309 [packets to send 10, broken 9] [11:43:33]ProducePacketName [11:43:33]name=ofd_packets/00030309 [11:43:33]OFD Sender: To server: pG, [11:43:33]CommunicateWithHost lk.salyk.kg:30040 [11:43:33]ConnectInit lk.salyk.kg [11:43:33]written 0, free lines is 4095 [11:43:34]Connected sock=10 [11:43: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 36 96 07 01 26 EC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 B2 6B 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 19 1F 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 1E 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DC 54 00 00 00 00 07 04 06 00 D4 1E 03 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 ED EC 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 14 00 EB 03 87 05 0E A4 FD DB BE A4 83 B4 [11:43: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 9C 22 47 00 12 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 65 76 00 00 F4 03 04 00 71 97 14 67 B6 04 01 00 00 15 0C 65 89 1A C0 92 7A [11:43:34]CommunicateWithHost err = 0 [11:43:34]CheckOFDResponse [11:43:34]1017 (14) - 77093643461234 [11:43:34]1041 (16) - 0000000002094219 [11:43:34]1040 (4) - 30309 [11:43:34]1012 (4) - 20.10.2024 05:38 [11:43:34]1206 (1) - 0 [11:43:34]OFD Sender: Remove packet 30309 [11:43:34]ProducePacketName [11:43:34]name=ofd_packets/00030309 [11:43:34]NVStorageDeleteData [11:43:34]Write to MH i2c: 01 00 00 09 7C 85 [11:43:34]Write i2c OK [11:43:34]MH_I2C_Read... [11:43:34]Read from MH i2c: 01 [11:43:34]MH_I2C_Read... [11:43:34]Read from MH i2c: 01 07 00 [11:43:34]MH_I2C_Read... [11:43:34]Read from MH i2c: 01 07 00 09 7C 00 00 00 00 00 EC 0C 84 [11:43:34]RasterBufferAndPrint [11:43:34]line [11:43:34]line [11:43:34]line [11:43:34]line [11:43:34]line [11:43:34]written 0, free lines is 3314 [11:43:34]MH_Cut [11:43:34]Write to MH i2c: D1 01 00 10 7C 01 5E [11:43:34]Write i2c OK [11:43:34]MH_I2C_Read... [11:43:34]Read from MH i2c: D1 [11:43:34]MH_I2C_Read... [11:43:34]Read from MH i2c: D1 01 00 [11:43:34]MH_I2C_Read... [11:43:34]Read from MH i2c: D1 01 00 10 7C 00 5D [11:43:34]Write to MH i2c: 01 00 00 11 7C 8D [11:43:34]Write i2c OK [11:43:34]MH_I2C_Read... [11:43:34]OFD Sender: No OFD packet to send [11:43:35]*** Cut start [11:43:35]*** Partial cut [11:43:35]*** CUTSNS_PIN = 1 [11:43:35]*** CUTSNS_PIN = 0 [11:43:35]*** Brake cut motor [11:43:35]Read from MH i2c: 01 [11:43:35]MH_I2C_Read... [11:43:35]*** Stop cut motor [11:43:35]*** Cut end [11:43:35]Read from MH i2c: 01 07 00 [11:43:35]MH_I2C_Read... [11:43:35]Read from MH i2c: 01 07 00 11 7C 00 00 00 00 00 FF 0F A2 [11:43:35]process_action close_receipt done [11:43:35]requested_data is exist [11:43:35]produce_requested_data [11:43:35]requested_item fm.sn is exist - process it [11:43:35]wFMCommunicate request_size=4 [11:43:35]MH_SAM_APDU [11:43:35]CAPDU: 80 11 00 00 [11:43:35]Write to MH i2c: E2 08 00 12 7C 80 11 00 00 00 00 00 00 08 [11:43:35]Write i2c OK [11:43:35]MH_I2C_Read... [11:43:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:43:35]Read from MH i2c: E2 [11:43:35]MH_I2C_Read... [11:43:35]Read from MH i2c: E2 17 00 [11:43:35]MH_I2C_Read... [11:43:35]Read from MH i2c: E2 17 00 12 7C 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:43: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:43:35]wFMCommunicate OK [11:43:35]requested_item fd.num is exist - process it [11:43:35]SAM_PROTO_GetFieldsCounters [11:43:35]wFMCommunicate request_size=4 [11:43:35]MH_SAM_APDU [11:43:35]CAPDU: 80 13 00 00 [11:43:35]Write to MH i2c: E2 08 00 13 7C 80 13 00 00 00 00 00 00 0B [11:43:35]Write i2c OK [11:43:35]MH_I2C_Read... [11:43:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:43:35]Read from MH i2c: E2 [11:43:35]MH_I2C_Read... [11:43:35]Read from MH i2c: E2 62 00 [11:43:35]MH_I2C_Read... [11:43:35]Read from MH i2c: E2 62 00 13 7C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 8F [11:43: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 65 76 00 00 0E 04 04 00 72 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 [11:43:35]wFMCommunicate OK [11:43:35]SAM_PROTO_GetFieldsCounters done [11:43:35]requested_item shift.num is exist - process it [11:43:35]requested_item shift.opened is exist - process it [11:43:35]req_shift_opened [11:43:35]FM_GetShiftState [11:43:35]SAM_PROTO_GetShiftState [11:43:35]wFMCommunicate request_size=4 [11:43:35]MH_SAM_APDU [11:43:35]CAPDU: 80 13 01 00 [11:43:35]Write to MH i2c: E2 08 00 14 7C 80 13 01 00 00 00 00 00 0D [11:43:35]Write i2c OK [11:43:35]MH_I2C_Read... [11:43:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:43:35]Read from MH i2c: E2 [11:43:35]MH_I2C_Read... [11:43:35]Read from MH i2c: E2 0E 00 [11:43:35]MH_I2C_Read... [11:43:35]Read from MH i2c: E2 0E 00 14 7C 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 F3 [11:43:35]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [11:43:35]wFMCommunicate OK [11:43:35]SAM_PROTO_GetShiftState done [11:43:35]FM_GetShiftState done [11:43:35]req_shift_opened done [11:43:35]requested_item shift.open_date is exist - process it [11:43:35]req_shift_open_date [11:43:35]req_shift_open_date done [11:43:35]produce_requested_data done [11:43:35]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30309,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [11:43:35]process_action_free close_receipt [11:43:35]json_value_free [11:43:35]json_value_free done [11:43:35]process_json_proto returns [11:43:35]Send response to host [11:43:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30309,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [11:43:35]free response buf [11:43:35]execute_script done [11:43:35]execute_script returns [11:43:35]free content buf [11:43:35]Sock 7.Close socket [11:43:35]Sock 7.Thread stoped [11:43:39]OFD Sender: No OFD packet to send [11:43:44]OFD Sender: No OFD packet to send [11:43:49]OFD Sender: No OFD packet to send [11:43:54]OFD Sender: No OFD packet to send [11:43:59]OFD Sender: No OFD packet to send [11:44:04]OFD Sender: No OFD packet to send [11:44:09]OFD Sender: No OFD packet to send [11:44:14]OFD Sender: No OFD packet to send [11:44:19]OFD Sender: No OFD packet to send [11:44:24]OFD Sender: No OFD packet to send [11:44:29]OFD Sender: No OFD packet to send [11:44:34]OFD Sender: No OFD packet to send [11:44:39]OFD Sender: No OFD packet to send [11:44:44]OFD Sender: No OFD packet to send [11:44:49]OFD Sender: No OFD packet to send [11:44:54]OFD Sender: No OFD packet to send [11:44:59]OFD Sender: No OFD packet to send [11:45:04]OFD Sender: No OFD packet to send [11:45:09]OFD Sender: No OFD packet to send [11:45:14]OFD Sender: No OFD packet to send [11:45:19]OFD Sender: No OFD packet to send [11:45:24]OFD Sender: No OFD packet to send [11:45:29]OFD Sender: No OFD packet to send [11:45:34]OFD Sender: No OFD packet to send [11:45:39]OFD Sender: No OFD packet to send [11:45:44]OFD Sender: No OFD packet to send [11:45:49]OFD Sender: No OFD packet to send [11:45:54]OFD Sender: No OFD packet to send [11:45:59]OFD Sender: No OFD packet to send [11:46:04]OFD Sender: No OFD packet to send [11:46:09]OFD Sender: No OFD packet to send [11:46:14]OFD Sender: No OFD packet to send [11:46:19]OFD Sender: No OFD packet to send [11:46:24]OFD Sender: No OFD packet to send [11:46:29]OFD Sender: No OFD packet to send [11:46:34]OFD Sender: No OFD packet to send [11:46:39]OFD Sender: No OFD packet to send [11:46:44]OFD Sender: No OFD packet to send [11:46:49]OFD Sender: No OFD packet to send [11:46:54]OFD Sender: No OFD packet to send [11:46:59]OFD Sender: No OFD packet to send [11:47:04]OFD Sender: No OFD packet to send [11:47:09]OFD Sender: No OFD packet to send [11:47:14]OFD Sender: No OFD packet to send [11:47:19]OFD Sender: No OFD packet to send [11:47:24]OFD Sender: No OFD packet to send [11:47:29]OFD Sender: No OFD packet to send [11:47:34]OFD Sender: No OFD packet to send [11:47:39]OFD Sender: No OFD packet to send [11:47:44]OFD Sender: No OFD packet to send [11:47:49]OFD Sender: No OFD packet to send [11:47:54]OFD Sender: No OFD packet to send [11:48:00]OFD Sender: No OFD packet to send [11:48:05]OFD Sender: No OFD packet to send [11:48:10]OFD Sender: No OFD packet to send [11:48:15]OFD Sender: No OFD packet to send [11:48:20]OFD Sender: No OFD packet to send [11:48:25]OFD Sender: No OFD packet to send [11:48:30]OFD Sender: No OFD packet to send [11:48:35]OFD Sender: No OFD packet to send [11:48:40]OFD Sender: No OFD packet to send [11:48:40]accept exits with 9 [11:48:40]New connection [11:48:40]New thread 3067514212 created [11:48:40]Thread 3067370852 joined [11:48:40]Waiting for new connection... [11:48:40] Sock 9.Parse request [11:48:40]Sock 9.Check first char [11:48:40]Sock 9.First char is OK [11:48:40]request: POST /json_proto HTTP/1.0 [11:48:40]Method: POST [11:48:40]URL: /json_proto [11:48:40]Method is POST - this is cgi request [11:48:40]url: /json_proto [11:48:40]query_string will be loaded in cgi processing [11:48:40]execute_cgi json_proto POST (null) [11:48:40]execute_cgi path=json_proto method=POST [11:48:40]POST find Content-Length [11:48:40]Host: 172.17.51.3:8080 [11:48:40]Content-Length: 677 [11:48:40]Content-Type: application/json [11:48:40] [11:48:40]POST finish read [11:48:40]Found Content-Length = 677 [11:48:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342702", "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" ] } } [11:48:40]execute_script... [11:48:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342702", "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" ] } } [11:48:40]POST & json_proto [11:48:40]process_json_proto [11:48:40]json parsed OK: [11:48:40]protocol is kg_v1.0 [11:48:40]action value=close_receipt [11:48:40]process_action close_receipt [11:48:40]cmd_close_receipt [11:48:40]MH_GetDate [11:48:40]Write to MH i2c: F0 00 00 15 7C 80 [11:48:40]Write i2c OK [11:48:40]MH_I2C_Read... [11:48:40]Read from MH i2c: F0 [11:48:40]MH_I2C_Read... [11:48:40]Read from MH i2c: F0 09 00 [11:48:40]MH_I2C_Read... [11:48:40]Read from MH i2c: F0 09 00 15 7C 00 21 EE 14 67 04 C1 95 66 D3 [11:48:40]GetLastDocTimeStamp 1729424621 [11:48:40]current date 1729424929 [11:48:40]FM_GetShiftState [11:48:40]SAM_PROTO_GetShiftState [11:48:40]wFMCommunicate request_size=4 [11:48:40]MH_SAM_APDU [11:48:40]CAPDU: 80 13 01 00 [11:48:40]Write to MH i2c: E2 08 00 16 7C 80 13 01 00 00 00 00 00 0F [11:48:40]Write i2c OK [11:48:40]MH_I2C_Read... [11:48:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:48:40]Read from MH i2c: E2 [11:48:40]MH_I2C_Read... [11:48:40]Read from MH i2c: E2 0E 00 [11:48:40]MH_I2C_Read... [11:48:40]Read from MH i2c: E2 0E 00 16 7C 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 F5 [11:48:40]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [11:48:40]wFMCommunicate OK [11:48:40]SAM_PROTO_GetShiftState done [11:48:40]FM_GetShiftState done [11:48:40]opened in 1729384718 [11:48:40]opened+sec_in_day 1729471118 [11:48:40]quantity*price = 40006 [11:48:40]sum+1 = 40007 [11:48:40]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 СНО: Общий режим Чек 92 20.10.2024 11:48 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30310 ФПД: 2722921343540 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T114849&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30310&fm=2722921343540&tin=02508201610067®Number=0000000000186857&sum=40000 [11:48:41]StoreToDocumentArchive [11:48:41]shift 114 fd 30310 [11:48:41]save to /storage/0114/doc_00030310 [11:48:41]save last doc name /storage/0114/doc_00030310 to /storage/kkm_last_doc_name [11:48:41]save OK [11:48:41]Clear old archive folders... [11:48:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:48:41]tlvbuf is 00B3BE40 [11:48:41]SAM_PROTO_ClearQueue [11:48:41]wFMCommunicate request_size=4 [11:48:41]MH_SAM_APDU [11:48:41]CAPDU: 80 09 00 00 [11:48:41]Write to MH i2c: E2 08 00 23 7C 80 09 00 00 00 00 00 00 11 [11:48:41]Write i2c OK [11:48:41]MH_I2C_Read... [11:48:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:48:41]Read from MH i2c: E2 [11:48:41]MH_I2C_Read... [11:48:41]Read from MH i2c: E2 03 00 [11:48:41]MH_I2C_Read... [11:48:41]Read from MH i2c: E2 03 00 23 7C 00 90 00 13 [11:48:41]RAPDU: 90 00 [11:48:41]wFMCommunicate OK [11:48:41]SAM_PROTO_ClearQueue done [11:48:41]KKMCreateOFDPacket [11:48:41]OFDProtocolAddRootSTLVToBuf [11:48:41]FM_MakeSignedData [11:48:41]FM_MakeSignedData [11:48:41]SAM_PROTO_SignData [11:48:41]wFMCommunicate request_size=4 [11:48:41]MH_SAM_APDU [11:48:41]CAPDU: 80 0D 01 02 [11:48:41]Write to MH i2c: E2 08 00 24 7C 80 0D 01 02 00 00 00 00 19 [11:48:41]Write i2c OK [11:48:41]MH_I2C_Read... [11:48:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:48:41]Read from MH i2c: E2 [11:48:41]MH_I2C_Read... [11:48:41]Read from MH i2c: E2 03 00 [11:48:41]MH_I2C_Read... [11:48:41]Read from MH i2c: E2 03 00 24 7C 00 90 00 14 [11:48:41]RAPDU: 90 00 [11:48:41]wFMCommunicate OK [11:48:41]wFMCommunicate request_size=255 [11:48:41]MH_SAM_APDU [11:48: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 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 5C 00 00 00 F4 03 04 00 21 EE 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 02 [11:48:41]Write to MH i2c: E2 02 01 25 7C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 5C 00 00 00 F4 03 04 00 21 EE 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 02 00 00 AF [11:48:41]Write i2c OK [11:48:41]MH_I2C_Read... [11:48:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:48:41]Read from MH i2c: E2 [11:48:41]MH_I2C_Read... [11:48:41]Read from MH i2c: E2 03 00 [11:48:41]MH_I2C_Read... [11:48:41]Read from MH i2c: E2 03 00 25 7C 00 90 00 15 [11:48:41]RAPDU: 90 00 [11:48:41]wFMCommunicate OK [11:48:41]wFMCommunicate request_size=10 [11:48:41]MH_SAM_APDU [11:48:41]CAPDU: 80 0D 02 02 05 79 FA C2 6A 34 [11:48:41]Write to MH i2c: E2 0D 00 26 7C 80 0D 02 02 05 00 79 FA C2 6A 34 00 00 F9 [11:48:41]Write i2c OK [11:48:41]MH_I2C_Read... [11:48:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:48:42]Read from MH i2c: E2 [11:48:42]MH_I2C_Read... [11:48:42]Read from MH i2c: E2 03 00 [11:48:42]MH_I2C_Read... [11:48:42]Read from MH i2c: E2 03 00 26 7C 00 90 00 16 [11:48:42]RAPDU: 90 00 [11:48:42]wFMCommunicate OK [11:48:42]wFMCommunicate request_size=4 [11:48:42]MH_SAM_APDU [11:48:42]CAPDU: 80 0D 03 02 [11:48:42]Write to MH i2c: E2 08 00 27 7C 80 0D 03 02 00 00 00 00 1E [11:48:42]Write i2c OK [11:48:42]MH_I2C_Read... [11:48:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:48:42]Read from MH i2c: E2 [11:48:42]MH_I2C_Read... [11:48:42]Read from MH i2c: E2 0B 00 [11:48:42]MH_I2C_Read... [11:48:42]Read from MH i2c: E2 0B 00 27 7C 00 69 5C F8 52 D2 31 CA 8B 90 00 86 [11:48:42]RAPDU: 69 5C F8 52 D2 31 CA 8B 90 00 [11:48:42]wFMCommunicate OK [11:48:42]SAM_PROTO_SignData done [11:48:42]FM_MakeSignedData done [11:48:42]CreateOFDProtocolMessage [11:48:42]wFMCommunicate request_size=4 [11:48:42]MH_SAM_APDU [11:48:42]CAPDU: 80 11 00 00 [11:48:42]Write to MH i2c: E2 08 00 28 7C 80 11 00 00 00 00 00 00 1E [11:48:42]Write i2c OK [11:48:42]MH_I2C_Read... [11:48:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:48:42]Read from MH i2c: E2 [11:48:42]MH_I2C_Read... [11:48:42]Read from MH i2c: E2 17 00 [11:48:42]MH_I2C_Read... [11:48:42]Read from MH i2c: E2 17 00 28 7C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 6C [11:48: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:48:42]wFMCommunicate OK [11:48:42]CreateOFDProtocolMessage done [11:48:42]OFDSenderStorePacket 30310 [11:48:42]StoreOFDPacket docnum=30310 [11:48: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 AC 5A 07 01 FC 48 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 5C 00 00 00 F4 03 04 00 21 EE 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 02 79 FA C2 6A 34 69 5C F8 52 D2 31 CA 8B [11:48:42]CheckFolder [11:48:42]dirname=/storage/ofd_packets [11:48:42]CheckFolder done [11:48:42]ProducePacketName [11:48:42]name=ofd_packets/00030310 [11:48:42]NVStorageSaveData ofd_packets/00030310 [11:48:42]File name is /storage/ofd_packets/00030310 [11:48:42]Write 301 bytes [11:48:42]NVStorageSaveData done [11:48:42]OFDSenderStorePacket done [11:48:42]KKMCreateOFDPacket done [11:48:42]NVStorageSaveData kkm_last_timestamp [11:48:42]File name is /storage/kkm_last_timestamp [11:48:42]Write 4 bytes [11:48:42]NVStorageSaveData done [11:48:42]ExternCall_PrintAddStr [11:48:42]wPrintStart [11:48:42]Write to MH i2c: 01 00 00 29 7C A5 [11:48:42]Write i2c OK [11:48:42]MH_I2C_Read... [11:48:42]Read from MH i2c: 01 [11:48:42]MH_I2C_Read... [11:48:42]Read from MH i2c: 01 07 00 [11:48:42]MH_I2C_Read... [11:48:42]Read from MH i2c: 01 07 00 29 7C 00 00 00 00 00 FF 0F BA [11:48:42]RasterBufferAndPrint [11:48:42]line Счет N : (1)342702 [11:48:42]line ИНН: 02508201610067 [11:48:42]line Контрольно-Кассовый Чек [11:48:42]line ПРОДАЖА [11:48:42]line ТРК (МРК, ГНК) : 53 [11:48:42]line Товар: 2710124130 [11:48:42]line Аи-92-К-2 [11:48:42]line 5.980 * 66.90 [11:48:42]line = 400.06 [11:48:42]line НДС 12% НСП 1% [11:48:42]line > о реализуемом товаре [11:48:42]line ОКРУГЛЕНИЕ: -0.06 [11:48:42]line ИТОГО: 400.00 [11:48:42]line Внесено: 400.00 [11:48:42]line СДАЧА: 0.00 [11:48:42]line НСП 1% : 3.54 [11:48:42]line НДС 12% : 42.48 [11:48:42]line Наличными: 400.00 [11:48:42]line Безнал.: 0.00 [11:48:42]line Место: АЗС № 78 "Партнер Нефть" [11:48:42]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [11:48:42]line СНО: Общий режим [11:48:42]line Чек 92 20.10.2024 11:48 [11:48:42]line Смена: 114 ФФД: 1.0 [11:48:42]line ЗНМ: 0300000137 [11:48:42]line РНМ: 0000000000186857 [11:48:42]line Версия ККМ: v1.0 [11:48:42]line ФМ: 0000000002094219 [11:48:42]line ФД: 30310 [11:48:42]line ФПД: 2722921343540 [11:48:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T114849&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30310&fm=2722921343540&tin=02508201610067®Number=0000000000186857&sum=40000 [11:48:42]OFD Sender: Processing packet 30310 [packets to send 10, broken 9] [11:48:42]ProducePacketName [11:48:42]name=ofd_packets/00030310 [11:48:42]OFD Sender: To server: pG, [11:48:42]CommunicateWithHost lk.salyk.kg:30040 [11:48:42]ConnectInit lk.salyk.kg [11:48:42]written 0, free lines is 4095 [11:48:42]Connected sock=10 [11:48: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 AC 5A 07 01 FC 48 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 5C 00 00 00 F4 03 04 00 21 EE 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 02 79 FA C2 6A 34 69 5C F8 52 D2 31 CA 8B [11:48: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 AD B3 47 00 3E 62 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 66 76 00 00 F4 03 04 00 A5 98 14 67 B6 04 01 00 00 38 85 10 E9 F7 D9 CD 72 [11:48:42]CommunicateWithHost err = 0 [11:48:42]CheckOFDResponse [11:48:42]1017 (14) - 77093643461234 [11:48:42]1041 (16) - 0000000002094219 [11:48:42]1040 (4) - 30310 [11:48:42]1012 (4) - 20.10.2024 05:44 [11:48:42]1206 (1) - 0 [11:48:42]OFD Sender: Remove packet 30310 [11:48:42]ProducePacketName [11:48:42]name=ofd_packets/00030310 [11:48:42]NVStorageDeleteData [11:48:42]Write to MH i2c: 01 00 00 54 7C D0 [11:48:42]Write i2c OK [11:48:42]MH_I2C_Read... [11:48:42]Read from MH i2c: 01 [11:48:42]MH_I2C_Read... [11:48:42]Read from MH i2c: 01 07 00 [11:48:42]MH_I2C_Read... [11:48:42]Read from MH i2c: 01 07 00 54 7C 00 00 00 00 00 E4 0C C7 [11:48:42]RasterBufferAndPrint [11:48:42]line [11:48:42]line [11:48:42]line [11:48:42]line [11:48:42]line [11:48:42]written 0, free lines is 3306 [11:48:42]MH_Cut [11:48:42]Write to MH i2c: D1 01 00 5B 7C 01 A9 [11:48:42]Write i2c OK [11:48:42]MH_I2C_Read... [11:48:42]Read from MH i2c: D1 [11:48:42]MH_I2C_Read... [11:48:42]Read from MH i2c: D1 01 00 [11:48:42]MH_I2C_Read... [11:48:42]Read from MH i2c: D1 01 00 5B 7C 00 A8 [11:48:42]Write to MH i2c: 01 00 00 5C 7C D8 [11:48:42]Write i2c OK [11:48:42]MH_I2C_Read... [11:48:43]OFD Sender: No OFD packet to send [11:48:43]*** Cut start [11:48:43]*** Partial cut [11:48:43]*** CUTSNS_PIN = 1 [11:48:43]*** CUTSNS_PIN = 0 [11:48:43]*** Brake cut motor [11:48:44]Read from MH i2c: 01 [11:48:44]MH_I2C_Read... [11:48:44]*** Stop cut motor [11:48:44]*** Cut end [11:48:44]Read from MH i2c: 01 07 00 [11:48:44]MH_I2C_Read... [11:48:44]Read from MH i2c: 01 07 00 5C 7C 00 00 00 00 00 FF 0F ED [11:48:44]process_action close_receipt done [11:48:44]requested_data is exist [11:48:44]produce_requested_data [11:48:44]requested_item fm.sn is exist - process it [11:48:44]wFMCommunicate request_size=4 [11:48:44]MH_SAM_APDU [11:48:44]CAPDU: 80 11 00 00 [11:48:44]Write to MH i2c: E2 08 00 5D 7C 80 11 00 00 00 00 00 00 53 [11:48:44]Write i2c OK [11:48:44]MH_I2C_Read... [11:48:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:48:44]Read from MH i2c: E2 [11:48:44]MH_I2C_Read... [11:48:44]Read from MH i2c: E2 17 00 [11:48:44]MH_I2C_Read... [11:48:44]Read from MH i2c: E2 17 00 5D 7C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 A1 [11:48:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [11:48:44]wFMCommunicate OK [11:48:44]requested_item fd.num is exist - process it [11:48:44]SAM_PROTO_GetFieldsCounters [11:48:44]wFMCommunicate request_size=4 [11:48:44]MH_SAM_APDU [11:48:44]CAPDU: 80 13 00 00 [11:48:44]Write to MH i2c: E2 08 00 5E 7C 80 13 00 00 00 00 00 00 56 [11:48:44]Write i2c OK [11:48:44]MH_I2C_Read... [11:48:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:48:44]Read from MH i2c: E2 [11:48:44]MH_I2C_Read... [11:48:44]Read from MH i2c: E2 62 00 [11:48:44]MH_I2C_Read... [11:48:44]Read from MH i2c: E2 62 00 5E 7C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 DE [11:48: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 66 76 00 00 0E 04 04 00 72 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 [11:48:44]wFMCommunicate OK [11:48:44]SAM_PROTO_GetFieldsCounters done [11:48:44]requested_item shift.num is exist - process it [11:48:44]requested_item shift.opened is exist - process it [11:48:44]req_shift_opened [11:48:44]FM_GetShiftState [11:48:44]SAM_PROTO_GetShiftState [11:48:44]wFMCommunicate request_size=4 [11:48:44]MH_SAM_APDU [11:48:44]CAPDU: 80 13 01 00 [11:48:44]Write to MH i2c: E2 08 00 5F 7C 80 13 01 00 00 00 00 00 58 [11:48:44]Write i2c OK [11:48:44]MH_I2C_Read... [11:48:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:48:44]Read from MH i2c: E2 [11:48:44]MH_I2C_Read... [11:48:44]Read from MH i2c: E2 0E 00 [11:48:44]MH_I2C_Read... [11:48:44]Read from MH i2c: E2 0E 00 5F 7C 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 3E [11:48:44]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [11:48:44]wFMCommunicate OK [11:48:44]SAM_PROTO_GetShiftState done [11:48:44]FM_GetShiftState done [11:48:44]req_shift_opened done [11:48:44]requested_item shift.open_date is exist - process it [11:48:44]req_shift_open_date [11:48:44]req_shift_open_date done [11:48:44]produce_requested_data done [11:48:44]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30310,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [11:48:44]process_action_free close_receipt [11:48:44]json_value_free [11:48:44]json_value_free done [11:48:44]process_json_proto returns [11:48:44]Send response to host [11:48:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30310,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [11:48:44]free response buf [11:48:44]execute_script done [11:48:44]execute_script returns [11:48:44]free content buf [11:48:44]Sock 9.Close socket [11:48:44]Sock 9.Thread stoped [11:48:48]OFD Sender: No OFD packet to send [11:48:53]OFD Sender: No OFD packet to send [11:48:58]OFD Sender: No OFD packet to send [11:49:03]OFD Sender: No OFD packet to send [11:49:08]OFD Sender: No OFD packet to send [11:49:13]OFD Sender: No OFD packet to send [11:49:18]OFD Sender: No OFD packet to send [11:49:21]accept exits with 7 [11:49:21]New connection [11:49:21]New thread 3067370852 created [11:49:21]Thread 3067514212 joined [11:49:21]Waiting for new connection... [11:49:21] Sock 7.Parse request [11:49:21]Sock 7.Check first char [11:49:21]Sock 7.First char is OK [11:49:21]request: POST /json_proto HTTP/1.0 [11:49:21]Method: POST [11:49:21]URL: /json_proto [11:49:21]Method is POST - this is cgi request [11:49:21]url: /json_proto [11:49:21]query_string will be loaded in cgi processing [11:49:21]execute_cgi json_proto POST (null) [11:49:21]execute_cgi path=json_proto method=POST [11:49:21]POST find Content-Length [11:49:21]Host: 172.17.51.3:8080 [11:49:21]Content-Length: 677 [11:49:21]Content-Type: application/json [11:49:21] [11:49:21]POST finish read [11:49:21]Found Content-Length = 677 [11:49:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342703", "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" ] } } [11:49:21]execute_script... [11:49: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)342703", "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" ] } } [11:49:21]POST & json_proto [11:49:21]process_json_proto [11:49:21]json parsed OK: [11:49:21]protocol is kg_v1.0 [11:49:21]action value=close_receipt [11:49:21]process_action close_receipt [11:49:21]cmd_close_receipt [11:49:21]MH_GetDate [11:49:21]Write to MH i2c: F0 00 00 60 7C CB [11:49:21]Write i2c OK [11:49:21]MH_I2C_Read... [11:49:21]Read from MH i2c: F0 [11:49:21]MH_I2C_Read... [11:49:21]Read from MH i2c: F0 09 00 [11:49:21]MH_I2C_Read... [11:49:21]Read from MH i2c: F0 09 00 60 7C 00 4A EE 14 67 04 C1 95 66 47 [11:49:21]GetLastDocTimeStamp 1729424929 [11:49:21]current date 1729424970 [11:49:21]FM_GetShiftState [11:49:21]SAM_PROTO_GetShiftState [11:49:21]wFMCommunicate request_size=4 [11:49:21]MH_SAM_APDU [11:49:21]CAPDU: 80 13 01 00 [11:49:21]Write to MH i2c: E2 08 00 61 7C 80 13 01 00 00 00 00 00 5A [11:49:21]Write i2c OK [11:49:21]MH_I2C_Read... [11:49:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:49:21]Read from MH i2c: E2 [11:49:21]MH_I2C_Read... [11:49:21]Read from MH i2c: E2 0E 00 [11:49:21]MH_I2C_Read... [11:49:21]Read from MH i2c: E2 0E 00 61 7C 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 40 [11:49:21]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [11:49:21]wFMCommunicate OK [11:49:21]SAM_PROTO_GetShiftState done [11:49:21]FM_GetShiftState done [11:49:21]opened in 1729384718 [11:49:21]opened+sec_in_day 1729471118 [11:49:21]quantity*price = 50041 [11:49:21]sum+1 = 50042 [11:49: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 СНО: Общий режим Чек 93 20.10.2024 11:49 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30311 ФПД: 13878686782643 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T114930&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30311&fm=13878686782643&tin=02508201610067®Number=0000000000186857&sum=50000 [11:49:22]StoreToDocumentArchive [11:49:22]shift 114 fd 30311 [11:49:22]save to /storage/0114/doc_00030311 [11:49:22]save last doc name /storage/0114/doc_00030311 to /storage/kkm_last_doc_name [11:49:22]save OK [11:49:22]Clear old archive folders... [11:49:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:49:22]tlvbuf is 00B23B70 [11:49:22]SAM_PROTO_ClearQueue [11:49:22]wFMCommunicate request_size=4 [11:49:22]MH_SAM_APDU [11:49:22]CAPDU: 80 09 00 00 [11:49:22]Write to MH i2c: E2 08 00 6E 7C 80 09 00 00 00 00 00 00 5C [11:49:22]Write i2c OK [11:49:22]MH_I2C_Read... [11:49:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:49:22]Read from MH i2c: E2 [11:49:22]MH_I2C_Read... [11:49:22]Read from MH i2c: E2 03 00 [11:49:22]MH_I2C_Read... [11:49:22]Read from MH i2c: E2 03 00 6E 7C 00 90 00 5E [11:49:22]RAPDU: 90 00 [11:49:22]wFMCommunicate OK [11:49:22]SAM_PROTO_ClearQueue done [11:49:22]KKMCreateOFDPacket [11:49:22]OFDProtocolAddRootSTLVToBuf [11:49:22]FM_MakeSignedData [11:49:22]FM_MakeSignedData [11:49:22]SAM_PROTO_SignData [11:49:22]wFMCommunicate request_size=4 [11:49:22]MH_SAM_APDU [11:49:22]CAPDU: 80 0D 01 02 [11:49:22]Write to MH i2c: E2 08 00 6F 7C 80 0D 01 02 00 00 00 00 64 [11:49:22]Write i2c OK [11:49:22]MH_I2C_Read... [11:49:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:49:22]Read from MH i2c: E2 [11:49:22]MH_I2C_Read... [11:49:22]Read from MH i2c: E2 03 00 [11:49:22]MH_I2C_Read... [11:49:22]Read from MH i2c: E2 03 00 6F 7C 00 90 00 5F [11:49:22]RAPDU: 90 00 [11:49:22]wFMCommunicate OK [11:49:22]wFMCommunicate request_size=255 [11:49:22]MH_SAM_APDU [11:49: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 5D 00 00 00 F4 03 04 00 4A EE 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 0C [11:49:22]Write to MH i2c: E2 02 01 70 7C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 5D 00 00 00 F4 03 04 00 4A EE 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 0C 00 00 60 [11:49:22]Write i2c OK [11:49:22]MH_I2C_Read... [11:49:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:49:22]Read from MH i2c: E2 [11:49:22]MH_I2C_Read... [11:49:22]Read from MH i2c: E2 03 00 [11:49:22]MH_I2C_Read... [11:49:22]Read from MH i2c: E2 03 00 70 7C 00 90 00 60 [11:49:22]RAPDU: 90 00 [11:49:22]wFMCommunicate OK [11:49:22]wFMCommunicate request_size=10 [11:49:22]MH_SAM_APDU [11:49:22]CAPDU: 80 0D 02 02 05 9F 62 32 14 B3 [11:49:22]Write to MH i2c: E2 0D 00 71 7C 80 0D 02 02 05 00 9F 62 32 14 B3 00 00 6B [11:49:22]Write i2c OK [11:49:22]MH_I2C_Read... [11:49:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:49:22]Read from MH i2c: E2 [11:49:22]MH_I2C_Read... [11:49:22]Read from MH i2c: E2 03 00 [11:49:22]MH_I2C_Read... [11:49:22]Read from MH i2c: E2 03 00 71 7C 00 90 00 61 [11:49:22]RAPDU: 90 00 [11:49:22]wFMCommunicate OK [11:49:22]wFMCommunicate request_size=4 [11:49:22]MH_SAM_APDU [11:49:22]CAPDU: 80 0D 03 02 [11:49:22]Write to MH i2c: E2 08 00 72 7C 80 0D 03 02 00 00 00 00 69 [11:49:22]Write i2c OK [11:49:22]MH_I2C_Read... [11:49:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:49:23]Read from MH i2c: E2 [11:49:23]MH_I2C_Read... [11:49:23]Read from MH i2c: E2 0B 00 [11:49:23]MH_I2C_Read... [11:49:23]Read from MH i2c: E2 0B 00 72 7C 00 66 92 B9 C6 F5 D5 B3 BD 90 00 1B [11:49:23]RAPDU: 66 92 B9 C6 F5 D5 B3 BD 90 00 [11:49:23]wFMCommunicate OK [11:49:23]SAM_PROTO_SignData done [11:49:23]FM_MakeSignedData done [11:49:23]CreateOFDProtocolMessage [11:49:23]wFMCommunicate request_size=4 [11:49:23]MH_SAM_APDU [11:49:23]CAPDU: 80 11 00 00 [11:49:23]Write to MH i2c: E2 08 00 73 7C 80 11 00 00 00 00 00 00 69 [11:49:23]Write i2c OK [11:49:23]MH_I2C_Read... [11:49:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:49:23]Read from MH i2c: E2 [11:49:23]MH_I2C_Read... [11:49:23]Read from MH i2c: E2 17 00 [11:49:23]MH_I2C_Read... [11:49:23]Read from MH i2c: E2 17 00 73 7C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 B7 [11:49: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:49:23]wFMCommunicate OK [11:49:23]CreateOFDProtocolMessage done [11:49:23]OFDSenderStorePacket 30311 [11:49:23]StoreOFDPacket docnum=30311 [11:49: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 69 53 07 01 DB 66 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 5D 00 00 00 F4 03 04 00 4A EE 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 0C 9F 62 32 14 B3 66 92 B9 C6 F5 D5 B3 BD [11:49:23]CheckFolder [11:49:23]dirname=/storage/ofd_packets [11:49:23]CheckFolder done [11:49:23]ProducePacketName [11:49:23]name=ofd_packets/00030311 [11:49:23]NVStorageSaveData ofd_packets/00030311 [11:49:23]File name is /storage/ofd_packets/00030311 [11:49:23]Write 301 bytes [11:49:23]NVStorageSaveData done [11:49:23]OFDSenderStorePacket done [11:49:23]KKMCreateOFDPacket done [11:49:23]NVStorageSaveData kkm_last_timestamp [11:49:23]File name is /storage/kkm_last_timestamp [11:49:23]Write 4 bytes [11:49:23]NVStorageSaveData done [11:49:23]ExternCall_PrintAddStr [11:49:23]wPrintStart [11:49:23]Write to MH i2c: 01 00 00 74 7C F0 [11:49:23]Write i2c OK [11:49:23]MH_I2C_Read... [11:49:23]Read from MH i2c: 01 [11:49:23]MH_I2C_Read... [11:49:23]Read from MH i2c: 01 07 00 [11:49:23]MH_I2C_Read... [11:49:23]Read from MH i2c: 01 07 00 74 7C 00 00 00 00 00 FF 0F 05 [11:49:23]RasterBufferAndPrint [11:49:23]line Счет N : (1)342703 [11:49:23]line ИНН: 02508201610067 [11:49:23]line Контрольно-Кассовый Чек [11:49:23]line ПРОДАЖА [11:49:23]line ТРК (МРК, ГНК) : 33 [11:49:23]line Товар: 2710124130 [11:49:23]line Аи-92-К-2 [11:49:23]line 7.480 * 66.90 [11:49:23]line = 500.41 [11:49:23]line НДС 12% НСП 1% [11:49:23]line > о реализуемом товаре [11:49:23]line ОКРУГЛЕНИЕ: -0.41 [11:49:23]line ИТОГО: 500.00 [11:49:23]line Внесено: 500.00 [11:49:23]line СДАЧА: 0.00 [11:49:23]line НСП 1% : 4.43 [11:49:23]line НДС 12% : 53.14 [11:49:23]line Наличными: 500.00 [11:49:23]line Безнал.: 0.00 [11:49:23]line Место: АЗС № 78 "Партнер Нефть" [11:49:23]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [11:49:23]line СНО: Общий режим [11:49:23]line Чек 93 20.10.2024 11:49 [11:49:23]line Смена: 114 ФФД: 1.0 [11:49:23]line ЗНМ: 0300000137 [11:49:23]line РНМ: 0000000000186857 [11:49:23]line Версия ККМ: v1.0 [11:49:23]line ФМ: 0000000002094219 [11:49:23]line ФД: 30311 [11:49:23]line ФПД: 13878686782643 [11:49:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T114930&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30311&fm=13878686782643&tin=02508201610067®Number=0000000000186857&sum=50000 [11:49:23]OFD Sender: Processing packet 30311 [packets to send 10, broken 9] [11:49:23]ProducePacketName [11:49:23]name=ofd_packets/00030311 [11:49:23]OFD Sender: To server: pG, [11:49:23]CommunicateWithHost lk.salyk.kg:30040 [11:49:23]ConnectInit lk.salyk.kg [11:49:23]written 0, free lines is 4095 [11:49:23]Connected sock=10 [11:49: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 69 53 07 01 DB 66 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 5D 00 00 00 F4 03 04 00 4A EE 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 0C 9F 62 32 14 B3 66 92 B9 C6 F5 D5 B3 BD [11:49: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 A0 35 47 00 42 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 67 76 00 00 F4 03 04 00 CE 98 14 67 B6 04 01 00 00 DA 68 4C 57 9B 88 69 D3 [11:49:23]CommunicateWithHost err = 0 [11:49:23]CheckOFDResponse [11:49:23]1017 (14) - 77093643461234 [11:49:23]1041 (16) - 0000000002094219 [11:49:23]1040 (4) - 30311 [11:49:23]1012 (4) - 20.10.2024 05:44 [11:49:23]1206 (1) - 0 [11:49:23]OFD Sender: Remove packet 30311 [11:49:23]ProducePacketName [11:49:23]name=ofd_packets/00030311 [11:49:23]NVStorageDeleteData [11:49:23]Write to MH i2c: 01 00 00 9F 7C 1B [11:49:23]Write i2c OK [11:49:23]MH_I2C_Read... [11:49:23]Read from MH i2c: 01 [11:49:23]MH_I2C_Read... [11:49:23]Read from MH i2c: 01 07 00 [11:49:23]MH_I2C_Read... [11:49:23]Read from MH i2c: 01 07 00 9F 7C 00 00 00 00 00 EC 0C 1A [11:49:23]RasterBufferAndPrint [11:49:23]line [11:49:23]line [11:49:23]line [11:49:23]line [11:49:23]line [11:49:23]written 0, free lines is 3314 [11:49:23]MH_Cut [11:49:23]Write to MH i2c: D1 01 00 A6 7C 01 F4 [11:49:23]Write i2c OK [11:49:23]MH_I2C_Read... [11:49:23]Read from MH i2c: D1 [11:49:23]MH_I2C_Read... [11:49:23]Read from MH i2c: D1 01 00 [11:49:23]MH_I2C_Read... [11:49:23]Read from MH i2c: D1 01 00 A6 7C 00 F3 [11:49:23]Write to MH i2c: 01 00 00 A7 7C 23 [11:49:23]Write i2c OK [11:49:23]MH_I2C_Read... [11:49:24]OFD Sender: No OFD packet to send [11:49:24]*** Cut start [11:49:24]*** Partial cut [11:49:24]*** CUTSNS_PIN = 1 [11:49:24]*** CUTSNS_PIN = 0 [11:49:24]*** Brake cut motor [11:49:25]Read from MH i2c: 01 [11:49:25]MH_I2C_Read... [11:49:25]*** Stop cut motor [11:49:25]*** Cut end [11:49:25]Read from MH i2c: 01 07 00 [11:49:25]MH_I2C_Read... [11:49:25]Read from MH i2c: 01 07 00 A7 7C 00 00 00 00 00 FF 0F 38 [11:49:25]process_action close_receipt done [11:49:25]requested_data is exist [11:49:25]produce_requested_data [11:49:25]requested_item fm.sn is exist - process it [11:49:25]wFMCommunicate request_size=4 [11:49:25]MH_SAM_APDU [11:49:25]CAPDU: 80 11 00 00 [11:49:25]Write to MH i2c: E2 08 00 A8 7C 80 11 00 00 00 00 00 00 9E [11:49:25]Write i2c OK [11:49:25]MH_I2C_Read... [11:49:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:49:25]Read from MH i2c: E2 [11:49:25]MH_I2C_Read... [11:49:25]Read from MH i2c: E2 17 00 [11:49:25]MH_I2C_Read... [11:49:25]Read from MH i2c: E2 17 00 A8 7C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 EC [11:49: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:49:25]wFMCommunicate OK [11:49:25]requested_item fd.num is exist - process it [11:49:25]SAM_PROTO_GetFieldsCounters [11:49:25]wFMCommunicate request_size=4 [11:49:25]MH_SAM_APDU [11:49:25]CAPDU: 80 13 00 00 [11:49:25]Write to MH i2c: E2 08 00 A9 7C 80 13 00 00 00 00 00 00 A1 [11:49:25]Write i2c OK [11:49:25]MH_I2C_Read... [11:49:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:49:25]Read from MH i2c: E2 [11:49:25]MH_I2C_Read... [11:49:25]Read from MH i2c: E2 62 00 [11:49:25]MH_I2C_Read... [11:49:25]Read from MH i2c: E2 62 00 A9 7C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 2D [11:49: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 67 76 00 00 0E 04 04 00 72 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 [11:49:25]wFMCommunicate OK [11:49:25]SAM_PROTO_GetFieldsCounters done [11:49:25]requested_item shift.num is exist - process it [11:49:25]requested_item shift.opened is exist - process it [11:49:25]req_shift_opened [11:49:25]FM_GetShiftState [11:49:25]SAM_PROTO_GetShiftState [11:49:25]wFMCommunicate request_size=4 [11:49:25]MH_SAM_APDU [11:49:25]CAPDU: 80 13 01 00 [11:49:25]Write to MH i2c: E2 08 00 AA 7C 80 13 01 00 00 00 00 00 A3 [11:49:25]Write i2c OK [11:49:25]MH_I2C_Read... [11:49:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:49:25]Read from MH i2c: E2 [11:49:25]MH_I2C_Read... [11:49:25]Read from MH i2c: E2 0E 00 [11:49:25]MH_I2C_Read... [11:49:25]Read from MH i2c: E2 0E 00 AA 7C 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 89 [11:49:25]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [11:49:25]wFMCommunicate OK [11:49:25]SAM_PROTO_GetShiftState done [11:49:25]FM_GetShiftState done [11:49:25]req_shift_opened done [11:49:25]requested_item shift.open_date is exist - process it [11:49:25]req_shift_open_date [11:49:25]req_shift_open_date done [11:49:25]produce_requested_data done [11:49:25]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30311,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [11:49:25]process_action_free close_receipt [11:49:25]json_value_free [11:49:25]json_value_free done [11:49:25]process_json_proto returns [11:49:25]Send response to host [11:49:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30311,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [11:49:25]free response buf [11:49:25]execute_script done [11:49:25]execute_script returns [11:49:25]free content buf [11:49:25]Sock 7.Close socket [11:49:25]Sock 7.Thread stoped [11:49:29]OFD Sender: No OFD packet to send [11:49:34]OFD Sender: No OFD packet to send [11:49:39]OFD Sender: No OFD packet to send [11:49:44]OFD Sender: No OFD packet to send [11:49:47]accept exits with 9 [11:49:47]New connection [11:49:47]New thread 3067514212 created [11:49:47]Thread 3067370852 joined [11:49:47]Waiting for new connection... [11:49:47] Sock 9.Parse request [11:49:47]Sock 9.Check first char [11:49:47]Sock 9.First char is OK [11:49:47]request: POST /json_proto HTTP/1.0 [11:49:47]Method: POST [11:49:47]URL: /json_proto [11:49:47]Method is POST - this is cgi request [11:49:47]url: /json_proto [11:49:47]query_string will be loaded in cgi processing [11:49:47]execute_cgi json_proto POST (null) [11:49:47]execute_cgi path=json_proto method=POST [11:49:47]POST find Content-Length [11:49:47]Host: 172.17.51.3:8080 [11:49:47]Content-Length: 678 [11:49:47]Content-Type: application/json [11:49:47] [11:49:47]POST finish read [11:49:47]Found Content-Length = 678 [11:49:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342704", "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" : 13.760, "sum" : 920.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 920.00, "total" : 920.00, "payments": [ { "type": 0, "sum" : 920.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:49:47]execute_script... [11:49: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)342704", "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" : 13.760, "sum" : 920.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 920.00, "total" : 920.00, "payments": [ { "type": 0, "sum" : 920.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:49:47]POST & json_proto [11:49:47]process_json_proto [11:49:47]json parsed OK: [11:49:47]protocol is kg_v1.0 [11:49:47]action value=close_receipt [11:49:47]process_action close_receipt [11:49:47]cmd_close_receipt [11:49:47]MH_GetDate [11:49:47]Write to MH i2c: F0 00 00 AB 7C 16 [11:49:47]Write i2c OK [11:49:47]MH_I2C_Read... [11:49:47]Read from MH i2c: F0 [11:49:47]MH_I2C_Read... [11:49:47]Read from MH i2c: F0 09 00 [11:49:47]MH_I2C_Read... [11:49:47]Read from MH i2c: F0 09 00 AB 7C 00 64 EE 14 67 04 C1 95 66 AC [11:49:47]GetLastDocTimeStamp 1729424970 [11:49:47]current date 1729424996 [11:49:47]FM_GetShiftState [11:49:47]SAM_PROTO_GetShiftState [11:49:47]wFMCommunicate request_size=4 [11:49:47]MH_SAM_APDU [11:49:47]CAPDU: 80 13 01 00 [11:49:47]Write to MH i2c: E2 08 00 AC 7C 80 13 01 00 00 00 00 00 A5 [11:49:47]Write i2c OK [11:49:47]MH_I2C_Read... [11:49:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:49:47]Read from MH i2c: E2 [11:49:47]MH_I2C_Read... [11:49:47]Read from MH i2c: E2 0E 00 [11:49:47]MH_I2C_Read... [11:49:47]Read from MH i2c: E2 0E 00 AC 7C 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 8B [11:49:47]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [11:49:47]wFMCommunicate OK [11:49:47]SAM_PROTO_GetShiftState done [11:49:47]FM_GetShiftState done [11:49:47]opened in 1729384718 [11:49:47]opened+sec_in_day 1729471118 [11:49:47]quantity*price = 92054 [11:49:47]sum+1 = 92055 [11:49:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.54 ИТОГО: 920.00 Внесено: 920.00 СДАЧА: 0.00 НСП 1% : 8.15 НДС 12% : 97.76 Наличными: 920.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 94 20.10.2024 11:49 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30312 ФПД: 136598954711959 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T114956&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30312&fm=136598954711959&tin=02508201610067®Number=0000000000186857&sum=92000 [11:49:48]StoreToDocumentArchive [11:49:48]shift 114 fd 30312 [11:49:48]save to /storage/0114/doc_00030312 [11:49:48]save last doc name /storage/0114/doc_00030312 to /storage/kkm_last_doc_name [11:49:48]save OK [11:49:48]Clear old archive folders... [11:49:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:49:48]tlvbuf is 00D1AF30 [11:49:48]SAM_PROTO_ClearQueue [11:49:48]wFMCommunicate request_size=4 [11:49:48]MH_SAM_APDU [11:49:48]CAPDU: 80 09 00 00 [11:49:48]Write to MH i2c: E2 08 00 B9 7C 80 09 00 00 00 00 00 00 A7 [11:49:48]Write i2c OK [11:49:48]MH_I2C_Read... [11:49:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:49:48]Read from MH i2c: E2 [11:49:48]MH_I2C_Read... [11:49:48]Read from MH i2c: E2 03 00 [11:49:48]MH_I2C_Read... [11:49:48]Read from MH i2c: E2 03 00 B9 7C 00 90 00 A9 [11:49:48]RAPDU: 90 00 [11:49:48]wFMCommunicate OK [11:49:48]SAM_PROTO_ClearQueue done [11:49:48]KKMCreateOFDPacket [11:49:48]OFDProtocolAddRootSTLVToBuf [11:49:48]FM_MakeSignedData [11:49:48]FM_MakeSignedData [11:49:48]SAM_PROTO_SignData [11:49:48]wFMCommunicate request_size=4 [11:49:48]MH_SAM_APDU [11:49:48]CAPDU: 80 0D 01 02 [11:49:48]Write to MH i2c: E2 08 00 BA 7C 80 0D 01 02 00 00 00 00 AF [11:49:48]Write i2c OK [11:49:48]MH_I2C_Read... [11:49:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:49:48]Read from MH i2c: E2 [11:49:48]MH_I2C_Read... [11:49:48]Read from MH i2c: E2 03 00 [11:49:48]MH_I2C_Read... [11:49:48]Read from MH i2c: E2 03 00 BA 7C 00 90 00 AA [11:49:48]RAPDU: 90 00 [11:49:48]wFMCommunicate OK [11:49:48]wFMCommunicate request_size=255 [11:49:48]MH_SAM_APDU [11:49: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 C0 35 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 96 67 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 67 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 26 00 00 00 00 07 04 06 00 60 67 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 64 EE 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 7C [11:49:48]Write to MH i2c: E2 02 01 BB 7C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 C0 35 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 96 67 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 67 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 26 00 00 00 00 07 04 06 00 60 67 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 64 EE 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 7C 00 00 F9 [11:49:48]Write i2c OK [11:49:48]MH_I2C_Read... [11:49:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:49:48]Read from MH i2c: E2 [11:49:48]MH_I2C_Read... [11:49:48]Read from MH i2c: E2 03 00 [11:49:48]MH_I2C_Read... [11:49:48]Read from MH i2c: E2 03 00 BB 7C 00 90 00 AB [11:49:48]RAPDU: 90 00 [11:49:48]wFMCommunicate OK [11:49:48]wFMCommunicate request_size=10 [11:49:48]MH_SAM_APDU [11:49:48]CAPDU: 80 0D 02 02 05 3C 6C 2C 1B 97 [11:49:48]Write to MH i2c: E2 0D 00 BC 7C 80 0D 02 02 05 00 3C 6C 2C 1B 97 00 00 42 [11:49:48]Write i2c OK [11:49:48]MH_I2C_Read... [11:49:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:49:48]Read from MH i2c: E2 [11:49:48]MH_I2C_Read... [11:49:48]Read from MH i2c: E2 03 00 [11:49:48]MH_I2C_Read... [11:49:48]Read from MH i2c: E2 03 00 BC 7C 00 90 00 AC [11:49:48]RAPDU: 90 00 [11:49:48]wFMCommunicate OK [11:49:48]wFMCommunicate request_size=4 [11:49:48]MH_SAM_APDU [11:49:48]CAPDU: 80 0D 03 02 [11:49:48]Write to MH i2c: E2 08 00 BD 7C 80 0D 03 02 00 00 00 00 B4 [11:49:48]Write i2c OK [11:49:48]MH_I2C_Read... [11:49:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:49:48]Read from MH i2c: E2 [11:49:48]MH_I2C_Read... [11:49:48]Read from MH i2c: E2 0B 00 [11:49:48]MH_I2C_Read... [11:49:48]Read from MH i2c: E2 0B 00 BD 7C 00 F9 78 F5 A0 95 1C E1 EF 90 00 3C [11:49:48]RAPDU: F9 78 F5 A0 95 1C E1 EF 90 00 [11:49:48]wFMCommunicate OK [11:49:48]SAM_PROTO_SignData done [11:49:48]FM_MakeSignedData done [11:49:48]CreateOFDProtocolMessage [11:49:48]wFMCommunicate request_size=4 [11:49:48]MH_SAM_APDU [11:49:48]CAPDU: 80 11 00 00 [11:49:48]Write to MH i2c: E2 08 00 BE 7C 80 11 00 00 00 00 00 00 B4 [11:49:48]Write i2c OK [11:49:48]MH_I2C_Read... [11:49:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:49:48]Read from MH i2c: E2 [11:49:48]MH_I2C_Read... [11:49:48]Read from MH i2c: E2 17 00 [11:49:48]MH_I2C_Read... [11:49:48]Read from MH i2c: E2 17 00 BE 7C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 02 [11:49: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:49:48]wFMCommunicate OK [11:49:48]CreateOFDProtocolMessage done [11:49:48]OFDSenderStorePacket 30312 [11:49:48]StoreOFDPacket docnum=30312 [11:49: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 07 7F 07 01 B2 4B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 C0 35 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 96 67 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 67 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 26 00 00 00 00 07 04 06 00 60 67 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 64 EE 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 7C 3C 6C 2C 1B 97 F9 78 F5 A0 95 1C E1 EF [11:49:48]CheckFolder [11:49:48]dirname=/storage/ofd_packets [11:49:48]CheckFolder done [11:49:48]ProducePacketName [11:49:48]name=ofd_packets/00030312 [11:49:48]NVStorageSaveData ofd_packets/00030312 [11:49:48]File name is /storage/ofd_packets/00030312 [11:49:48]Write 301 bytes [11:49:48]NVStorageSaveData done [11:49:48]OFDSenderStorePacket done [11:49:48]KKMCreateOFDPacket done [11:49:48]NVStorageSaveData kkm_last_timestamp [11:49:48]File name is /storage/kkm_last_timestamp [11:49:48]Write 4 bytes [11:49:48]NVStorageSaveData done [11:49:48]ExternCall_PrintAddStr [11:49:48]wPrintStart [11:49:48]Write to MH i2c: 01 00 00 BF 7C 3B [11:49:48]Write i2c OK [11:49:48]MH_I2C_Read... [11:49:48]Read from MH i2c: 01 [11:49:48]MH_I2C_Read... [11:49:48]Read from MH i2c: 01 07 00 [11:49:48]MH_I2C_Read... [11:49:48]Read from MH i2c: 01 07 00 BF 7C 00 00 00 00 00 FF 0F 50 [11:49:48]RasterBufferAndPrint [11:49:48]line Счет N : (1)342704 [11:49:48]line ИНН: 02508201610067 [11:49:48]line Контрольно-Кассовый Чек [11:49:48]line ПРОДАЖА [11:49:48]line ТРК (МРК, ГНК) : 43 [11:49:48]line Товар: 2710124130 [11:49:48]line Аи-92-К-2 [11:49:48]line 13.760 * 66.90 [11:49:48]line = 920.54 [11:49:48]line НДС 12% НСП 1% [11:49:48]line > о реализуемом товаре [11:49:48]line ОКРУГЛЕНИЕ: -0.54 [11:49:48]line ИТОГО: 920.00 [11:49:48]line Внесено: 920.00 [11:49:48]line СДАЧА: 0.00 [11:49:48]line НСП 1% : 8.15 [11:49:48]line НДС 12% : 97.76 [11:49:48]line Наличными: 920.00 [11:49:48]line Безнал.: 0.00 [11:49:48]line Место: АЗС № 78 "Партнер Нефть" [11:49:48]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [11:49:48]line СНО: Общий режим [11:49:48]line Чек 94 20.10.2024 11:49 [11:49:48]line Смена: 114 ФФД: 1.0 [11:49:48]line ЗНМ: 0300000137 [11:49:48]line РНМ: 0000000000186857 [11:49:48]line Версия ККМ: v1.0 [11:49:48]line ФМ: 0000000002094219 [11:49:48]line ФД: 30312 [11:49:48]line ФПД: 136598954711959 [11:49:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T114956&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30312&fm=136598954711959&tin=02508201610067®Number=0000000000186857&sum=92000 [11:49:49]OFD Sender: Processing packet 30312 [packets to send 10, broken 9] [11:49:49]ProducePacketName [11:49:49]name=ofd_packets/00030312 [11:49:49]OFD Sender: To server: pG, [11:49:49]CommunicateWithHost lk.salyk.kg:30040 [11:49:49]ConnectInit lk.salyk.kg [11:49:49]written 0, free lines is 4095 [11:49:49]Connected sock=10 [11:49: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 07 7F 07 01 B2 4B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 C0 35 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 96 67 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 67 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 26 00 00 00 00 07 04 06 00 60 67 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 64 EE 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 7C 3C 6C 2C 1B 97 F9 78 F5 A0 95 1C E1 EF [11:49: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 C6 8B 47 00 22 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 68 76 00 00 F4 03 04 00 E8 98 14 67 B6 04 01 00 00 CA A6 6B B1 CE 45 1D 30 [11:49:49]CommunicateWithHost err = 0 [11:49:49]CheckOFDResponse [11:49:49]1017 (14) - 77093643461234 [11:49:49]1041 (16) - 0000000002094219 [11:49:49]1040 (4) - 30312 [11:49:49]1012 (4) - 20.10.2024 05:45 [11:49:49]1206 (1) - 0 [11:49:49]OFD Sender: Remove packet 30312 [11:49:49]ProducePacketName [11:49:49]name=ofd_packets/00030312 [11:49:49]NVStorageDeleteData [11:49:49]Write to MH i2c: 01 00 00 EA 7C 66 [11:49:49]Write i2c OK [11:49:49]MH_I2C_Read... [11:49:49]Read from MH i2c: 01 [11:49:49]MH_I2C_Read... [11:49:49]Read from MH i2c: 01 07 00 [11:49:49]MH_I2C_Read... [11:49:49]Read from MH i2c: 01 07 00 EA 7C 00 00 00 00 00 F5 0C 6E [11:49:49]RasterBufferAndPrint [11:49:49]line [11:49:49]line [11:49:49]line [11:49:49]line [11:49:49]line [11:49:49]written 0, free lines is 3327 [11:49:49]MH_Cut [11:49:49]Write to MH i2c: D1 01 00 F1 7C 01 3F [11:49:49]Write i2c OK [11:49:49]MH_I2C_Read... [11:49:49]Read from MH i2c: D1 [11:49:49]MH_I2C_Read... [11:49:49]Read from MH i2c: D1 01 00 [11:49:49]MH_I2C_Read... [11:49:49]Read from MH i2c: D1 01 00 F1 7C 00 3E [11:49:49]Write to MH i2c: 01 00 00 F2 7C 6E [11:49:49]Write i2c OK [11:49:49]MH_I2C_Read... [11:49:50]OFD Sender: No OFD packet to send [11:49:50]*** Cut start [11:49:50]*** Partial cut [11:49:50]*** CUTSNS_PIN = 1 [11:49:50]*** CUTSNS_PIN = 0 [11:49:50]*** Brake cut motor [11:49:50]Read from MH i2c: 01 [11:49:50]MH_I2C_Read... [11:49:50]*** Stop cut motor [11:49:50]*** Cut end [11:49:50]Read from MH i2c: 01 07 00 [11:49:50]MH_I2C_Read... [11:49:50]Read from MH i2c: 01 07 00 F2 7C 00 00 00 00 00 FF 0F 83 [11:49:50]process_action close_receipt done [11:49:50]requested_data is exist [11:49:50]produce_requested_data [11:49:50]requested_item fm.sn is exist - process it [11:49:50]wFMCommunicate request_size=4 [11:49:50]MH_SAM_APDU [11:49:50]CAPDU: 80 11 00 00 [11:49:50]Write to MH i2c: E2 08 00 F3 7C 80 11 00 00 00 00 00 00 E9 [11:49:50]Write i2c OK [11:49:50]MH_I2C_Read... [11:49:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:49:50]Read from MH i2c: E2 [11:49:50]MH_I2C_Read... [11:49:50]Read from MH i2c: E2 17 00 [11:49:50]MH_I2C_Read... [11:49:50]Read from MH i2c: E2 17 00 F3 7C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 37 [11:49:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [11:49:50]wFMCommunicate OK [11:49:50]requested_item fd.num is exist - process it [11:49:50]SAM_PROTO_GetFieldsCounters [11:49:50]wFMCommunicate request_size=4 [11:49:50]MH_SAM_APDU [11:49:50]CAPDU: 80 13 00 00 [11:49:50]Write to MH i2c: E2 08 00 F4 7C 80 13 00 00 00 00 00 00 EC [11:49:50]Write i2c OK [11:49:50]MH_I2C_Read... [11:49:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:49:51]Read from MH i2c: E2 [11:49:51]MH_I2C_Read... [11:49:51]Read from MH i2c: E2 62 00 [11:49:51]MH_I2C_Read... [11:49:51]Read from MH i2c: E2 62 00 F4 7C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 7C [11:49: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 68 76 00 00 0E 04 04 00 72 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 [11:49:51]wFMCommunicate OK [11:49:51]SAM_PROTO_GetFieldsCounters done [11:49:51]requested_item shift.num is exist - process it [11:49:51]requested_item shift.opened is exist - process it [11:49:51]req_shift_opened [11:49:51]FM_GetShiftState [11:49:51]SAM_PROTO_GetShiftState [11:49:51]wFMCommunicate request_size=4 [11:49:51]MH_SAM_APDU [11:49:51]CAPDU: 80 13 01 00 [11:49:51]Write to MH i2c: E2 08 00 F5 7C 80 13 01 00 00 00 00 00 EE [11:49:51]Write i2c OK [11:49:51]MH_I2C_Read... [11:49:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:49:51]Read from MH i2c: E2 [11:49:51]MH_I2C_Read... [11:49:51]Read from MH i2c: E2 0E 00 [11:49:51]MH_I2C_Read... [11:49:51]Read from MH i2c: E2 0E 00 F5 7C 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 D4 [11:49:51]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [11:49:51]wFMCommunicate OK [11:49:51]SAM_PROTO_GetShiftState done [11:49:51]FM_GetShiftState done [11:49:51]req_shift_opened done [11:49:51]requested_item shift.open_date is exist - process it [11:49:51]req_shift_open_date [11:49:51]req_shift_open_date done [11:49:51]produce_requested_data done [11:49:51]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30312,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [11:49:51]process_action_free close_receipt [11:49:51]json_value_free [11:49:51]json_value_free done [11:49:51]process_json_proto returns [11:49:51]Send response to host [11:49:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30312,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [11:49:51]free response buf [11:49:51]execute_script done [11:49:51]execute_script returns [11:49:51]free content buf [11:49:51]Sock 9.Close socket [11:49:51]Sock 9.Thread stoped [11:49:55]OFD Sender: No OFD packet to send [11:50:00]OFD Sender: No OFD packet to send [11:50:05]OFD Sender: No OFD packet to send [11:50:10]OFD Sender: No OFD packet to send [11:50:13]accept exits with 7 [11:50:13]New connection [11:50:13]New thread 3067370852 created [11:50:13]Thread 3067514212 joined [11:50:13]Waiting for new connection... [11:50:13] Sock 7.Parse request [11:50:13]Sock 7.Check first char [11:50:13]Sock 7.First char is OK [11:50:13]request: POST /json_proto HTTP/1.0 [11:50:13]Method: POST [11:50:13]URL: /json_proto [11:50:13]Method is POST - this is cgi request [11:50:13]url: /json_proto [11:50:13]query_string will be loaded in cgi processing [11:50:13]execute_cgi json_proto POST (null) [11:50:13]execute_cgi path=json_proto method=POST [11:50:13]POST find Content-Length [11:50:13]Host: 172.17.51.3:8080 [11:50:13]Content-Length: 688 [11:50:13]Content-Type: application/json [11:50:13] [11:50:13]POST finish read [11:50:13]Found Content-Length = 688 [11:50:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342705", "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" ] } } [11:50:13]execute_script... [11:50: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)342705", "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" ] } } [11:50:13]POST & json_proto [11:50:13]process_json_proto [11:50:13]json parsed OK: [11:50:13]protocol is kg_v1.0 [11:50:13]action value=close_receipt [11:50:13]process_action close_receipt [11:50:13]cmd_close_receipt [11:50:13]MH_GetDate [11:50:13]Write to MH i2c: F0 00 00 F6 7C 61 [11:50:13]Write i2c OK [11:50:13]MH_I2C_Read... [11:50:13]Read from MH i2c: F0 [11:50:13]MH_I2C_Read... [11:50:13]Read from MH i2c: F0 09 00 [11:50:13]MH_I2C_Read... [11:50:13]Read from MH i2c: F0 09 00 F6 7C 00 7E EE 14 67 04 C1 95 66 11 [11:50:13]GetLastDocTimeStamp 1729424996 [11:50:13]current date 1729425022 [11:50:13]FM_GetShiftState [11:50:13]SAM_PROTO_GetShiftState [11:50:13]wFMCommunicate request_size=4 [11:50:13]MH_SAM_APDU [11:50:13]CAPDU: 80 13 01 00 [11:50:13]Write to MH i2c: E2 08 00 F7 7C 80 13 01 00 00 00 00 00 F0 [11:50:13]Write i2c OK [11:50:13]MH_I2C_Read... [11:50:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:50:13]Read from MH i2c: E2 [11:50:13]MH_I2C_Read... [11:50:13]Read from MH i2c: E2 0E 00 [11:50:13]MH_I2C_Read... [11:50:13]Read from MH i2c: E2 0E 00 F7 7C 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 D6 [11:50:13]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [11:50:13]wFMCommunicate OK [11:50:13]SAM_PROTO_GetShiftState done [11:50:13]FM_GetShiftState done [11:50:13]opened in 1729384718 [11:50:13]opened+sec_in_day 1729471118 [11:50:13]quantity*price = 100051 [11:50:13]sum+1 = 100052 [11:50: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 СНО: Общий режим Чек 95 20.10.2024 11:50 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30313 ФПД: 251121110926287 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T115022&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30313&fm=251121110926287&tin=02508201610067®Number=0000000000186857&sum=100000 [11:50:14]StoreToDocumentArchive [11:50:14]shift 114 fd 30313 [11:50:14]save to /storage/0114/doc_00030313 [11:50:14]save last doc name /storage/0114/doc_00030313 to /storage/kkm_last_doc_name [11:50:14]save OK [11:50:14]Clear old archive folders... [11:50:14]ProcessDocumentItem done err = 0, tmpTLVsize=257 [11:50:14]tlvbuf is 00A8DE90 [11:50:14]SAM_PROTO_ClearQueue [11:50:14]wFMCommunicate request_size=4 [11:50:14]MH_SAM_APDU [11:50:14]CAPDU: 80 09 00 00 [11:50:14]Write to MH i2c: E2 08 00 04 7D 80 09 00 00 00 00 00 00 F3 [11:50:14]Write i2c OK [11:50:14]MH_I2C_Read... [11:50:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:50:14]Read from MH i2c: E2 [11:50:14]MH_I2C_Read... [11:50:14]Read from MH i2c: E2 03 00 [11:50:14]MH_I2C_Read... [11:50:14]Read from MH i2c: E2 03 00 04 7D 00 90 00 F5 [11:50:14]RAPDU: 90 00 [11:50:14]wFMCommunicate OK [11:50:14]SAM_PROTO_ClearQueue done [11:50:14]KKMCreateOFDPacket [11:50:14]OFDProtocolAddRootSTLVToBuf [11:50:14]FM_MakeSignedData [11:50:14]FM_MakeSignedData [11:50:14]SAM_PROTO_SignData [11:50:14]wFMCommunicate request_size=4 [11:50:14]MH_SAM_APDU [11:50:14]CAPDU: 80 0D 01 02 [11:50:14]Write to MH i2c: E2 08 00 05 7D 80 0D 01 02 00 00 00 00 FB [11:50:14]Write i2c OK [11:50:14]MH_I2C_Read... [11:50:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:50:14]Read from MH i2c: E2 [11:50:14]MH_I2C_Read... [11:50:14]Read from MH i2c: E2 03 00 [11:50:14]MH_I2C_Read... [11:50:14]Read from MH i2c: E2 03 00 05 7D 00 90 00 F6 [11:50:14]RAPDU: 90 00 [11:50:14]wFMCommunicate OK [11:50:14]wFMCommunicate request_size=255 [11:50:14]MH_SAM_APDU [11:50:14]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 7E EE 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 [11:50:14]Write to MH i2c: E2 02 01 06 7D 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 7E EE 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 00 EC [11:50:14]Write i2c OK [11:50:14]MH_I2C_Read... [11:50:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:50:14]Read from MH i2c: E2 [11:50:14]MH_I2C_Read... [11:50:14]Read from MH i2c: E2 03 00 [11:50:14]MH_I2C_Read... [11:50:14]Read from MH i2c: E2 03 00 06 7D 00 90 00 F7 [11:50:14]RAPDU: 90 00 [11:50:14]wFMCommunicate OK [11:50:14]wFMCommunicate request_size=16 [11:50:14]MH_SAM_APDU [11:50:14]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 E4 64 B0 9C C3 CF [11:50:14]Write to MH i2c: E2 13 00 07 7D 80 0D 02 02 0B 00 00 35 04 06 00 E4 64 B0 9C C3 CF 00 00 79 [11:50:14]Write i2c OK [11:50:14]MH_I2C_Read... [11:50:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:50:15]Read from MH i2c: E2 [11:50:15]MH_I2C_Read... [11:50:15]Read from MH i2c: E2 03 00 [11:50:15]MH_I2C_Read... [11:50:15]Read from MH i2c: E2 03 00 07 7D 00 90 00 F8 [11:50:15]RAPDU: 90 00 [11:50:15]wFMCommunicate OK [11:50:15]wFMCommunicate request_size=4 [11:50:15]MH_SAM_APDU [11:50:15]CAPDU: 80 0D 03 02 [11:50:15]Write to MH i2c: E2 08 00 08 7D 80 0D 03 02 00 00 00 00 00 [11:50:15]Write i2c OK [11:50:15]MH_I2C_Read... [11:50:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:50:15]Read from MH i2c: E2 [11:50:15]MH_I2C_Read... [11:50:15]Read from MH i2c: E2 0B 00 [11:50:15]MH_I2C_Read... [11:50:15]Read from MH i2c: E2 0B 00 08 7D 00 98 95 3F E5 5B 93 CC B8 90 00 C4 [11:50:15]RAPDU: 98 95 3F E5 5B 93 CC B8 90 00 [11:50:15]wFMCommunicate OK [11:50:15]SAM_PROTO_SignData done [11:50:15]FM_MakeSignedData done [11:50:15]CreateOFDProtocolMessage [11:50:15]wFMCommunicate request_size=4 [11:50:15]MH_SAM_APDU [11:50:15]CAPDU: 80 11 00 00 [11:50:15]Write to MH i2c: E2 08 00 09 7D 80 11 00 00 00 00 00 00 00 [11:50:15]Write i2c OK [11:50:15]MH_I2C_Read... [11:50:15]OFD Sender: No OFD packet to send [11:50:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:50:15]Read from MH i2c: E2 [11:50:15]MH_I2C_Read... [11:50:15]Read from MH i2c: E2 17 00 [11:50:15]MH_I2C_Read... [11:50:15]Read from MH i2c: E2 17 00 09 7D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 4E [11:50:15]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:15]wFMCommunicate OK [11:50:15]CreateOFDProtocolMessage done [11:50:15]OFDSenderStorePacket 30313 [11:50:15]StoreOFDPacket docnum=30313 [11:50: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 43 90 0D 01 1F CB 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 7E EE 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 E4 64 B0 9C C3 CF 98 95 3F E5 5B 93 CC B8 [11:50:15]CheckFolder [11:50:15]dirname=/storage/ofd_packets [11:50:15]CheckFolder done [11:50:15]ProducePacketName [11:50:15]name=ofd_packets/00030313 [11:50:15]NVStorageSaveData ofd_packets/00030313 [11:50:15]File name is /storage/ofd_packets/00030313 [11:50:15]Write 307 bytes [11:50:15]NVStorageSaveData done [11:50:15]OFDSenderStorePacket done [11:50:15]KKMCreateOFDPacket done [11:50:15]NVStorageSaveData kkm_last_timestamp [11:50:15]File name is /storage/kkm_last_timestamp [11:50:15]Write 4 bytes [11:50:15]NVStorageSaveData done [11:50:15]ExternCall_PrintAddStr [11:50:15]wPrintStart [11:50:15]Write to MH i2c: 01 00 00 0A 7D 87 [11:50:15]Write i2c OK [11:50:15]MH_I2C_Read... [11:50:15]Read from MH i2c: 01 [11:50:15]MH_I2C_Read... [11:50:15]Read from MH i2c: 01 07 00 [11:50:15]MH_I2C_Read... [11:50:15]Read from MH i2c: 01 07 00 0A 7D 00 00 00 00 00 FF 0F 9C [11:50:15]RasterBufferAndPrint [11:50:15]line Счет N : (1)342705 [11:50:15]line ИНН: 02508201610067 [11:50:15]line Контрольно-Кассовый Чек [11:50:15]line ПРОДАЖА [11:50:15]line ТРК (МРК, ГНК) : 61 [11:50:15]line Товар: 2710194210 [11:50:15]line D-ENERGY Дт-К-2 [11:50:15]line 12.960 * 77.20 [11:50:15]line = 1000.51 [11:50:15]line НДС 12% НСП 1% [11:50:15]line > о реализуемом товаре [11:50:15]line ОКРУГЛЕНИЕ: -0.51 [11:50:15]line ИТОГО: 1000.00 [11:50:15]line Внесено: 1000.00 [11:50:15]line СДАЧА: 0.00 [11:50:15]line НСП 1% : 8.85 [11:50:15]line НДС 12% : 106.25 [11:50:15]line Наличными: 1000.00 [11:50:15]line Безнал.: 0.00 [11:50:15]line Место: АЗС № 78 "Партнер Нефть" [11:50:15]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [11:50:15]line СНО: Общий режим [11:50:15]line Чек 95 20.10.2024 11:50 [11:50:15]line Смена: 114 ФФД: 1.0 [11:50:15]line ЗНМ: 0300000137 [11:50:15]line РНМ: 0000000000186857 [11:50:15]line Версия ККМ: v1.0 [11:50:15]line ФМ: 0000000002094219 [11:50:15]line ФД: 30313 [11:50:15]line ФПД: 251121110926287 [11:50:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T115022&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30313&fm=251121110926287&tin=02508201610067®Number=0000000000186857&sum=100000 [11:50:15]OFD Sender: Processing packet 30313 [packets to send 10, broken 9] [11:50:15]ProducePacketName [11:50:15]name=ofd_packets/00030313 [11:50:15]OFD Sender: To server: pG, [11:50:15]CommunicateWithHost lk.salyk.kg:30040 [11:50:15]ConnectInit lk.salyk.kg [11:50:15]written 0, free lines is 4095 [11:50:15]Connected sock=10 [11:50: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 15 01 00 00 43 90 0D 01 1F CB 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 7E EE 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 E4 64 B0 9C C3 CF 98 95 3F E5 5B 93 CC B8 [11: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 2C BC 47 00 B8 F6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 69 76 00 00 F4 03 04 00 02 99 14 67 B6 04 01 00 00 AC 62 29 0F C0 8C 80 A4 [11:50:15]CommunicateWithHost err = 0 [11:50:15]CheckOFDResponse [11:50:15]1017 (14) - 77093643461234 [11:50:15]1041 (16) - 0000000002094219 [11:50:15]1040 (4) - 30313 [11:50:15]1012 (4) - 20.10.2024 05:45 [11:50:15]1206 (1) - 0 [11:50:15]OFD Sender: Remove packet 30313 [11:50:15]ProducePacketName [11:50:15]name=ofd_packets/00030313 [11:50:15]NVStorageDeleteData [11:50:15]Write to MH i2c: 01 00 00 35 7D B2 [11:50:15]Write i2c OK [11:50:15]MH_I2C_Read... [11:50:15]Read from MH i2c: 01 [11:50:15]MH_I2C_Read... [11:50:15]Read from MH i2c: 01 07 00 [11:50:15]MH_I2C_Read... [11:50:15]Read from MH i2c: 01 07 00 35 7D 00 00 00 00 00 EF 0C B4 [11:50:15]RasterBufferAndPrint [11:50:15]line [11:50:15]line [11:50:15]line [11:50:15]line [11:50:15]line [11:50:15]written 0, free lines is 3320 [11:50:15]MH_Cut [11:50:15]Write to MH i2c: D1 01 00 3C 7D 01 8B [11:50:15]Write i2c OK [11:50:15]MH_I2C_Read... [11:50:15]Read from MH i2c: D1 [11:50:15]MH_I2C_Read... [11:50:15]Read from MH i2c: D1 01 00 [11:50:15]MH_I2C_Read... [11:50:15]Read from MH i2c: D1 01 00 3C 7D 00 8A [11:50:15]Write to MH i2c: 01 00 00 3D 7D BA [11:50:15]Write i2c OK [11:50:15]MH_I2C_Read... [11:50:16]OFD Sender: No OFD packet to send [11:50:16]*** Cut start [11:50:16]*** Partial cut [11:50:16]*** CUTSNS_PIN = 1 [11:50:16]*** CUTSNS_PIN = 0 [11:50:16]*** Brake cut motor [11:50:17]Read from MH i2c: 01 [11:50:17]MH_I2C_Read... [11:50:17]*** Stop cut motor [11:50:17]*** Cut end [11:50:17]Read from MH i2c: 01 07 00 [11:50:17]MH_I2C_Read... [11:50:17]Read from MH i2c: 01 07 00 3D 7D 00 00 00 00 00 FF 0F CF [11:50:17]process_action close_receipt done [11:50:17]requested_data is exist [11:50:17]produce_requested_data [11:50:17]requested_item fm.sn is exist - process it [11:50:17]wFMCommunicate request_size=4 [11:50:17]MH_SAM_APDU [11:50:17]CAPDU: 80 11 00 00 [11:50:17]Write to MH i2c: E2 08 00 3E 7D 80 11 00 00 00 00 00 00 35 [11:50:17]Write i2c OK [11:50:17]MH_I2C_Read... [11:50:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:50:17]Read from MH i2c: E2 [11:50:17]MH_I2C_Read... [11:50:17]Read from MH i2c: E2 17 00 [11:50:17]MH_I2C_Read... [11:50:17]Read from MH i2c: E2 17 00 3E 7D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 83 [11:50: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:50:17]wFMCommunicate OK [11:50:17]requested_item fd.num is exist - process it [11:50:17]SAM_PROTO_GetFieldsCounters [11:50:17]wFMCommunicate request_size=4 [11:50:17]MH_SAM_APDU [11:50:17]CAPDU: 80 13 00 00 [11:50:17]Write to MH i2c: E2 08 00 3F 7D 80 13 00 00 00 00 00 00 38 [11:50:17]Write i2c OK [11:50:17]MH_I2C_Read... [11:50:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:50:17]Read from MH i2c: E2 [11:50:17]MH_I2C_Read... [11:50:17]Read from MH i2c: E2 62 00 [11:50:17]MH_I2C_Read... [11:50:17]Read from MH i2c: E2 62 00 3F 7D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 CC [11:50: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 69 76 00 00 0E 04 04 00 72 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 [11:50:17]wFMCommunicate OK [11:50:17]SAM_PROTO_GetFieldsCounters done [11:50:17]requested_item shift.num is exist - process it [11:50:17]requested_item shift.opened is exist - process it [11:50:17]req_shift_opened [11:50:17]FM_GetShiftState [11:50:17]SAM_PROTO_GetShiftState [11:50:17]wFMCommunicate request_size=4 [11:50:17]MH_SAM_APDU [11:50:17]CAPDU: 80 13 01 00 [11:50:17]Write to MH i2c: E2 08 00 40 7D 80 13 01 00 00 00 00 00 3A [11:50:17]Write i2c OK [11:50:17]MH_I2C_Read... [11:50:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:50:17]Read from MH i2c: E2 [11:50:17]MH_I2C_Read... [11:50:17]Read from MH i2c: E2 0E 00 [11:50:17]MH_I2C_Read... [11:50:17]Read from MH i2c: E2 0E 00 40 7D 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 20 [11:50:17]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [11:50:17]wFMCommunicate OK [11:50:17]SAM_PROTO_GetShiftState done [11:50:17]FM_GetShiftState done [11:50:17]req_shift_opened done [11:50:17]requested_item shift.open_date is exist - process it [11:50:17]req_shift_open_date [11:50:17]req_shift_open_date done [11:50:17]produce_requested_data done [11:50:17]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30313,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [11:50:17]process_action_free close_receipt [11:50:17]json_value_free [11:50:17]json_value_free done [11:50:17]process_json_proto returns [11:50:17]Send response to host [11:50:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30313,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [11:50:17]free response buf [11:50:17]execute_script done [11:50:17]execute_script returns [11:50:17]free content buf [11:50:17]Sock 7.Close socket [11:50:17]Sock 7.Thread stoped [11:50:21]OFD Sender: No OFD packet to send [11:50:26]OFD Sender: No OFD packet to send [11:50:31]OFD Sender: No OFD packet to send [11:50:36]OFD Sender: No OFD packet to send [11:50:41]OFD Sender: No OFD packet to send [11:50:46]OFD Sender: No OFD packet to send [11:50:51]OFD Sender: No OFD packet to send [11:50:56]OFD Sender: No OFD packet to send [11:51:01]OFD Sender: No OFD packet to send [11:51:06]OFD Sender: No OFD packet to send [11:51:11]OFD Sender: No OFD packet to send [11:51:11]accept exits with 9 [11:51:11]New connection [11:51:11]New thread 3067514212 created [11:51:11]Thread 3067370852 joined [11:51:11]Waiting for new connection... [11:51:11] Sock 9.Parse request [11:51:11]Sock 9.Check first char [11:51:11]Sock 9.First char is OK [11:51:11]request: POST /json_proto HTTP/1.0 [11:51:11]Method: POST [11:51:11]URL: /json_proto [11:51:11]Method is POST - this is cgi request [11:51:11]url: /json_proto [11:51:11]query_string will be loaded in cgi processing [11:51:11]execute_cgi json_proto POST (null) [11:51:11]execute_cgi path=json_proto method=POST [11:51:11]POST find Content-Length [11:51:11]Host: 172.17.51.3:8080 [11:51:11]Content-Length: 677 [11:51:11]Content-Type: application/json [11:51:11] [11:51:11]POST finish read [11:51:11]Found Content-Length = 677 [11:51:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342706", "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.290, "sum" : 220.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 220.00, "total" : 220.00, "payments": [ { "type": 0, "sum" : 220.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:51:11]execute_script... [11:51: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)342706", "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.290, "sum" : 220.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 220.00, "total" : 220.00, "payments": [ { "type": 0, "sum" : 220.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:51:11]POST & json_proto [11:51:11]process_json_proto [11:51:11]json parsed OK: [11:51:11]protocol is kg_v1.0 [11:51:11]action value=close_receipt [11:51:11]process_action close_receipt [11:51:11]cmd_close_receipt [11:51:11]MH_GetDate [11:51:11]Write to MH i2c: F0 00 00 41 7D AD [11:51:11]Write i2c OK [11:51:11]MH_I2C_Read... [11:51:11]Read from MH i2c: F0 [11:51:11]MH_I2C_Read... [11:51:11]Read from MH i2c: F0 09 00 [11:51:11]MH_I2C_Read... [11:51:11]Read from MH i2c: F0 09 00 41 7D 00 B8 EE 14 67 04 C1 95 66 97 [11:51:11]GetLastDocTimeStamp 1729425022 [11:51:11]current date 1729425080 [11:51:11]FM_GetShiftState [11:51:11]SAM_PROTO_GetShiftState [11:51:11]wFMCommunicate request_size=4 [11:51:11]MH_SAM_APDU [11:51:11]CAPDU: 80 13 01 00 [11:51:11]Write to MH i2c: E2 08 00 42 7D 80 13 01 00 00 00 00 00 3C [11:51:11]Write i2c OK [11:51:11]MH_I2C_Read... [11:51:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:51:11]Read from MH i2c: E2 [11:51:11]MH_I2C_Read... [11:51:11]Read from MH i2c: E2 0E 00 [11:51:11]MH_I2C_Read... [11:51:11]Read from MH i2c: E2 0E 00 42 7D 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 22 [11:51:11]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [11:51:11]wFMCommunicate OK [11:51:11]SAM_PROTO_GetShiftState done [11:51:11]FM_GetShiftState done [11:51:11]opened in 1729384718 [11:51:11]opened+sec_in_day 1729471118 [11:51:11]quantity*price = 22010 [11:51:11]sum+1 = 22011 [11:51:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 220.00 Внесено: 220.00 СДАЧА: 0.00 НСП 1% : 1.95 НДС 12% : 23.37 Наличными: 220.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 96 20.10.2024 11:51 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30314 ФПД: 248119971726071 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T115120&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30314&fm=248119971726071&tin=02508201610067®Number=0000000000186857&sum=22000 [11:51:12]StoreToDocumentArchive [11:51:12]shift 114 fd 30314 [11:51:12]save to /storage/0114/doc_00030314 [11:51:12]save last doc name /storage/0114/doc_00030314 to /storage/kkm_last_doc_name [11:51:12]save OK [11:51:12]Clear old archive folders... [11:51:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:51:12]tlvbuf is 00B0ECB0 [11:51:12]SAM_PROTO_ClearQueue [11:51:12]wFMCommunicate request_size=4 [11:51:12]MH_SAM_APDU [11:51:12]CAPDU: 80 09 00 00 [11:51:12]Write to MH i2c: E2 08 00 4F 7D 80 09 00 00 00 00 00 00 3E [11:51:12]Write i2c OK [11:51:12]MH_I2C_Read... [11:51:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:51:12]Read from MH i2c: E2 [11:51:12]MH_I2C_Read... [11:51:12]Read from MH i2c: E2 03 00 [11:51:12]MH_I2C_Read... [11:51:12]Read from MH i2c: E2 03 00 4F 7D 00 90 00 40 [11:51:12]RAPDU: 90 00 [11:51:12]wFMCommunicate OK [11:51:12]SAM_PROTO_ClearQueue done [11:51:12]KKMCreateOFDPacket [11:51:12]OFDProtocolAddRootSTLVToBuf [11:51:12]FM_MakeSignedData [11:51:12]FM_MakeSignedData [11:51:12]SAM_PROTO_SignData [11:51:12]wFMCommunicate request_size=4 [11:51:12]MH_SAM_APDU [11:51:12]CAPDU: 80 0D 01 02 [11:51:12]Write to MH i2c: E2 08 00 50 7D 80 0D 01 02 00 00 00 00 46 [11:51:12]Write i2c OK [11:51:12]MH_I2C_Read... [11:51:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:51:12]Read from MH i2c: E2 [11:51:12]MH_I2C_Read... [11:51:12]Read from MH i2c: E2 03 00 [11:51:12]MH_I2C_Read... [11:51:12]Read from MH i2c: E2 03 00 50 7D 00 90 00 41 [11:51:12]RAPDU: 90 00 [11:51:12]wFMCommunicate OK [11:51:12]wFMCommunicate request_size=255 [11:51:12]MH_SAM_APDU [11:51: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 DA 0C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 FA 55 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 B8 EE 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 E1 [11:51:12]Write to MH i2c: E2 02 01 51 7D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DA 0C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 FA 55 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 B8 EE 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 E1 00 00 EE [11:51:12]Write i2c OK [11:51:12]MH_I2C_Read... [11:51:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:51:13]Read from MH i2c: E2 [11:51:13]MH_I2C_Read... [11:51:13]Read from MH i2c: E2 03 00 [11:51:13]MH_I2C_Read... [11:51:13]Read from MH i2c: E2 03 00 51 7D 00 90 00 42 [11:51:13]RAPDU: 90 00 [11:51:13]wFMCommunicate OK [11:51:13]wFMCommunicate request_size=10 [11:51:13]MH_SAM_APDU [11:51:13]CAPDU: 80 0D 02 02 05 A9 EE C6 C2 F7 [11:51:13]Write to MH i2c: E2 0D 00 52 7D 80 0D 02 02 05 00 A9 EE C6 C2 F7 00 00 69 [11:51:13]Write i2c OK [11:51:13]MH_I2C_Read... [11:51:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:51:13]Read from MH i2c: E2 [11:51:13]MH_I2C_Read... [11:51:13]Read from MH i2c: E2 03 00 [11:51:13]MH_I2C_Read... [11:51:13]Read from MH i2c: E2 03 00 52 7D 00 90 00 43 [11:51:13]RAPDU: 90 00 [11:51:13]wFMCommunicate OK [11:51:13]wFMCommunicate request_size=4 [11:51:13]MH_SAM_APDU [11:51:13]CAPDU: 80 0D 03 02 [11:51:13]Write to MH i2c: E2 08 00 53 7D 80 0D 03 02 00 00 00 00 4B [11:51:13]Write i2c OK [11:51:13]MH_I2C_Read... [11:51:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:51:13]Read from MH i2c: E2 [11:51:13]MH_I2C_Read... [11:51:13]Read from MH i2c: E2 0B 00 [11:51:13]MH_I2C_Read... [11:51:13]Read from MH i2c: E2 0B 00 53 7D 00 B8 0D F0 9D 13 2B 2C 0C 90 00 14 [11:51:13]RAPDU: B8 0D F0 9D 13 2B 2C 0C 90 00 [11:51:13]wFMCommunicate OK [11:51:13]SAM_PROTO_SignData done [11:51:13]FM_MakeSignedData done [11:51:13]CreateOFDProtocolMessage [11:51:13]wFMCommunicate request_size=4 [11:51:13]MH_SAM_APDU [11:51:13]CAPDU: 80 11 00 00 [11:51:13]Write to MH i2c: E2 08 00 54 7D 80 11 00 00 00 00 00 00 4B [11:51:13]Write i2c OK [11:51:13]MH_I2C_Read... [11:51:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:51:13]Read from MH i2c: E2 [11:51:13]MH_I2C_Read... [11:51:13]Read from MH i2c: E2 17 00 [11:51:13]MH_I2C_Read... [11:51:13]Read from MH i2c: E2 17 00 54 7D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 99 [11:51:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [11:51:13]wFMCommunicate OK [11:51:13]CreateOFDProtocolMessage done [11:51:13]OFDSenderStorePacket 30314 [11:51:13]StoreOFDPacket docnum=30314 [11:51: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 C6 A9 07 01 0D 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 DA 0C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 FA 55 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 B8 EE 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 E1 A9 EE C6 C2 F7 B8 0D F0 9D 13 2B 2C 0C [11:51:13]CheckFolder [11:51:13]dirname=/storage/ofd_packets [11:51:13]CheckFolder done [11:51:13]ProducePacketName [11:51:13]name=ofd_packets/00030314 [11:51:13]NVStorageSaveData ofd_packets/00030314 [11:51:13]File name is /storage/ofd_packets/00030314 [11:51:13]Write 301 bytes [11:51:13]NVStorageSaveData done [11:51:13]OFDSenderStorePacket done [11:51:13]KKMCreateOFDPacket done [11:51:13]NVStorageSaveData kkm_last_timestamp [11:51:13]File name is /storage/kkm_last_timestamp [11:51:13]Write 4 bytes [11:51:13]NVStorageSaveData done [11:51:13]ExternCall_PrintAddStr [11:51:13]wPrintStart [11:51:13]Write to MH i2c: 01 00 00 55 7D D2 [11:51:13]Write i2c OK [11:51:13]MH_I2C_Read... [11:51:13]Read from MH i2c: 01 [11:51:13]MH_I2C_Read... [11:51:13]Read from MH i2c: 01 07 00 [11:51:13]MH_I2C_Read... [11:51:13]Read from MH i2c: 01 07 00 55 7D 00 00 00 00 00 FF 0F E7 [11:51:13]RasterBufferAndPrint [11:51:13]line Счет N : (1)342706 [11:51:13]line ИНН: 02508201610067 [11:51:13]line Контрольно-Кассовый Чек [11:51:13]line ПРОДАЖА [11:51:13]line ТРК (МРК, ГНК) : 33 [11:51:13]line Товар: 2710124130 [11:51:13]line Аи-92-К-2 [11:51:13]line 3.290 * 66.90 [11:51:13]line = 220.10 [11:51:13]line НДС 12% НСП 1% [11:51:13]line > о реализуемом товаре [11:51:13]line ОКРУГЛЕНИЕ: -0.10 [11:51:13]line ИТОГО: 220.00 [11:51:13]line Внесено: 220.00 [11:51:13]line СДАЧА: 0.00 [11:51:13]line НСП 1% : 1.95 [11:51:13]line НДС 12% : 23.37 [11:51:13]line Наличными: 220.00 [11:51:13]line Безнал.: 0.00 [11:51:13]line Место: АЗС № 78 "Партнер Нефть" [11:51:13]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [11:51:13]line СНО: Общий режим [11:51:13]line Чек 96 20.10.2024 11:51 [11:51:13]line Смена: 114 ФФД: 1.0 [11:51:13]line ЗНМ: 0300000137 [11:51:13]line РНМ: 0000000000186857 [11:51:13]line Версия ККМ: v1.0 [11:51:13]line ФМ: 0000000002094219 [11:51:13]line ФД: 30314 [11:51:13]line ФПД: 248119971726071 [11:51:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T115120&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30314&fm=248119971726071&tin=02508201610067®Number=0000000000186857&sum=22000 [11:51:13]OFD Sender: Processing packet 30314 [packets to send 10, broken 9] [11:51:13]ProducePacketName [11:51:13]name=ofd_packets/00030314 [11:51:13]OFD Sender: To server: pG, [11:51:13]CommunicateWithHost lk.salyk.kg:30040 [11:51:13]ConnectInit lk.salyk.kg [11:51:13]written 0, free lines is 4095 [11:51:13]Connected sock=10 [11:51: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 C6 A9 07 01 0D 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 DA 0C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 FA 55 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 B8 EE 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 E1 A9 EE C6 C2 F7 B8 0D F0 9D 13 2B 2C 0C [11:51: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 29 BA 47 00 BC 7B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 6A 76 00 00 F4 03 04 00 3C 99 14 67 B6 04 01 00 00 4C B4 0E 55 6A 10 49 E9 [11:51:13]CommunicateWithHost err = 0 [11:51:13]CheckOFDResponse [11:51:13]1017 (14) - 77093643461234 [11:51:13]1041 (16) - 0000000002094219 [11:51:13]1040 (4) - 30314 [11:51:13]1012 (4) - 20.10.2024 05:46 [11:51:13]1206 (1) - 0 [11:51:13]OFD Sender: Remove packet 30314 [11:51:13]ProducePacketName [11:51:13]name=ofd_packets/00030314 [11:51:13]NVStorageDeleteData [11:51:14]Write to MH i2c: 01 00 00 80 7D FD [11:51:14]Write i2c OK [11:51:14]MH_I2C_Read... [11:51:14]Read from MH i2c: 01 [11:51:14]MH_I2C_Read... [11:51:14]Read from MH i2c: 01 07 00 [11:51:14]MH_I2C_Read... [11:51:14]Read from MH i2c: 01 07 00 80 7D 00 00 00 00 00 E6 0C F6 [11:51:14]RasterBufferAndPrint [11:51:14]line [11:51:14]line [11:51:14]line [11:51:14]line [11:51:14]line [11:51:14]written 0, free lines is 3308 [11:51:14]MH_Cut [11:51:14]Write to MH i2c: D1 01 00 87 7D 01 D6 [11:51:14]Write i2c OK [11:51:14]MH_I2C_Read... [11:51:14]Read from MH i2c: D1 [11:51:14]MH_I2C_Read... [11:51:14]Read from MH i2c: D1 01 00 [11:51:14]MH_I2C_Read... [11:51:14]Read from MH i2c: D1 01 00 87 7D 00 D5 [11:51:14]Write to MH i2c: 01 00 00 88 7D 05 [11:51:14]Write i2c OK [11:51:14]MH_I2C_Read... [11:51:14]OFD Sender: No OFD packet to send [11:51:14]*** Cut start [11:51:14]*** Partial cut [11:51:14]*** CUTSNS_PIN = 1 [11:51:14]*** CUTSNS_PIN = 0 [11:51:15]*** Brake cut motor [11:51:15]Read from MH i2c: 01 [11:51:15]MH_I2C_Read... [11:51:15]*** Stop cut motor [11:51:15]*** Cut end [11:51:15]Read from MH i2c: 01 07 00 [11:51:15]MH_I2C_Read... [11:51:15]Read from MH i2c: 01 07 00 88 7D 00 00 00 00 00 FF 0F 1A [11:51:15]process_action close_receipt done [11:51:15]requested_data is exist [11:51:15]produce_requested_data [11:51:15]requested_item fm.sn is exist - process it [11:51:15]wFMCommunicate request_size=4 [11:51:15]MH_SAM_APDU [11:51:15]CAPDU: 80 11 00 00 [11:51:15]Write to MH i2c: E2 08 00 89 7D 80 11 00 00 00 00 00 00 80 [11:51:15]Write i2c OK [11:51:15]MH_I2C_Read... [11:51:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:51:15]Read from MH i2c: E2 [11:51:15]MH_I2C_Read... [11:51:15]Read from MH i2c: E2 17 00 [11:51:15]MH_I2C_Read... [11:51:15]Read from MH i2c: E2 17 00 89 7D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 CE [11:51:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [11:51:15]wFMCommunicate OK [11:51:15]requested_item fd.num is exist - process it [11:51:15]SAM_PROTO_GetFieldsCounters [11:51:15]wFMCommunicate request_size=4 [11:51:15]MH_SAM_APDU [11:51:15]CAPDU: 80 13 00 00 [11:51:15]Write to MH i2c: E2 08 00 8A 7D 80 13 00 00 00 00 00 00 83 [11:51:15]Write i2c OK [11:51:15]MH_I2C_Read... [11:51:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:51:15]Read from MH i2c: E2 [11:51:15]MH_I2C_Read... [11:51:15]Read from MH i2c: E2 62 00 [11:51:15]MH_I2C_Read... [11:51:15]Read from MH i2c: E2 62 00 8A 7D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 1B [11:51: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 6A 76 00 00 0E 04 04 00 72 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 [11:51:15]wFMCommunicate OK [11:51:15]SAM_PROTO_GetFieldsCounters done [11:51:15]requested_item shift.num is exist - process it [11:51:15]requested_item shift.opened is exist - process it [11:51:15]req_shift_opened [11:51:15]FM_GetShiftState [11:51:15]SAM_PROTO_GetShiftState [11:51:15]wFMCommunicate request_size=4 [11:51:15]MH_SAM_APDU [11:51:15]CAPDU: 80 13 01 00 [11:51:15]Write to MH i2c: E2 08 00 8B 7D 80 13 01 00 00 00 00 00 85 [11:51:15]Write i2c OK [11:51:15]MH_I2C_Read... [11:51:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:51:15]Read from MH i2c: E2 [11:51:15]MH_I2C_Read... [11:51:15]Read from MH i2c: E2 0E 00 [11:51:15]MH_I2C_Read... [11:51:15]Read from MH i2c: E2 0E 00 8B 7D 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 6B [11:51:15]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [11:51:15]wFMCommunicate OK [11:51:15]SAM_PROTO_GetShiftState done [11:51:15]FM_GetShiftState done [11:51:15]req_shift_opened done [11:51:15]requested_item shift.open_date is exist - process it [11:51:15]req_shift_open_date [11:51:15]req_shift_open_date done [11:51:15]produce_requested_data done [11:51:15]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30314,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [11:51:15]process_action_free close_receipt [11:51:15]json_value_free [11:51:15]json_value_free done [11:51:15]process_json_proto returns [11:51:15]Send response to host [11:51:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30314,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [11:51:15]free response buf [11:51:15]execute_script done [11:51:15]execute_script returns [11:51:15]free content buf [11:51:15]Sock 9.Close socket [11:51:15]Sock 9.Thread stoped [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:51]accept exits with 7 [11:51:51]New connection [11:51:51]New thread 3067370852 created [11:51:51]Thread 3067514212 joined [11:51:51]Waiting for new connection... [11:51:51] Sock 7.Parse request [11:51:51]Sock 7.Check first char [11:51:51]Sock 7.First char is OK [11:51:51]request: POST /json_proto HTTP/1.0 [11:51:51]Method: POST [11:51:51]URL: /json_proto [11:51:51]Method is POST - this is cgi request [11:51:51]url: /json_proto [11:51:51]query_string will be loaded in cgi processing [11:51:51]execute_cgi json_proto POST (null) [11:51:51]execute_cgi path=json_proto method=POST [11:51:51]POST find Content-Length [11:51:51]Host: 172.17.51.3:8080 [11:51:51]Content-Length: 677 [11:51:51]Content-Type: application/json [11:51:51] [11:51:51]POST finish read [11:51:51]Found Content-Length = 677 [11:51:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342707", "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" ] } } [11:51:51]execute_script... [11: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)342707", "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" ] } } [11:51:51]POST & json_proto [11:51:51]process_json_proto [11:51:51]json parsed OK: [11:51:51]protocol is kg_v1.0 [11:51:51]action value=close_receipt [11:51:51]process_action close_receipt [11:51:51]cmd_close_receipt [11:51:51]MH_GetDate [11:51:51]Write to MH i2c: F0 00 00 8C 7D F8 [11:51:51]Write i2c OK [11:51:51]MH_I2C_Read... [11:51:51]Read from MH i2c: F0 [11:51:51]MH_I2C_Read... [11:51:51]Read from MH i2c: F0 09 00 [11:51:51]MH_I2C_Read... [11:51:51]Read from MH i2c: F0 09 00 8C 7D 00 E0 EE 14 67 04 C1 95 66 0A [11:51:51]GetLastDocTimeStamp 1729425080 [11:51:51]current date 1729425120 [11:51:51]FM_GetShiftState [11:51:51]SAM_PROTO_GetShiftState [11:51:51]wFMCommunicate request_size=4 [11:51:51]MH_SAM_APDU [11:51:51]CAPDU: 80 13 01 00 [11:51:51]Write to MH i2c: E2 08 00 8D 7D 80 13 01 00 00 00 00 00 87 [11:51:51]Write i2c OK [11:51:51]MH_I2C_Read... [11:51:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:51:51]Read from MH i2c: E2 [11:51:51]MH_I2C_Read... [11:51:51]Read from MH i2c: E2 0E 00 [11:51:51]MH_I2C_Read... [11:51:51]Read from MH i2c: E2 0E 00 8D 7D 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 6D [11:51:51]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [11:51:51]wFMCommunicate OK [11:51:51]SAM_PROTO_GetShiftState done [11:51:51]FM_GetShiftState done [11:51:51]opened in 1729384718 [11:51:51]opened+sec_in_day 1729471118 [11:51:51]quantity*price = 50041 [11:51:51]sum+1 = 50042 [11:51:51]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 20.10.2024 11:52 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30315 ФПД: 92250525972651 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T115200&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30315&fm=92250525972651&tin=02508201610067®Number=0000000000186857&sum=50000 [11:51:52]StoreToDocumentArchive [11:51:52]shift 114 fd 30315 [11:51:52]save to /storage/0114/doc_00030315 [11:51:52]save last doc name /storage/0114/doc_00030315 to /storage/kkm_last_doc_name [11:51:52]save OK [11:51:52]Clear old archive folders... [11:51:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:51:52]tlvbuf is 00AD6380 [11:51:52]SAM_PROTO_ClearQueue [11:51:52]wFMCommunicate request_size=4 [11:51:52]MH_SAM_APDU [11:51:52]CAPDU: 80 09 00 00 [11:51:52]Write to MH i2c: E2 08 00 9A 7D 80 09 00 00 00 00 00 00 89 [11:51:52]Write i2c OK [11:51:52]MH_I2C_Read... [11:51:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:51:52]Read from MH i2c: E2 [11:51:52]MH_I2C_Read... [11:51:52]Read from MH i2c: E2 03 00 [11:51:52]MH_I2C_Read... [11:51:52]Read from MH i2c: E2 03 00 9A 7D 00 90 00 8B [11:51:52]RAPDU: 90 00 [11:51:52]wFMCommunicate OK [11:51:52]SAM_PROTO_ClearQueue done [11:51:52]KKMCreateOFDPacket [11:51:52]OFDProtocolAddRootSTLVToBuf [11:51:52]FM_MakeSignedData [11:51:52]FM_MakeSignedData [11:51:52]SAM_PROTO_SignData [11:51:52]wFMCommunicate request_size=4 [11:51:52]MH_SAM_APDU [11:51:52]CAPDU: 80 0D 01 02 [11:51:52]Write to MH i2c: E2 08 00 9B 7D 80 0D 01 02 00 00 00 00 91 [11:51:52]Write i2c OK [11:51:52]MH_I2C_Read... [11:51:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:51:52]Read from MH i2c: E2 [11:51:52]MH_I2C_Read... [11:51:52]Read from MH i2c: E2 03 00 [11:51:52]MH_I2C_Read... [11:51:52]Read from MH i2c: E2 03 00 9B 7D 00 90 00 8C [11:51:52]RAPDU: 90 00 [11:51:52]wFMCommunicate OK [11:51:52]wFMCommunicate request_size=255 [11:51:52]MH_SAM_APDU [11:51: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 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 E0 EE 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 53 [11:51:52]Write to MH i2c: E2 02 01 9C 7D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 E0 EE 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 53 00 00 72 [11:51:52]Write i2c OK [11:51:52]MH_I2C_Read... [11:51:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:51:53]Read from MH i2c: E2 [11:51:53]MH_I2C_Read... [11:51:53]Read from MH i2c: E2 03 00 [11:51:53]MH_I2C_Read... [11:51:53]Read from MH i2c: E2 03 00 9C 7D 00 90 00 8D [11:51:53]RAPDU: 90 00 [11:51:53]wFMCommunicate OK [11:51:53]wFMCommunicate request_size=10 [11:51:53]MH_SAM_APDU [11:51:53]CAPDU: 80 0D 02 02 05 E6 BF D4 B8 AB [11:51:53]Write to MH i2c: E2 0D 00 9D 7D 80 0D 02 02 05 00 E6 BF D4 B8 AB 00 00 7A [11:51:53]Write i2c OK [11:51:53]MH_I2C_Read... [11:51:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:51:53]Read from MH i2c: E2 [11:51:53]MH_I2C_Read... [11:51:53]Read from MH i2c: E2 03 00 [11:51:53]MH_I2C_Read... [11:51:53]Read from MH i2c: E2 03 00 9D 7D 00 90 00 8E [11:51:53]RAPDU: 90 00 [11:51:53]wFMCommunicate OK [11:51:53]wFMCommunicate request_size=4 [11:51:53]MH_SAM_APDU [11:51:53]CAPDU: 80 0D 03 02 [11:51:53]Write to MH i2c: E2 08 00 9E 7D 80 0D 03 02 00 00 00 00 96 [11:51:53]Write i2c OK [11:51:53]MH_I2C_Read... [11:51:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:51:53]Read from MH i2c: E2 [11:51:53]MH_I2C_Read... [11:51:53]Read from MH i2c: E2 0B 00 [11:51:53]MH_I2C_Read... [11:51:53]Read from MH i2c: E2 0B 00 9E 7D 00 15 9E CB 45 E0 02 AC 24 90 00 0C [11:51:53]RAPDU: 15 9E CB 45 E0 02 AC 24 90 00 [11:51:53]wFMCommunicate OK [11:51:53]SAM_PROTO_SignData done [11:51:53]FM_MakeSignedData done [11:51:53]CreateOFDProtocolMessage [11:51:53]wFMCommunicate request_size=4 [11:51:53]MH_SAM_APDU [11:51:53]CAPDU: 80 11 00 00 [11:51:53]Write to MH i2c: E2 08 00 9F 7D 80 11 00 00 00 00 00 00 96 [11:51:53]Write i2c OK [11:51:53]MH_I2C_Read... [11:51:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:51:53]Read from MH i2c: E2 [11:51:53]MH_I2C_Read... [11:51:53]Read from MH i2c: E2 17 00 [11:51:53]MH_I2C_Read... [11:51:53]Read from MH i2c: E2 17 00 9F 7D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 E4 [11: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 [11:51:53]wFMCommunicate OK [11:51:53]CreateOFDProtocolMessage done [11:51:53]OFDSenderStorePacket 30315 [11:51:53]StoreOFDPacket docnum=30315 [11: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 0F 01 00 00 0C 6F 07 01 D7 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 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 E0 EE 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 53 E6 BF D4 B8 AB 15 9E CB 45 E0 02 AC 24 [11:51:53]CheckFolder [11:51:53]dirname=/storage/ofd_packets [11:51:53]CheckFolder done [11:51:53]ProducePacketName [11:51:53]name=ofd_packets/00030315 [11:51:53]NVStorageSaveData ofd_packets/00030315 [11:51:53]File name is /storage/ofd_packets/00030315 [11:51:53]Write 301 bytes [11:51:53]NVStorageSaveData done [11:51:53]OFDSenderStorePacket done [11:51:53]KKMCreateOFDPacket done [11:51:53]NVStorageSaveData kkm_last_timestamp [11:51:53]File name is /storage/kkm_last_timestamp [11:51:53]Write 4 bytes [11:51:53]NVStorageSaveData done [11:51:53]ExternCall_PrintAddStr [11:51:53]wPrintStart [11:51:53]Write to MH i2c: 01 00 00 A0 7D 1D [11:51:53]Write i2c OK [11:51:53]MH_I2C_Read... [11:51:53]Read from MH i2c: 01 [11:51:53]MH_I2C_Read... [11:51:53]Read from MH i2c: 01 07 00 [11:51:53]MH_I2C_Read... [11:51:53]Read from MH i2c: 01 07 00 A0 7D 00 00 00 00 00 FF 0F 32 [11:51:53]RasterBufferAndPrint [11:51:53]line Счет N : (1)342707 [11:51:53]line ИНН: 02508201610067 [11:51:53]line Контрольно-Кассовый Чек [11:51:53]line ПРОДАЖА [11:51:53]line ТРК (МРК, ГНК) : 43 [11:51:53]line Товар: 2710124130 [11:51:53]line Аи-92-К-2 [11:51:53]line 7.480 * 66.90 [11:51:53]line = 500.41 [11:51:53]line НДС 12% НСП 1% [11:51:53]line > о реализуемом товаре [11:51:53]line ОКРУГЛЕНИЕ: -0.41 [11:51:53]line ИТОГО: 500.00 [11:51:53]line Внесено: 500.00 [11:51:53]line СДАЧА: 0.00 [11:51:53]line НСП 1% : 4.43 [11:51:53]line НДС 12% : 53.14 [11:51:53]line Наличными: 500.00 [11:51:53]line Безнал.: 0.00 [11:51:53]line Место: АЗС № 78 "Партнер Нефть" [11:51:53]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [11:51:53]line СНО: Общий режим [11:51:53]line Чек 97 20.10.2024 11:52 [11:51:53]line Смена: 114 ФФД: 1.0 [11:51:53]line ЗНМ: 0300000137 [11:51:53]line РНМ: 0000000000186857 [11:51:53]line Версия ККМ: v1.0 [11:51:53]line ФМ: 0000000002094219 [11:51:53]line ФД: 30315 [11:51:53]line ФПД: 92250525972651 [11:51:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T115200&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30315&fm=92250525972651&tin=02508201610067®Number=0000000000186857&sum=50000 [11:51:53]OFD Sender: Processing packet 30315 [packets to send 10, broken 9] [11:51:53]ProducePacketName [11:51:53]name=ofd_packets/00030315 [11:51:53]OFD Sender: To server: pG, [11:51:53]CommunicateWithHost lk.salyk.kg:30040 [11:51:53]ConnectInit lk.salyk.kg [11:51:53]written 0, free lines is 4095 [11:51:53]Connected sock=10 [11: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 0F 01 00 00 0C 6F 07 01 D7 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 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 E0 EE 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 53 E6 BF D4 B8 AB 15 9E CB 45 E0 02 AC 24 [11:51: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 22 65 47 00 7D 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 6B 76 00 00 F4 03 04 00 64 99 14 67 B6 04 01 00 00 E2 6C 8D 8D 78 C9 7A B4 [11:51:53]CommunicateWithHost err = 0 [11:51:53]CheckOFDResponse [11:51:53]1017 (14) - 77093643461234 [11:51:53]1041 (16) - 0000000002094219 [11:51:53]1040 (4) - 30315 [11:51:53]1012 (4) - 20.10.2024 05:47 [11:51:53]1206 (1) - 0 [11:51:53]OFD Sender: Remove packet 30315 [11:51:53]ProducePacketName [11:51:53]name=ofd_packets/00030315 [11:51:53]NVStorageDeleteData [11:51:53]Write to MH i2c: 01 00 00 CB 7D 48 [11:51:53]Write i2c OK [11:51:53]MH_I2C_Read... [11:51:53]Read from MH i2c: 01 [11:51:53]MH_I2C_Read... [11:51:53]Read from MH i2c: 01 07 00 [11:51:53]MH_I2C_Read... [11:51:53]Read from MH i2c: 01 07 00 CB 7D 00 00 00 00 00 F1 0C 4C [11:51:53]RasterBufferAndPrint [11:51:53]line [11:51:53]line [11:51:53]line [11:51:53]line [11:51:53]line [11:51:53]written 0, free lines is 3319 [11:51:53]MH_Cut [11:51:53]Write to MH i2c: D1 01 00 D2 7D 01 21 [11:51:53]Write i2c OK [11:51:53]MH_I2C_Read... [11:51:53]Read from MH i2c: D1 [11:51:53]MH_I2C_Read... [11:51:53]Read from MH i2c: D1 01 00 [11:51:53]MH_I2C_Read... [11:51:53]Read from MH i2c: D1 01 00 D2 7D 00 20 [11:51:53]Write to MH i2c: 01 00 00 D3 7D 50 [11:51:53]Write i2c OK [11:51:53]MH_I2C_Read... [11:51:54]OFD Sender: No OFD packet to send [11:51:54]*** Cut start [11:51:54]*** Partial cut [11:51:54]*** CUTSNS_PIN = 1 [11:51:54]*** CUTSNS_PIN = 0 [11:51:54]*** Brake cut motor [11:51:55]Read from MH i2c: 01 [11:51:55]MH_I2C_Read... [11:51:55]*** Stop cut motor [11:51:55]*** Cut end [11:51:55]Read from MH i2c: 01 07 00 [11:51:55]MH_I2C_Read... [11:51:55]Read from MH i2c: 01 07 00 D3 7D 00 00 00 00 00 FF 0F 65 [11:51:55]process_action close_receipt done [11:51:55]requested_data is exist [11:51:55]produce_requested_data [11:51:55]requested_item fm.sn is exist - process it [11:51:55]wFMCommunicate request_size=4 [11:51:55]MH_SAM_APDU [11:51:55]CAPDU: 80 11 00 00 [11:51:55]Write to MH i2c: E2 08 00 D4 7D 80 11 00 00 00 00 00 00 CB [11:51:55]Write i2c OK [11:51:55]MH_I2C_Read... [11:51:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:51:55]Read from MH i2c: E2 [11:51:55]MH_I2C_Read... [11:51:55]Read from MH i2c: E2 17 00 [11:51:55]MH_I2C_Read... [11:51:55]Read from MH i2c: E2 17 00 D4 7D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 19 [11: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 [11:51:55]wFMCommunicate OK [11:51:55]requested_item fd.num is exist - process it [11:51:55]SAM_PROTO_GetFieldsCounters [11:51:55]wFMCommunicate request_size=4 [11:51:55]MH_SAM_APDU [11:51:55]CAPDU: 80 13 00 00 [11:51:55]Write to MH i2c: E2 08 00 D5 7D 80 13 00 00 00 00 00 00 CE [11:51:55]Write i2c OK [11:51:55]MH_I2C_Read... [11:51:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:51:55]Read from MH i2c: E2 [11:51:55]MH_I2C_Read... [11:51:55]Read from MH i2c: E2 62 00 [11:51:55]MH_I2C_Read... [11:51:55]Read from MH i2c: E2 62 00 D5 7D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 6A [11: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 6B 76 00 00 0E 04 04 00 72 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 [11:51:55]wFMCommunicate OK [11:51:55]SAM_PROTO_GetFieldsCounters done [11:51:55]requested_item shift.num is exist - process it [11:51:55]requested_item shift.opened is exist - process it [11:51:55]req_shift_opened [11:51:55]FM_GetShiftState [11:51:55]SAM_PROTO_GetShiftState [11:51:55]wFMCommunicate request_size=4 [11:51:55]MH_SAM_APDU [11:51:55]CAPDU: 80 13 01 00 [11:51:55]Write to MH i2c: E2 08 00 D6 7D 80 13 01 00 00 00 00 00 D0 [11:51:55]Write i2c OK [11:51:55]MH_I2C_Read... [11:51:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:51:55]Read from MH i2c: E2 [11:51:55]MH_I2C_Read... [11:51:55]Read from MH i2c: E2 0E 00 [11:51:55]MH_I2C_Read... [11:51:55]Read from MH i2c: E2 0E 00 D6 7D 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 B6 [11:51:55]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [11:51:55]wFMCommunicate OK [11:51:55]SAM_PROTO_GetShiftState done [11:51:55]FM_GetShiftState done [11:51:55]req_shift_opened done [11:51:55]requested_item shift.open_date is exist - process it [11:51:55]req_shift_open_date [11:51:55]req_shift_open_date done [11:51:55]produce_requested_data done [11:51:55]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30315,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [11:51:55]process_action_free close_receipt [11:51:55]json_value_free [11:51:55]json_value_free done [11:51:55]process_json_proto returns [11:51:55]Send response to host [11:51:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30315,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [11:51:55]free response buf [11:51:55]execute_script done [11:51:55]execute_script returns [11:51:55]free content buf [11:51:55]Sock 7.Close socket [11:51:55]Sock 7.Thread stoped [11:51:59]OFD Sender: No OFD packet to send [11:52:04]OFD Sender: No OFD packet to send [11:52:09]OFD Sender: No OFD packet to send [11:52:14]OFD Sender: No OFD packet to send [11:52:19]OFD Sender: No OFD packet to send [11:52:24]OFD Sender: No OFD packet to send [11:52:29]OFD Sender: No OFD packet to send [11:52:34]OFD Sender: No OFD packet to send [11:52:39]OFD Sender: No OFD packet to send [11:52:44]OFD Sender: No OFD packet to send [11:52:49]OFD Sender: No OFD packet to send [11:52:54]OFD Sender: No OFD packet to send [11:52:59]OFD Sender: No OFD packet to send [11:53:04]OFD Sender: No OFD packet to send [11:53:09]OFD Sender: No OFD packet to send [11:53:14]OFD Sender: No OFD packet to send [11:53:19]OFD Sender: No OFD packet to send [11:53:24]OFD Sender: No OFD packet to send [11:53:29]OFD Sender: No OFD packet to send [11:53:34]OFD Sender: No OFD packet to send [11:53:39]OFD Sender: No OFD packet to send [11:53:44]OFD Sender: No OFD packet to send [11:53:49]OFD Sender: No OFD packet to send [11:53:54]OFD Sender: No OFD packet to send [11:53:59]OFD Sender: No OFD packet to send [11:54:04]OFD Sender: No OFD packet to send [11:54:09]OFD Sender: No OFD packet to send [11:54:14]OFD Sender: No OFD packet to send [11:54:19]OFD Sender: No OFD packet to send [11:54:24]OFD Sender: No OFD packet to send [11:54:29]OFD Sender: No OFD packet to send [11:54:34]OFD Sender: No OFD packet to send [11:54:39]OFD Sender: No OFD packet to send [11:54:44]OFD Sender: No OFD packet to send [11:54:49]OFD Sender: No OFD packet to send [11:54:54]OFD Sender: No OFD packet to send [11:54:59]OFD Sender: No OFD packet to send [11:55:04]OFD Sender: No OFD packet to send [11:55:09]OFD Sender: No OFD packet to send [11:55:14]OFD Sender: No OFD packet to send [11:55:19]OFD Sender: No OFD packet to send [11:55:24]OFD Sender: No OFD packet to send [11:55:29]OFD Sender: No OFD packet to send [11:55:34]OFD Sender: No OFD packet to send [11:55:39]OFD Sender: No OFD packet to send [11:55:44]OFD Sender: No OFD packet to send [11:55:49]OFD Sender: No OFD packet to send [11:55:54]OFD Sender: No OFD packet to send [11:55:59]OFD Sender: No OFD packet to send [11:56:04]OFD Sender: No OFD packet to send [11:56:09]OFD Sender: No OFD packet to send [11:56:14]OFD Sender: No OFD packet to send [11:56:19]OFD Sender: No OFD packet to send [11:56:24]OFD Sender: No OFD packet to send [11:56:29]OFD Sender: No OFD packet to send [11:56:34]OFD Sender: No OFD packet to send [11:56:39]OFD Sender: No OFD packet to send [11:56:43]accept exits with 9 [11:56:43]New connection [11:56:43]New thread 3067514212 created [11:56:43]Thread 3067370852 joined [11:56:43]Waiting for new connection... [11:56:43] Sock 9.Parse request [11:56:43]Sock 9.Check first char [11:56:43]Sock 9.First char is OK [11:56:43]request: POST /json_proto HTTP/1.0 [11:56:43]Method: POST [11:56:43]URL: /json_proto [11:56:43]Method is POST - this is cgi request [11:56:43]url: /json_proto [11:56:43]query_string will be loaded in cgi processing [11:56:43]execute_cgi json_proto POST (null) [11:56:43]execute_cgi path=json_proto method=POST [11:56:43]POST find Content-Length [11:56:43]Host: 172.17.51.3:8080 [11:56:43]Content-Length: 677 [11:56:43]Content-Type: application/json [11:56:43] [11:56:43]POST finish read [11:56:43]Found Content-Length = 677 [11:56:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342708", "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.440, "sum" : 230.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 230.00, "total" : 230.00, "payments": [ { "type": 0, "sum" : 230.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:56:43]execute_script... [11:56: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)342708", "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.440, "sum" : 230.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 230.00, "total" : 230.00, "payments": [ { "type": 0, "sum" : 230.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:56:43]POST & json_proto [11:56:43]process_json_proto [11:56:43]json parsed OK: [11:56:43]protocol is kg_v1.0 [11:56:43]action value=close_receipt [11:56:43]process_action close_receipt [11:56:43]cmd_close_receipt [11:56:43]MH_GetDate [11:56:43]Write to MH i2c: F0 00 00 D7 7D 43 [11:56:43]Write i2c OK [11:56:43]MH_I2C_Read... [11:56:43]Read from MH i2c: F0 [11:56:43]MH_I2C_Read... [11:56:43]Read from MH i2c: F0 09 00 [11:56:43]MH_I2C_Read... [11:56:43]Read from MH i2c: F0 09 00 D7 7D 00 04 F0 14 67 04 C1 95 66 7B [11:56:43]GetLastDocTimeStamp 1729425120 [11:56:43]current date 1729425412 [11:56:43]FM_GetShiftState [11:56:43]SAM_PROTO_GetShiftState [11:56:43]wFMCommunicate request_size=4 [11:56:43]MH_SAM_APDU [11:56:43]CAPDU: 80 13 01 00 [11:56:43]Write to MH i2c: E2 08 00 D8 7D 80 13 01 00 00 00 00 00 D2 [11:56:43]Write i2c OK [11:56:43]MH_I2C_Read... [11:56:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:56:43]Read from MH i2c: E2 [11:56:43]MH_I2C_Read... [11:56:43]Read from MH i2c: E2 0E 00 [11:56:43]MH_I2C_Read... [11:56:43]Read from MH i2c: E2 0E 00 D8 7D 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 B8 [11:56:43]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [11:56:43]wFMCommunicate OK [11:56:43]SAM_PROTO_GetShiftState done [11:56:43]FM_GetShiftState done [11:56:43]opened in 1729384718 [11:56:43]opened+sec_in_day 1729471118 [11:56:43]quantity*price = 23013 [11:56:43]sum+1 = 23015 [11:56:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.14 ИТОГО: 230.00 Внесено: 230.00 СДАЧА: 0.00 НСП 1% : 2.04 НДС 12% : 24.44 Наличными: 230.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 98 20.10.2024 11:56 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30316 ФПД: 83723476317261 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T115653&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30316&fm=83723476317261&tin=02508201610067®Number=0000000000186857&sum=23000 [11:56:44]StoreToDocumentArchive [11:56:44]shift 114 fd 30316 [11:56:44]save to /storage/0114/doc_00030316 [11:56:44]save last doc name /storage/0114/doc_00030316 to /storage/kkm_last_doc_name [11:56:44]save OK [11:56:44]Clear old archive folders... [11:56:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:56:44]tlvbuf is 00B85EC0 [11:56:44]SAM_PROTO_ClearQueue [11:56:44]wFMCommunicate request_size=4 [11:56:44]MH_SAM_APDU [11:56:44]CAPDU: 80 09 00 00 [11:56:44]Write to MH i2c: E2 08 00 E5 7D 80 09 00 00 00 00 00 00 D4 [11:56:44]Write i2c OK [11:56:44]MH_I2C_Read... [11:56:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:56:44]Read from MH i2c: E2 [11:56:44]MH_I2C_Read... [11:56:44]Read from MH i2c: E2 03 00 [11:56:44]MH_I2C_Read... [11:56:44]Read from MH i2c: E2 03 00 E5 7D 00 90 00 D6 [11:56:44]RAPDU: 90 00 [11:56:44]wFMCommunicate OK [11:56:44]SAM_PROTO_ClearQueue done [11:56:44]KKMCreateOFDPacket [11:56:44]OFDProtocolAddRootSTLVToBuf [11:56:44]FM_MakeSignedData [11:56:44]FM_MakeSignedData [11:56:44]SAM_PROTO_SignData [11:56:44]wFMCommunicate request_size=4 [11:56:44]MH_SAM_APDU [11:56:44]CAPDU: 80 0D 01 02 [11:56:44]Write to MH i2c: E2 08 00 E6 7D 80 0D 01 02 00 00 00 00 DC [11:56:44]Write i2c OK [11:56:44]MH_I2C_Read... [11:56:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:56:45]Read from MH i2c: E2 [11:56:45]MH_I2C_Read... [11:56:45]Read from MH i2c: E2 03 00 [11:56:45]MH_I2C_Read... [11:56:45]Read from MH i2c: E2 03 00 E6 7D 00 90 00 D7 [11:56:45]RAPDU: 90 00 [11:56:45]wFMCommunicate OK [11:56:45]wFMCommunicate request_size=255 [11:56:45]MH_SAM_APDU [11:56: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 70 0D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E6 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8C 09 00 00 00 00 07 04 06 00 D8 59 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 05 F0 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 4C [11:56:45]Write to MH i2c: E2 02 01 E7 7D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 0D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E6 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8C 09 00 00 00 00 07 04 06 00 D8 59 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 05 F0 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 4C 00 00 15 [11:56:45]Write i2c OK [11:56:45]MH_I2C_Read... [11:56:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:56:45]Read from MH i2c: E2 [11:56:45]MH_I2C_Read... [11:56:45]Read from MH i2c: E2 03 00 [11:56:45]MH_I2C_Read... [11:56:45]Read from MH i2c: E2 03 00 E7 7D 00 90 00 D8 [11:56:45]RAPDU: 90 00 [11:56:45]wFMCommunicate OK [11:56:45]wFMCommunicate request_size=10 [11:56:45]MH_SAM_APDU [11:56:45]CAPDU: 80 0D 02 02 05 25 64 10 B4 4D [11:56:45]Write to MH i2c: E2 0D 00 E8 7D 80 0D 02 02 05 00 25 64 10 B4 4D 00 00 83 [11:56:45]Write i2c OK [11:56:45]MH_I2C_Read... [11:56:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:56:45]Read from MH i2c: E2 [11:56:45]MH_I2C_Read... [11:56:45]Read from MH i2c: E2 03 00 [11:56:45]MH_I2C_Read... [11:56:45]Read from MH i2c: E2 03 00 E8 7D 00 90 00 D9 [11:56:45]RAPDU: 90 00 [11:56:45]wFMCommunicate OK [11:56:45]wFMCommunicate request_size=4 [11:56:45]MH_SAM_APDU [11:56:45]CAPDU: 80 0D 03 02 [11:56:45]Write to MH i2c: E2 08 00 E9 7D 80 0D 03 02 00 00 00 00 E1 [11:56:45]Write i2c OK [11:56:45]MH_I2C_Read... [11:56:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:56:45]Read from MH i2c: E2 [11:56:45]MH_I2C_Read... [11:56:45]Read from MH i2c: E2 0B 00 [11:56:45]MH_I2C_Read... [11:56:45]Read from MH i2c: E2 0B 00 E9 7D 00 0D 23 6A B8 50 31 69 99 90 00 B7 [11:56:45]RAPDU: 0D 23 6A B8 50 31 69 99 90 00 [11:56:45]wFMCommunicate OK [11:56:45]SAM_PROTO_SignData done [11:56:45]FM_MakeSignedData done [11:56:45]CreateOFDProtocolMessage [11:56:45]wFMCommunicate request_size=4 [11:56:45]MH_SAM_APDU [11:56:45]CAPDU: 80 11 00 00 [11:56:45]Write to MH i2c: E2 08 00 EA 7D 80 11 00 00 00 00 00 00 E1 [11:56:45]Write i2c OK [11:56:45]MH_I2C_Read... [11:56:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:56:45]Read from MH i2c: E2 [11:56:45]MH_I2C_Read... [11:56:45]Read from MH i2c: E2 17 00 [11:56:45]MH_I2C_Read... [11:56:45]Read from MH i2c: E2 17 00 EA 7D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 2F [11:56:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [11:56:45]wFMCommunicate OK [11:56:45]CreateOFDProtocolMessage done [11:56:45]OFDSenderStorePacket 30316 [11:56:45]StoreOFDPacket docnum=30316 [11:56: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 7A 7F 07 01 6A 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 70 0D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E6 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8C 09 00 00 00 00 07 04 06 00 D8 59 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 05 F0 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 4C 25 64 10 B4 4D 0D 23 6A B8 50 31 69 99 [11:56:45]CheckFolder [11:56:45]dirname=/storage/ofd_packets [11:56:45]CheckFolder done [11:56:45]ProducePacketName [11:56:45]name=ofd_packets/00030316 [11:56:45]NVStorageSaveData ofd_packets/00030316 [11:56:45]File name is /storage/ofd_packets/00030316 [11:56:45]Write 301 bytes [11:56:45]NVStorageSaveData done [11:56:45]OFDSenderStorePacket done [11:56:45]KKMCreateOFDPacket done [11:56:45]NVStorageSaveData kkm_last_timestamp [11:56:45]File name is /storage/kkm_last_timestamp [11:56:45]Write 4 bytes [11:56:45]NVStorageSaveData done [11:56:45]ExternCall_PrintAddStr [11:56:45]wPrintStart [11:56:45]Write to MH i2c: 01 00 00 EB 7D 68 [11:56:45]Write i2c OK [11:56:45]MH_I2C_Read... [11:56:45]Read from MH i2c: 01 [11:56:45]MH_I2C_Read... [11:56:45]Read from MH i2c: 01 07 00 [11:56:45]MH_I2C_Read... [11:56:45]Read from MH i2c: 01 07 00 EB 7D 00 00 00 00 00 FF 0F 7D [11:56:45]RasterBufferAndPrint [11:56:45]line Счет N : (1)342708 [11:56:45]line ИНН: 02508201610067 [11:56:45]line Контрольно-Кассовый Чек [11:56:45]line ПРОДАЖА [11:56:45]line ТРК (МРК, ГНК) : 63 [11:56:45]line Товар: 2710124130 [11:56:45]line Аи-92-К-2 [11:56:45]line 3.440 * 66.90 [11:56:45]line = 230.14 [11:56:45]line НДС 12% НСП 1% [11:56:45]line > о реализуемом товаре [11:56:45]line ОКРУГЛЕНИЕ: -0.14 [11:56:45]line ИТОГО: 230.00 [11:56:45]line Внесено: 230.00 [11:56:45]line СДАЧА: 0.00 [11:56:45]line НСП 1% : 2.04 [11:56:45]line НДС 12% : 24.44 [11:56:45]line Наличными: 230.00 [11:56:45]line Безнал.: 0.00 [11:56:45]line Место: АЗС № 78 "Партнер Нефть" [11:56:45]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [11:56:45]line СНО: Общий режим [11:56:45]line Чек 98 20.10.2024 11:56 [11:56:45]line Смена: 114 ФФД: 1.0 [11:56:45]line ЗНМ: 0300000137 [11:56:45]line РНМ: 0000000000186857 [11:56:45]line Версия ККМ: v1.0 [11:56:45]line ФМ: 0000000002094219 [11:56:45]line ФД: 30316 [11:56:45]line ФПД: 83723476317261 [11:56:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T115653&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30316&fm=83723476317261&tin=02508201610067®Number=0000000000186857&sum=23000 [11:56:45]OFD Sender: Processing packet 30316 [packets to send 10, broken 9] [11:56:45]ProducePacketName [11:56:45]name=ofd_packets/00030316 [11:56:45]OFD Sender: To server: pG, [11:56:45]CommunicateWithHost lk.salyk.kg:30040 [11:56:45]ConnectInit lk.salyk.kg [11:56:45]written 0, free lines is 4095 [11:56:45]Connected sock=10 [11:56: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 7A 7F 07 01 6A 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 70 0D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E6 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8C 09 00 00 00 00 07 04 06 00 D8 59 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 05 F0 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 4C 25 64 10 B4 4D 0D 23 6A B8 50 31 69 99 [11:56: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 9B E3 47 00 BF B5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 6C 76 00 00 F4 03 04 00 89 9A 14 67 B6 04 01 00 00 DF E0 F2 21 67 AD C9 2D [11:56:46]CommunicateWithHost err = 0 [11:56:46]CheckOFDResponse [11:56:46]1017 (14) - 77093643461234 [11:56:46]1041 (16) - 0000000002094219 [11:56:46]1040 (4) - 30316 [11:56:46]1012 (4) - 20.10.2024 05:52 [11:56:46]1206 (1) - 0 [11:56:46]OFD Sender: Remove packet 30316 [11:56:46]ProducePacketName [11:56:46]name=ofd_packets/00030316 [11:56:46]NVStorageDeleteData [11:56:46]Write to MH i2c: 01 00 00 16 7E 94 [11:56:46]Write i2c OK [11:56:46]MH_I2C_Read... [11:56:46]Read from MH i2c: 01 [11:56:46]MH_I2C_Read... [11:56:46]Read from MH i2c: 01 07 00 [11:56:46]MH_I2C_Read... [11:56:46]Read from MH i2c: 01 07 00 16 7E 00 00 00 00 00 F9 0C A0 [11:56:46]RasterBufferAndPrint [11:56:46]line [11:56:46]line [11:56:46]line [11:56:46]line [11:56:46]line [11:56:46]written 0, free lines is 3327 [11:56:46]MH_Cut [11:56:46]Write to MH i2c: D1 01 00 1D 7E 01 6D [11:56:46]Write i2c OK [11:56:46]MH_I2C_Read... [11:56:46]Read from MH i2c: D1 [11:56:46]MH_I2C_Read... [11:56:46]Read from MH i2c: D1 01 00 [11:56:46]MH_I2C_Read... [11:56:46]Read from MH i2c: D1 01 00 1D 7E 00 6C [11:56:46]Write to MH i2c: 01 00 00 1E 7E 9C [11:56:46]Write i2c OK [11:56:46]MH_I2C_Read... [11:56:46]OFD Sender: No OFD packet to send [11:56:46]*** Cut start [11:56:46]*** Partial cut [11:56:46]*** CUTSNS_PIN = 1 [11:56:47]*** CUTSNS_PIN = 0 [11:56:47]*** Brake cut motor [11:56:47]Read from MH i2c: 01 [11:56:47]MH_I2C_Read... [11:56:47]*** Stop cut motor [11:56:47]*** Cut end [11:56:47]Read from MH i2c: 01 07 00 [11:56:47]MH_I2C_Read... [11:56:47]Read from MH i2c: 01 07 00 1E 7E 00 00 00 00 00 FF 0F B1 [11:56:47]process_action close_receipt done [11:56:47]requested_data is exist [11:56:47]produce_requested_data [11:56:47]requested_item fm.sn is exist - process it [11:56:47]wFMCommunicate request_size=4 [11:56:47]MH_SAM_APDU [11:56:47]CAPDU: 80 11 00 00 [11:56:47]Write to MH i2c: E2 08 00 1F 7E 80 11 00 00 00 00 00 00 17 [11:56:47]Write i2c OK [11:56:47]MH_I2C_Read... [11:56:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:56:47]Read from MH i2c: E2 [11:56:47]MH_I2C_Read... [11:56:47]Read from MH i2c: E2 17 00 [11:56:47]MH_I2C_Read... [11:56:47]Read from MH i2c: E2 17 00 1F 7E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 65 [11:56:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [11:56:47]wFMCommunicate OK [11:56:47]requested_item fd.num is exist - process it [11:56:47]SAM_PROTO_GetFieldsCounters [11:56:47]wFMCommunicate request_size=4 [11:56:47]MH_SAM_APDU [11:56:47]CAPDU: 80 13 00 00 [11:56:47]Write to MH i2c: E2 08 00 20 7E 80 13 00 00 00 00 00 00 1A [11:56:47]Write i2c OK [11:56:47]MH_I2C_Read... [11:56:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:56:47]Read from MH i2c: E2 [11:56:47]MH_I2C_Read... [11:56:47]Read from MH i2c: E2 62 00 [11:56:47]MH_I2C_Read... [11:56:47]Read from MH i2c: E2 62 00 20 7E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 BA [11:56: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 6C 76 00 00 0E 04 04 00 72 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 [11:56:47]wFMCommunicate OK [11:56:47]SAM_PROTO_GetFieldsCounters done [11:56:47]requested_item shift.num is exist - process it [11:56:47]requested_item shift.opened is exist - process it [11:56:47]req_shift_opened [11:56:47]FM_GetShiftState [11:56:47]SAM_PROTO_GetShiftState [11:56:47]wFMCommunicate request_size=4 [11:56:47]MH_SAM_APDU [11:56:47]CAPDU: 80 13 01 00 [11:56:47]Write to MH i2c: E2 08 00 21 7E 80 13 01 00 00 00 00 00 1C [11:56:47]Write i2c OK [11:56:47]MH_I2C_Read... [11:56:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:56:47]Read from MH i2c: E2 [11:56:47]MH_I2C_Read... [11:56:47]Read from MH i2c: E2 0E 00 [11:56:47]MH_I2C_Read... [11:56:47]Read from MH i2c: E2 0E 00 21 7E 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 02 [11:56:47]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [11:56:47]wFMCommunicate OK [11:56:47]SAM_PROTO_GetShiftState done [11:56:47]FM_GetShiftState done [11:56:47]req_shift_opened done [11:56:47]requested_item shift.open_date is exist - process it [11:56:47]req_shift_open_date [11:56:47]req_shift_open_date done [11:56:47]produce_requested_data done [11:56:47]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30316,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [11:56:47]process_action_free close_receipt [11:56:47]json_value_free [11:56:47]json_value_free done [11:56:47]process_json_proto returns [11:56:47]Send response to host [11:56:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30316,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [11:56:47]free response buf [11:56:47]execute_script done [11:56:47]execute_script returns [11:56:47]free content buf [11:56:47]Sock 9.Close socket [11:56:47]Sock 9.Thread stoped [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:36]OFD Sender: No OFD packet to send [11:57:41]OFD Sender: No OFD packet to send [11:57:46]OFD Sender: No OFD packet to send [11:57:51]OFD Sender: No OFD packet to send [11:57:56]OFD Sender: No OFD packet to send [11:58:01]OFD Sender: No OFD packet to send [11:58:06]OFD Sender: No OFD packet to send [11:58:11]OFD Sender: No OFD packet to send [11:58:16]OFD Sender: No OFD packet to send [11:58:21]OFD Sender: No OFD packet to send [11:58:26]OFD Sender: No OFD packet to send [11:58:31]OFD Sender: No OFD packet to send [11:58:36]OFD Sender: No OFD packet to send [11:58:41]OFD Sender: No OFD packet to send [11:58:46]OFD Sender: No OFD packet to send [11:58:51]OFD Sender: No OFD packet to send [11:58:56]OFD Sender: No OFD packet to send [11:59:01]OFD Sender: No OFD packet to send [11:59:06]OFD Sender: No OFD packet to send [11:59:11]OFD Sender: No OFD packet to send [11:59:16]OFD Sender: No OFD packet to send [11:59:21]OFD Sender: No OFD packet to send [11:59:26]OFD Sender: No OFD packet to send [11:59:31]OFD Sender: No OFD packet to send [11:59:36]OFD Sender: No OFD packet to send [11:59:41]OFD Sender: No OFD packet to send [11:59:46]OFD Sender: No OFD packet to send [11:59:51]OFD Sender: No OFD packet to send [11:59:56]OFD Sender: No OFD packet to send [12:00:01]OFD Sender: No OFD packet to send [12:00:06]OFD Sender: No OFD packet to send [12:00:11]OFD Sender: No OFD packet to send [12:00:16]OFD Sender: No OFD packet to send [12:00:21]OFD Sender: No OFD packet to send [12:00:26]OFD Sender: No OFD packet to send [12:00:31]OFD Sender: No OFD packet to send [12:00:36]OFD Sender: No OFD packet to send [12:00:41]OFD Sender: No OFD packet to send [12:00:46]OFD Sender: No OFD packet to send [12:00:51]OFD Sender: No OFD packet to send [12:00:56]OFD Sender: No OFD packet to send [12:01:01]OFD Sender: No OFD packet to send [12:01:06]OFD Sender: No OFD packet to send [12:01:11]OFD Sender: No OFD packet to send [12:01:16]OFD Sender: No OFD packet to send [12:01:21]OFD Sender: No OFD packet to send [12:01:26]OFD Sender: No OFD packet to send [12:01:31]OFD Sender: No OFD packet to send [12:01:36]OFD Sender: No OFD packet to send [12:01:41]OFD Sender: No OFD packet to send [12:01:46]OFD Sender: No OFD packet to send [12:01:51]OFD Sender: No OFD packet to send [12:01:56]OFD Sender: No OFD packet to send [12:02:01]OFD Sender: No OFD packet to send [12:02:06]OFD Sender: No OFD packet to send [12:02:11]OFD Sender: No OFD packet to send [12:02:16]OFD Sender: No OFD packet to send [12:02:21]OFD Sender: No OFD packet to send [12:02:26]OFD Sender: No OFD packet to send [12:02:31]OFD Sender: No OFD packet to send [12:02:36]OFD Sender: No OFD packet to send [12:02:41]OFD Sender: No OFD packet to send [12:02:46]OFD Sender: No OFD packet to send [12:02:51]OFD Sender: No OFD packet to send [12:02:56]OFD Sender: No OFD packet to send [12:03:01]OFD Sender: No OFD packet to send [12:03:06]OFD Sender: No OFD packet to send [12:03:11]OFD Sender: No OFD packet to send [12:03:16]OFD Sender: No OFD packet to send [12:03:21]OFD Sender: No OFD packet to send [12:03:26]OFD Sender: No OFD packet to send [12:03:31]OFD Sender: No OFD packet to send [12:03:36]OFD Sender: No OFD packet to send [12:03:41]OFD Sender: No OFD packet to send [12:03:46]OFD Sender: No OFD packet to send [12:03:51]OFD Sender: No OFD packet to send [12:03:56]OFD Sender: No OFD packet to send [12:04:01]OFD Sender: No OFD packet to send [12:04:03]accept exits with 7 [12:04:03]New connection [12:04:03]New thread 3067370852 created [12:04:03]Thread 3067514212 joined [12:04:03]Waiting for new connection... [12:04:03] Sock 7.Parse request [12:04:03]Sock 7.Check first char [12:04:03]Sock 7.First char is OK [12:04:03]request: POST /json_proto HTTP/1.0 [12:04:03]Method: POST [12:04:03]URL: /json_proto [12:04:03]Method is POST - this is cgi request [12:04:03]url: /json_proto [12:04:03]query_string will be loaded in cgi processing [12:04:03]execute_cgi json_proto POST (null) [12:04:03]execute_cgi path=json_proto method=POST [12:04:03]POST find Content-Length [12:04:03]Host: 172.17.51.3:8080 [12:04:03]Content-Length: 677 [12:04:03]Content-Type: application/json [12:04:03] [12:04:03]POST finish read [12:04:03]Found Content-Length = 677 [12:04:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342710", "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:04:03]execute_script... [12:04: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)342710", "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:04:03]POST & json_proto [12:04:03]process_json_proto [12:04:03]json parsed OK: [12:04:03]protocol is kg_v1.0 [12:04:03]action value=close_receipt [12:04:03]process_action close_receipt [12:04:03]cmd_close_receipt [12:04:03]MH_GetDate [12:04:03]Write to MH i2c: F0 00 00 22 7E 8F [12:04:03]Write i2c OK [12:04:03]MH_I2C_Read... [12:04:03]Read from MH i2c: F0 [12:04:03]MH_I2C_Read... [12:04:03]Read from MH i2c: F0 09 00 [12:04:03]MH_I2C_Read... [12:04:03]Read from MH i2c: F0 09 00 22 7E 00 BC F1 14 67 04 C1 95 66 80 [12:04:03]GetLastDocTimeStamp 1729425413 [12:04:03]current date 1729425852 [12:04:03]FM_GetShiftState [12:04:03]SAM_PROTO_GetShiftState [12:04:03]wFMCommunicate request_size=4 [12:04:03]MH_SAM_APDU [12:04:03]CAPDU: 80 13 01 00 [12:04:03]Write to MH i2c: E2 08 00 23 7E 80 13 01 00 00 00 00 00 1E [12:04:03]Write i2c OK [12:04:03]MH_I2C_Read... [12:04:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:04:03]Read from MH i2c: E2 [12:04:03]MH_I2C_Read... [12:04:03]Read from MH i2c: E2 0E 00 [12:04:03]MH_I2C_Read... [12:04:03]Read from MH i2c: E2 0E 00 23 7E 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 04 [12:04:03]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [12:04:03]wFMCommunicate OK [12:04:03]SAM_PROTO_GetShiftState done [12:04:03]FM_GetShiftState done [12:04:03]opened in 1729384718 [12:04:03]opened+sec_in_day 1729471118 [12:04:03]quantity*price = 50041 [12:04:03]sum+1 = 50042 [12:04:03]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 СНО: Общий режим Чек 99 20.10.2024 12:04 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30317 ФПД: 145621434056498 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T120412&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30317&fm=145621434056498&tin=02508201610067®Number=0000000000186857&sum=50000 [12:04:04]StoreToDocumentArchive [12:04:04]shift 114 fd 30317 [12:04:04]save to /storage/0114/doc_00030317 [12:04:04]save last doc name /storage/0114/doc_00030317 to /storage/kkm_last_doc_name [12:04:04]save OK [12:04:04]Clear old archive folders... [12:04:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:04:04]tlvbuf is 00A79100 [12:04:04]SAM_PROTO_ClearQueue [12:04:04]wFMCommunicate request_size=4 [12:04:04]MH_SAM_APDU [12:04:04]CAPDU: 80 09 00 00 [12:04:04]Write to MH i2c: E2 08 00 30 7E 80 09 00 00 00 00 00 00 20 [12:04:04]Write i2c OK [12:04:04]MH_I2C_Read... [12:04:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:04:04]Read from MH i2c: E2 [12:04:04]MH_I2C_Read... [12:04:04]Read from MH i2c: E2 03 00 [12:04:04]MH_I2C_Read... [12:04:04]Read from MH i2c: E2 03 00 30 7E 00 90 00 22 [12:04:04]RAPDU: 90 00 [12:04:04]wFMCommunicate OK [12:04:04]SAM_PROTO_ClearQueue done [12:04:04]KKMCreateOFDPacket [12:04:04]OFDProtocolAddRootSTLVToBuf [12:04:04]FM_MakeSignedData [12:04:04]FM_MakeSignedData [12:04:04]SAM_PROTO_SignData [12:04:04]wFMCommunicate request_size=4 [12:04:04]MH_SAM_APDU [12:04:04]CAPDU: 80 0D 01 02 [12:04:04]Write to MH i2c: E2 08 00 31 7E 80 0D 01 02 00 00 00 00 28 [12:04:04]Write i2c OK [12:04:04]MH_I2C_Read... [12:04:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:04:04]Read from MH i2c: E2 [12:04:04]MH_I2C_Read... [12:04:04]Read from MH i2c: E2 03 00 [12:04:04]MH_I2C_Read... [12:04:04]Read from MH i2c: E2 03 00 31 7E 00 90 00 23 [12:04:04]RAPDU: 90 00 [12:04:04]wFMCommunicate OK [12:04:04]wFMCommunicate request_size=255 [12:04:04]MH_SAM_APDU [12:04: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 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 63 00 00 00 F4 03 04 00 BC F1 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 84 [12:04:04]Write to MH i2c: E2 02 01 32 7E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 63 00 00 00 F4 03 04 00 BC F1 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 84 00 00 1D [12:04:04]Write i2c OK [12:04:04]MH_I2C_Read... [12:04:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:04:04]Read from MH i2c: E2 [12:04:04]MH_I2C_Read... [12:04:04]Read from MH i2c: E2 03 00 [12:04:04]MH_I2C_Read... [12:04:04]Read from MH i2c: E2 03 00 32 7E 00 90 00 24 [12:04:04]RAPDU: 90 00 [12:04:04]wFMCommunicate OK [12:04:04]wFMCommunicate request_size=10 [12:04:04]MH_SAM_APDU [12:04:04]CAPDU: 80 0D 02 02 05 71 21 D9 3F 32 [12:04:04]Write to MH i2c: E2 0D 00 33 7E 80 0D 02 02 05 00 71 21 D9 3F 32 00 00 11 [12:04:04]Write i2c OK [12:04:04]MH_I2C_Read... [12:04:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:04:04]Read from MH i2c: E2 [12:04:04]MH_I2C_Read... [12:04:04]Read from MH i2c: E2 03 00 [12:04:04]MH_I2C_Read... [12:04:04]Read from MH i2c: E2 03 00 33 7E 00 90 00 25 [12:04:04]RAPDU: 90 00 [12:04:04]wFMCommunicate OK [12:04:04]wFMCommunicate request_size=4 [12:04:04]MH_SAM_APDU [12:04:04]CAPDU: 80 0D 03 02 [12:04:04]Write to MH i2c: E2 08 00 34 7E 80 0D 03 02 00 00 00 00 2D [12:04:04]Write i2c OK [12:04:04]MH_I2C_Read... [12:04:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:04:04]Read from MH i2c: E2 [12:04:04]MH_I2C_Read... [12:04:04]Read from MH i2c: E2 0B 00 [12:04:04]MH_I2C_Read... [12:04:04]Read from MH i2c: E2 0B 00 34 7E 00 6E 91 19 32 E6 AB 4C 59 90 00 AE [12:04:04]RAPDU: 6E 91 19 32 E6 AB 4C 59 90 00 [12:04:04]wFMCommunicate OK [12:04:04]SAM_PROTO_SignData done [12:04:04]FM_MakeSignedData done [12:04:04]CreateOFDProtocolMessage [12:04:04]wFMCommunicate request_size=4 [12:04:04]MH_SAM_APDU [12:04:04]CAPDU: 80 11 00 00 [12:04:04]Write to MH i2c: E2 08 00 35 7E 80 11 00 00 00 00 00 00 2D [12:04:04]Write i2c OK [12:04:04]MH_I2C_Read... [12:04:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:04:04]Read from MH i2c: E2 [12:04:04]MH_I2C_Read... [12:04:04]Read from MH i2c: E2 17 00 [12:04:04]MH_I2C_Read... [12:04:04]Read from MH i2c: E2 17 00 35 7E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 7B [12:04:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [12:04:04]wFMCommunicate OK [12:04:04]CreateOFDProtocolMessage done [12:04:04]OFDSenderStorePacket 30317 [12:04:04]StoreOFDPacket docnum=30317 [12:04: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 7A EC 07 01 7C 38 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 63 00 00 00 F4 03 04 00 BC F1 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 84 71 21 D9 3F 32 6E 91 19 32 E6 AB 4C 59 [12:04:04]CheckFolder [12:04:04]dirname=/storage/ofd_packets [12:04:04]CheckFolder done [12:04:04]ProducePacketName [12:04:04]name=ofd_packets/00030317 [12:04:04]NVStorageSaveData ofd_packets/00030317 [12:04:04]File name is /storage/ofd_packets/00030317 [12:04:04]Write 301 bytes [12:04:04]NVStorageSaveData done [12:04:04]OFDSenderStorePacket done [12:04:04]KKMCreateOFDPacket done [12:04:04]NVStorageSaveData kkm_last_timestamp [12:04:04]File name is /storage/kkm_last_timestamp [12:04:04]Write 4 bytes [12:04:04]NVStorageSaveData done [12:04:04]ExternCall_PrintAddStr [12:04:04]wPrintStart [12:04:04]Write to MH i2c: 01 00 00 36 7E B4 [12:04:04]Write i2c OK [12:04:04]MH_I2C_Read... [12:04:04]Read from MH i2c: 01 [12:04:04]MH_I2C_Read... [12:04:04]Read from MH i2c: 01 07 00 [12:04:04]MH_I2C_Read... [12:04:04]Read from MH i2c: 01 07 00 36 7E 00 00 00 00 00 FF 0F C9 [12:04:04]RasterBufferAndPrint [12:04:04]line Счет N : (1)342710 [12:04:04]line ИНН: 02508201610067 [12:04:04]line Контрольно-Кассовый Чек [12:04:04]line ПРОДАЖА [12:04:04]line ТРК (МРК, ГНК) : 63 [12:04:04]line Товар: 2710124130 [12:04:04]line Аи-92-К-2 [12:04:04]line 7.480 * 66.90 [12:04:04]line = 500.41 [12:04:04]line НДС 12% НСП 1% [12:04:04]line > о реализуемом товаре [12:04:04]line ОКРУГЛЕНИЕ: -0.41 [12:04:04]line ИТОГО: 500.00 [12:04:04]line Внесено: 500.00 [12:04:04]line СДАЧА: 0.00 [12:04:04]line НСП 1% : 4.43 [12:04:04]line НДС 12% : 53.14 [12:04:04]line Наличными: 500.00 [12:04:04]line Безнал.: 0.00 [12:04:04]line Место: АЗС № 78 "Партнер Нефть" [12:04:04]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [12:04:04]line СНО: Общий режим [12:04:04]line Чек 99 20.10.2024 12:04 [12:04:04]line Смена: 114 ФФД: 1.0 [12:04:04]line ЗНМ: 0300000137 [12:04:04]line РНМ: 0000000000186857 [12:04:04]line Версия ККМ: v1.0 [12:04:04]line ФМ: 0000000002094219 [12:04:04]line ФД: 30317 [12:04:04]line ФПД: 145621434056498 [12:04:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T120412&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30317&fm=145621434056498&tin=02508201610067®Number=0000000000186857&sum=50000 [12:04:04]written 0, free lines is 4095 [12:04:04]OFD Sender: Processing packet 30317 [packets to send 10, broken 9] [12:04:04]ProducePacketName [12:04:04]name=ofd_packets/00030317 [12:04:04]OFD Sender: To server: pG, [12:04:04]CommunicateWithHost lk.salyk.kg:30040 [12:04:04]ConnectInit lk.salyk.kg [12:04:04]Connected sock=10 [12:04: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 7A EC 07 01 7C 38 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 63 00 00 00 F4 03 04 00 BC F1 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 84 71 21 D9 3F 32 6E 91 19 32 E6 AB 4C 59 [12:04: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 4E 71 47 00 7C 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 6D 76 00 00 F4 03 04 00 40 9C 14 67 B6 04 01 00 00 92 14 D9 DC C3 2A C8 49 [12:04:05]CommunicateWithHost err = 0 [12:04:05]CheckOFDResponse [12:04:05]1017 (14) - 77093643461234 [12:04:05]1041 (16) - 0000000002094219 [12:04:05]1040 (4) - 30317 [12:04:05]1012 (4) - 20.10.2024 05:59 [12:04:05]1206 (1) - 0 [12:04:05]OFD Sender: Remove packet 30317 [12:04:05]ProducePacketName [12:04:05]name=ofd_packets/00030317 [12:04:05]NVStorageDeleteData [12:04:05]Write to MH i2c: 01 00 00 61 7E DF [12:04:05]Write i2c OK [12:04:05]MH_I2C_Read... [12:04:05]Read from MH i2c: 01 [12:04:05]MH_I2C_Read... [12:04:05]Read from MH i2c: 01 07 00 [12:04:05]MH_I2C_Read... [12:04:05]Read from MH i2c: 01 07 00 61 7E 00 00 00 00 00 EC 0C DE [12:04:05]RasterBufferAndPrint [12:04:05]line [12:04:05]line [12:04:05]line [12:04:05]line [12:04:05]line [12:04:05]written 0, free lines is 3314 [12:04:05]MH_Cut [12:04:05]Write to MH i2c: D1 01 00 68 7E 01 B8 [12:04:05]Write i2c OK [12:04:05]MH_I2C_Read... [12:04:05]Read from MH i2c: D1 [12:04:05]MH_I2C_Read... [12:04:05]Read from MH i2c: D1 01 00 [12:04:05]MH_I2C_Read... [12:04:05]Read from MH i2c: D1 01 00 68 7E 00 B7 [12:04:05]Write to MH i2c: 01 00 00 69 7E E7 [12:04:05]Write i2c OK [12:04:05]MH_I2C_Read... [12:04:05]OFD Sender: No OFD packet to send [12:04:05]*** Cut start [12:04:05]*** Partial cut [12:04:05]*** CUTSNS_PIN = 1 [12:04:05]*** CUTSNS_PIN = 0 [12:04:06]*** Brake cut motor [12:04:06]Read from MH i2c: 01 [12:04:06]MH_I2C_Read... [12:04:06]*** Stop cut motor [12:04:06]*** Cut end [12:04:06]Read from MH i2c: 01 07 00 [12:04:06]MH_I2C_Read... [12:04:06]Read from MH i2c: 01 07 00 69 7E 00 00 00 00 00 FF 0F FC [12:04:06]process_action close_receipt done [12:04:06]requested_data is exist [12:04:06]produce_requested_data [12:04:06]requested_item fm.sn is exist - process it [12:04:06]wFMCommunicate request_size=4 [12:04:06]MH_SAM_APDU [12:04:06]CAPDU: 80 11 00 00 [12:04:06]Write to MH i2c: E2 08 00 6A 7E 80 11 00 00 00 00 00 00 62 [12:04:06]Write i2c OK [12:04:06]MH_I2C_Read... [12:04:06]Read from MH i2c: E2 [12:04:06]MH_I2C_Read... [12:04:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:04:06]Read from MH i2c: E2 17 00 [12:04:06]MH_I2C_Read... [12:04:06]Read from MH i2c: E2 17 00 6A 7E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 B0 [12:04: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:04:06]wFMCommunicate OK [12:04:06]requested_item fd.num is exist - process it [12:04:06]SAM_PROTO_GetFieldsCounters [12:04:06]wFMCommunicate request_size=4 [12:04:06]MH_SAM_APDU [12:04:06]CAPDU: 80 13 00 00 [12:04:06]Write to MH i2c: E2 08 00 6B 7E 80 13 00 00 00 00 00 00 65 [12:04:06]Write i2c OK [12:04:06]MH_I2C_Read... [12:04:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:04:06]Read from MH i2c: E2 [12:04:06]MH_I2C_Read... [12:04:06]Read from MH i2c: E2 62 00 [12:04:06]MH_I2C_Read... [12:04:06]Read from MH i2c: E2 62 00 6B 7E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 09 [12:04: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 6D 76 00 00 0E 04 04 00 72 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:04:06]wFMCommunicate OK [12:04:06]SAM_PROTO_GetFieldsCounters done [12:04:06]requested_item shift.num is exist - process it [12:04:06]requested_item shift.opened is exist - process it [12:04:06]req_shift_opened [12:04:06]FM_GetShiftState [12:04:06]SAM_PROTO_GetShiftState [12:04:06]wFMCommunicate request_size=4 [12:04:06]MH_SAM_APDU [12:04:06]CAPDU: 80 13 01 00 [12:04:06]Write to MH i2c: E2 08 00 6C 7E 80 13 01 00 00 00 00 00 67 [12:04:06]Write i2c OK [12:04:06]MH_I2C_Read... [12:04:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:04:06]Read from MH i2c: E2 [12:04:06]MH_I2C_Read... [12:04:06]Read from MH i2c: E2 0E 00 [12:04:06]MH_I2C_Read... [12:04:06]Read from MH i2c: E2 0E 00 6C 7E 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 4D [12:04:06]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [12:04:06]wFMCommunicate OK [12:04:06]SAM_PROTO_GetShiftState done [12:04:06]FM_GetShiftState done [12:04:06]req_shift_opened done [12:04:06]requested_item shift.open_date is exist - process it [12:04:06]req_shift_open_date [12:04:06]req_shift_open_date done [12:04:06]produce_requested_data done [12:04:06]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30317,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [12:04:06]process_action_free close_receipt [12:04:06]json_value_free [12:04:06]json_value_free done [12:04:06]process_json_proto returns [12:04:06]Send response to host [12:04:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30317,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [12:04:06]free response buf [12:04:06]execute_script done [12:04:06]execute_script returns [12:04:06]free content buf [12:04:06]Sock 7.Close socket [12:04:06]Sock 7.Thread stoped [12:04:10]OFD Sender: No OFD packet to send [12:04:15]OFD Sender: No OFD packet to send [12:04:16]accept exits with 9 [12:04:16]New connection [12:04:16]New thread 3067514212 created [12:04:16]Thread 3067370852 joined [12:04:16]Waiting for new connection... [12:04:16] Sock 9.Parse request [12:04:16]Sock 9.Check first char [12:04:16]Sock 9.First char is OK [12:04:16]request: POST /json_proto HTTP/1.0 [12:04:16]Method: POST [12:04:16]URL: /json_proto [12:04:16]Method is POST - this is cgi request [12:04:16]url: /json_proto [12:04:16]query_string will be loaded in cgi processing [12:04:16]execute_cgi json_proto POST (null) [12:04:16]execute_cgi path=json_proto method=POST [12:04:16]POST find Content-Length [12:04:16]Host: 172.17.51.3:8080 [12:04:16]Content-Length: 678 [12:04:16]Content-Type: application/json [12:04:16] [12:04:16]POST finish read [12:04:16]Found Content-Length = 678 [12:04:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342709", "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" ] } } [12:04:16]execute_script... [12:04:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342709", "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" ] } } [12:04:16]POST & json_proto [12:04:16]process_json_proto [12:04:16]json parsed OK: [12:04:16]protocol is kg_v1.0 [12:04:16]action value=close_receipt [12:04:16]process_action close_receipt [12:04:16]cmd_close_receipt [12:04:16]MH_GetDate [12:04:16]Write to MH i2c: F0 00 00 6D 7E DA [12:04:16]Write i2c OK [12:04:16]MH_I2C_Read... [12:04:16]Read from MH i2c: F0 [12:04:16]MH_I2C_Read... [12:04:16]Read from MH i2c: F0 09 00 [12:04:16]MH_I2C_Read... [12:04:16]Read from MH i2c: F0 09 00 6D 7E 00 C9 F1 14 67 04 C1 95 66 D8 [12:04:16]GetLastDocTimeStamp 1729425852 [12:04:16]current date 1729425865 [12:04:16]FM_GetShiftState [12:04:16]SAM_PROTO_GetShiftState [12:04:16]wFMCommunicate request_size=4 [12:04:16]MH_SAM_APDU [12:04:16]CAPDU: 80 13 01 00 [12:04:16]Write to MH i2c: E2 08 00 6E 7E 80 13 01 00 00 00 00 00 69 [12:04:16]Write i2c OK [12:04:16]MH_I2C_Read... [12:04:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:04:16]Read from MH i2c: E2 [12:04:16]MH_I2C_Read... [12:04:16]Read from MH i2c: E2 0E 00 [12:04:16]MH_I2C_Read... [12:04:16]Read from MH i2c: E2 0E 00 6E 7E 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 4F [12:04:16]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [12:04:16]wFMCommunicate OK [12:04:16]SAM_PROTO_GetShiftState done [12:04:16]FM_GetShiftState done [12:04:16]opened in 1729384718 [12:04:16]opened+sec_in_day 1729471118 [12:04:16]quantity*price = 70044 [12:04:16]sum+1 = 70045 [12:04:16]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 СНО: Общий режим Чек 100 20.10.2024 12:04 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30318 ФПД: 135698715070098 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T120425&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30318&fm=135698715070098&tin=02508201610067®Number=0000000000186857&sum=70000 [12:04:17]StoreToDocumentArchive [12:04:17]shift 114 fd 30318 [12:04:17]save to /storage/0114/doc_00030318 [12:04:17]save last doc name /storage/0114/doc_00030318 to /storage/kkm_last_doc_name [12:04:17]save OK [12:04:17]Clear old archive folders... [12:04:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:04:17]tlvbuf is 00CB7200 [12:04:17]SAM_PROTO_ClearQueue [12:04:17]wFMCommunicate request_size=4 [12:04:17]MH_SAM_APDU [12:04:17]CAPDU: 80 09 00 00 [12:04:17]Write to MH i2c: E2 08 00 7B 7E 80 09 00 00 00 00 00 00 6B [12:04:17]Write i2c OK [12:04:17]MH_I2C_Read... [12:04:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:04:17]Read from MH i2c: E2 [12:04:17]MH_I2C_Read... [12:04:17]Read from MH i2c: E2 03 00 [12:04:17]MH_I2C_Read... [12:04:17]Read from MH i2c: E2 03 00 7B 7E 00 90 00 6D [12:04:17]RAPDU: 90 00 [12:04:17]wFMCommunicate OK [12:04:17]SAM_PROTO_ClearQueue done [12:04:17]KKMCreateOFDPacket [12:04:17]OFDProtocolAddRootSTLVToBuf [12:04:17]FM_MakeSignedData [12:04:17]FM_MakeSignedData [12:04:17]SAM_PROTO_SignData [12:04:17]wFMCommunicate request_size=4 [12:04:17]MH_SAM_APDU [12:04:17]CAPDU: 80 0D 01 02 [12:04:17]Write to MH i2c: E2 08 00 7C 7E 80 0D 01 02 00 00 00 00 73 [12:04:17]Write i2c OK [12:04:17]MH_I2C_Read... [12:04:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:04:17]Read from MH i2c: E2 [12:04:17]MH_I2C_Read... [12:04:17]Read from MH i2c: E2 03 00 [12:04:17]MH_I2C_Read... [12:04:17]Read from MH i2c: E2 03 00 7C 7E 00 90 00 6E [12:04:17]RAPDU: 90 00 [12:04:17]wFMCommunicate OK [12:04:17]wFMCommunicate request_size=255 [12:04:17]MH_SAM_APDU [12:04:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 64 00 00 00 F4 03 04 00 C9 F1 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 7B [12:04:17]Write to MH i2c: E2 02 01 7D 7E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 64 00 00 00 F4 03 04 00 C9 F1 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 7B 00 00 7E [12:04:17]Write i2c OK [12:04:17]MH_I2C_Read... [12:04:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:04:18]Read from MH i2c: E2 [12:04:18]MH_I2C_Read... [12:04:18]Read from MH i2c: E2 03 00 [12:04:18]MH_I2C_Read... [12:04:18]Read from MH i2c: E2 03 00 7D 7E 00 90 00 6F [12:04:18]RAPDU: 90 00 [12:04:18]wFMCommunicate OK [12:04:18]wFMCommunicate request_size=10 [12:04:18]MH_SAM_APDU [12:04:18]CAPDU: 80 0D 02 02 05 6A D1 B5 4E 92 [12:04:18]Write to MH i2c: E2 0D 00 7E 7E 80 0D 02 02 05 00 6A D1 B5 4E 92 00 00 50 [12:04:18]Write i2c OK [12:04:18]MH_I2C_Read... [12:04:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:04:18]Read from MH i2c: E2 [12:04:18]MH_I2C_Read... [12:04:18]Read from MH i2c: E2 03 00 [12:04:18]MH_I2C_Read... [12:04:18]Read from MH i2c: E2 03 00 7E 7E 00 90 00 70 [12:04:18]RAPDU: 90 00 [12:04:18]wFMCommunicate OK [12:04:18]wFMCommunicate request_size=4 [12:04:18]MH_SAM_APDU [12:04:18]CAPDU: 80 0D 03 02 [12:04:18]Write to MH i2c: E2 08 00 7F 7E 80 0D 03 02 00 00 00 00 78 [12:04:18]Write i2c OK [12:04:18]MH_I2C_Read... [12:04:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:04:18]Read from MH i2c: E2 [12:04:18]MH_I2C_Read... [12:04:18]Read from MH i2c: E2 0B 00 [12:04:18]MH_I2C_Read... [12:04:18]Read from MH i2c: E2 0B 00 7F 7E 00 2B 3E 23 A4 15 70 07 A4 90 00 D9 [12:04:18]RAPDU: 2B 3E 23 A4 15 70 07 A4 90 00 [12:04:18]wFMCommunicate OK [12:04:18]SAM_PROTO_SignData done [12:04:18]FM_MakeSignedData done [12:04:18]CreateOFDProtocolMessage [12:04:18]wFMCommunicate request_size=4 [12:04:18]MH_SAM_APDU [12:04:18]CAPDU: 80 11 00 00 [12:04:18]Write to MH i2c: E2 08 00 80 7E 80 11 00 00 00 00 00 00 78 [12:04:18]Write i2c OK [12:04:18]MH_I2C_Read... [12:04:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:04:18]Read from MH i2c: E2 [12:04:18]MH_I2C_Read... [12:04:18]Read from MH i2c: E2 17 00 [12:04:18]MH_I2C_Read... [12:04:18]Read from MH i2c: E2 17 00 80 7E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 C6 [12:04: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:04:18]wFMCommunicate OK [12:04:18]CreateOFDProtocolMessage done [12:04:18]OFDSenderStorePacket 30318 [12:04:18]StoreOFDPacket docnum=30318 [12:04: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 89 D5 07 01 90 24 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 64 00 00 00 F4 03 04 00 C9 F1 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 7B 6A D1 B5 4E 92 2B 3E 23 A4 15 70 07 A4 [12:04:18]CheckFolder [12:04:18]dirname=/storage/ofd_packets [12:04:18]CheckFolder done [12:04:18]ProducePacketName [12:04:18]name=ofd_packets/00030318 [12:04:18]NVStorageSaveData ofd_packets/00030318 [12:04:18]File name is /storage/ofd_packets/00030318 [12:04:18]Write 301 bytes [12:04:18]NVStorageSaveData done [12:04:18]OFDSenderStorePacket done [12:04:18]KKMCreateOFDPacket done [12:04:18]NVStorageSaveData kkm_last_timestamp [12:04:18]File name is /storage/kkm_last_timestamp [12:04:18]Write 4 bytes [12:04:18]NVStorageSaveData done [12:04:18]ExternCall_PrintAddStr [12:04:18]wPrintStart [12:04:18]Write to MH i2c: 01 00 00 81 7E FF [12:04:18]Write i2c OK [12:04:18]MH_I2C_Read... [12:04:18]Read from MH i2c: 01 [12:04:18]MH_I2C_Read... [12:04:18]Read from MH i2c: 01 07 00 [12:04:18]MH_I2C_Read... [12:04:18]Read from MH i2c: 01 07 00 81 7E 00 00 00 00 00 FF 0F 14 [12:04:18]RasterBufferAndPrint [12:04:18]line Счет N : (1)342709 [12:04:18]line ИНН: 02508201610067 [12:04:18]line Контрольно-Кассовый Чек [12:04:18]line ПРОДАЖА [12:04:18]line ТРК (МРК, ГНК) : 53 [12:04:18]line Товар: 2710124130 [12:04:18]line Аи-92-К-2 [12:04:18]line 10.470 * 66.90 [12:04:18]line = 700.44 [12:04:18]line НДС 12% НСП 1% [12:04:18]line > о реализуемом товаре [12:04:18]line ОКРУГЛЕНИЕ: -0.44 [12:04:18]line ИТОГО: 700.00 [12:04:18]line Внесено: 700.00 [12:04:18]line СДАЧА: 0.00 [12:04:18]line НСП 1% : 6.20 [12:04:18]line НДС 12% : 74.38 [12:04:18]line Наличными: 700.00 [12:04:18]line Безнал.: 0.00 [12:04:18]line Место: АЗС № 78 "Партнер Нефть" [12:04:18]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [12:04:18]line СНО: Общий режим [12:04:18]line Чек 100 20.10.2024 12:04 [12:04:18]line Смена: 114 ФФД: 1.0 [12:04:18]line ЗНМ: 0300000137 [12:04:18]line РНМ: 0000000000186857 [12:04:18]line Версия ККМ: v1.0 [12:04:18]line ФМ: 0000000002094219 [12:04:18]line ФД: 30318 [12:04:18]line ФПД: 135698715070098 [12:04:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T120425&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30318&fm=135698715070098&tin=02508201610067®Number=0000000000186857&sum=70000 [12:04:18]OFD Sender: Processing packet 30318 [packets to send 10, broken 9] [12:04:18]ProducePacketName [12:04:18]name=ofd_packets/00030318 [12:04:18]OFD Sender: To server: pG, [12:04:18]CommunicateWithHost lk.salyk.kg:30040 [12:04:18]ConnectInit lk.salyk.kg [12:04:18]written 0, free lines is 4095 [12:04:18]Connected sock=10 [12:04: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 89 D5 07 01 90 24 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 64 00 00 00 F4 03 04 00 C9 F1 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 7B 6A D1 B5 4E 92 2B 3E 23 A4 15 70 07 A4 [12:04: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 57 73 47 00 72 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 6E 76 00 00 F4 03 04 00 4D 9C 14 67 B6 04 01 00 00 88 F1 2F A3 B3 DC 44 B2 [12:04:18]CommunicateWithHost err = 0 [12:04:18]CheckOFDResponse [12:04:18]1017 (14) - 77093643461234 [12:04:18]1041 (16) - 0000000002094219 [12:04:18]1040 (4) - 30318 [12:04:18]1012 (4) - 20.10.2024 05:59 [12:04:18]1206 (1) - 0 [12:04:18]OFD Sender: Remove packet 30318 [12:04:18]ProducePacketName [12:04:18]name=ofd_packets/00030318 [12:04:18]NVStorageDeleteData [12:04:19]Write to MH i2c: 01 00 00 AC 7E 2A [12:04:19]Write i2c OK [12:04:19]MH_I2C_Read... [12:04:19]Read from MH i2c: 01 [12:04:19]MH_I2C_Read... [12:04:19]Read from MH i2c: 01 07 00 [12:04:19]MH_I2C_Read... [12:04:19]Read from MH i2c: 01 07 00 AC 7E 00 00 00 00 00 E0 0C 1D [12:04:19]RasterBufferAndPrint [12:04:19]line [12:04:19]line [12:04:19]line [12:04:19]line [12:04:19]line [12:04:19]written 0, free lines is 3305 [12:04:19]MH_Cut [12:04:19]Write to MH i2c: D1 01 00 B3 7E 01 03 [12:04:19]Write i2c OK [12:04:19]MH_I2C_Read... [12:04:19]Read from MH i2c: D1 [12:04:19]MH_I2C_Read... [12:04:19]Read from MH i2c: D1 01 00 [12:04:19]MH_I2C_Read... [12:04:19]Read from MH i2c: D1 01 00 B3 7E 00 02 [12:04:19]Write to MH i2c: 01 00 00 B4 7E 32 [12:04:19]Write i2c OK [12:04:19]MH_I2C_Read... [12:04:19]OFD Sender: No OFD packet to send [12:04:19]*** Cut start [12:04:19]*** Partial cut [12:04:19]*** CUTSNS_PIN = 1 [12:04:19]*** CUTSNS_PIN = 0 [12:04:19]*** Brake cut motor [12:04:20]Read from MH i2c: 01 [12:04:20]MH_I2C_Read... [12:04:20]*** Stop cut motor [12:04:20]*** Cut end [12:04:20]Read from MH i2c: 01 07 00 [12:04:20]MH_I2C_Read... [12:04:20]Read from MH i2c: 01 07 00 B4 7E 00 00 00 00 00 FF 0F 47 [12:04:20]process_action close_receipt done [12:04:20]requested_data is exist [12:04:20]produce_requested_data [12:04:20]requested_item fm.sn is exist - process it [12:04:20]wFMCommunicate request_size=4 [12:04:20]MH_SAM_APDU [12:04:20]CAPDU: 80 11 00 00 [12:04:20]Write to MH i2c: E2 08 00 B5 7E 80 11 00 00 00 00 00 00 AD [12:04:20]Write i2c OK [12:04:20]MH_I2C_Read... [12:04:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:04:20]Read from MH i2c: E2 [12:04:20]MH_I2C_Read... [12:04:20]Read from MH i2c: E2 17 00 [12:04:20]MH_I2C_Read... [12:04:20]Read from MH i2c: E2 17 00 B5 7E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 FB [12:04: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:04:20]wFMCommunicate OK [12:04:20]requested_item fd.num is exist - process it [12:04:20]SAM_PROTO_GetFieldsCounters [12:04:20]wFMCommunicate request_size=4 [12:04:20]MH_SAM_APDU [12:04:20]CAPDU: 80 13 00 00 [12:04:20]Write to MH i2c: E2 08 00 B6 7E 80 13 00 00 00 00 00 00 B0 [12:04:20]Write i2c OK [12:04:20]MH_I2C_Read... [12:04:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:04:20]Read from MH i2c: E2 [12:04:20]MH_I2C_Read... [12:04:20]Read from MH i2c: E2 62 00 [12:04:20]MH_I2C_Read... [12:04:20]Read from MH i2c: E2 62 00 B6 7E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 58 [12:04: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 6E 76 00 00 0E 04 04 00 72 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:04:20]wFMCommunicate OK [12:04:20]SAM_PROTO_GetFieldsCounters done [12:04:20]requested_item shift.num is exist - process it [12:04:20]requested_item shift.opened is exist - process it [12:04:20]req_shift_opened [12:04:20]FM_GetShiftState [12:04:20]SAM_PROTO_GetShiftState [12:04:20]wFMCommunicate request_size=4 [12:04:20]MH_SAM_APDU [12:04:20]CAPDU: 80 13 01 00 [12:04:20]Write to MH i2c: E2 08 00 B7 7E 80 13 01 00 00 00 00 00 B2 [12:04:20]Write i2c OK [12:04:20]MH_I2C_Read... [12:04:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:04:20]Read from MH i2c: E2 [12:04:20]MH_I2C_Read... [12:04:20]Read from MH i2c: E2 0E 00 [12:04:20]MH_I2C_Read... [12:04:20]Read from MH i2c: E2 0E 00 B7 7E 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 98 [12:04:20]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [12:04:20]wFMCommunicate OK [12:04:20]SAM_PROTO_GetShiftState done [12:04:20]FM_GetShiftState done [12:04:20]req_shift_opened done [12:04:20]requested_item shift.open_date is exist - process it [12:04:20]req_shift_open_date [12:04:20]req_shift_open_date done [12:04:20]produce_requested_data done [12:04:20]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30318,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [12:04:20]process_action_free close_receipt [12:04:20]json_value_free [12:04:20]json_value_free done [12:04:20]process_json_proto returns [12:04:20]Send response to host [12:04:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30318,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [12:04:20]free response buf [12:04:20]execute_script done [12:04:20]execute_script returns [12:04:20]free content buf [12:04:20]Sock 9.Close socket [12:04:20]Sock 9.Thread stoped [12:04:24]OFD Sender: No OFD packet to send [12:04:29]OFD Sender: No OFD packet to send [12:04:34]OFD Sender: No OFD packet to send [12:04:39]OFD Sender: No OFD packet to send [12:04:44]OFD Sender: No OFD packet to send [12:04:49]OFD Sender: No OFD packet to send [12:04:54]OFD Sender: No OFD packet to send [12:04:54]accept exits with 7 [12:04:54]New connection [12:04:54]New thread 3067370852 created [12:04:54]Thread 3067514212 joined [12:04:54]Waiting for new connection... [12:04:54] Sock 7.Parse request [12:04:54]Sock 7.Check first char [12:04:54]Sock 7.First char is OK [12:04:54]request: POST /json_proto HTTP/1.0 [12:04:54]Method: POST [12:04:54]URL: /json_proto [12:04:54]Method is POST - this is cgi request [12:04:54]url: /json_proto [12:04:54]query_string will be loaded in cgi processing [12:04:54]execute_cgi json_proto POST (null) [12:04:54]execute_cgi path=json_proto method=POST [12:04:54]POST find Content-Length [12:04:54]Host: 172.17.51.3:8080 [12:04:54]Content-Length: 682 [12:04:54]Content-Type: application/json [12:04:54] [12:04:54]POST finish read [12:04:54]Found Content-Length = 682 [12:04:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342711", "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:04:54]execute_script... [12:04: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)342711", "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:04:54]POST & json_proto [12:04:54]process_json_proto [12:04:54]json parsed OK: [12:04:54]protocol is kg_v1.0 [12:04:54]action value=close_receipt [12:04:54]process_action close_receipt [12:04:54]cmd_close_receipt [12:04:54]MH_GetDate [12:04:54]Write to MH i2c: F0 00 00 B8 7E 25 [12:04:54]Write i2c OK [12:04:54]MH_I2C_Read... [12:04:54]Read from MH i2c: F0 [12:04:54]MH_I2C_Read... [12:04:54]Read from MH i2c: F0 09 00 [12:04:54]MH_I2C_Read... [12:04:54]Read from MH i2c: F0 09 00 B8 7E 00 EF F1 14 67 04 C1 95 66 49 [12:04:54]GetLastDocTimeStamp 1729425865 [12:04:54]current date 1729425903 [12:04:54]FM_GetShiftState [12:04:54]SAM_PROTO_GetShiftState [12:04:54]wFMCommunicate request_size=4 [12:04:54]MH_SAM_APDU [12:04:54]CAPDU: 80 13 01 00 [12:04:54]Write to MH i2c: E2 08 00 B9 7E 80 13 01 00 00 00 00 00 B4 [12:04:54]Write i2c OK [12:04:54]MH_I2C_Read... [12:04:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:04:54]Read from MH i2c: E2 [12:04:54]MH_I2C_Read... [12:04:54]Read from MH i2c: E2 0E 00 [12:04:54]MH_I2C_Read... [12:04:54]Read from MH i2c: E2 0E 00 B9 7E 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 9A [12:04:54]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [12:04:54]wFMCommunicate OK [12:04:54]SAM_PROTO_GetShiftState done [12:04:54]FM_GetShiftState done [12:04:54]opened in 1729384718 [12:04:54]opened+sec_in_day 1729471118 [12:04:54]quantity*price = 100015 [12:04:54]sum+1 = 100017 [12:04:54]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 СНО: Общий режим Чек 101 20.10.2024 12:05 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30319 ФПД: 232321180817617 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T120504&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30319&fm=232321180817617&tin=02508201610067®Number=0000000000186857&sum=100000 [12:04:55]StoreToDocumentArchive [12:04:55]shift 114 fd 30319 [12:04:55]save to /storage/0114/doc_00030319 [12:04:55]save last doc name /storage/0114/doc_00030319 to /storage/kkm_last_doc_name [12:04:55]save OK [12:04:55]Clear old archive folders... [12:04:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:04:55]tlvbuf is 00B0F480 [12:04:55]SAM_PROTO_ClearQueue [12:04:55]wFMCommunicate request_size=4 [12:04:55]MH_SAM_APDU [12:04:55]CAPDU: 80 09 00 00 [12:04:55]Write to MH i2c: E2 08 00 C6 7E 80 09 00 00 00 00 00 00 B6 [12:04:55]Write i2c OK [12:04:55]MH_I2C_Read... [12:04:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:04:55]Read from MH i2c: E2 [12:04:55]MH_I2C_Read... [12:04:55]Read from MH i2c: E2 03 00 [12:04:55]MH_I2C_Read... [12:04:55]Read from MH i2c: E2 03 00 C6 7E 00 90 00 B8 [12:04:55]RAPDU: 90 00 [12:04:55]wFMCommunicate OK [12:04:55]SAM_PROTO_ClearQueue done [12:04:55]KKMCreateOFDPacket [12:04:55]OFDProtocolAddRootSTLVToBuf [12:04:55]FM_MakeSignedData [12:04:55]FM_MakeSignedData [12:04:55]SAM_PROTO_SignData [12:04:55]wFMCommunicate request_size=4 [12:04:55]MH_SAM_APDU [12:04:55]CAPDU: 80 0D 01 02 [12:04:55]Write to MH i2c: E2 08 00 C7 7E 80 0D 01 02 00 00 00 00 BE [12:04:55]Write i2c OK [12:04:55]MH_I2C_Read... [12:04:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:04:56]Read from MH i2c: E2 [12:04:56]MH_I2C_Read... [12:04:56]Read from MH i2c: E2 03 00 [12:04:56]MH_I2C_Read... [12:04:56]Read from MH i2c: E2 03 00 C7 7E 00 90 00 B9 [12:04:56]RAPDU: 90 00 [12:04:56]wFMCommunicate OK [12:04:56]wFMCommunicate request_size=255 [12:04:56]MH_SAM_APDU [12:04: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 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 65 00 00 00 F4 03 04 00 F0 F1 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 D3 [12:04:56]Write to MH i2c: E2 02 01 C8 7E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 65 00 00 00 F4 03 04 00 F0 F1 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 D3 00 00 34 [12:04:56]Write i2c OK [12:04:56]MH_I2C_Read... [12:04:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:04:56]Read from MH i2c: E2 [12:04:56]MH_I2C_Read... [12:04:56]Read from MH i2c: E2 03 00 [12:04:56]MH_I2C_Read... [12:04:56]Read from MH i2c: E2 03 00 C8 7E 00 90 00 BA [12:04:56]RAPDU: 90 00 [12:04:56]wFMCommunicate OK [12:04:56]wFMCommunicate request_size=10 [12:04:56]MH_SAM_APDU [12:04:56]CAPDU: 80 0D 02 02 05 4B 7D 74 D8 D1 [12:04:56]Write to MH i2c: E2 0D 00 C9 7E 80 0D 02 02 05 00 4B 7D 74 D8 D1 00 00 B0 [12:04:56]Write i2c OK [12:04:56]MH_I2C_Read... [12:04:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:04:56]Read from MH i2c: E2 [12:04:56]MH_I2C_Read... [12:04:56]Read from MH i2c: E2 03 00 [12:04:56]MH_I2C_Read... [12:04:56]Read from MH i2c: E2 03 00 C9 7E 00 90 00 BB [12:04:56]RAPDU: 90 00 [12:04:56]wFMCommunicate OK [12:04:56]wFMCommunicate request_size=4 [12:04:56]MH_SAM_APDU [12:04:56]CAPDU: 80 0D 03 02 [12:04:56]Write to MH i2c: E2 08 00 CA 7E 80 0D 03 02 00 00 00 00 C3 [12:04:56]Write i2c OK [12:04:56]MH_I2C_Read... [12:04:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:04:56]Read from MH i2c: E2 [12:04:56]MH_I2C_Read... [12:04:56]Read from MH i2c: E2 0B 00 [12:04:56]MH_I2C_Read... [12:04:56]Read from MH i2c: E2 0B 00 CA 7E 00 8C 67 09 17 D5 F6 BB F8 90 00 55 [12:04:56]RAPDU: 8C 67 09 17 D5 F6 BB F8 90 00 [12:04:56]wFMCommunicate OK [12:04:56]SAM_PROTO_SignData done [12:04:56]FM_MakeSignedData done [12:04:56]CreateOFDProtocolMessage [12:04:56]wFMCommunicate request_size=4 [12:04:56]MH_SAM_APDU [12:04:56]CAPDU: 80 11 00 00 [12:04:56]Write to MH i2c: E2 08 00 CB 7E 80 11 00 00 00 00 00 00 C3 [12:04:56]Write i2c OK [12:04:56]MH_I2C_Read... [12:04:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:04:56]Read from MH i2c: E2 [12:04:56]MH_I2C_Read... [12:04:56]Read from MH i2c: E2 17 00 [12:04:56]MH_I2C_Read... [12:04:56]Read from MH i2c: E2 17 00 CB 7E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 11 [12:04: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:04:56]wFMCommunicate OK [12:04:56]CreateOFDProtocolMessage done [12:04:56]OFDSenderStorePacket 30319 [12:04:56]StoreOFDPacket docnum=30319 [12:04: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 A4 20 07 01 45 96 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 65 00 00 00 F4 03 04 00 F0 F1 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 D3 4B 7D 74 D8 D1 8C 67 09 17 D5 F6 BB F8 [12:04:56]CheckFolder [12:04:56]dirname=/storage/ofd_packets [12:04:56]CheckFolder done [12:04:56]ProducePacketName [12:04:56]name=ofd_packets/00030319 [12:04:56]NVStorageSaveData ofd_packets/00030319 [12:04:56]File name is /storage/ofd_packets/00030319 [12:04:56]Write 301 bytes [12:04:56]NVStorageSaveData done [12:04:56]OFDSenderStorePacket done [12:04:56]KKMCreateOFDPacket done [12:04:56]NVStorageSaveData kkm_last_timestamp [12:04:56]File name is /storage/kkm_last_timestamp [12:04:56]Write 4 bytes [12:04:56]NVStorageSaveData done [12:04:56]ExternCall_PrintAddStr [12:04:56]wPrintStart [12:04:56]Write to MH i2c: 01 00 00 CC 7E 4A [12:04:56]Write i2c OK [12:04:56]MH_I2C_Read... [12:04:56]Read from MH i2c: 01 [12:04:56]MH_I2C_Read... [12:04:56]Read from MH i2c: 01 07 00 [12:04:56]MH_I2C_Read... [12:04:56]Read from MH i2c: 01 07 00 CC 7E 00 00 00 00 00 FF 0F 5F [12:04:56]RasterBufferAndPrint [12:04:56]line Счет N : (1)342711 [12:04:56]line ИНН: 02508201610067 [12:04:56]line Контрольно-Кассовый Чек [12:04:56]line ПРОДАЖА [12:04:56]line ТРК (МРК, ГНК) : 43 [12:04:56]line Товар: 2710124130 [12:04:56]line Аи-92-К-2 [12:04:56]line 14.950 * 66.90 [12:04:56]line = 1000.16 [12:04:56]line НДС 12% НСП 1% [12:04:56]line > о реализуемом товаре [12:04:56]line ОКРУГЛЕНИЕ: -0.16 [12:04:56]line ИТОГО: 1000.00 [12:04:56]line Внесено: 1000.00 [12:04:56]line СДАЧА: 0.00 [12:04:56]line НСП 1% : 8.85 [12:04:56]line НДС 12% : 106.21 [12:04:56]line Наличными: 1000.00 [12:04:56]line Безнал.: 0.00 [12:04:56]line Место: АЗС № 78 "Партнер Нефть" [12:04:56]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [12:04:56]line СНО: Общий режим [12:04:56]line Чек 101 20.10.2024 12:05 [12:04:56]line Смена: 114 ФФД: 1.0 [12:04:56]line ЗНМ: 0300000137 [12:04:56]line РНМ: 0000000000186857 [12:04:56]line Версия ККМ: v1.0 [12:04:56]line ФМ: 0000000002094219 [12:04:56]line ФД: 30319 [12:04:56]line ФПД: 232321180817617 [12:04:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T120504&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30319&fm=232321180817617&tin=02508201610067®Number=0000000000186857&sum=100000 [12:04:56]OFD Sender: Processing packet 30319 [packets to send 10, broken 9] [12:04:56]ProducePacketName [12:04:56]name=ofd_packets/00030319 [12:04:56]OFD Sender: To server: pG, [12:04:56]CommunicateWithHost lk.salyk.kg:30040 [12:04:56]ConnectInit lk.salyk.kg [12:04:56]written 0, free lines is 4095 [12:04:56]Connected sock=10 [12:04: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 A4 20 07 01 45 96 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 65 00 00 00 F4 03 04 00 F0 F1 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 D3 4B 7D 74 D8 D1 8C 67 09 17 D5 F6 BB F8 [12:04: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 9E A2 47 00 90 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 6F 76 00 00 F4 03 04 00 74 9C 14 67 B6 04 01 00 00 5E A3 C3 BD F0 B4 E7 A0 [12:04:57]CommunicateWithHost err = 0 [12:04:57]CheckOFDResponse [12:04:57]1017 (14) - 77093643461234 [12:04:57]1041 (16) - 0000000002094219 [12:04:57]1040 (4) - 30319 [12:04:57]1012 (4) - 20.10.2024 06:00 [12:04:57]1206 (1) - 0 [12:04:57]OFD Sender: Remove packet 30319 [12:04:57]ProducePacketName [12:04:57]name=ofd_packets/00030319 [12:04:57]NVStorageDeleteData [12:04:57]Write to MH i2c: 01 00 00 F7 7E 75 [12:04:57]Write i2c OK [12:04:57]MH_I2C_Read... [12:04:57]Read from MH i2c: 01 [12:04:57]MH_I2C_Read... [12:04:57]Read from MH i2c: 01 07 00 [12:04:57]MH_I2C_Read... [12:04:57]Read from MH i2c: 01 07 00 F7 7E 00 00 00 00 00 E6 0C 6E [12:04:57]RasterBufferAndPrint [12:04:57]line [12:04:57]line [12:04:57]line [12:04:57]line [12:04:57]line [12:04:57]written 0, free lines is 3309 [12:04:57]MH_Cut [12:04:57]Write to MH i2c: D1 01 00 FE 7E 01 4E [12:04:57]Write i2c OK [12:04:57]MH_I2C_Read... [12:04:57]Read from MH i2c: D1 [12:04:57]MH_I2C_Read... [12:04:57]Read from MH i2c: D1 01 00 [12:04:57]MH_I2C_Read... [12:04:57]Read from MH i2c: D1 01 00 FE 7E 00 4D [12:04:57]Write to MH i2c: 01 00 00 FF 7E 7D [12:04:57]Write i2c OK [12:04:57]MH_I2C_Read... [12:04:57]OFD Sender: No OFD packet to send [12:04:57]*** Cut start [12:04:57]*** Partial cut [12:04:57]*** CUTSNS_PIN = 1 [12:04:57]*** CUTSNS_PIN = 0 [12:04:58]*** Brake cut motor [12:04:58]Read from MH i2c: 01 [12:04:58]MH_I2C_Read... [12:04:58]*** Stop cut motor [12:04:58]*** Cut end [12:04:58]Read from MH i2c: 01 07 00 [12:04:58]MH_I2C_Read... [12:04:58]Read from MH i2c: 01 07 00 FF 7E 00 00 00 00 00 FF 0F 92 [12:04:58]process_action close_receipt done [12:04:58]requested_data is exist [12:04:58]produce_requested_data [12:04:58]requested_item fm.sn is exist - process it [12:04:58]wFMCommunicate request_size=4 [12:04:58]MH_SAM_APDU [12:04:58]CAPDU: 80 11 00 00 [12:04:58]Write to MH i2c: E2 08 00 00 7F 80 11 00 00 00 00 00 00 F9 [12:04:58]Write i2c OK [12:04:58]MH_I2C_Read... [12:04:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:04:58]Read from MH i2c: E2 [12:04:58]MH_I2C_Read... [12:04:58]Read from MH i2c: E2 17 00 [12:04:58]MH_I2C_Read... [12:04:58]Read from MH i2c: E2 17 00 00 7F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 47 [12:04: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:04:58]wFMCommunicate OK [12:04:58]requested_item fd.num is exist - process it [12:04:58]SAM_PROTO_GetFieldsCounters [12:04:58]wFMCommunicate request_size=4 [12:04:58]MH_SAM_APDU [12:04:58]CAPDU: 80 13 00 00 [12:04:58]Write to MH i2c: E2 08 00 01 7F 80 13 00 00 00 00 00 00 FC [12:04:58]Write i2c OK [12:04:58]MH_I2C_Read... [12:04:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:04:58]Read from MH i2c: E2 [12:04:58]MH_I2C_Read... [12:04:58]Read from MH i2c: E2 62 00 [12:04:58]MH_I2C_Read... [12:04:58]Read from MH i2c: E2 62 00 01 7F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 A8 [12:04: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 6F 76 00 00 0E 04 04 00 72 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:04:58]wFMCommunicate OK [12:04:58]SAM_PROTO_GetFieldsCounters done [12:04:58]requested_item shift.num is exist - process it [12:04:58]requested_item shift.opened is exist - process it [12:04:58]req_shift_opened [12:04:58]FM_GetShiftState [12:04:58]SAM_PROTO_GetShiftState [12:04:58]wFMCommunicate request_size=4 [12:04:58]MH_SAM_APDU [12:04:58]CAPDU: 80 13 01 00 [12:04:58]Write to MH i2c: E2 08 00 02 7F 80 13 01 00 00 00 00 00 FE [12:04:58]Write i2c OK [12:04:58]MH_I2C_Read... [12:04:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:04:58]Read from MH i2c: E2 [12:04:58]MH_I2C_Read... [12:04:58]Read from MH i2c: E2 0E 00 [12:04:58]MH_I2C_Read... [12:04:58]Read from MH i2c: E2 0E 00 02 7F 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 E4 [12:04:58]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [12:04:58]wFMCommunicate OK [12:04:58]SAM_PROTO_GetShiftState done [12:04:58]FM_GetShiftState done [12:04:58]req_shift_opened done [12:04:58]requested_item shift.open_date is exist - process it [12:04:58]req_shift_open_date [12:04:58]req_shift_open_date done [12:04:58]produce_requested_data done [12:04:58]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30319,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [12:04:58]process_action_free close_receipt [12:04:58]json_value_free [12:04:58]json_value_free done [12:04:58]process_json_proto returns [12:04:58]Send response to host [12:04:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30319,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [12:04:58]free response buf [12:04:58]execute_script done [12:04:58]execute_script returns [12:04:58]free content buf [12:04:58]Sock 7.Close socket [12:04:58]Sock 7.Thread stoped [12:05:02]OFD Sender: No OFD packet to send [12:05:07]OFD Sender: No OFD packet to send [12:05:12]OFD Sender: No OFD packet to send [12:05:17]OFD Sender: No OFD packet to send [12:05:22]OFD Sender: No OFD packet to send [12:05:27]OFD Sender: No OFD packet to send [12:05:32]OFD Sender: No OFD packet to send [12:05:37]OFD Sender: No OFD packet to send [12:05:42]OFD Sender: No OFD packet to send [12:05:47]OFD Sender: No OFD packet to send [12:05:52]OFD Sender: No OFD packet to send [12:05:57]OFD Sender: No OFD packet to send [12:06:02]OFD Sender: No OFD packet to send [12:06:07]OFD Sender: No OFD packet to send [12:06:12]OFD Sender: No OFD packet to send [12:06:17]OFD Sender: No OFD packet to send [12:06:22]OFD Sender: No OFD packet to send [12:06:27]OFD Sender: No OFD packet to send [12:06:32]OFD Sender: No OFD packet to send [12:06:37]OFD Sender: No OFD packet to send [12:06:42]OFD Sender: No OFD packet to send [12:06:47]OFD Sender: No OFD packet to send [12:06:52]OFD Sender: No OFD packet to send [12:06:57]OFD Sender: No OFD packet to send [12:07:02]OFD Sender: No OFD packet to send [12:07:07]OFD Sender: No OFD packet to send [12:07:12]OFD Sender: No OFD packet to send [12:07:17]OFD Sender: No OFD packet to send [12:07:22]OFD Sender: No OFD packet to send [12:07:27]OFD Sender: No OFD packet to send [12:07:32]OFD Sender: No OFD packet to send [12:07:37]OFD Sender: No OFD packet to send [12:07:42]OFD Sender: No OFD packet to send [12:07:47]OFD Sender: No OFD packet to send [12:07:52]OFD Sender: No OFD packet to send [12:07:57]OFD Sender: No OFD packet to send [12:08:02]OFD Sender: No OFD packet to send [12:08:04]accept exits with 9 [12:08:04]New connection [12:08:04]New thread 3067514212 created [12:08:04]Thread 3067370852 joined [12:08:04]Waiting for new connection... [12:08:04] Sock 9.Parse request [12:08:04]Sock 9.Check first char [12:08:04]Sock 9.First char is OK [12:08:04]request: POST /json_proto HTTP/1.0 [12:08:04]Method: POST [12:08:04]URL: /json_proto [12:08:04]Method is POST - this is cgi request [12:08:04]url: /json_proto [12:08:04]query_string will be loaded in cgi processing [12:08:04]execute_cgi json_proto POST (null) [12:08:04]execute_cgi path=json_proto method=POST [12:08:04]POST find Content-Length [12:08:04]Host: 172.17.51.3:8080 [12:08:04]Content-Length: 682 [12:08:04]Content-Type: application/json [12:08:04] [12:08:04]POST finish read [12:08:04]Found Content-Length = 682 [12:08:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342712", "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" ] } } [12:08:04]execute_script... [12:08: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)342712", "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" ] } } [12:08:04]POST & json_proto [12:08:04]process_json_proto [12:08:04]json parsed OK: [12:08:04]protocol is kg_v1.0 [12:08:04]action value=close_receipt [12:08:04]process_action close_receipt [12:08:04]cmd_close_receipt [12:08:04]MH_GetDate [12:08:04]Write to MH i2c: F0 00 00 03 7F 71 [12:08:04]Write i2c OK [12:08:04]MH_I2C_Read... [12:08:04]Read from MH i2c: F0 [12:08:04]MH_I2C_Read... [12:08:04]Read from MH i2c: F0 09 00 [12:08:04]MH_I2C_Read... [12:08:04]Read from MH i2c: F0 09 00 03 7F 00 AD F2 14 67 04 C1 95 66 54 [12:08:04]GetLastDocTimeStamp 1729425904 [12:08:04]current date 1729426093 [12:08:04]FM_GetShiftState [12:08:04]SAM_PROTO_GetShiftState [12:08:04]wFMCommunicate request_size=4 [12:08:04]MH_SAM_APDU [12:08:04]CAPDU: 80 13 01 00 [12:08:04]Write to MH i2c: E2 08 00 04 7F 80 13 01 00 00 00 00 00 00 [12:08:04]Write i2c OK [12:08:04]MH_I2C_Read... [12:08:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:08:04]Read from MH i2c: E2 [12:08:04]MH_I2C_Read... [12:08:04]Read from MH i2c: E2 0E 00 [12:08:04]MH_I2C_Read... [12:08:04]Read from MH i2c: E2 0E 00 04 7F 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 E6 [12:08:04]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [12:08:04]wFMCommunicate OK [12:08:04]SAM_PROTO_GetShiftState done [12:08:04]FM_GetShiftState done [12:08:04]opened in 1729384718 [12:08:04]opened+sec_in_day 1729471118 [12:08:04]quantity*price = 100021 [12:08:04]sum+1 = 100023 [12:08:04]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 СНО: Общий режим Чек 102 20.10.2024 12:08 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30320 ФПД: 46357899506819 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T120813&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30320&fm=46357899506819&tin=02508201610067®Number=0000000000186857&sum=100000 [12:08:05]StoreToDocumentArchive [12:08:05]shift 114 fd 30320 [12:08:05]save to /storage/0114/doc_00030320 [12:08:05]save last doc name /storage/0114/doc_00030320 to /storage/kkm_last_doc_name [12:08:05]save OK [12:08:05]Clear old archive folders... [12:08:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:08:05]tlvbuf is 00B0CF30 [12:08:05]SAM_PROTO_ClearQueue [12:08:05]wFMCommunicate request_size=4 [12:08:05]MH_SAM_APDU [12:08:05]CAPDU: 80 09 00 00 [12:08:05]Write to MH i2c: E2 08 00 11 7F 80 09 00 00 00 00 00 00 02 [12:08:05]Write i2c OK [12:08:05]MH_I2C_Read... [12:08:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:08:05]Read from MH i2c: E2 [12:08:05]MH_I2C_Read... [12:08:05]Read from MH i2c: E2 03 00 [12:08:05]MH_I2C_Read... [12:08:05]Read from MH i2c: E2 03 00 11 7F 00 90 00 04 [12:08:05]RAPDU: 90 00 [12:08:05]wFMCommunicate OK [12:08:05]SAM_PROTO_ClearQueue done [12:08:05]KKMCreateOFDPacket [12:08:05]OFDProtocolAddRootSTLVToBuf [12:08:05]FM_MakeSignedData [12:08:05]FM_MakeSignedData [12:08:05]SAM_PROTO_SignData [12:08:05]wFMCommunicate request_size=4 [12:08:05]MH_SAM_APDU [12:08:05]CAPDU: 80 0D 01 02 [12:08:05]Write to MH i2c: E2 08 00 12 7F 80 0D 01 02 00 00 00 00 0A [12:08:05]Write i2c OK [12:08:05]MH_I2C_Read... [12:08:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:08:05]Read from MH i2c: E2 [12:08:05]MH_I2C_Read... [12:08:05]Read from MH i2c: E2 03 00 [12:08:05]MH_I2C_Read... [12:08:05]Read from MH i2c: E2 03 00 12 7F 00 90 00 05 [12:08:05]RAPDU: 90 00 [12:08:05]wFMCommunicate OK [12:08:05]wFMCommunicate request_size=255 [12:08:05]MH_SAM_APDU [12:08:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 AD F2 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 2A [12:08:05]Write to MH i2c: E2 02 01 13 7F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 66 00 00 00 F4 03 04 00 AD F2 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 2A 00 00 BB [12:08:05]Write i2c OK [12:08:05]MH_I2C_Read... [12:08:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:08:05]Read from MH i2c: E2 [12:08:05]MH_I2C_Read... [12:08:05]Read from MH i2c: E2 03 00 [12:08:05]MH_I2C_Read... [12:08:05]Read from MH i2c: E2 03 00 13 7F 00 90 00 06 [12:08:05]RAPDU: 90 00 [12:08:05]wFMCommunicate OK [12:08:05]wFMCommunicate request_size=10 [12:08:05]MH_SAM_APDU [12:08:05]CAPDU: 80 0D 02 02 05 29 8A 21 F4 83 [12:08:05]Write to MH i2c: E2 0D 00 14 7F 80 0D 02 02 05 00 29 8A 21 F4 83 00 00 62 [12:08:05]Write i2c OK [12:08:05]MH_I2C_Read... [12:08:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:08:05]Read from MH i2c: E2 [12:08:05]MH_I2C_Read... [12:08:05]Read from MH i2c: E2 03 00 [12:08:05]MH_I2C_Read... [12:08:05]Read from MH i2c: E2 03 00 14 7F 00 90 00 07 [12:08:05]RAPDU: 90 00 [12:08:05]wFMCommunicate OK [12:08:05]wFMCommunicate request_size=4 [12:08:05]MH_SAM_APDU [12:08:05]CAPDU: 80 0D 03 02 [12:08:05]Write to MH i2c: E2 08 00 15 7F 80 0D 03 02 00 00 00 00 0F [12:08:05]Write i2c OK [12:08:05]MH_I2C_Read... [12:08:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:08:05]Read from MH i2c: E2 [12:08:05]MH_I2C_Read... [12:08:05]Read from MH i2c: E2 0B 00 [12:08:05]MH_I2C_Read... [12:08:05]Read from MH i2c: E2 0B 00 15 7F 00 34 CA 49 74 88 1A 8C F8 90 00 F1 [12:08:05]RAPDU: 34 CA 49 74 88 1A 8C F8 90 00 [12:08:05]wFMCommunicate OK [12:08:05]SAM_PROTO_SignData done [12:08:05]FM_MakeSignedData done [12:08:05]CreateOFDProtocolMessage [12:08:05]wFMCommunicate request_size=4 [12:08:05]MH_SAM_APDU [12:08:05]CAPDU: 80 11 00 00 [12:08:05]Write to MH i2c: E2 08 00 16 7F 80 11 00 00 00 00 00 00 0F [12:08:05]Write i2c OK [12:08:05]MH_I2C_Read... [12:08:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:08:05]Read from MH i2c: E2 [12:08:05]MH_I2C_Read... [12:08:05]Read from MH i2c: E2 17 00 [12:08:05]MH_I2C_Read... [12:08:05]Read from MH i2c: E2 17 00 16 7F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 5D [12:08:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [12:08:05]wFMCommunicate OK [12:08:05]CreateOFDProtocolMessage done [12:08:05]OFDSenderStorePacket 30320 [12:08:05]StoreOFDPacket docnum=30320 [12:08: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 3F 1D 07 01 E2 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 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 66 00 00 00 F4 03 04 00 AD F2 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 2A 29 8A 21 F4 83 34 CA 49 74 88 1A 8C F8 [12:08:05]CheckFolder [12:08:05]dirname=/storage/ofd_packets [12:08:05]CheckFolder done [12:08:05]ProducePacketName [12:08:05]name=ofd_packets/00030320 [12:08:05]NVStorageSaveData ofd_packets/00030320 [12:08:05]File name is /storage/ofd_packets/00030320 [12:08:05]Write 301 bytes [12:08:05]NVStorageSaveData done [12:08:05]OFDSenderStorePacket done [12:08:05]KKMCreateOFDPacket done [12:08:05]NVStorageSaveData kkm_last_timestamp [12:08:05]File name is /storage/kkm_last_timestamp [12:08:05]Write 4 bytes [12:08:05]NVStorageSaveData done [12:08:05]ExternCall_PrintAddStr [12:08:05]wPrintStart [12:08:05]Write to MH i2c: 01 00 00 17 7F 96 [12:08:05]Write i2c OK [12:08:05]MH_I2C_Read... [12:08:05]Read from MH i2c: 01 [12:08:05]MH_I2C_Read... [12:08:05]Read from MH i2c: 01 07 00 [12:08:05]MH_I2C_Read... [12:08:05]Read from MH i2c: 01 07 00 17 7F 00 00 00 00 00 FF 0F AB [12:08:05]RasterBufferAndPrint [12:08:05]line Счет N : (1)342712 [12:08:05]line ИНН: 02508201610067 [12:08:05]line Контрольно-Кассовый Чек [12:08:05]line ПРОДАЖА [12:08:05]line ТРК (МРК, ГНК) : 62 [12:08:05]line Товар: 2710124500 [12:08:05]line Аи-95-К-3 [12:08:05]line 13.480 * 74.20 [12:08:05]line = 1000.22 [12:08:05]line НДС 12% НСП 1% [12:08:05]line > о реализуемом товаре [12:08:05]line ОКРУГЛЕНИЕ: -0.22 [12:08:05]line ИТОГО: 1000.00 [12:08:05]line Внесено: 1000.00 [12:08:05]line СДАЧА: 0.00 [12:08:05]line НСП 1% : 8.85 [12:08:05]line НДС 12% : 106.22 [12:08:05]line Наличными: 1000.00 [12:08:05]line Безнал.: 0.00 [12:08:05]line Место: АЗС № 78 "Партнер Нефть" [12:08:05]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [12:08:05]line СНО: Общий режим [12:08:05]line Чек 102 20.10.2024 12:08 [12:08:05]line Смена: 114 ФФД: 1.0 [12:08:05]line ЗНМ: 0300000137 [12:08:05]line РНМ: 0000000000186857 [12:08:05]line Версия ККМ: v1.0 [12:08:05]line ФМ: 0000000002094219 [12:08:05]line ФД: 30320 [12:08:05]line ФПД: 46357899506819 [12:08:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T120813&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30320&fm=46357899506819&tin=02508201610067®Number=0000000000186857&sum=100000 [12:08:06]OFD Sender: Processing packet 30320 [packets to send 10, broken 9] [12:08:06]ProducePacketName [12:08:06]name=ofd_packets/00030320 [12:08:06]OFD Sender: To server: pG, [12:08:06]CommunicateWithHost lk.salyk.kg:30040 [12:08:06]ConnectInit lk.salyk.kg [12:08:06]written 0, free lines is 4095 [12:08:06]Connected sock=10 [12:08: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 3F 1D 07 01 E2 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 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 66 00 00 00 F4 03 04 00 AD F2 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 2A 29 8A 21 F4 83 34 CA 49 74 88 1A 8C F8 [12:08: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 E6 3D 47 00 0C 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 70 76 00 00 F4 03 04 00 31 9D 14 67 B6 04 01 00 00 B6 B3 F3 D5 E4 E9 CD F9 [12:08:06]CommunicateWithHost err = 0 [12:08:06]CheckOFDResponse [12:08:06]1017 (14) - 77093643461234 [12:08:06]1041 (16) - 0000000002094219 [12:08:06]1040 (4) - 30320 [12:08:06]1012 (4) - 20.10.2024 06:03 [12:08:06]1206 (1) - 0 [12:08:06]OFD Sender: Remove packet 30320 [12:08:06]ProducePacketName [12:08:06]name=ofd_packets/00030320 [12:08:06]NVStorageDeleteData [12:08:06]Write to MH i2c: 01 00 00 42 7F C1 [12:08:06]Write i2c OK [12:08:06]MH_I2C_Read... [12:08:06]Read from MH i2c: 01 [12:08:06]MH_I2C_Read... [12:08:06]Read from MH i2c: 01 07 00 [12:08:06]MH_I2C_Read... [12:08:06]Read from MH i2c: 01 07 00 42 7F 00 00 00 00 00 ED 0C C1 [12:08:06]RasterBufferAndPrint [12:08:06]line [12:08:06]line [12:08:06]line [12:08:06]line [12:08:06]line [12:08:06]written 0, free lines is 3318 [12:08:06]MH_Cut [12:08:06]Write to MH i2c: D1 01 00 49 7F 01 9A [12:08:06]Write i2c OK [12:08:06]MH_I2C_Read... [12:08:06]Read from MH i2c: D1 [12:08:06]MH_I2C_Read... [12:08:06]Read from MH i2c: D1 01 00 [12:08:06]MH_I2C_Read... [12:08:06]Read from MH i2c: D1 01 00 49 7F 00 99 [12:08:06]Write to MH i2c: 01 00 00 4A 7F C9 [12:08:06]Write i2c OK [12:08:06]MH_I2C_Read... [12:08:06]OFD Sender: No OFD packet to send [12:08:07]*** Cut start [12:08:07]*** Partial cut [12:08:07]*** CUTSNS_PIN = 1 [12:08:07]*** CUTSNS_PIN = 0 [12:08:07]*** Brake cut motor [12:08:07]Read from MH i2c: 01 [12:08:07]MH_I2C_Read... [12:08:07]*** Stop cut motor [12:08:07]*** Cut end [12:08:07]Read from MH i2c: 01 07 00 [12:08:07]MH_I2C_Read... [12:08:07]Read from MH i2c: 01 07 00 4A 7F 00 00 00 00 00 FF 0F DE [12:08:07]process_action close_receipt done [12:08:07]requested_data is exist [12:08:07]produce_requested_data [12:08:07]requested_item fm.sn is exist - process it [12:08:07]wFMCommunicate request_size=4 [12:08:07]MH_SAM_APDU [12:08:07]CAPDU: 80 11 00 00 [12:08:07]Write to MH i2c: E2 08 00 4B 7F 80 11 00 00 00 00 00 00 44 [12:08:07]Write i2c OK [12:08:07]MH_I2C_Read... [12:08:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:08:07]Read from MH i2c: E2 [12:08:07]MH_I2C_Read... [12:08:07]Read from MH i2c: E2 17 00 [12:08:07]MH_I2C_Read... [12:08:07]Read from MH i2c: E2 17 00 4B 7F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 92 [12:08:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [12:08:07]wFMCommunicate OK [12:08:07]requested_item fd.num is exist - process it [12:08:07]SAM_PROTO_GetFieldsCounters [12:08:07]wFMCommunicate request_size=4 [12:08:07]MH_SAM_APDU [12:08:07]CAPDU: 80 13 00 00 [12:08:07]Write to MH i2c: E2 08 00 4C 7F 80 13 00 00 00 00 00 00 47 [12:08:07]Write i2c OK [12:08:07]MH_I2C_Read... [12:08:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:08:07]Read from MH i2c: E2 [12:08:07]MH_I2C_Read... [12:08:07]Read from MH i2c: E2 62 00 [12:08:07]MH_I2C_Read... [12:08:07]Read from MH i2c: E2 62 00 4C 7F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 F7 [12:08: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 70 76 00 00 0E 04 04 00 72 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:08:07]wFMCommunicate OK [12:08:07]SAM_PROTO_GetFieldsCounters done [12:08:07]requested_item shift.num is exist - process it [12:08:07]requested_item shift.opened is exist - process it [12:08:07]req_shift_opened [12:08:07]FM_GetShiftState [12:08:07]SAM_PROTO_GetShiftState [12:08:07]wFMCommunicate request_size=4 [12:08:07]MH_SAM_APDU [12:08:07]CAPDU: 80 13 01 00 [12:08:07]Write to MH i2c: E2 08 00 4D 7F 80 13 01 00 00 00 00 00 49 [12:08:07]Write i2c OK [12:08:07]MH_I2C_Read... [12:08:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:08:08]Read from MH i2c: E2 [12:08:08]MH_I2C_Read... [12:08:08]Read from MH i2c: E2 0E 00 [12:08:08]MH_I2C_Read... [12:08:08]Read from MH i2c: E2 0E 00 4D 7F 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 2F [12:08:08]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [12:08:08]wFMCommunicate OK [12:08:08]SAM_PROTO_GetShiftState done [12:08:08]FM_GetShiftState done [12:08:08]req_shift_opened done [12:08:08]requested_item shift.open_date is exist - process it [12:08:08]req_shift_open_date [12:08:08]req_shift_open_date done [12:08:08]produce_requested_data done [12:08:08]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30320,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [12:08:08]process_action_free close_receipt [12:08:08]json_value_free [12:08:08]json_value_free done [12:08:08]process_json_proto returns [12:08:08]Send response to host [12:08:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30320,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [12:08:08]free response buf [12:08:08]execute_script done [12:08:08]execute_script returns [12:08:08]free content buf [12:08:08]Sock 9.Close socket [12:08:08]Sock 9.Thread stoped [12:08:11]OFD Sender: No OFD packet to send [12:08:16]OFD Sender: No OFD packet to send [12:08:21]OFD Sender: No OFD packet to send [12:08:26]OFD Sender: No OFD packet to send [12:08:31]OFD Sender: No OFD packet to send [12:08:36]OFD Sender: No OFD packet to send [12:08:41]OFD Sender: No OFD packet to send [12:08:46]OFD Sender: No OFD packet to send [12:08:51]OFD Sender: No OFD packet to send [12:08:56]OFD Sender: No OFD packet to send [12:09:01]OFD Sender: No OFD packet to send [12:09:06]OFD Sender: No OFD packet to send [12:09:11]OFD Sender: No OFD packet to send [12:09:16]OFD Sender: No OFD packet to send [12:09:21]OFD Sender: No OFD packet to send [12:09:26]OFD Sender: No OFD packet to send [12:09:31]OFD Sender: No OFD packet to send [12:09:36]OFD Sender: No OFD packet to send [12:09:41]OFD Sender: No OFD packet to send [12:09:46]OFD Sender: No OFD packet to send [12:09:51]OFD Sender: No OFD packet to send [12:09:56]OFD Sender: No OFD packet to send [12:10:01]OFD Sender: No OFD packet to send [12:10:06]OFD Sender: No OFD packet to send [12:10:11]OFD Sender: No OFD packet to send [12:10:16]OFD Sender: No OFD packet to send [12:10:21]OFD Sender: No OFD packet to send [12:10:26]OFD Sender: No OFD packet to send [12:10:31]OFD Sender: No OFD packet to send [12:10:36]OFD Sender: No OFD packet to send [12:10:41]OFD Sender: No OFD packet to send [12:10:46]OFD Sender: No OFD packet to send [12:10:51]OFD Sender: No OFD packet to send [12:10:56]OFD Sender: No OFD packet to send [12:11: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:57]OFD Sender: No OFD packet to send [12:13:02]OFD Sender: No OFD packet to send [12:13:07]OFD Sender: No OFD packet to send [12:13:12]OFD Sender: No OFD packet to send [12:13:17]OFD Sender: No OFD packet to send [12:13:22]OFD Sender: No OFD packet to send [12:13:27]OFD Sender: No OFD packet to send [12:13:32]OFD Sender: No OFD packet to send [12:13:37]OFD Sender: No OFD packet to send [12:13:42]OFD Sender: No OFD packet to send [12:13:47]OFD Sender: No OFD packet to send [12:13:52]OFD Sender: No OFD packet to send [12:13:57]OFD Sender: No OFD packet to send [12:14:02]OFD Sender: No OFD packet to send [12:14:07]OFD Sender: No OFD packet to send [12:14:12]OFD Sender: No OFD packet to send [12:14:17]OFD Sender: No OFD packet to send [12:14:19]accept exits with 7 [12:14:19]New connection [12:14:19]New thread 3067370852 created [12:14:19]Thread 3067514212 joined [12:14:19]Waiting for new connection... [12:14:19] Sock 7.Parse request [12:14:19]Sock 7.Check first char [12:14:19]Sock 7.First char is OK [12:14:19]request: POST /json_proto HTTP/1.0 [12:14:19]Method: POST [12:14:19]URL: /json_proto [12:14:19]Method is POST - this is cgi request [12:14:19]url: /json_proto [12:14:19]query_string will be loaded in cgi processing [12:14:19]execute_cgi json_proto POST (null) [12:14:19]execute_cgi path=json_proto method=POST [12:14:19]POST find Content-Length [12:14:19]Host: 172.17.51.3:8080 [12:14:19]Content-Length: 688 [12:14:19]Content-Type: application/json [12:14:19] [12:14:19]POST finish read [12:14:19]Found Content-Length = 688 [12:14:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342713", "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:14:19]execute_script... [12:14: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)342713", "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:14:19]POST & json_proto [12:14:19]process_json_proto [12:14:19]json parsed OK: [12:14:19]protocol is kg_v1.0 [12:14:19]action value=close_receipt [12:14:19]process_action close_receipt [12:14:19]cmd_close_receipt [12:14:19]MH_GetDate [12:14:19]Write to MH i2c: F0 00 00 4E 7F BC [12:14:19]Write i2c OK [12:14:19]MH_I2C_Read... [12:14:19]Read from MH i2c: F0 [12:14:19]MH_I2C_Read... [12:14:19]Read from MH i2c: F0 09 00 [12:14:19]MH_I2C_Read... [12:14:19]Read from MH i2c: F0 09 00 4E 7F 00 24 F4 14 67 04 C1 95 66 18 [12:14:19]GetLastDocTimeStamp 1729426093 [12:14:19]current date 1729426468 [12:14:19]FM_GetShiftState [12:14:19]SAM_PROTO_GetShiftState [12:14:19]wFMCommunicate request_size=4 [12:14:19]MH_SAM_APDU [12:14:19]CAPDU: 80 13 01 00 [12:14:19]Write to MH i2c: E2 08 00 4F 7F 80 13 01 00 00 00 00 00 4B [12:14:19]Write i2c OK [12:14:19]MH_I2C_Read... [12:14:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:14:19]Read from MH i2c: E2 [12:14:19]MH_I2C_Read... [12:14:19]Read from MH i2c: E2 0E 00 [12:14:19]MH_I2C_Read... [12:14:19]Read from MH i2c: E2 0E 00 4F 7F 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 31 [12:14:19]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [12:14:19]wFMCommunicate OK [12:14:19]SAM_PROTO_GetShiftState done [12:14:19]FM_GetShiftState done [12:14:19]opened in 1729384718 [12:14:19]opened+sec_in_day 1729471118 [12:14:19]quantity*price = 100051 [12:14:19]sum+1 = 100052 [12:14:19]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 СНО: Общий режим Чек 103 20.10.2024 12:14 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30321 ФПД: 26129723384742 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T121428&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30321&fm=26129723384742&tin=02508201610067®Number=0000000000186857&sum=100000 [12:14:20]StoreToDocumentArchive [12:14:20]shift 114 fd 30321 [12:14:20]save to /storage/0114/doc_00030321 [12:14:20]save last doc name /storage/0114/doc_00030321 to /storage/kkm_last_doc_name [12:14:20]save OK [12:14:20]Clear old archive folders... [12:14:20]ProcessDocumentItem done err = 0, tmpTLVsize=257 [12:14:20]tlvbuf is 00A79260 [12:14:20]SAM_PROTO_ClearQueue [12:14:20]wFMCommunicate request_size=4 [12:14:20]MH_SAM_APDU [12:14:20]CAPDU: 80 09 00 00 [12:14:20]Write to MH i2c: E2 08 00 5C 7F 80 09 00 00 00 00 00 00 4D [12:14:20]Write i2c OK [12:14:20]MH_I2C_Read... [12:14:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:14:20]Read from MH i2c: E2 [12:14:20]MH_I2C_Read... [12:14:20]Read from MH i2c: E2 03 00 [12:14:20]MH_I2C_Read... [12:14:20]Read from MH i2c: E2 03 00 5C 7F 00 90 00 4F [12:14:20]RAPDU: 90 00 [12:14:20]wFMCommunicate OK [12:14:20]SAM_PROTO_ClearQueue done [12:14:20]KKMCreateOFDPacket [12:14:20]OFDProtocolAddRootSTLVToBuf [12:14:20]FM_MakeSignedData [12:14:20]FM_MakeSignedData [12:14:20]SAM_PROTO_SignData [12:14:20]wFMCommunicate request_size=4 [12:14:20]MH_SAM_APDU [12:14:20]CAPDU: 80 0D 01 02 [12:14:20]Write to MH i2c: E2 08 00 5D 7F 80 0D 01 02 00 00 00 00 55 [12:14:20]Write i2c OK [12:14:20]MH_I2C_Read... [12:14:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:14:20]Read from MH i2c: E2 [12:14:20]MH_I2C_Read... [12:14:20]Read from MH i2c: E2 03 00 [12:14:20]MH_I2C_Read... [12:14:20]Read from MH i2c: E2 03 00 5D 7F 00 90 00 50 [12:14:20]RAPDU: 90 00 [12:14:20]wFMCommunicate OK [12:14:20]wFMCommunicate request_size=255 [12:14:20]MH_SAM_APDU [12:14:20]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 67 00 00 00 F4 03 04 00 24 F4 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 [12:14:20]Write to MH i2c: E2 02 01 5E 7F 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 67 00 00 00 F4 03 04 00 24 F4 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 00 02 [12:14:20]Write i2c OK [12:14:20]MH_I2C_Read... [12:14:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:14:20]Read from MH i2c: E2 [12:14:20]MH_I2C_Read... [12:14:20]Read from MH i2c: E2 03 00 [12:14:20]MH_I2C_Read... [12:14:20]Read from MH i2c: E2 03 00 5E 7F 00 90 00 51 [12:14:20]RAPDU: 90 00 [12:14:20]wFMCommunicate OK [12:14:20]wFMCommunicate request_size=16 [12:14:20]MH_SAM_APDU [12:14:20]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 17 C3 CC E1 63 A6 [12:14:20]Write to MH i2c: E2 13 00 5F 7F 80 0D 02 02 0B 00 00 35 04 06 00 17 C3 CC E1 63 A6 00 00 3D [12:14:20]Write i2c OK [12:14:20]MH_I2C_Read... [12:14:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:14:21]Read from MH i2c: E2 [12:14:21]MH_I2C_Read... [12:14:21]Read from MH i2c: E2 03 00 [12:14:21]MH_I2C_Read... [12:14:21]Read from MH i2c: E2 03 00 5F 7F 00 90 00 52 [12:14:21]RAPDU: 90 00 [12:14:21]wFMCommunicate OK [12:14:21]wFMCommunicate request_size=4 [12:14:21]MH_SAM_APDU [12:14:21]CAPDU: 80 0D 03 02 [12:14:21]Write to MH i2c: E2 08 00 60 7F 80 0D 03 02 00 00 00 00 5A [12:14:21]Write i2c OK [12:14:21]MH_I2C_Read... [12:14:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:14:21]Read from MH i2c: E2 [12:14:21]MH_I2C_Read... [12:14:21]Read from MH i2c: E2 0B 00 [12:14:21]MH_I2C_Read... [12:14:21]Read from MH i2c: E2 0B 00 60 7F 00 3C D5 E4 94 63 D5 4B 1F 90 00 86 [12:14:21]RAPDU: 3C D5 E4 94 63 D5 4B 1F 90 00 [12:14:21]wFMCommunicate OK [12:14:21]SAM_PROTO_SignData done [12:14:21]FM_MakeSignedData done [12:14:21]CreateOFDProtocolMessage [12:14:21]wFMCommunicate request_size=4 [12:14:21]MH_SAM_APDU [12:14:21]CAPDU: 80 11 00 00 [12:14:21]Write to MH i2c: E2 08 00 61 7F 80 11 00 00 00 00 00 00 5A [12:14:21]Write i2c OK [12:14:21]MH_I2C_Read... [12:14:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:14:21]Read from MH i2c: E2 [12:14:21]MH_I2C_Read... [12:14:21]Read from MH i2c: E2 17 00 [12:14:21]MH_I2C_Read... [12:14:21]Read from MH i2c: E2 17 00 61 7F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 A8 [12:14: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:14:21]wFMCommunicate OK [12:14:21]CreateOFDProtocolMessage done [12:14:21]OFDSenderStorePacket 30321 [12:14:21]StoreOFDPacket docnum=30321 [12:14: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 15 01 00 00 87 1A 0D 01 C3 7F 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 67 00 00 00 F4 03 04 00 24 F4 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 17 C3 CC E1 63 A6 3C D5 E4 94 63 D5 4B 1F [12:14:21]CheckFolder [12:14:21]dirname=/storage/ofd_packets [12:14:21]CheckFolder done [12:14:21]ProducePacketName [12:14:21]name=ofd_packets/00030321 [12:14:21]NVStorageSaveData ofd_packets/00030321 [12:14:21]File name is /storage/ofd_packets/00030321 [12:14:21]Write 307 bytes [12:14:21]NVStorageSaveData done [12:14:21]OFDSenderStorePacket done [12:14:21]KKMCreateOFDPacket done [12:14:21]NVStorageSaveData kkm_last_timestamp [12:14:21]File name is /storage/kkm_last_timestamp [12:14:21]Write 4 bytes [12:14:21]NVStorageSaveData done [12:14:21]ExternCall_PrintAddStr [12:14:21]wPrintStart [12:14:21]Write to MH i2c: 01 00 00 62 7F E1 [12:14:21]Write i2c OK [12:14:21]MH_I2C_Read... [12:14:21]Read from MH i2c: 01 [12:14:21]MH_I2C_Read... [12:14:21]Read from MH i2c: 01 07 00 [12:14:21]MH_I2C_Read... [12:14:21]Read from MH i2c: 01 07 00 62 7F 00 00 00 00 00 FF 0F F6 [12:14:21]RasterBufferAndPrint [12:14:21]line Счет N : (1)342713 [12:14:21]line ИНН: 02508201610067 [12:14:21]line Контрольно-Кассовый Чек [12:14:21]line ПРОДАЖА [12:14:21]line ТРК (МРК, ГНК) : 61 [12:14:21]line Товар: 2710194210 [12:14:21]line D-ENERGY Дт-К-2 [12:14:21]line 12.960 * 77.20 [12:14:21]line = 1000.51 [12:14:21]line НДС 12% НСП 1% [12:14:21]line > о реализуемом товаре [12:14:21]line ОКРУГЛЕНИЕ: -0.51 [12:14:21]line ИТОГО: 1000.00 [12:14:21]line Внесено: 1000.00 [12:14:21]line СДАЧА: 0.00 [12:14:21]line НСП 1% : 8.85 [12:14:21]line НДС 12% : 106.25 [12:14:21]line Наличными: 1000.00 [12:14:21]line Безнал.: 0.00 [12:14:21]line Место: АЗС № 78 "Партнер Нефть" [12:14:21]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [12:14:21]line СНО: Общий режим [12:14:21]line Чек 103 20.10.2024 12:14 [12:14:21]line Смена: 114 ФФД: 1.0 [12:14:21]line ЗНМ: 0300000137 [12:14:21]line РНМ: 0000000000186857 [12:14:21]line Версия ККМ: v1.0 [12:14:21]line ФМ: 0000000002094219 [12:14:21]line ФД: 30321 [12:14:21]line ФПД: 26129723384742 [12:14:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T121428&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30321&fm=26129723384742&tin=02508201610067®Number=0000000000186857&sum=100000 [12:14:21]OFD Sender: Processing packet 30321 [packets to send 10, broken 9] [12:14:21]ProducePacketName [12:14:21]name=ofd_packets/00030321 [12:14:21]OFD Sender: To server: pG, [12:14:21]CommunicateWithHost lk.salyk.kg:30040 [12:14:21]ConnectInit lk.salyk.kg [12:14:21]written 0, free lines is 4095 [12:14:21]Connected sock=10 [12:14: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 15 01 00 00 87 1A 0D 01 C3 7F 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 67 00 00 00 F4 03 04 00 24 F4 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 17 C3 CC E1 63 A6 3C D5 E4 94 63 D5 4B 1F [12:14: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 19 46 47 00 40 B0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 71 76 00 00 F4 03 04 00 A8 9E 14 67 B6 04 01 00 00 62 BF 30 F2 8A 18 CD EF [12:14:21]CommunicateWithHost err = 0 [12:14:21]CheckOFDResponse [12:14:21]1017 (14) - 77093643461234 [12:14:21]1041 (16) - 0000000002094219 [12:14:21]1040 (4) - 30321 [12:14:21]1012 (4) - 20.10.2024 06:09 [12:14:21]1206 (1) - 0 [12:14:21]OFD Sender: Remove packet 30321 [12:14:21]ProducePacketName [12:14:21]name=ofd_packets/00030321 [12:14:21]NVStorageDeleteData [12:14:21]Write to MH i2c: 01 00 00 8D 7F 0C [12:14:21]Write i2c OK [12:14:21]MH_I2C_Read... [12:14:21]Read from MH i2c: 01 [12:14:21]MH_I2C_Read... [12:14:21]Read from MH i2c: 01 07 00 [12:14:21]MH_I2C_Read... [12:14:21]Read from MH i2c: 01 07 00 8D 7F 00 00 00 00 00 F4 0C 13 [12:14:21]RasterBufferAndPrint [12:14:21]line [12:14:21]line [12:14:21]line [12:14:21]line [12:14:21]line [12:14:21]written 0, free lines is 3327 [12:14:21]MH_Cut [12:14:21]Write to MH i2c: D1 01 00 94 7F 01 E5 [12:14:21]Write i2c OK [12:14:21]MH_I2C_Read... [12:14:21]Read from MH i2c: D1 [12:14:21]MH_I2C_Read... [12:14:21]Read from MH i2c: D1 01 00 [12:14:21]MH_I2C_Read... [12:14:21]Read from MH i2c: D1 01 00 94 7F 00 E4 [12:14:21]Write to MH i2c: 01 00 00 95 7F 14 [12:14:21]Write i2c OK [12:14:21]MH_I2C_Read... [12:14:22]OFD Sender: No OFD packet to send [12:14:22]*** Cut start [12:14:22]*** Partial cut [12:14:22]*** CUTSNS_PIN = 1 [12:14:22]*** CUTSNS_PIN = 0 [12:14:22]*** Brake cut motor [12:14:23]Read from MH i2c: 01 [12:14:23]MH_I2C_Read... [12:14:23]*** Stop cut motor [12:14:23]*** Cut end [12:14:23]Read from MH i2c: 01 07 00 [12:14:23]MH_I2C_Read... [12:14:23]Read from MH i2c: 01 07 00 95 7F 00 00 00 00 00 FF 0F 29 [12:14:23]process_action close_receipt done [12:14:23]requested_data is exist [12:14:23]produce_requested_data [12:14:23]requested_item fm.sn is exist - process it [12:14:23]wFMCommunicate request_size=4 [12:14:23]MH_SAM_APDU [12:14:23]CAPDU: 80 11 00 00 [12:14:23]Write to MH i2c: E2 08 00 96 7F 80 11 00 00 00 00 00 00 8F [12:14:23]Write i2c OK [12:14:23]MH_I2C_Read... [12:14:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:14:23]Read from MH i2c: E2 [12:14:23]MH_I2C_Read... [12:14:23]Read from MH i2c: E2 17 00 [12:14:23]MH_I2C_Read... [12:14:23]Read from MH i2c: E2 17 00 96 7F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 DD [12: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 [12:14:23]wFMCommunicate OK [12:14:23]requested_item fd.num is exist - process it [12:14:23]SAM_PROTO_GetFieldsCounters [12:14:23]wFMCommunicate request_size=4 [12:14:23]MH_SAM_APDU [12:14:23]CAPDU: 80 13 00 00 [12:14:23]Write to MH i2c: E2 08 00 97 7F 80 13 00 00 00 00 00 00 92 [12:14:23]Write i2c OK [12:14:23]MH_I2C_Read... [12:14:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:14:23]Read from MH i2c: E2 [12:14:23]MH_I2C_Read... [12:14:23]Read from MH i2c: E2 62 00 [12:14:23]MH_I2C_Read... [12:14:23]Read from MH i2c: E2 62 00 97 7F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 46 [12:14: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 71 76 00 00 0E 04 04 00 72 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:14:23]wFMCommunicate OK [12:14:23]SAM_PROTO_GetFieldsCounters done [12:14:23]requested_item shift.num is exist - process it [12:14:23]requested_item shift.opened is exist - process it [12:14:23]req_shift_opened [12:14:23]FM_GetShiftState [12:14:23]SAM_PROTO_GetShiftState [12:14:23]wFMCommunicate request_size=4 [12:14:23]MH_SAM_APDU [12:14:23]CAPDU: 80 13 01 00 [12:14:23]Write to MH i2c: E2 08 00 98 7F 80 13 01 00 00 00 00 00 94 [12:14:23]Write i2c OK [12:14:23]MH_I2C_Read... [12:14:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:14:23]Read from MH i2c: E2 [12:14:23]MH_I2C_Read... [12:14:23]Read from MH i2c: E2 0E 00 [12:14:23]MH_I2C_Read... [12:14:23]Read from MH i2c: E2 0E 00 98 7F 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 7A [12:14:23]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [12:14:23]wFMCommunicate OK [12:14:23]SAM_PROTO_GetShiftState done [12:14:23]FM_GetShiftState done [12:14:23]req_shift_opened done [12:14:23]requested_item shift.open_date is exist - process it [12:14:23]req_shift_open_date [12:14:23]req_shift_open_date done [12:14:23]produce_requested_data done [12:14:23]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30321,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [12:14:23]process_action_free close_receipt [12:14:23]json_value_free [12:14:23]json_value_free done [12:14:23]process_json_proto returns [12:14:23]Send response to host [12:14:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30321,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [12:14:23]free response buf [12:14:23]execute_script done [12:14:23]execute_script returns [12:14:23]free content buf [12:14:23]Sock 7.Close socket [12:14:23]Sock 7.Thread stoped [12:14:27]OFD Sender: No OFD packet to send [12:14:32]OFD Sender: No OFD packet to send [12:14:37]OFD Sender: No OFD packet to send [12:14:42]OFD Sender: No OFD packet to send [12:14:47]OFD Sender: No OFD packet to send [12:14:52]OFD Sender: No OFD packet to send [12:14:57]OFD Sender: No OFD packet to send [12:15:02]OFD Sender: No OFD packet to send [12:15:07]OFD Sender: No OFD packet to send [12:15:12]OFD Sender: No OFD packet to send [12:15:17]OFD Sender: No OFD packet to send [12:15:22]OFD Sender: No OFD packet to send [12:15:27]OFD Sender: No OFD packet to send [12:15:32]OFD Sender: No OFD packet to send [12:15:37]OFD Sender: No OFD packet to send [12:15:42]OFD Sender: No OFD packet to send [12:15:47]OFD Sender: No OFD packet to send [12:15:52]OFD Sender: No OFD packet to send [12:15:57]OFD Sender: No OFD packet to send [12:16:02]OFD Sender: No OFD packet to send [12:16:07]OFD Sender: No OFD packet to send [12:16:12]OFD Sender: No OFD packet to send [12:16:17]OFD Sender: No OFD packet to send [12:16:22]OFD Sender: No OFD packet to send [12:16:27]OFD Sender: No OFD packet to send [12:16:32]OFD Sender: No OFD packet to send [12:16:37]OFD Sender: No OFD packet to send [12:16:42]OFD Sender: No OFD packet to send [12:16:47]OFD Sender: No OFD packet to send [12:16:52]OFD Sender: No OFD packet to send [12:16:57]OFD Sender: No OFD packet to send [12:17:02]OFD Sender: No OFD packet to send [12:17:07]OFD Sender: No OFD packet to send [12:17:12]OFD Sender: No OFD packet to send [12:17:17]OFD Sender: No OFD packet to send [12:17:22]OFD Sender: No OFD packet to send [12:17:27]OFD Sender: No OFD packet to send [12:17:32]OFD Sender: No OFD packet to send [12:17:37]OFD Sender: No OFD packet to send [12:17:42]OFD Sender: No OFD packet to send [12:17:47]OFD Sender: No OFD packet to send [12:17:52]OFD Sender: No OFD packet to send [12:17:57]OFD Sender: No OFD packet to send [12:18:02]OFD Sender: No OFD packet to send [12:18:07]OFD Sender: No OFD packet to send [12:18:12]OFD Sender: No OFD packet to send [12:18:17]OFD Sender: No OFD packet to send [12:18:22]OFD Sender: No OFD packet to send [12:18:22]accept exits with 9 [12:18:22]New connection [12:18:22]New thread 3067514212 created [12:18:22]Thread 3067370852 joined [12:18:22]Waiting for new connection... [12:18:22] Sock 9.Parse request [12:18:22]Sock 9.Check first char [12:18:22]Sock 9.First char is OK [12:18:22]request: POST /json_proto HTTP/1.0 [12:18:22]Method: POST [12:18:22]URL: /json_proto [12:18:22]Method is POST - this is cgi request [12:18:22]url: /json_proto [12:18:22]query_string will be loaded in cgi processing [12:18:22]execute_cgi json_proto POST (null) [12:18:22]execute_cgi path=json_proto method=POST [12:18:22]POST find Content-Length [12:18:22]Host: 172.17.51.3:8080 [12:18:22]Content-Length: 679 [12:18:22]Content-Type: application/json [12:18:22] [12:18:22]POST finish read [12:18:22]Found Content-Length = 679 [12:18:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342714", "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:18:22]execute_script... [12:18: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)342714", "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:18:22]POST & json_proto [12:18:22]process_json_proto [12:18:22]json parsed OK: [12:18:22]protocol is kg_v1.0 [12:18:22]action value=close_receipt [12:18:22]process_action close_receipt [12:18:22]cmd_close_receipt [12:18:22]MH_GetDate [12:18:22]Write to MH i2c: F0 00 00 99 7F 07 [12:18:22]Write i2c OK [12:18:22]MH_I2C_Read... [12:18:22]Read from MH i2c: F0 [12:18:22]MH_I2C_Read... [12:18:22]Read from MH i2c: F0 09 00 [12:18:22]MH_I2C_Read... [12:18:22]Read from MH i2c: F0 09 00 99 7F 00 18 F5 14 67 04 C1 95 66 58 [12:18:22]GetLastDocTimeStamp 1729426468 [12:18:22]current date 1729426712 [12:18:22]FM_GetShiftState [12:18:22]SAM_PROTO_GetShiftState [12:18:22]wFMCommunicate request_size=4 [12:18:22]MH_SAM_APDU [12:18:22]CAPDU: 80 13 01 00 [12:18:22]Write to MH i2c: E2 08 00 9A 7F 80 13 01 00 00 00 00 00 96 [12:18:22]Write i2c OK [12:18:22]MH_I2C_Read... [12:18:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:18:22]Read from MH i2c: E2 [12:18:22]MH_I2C_Read... [12:18:22]Read from MH i2c: E2 0E 00 [12:18:22]MH_I2C_Read... [12:18:22]Read from MH i2c: E2 0E 00 9A 7F 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 7C [12:18:22]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [12:18:22]wFMCommunicate OK [12:18:22]SAM_PROTO_GetShiftState done [12:18:22]FM_GetShiftState done [12:18:22]opened in 1729384718 [12:18:22]opened+sec_in_day 1729471118 [12:18:22]quantity*price = 100050 [12:18:22]sum+1 = 100052 [12:18:22]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 СНО: Общий режим Чек 104 20.10.2024 12:18 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30322 ФПД: 129286773021945 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T121832&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30322&fm=129286773021945&tin=02508201610067®Number=0000000000186857&sum=100000 [12:18:23]StoreToDocumentArchive [12:18:23]shift 114 fd 30322 [12:18:23]save to /storage/0114/doc_00030322 [12:18:23]save last doc name /storage/0114/doc_00030322 to /storage/kkm_last_doc_name [12:18:23]save OK [12:18:23]Clear old archive folders... [12:18:23]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:18:23]tlvbuf is 00B25B90 [12:18:23]SAM_PROTO_ClearQueue [12:18:23]wFMCommunicate request_size=4 [12:18:23]MH_SAM_APDU [12:18:23]CAPDU: 80 09 00 00 [12:18:23]Write to MH i2c: E2 08 00 A7 7F 80 09 00 00 00 00 00 00 98 [12:18:23]Write i2c OK [12:18:23]MH_I2C_Read... [12:18:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:18:23]Read from MH i2c: E2 [12:18:23]MH_I2C_Read... [12:18:23]Read from MH i2c: E2 03 00 [12:18:23]MH_I2C_Read... [12:18:23]Read from MH i2c: E2 03 00 A7 7F 00 90 00 9A [12:18:23]RAPDU: 90 00 [12:18:23]wFMCommunicate OK [12:18:23]SAM_PROTO_ClearQueue done [12:18:23]KKMCreateOFDPacket [12:18:23]OFDProtocolAddRootSTLVToBuf [12:18:23]FM_MakeSignedData [12:18:23]FM_MakeSignedData [12:18:23]SAM_PROTO_SignData [12:18:23]wFMCommunicate request_size=4 [12:18:23]MH_SAM_APDU [12:18:23]CAPDU: 80 0D 01 02 [12:18:23]Write to MH i2c: E2 08 00 A8 7F 80 0D 01 02 00 00 00 00 A0 [12:18:23]Write i2c OK [12:18:23]MH_I2C_Read... [12:18:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:18:24]Read from MH i2c: E2 [12:18:24]MH_I2C_Read... [12:18:24]Read from MH i2c: E2 03 00 [12:18:24]MH_I2C_Read... [12:18:24]Read from MH i2c: E2 03 00 A8 7F 00 90 00 9B [12:18:24]RAPDU: 90 00 [12:18:24]wFMCommunicate OK [12:18:24]wFMCommunicate request_size=255 [12:18:24]MH_SAM_APDU [12:18:24]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 68 00 00 00 F4 03 04 00 18 F5 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 75 95 EC 2E [12:18:24]Write to MH i2c: E2 02 01 A9 7F 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 68 00 00 00 F4 03 04 00 18 F5 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 75 95 EC 2E 00 00 95 [12:18:24]Write i2c OK [12:18:24]MH_I2C_Read... [12:18:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:18:24]Read from MH i2c: E2 [12:18:24]MH_I2C_Read... [12:18:24]Read from MH i2c: E2 03 00 [12:18:24]MH_I2C_Read... [12:18:24]Read from MH i2c: E2 03 00 A9 7F 00 90 00 9C [12:18:24]RAPDU: 90 00 [12:18:24]wFMCommunicate OK [12:18:24]wFMCommunicate request_size=7 [12:18:24]MH_SAM_APDU [12:18:24]CAPDU: 80 0D 02 02 02 1C F9 [12:18:24]Write to MH i2c: E2 0A 00 AA 7F 80 0D 02 02 02 00 1C F9 00 00 BC [12:18:24]Write i2c OK [12:18:24]MH_I2C_Read... [12:18:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:18:24]Read from MH i2c: E2 [12:18:24]MH_I2C_Read... [12:18:24]Read from MH i2c: E2 03 00 [12:18:24]MH_I2C_Read... [12:18:24]Read from MH i2c: E2 03 00 AA 7F 00 90 00 9D [12:18:24]RAPDU: 90 00 [12:18:24]wFMCommunicate OK [12:18:24]wFMCommunicate request_size=4 [12:18:24]MH_SAM_APDU [12:18:24]CAPDU: 80 0D 03 02 [12:18:24]Write to MH i2c: E2 08 00 AB 7F 80 0D 03 02 00 00 00 00 A5 [12:18:24]Write i2c OK [12:18:24]MH_I2C_Read... [12:18:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:18:24]Read from MH i2c: E2 [12:18:24]MH_I2C_Read... [12:18:24]Read from MH i2c: E2 0B 00 [12:18:24]MH_I2C_Read... [12:18:24]Read from MH i2c: E2 0B 00 AB 7F 00 CF A4 95 7D 23 38 E9 2C 90 00 9B [12:18:24]RAPDU: CF A4 95 7D 23 38 E9 2C 90 00 [12:18:24]wFMCommunicate OK [12:18:24]SAM_PROTO_SignData done [12:18:24]FM_MakeSignedData done [12:18:24]CreateOFDProtocolMessage [12:18:24]wFMCommunicate request_size=4 [12:18:24]MH_SAM_APDU [12:18:24]CAPDU: 80 11 00 00 [12:18:24]Write to MH i2c: E2 08 00 AC 7F 80 11 00 00 00 00 00 00 A5 [12:18:24]Write i2c OK [12:18:24]MH_I2C_Read... [12:18:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:18:24]Read from MH i2c: E2 [12:18:24]MH_I2C_Read... [12:18:24]Read from MH i2c: E2 17 00 [12:18:24]MH_I2C_Read... [12:18:24]Read from MH i2c: E2 17 00 AC 7F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 F3 [12:18: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:18:24]wFMCommunicate OK [12:18:24]CreateOFDProtocolMessage done [12:18:24]OFDSenderStorePacket 30322 [12:18:24]StoreOFDPacket docnum=30322 [12:18:24]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 AB 13 04 01 2E 13 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 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 68 00 00 00 F4 03 04 00 18 F5 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 75 95 EC 2E 1C F9 CF A4 95 7D 23 38 E9 2C [12:18:24]CheckFolder [12:18:24]dirname=/storage/ofd_packets [12:18:24]CheckFolder done [12:18:24]ProducePacketName [12:18:24]name=ofd_packets/00030322 [12:18:24]NVStorageSaveData ofd_packets/00030322 [12:18:24]File name is /storage/ofd_packets/00030322 [12:18:24]Write 298 bytes [12:18:24]NVStorageSaveData done [12:18:24]OFDSenderStorePacket done [12:18:24]KKMCreateOFDPacket done [12:18:24]NVStorageSaveData kkm_last_timestamp [12:18:24]File name is /storage/kkm_last_timestamp [12:18:24]Write 4 bytes [12:18:24]NVStorageSaveData done [12:18:24]ExternCall_PrintAddStr [12:18:24]wPrintStart [12:18:24]Write to MH i2c: 01 00 00 AD 7F 2C [12:18:24]Write i2c OK [12:18:24]MH_I2C_Read... [12:18:24]Read from MH i2c: 01 [12:18:24]MH_I2C_Read... [12:18:24]Read from MH i2c: 01 07 00 [12:18:24]MH_I2C_Read... [12:18:24]Read from MH i2c: 01 07 00 AD 7F 00 00 00 00 00 FF 0F 41 [12:18:24]RasterBufferAndPrint [12:18:24]line Счет N : (1)342714 [12:18:24]line ИНН: 02508201610067 [12:18:24]line Контрольно-Кассовый Чек [12:18:24]line ПРОДАЖА [12:18:24]line ТРК (МРК, ГНК) : 44 [12:18:24]line Товар: 2710194210 [12:18:24]line ДТ-К-2 [12:18:24]line 13.130 * 76.20 [12:18:24]line = 1000.51 [12:18:24]line НДС 12% НСП 1% [12:18:24]line > о реализуемом товаре [12:18:24]line ОКРУГЛЕНИЕ: -0.51 [12:18:24]line ИТОГО: 1000.00 [12:18:24]line Внесено: 1000.00 [12:18:24]line СДАЧА: 0.00 [12:18:24]line НСП 1% : 8.85 [12:18:24]line НДС 12% : 106.25 [12:18:24]line Наличными: 1000.00 [12:18:24]line Безнал.: 0.00 [12:18:24]line Место: АЗС № 78 "Партнер Нефть" [12:18:24]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [12:18:24]line СНО: Общий режим [12:18:24]line Чек 104 20.10.2024 12:18 [12:18:24]line Смена: 114 ФФД: 1.0 [12:18:24]line ЗНМ: 0300000137 [12:18:24]line РНМ: 0000000000186857 [12:18:24]line Версия ККМ: v1.0 [12:18:24]line ФМ: 0000000002094219 [12:18:24]line ФД: 30322 [12:18:24]line ФПД: 129286773021945 [12:18:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T121832&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30322&fm=129286773021945&tin=02508201610067®Number=0000000000186857&sum=100000 [12:18:24]OFD Sender: Processing packet 30322 [packets to send 10, broken 9] [12:18:24]ProducePacketName [12:18:24]name=ofd_packets/00030322 [12:18:24]OFD Sender: To server: pG, [12:18:24]CommunicateWithHost lk.salyk.kg:30040 [12:18:24]ConnectInit lk.salyk.kg [12:18:24]written 0, free lines is 4095 [12:18:24]Connected sock=7 [12:18: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 0C 01 00 00 AB 13 04 01 2E 13 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 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 68 00 00 00 F4 03 04 00 18 F5 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 75 95 EC 2E 1C F9 CF A4 95 7D 23 38 E9 2C [12:18: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 C7 1F 47 00 29 50 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 72 76 00 00 F4 03 04 00 9C 9F 14 67 B6 04 01 00 00 A7 77 BC 2F 4B 82 73 94 [12:18:25]CommunicateWithHost err = 0 [12:18:25]CheckOFDResponse [12:18:25]1017 (14) - 77093643461234 [12:18:25]1041 (16) - 0000000002094219 [12:18:25]1040 (4) - 30322 [12:18:25]1012 (4) - 20.10.2024 06:13 [12:18:25]1206 (1) - 0 [12:18:25]OFD Sender: Remove packet 30322 [12:18:25]ProducePacketName [12:18:25]name=ofd_packets/00030322 [12:18:25]NVStorageDeleteData [12:18:25]Write to MH i2c: 01 00 00 D8 7F 57 [12:18:25]Write i2c OK [12:18:25]MH_I2C_Read... [12:18:25]Read from MH i2c: 01 [12:18:25]MH_I2C_Read... [12:18:25]Read from MH i2c: 01 07 00 [12:18:25]MH_I2C_Read... [12:18:25]Read from MH i2c: 01 07 00 D8 7F 00 00 00 00 00 E6 0C 50 [12:18:25]RasterBufferAndPrint [12:18:25]line [12:18:25]line [12:18:25]line [12:18:25]line [12:18:25]line [12:18:25]written 0, free lines is 3309 [12:18:25]MH_Cut [12:18:25]Write to MH i2c: D1 01 00 DF 7F 01 30 [12:18:25]Write i2c OK [12:18:25]MH_I2C_Read... [12:18:25]Read from MH i2c: D1 [12:18:25]MH_I2C_Read... [12:18:25]Read from MH i2c: D1 01 00 [12:18:25]MH_I2C_Read... [12:18:25]Read from MH i2c: D1 01 00 DF 7F 00 2F [12:18:25]Write to MH i2c: 01 00 00 E0 7F 5F [12:18:25]Write i2c OK [12:18:25]MH_I2C_Read... [12:18:25]OFD Sender: No OFD packet to send [12:18:25]*** Cut start [12:18:25]*** Partial cut [12:18:25]*** CUTSNS_PIN = 1 [12:18:25]*** CUTSNS_PIN = 0 [12:18:26]*** Brake cut motor [12:18:26]Read from MH i2c: 01 [12:18:26]MH_I2C_Read... [12:18:26]*** Stop cut motor [12:18:26]*** Cut end [12:18:26]Read from MH i2c: 01 07 00 [12:18:26]MH_I2C_Read... [12:18:26]Read from MH i2c: 01 07 00 E0 7F 00 00 00 00 00 FF 0F 74 [12:18:26]process_action close_receipt done [12:18:26]requested_data is exist [12:18:26]produce_requested_data [12:18:26]requested_item fm.sn is exist - process it [12:18:26]wFMCommunicate request_size=4 [12:18:26]MH_SAM_APDU [12:18:26]CAPDU: 80 11 00 00 [12:18:26]Write to MH i2c: E2 08 00 E1 7F 80 11 00 00 00 00 00 00 DA [12:18:26]Write i2c OK [12:18:26]MH_I2C_Read... [12:18:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:18:26]Read from MH i2c: E2 [12:18:26]MH_I2C_Read... [12:18:26]Read from MH i2c: E2 17 00 [12:18:26]MH_I2C_Read... [12:18:26]Read from MH i2c: E2 17 00 E1 7F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 28 [12:18:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [12:18:26]wFMCommunicate OK [12:18:26]requested_item fd.num is exist - process it [12:18:26]SAM_PROTO_GetFieldsCounters [12:18:26]wFMCommunicate request_size=4 [12:18:26]MH_SAM_APDU [12:18:26]CAPDU: 80 13 00 00 [12:18:26]Write to MH i2c: E2 08 00 E2 7F 80 13 00 00 00 00 00 00 DD [12:18:26]Write i2c OK [12:18:26]MH_I2C_Read... [12:18:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:18:26]Read from MH i2c: E2 [12:18:26]MH_I2C_Read... [12:18:26]Read from MH i2c: E2 62 00 [12:18:26]MH_I2C_Read... [12:18:26]Read from MH i2c: E2 62 00 E2 7F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 95 [12:18: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 72 76 00 00 0E 04 04 00 72 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:18:26]wFMCommunicate OK [12:18:26]SAM_PROTO_GetFieldsCounters done [12:18:26]requested_item shift.num is exist - process it [12:18:26]requested_item shift.opened is exist - process it [12:18:26]req_shift_opened [12:18:26]FM_GetShiftState [12:18:26]SAM_PROTO_GetShiftState [12:18:26]wFMCommunicate request_size=4 [12:18:26]MH_SAM_APDU [12:18:26]CAPDU: 80 13 01 00 [12:18:26]Write to MH i2c: E2 08 00 E3 7F 80 13 01 00 00 00 00 00 DF [12:18:26]Write i2c OK [12:18:26]MH_I2C_Read... [12:18:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:18:26]Read from MH i2c: E2 [12:18:26]MH_I2C_Read... [12:18:26]Read from MH i2c: E2 0E 00 [12:18:26]MH_I2C_Read... [12:18:26]Read from MH i2c: E2 0E 00 E3 7F 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 C5 [12:18:26]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [12:18:26]wFMCommunicate OK [12:18:26]SAM_PROTO_GetShiftState done [12:18:26]FM_GetShiftState done [12:18:26]req_shift_opened done [12:18:26]requested_item shift.open_date is exist - process it [12:18:26]req_shift_open_date [12:18:26]req_shift_open_date done [12:18:26]produce_requested_data done [12:18:26]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30322,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [12:18:26]process_action_free close_receipt [12:18:26]json_value_free [12:18:26]json_value_free done [12:18:26]process_json_proto returns [12:18:26]Send response to host [12:18:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30322,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [12:18:26]free response buf [12:18:26]execute_script done [12:18:26]execute_script returns [12:18:26]free content buf [12:18:26]Sock 9.Close socket [12:18:26]Sock 9.Thread stoped [12:18:30]OFD Sender: No OFD packet to send [12:18:35]OFD Sender: No OFD packet to send [12:18:40]OFD Sender: No OFD packet to send [12:18:45]OFD Sender: No OFD packet to send [12:18:50]OFD Sender: No OFD packet to send [12:18:55]OFD Sender: No OFD packet to send [12:19:00]OFD Sender: No OFD packet to send [12:19:05]OFD Sender: No OFD packet to send [12:19:10]OFD Sender: No OFD packet to send [12:19:15]OFD Sender: No OFD packet to send [12:19:20]OFD Sender: No OFD packet to send [12:19:25]OFD Sender: No OFD packet to send [12:19:30]OFD Sender: No OFD packet to send [12:19:35]OFD Sender: No OFD packet to send [12:19:40]OFD Sender: No OFD packet to send [12:19:42]accept exits with 10 [12:19:42]New connection [12:19:42]New thread 3067370852 created [12:19:42]Thread 3067514212 joined [12:19:42]Waiting for new connection... [12:19:42] Sock 10.Parse request [12:19:42]Sock 10.Check first char [12:19:42]Sock 10.First char is OK [12:19:42]request: POST /json_proto HTTP/1.0 [12:19:42]Method: POST [12:19:42]URL: /json_proto [12:19:42]Method is POST - this is cgi request [12:19:42]url: /json_proto [12:19:42]query_string will be loaded in cgi processing [12:19:42]execute_cgi json_proto POST (null) [12:19:42]execute_cgi path=json_proto method=POST [12:19:42]POST find Content-Length [12:19:42]Host: 172.17.51.3:8080 [12:19:42]Content-Length: 682 [12:19:42]Content-Type: application/json [12:19:42] [12:19:42]POST finish read [12:19:42]Found Content-Length = 682 [12:19:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342715", "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" ] } } [12:19:42]execute_script... [12:19: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)342715", "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" ] } } [12:19:42]POST & json_proto [12:19:42]process_json_proto [12:19:42]json parsed OK: [12:19:42]protocol is kg_v1.0 [12:19:42]action value=close_receipt [12:19:42]process_action close_receipt [12:19:42]cmd_close_receipt [12:19:42]MH_GetDate [12:19:42]Write to MH i2c: F0 00 00 E4 7F 52 [12:19:42]Write i2c OK [12:19:42]MH_I2C_Read... [12:19:42]Read from MH i2c: F0 [12:19:42]MH_I2C_Read... [12:19:42]Read from MH i2c: F0 09 00 [12:19:42]MH_I2C_Read... [12:19:42]Read from MH i2c: F0 09 00 E4 7F 00 67 F5 14 67 04 C1 95 66 F2 [12:19:42]GetLastDocTimeStamp 1729426712 [12:19:42]current date 1729426791 [12:19:42]FM_GetShiftState [12:19:42]SAM_PROTO_GetShiftState [12:19:42]wFMCommunicate request_size=4 [12:19:42]MH_SAM_APDU [12:19:42]CAPDU: 80 13 01 00 [12:19:42]Write to MH i2c: E2 08 00 E5 7F 80 13 01 00 00 00 00 00 E1 [12:19:42]Write i2c OK [12:19:42]MH_I2C_Read... [12:19:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:19:42]Read from MH i2c: E2 [12:19:42]MH_I2C_Read... [12:19:42]Read from MH i2c: E2 0E 00 [12:19:42]MH_I2C_Read... [12:19:42]Read from MH i2c: E2 0E 00 E5 7F 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 C7 [12:19:42]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [12:19:42]wFMCommunicate OK [12:19:42]SAM_PROTO_GetShiftState done [12:19:42]FM_GetShiftState done [12:19:42]opened in 1729384718 [12:19:42]opened+sec_in_day 1729471118 [12:19:42]quantity*price = 100021 [12:19:42]sum+1 = 100023 [12:19:42]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 СНО: Общий режим Чек 105 20.10.2024 12:19 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30323 ФПД: 91482956344492 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T121951&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30323&fm=91482956344492&tin=02508201610067®Number=0000000000186857&sum=100000 [12:19:43]StoreToDocumentArchive [12:19:43]shift 114 fd 30323 [12:19:43]save to /storage/0114/doc_00030323 [12:19:43]save last doc name /storage/0114/doc_00030323 to /storage/kkm_last_doc_name [12:19:43]save OK [12:19:43]Clear old archive folders... [12:19:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:19:43]tlvbuf is 00BD12E0 [12:19:43]SAM_PROTO_ClearQueue [12:19:43]wFMCommunicate request_size=4 [12:19:43]MH_SAM_APDU [12:19:43]CAPDU: 80 09 00 00 [12:19:43]Write to MH i2c: E2 08 00 F2 7F 80 09 00 00 00 00 00 00 E3 [12:19:43]Write i2c OK [12:19:43]MH_I2C_Read... [12:19:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:19:43]Read from MH i2c: E2 [12:19:43]MH_I2C_Read... [12:19:43]Read from MH i2c: E2 03 00 [12:19:43]MH_I2C_Read... [12:19:43]Read from MH i2c: E2 03 00 F2 7F 00 90 00 E5 [12:19:43]RAPDU: 90 00 [12:19:43]wFMCommunicate OK [12:19:43]SAM_PROTO_ClearQueue done [12:19:43]KKMCreateOFDPacket [12:19:43]OFDProtocolAddRootSTLVToBuf [12:19:43]FM_MakeSignedData [12:19:43]FM_MakeSignedData [12:19:43]SAM_PROTO_SignData [12:19:43]wFMCommunicate request_size=4 [12:19:43]MH_SAM_APDU [12:19:43]CAPDU: 80 0D 01 02 [12:19:43]Write to MH i2c: E2 08 00 F3 7F 80 0D 01 02 00 00 00 00 EB [12:19:43]Write i2c OK [12:19:43]MH_I2C_Read... [12:19:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:19:43]Read from MH i2c: E2 [12:19:43]MH_I2C_Read... [12:19:43]Read from MH i2c: E2 03 00 [12:19:43]MH_I2C_Read... [12:19:43]Read from MH i2c: E2 03 00 F3 7F 00 90 00 E6 [12:19:43]RAPDU: 90 00 [12:19:43]wFMCommunicate OK [12:19:43]wFMCommunicate request_size=255 [12:19:43]MH_SAM_APDU [12:19:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 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 69 00 00 00 F4 03 04 00 67 F5 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 53 [12:19:43]Write to MH i2c: E2 02 01 F4 7F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 69 00 00 00 F4 03 04 00 67 F5 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 53 00 00 88 [12:19:43]Write i2c OK [12:19:43]MH_I2C_Read... [12:19:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:19:43]Read from MH i2c: E2 [12:19:43]MH_I2C_Read... [12:19:43]Read from MH i2c: E2 03 00 [12:19:43]MH_I2C_Read... [12:19:43]Read from MH i2c: E2 03 00 F4 7F 00 90 00 E7 [12:19:43]RAPDU: 90 00 [12:19:43]wFMCommunicate OK [12:19:43]wFMCommunicate request_size=10 [12:19:43]MH_SAM_APDU [12:19:43]CAPDU: 80 0D 02 02 05 34 09 1D AC AC [12:19:43]Write to MH i2c: E2 0D 00 F5 7F 80 0D 02 02 05 00 34 09 1D AC AC 00 00 AA [12:19:43]Write i2c OK [12:19:43]MH_I2C_Read... [12:19:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:19:43]Read from MH i2c: E2 [12:19:43]MH_I2C_Read... [12:19:43]Read from MH i2c: E2 03 00 [12:19:43]MH_I2C_Read... [12:19:43]Read from MH i2c: E2 03 00 F5 7F 00 90 00 E8 [12:19:43]RAPDU: 90 00 [12:19:43]wFMCommunicate OK [12:19:43]wFMCommunicate request_size=4 [12:19:43]MH_SAM_APDU [12:19:43]CAPDU: 80 0D 03 02 [12:19:43]Write to MH i2c: E2 08 00 F6 7F 80 0D 03 02 00 00 00 00 F0 [12:19:43]Write i2c OK [12:19:43]MH_I2C_Read... [12:19:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:19:44]Read from MH i2c: E2 [12:19:44]MH_I2C_Read... [12:19:44]Read from MH i2c: E2 0B 00 [12:19:44]MH_I2C_Read... [12:19:44]Read from MH i2c: E2 0B 00 F6 7F 00 B9 17 8F A0 A7 0C D8 AE 90 00 29 [12:19:44]RAPDU: B9 17 8F A0 A7 0C D8 AE 90 00 [12:19:44]wFMCommunicate OK [12:19:44]SAM_PROTO_SignData done [12:19:44]FM_MakeSignedData done [12:19:44]CreateOFDProtocolMessage [12:19:44]wFMCommunicate request_size=4 [12:19:44]MH_SAM_APDU [12:19:44]CAPDU: 80 11 00 00 [12:19:44]Write to MH i2c: E2 08 00 F7 7F 80 11 00 00 00 00 00 00 F0 [12:19:44]Write i2c OK [12:19:44]MH_I2C_Read... [12:19:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:19:44]Read from MH i2c: E2 [12:19:44]MH_I2C_Read... [12:19:44]Read from MH i2c: E2 17 00 [12:19:44]MH_I2C_Read... [12:19:44]Read from MH i2c: E2 17 00 F7 7F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 3E [12:19:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [12:19:44]wFMCommunicate OK [12:19:44]CreateOFDProtocolMessage done [12:19:44]OFDSenderStorePacket 30323 [12:19:44]StoreOFDPacket docnum=30323 [12:19: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 99 77 07 01 46 4B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 69 00 00 00 F4 03 04 00 67 F5 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 53 34 09 1D AC AC B9 17 8F A0 A7 0C D8 AE [12:19:44]CheckFolder [12:19:44]dirname=/storage/ofd_packets [12:19:44]CheckFolder done [12:19:44]ProducePacketName [12:19:44]name=ofd_packets/00030323 [12:19:44]NVStorageSaveData ofd_packets/00030323 [12:19:44]File name is /storage/ofd_packets/00030323 [12:19:44]Write 301 bytes [12:19:44]NVStorageSaveData done [12:19:44]OFDSenderStorePacket done [12:19:44]KKMCreateOFDPacket done [12:19:44]NVStorageSaveData kkm_last_timestamp [12:19:44]File name is /storage/kkm_last_timestamp [12:19:44]Write 4 bytes [12:19:44]NVStorageSaveData done [12:19:44]ExternCall_PrintAddStr [12:19:44]wPrintStart [12:19:44]Write to MH i2c: 01 00 00 F8 7F 77 [12:19:44]Write i2c OK [12:19:44]MH_I2C_Read... [12:19:44]Read from MH i2c: 01 [12:19:44]MH_I2C_Read... [12:19:44]Read from MH i2c: 01 07 00 [12:19:44]MH_I2C_Read... [12:19:44]Read from MH i2c: 01 07 00 F8 7F 00 00 00 00 00 FF 0F 8C [12:19:44]RasterBufferAndPrint [12:19:44]line Счет N : (1)342715 [12:19:44]line ИНН: 02508201610067 [12:19:44]line Контрольно-Кассовый Чек [12:19:44]line ПРОДАЖА [12:19:44]line ТРК (МРК, ГНК) : 62 [12:19:44]line Товар: 2710124500 [12:19:44]line Аи-95-К-3 [12:19:44]line 13.480 * 74.20 [12:19:44]line = 1000.22 [12:19:44]line НДС 12% НСП 1% [12:19:44]line > о реализуемом товаре [12:19:44]line ОКРУГЛЕНИЕ: -0.22 [12:19:44]line ИТОГО: 1000.00 [12:19:44]line Внесено: 1000.00 [12:19:44]line СДАЧА: 0.00 [12:19:44]line НСП 1% : 8.85 [12:19:44]line НДС 12% : 106.22 [12:19:44]line Наличными: 1000.00 [12:19:44]line Безнал.: 0.00 [12:19:44]line Место: АЗС № 78 "Партнер Нефть" [12:19:44]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [12:19:44]line СНО: Общий режим [12:19:44]line Чек 105 20.10.2024 12:19 [12:19:44]line Смена: 114 ФФД: 1.0 [12:19:44]line ЗНМ: 0300000137 [12:19:44]line РНМ: 0000000000186857 [12:19:44]line Версия ККМ: v1.0 [12:19:44]line ФМ: 0000000002094219 [12:19:44]line ФД: 30323 [12:19:44]line ФПД: 91482956344492 [12:19:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T121951&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30323&fm=91482956344492&tin=02508201610067®Number=0000000000186857&sum=100000 [12:19:44]OFD Sender: Processing packet 30323 [packets to send 10, broken 9] [12:19:44]ProducePacketName [12:19:44]name=ofd_packets/00030323 [12:19:44]OFD Sender: To server: pG, [12:19:44]CommunicateWithHost lk.salyk.kg:30040 [12:19:44]ConnectInit lk.salyk.kg [12:19:44]written 0, free lines is 4095 [12:19:44]Connected sock=9 [12:19: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 99 77 07 01 46 4B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 69 00 00 00 F4 03 04 00 67 F5 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 53 34 09 1D AC AC B9 17 8F A0 A7 0C D8 AE [12:19: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 8A 19 47 00 27 13 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 73 76 00 00 F4 03 04 00 EB 9F 14 67 B6 04 01 00 00 39 14 79 92 2E B7 FA 8D [12:19:44]CommunicateWithHost err = 0 [12:19:44]CheckOFDResponse [12:19:44]1017 (14) - 77093643461234 [12:19:44]1041 (16) - 0000000002094219 [12:19:44]1040 (4) - 30323 [12:19:44]1012 (4) - 20.10.2024 06:15 [12:19:44]1206 (1) - 0 [12:19:44]OFD Sender: Remove packet 30323 [12:19:44]ProducePacketName [12:19:44]name=ofd_packets/00030323 [12:19:44]NVStorageDeleteData [12:19:44]Write to MH i2c: 01 00 00 23 80 A3 [12:19:44]Write i2c OK [12:19:44]MH_I2C_Read... [12:19:44]Read from MH i2c: 01 [12:19:44]MH_I2C_Read... [12:19:44]Read from MH i2c: 01 07 00 [12:19:44]MH_I2C_Read... [12:19:44]Read from MH i2c: 01 07 00 23 80 00 00 00 00 00 E4 0C 9A [12:19:44]RasterBufferAndPrint [12:19:44]line [12:19:44]line [12:19:44]line [12:19:44]line [12:19:44]line [12:19:44]written 0, free lines is 3306 [12:19:44]MH_Cut [12:19:44]Write to MH i2c: D1 01 00 2A 80 01 7C [12:19:44]Write i2c OK [12:19:44]MH_I2C_Read... [12:19:44]Read from MH i2c: D1 [12:19:44]MH_I2C_Read... [12:19:44]Read from MH i2c: D1 01 00 [12:19:44]MH_I2C_Read... [12:19:44]Read from MH i2c: D1 01 00 2A 80 00 7B [12:19:44]Write to MH i2c: 01 00 00 2B 80 AB [12:19:44]Write i2c OK [12:19:44]MH_I2C_Read... [12:19:45]OFD Sender: No OFD packet to send [12:19:45]*** Cut start [12:19:45]*** Partial cut [12:19:45]*** CUTSNS_PIN = 1 [12:19:45]*** CUTSNS_PIN = 0 [12:19:45]*** Brake cut motor [12:19:46]Read from MH i2c: 01 [12:19:46]MH_I2C_Read... [12:19:46]*** Stop cut motor [12:19:46]*** Cut end [12:19:46]Read from MH i2c: 01 07 00 [12:19:46]MH_I2C_Read... [12:19:46]Read from MH i2c: 01 07 00 2B 80 00 00 00 00 00 FF 0F C0 [12:19:46]process_action close_receipt done [12:19:46]requested_data is exist [12:19:46]produce_requested_data [12:19:46]requested_item fm.sn is exist - process it [12:19:46]wFMCommunicate request_size=4 [12:19:46]MH_SAM_APDU [12:19:46]CAPDU: 80 11 00 00 [12:19:46]Write to MH i2c: E2 08 00 2C 80 80 11 00 00 00 00 00 00 26 [12:19:46]Write i2c OK [12:19:46]MH_I2C_Read... [12:19:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:19:46]Read from MH i2c: E2 [12:19:46]MH_I2C_Read... [12:19:46]Read from MH i2c: E2 17 00 [12:19:46]MH_I2C_Read... [12:19:46]Read from MH i2c: E2 17 00 2C 80 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 74 [12:19: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:19:46]wFMCommunicate OK [12:19:46]requested_item fd.num is exist - process it [12:19:46]SAM_PROTO_GetFieldsCounters [12:19:46]wFMCommunicate request_size=4 [12:19:46]MH_SAM_APDU [12:19:46]CAPDU: 80 13 00 00 [12:19:46]Write to MH i2c: E2 08 00 2D 80 80 13 00 00 00 00 00 00 29 [12:19:46]Write i2c OK [12:19:46]MH_I2C_Read... [12:19:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:19:46]Read from MH i2c: E2 [12:19:46]MH_I2C_Read... [12:19:46]Read from MH i2c: E2 62 00 [12:19:46]MH_I2C_Read... [12:19:46]Read from MH i2c: E2 62 00 2D 80 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 E5 [12:19: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 73 76 00 00 0E 04 04 00 72 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:19:46]wFMCommunicate OK [12:19:46]SAM_PROTO_GetFieldsCounters done [12:19:46]requested_item shift.num is exist - process it [12:19:46]requested_item shift.opened is exist - process it [12:19:46]req_shift_opened [12:19:46]FM_GetShiftState [12:19:46]SAM_PROTO_GetShiftState [12:19:46]wFMCommunicate request_size=4 [12:19:46]MH_SAM_APDU [12:19:46]CAPDU: 80 13 01 00 [12:19:46]Write to MH i2c: E2 08 00 2E 80 80 13 01 00 00 00 00 00 2B [12:19:46]Write i2c OK [12:19:46]MH_I2C_Read... [12:19:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:19:46]Read from MH i2c: E2 [12:19:46]MH_I2C_Read... [12:19:46]Read from MH i2c: E2 0E 00 [12:19:46]MH_I2C_Read... [12:19:46]Read from MH i2c: E2 0E 00 2E 80 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 11 [12:19:46]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [12:19:46]wFMCommunicate OK [12:19:46]SAM_PROTO_GetShiftState done [12:19:46]FM_GetShiftState done [12:19:46]req_shift_opened done [12:19:46]requested_item shift.open_date is exist - process it [12:19:46]req_shift_open_date [12:19:46]req_shift_open_date done [12:19:46]produce_requested_data done [12:19:46]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30323,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [12:19:46]process_action_free close_receipt [12:19:46]json_value_free [12:19:46]json_value_free done [12:19:46]process_json_proto returns [12:19:46]Send response to host [12:19:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30323,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [12:19:46]free response buf [12:19:46]execute_script done [12:19:46]execute_script returns [12:19:46]free content buf [12:19:46]Sock 10.Close socket [12:19:46]Sock 10.Thread stoped [12:19:50]OFD Sender: No OFD packet to send [12:19:55]OFD Sender: No OFD packet to send [12:20:00]OFD Sender: No OFD packet to send [12:20:05]OFD Sender: No OFD packet to send [12:20:10]OFD Sender: No OFD packet to send [12:20:15]OFD Sender: No OFD packet to send [12:20:20]OFD Sender: No OFD packet to send [12:20:23]accept exits with 7 [12:20:23]New connection [12:20:23]New thread 3067514212 created [12:20:23]Thread 3067370852 joined [12:20:23]Waiting for new connection... [12:20:23] Sock 7.Parse request [12:20:23]Sock 7.Check first char [12:20:23]Sock 7.First char is OK [12:20:23]request: POST /json_proto HTTP/1.0 [12:20:23]Method: POST [12:20:23]URL: /json_proto [12:20:23]Method is POST - this is cgi request [12:20:23]url: /json_proto [12:20:23]query_string will be loaded in cgi processing [12:20:23]execute_cgi json_proto POST (null) [12:20:23]execute_cgi path=json_proto method=POST [12:20:23]POST find Content-Length [12:20:23]Host: 172.17.51.3:8080 [12:20:23]Content-Length: 677 [12:20:23]Content-Type: application/json [12:20:23] [12:20:23]POST finish read [12:20:23]Found Content-Length = 677 [12:20:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342716", "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" ] } } [12:20:23]execute_script... [12:20: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)342716", "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" ] } } [12:20:23]POST & json_proto [12:20:23]process_json_proto [12:20:23]json parsed OK: [12:20:23]protocol is kg_v1.0 [12:20:23]action value=close_receipt [12:20:23]process_action close_receipt [12:20:23]cmd_close_receipt [12:20:23]MH_GetDate [12:20:23]Write to MH i2c: F0 00 00 2F 80 9E [12:20:23]Write i2c OK [12:20:23]MH_I2C_Read... [12:20:23]Read from MH i2c: F0 [12:20:23]MH_I2C_Read... [12:20:23]Read from MH i2c: F0 09 00 [12:20:23]MH_I2C_Read... [12:20:23]Read from MH i2c: F0 09 00 2F 80 00 90 F5 14 67 04 C1 95 66 67 [12:20:23]GetLastDocTimeStamp 1729426791 [12:20:23]current date 1729426832 [12:20:23]FM_GetShiftState [12:20:23]SAM_PROTO_GetShiftState [12:20:23]wFMCommunicate request_size=4 [12:20:23]MH_SAM_APDU [12:20:23]CAPDU: 80 13 01 00 [12:20:23]Write to MH i2c: E2 08 00 30 80 80 13 01 00 00 00 00 00 2D [12:20:23]Write i2c OK [12:20:23]MH_I2C_Read... [12:20:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:20:23]Read from MH i2c: E2 [12:20:23]MH_I2C_Read... [12:20:23]Read from MH i2c: E2 0E 00 [12:20:23]MH_I2C_Read... [12:20:23]Read from MH i2c: E2 0E 00 30 80 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 13 [12:20:23]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [12:20:23]wFMCommunicate OK [12:20:23]SAM_PROTO_GetShiftState done [12:20:23]FM_GetShiftState done [12:20:23]opened in 1729384718 [12:20:23]opened+sec_in_day 1729471118 [12:20:23]quantity*price = 40006 [12:20:23]sum+1 = 40007 [12:20:23]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 СНО: Общий режим Чек 106 20.10.2024 12:20 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30324 ФПД: 9410599044688 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T122032&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30324&fm=9410599044688&tin=02508201610067®Number=0000000000186857&sum=40000 [12:20:24]StoreToDocumentArchive [12:20:24]shift 114 fd 30324 [12:20:24]save to /storage/0114/doc_00030324 [12:20:24]save last doc name /storage/0114/doc_00030324 to /storage/kkm_last_doc_name [12:20:24]save OK [12:20:24]Clear old archive folders... [12:20:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:20:24]tlvbuf is 00AD6090 [12:20:24]SAM_PROTO_ClearQueue [12:20:24]wFMCommunicate request_size=4 [12:20:24]MH_SAM_APDU [12:20:24]CAPDU: 80 09 00 00 [12:20:24]Write to MH i2c: E2 08 00 3D 80 80 09 00 00 00 00 00 00 2F [12:20:24]Write i2c OK [12:20:24]MH_I2C_Read... [12:20:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:20:24]Read from MH i2c: E2 [12:20:24]MH_I2C_Read... [12:20:24]Read from MH i2c: E2 03 00 [12:20:24]MH_I2C_Read... [12:20:24]Read from MH i2c: E2 03 00 3D 80 00 90 00 31 [12:20:24]RAPDU: 90 00 [12:20:24]wFMCommunicate OK [12:20:24]SAM_PROTO_ClearQueue done [12:20:24]KKMCreateOFDPacket [12:20:24]OFDProtocolAddRootSTLVToBuf [12:20:24]FM_MakeSignedData [12:20:24]FM_MakeSignedData [12:20:24]SAM_PROTO_SignData [12:20:24]wFMCommunicate request_size=4 [12:20:24]MH_SAM_APDU [12:20:24]CAPDU: 80 0D 01 02 [12:20:24]Write to MH i2c: E2 08 00 3E 80 80 0D 01 02 00 00 00 00 37 [12:20:24]Write i2c OK [12:20:24]MH_I2C_Read... [12:20:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:20:24]Read from MH i2c: E2 [12:20:24]MH_I2C_Read... [12:20:24]Read from MH i2c: E2 03 00 [12:20:24]MH_I2C_Read... [12:20:24]Read from MH i2c: E2 03 00 3E 80 00 90 00 32 [12:20:24]RAPDU: 90 00 [12:20:24]wFMCommunicate OK [12:20:24]wFMCommunicate request_size=255 [12:20:24]MH_SAM_APDU [12:20: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 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 6A 00 00 00 F4 03 04 00 90 F5 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 08 [12:20:24]Write to MH i2c: E2 02 01 3F 80 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 6A 00 00 00 F4 03 04 00 90 F5 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 08 00 00 65 [12:20:24]Write i2c OK [12:20:24]MH_I2C_Read... [12:20:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:20:25]Read from MH i2c: E2 [12:20:25]MH_I2C_Read... [12:20:25]Read from MH i2c: E2 03 00 [12:20:25]MH_I2C_Read... [12:20:25]Read from MH i2c: E2 03 00 3F 80 00 90 00 33 [12:20:25]RAPDU: 90 00 [12:20:25]wFMCommunicate OK [12:20:25]wFMCommunicate request_size=10 [12:20:25]MH_SAM_APDU [12:20:25]CAPDU: 80 0D 02 02 05 8F 13 69 C6 50 [12:20:25]Write to MH i2c: E2 0D 00 40 80 80 0D 02 02 05 00 8F 13 69 C6 50 00 00 65 [12:20:25]Write i2c OK [12:20:25]MH_I2C_Read... [12:20:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:20:25]Read from MH i2c: E2 [12:20:25]MH_I2C_Read... [12:20:25]Read from MH i2c: E2 03 00 [12:20:25]MH_I2C_Read... [12:20:25]Read from MH i2c: E2 03 00 40 80 00 90 00 34 [12:20:25]RAPDU: 90 00 [12:20:25]wFMCommunicate OK [12:20:25]wFMCommunicate request_size=4 [12:20:25]MH_SAM_APDU [12:20:25]CAPDU: 80 0D 03 02 [12:20:25]Write to MH i2c: E2 08 00 41 80 80 0D 03 02 00 00 00 00 3C [12:20:25]Write i2c OK [12:20:25]MH_I2C_Read... [12:20:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:20:25]Read from MH i2c: E2 [12:20:25]MH_I2C_Read... [12:20:25]Read from MH i2c: E2 0B 00 [12:20:25]MH_I2C_Read... [12:20:25]Read from MH i2c: E2 0B 00 41 80 00 1C A7 E5 AB 8E 58 9B A0 90 00 B1 [12:20:25]RAPDU: 1C A7 E5 AB 8E 58 9B A0 90 00 [12:20:25]wFMCommunicate OK [12:20:25]SAM_PROTO_SignData done [12:20:25]FM_MakeSignedData done [12:20:25]CreateOFDProtocolMessage [12:20:25]wFMCommunicate request_size=4 [12:20:25]MH_SAM_APDU [12:20:25]CAPDU: 80 11 00 00 [12:20:25]Write to MH i2c: E2 08 00 42 80 80 11 00 00 00 00 00 00 3C [12:20:25]Write i2c OK [12:20:25]MH_I2C_Read... [12:20:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:20:25]Read from MH i2c: E2 [12:20:25]MH_I2C_Read... [12:20:25]Read from MH i2c: E2 17 00 [12:20:25]MH_I2C_Read... [12:20:25]Read from MH i2c: E2 17 00 42 80 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 8A [12:20:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [12:20:25]wFMCommunicate OK [12:20:25]CreateOFDProtocolMessage done [12:20:25]OFDSenderStorePacket 30324 [12:20:25]StoreOFDPacket docnum=30324 [12:20: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 C3 06 07 01 B9 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 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 6A 00 00 00 F4 03 04 00 90 F5 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 08 8F 13 69 C6 50 1C A7 E5 AB 8E 58 9B A0 [12:20:25]CheckFolder [12:20:25]dirname=/storage/ofd_packets [12:20:25]CheckFolder done [12:20:25]ProducePacketName [12:20:25]name=ofd_packets/00030324 [12:20:25]NVStorageSaveData ofd_packets/00030324 [12:20:25]File name is /storage/ofd_packets/00030324 [12:20:25]Write 301 bytes [12:20:25]NVStorageSaveData done [12:20:25]OFDSenderStorePacket done [12:20:25]KKMCreateOFDPacket done [12:20:25]NVStorageSaveData kkm_last_timestamp [12:20:25]File name is /storage/kkm_last_timestamp [12:20:25]Write 4 bytes [12:20:25]NVStorageSaveData done [12:20:25]ExternCall_PrintAddStr [12:20:25]wPrintStart [12:20:25]Write to MH i2c: 01 00 00 43 80 C3 [12:20:25]Write i2c OK [12:20:25]MH_I2C_Read... [12:20:25]Read from MH i2c: 01 [12:20:25]MH_I2C_Read... [12:20:25]Read from MH i2c: 01 07 00 [12:20:25]MH_I2C_Read... [12:20:25]Read from MH i2c: 01 07 00 43 80 00 00 00 00 00 FF 0F D8 [12:20:25]RasterBufferAndPrint [12:20:25]line Счет N : (1)342716 [12:20:25]line ИНН: 02508201610067 [12:20:25]line Контрольно-Кассовый Чек [12:20:25]line ПРОДАЖА [12:20:25]line ТРК (МРК, ГНК) : 43 [12:20:25]line Товар: 2710124130 [12:20:25]line Аи-92-К-2 [12:20:25]line 5.980 * 66.90 [12:20:25]line = 400.06 [12:20:25]line НДС 12% НСП 1% [12:20:25]line > о реализуемом товаре [12:20:25]line ОКРУГЛЕНИЕ: -0.06 [12:20:25]line ИТОГО: 400.00 [12:20:25]line Внесено: 400.00 [12:20:25]line СДАЧА: 0.00 [12:20:25]line НСП 1% : 3.54 [12:20:25]line НДС 12% : 42.48 [12:20:25]line Наличными: 400.00 [12:20:25]line Безнал.: 0.00 [12:20:25]line Место: АЗС № 78 "Партнер Нефть" [12:20:25]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [12:20:25]line СНО: Общий режим [12:20:25]line Чек 106 20.10.2024 12:20 [12:20:25]line Смена: 114 ФФД: 1.0 [12:20:25]line ЗНМ: 0300000137 [12:20:25]line РНМ: 0000000000186857 [12:20:25]line Версия ККМ: v1.0 [12:20:25]line ФМ: 0000000002094219 [12:20:25]line ФД: 30324 [12:20:25]line ФПД: 9410599044688 [12:20:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T122032&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30324&fm=9410599044688&tin=02508201610067®Number=0000000000186857&sum=40000 [12:20:25]OFD Sender: Processing packet 30324 [packets to send 10, broken 9] [12:20:25]ProducePacketName [12:20:25]name=ofd_packets/00030324 [12:20:25]OFD Sender: To server: pG, [12:20:25]CommunicateWithHost lk.salyk.kg:30040 [12:20:25]ConnectInit lk.salyk.kg [12:20:25]written 0, free lines is 4095 [12:20:25]Connected sock=10 [12:20: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 C3 06 07 01 B9 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 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 6A 00 00 00 F4 03 04 00 90 F5 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 08 8F 13 69 C6 50 1C A7 E5 AB 8E 58 9B A0 [12:20: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 60 87 47 00 D2 91 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 74 76 00 00 F4 03 04 00 14 A0 14 67 B6 04 01 00 00 AB 5F 19 0E 32 BF 1D BB [12:20:25]CommunicateWithHost err = 0 [12:20:25]CheckOFDResponse [12:20:25]1017 (14) - 77093643461234 [12:20:25]1041 (16) - 0000000002094219 [12:20:25]1040 (4) - 30324 [12:20:25]1012 (4) - 20.10.2024 06:15 [12:20:25]1206 (1) - 0 [12:20:25]OFD Sender: Remove packet 30324 [12:20:25]ProducePacketName [12:20:25]name=ofd_packets/00030324 [12:20:25]NVStorageDeleteData [12:20:25]Write to MH i2c: 01 00 00 6E 80 EE [12:20:25]Write i2c OK [12:20:25]MH_I2C_Read... [12:20:25]Read from MH i2c: 01 [12:20:25]MH_I2C_Read... [12:20:25]Read from MH i2c: 01 07 00 [12:20:25]MH_I2C_Read... [12:20:25]Read from MH i2c: 01 07 00 6E 80 00 00 00 00 00 F4 0C F5 [12:20:25]RasterBufferAndPrint [12:20:25]line [12:20:25]line [12:20:25]line [12:20:25]line [12:20:25]line [12:20:25]written 0, free lines is 3322 [12:20:25]MH_Cut [12:20:25]Write to MH i2c: D1 01 00 75 80 01 C7 [12:20:25]Write i2c OK [12:20:25]MH_I2C_Read... [12:20:25]Read from MH i2c: D1 [12:20:25]MH_I2C_Read... [12:20:25]Read from MH i2c: D1 01 00 [12:20:25]MH_I2C_Read... [12:20:25]Read from MH i2c: D1 01 00 75 80 00 C6 [12:20:25]Write to MH i2c: 01 00 00 76 80 F6 [12:20:25]Write i2c OK [12:20:25]MH_I2C_Read... [12:20:26]OFD Sender: No OFD packet to send [12:20:26]*** Cut start [12:20:26]*** Partial cut [12:20:26]*** CUTSNS_PIN = 1 [12:20:26]*** CUTSNS_PIN = 0 [12:20:26]*** Brake cut motor [12:20:27]Read from MH i2c: 01 [12:20:27]MH_I2C_Read... [12:20:27]*** Stop cut motor [12:20:27]*** Cut end [12:20:27]Read from MH i2c: 01 07 00 [12:20:27]MH_I2C_Read... [12:20:27]Read from MH i2c: 01 07 00 76 80 00 00 00 00 00 FF 0F 0B [12:20:27]process_action close_receipt done [12:20:27]requested_data is exist [12:20:27]produce_requested_data [12:20:27]requested_item fm.sn is exist - process it [12:20:27]wFMCommunicate request_size=4 [12:20:27]MH_SAM_APDU [12:20:27]CAPDU: 80 11 00 00 [12:20:27]Write to MH i2c: E2 08 00 77 80 80 11 00 00 00 00 00 00 71 [12:20:27]Write i2c OK [12:20:27]MH_I2C_Read... [12:20:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:20:27]Read from MH i2c: E2 [12:20:27]MH_I2C_Read... [12:20:27]Read from MH i2c: E2 17 00 [12:20:27]MH_I2C_Read... [12:20:27]Read from MH i2c: E2 17 00 77 80 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 BF [12:20:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [12:20:27]wFMCommunicate OK [12:20:27]requested_item fd.num is exist - process it [12:20:27]SAM_PROTO_GetFieldsCounters [12:20:27]wFMCommunicate request_size=4 [12:20:27]MH_SAM_APDU [12:20:27]CAPDU: 80 13 00 00 [12:20:27]Write to MH i2c: E2 08 00 78 80 80 13 00 00 00 00 00 00 74 [12:20:27]Write i2c OK [12:20:27]MH_I2C_Read... [12:20:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:20:27]Read from MH i2c: E2 [12:20:27]MH_I2C_Read... [12:20:27]Read from MH i2c: E2 62 00 [12:20:27]MH_I2C_Read... [12:20:27]Read from MH i2c: E2 62 00 78 80 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 34 [12:20: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 74 76 00 00 0E 04 04 00 72 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:20:27]wFMCommunicate OK [12:20:27]SAM_PROTO_GetFieldsCounters done [12:20:27]requested_item shift.num is exist - process it [12:20:27]requested_item shift.opened is exist - process it [12:20:27]req_shift_opened [12:20:27]FM_GetShiftState [12:20:27]SAM_PROTO_GetShiftState [12:20:27]wFMCommunicate request_size=4 [12:20:27]MH_SAM_APDU [12:20:27]CAPDU: 80 13 01 00 [12:20:27]Write to MH i2c: E2 08 00 79 80 80 13 01 00 00 00 00 00 76 [12:20:27]Write i2c OK [12:20:27]MH_I2C_Read... [12:20:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:20:27]Read from MH i2c: E2 [12:20:27]MH_I2C_Read... [12:20:27]Read from MH i2c: E2 0E 00 [12:20:27]MH_I2C_Read... [12:20:27]Read from MH i2c: E2 0E 00 79 80 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 5C [12:20:27]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [12:20:27]wFMCommunicate OK [12:20:27]SAM_PROTO_GetShiftState done [12:20:27]FM_GetShiftState done [12:20:27]req_shift_opened done [12:20:27]requested_item shift.open_date is exist - process it [12:20:27]req_shift_open_date [12:20:27]req_shift_open_date done [12:20:27]produce_requested_data done [12:20:27]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30324,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [12:20:27]process_action_free close_receipt [12:20:27]json_value_free [12:20:27]json_value_free done [12:20:27]process_json_proto returns [12:20:27]Send response to host [12:20:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30324,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [12:20:27]free response buf [12:20:27]execute_script done [12:20:27]execute_script returns [12:20:27]free content buf [12:20:27]Sock 7.Close socket [12:20:27]Sock 7.Thread stoped [12:20:31]OFD Sender: No OFD packet to send [12:20:36]OFD Sender: No OFD packet to send [12:20:41]OFD Sender: No OFD packet to send [12:20:46]OFD Sender: No OFD packet to send [12:20:51]OFD Sender: No OFD packet to send [12:20:56]OFD Sender: No OFD packet to send [12:21:01]OFD Sender: No OFD packet to send [12:21:06]OFD Sender: No OFD packet to send [12:21:11]OFD Sender: No OFD packet to send [12:21:16]OFD Sender: No OFD packet to send [12:21:21]OFD Sender: No OFD packet to send [12:21:26]OFD Sender: No OFD packet to send [12:21:31]OFD Sender: No OFD packet to send [12:21:36]OFD Sender: No OFD packet to send [12:21:41]OFD Sender: No OFD packet to send [12:21:46]OFD Sender: No OFD packet to send [12:21:51]OFD Sender: No OFD packet to send [12:21:56]OFD Sender: No OFD packet to send [12:22:01]OFD Sender: No OFD packet to send [12:22:06]OFD Sender: No OFD packet to send [12:22:11]OFD Sender: No OFD packet to send [12:22:16]OFD Sender: No OFD packet to send [12:22:21]OFD Sender: No OFD packet to send [12:22:26]OFD Sender: No OFD packet to send [12:22:31]OFD Sender: No OFD packet to send [12:22:36]OFD Sender: No OFD packet to send [12:22:41]OFD Sender: No OFD packet to send [12:22:46]OFD Sender: No OFD packet to send [12:22:51]OFD Sender: No OFD packet to send [12:22:56]OFD Sender: No OFD packet to send [12:23:01]OFD Sender: No OFD packet to send [12:23:06]OFD Sender: No OFD packet to send [12:23:11]OFD Sender: No OFD packet to send [12:23:16]OFD Sender: No OFD packet to send [12:23:21]OFD Sender: No OFD packet to send [12:23:24]accept exits with 9 [12:23:24]New connection [12:23:24]New thread 3067370852 created [12:23:24]Thread 3067514212 joined [12:23:24]Waiting for new connection... [12:23:24] Sock 9.Parse request [12:23:24]Sock 9.Check first char [12:23:24]Sock 9.First char is OK [12:23:24]request: POST /json_proto HTTP/1.0 [12:23:24]Method: POST [12:23:24]URL: /json_proto [12:23:24]Method is POST - this is cgi request [12:23:24]url: /json_proto [12:23:24]query_string will be loaded in cgi processing [12:23:24]execute_cgi json_proto POST (null) [12:23:24]execute_cgi path=json_proto method=POST [12:23:24]POST find Content-Length [12:23:24]Host: 172.17.51.3:8080 [12:23:24]Content-Length: 688 [12:23:24]Content-Type: application/json [12:23:24] [12:23:24]POST finish read [12:23:24]Found Content-Length = 688 [12:23:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342717", "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" ] } } [12:23:24]execute_script... [12:23: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)342717", "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" ] } } [12:23:24]POST & json_proto [12:23:24]process_json_proto [12:23:24]json parsed OK: [12:23:24]protocol is kg_v1.0 [12:23:24]action value=close_receipt [12:23:24]process_action close_receipt [12:23:24]cmd_close_receipt [12:23:24]MH_GetDate [12:23:24]Write to MH i2c: F0 00 00 7A 80 E9 [12:23:24]Write i2c OK [12:23:24]MH_I2C_Read... [12:23:24]Read from MH i2c: F0 [12:23:24]MH_I2C_Read... [12:23:24]Read from MH i2c: F0 09 00 [12:23:24]MH_I2C_Read... [12:23:24]Read from MH i2c: F0 09 00 7A 80 00 46 F6 14 67 04 C1 95 66 69 [12:23:24]GetLastDocTimeStamp 1729426832 [12:23:24]current date 1729427014 [12:23:24]FM_GetShiftState [12:23:24]SAM_PROTO_GetShiftState [12:23:24]wFMCommunicate request_size=4 [12:23:24]MH_SAM_APDU [12:23:24]CAPDU: 80 13 01 00 [12:23:24]Write to MH i2c: E2 08 00 7B 80 80 13 01 00 00 00 00 00 78 [12:23:24]Write i2c OK [12:23:24]MH_I2C_Read... [12:23:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:23:24]Read from MH i2c: E2 [12:23:24]MH_I2C_Read... [12:23:24]Read from MH i2c: E2 0E 00 [12:23:24]MH_I2C_Read... [12:23:24]Read from MH i2c: E2 0E 00 7B 80 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 5E [12:23:24]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [12:23:24]wFMCommunicate OK [12:23:24]SAM_PROTO_GetShiftState done [12:23:24]FM_GetShiftState done [12:23:24]opened in 1729384718 [12:23:24]opened+sec_in_day 1729471118 [12:23:24]quantity*price = 100051 [12:23:24]sum+1 = 100052 [12:23:24]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 20.10.2024 12:23 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30325 ФПД: 275275829884935 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T122334&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30325&fm=275275829884935&tin=02508201610067®Number=0000000000186857&sum=100000 [12:23:25]StoreToDocumentArchive [12:23:25]shift 114 fd 30325 [12:23:25]save to /storage/0114/doc_00030325 [12:23:25]save last doc name /storage/0114/doc_00030325 to /storage/kkm_last_doc_name [12:23:25]save OK [12:23:25]Clear old archive folders... [12:23:25]ProcessDocumentItem done err = 0, tmpTLVsize=257 [12:23:25]tlvbuf is B6FE13F0 [12:23:25]SAM_PROTO_ClearQueue [12:23:25]wFMCommunicate request_size=4 [12:23:25]MH_SAM_APDU [12:23:25]CAPDU: 80 09 00 00 [12:23:25]Write to MH i2c: E2 08 00 88 80 80 09 00 00 00 00 00 00 7A [12:23:25]Write i2c OK [12:23:25]MH_I2C_Read... [12:23:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:23:25]Read from MH i2c: E2 [12:23:25]MH_I2C_Read... [12:23:25]Read from MH i2c: E2 03 00 [12:23:25]MH_I2C_Read... [12:23:25]Read from MH i2c: E2 03 00 88 80 00 90 00 7C [12:23:25]RAPDU: 90 00 [12:23:25]wFMCommunicate OK [12:23:25]SAM_PROTO_ClearQueue done [12:23:25]KKMCreateOFDPacket [12:23:25]OFDProtocolAddRootSTLVToBuf [12:23:25]FM_MakeSignedData [12:23:25]FM_MakeSignedData [12:23:25]SAM_PROTO_SignData [12:23:25]wFMCommunicate request_size=4 [12:23:25]MH_SAM_APDU [12:23:25]CAPDU: 80 0D 01 02 [12:23:25]Write to MH i2c: E2 08 00 89 80 80 0D 01 02 00 00 00 00 82 [12:23:25]Write i2c OK [12:23:25]MH_I2C_Read... [12:23:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:23:26]Read from MH i2c: E2 [12:23:26]MH_I2C_Read... [12:23:26]Read from MH i2c: E2 03 00 [12:23:26]MH_I2C_Read... [12:23:26]Read from MH i2c: E2 03 00 89 80 00 90 00 7D [12:23:26]RAPDU: 90 00 [12:23:26]wFMCommunicate OK [12:23:26]wFMCommunicate request_size=255 [12:23:26]MH_SAM_APDU [12:23:26]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 6B 00 00 00 F4 03 04 00 46 F6 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 [12:23:26]Write to MH i2c: E2 02 01 8A 80 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 6B 00 00 00 F4 03 04 00 46 F6 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 00 5B [12:23:26]Write i2c OK [12:23:26]MH_I2C_Read... [12:23:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:23:26]Read from MH i2c: E2 [12:23:26]MH_I2C_Read... [12:23:26]Read from MH i2c: E2 03 00 [12:23:26]MH_I2C_Read... [12:23:26]Read from MH i2c: E2 03 00 8A 80 00 90 00 7E [12:23:26]RAPDU: 90 00 [12:23:26]wFMCommunicate OK [12:23:26]wFMCommunicate request_size=16 [12:23:26]MH_SAM_APDU [12:23:26]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 FA 5C A6 0E 38 07 [12:23:26]Write to MH i2c: E2 13 00 8B 80 80 0D 02 02 0B 00 00 35 04 06 00 FA 5C A6 0E 38 07 00 00 23 [12:23:26]Write i2c OK [12:23:26]MH_I2C_Read... [12:23:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:23:26]Read from MH i2c: E2 [12:23:26]MH_I2C_Read... [12:23:26]Read from MH i2c: E2 03 00 [12:23:26]MH_I2C_Read... [12:23:26]Read from MH i2c: E2 03 00 8B 80 00 90 00 7F [12:23:26]RAPDU: 90 00 [12:23:26]wFMCommunicate OK [12:23:26]wFMCommunicate request_size=4 [12:23:26]MH_SAM_APDU [12:23:26]CAPDU: 80 0D 03 02 [12:23:26]Write to MH i2c: E2 08 00 8C 80 80 0D 03 02 00 00 00 00 87 [12:23:26]Write i2c OK [12:23:26]MH_I2C_Read... [12:23:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:23:26]Read from MH i2c: E2 [12:23:26]MH_I2C_Read... [12:23:26]Read from MH i2c: E2 0B 00 [12:23:26]MH_I2C_Read... [12:23:26]Read from MH i2c: E2 0B 00 8C 80 00 6C B2 EB 7A A7 49 52 3C 90 00 89 [12:23:26]RAPDU: 6C B2 EB 7A A7 49 52 3C 90 00 [12:23:26]wFMCommunicate OK [12:23:26]SAM_PROTO_SignData done [12:23:26]FM_MakeSignedData done [12:23:26]CreateOFDProtocolMessage [12:23:26]wFMCommunicate request_size=4 [12:23:26]MH_SAM_APDU [12:23:26]CAPDU: 80 11 00 00 [12:23:26]Write to MH i2c: E2 08 00 8D 80 80 11 00 00 00 00 00 00 87 [12:23:26]Write i2c OK [12:23:26]MH_I2C_Read... [12:23:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:23:26]Read from MH i2c: E2 [12:23:26]MH_I2C_Read... [12:23:26]Read from MH i2c: E2 17 00 [12:23:26]MH_I2C_Read... [12:23:26]Read from MH i2c: E2 17 00 8D 80 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 D5 [12:23:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [12:23:26]wFMCommunicate OK [12:23:26]CreateOFDProtocolMessage done [12:23:26]OFDSenderStorePacket 30325 [12:23:26]StoreOFDPacket docnum=30325 [12:23: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 A1 7D 0D 01 02 A9 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 6B 00 00 00 F4 03 04 00 46 F6 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 FA 5C A6 0E 38 07 6C B2 EB 7A A7 49 52 3C [12:23:26]CheckFolder [12:23:26]dirname=/storage/ofd_packets [12:23:26]CheckFolder done [12:23:26]ProducePacketName [12:23:26]name=ofd_packets/00030325 [12:23:26]NVStorageSaveData ofd_packets/00030325 [12:23:26]File name is /storage/ofd_packets/00030325 [12:23:26]Write 307 bytes [12:23:26]NVStorageSaveData done [12:23:26]OFDSenderStorePacket done [12:23:26]KKMCreateOFDPacket done [12:23:26]NVStorageSaveData kkm_last_timestamp [12:23:26]File name is /storage/kkm_last_timestamp [12:23:26]Write 4 bytes [12:23:26]NVStorageSaveData done [12:23:26]ExternCall_PrintAddStr [12:23:26]wPrintStart [12:23:26]Write to MH i2c: 01 00 00 8E 80 0E [12:23:26]Write i2c OK [12:23:26]MH_I2C_Read... [12:23:26]Read from MH i2c: 01 [12:23:26]MH_I2C_Read... [12:23:26]Read from MH i2c: 01 07 00 [12:23:26]MH_I2C_Read... [12:23:26]Read from MH i2c: 01 07 00 8E 80 00 00 00 00 00 FF 0F 23 [12:23:26]RasterBufferAndPrint [12:23:26]line Счет N : (1)342717 [12:23:26]line ИНН: 02508201610067 [12:23:26]line Контрольно-Кассовый Чек [12:23:26]line ПРОДАЖА [12:23:26]line ТРК (МРК, ГНК) : 51 [12:23:26]line Товар: 2710194210 [12:23:26]line D-ENERGY Дт-К-2 [12:23:26]line 12.960 * 77.20 [12:23:26]line = 1000.51 [12:23:26]line НДС 12% НСП 1% [12:23:26]line > о реализуемом товаре [12:23:26]line ОКРУГЛЕНИЕ: -0.51 [12:23:26]line ИТОГО: 1000.00 [12:23:26]line Внесено: 1000.00 [12:23:26]line СДАЧА: 0.00 [12:23:26]line НСП 1% : 8.85 [12:23:26]line НДС 12% : 106.25 [12:23:26]line Наличными: 1000.00 [12:23:26]line Безнал.: 0.00 [12:23:26]line Место: АЗС № 78 "Партнер Нефть" [12:23:26]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [12:23:26]line СНО: Общий режим [12:23:26]line Чек 107 20.10.2024 12:23 [12:23:26]line Смена: 114 ФФД: 1.0 [12:23:26]line ЗНМ: 0300000137 [12:23:26]line РНМ: 0000000000186857 [12:23:26]line Версия ККМ: v1.0 [12:23:26]line ФМ: 0000000002094219 [12:23:26]line ФД: 30325 [12:23:26]line ФПД: 275275829884935 [12:23:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T122334&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30325&fm=275275829884935&tin=02508201610067®Number=0000000000186857&sum=100000 [12:23:26]OFD Sender: Processing packet 30325 [packets to send 10, broken 9] [12:23:26]ProducePacketName [12:23:26]name=ofd_packets/00030325 [12:23:26]OFD Sender: To server: pG, [12:23:26]CommunicateWithHost lk.salyk.kg:30040 [12:23:26]ConnectInit lk.salyk.kg [12:23:26]written 0, free lines is 4095 [12:23:26]Connected sock=10 [12:23: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 A1 7D 0D 01 02 A9 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 6B 00 00 00 F4 03 04 00 46 F6 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 FA 5C A6 0E 38 07 6C B2 EB 7A A7 49 52 3C [12:23: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 B6 DC 47 00 02 67 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 75 76 00 00 F4 03 04 00 CA A0 14 67 B6 04 01 00 00 49 2F DB 47 E4 57 D0 B6 [12:23:27]CommunicateWithHost err = 0 [12:23:27]CheckOFDResponse [12:23:27]1017 (14) - 77093643461234 [12:23:27]1041 (16) - 0000000002094219 [12:23:27]1040 (4) - 30325 [12:23:27]1012 (4) - 20.10.2024 06:18 [12:23:27]1206 (1) - 0 [12:23:27]OFD Sender: Remove packet 30325 [12:23:27]ProducePacketName [12:23:27]name=ofd_packets/00030325 [12:23:27]NVStorageDeleteData [12:23:27]Write to MH i2c: 01 00 00 B9 80 39 [12:23:27]Write i2c OK [12:23:27]MH_I2C_Read... [12:23:27]Read from MH i2c: 01 [12:23:27]MH_I2C_Read... [12:23:27]Read from MH i2c: 01 07 00 [12:23:27]MH_I2C_Read... [12:23:27]Read from MH i2c: 01 07 00 B9 80 00 00 00 00 00 EE 0C 3A [12:23:27]RasterBufferAndPrint [12:23:27]line [12:23:27]line [12:23:27]line [12:23:27]line [12:23:27]line [12:23:27]written 0, free lines is 3316 [12:23:27]MH_Cut [12:23:27]Write to MH i2c: D1 01 00 C0 80 01 12 [12:23:27]Write i2c OK [12:23:27]MH_I2C_Read... [12:23:27]Read from MH i2c: D1 [12:23:27]MH_I2C_Read... [12:23:27]Read from MH i2c: D1 01 00 [12:23:27]MH_I2C_Read... [12:23:27]Read from MH i2c: D1 01 00 C0 80 00 11 [12:23:27]Write to MH i2c: 01 00 00 C1 80 41 [12:23:27]Write i2c OK [12:23:27]MH_I2C_Read... [12:23:27]OFD Sender: No OFD packet to send [12:23:27]*** Cut start [12:23:27]*** Partial cut [12:23:27]*** CUTSNS_PIN = 1 [12:23:27]*** CUTSNS_PIN = 0 [12:23:28]*** Brake cut motor [12:23:28]Read from MH i2c: 01 [12:23:28]MH_I2C_Read... [12:23:28]*** Stop cut motor [12:23:28]*** Cut end [12:23:28]Read from MH i2c: 01 07 00 [12:23:28]MH_I2C_Read... [12:23:28]Read from MH i2c: 01 07 00 C1 80 00 00 00 00 00 FF 0F 56 [12:23:28]process_action close_receipt done [12:23:28]requested_data is exist [12:23:28]produce_requested_data [12:23:28]requested_item fm.sn is exist - process it [12:23:28]wFMCommunicate request_size=4 [12:23:28]MH_SAM_APDU [12:23:28]CAPDU: 80 11 00 00 [12:23:28]Write to MH i2c: E2 08 00 C2 80 80 11 00 00 00 00 00 00 BC [12:23:28]Write i2c OK [12:23:28]MH_I2C_Read... [12:23:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:23:28]Read from MH i2c: E2 [12:23:28]MH_I2C_Read... [12:23:28]Read from MH i2c: E2 17 00 [12:23:28]MH_I2C_Read... [12:23:28]Read from MH i2c: E2 17 00 C2 80 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 0A [12: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 [12:23:28]wFMCommunicate OK [12:23:28]requested_item fd.num is exist - process it [12:23:28]SAM_PROTO_GetFieldsCounters [12:23:28]wFMCommunicate request_size=4 [12:23:28]MH_SAM_APDU [12:23:28]CAPDU: 80 13 00 00 [12:23:28]Write to MH i2c: E2 08 00 C3 80 80 13 00 00 00 00 00 00 BF [12:23:28]Write i2c OK [12:23:28]MH_I2C_Read... [12:23:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:23:28]Read from MH i2c: E2 [12:23:28]MH_I2C_Read... [12:23:28]Read from MH i2c: E2 62 00 [12:23:28]MH_I2C_Read... [12:23:28]Read from MH i2c: E2 62 00 C3 80 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 83 [12:23: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 75 76 00 00 0E 04 04 00 72 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:23:28]wFMCommunicate OK [12:23:28]SAM_PROTO_GetFieldsCounters done [12:23:28]requested_item shift.num is exist - process it [12:23:28]requested_item shift.opened is exist - process it [12:23:28]req_shift_opened [12:23:28]FM_GetShiftState [12:23:28]SAM_PROTO_GetShiftState [12:23:28]wFMCommunicate request_size=4 [12:23:28]MH_SAM_APDU [12:23:28]CAPDU: 80 13 01 00 [12:23:28]Write to MH i2c: E2 08 00 C4 80 80 13 01 00 00 00 00 00 C1 [12:23:28]Write i2c OK [12:23:28]MH_I2C_Read... [12:23:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:23:28]Read from MH i2c: E2 [12:23:28]MH_I2C_Read... [12:23:28]Read from MH i2c: E2 0E 00 [12:23:28]MH_I2C_Read... [12:23:28]Read from MH i2c: E2 0E 00 C4 80 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 A7 [12:23:28]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [12:23:28]wFMCommunicate OK [12:23:28]SAM_PROTO_GetShiftState done [12:23:28]FM_GetShiftState done [12:23:28]req_shift_opened done [12:23:28]requested_item shift.open_date is exist - process it [12:23:28]req_shift_open_date [12:23:28]req_shift_open_date done [12:23:28]produce_requested_data done [12:23:28]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30325,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [12:23:28]process_action_free close_receipt [12:23:28]json_value_free [12:23:28]json_value_free done [12:23:28]process_json_proto returns [12:23:28]Send response to host [12:23:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30325,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [12:23:28]free response buf [12:23:28]execute_script done [12:23:28]execute_script returns [12:23:28]free content buf [12:23:28]Sock 9.Close socket [12:23:28]Sock 9.Thread stoped [12:23:32]OFD Sender: No OFD packet to send [12:23:37]OFD Sender: No OFD packet to send [12:23:42]OFD Sender: No OFD packet to send [12:23:47]OFD Sender: No OFD packet to send [12:23:52]OFD Sender: No OFD packet to send [12:23:57]OFD Sender: No OFD packet to send [12:24:02]OFD Sender: No OFD packet to send [12:24:07]OFD Sender: No OFD packet to send [12:24:12]OFD Sender: No OFD packet to send [12:24:17]OFD Sender: No OFD packet to send [12:24:22]OFD Sender: No OFD packet to send [12:24:27]OFD Sender: No OFD packet to send [12:24:32]OFD Sender: No OFD packet to send [12:24:37]OFD Sender: No OFD packet to send [12:24:42]OFD Sender: No OFD packet to send [12:24:47]OFD Sender: No OFD packet to send [12:24:52]OFD Sender: No OFD packet to send [12:24:57]OFD Sender: No OFD packet to send [12:25:02]OFD Sender: No OFD packet to send [12:25:07]OFD Sender: No OFD packet to send [12:25:12]OFD Sender: No OFD packet to send [12:25:17]OFD Sender: No OFD packet to send [12:25:22]OFD Sender: No OFD packet to send [12:25:27]OFD Sender: No OFD packet to send [12:25:32]OFD Sender: No OFD packet to send [12:25:37]OFD Sender: No OFD packet to send [12:25:42]OFD Sender: No OFD packet to send [12:25:47]OFD Sender: No OFD packet to send [12:25:52]OFD Sender: No OFD packet to send [12:25:57]OFD Sender: No OFD packet to send [12:26:02]OFD Sender: No OFD packet to send [12:26:07]OFD Sender: No OFD packet to send [12:26:12]OFD Sender: No OFD packet to send [12:26:17]OFD Sender: No OFD packet to send [12:26:22]OFD Sender: No OFD packet to send [12:26:27]OFD Sender: No OFD packet to send [12:26:32]OFD Sender: No OFD packet to send [12:26:37]OFD Sender: No OFD packet to send [12:26:42]OFD Sender: No OFD packet to send [12:26:47]OFD Sender: No OFD packet to send [12:26:52]OFD Sender: No OFD packet to send [12:26:57]OFD Sender: No OFD packet to send [12:27:02]OFD Sender: No OFD packet to send [12:27:07]OFD Sender: No OFD packet to send [12:27:12]OFD Sender: No OFD packet to send [12:27:17]OFD Sender: No OFD packet to send [12:27:22]OFD Sender: No OFD packet to send [12:27:27]OFD Sender: No OFD packet to send [12:27:30]accept exits with 7 [12:27:30]New connection [12:27:30]New thread 3067514212 created [12:27:30]Thread 3067370852 joined [12:27:30]Waiting for new connection... [12:27:30] Sock 7.Parse request [12:27:30]Sock 7.Check first char [12:27:30]Sock 7.First char is OK [12:27:30]request: POST /json_proto HTTP/1.0 [12:27:30]Method: POST [12:27:30]URL: /json_proto [12:27:30]Method is POST - this is cgi request [12:27:30]url: /json_proto [12:27:30]query_string will be loaded in cgi processing [12:27:30]execute_cgi json_proto POST (null) [12:27:30]execute_cgi path=json_proto method=POST [12:27:30]POST find Content-Length [12:27:30]Host: 172.17.51.3:8080 [12:27:30]Content-Length: 677 [12:27:30]Content-Type: application/json [12:27:30] [12:27:30]POST finish read [12:27:30]Found Content-Length = 677 [12:27:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342718", "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" ] } } [12:27:30]execute_script... [12:27: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)342718", "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" ] } } [12:27:30]POST & json_proto [12:27:30]process_json_proto [12:27:30]json parsed OK: [12:27:30]protocol is kg_v1.0 [12:27:30]action value=close_receipt [12:27:30]process_action close_receipt [12:27:30]cmd_close_receipt [12:27:30]MH_GetDate [12:27:30]Write to MH i2c: F0 00 00 C5 80 34 [12:27:30]Write i2c OK [12:27:30]MH_I2C_Read... [12:27:30]Read from MH i2c: F0 [12:27:30]MH_I2C_Read... [12:27:30]Read from MH i2c: F0 09 00 [12:27:30]MH_I2C_Read... [12:27:30]Read from MH i2c: F0 09 00 C5 80 00 3B F7 14 67 04 C1 95 66 AA [12:27:30]GetLastDocTimeStamp 1729427014 [12:27:30]current date 1729427259 [12:27:30]FM_GetShiftState [12:27:30]SAM_PROTO_GetShiftState [12:27:30]wFMCommunicate request_size=4 [12:27:30]MH_SAM_APDU [12:27:30]CAPDU: 80 13 01 00 [12:27:30]Write to MH i2c: E2 08 00 C6 80 80 13 01 00 00 00 00 00 C3 [12:27:30]Write i2c OK [12:27:30]MH_I2C_Read... [12:27:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:27:30]Read from MH i2c: E2 [12:27:30]MH_I2C_Read... [12:27:30]Read from MH i2c: E2 0E 00 [12:27:30]MH_I2C_Read... [12:27:30]Read from MH i2c: E2 0E 00 C6 80 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 A9 [12:27:30]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [12:27:30]wFMCommunicate OK [12:27:30]SAM_PROTO_GetShiftState done [12:27:30]FM_GetShiftState done [12:27:30]opened in 1729384718 [12:27:30]opened+sec_in_day 1729471118 [12:27:30]quantity*price = 25020 [12:27:30]sum+1 = 25022 [12:27:30]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 СНО: Общий режим Чек 108 20.10.2024 12:27 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30326 ФПД: 78874956387422 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T122739&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30326&fm=78874956387422&tin=02508201610067®Number=0000000000186857&sum=25000 [12:27:31]StoreToDocumentArchive [12:27:31]shift 114 fd 30326 [12:27:31]save to /storage/0114/doc_00030326 [12:27:31]save last doc name /storage/0114/doc_00030326 to /storage/kkm_last_doc_name [12:27:31]save OK [12:27:31]Clear old archive folders... [12:27:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:27:31]tlvbuf is 00C173C0 [12:27:31]SAM_PROTO_ClearQueue [12:27:31]wFMCommunicate request_size=4 [12:27:31]MH_SAM_APDU [12:27:31]CAPDU: 80 09 00 00 [12:27:31]Write to MH i2c: E2 08 00 D3 80 80 09 00 00 00 00 00 00 C5 [12:27:31]Write i2c OK [12:27:31]MH_I2C_Read... [12:27:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:27:31]Read from MH i2c: E2 [12:27:31]MH_I2C_Read... [12:27:31]Read from MH i2c: E2 03 00 [12:27:31]MH_I2C_Read... [12:27:31]Read from MH i2c: E2 03 00 D3 80 00 90 00 C7 [12:27:31]RAPDU: 90 00 [12:27:31]wFMCommunicate OK [12:27:31]SAM_PROTO_ClearQueue done [12:27:31]KKMCreateOFDPacket [12:27:31]OFDProtocolAddRootSTLVToBuf [12:27:31]FM_MakeSignedData [12:27:31]FM_MakeSignedData [12:27:31]SAM_PROTO_SignData [12:27:31]wFMCommunicate request_size=4 [12:27:31]MH_SAM_APDU [12:27:31]CAPDU: 80 0D 01 02 [12:27:31]Write to MH i2c: E2 08 00 D4 80 80 0D 01 02 00 00 00 00 CD [12:27:31]Write i2c OK [12:27:31]MH_I2C_Read... [12:27:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:27:31]Read from MH i2c: E2 [12:27:31]MH_I2C_Read... [12:27:31]Read from MH i2c: E2 03 00 [12:27:31]MH_I2C_Read... [12:27:31]Read from MH i2c: E2 03 00 D4 80 00 90 00 C8 [12:27:31]RAPDU: 90 00 [12:27:31]wFMCommunicate OK [12:27:31]wFMCommunicate request_size=255 [12:27:31]MH_SAM_APDU [12:27: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 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 6C 00 00 00 F4 03 04 00 3B F7 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 47 [12:27:31]Write to MH i2c: E2 02 01 D5 80 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 6C 00 00 00 F4 03 04 00 3B F7 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 47 00 00 F5 [12:27:31]Write i2c OK [12:27:31]MH_I2C_Read... [12:27:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:27:31]Read from MH i2c: E2 [12:27:31]MH_I2C_Read... [12:27:31]Read from MH i2c: E2 03 00 [12:27:31]MH_I2C_Read... [12:27:31]Read from MH i2c: E2 03 00 D5 80 00 90 00 C9 [12:27:31]RAPDU: 90 00 [12:27:31]wFMCommunicate OK [12:27:31]wFMCommunicate request_size=10 [12:27:31]MH_SAM_APDU [12:27:31]CAPDU: 80 0D 02 02 05 BC 81 C1 D4 5E [12:27:31]Write to MH i2c: E2 0D 00 D6 80 80 0D 02 02 05 00 BC 81 C1 D4 5E 00 00 0A [12:27:31]Write i2c OK [12:27:31]MH_I2C_Read... [12:27:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:27:32]Read from MH i2c: E2 [12:27:32]MH_I2C_Read... [12:27:32]Read from MH i2c: E2 03 00 [12:27:32]MH_I2C_Read... [12:27:32]Read from MH i2c: E2 03 00 D6 80 00 90 00 CA [12:27:32]RAPDU: 90 00 [12:27:32]wFMCommunicate OK [12:27:32]wFMCommunicate request_size=4 [12:27:32]MH_SAM_APDU [12:27:32]CAPDU: 80 0D 03 02 [12:27:32]Write to MH i2c: E2 08 00 D7 80 80 0D 03 02 00 00 00 00 D2 [12:27:32]Write i2c OK [12:27:32]MH_I2C_Read... [12:27:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:27:32]Read from MH i2c: E2 [12:27:32]MH_I2C_Read... [12:27:32]Read from MH i2c: E2 0B 00 [12:27:32]MH_I2C_Read... [12:27:32]Read from MH i2c: E2 0B 00 D7 80 00 74 9D CC 48 9A 22 89 F4 90 00 31 [12:27:32]RAPDU: 74 9D CC 48 9A 22 89 F4 90 00 [12:27:32]wFMCommunicate OK [12:27:32]SAM_PROTO_SignData done [12:27:32]FM_MakeSignedData done [12:27:32]CreateOFDProtocolMessage [12:27:32]wFMCommunicate request_size=4 [12:27:32]MH_SAM_APDU [12:27:32]CAPDU: 80 11 00 00 [12:27:32]Write to MH i2c: E2 08 00 D8 80 80 11 00 00 00 00 00 00 D2 [12:27:32]Write i2c OK [12:27:32]MH_I2C_Read... [12:27:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:27:32]Read from MH i2c: E2 [12:27:32]MH_I2C_Read... [12:27:32]Read from MH i2c: E2 17 00 [12:27:32]MH_I2C_Read... [12:27:32]Read from MH i2c: E2 17 00 D8 80 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 20 [12:27: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:27:32]wFMCommunicate OK [12:27:32]CreateOFDProtocolMessage done [12:27:32]OFDSenderStorePacket 30326 [12:27:32]StoreOFDPacket docnum=30326 [12:27: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 E4 F5 07 01 D1 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 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 6C 00 00 00 F4 03 04 00 3B F7 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 47 BC 81 C1 D4 5E 74 9D CC 48 9A 22 89 F4 [12:27:32]CheckFolder [12:27:32]dirname=/storage/ofd_packets [12:27:32]CheckFolder done [12:27:32]ProducePacketName [12:27:32]name=ofd_packets/00030326 [12:27:32]NVStorageSaveData ofd_packets/00030326 [12:27:32]File name is /storage/ofd_packets/00030326 [12:27:32]Write 301 bytes [12:27:32]NVStorageSaveData done [12:27:32]OFDSenderStorePacket done [12:27:32]KKMCreateOFDPacket done [12:27:32]NVStorageSaveData kkm_last_timestamp [12:27:32]File name is /storage/kkm_last_timestamp [12:27:32]Write 4 bytes [12:27:32]NVStorageSaveData done [12:27:32]ExternCall_PrintAddStr [12:27:32]wPrintStart [12:27:32]Write to MH i2c: 01 00 00 D9 80 59 [12:27:32]Write i2c OK [12:27:32]MH_I2C_Read... [12:27:32]Read from MH i2c: 01 [12:27:32]MH_I2C_Read... [12:27:32]Read from MH i2c: 01 07 00 [12:27:32]MH_I2C_Read... [12:27:32]Read from MH i2c: 01 07 00 D9 80 00 00 00 00 00 FF 0F 6E [12:27:32]RasterBufferAndPrint [12:27:32]line Счет N : (1)342718 [12:27:32]line ИНН: 02508201610067 [12:27:32]line Контрольно-Кассовый Чек [12:27:32]line ПРОДАЖА [12:27:32]line ТРК (МРК, ГНК) : 63 [12:27:32]line Товар: 2710124130 [12:27:32]line Аи-92-К-2 [12:27:32]line 3.740 * 66.90 [12:27:32]line = 250.21 [12:27:32]line НДС 12% НСП 1% [12:27:32]line > о реализуемом товаре [12:27:32]line ОКРУГЛЕНИЕ: -0.21 [12:27:32]line ИТОГО: 250.00 [12:27:32]line Внесено: 250.00 [12:27:32]line СДАЧА: 0.00 [12:27:32]line НСП 1% : 2.21 [12:27:32]line НДС 12% : 26.57 [12:27:32]line Наличными: 250.00 [12:27:32]line Безнал.: 0.00 [12:27:32]line Место: АЗС № 78 "Партнер Нефть" [12:27:32]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [12:27:32]line СНО: Общий режим [12:27:32]line Чек 108 20.10.2024 12:27 [12:27:32]line Смена: 114 ФФД: 1.0 [12:27:32]line ЗНМ: 0300000137 [12:27:32]line РНМ: 0000000000186857 [12:27:32]line Версия ККМ: v1.0 [12:27:32]line ФМ: 0000000002094219 [12:27:32]line ФД: 30326 [12:27:32]line ФПД: 78874956387422 [12:27:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T122739&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30326&fm=78874956387422&tin=02508201610067®Number=0000000000186857&sum=25000 [12:27:32]OFD Sender: Processing packet 30326 [packets to send 10, broken 9] [12:27:32]ProducePacketName [12:27:32]name=ofd_packets/00030326 [12:27:32]OFD Sender: To server: pG, [12:27:32]CommunicateWithHost lk.salyk.kg:30040 [12:27:32]ConnectInit lk.salyk.kg [12:27:32]written 0, free lines is 4095 [12:27:32]Connected sock=10 [12:27: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 E4 F5 07 01 D1 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 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 6C 00 00 00 F4 03 04 00 3B F7 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 47 BC 81 C1 D4 5E 74 9D CC 48 9A 22 89 F4 [12:27: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 83 01 47 00 2A 76 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 76 76 00 00 F4 03 04 00 BF A1 14 67 B6 04 01 00 00 58 78 CE D3 4F A2 8D 9C [12:27:32]CommunicateWithHost err = 0 [12:27:32]CheckOFDResponse [12:27:32]1017 (14) - 77093643461234 [12:27:32]1041 (16) - 0000000002094219 [12:27:32]1040 (4) - 30326 [12:27:32]1012 (4) - 20.10.2024 06:22 [12:27:32]1206 (1) - 0 [12:27:32]OFD Sender: Remove packet 30326 [12:27:32]ProducePacketName [12:27:32]name=ofd_packets/00030326 [12:27:32]NVStorageDeleteData [12:27:32]Write to MH i2c: 01 00 00 04 81 85 [12:27:32]Write i2c OK [12:27:32]MH_I2C_Read... [12:27:32]Read from MH i2c: 01 [12:27:32]MH_I2C_Read... [12:27:32]Read from MH i2c: 01 07 00 [12:27:32]MH_I2C_Read... [12:27:32]Read from MH i2c: 01 07 00 04 81 00 00 00 00 00 EF 0C 87 [12:27:32]RasterBufferAndPrint [12:27:32]line [12:27:32]line [12:27:32]line [12:27:32]line [12:27:32]line [12:27:32]written 0, free lines is 3320 [12:27:32]MH_Cut [12:27:32]Write to MH i2c: D1 01 00 0B 81 01 5E [12:27:32]Write i2c OK [12:27:32]MH_I2C_Read... [12:27:32]Read from MH i2c: D1 [12:27:32]MH_I2C_Read... [12:27:32]Read from MH i2c: D1 01 00 [12:27:32]MH_I2C_Read... [12:27:32]Read from MH i2c: D1 01 00 0B 81 00 5D [12:27:32]Write to MH i2c: 01 00 00 0C 81 8D [12:27:32]Write i2c OK [12:27:32]MH_I2C_Read... [12:27:33]OFD Sender: No OFD packet to send [12:27:33]*** Cut start [12:27:33]*** Partial cut [12:27:33]*** CUTSNS_PIN = 1 [12:27:33]*** CUTSNS_PIN = 0 [12:27:33]*** Brake cut motor [12:27:34]Read from MH i2c: 01 [12:27:34]MH_I2C_Read... [12:27:34]*** Stop cut motor [12:27:34]*** Cut end [12:27:34]Read from MH i2c: 01 07 00 [12:27:34]MH_I2C_Read... [12:27:34]Read from MH i2c: 01 07 00 0C 81 00 00 00 00 00 FF 0F A2 [12:27:34]process_action close_receipt done [12:27:34]requested_data is exist [12:27:34]produce_requested_data [12:27:34]requested_item fm.sn is exist - process it [12:27:34]wFMCommunicate request_size=4 [12:27:34]MH_SAM_APDU [12:27:34]CAPDU: 80 11 00 00 [12:27:34]Write to MH i2c: E2 08 00 0D 81 80 11 00 00 00 00 00 00 08 [12:27:34]Write i2c OK [12:27:34]MH_I2C_Read... [12:27:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:27:34]Read from MH i2c: E2 [12:27:34]MH_I2C_Read... [12:27:34]Read from MH i2c: E2 17 00 [12:27:34]MH_I2C_Read... [12:27:34]Read from MH i2c: E2 17 00 0D 81 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 56 [12:27: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:27:34]wFMCommunicate OK [12:27:34]requested_item fd.num is exist - process it [12:27:34]SAM_PROTO_GetFieldsCounters [12:27:34]wFMCommunicate request_size=4 [12:27:34]MH_SAM_APDU [12:27:34]CAPDU: 80 13 00 00 [12:27:34]Write to MH i2c: E2 08 00 0E 81 80 13 00 00 00 00 00 00 0B [12:27:34]Write i2c OK [12:27:34]MH_I2C_Read... [12:27:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:27:34]Read from MH i2c: E2 [12:27:34]MH_I2C_Read... [12:27:34]Read from MH i2c: E2 62 00 [12:27:34]MH_I2C_Read... [12:27:34]Read from MH i2c: E2 62 00 0E 81 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 D3 [12:27: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 76 76 00 00 0E 04 04 00 72 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 [12:27:34]wFMCommunicate OK [12:27:34]SAM_PROTO_GetFieldsCounters done [12:27:34]requested_item shift.num is exist - process it [12:27:34]requested_item shift.opened is exist - process it [12:27:34]req_shift_opened [12:27:34]FM_GetShiftState [12:27:34]SAM_PROTO_GetShiftState [12:27:34]wFMCommunicate request_size=4 [12:27:34]MH_SAM_APDU [12:27:34]CAPDU: 80 13 01 00 [12:27:34]Write to MH i2c: E2 08 00 0F 81 80 13 01 00 00 00 00 00 0D [12:27:34]Write i2c OK [12:27:34]MH_I2C_Read... [12:27:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:27:34]Read from MH i2c: E2 [12:27:34]MH_I2C_Read... [12:27:34]Read from MH i2c: E2 0E 00 [12:27:34]MH_I2C_Read... [12:27:34]Read from MH i2c: E2 0E 00 0F 81 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 F3 [12:27:34]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [12:27:34]wFMCommunicate OK [12:27:34]SAM_PROTO_GetShiftState done [12:27:34]FM_GetShiftState done [12:27:34]req_shift_opened done [12:27:34]requested_item shift.open_date is exist - process it [12:27:34]req_shift_open_date [12:27:34]req_shift_open_date done [12:27:34]produce_requested_data done [12:27:34]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30326,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [12:27:34]process_action_free close_receipt [12:27:34]json_value_free [12:27:34]json_value_free done [12:27:34]process_json_proto returns [12:27:34]Send response to host [12:27:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30326,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [12:27:34]free response buf [12:27:34]execute_script done [12:27:34]execute_script returns [12:27:34]free content buf [12:27:34]Sock 7.Close socket [12:27:34]Sock 7.Thread stoped [12:27:38]OFD Sender: No OFD packet to send [12:27:43]OFD Sender: No OFD packet to send [12:27:47]accept exits with 9 [12:27:47]New connection [12:27:47]New thread 3067370852 created [12:27:47]Thread 3067514212 joined [12:27:47]Waiting for new connection... [12:27:47] Sock 9.Parse request [12:27:47]Sock 9.Check first char [12:27:47]Sock 9.First char is OK [12:27:47]request: POST /json_proto HTTP/1.0 [12:27:47]Method: POST [12:27:47]URL: /json_proto [12:27:47]Method is POST - this is cgi request [12:27:47]url: /json_proto [12:27:47]query_string will be loaded in cgi processing [12:27:47]execute_cgi json_proto POST (null) [12:27:47]execute_cgi path=json_proto method=POST [12:27:47]POST find Content-Length [12:27:47]Host: 172.17.51.3:8080 [12:27:47]Content-Length: 679 [12:27:47]Content-Type: application/json [12:27:47] [12:27:47]POST finish read [12:27:47]Found Content-Length = 679 [12:27:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342719", "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" ] } } [12:27:47]execute_script... [12:27: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)342719", "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" ] } } [12:27:47]POST & json_proto [12:27:47]process_json_proto [12:27:47]json parsed OK: [12:27:47]protocol is kg_v1.0 [12:27:47]action value=close_receipt [12:27:47]process_action close_receipt [12:27:47]cmd_close_receipt [12:27:47]MH_GetDate [12:27:47]Write to MH i2c: F0 00 00 10 81 80 [12:27:47]Write i2c OK [12:27:47]MH_I2C_Read... [12:27:47]Read from MH i2c: F0 [12:27:47]MH_I2C_Read... [12:27:47]Read from MH i2c: F0 09 00 [12:27:47]MH_I2C_Read... [12:27:47]Read from MH i2c: F0 09 00 10 81 00 4C F7 14 67 04 C1 95 66 07 [12:27:47]GetLastDocTimeStamp 1729427259 [12:27:47]current date 1729427276 [12:27:47]FM_GetShiftState [12:27:47]SAM_PROTO_GetShiftState [12:27:47]wFMCommunicate request_size=4 [12:27:47]MH_SAM_APDU [12:27:47]CAPDU: 80 13 01 00 [12:27:47]Write to MH i2c: E2 08 00 11 81 80 13 01 00 00 00 00 00 0F [12:27:47]Write i2c OK [12:27:47]MH_I2C_Read... [12:27:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:27:47]Read from MH i2c: E2 [12:27:47]MH_I2C_Read... [12:27:47]Read from MH i2c: E2 0E 00 [12:27:47]MH_I2C_Read... [12:27:47]Read from MH i2c: E2 0E 00 11 81 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 F5 [12:27:47]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [12:27:47]wFMCommunicate OK [12:27:47]SAM_PROTO_GetShiftState done [12:27:47]FM_GetShiftState done [12:27:47]opened in 1729384718 [12:27:47]opened+sec_in_day 1729471118 [12:27:47]quantity*price = 100050 [12:27:47]sum+1 = 100052 [12:27:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 109 20.10.2024 12:27 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30327 ФПД: 234501723074958 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T122757&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30327&fm=234501723074958&tin=02508201610067®Number=0000000000186857&sum=100000 [12:27:48]StoreToDocumentArchive [12:27:48]shift 114 fd 30327 [12:27:48]save to /storage/0114/doc_00030327 [12:27:48]save last doc name /storage/0114/doc_00030327 to /storage/kkm_last_doc_name [12:27:48]save OK [12:27:48]Clear old archive folders... [12:27:48]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:27:48]tlvbuf is 00C08760 [12:27:48]SAM_PROTO_ClearQueue [12:27:48]wFMCommunicate request_size=4 [12:27:48]MH_SAM_APDU [12:27:48]CAPDU: 80 09 00 00 [12:27:48]Write to MH i2c: E2 08 00 1E 81 80 09 00 00 00 00 00 00 11 [12:27:48]Write i2c OK [12:27:48]MH_I2C_Read... [12:27:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:27:48]Read from MH i2c: E2 [12:27:48]MH_I2C_Read... [12:27:48]Read from MH i2c: E2 03 00 [12:27:48]MH_I2C_Read... [12:27:48]Read from MH i2c: E2 03 00 1E 81 00 90 00 13 [12:27:48]RAPDU: 90 00 [12:27:48]wFMCommunicate OK [12:27:48]SAM_PROTO_ClearQueue done [12:27:48]KKMCreateOFDPacket [12:27:48]OFDProtocolAddRootSTLVToBuf [12:27:48]FM_MakeSignedData [12:27:48]FM_MakeSignedData [12:27:48]SAM_PROTO_SignData [12:27:48]wFMCommunicate request_size=4 [12:27:48]MH_SAM_APDU [12:27:48]CAPDU: 80 0D 01 02 [12:27:48]Write to MH i2c: E2 08 00 1F 81 80 0D 01 02 00 00 00 00 19 [12:27:48]Write i2c OK [12:27:48]MH_I2C_Read... [12:27:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:27:48]Read from MH i2c: E2 [12:27:48]MH_I2C_Read... [12:27:48]Read from MH i2c: E2 03 00 [12:27:48]MH_I2C_Read... [12:27:48]Read from MH i2c: E2 03 00 1F 81 00 90 00 14 [12:27:48]RAPDU: 90 00 [12:27:48]wFMCommunicate OK [12:27:48]wFMCommunicate request_size=255 [12:27:48]MH_SAM_APDU [12:27:48]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 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 6D 00 00 00 F4 03 04 00 4D F7 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 D5 47 2F E7 [12:27:48]Write to MH i2c: E2 02 01 20 81 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 6D 00 00 00 F4 03 04 00 4D F7 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 D5 47 2F E7 00 00 5D [12:27:48]Write i2c OK [12:27:48]MH_I2C_Read... [12:27:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:27:49]Read from MH i2c: E2 [12:27:49]MH_I2C_Read... [12:27:49]Read from MH i2c: E2 03 00 [12:27:49]MH_I2C_Read... [12:27:49]Read from MH i2c: E2 03 00 20 81 00 90 00 15 [12:27:49]RAPDU: 90 00 [12:27:49]wFMCommunicate OK [12:27:49]wFMCommunicate request_size=7 [12:27:49]MH_SAM_APDU [12:27:49]CAPDU: 80 0D 02 02 02 31 8E [12:27:49]Write to MH i2c: E2 0A 00 21 81 80 0D 02 02 02 00 31 8E 00 00 DF [12:27:49]Write i2c OK [12:27:49]MH_I2C_Read... [12:27:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:27:49]Read from MH i2c: E2 [12:27:49]MH_I2C_Read... [12:27:49]Read from MH i2c: E2 03 00 [12:27:49]MH_I2C_Read... [12:27:49]Read from MH i2c: E2 03 00 21 81 00 90 00 16 [12:27:49]RAPDU: 90 00 [12:27:49]wFMCommunicate OK [12:27:49]wFMCommunicate request_size=4 [12:27:49]MH_SAM_APDU [12:27:49]CAPDU: 80 0D 03 02 [12:27:49]Write to MH i2c: E2 08 00 22 81 80 0D 03 02 00 00 00 00 1E [12:27:49]Write i2c OK [12:27:49]MH_I2C_Read... [12:27:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:27:49]Read from MH i2c: E2 [12:27:49]MH_I2C_Read... [12:27:49]Read from MH i2c: E2 0B 00 [12:27:49]MH_I2C_Read... [12:27:49]Read from MH i2c: E2 0B 00 22 81 00 5A 50 3F 11 41 A0 1C DB 90 00 F1 [12:27:49]RAPDU: 5A 50 3F 11 41 A0 1C DB 90 00 [12:27:49]wFMCommunicate OK [12:27:49]SAM_PROTO_SignData done [12:27:49]FM_MakeSignedData done [12:27:49]CreateOFDProtocolMessage [12:27:49]wFMCommunicate request_size=4 [12:27:49]MH_SAM_APDU [12:27:49]CAPDU: 80 11 00 00 [12:27:49]Write to MH i2c: E2 08 00 23 81 80 11 00 00 00 00 00 00 1E [12:27:49]Write i2c OK [12:27:49]MH_I2C_Read... [12:27:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:27:49]Read from MH i2c: E2 [12:27:49]MH_I2C_Read... [12:27:49]Read from MH i2c: E2 17 00 [12:27:49]MH_I2C_Read... [12:27:49]Read from MH i2c: E2 17 00 23 81 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:27:49]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:49]wFMCommunicate OK [12:27:49]CreateOFDProtocolMessage done [12:27:49]OFDSenderStorePacket 30327 [12:27:49]StoreOFDPacket docnum=30327 [12:27: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 0C 01 00 00 FB E9 04 01 56 ED 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 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 6D 00 00 00 F4 03 04 00 4D F7 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 D5 47 2F E7 31 8E 5A 50 3F 11 41 A0 1C DB [12:27:49]CheckFolder [12:27:49]dirname=/storage/ofd_packets [12:27:49]CheckFolder done [12:27:49]ProducePacketName [12:27:49]name=ofd_packets/00030327 [12:27:49]NVStorageSaveData ofd_packets/00030327 [12:27:49]File name is /storage/ofd_packets/00030327 [12:27:49]Write 298 bytes [12:27:49]NVStorageSaveData done [12:27:49]OFDSenderStorePacket done [12:27:49]KKMCreateOFDPacket done [12:27:49]NVStorageSaveData kkm_last_timestamp [12:27:49]File name is /storage/kkm_last_timestamp [12:27:49]Write 4 bytes [12:27:49]NVStorageSaveData done [12:27:49]ExternCall_PrintAddStr [12:27:49]wPrintStart [12:27:49]Write to MH i2c: 01 00 00 24 81 A5 [12:27:49]Write i2c OK [12:27:49]MH_I2C_Read... [12:27:49]Read from MH i2c: 01 [12:27:49]MH_I2C_Read... [12:27:49]Read from MH i2c: 01 07 00 [12:27:49]MH_I2C_Read... [12:27:49]Read from MH i2c: 01 07 00 24 81 00 00 00 00 00 FF 0F BA [12:27:49]RasterBufferAndPrint [12:27:49]line Счет N : (1)342719 [12:27:49]line ИНН: 02508201610067 [12:27:49]line Контрольно-Кассовый Чек [12:27:49]line ПРОДАЖА [12:27:49]line ТРК (МРК, ГНК) : 54 [12:27:49]line Товар: 2710194210 [12:27:49]line ДТ-К-2 [12:27:49]line 13.130 * 76.20 [12:27:49]line = 1000.51 [12:27:49]line НДС 12% НСП 1% [12:27:49]line > о реализуемом товаре [12:27:49]line ОКРУГЛЕНИЕ: -0.51 [12:27:49]line ИТОГО: 1000.00 [12:27:49]line Внесено: 1000.00 [12:27:49]line СДАЧА: 0.00 [12:27:49]line НСП 1% : 8.85 [12:27:49]line НДС 12% : 106.25 [12:27:49]line Наличными: 1000.00 [12:27:49]line Безнал.: 0.00 [12:27:49]line Место: АЗС № 78 "Партнер Нефть" [12:27:49]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [12:27:49]line СНО: Общий режим [12:27:49]line Чек 109 20.10.2024 12:27 [12:27:49]line Смена: 114 ФФД: 1.0 [12:27:49]line ЗНМ: 0300000137 [12:27:49]line РНМ: 0000000000186857 [12:27:49]line Версия ККМ: v1.0 [12:27:49]line ФМ: 0000000002094219 [12:27:49]line ФД: 30327 [12:27:49]line ФПД: 234501723074958 [12:27:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T122757&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30327&fm=234501723074958&tin=02508201610067®Number=0000000000186857&sum=100000 [12:27:49]OFD Sender: Processing packet 30327 [packets to send 10, broken 9] [12:27:49]ProducePacketName [12:27:49]name=ofd_packets/00030327 [12:27:49]OFD Sender: To server: pG, [12:27:49]CommunicateWithHost lk.salyk.kg:30040 [12:27:49]ConnectInit lk.salyk.kg [12:27:49]written 0, free lines is 4095 [12:27:49]Connected sock=10 [12:27: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 0C 01 00 00 FB E9 04 01 56 ED 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 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 6D 00 00 00 F4 03 04 00 4D F7 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 D5 47 2F E7 31 8E 5A 50 3F 11 41 A0 1C DB [12:27: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 C7 6B 47 00 FF 9D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 77 76 00 00 F4 03 04 00 D0 A1 14 67 B6 04 01 00 00 1E 67 CA D3 57 8F 27 CE [12:27:49]CommunicateWithHost err = 0 [12:27:49]CheckOFDResponse [12:27:49]1017 (14) - 77093643461234 [12:27:49]1041 (16) - 0000000002094219 [12:27:49]1040 (4) - 30327 [12:27:49]1012 (4) - 20.10.2024 06:23 [12:27:49]1206 (1) - 0 [12:27:49]OFD Sender: Remove packet 30327 [12:27:49]ProducePacketName [12:27:49]name=ofd_packets/00030327 [12:27:49]NVStorageDeleteData [12:27:50]Write to MH i2c: 01 00 00 4F 81 D0 [12:27:50]Write i2c OK [12:27:50]MH_I2C_Read... [12:27:50]Read from MH i2c: 01 [12:27:50]MH_I2C_Read... [12:27:50]Read from MH i2c: 01 07 00 [12:27:50]MH_I2C_Read... [12:27:50]Read from MH i2c: 01 07 00 4F 81 00 00 00 00 00 E1 0C C4 [12:27:50]RasterBufferAndPrint [12:27:50]line [12:27:50]line [12:27:50]line [12:27:50]line [12:27:50]line [12:27:50]written 0, free lines is 3303 [12:27:50]MH_Cut [12:27:50]Write to MH i2c: D1 01 00 56 81 01 A9 [12:27:50]Write i2c OK [12:27:50]MH_I2C_Read... [12:27:50]Read from MH i2c: D1 [12:27:50]MH_I2C_Read... [12:27:50]Read from MH i2c: D1 01 00 [12:27:50]MH_I2C_Read... [12:27:50]Read from MH i2c: D1 01 00 56 81 00 A8 [12:27:50]Write to MH i2c: 01 00 00 57 81 D8 [12:27:50]Write i2c OK [12:27:50]MH_I2C_Read... [12:27:50]OFD Sender: No OFD packet to send [12:27:50]*** Cut start [12:27:50]*** Partial cut [12:27:50]*** CUTSNS_PIN = 1 [12:27:50]*** CUTSNS_PIN = 0 [12:27:51]*** Brake cut motor [12:27:51]Read from MH i2c: 01 [12:27:51]MH_I2C_Read... [12:27:51]*** Stop cut motor [12:27:51]*** Cut end [12:27:51]Read from MH i2c: 01 07 00 [12:27:51]MH_I2C_Read... [12:27:51]Read from MH i2c: 01 07 00 57 81 00 00 00 00 00 FF 0F ED [12:27:51]process_action close_receipt done [12:27:51]requested_data is exist [12:27:51]produce_requested_data [12:27:51]requested_item fm.sn is exist - process it [12:27:51]wFMCommunicate request_size=4 [12:27:51]MH_SAM_APDU [12:27:51]CAPDU: 80 11 00 00 [12:27:51]Write to MH i2c: E2 08 00 58 81 80 11 00 00 00 00 00 00 53 [12:27:51]Write i2c OK [12:27:51]MH_I2C_Read... [12:27:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:27:51]Read from MH i2c: E2 [12:27:51]MH_I2C_Read... [12:27:51]Read from MH i2c: E2 17 00 [12:27:51]MH_I2C_Read... [12:27:51]Read from MH i2c: E2 17 00 58 81 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: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 [12:27:51]wFMCommunicate OK [12:27:51]requested_item fd.num is exist - process it [12:27:51]SAM_PROTO_GetFieldsCounters [12:27:51]wFMCommunicate request_size=4 [12:27:51]MH_SAM_APDU [12:27:51]CAPDU: 80 13 00 00 [12:27:51]Write to MH i2c: E2 08 00 59 81 80 13 00 00 00 00 00 00 56 [12:27:51]Write i2c OK [12:27:51]MH_I2C_Read... [12:27:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:27:51]Read from MH i2c: E2 [12:27:51]MH_I2C_Read... [12:27:51]Read from MH i2c: E2 62 00 [12:27:51]MH_I2C_Read... [12:27:51]Read from MH i2c: E2 62 00 59 81 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 22 [12:27: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 77 76 00 00 0E 04 04 00 72 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 [12:27:51]wFMCommunicate OK [12:27:51]SAM_PROTO_GetFieldsCounters done [12:27:51]requested_item shift.num is exist - process it [12:27:51]requested_item shift.opened is exist - process it [12:27:51]req_shift_opened [12:27:51]FM_GetShiftState [12:27:51]SAM_PROTO_GetShiftState [12:27:51]wFMCommunicate request_size=4 [12:27:51]MH_SAM_APDU [12:27:51]CAPDU: 80 13 01 00 [12:27:51]Write to MH i2c: E2 08 00 5A 81 80 13 01 00 00 00 00 00 58 [12:27:51]Write i2c OK [12:27:51]MH_I2C_Read... [12:27:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:27:51]Read from MH i2c: E2 [12:27:51]MH_I2C_Read... [12:27:51]Read from MH i2c: E2 0E 00 [12:27:51]MH_I2C_Read... [12:27:51]Read from MH i2c: E2 0E 00 5A 81 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 3E [12:27:51]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [12:27:51]wFMCommunicate OK [12:27:51]SAM_PROTO_GetShiftState done [12:27:51]FM_GetShiftState done [12:27:51]req_shift_opened done [12:27:51]requested_item shift.open_date is exist - process it [12:27:51]req_shift_open_date [12:27:51]req_shift_open_date done [12:27:51]produce_requested_data done [12:27:51]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30327,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [12:27:51]process_action_free close_receipt [12:27:51]json_value_free [12:27:51]json_value_free done [12:27:51]process_json_proto returns [12:27:51]Send response to host [12:27:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30327,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [12:27:51]free response buf [12:27:51]execute_script done [12:27:51]execute_script returns [12:27:51]free content buf [12:27:51]Sock 9.Close socket [12:27:51]Sock 9.Thread stoped [12:27:55]OFD Sender: No OFD packet to send [12:28:00]OFD Sender: No OFD packet to send [12:28:05]OFD Sender: No OFD packet to send [12:28:10]OFD Sender: No OFD packet to send [12:28:15]OFD Sender: No OFD packet to send [12:28:20]OFD Sender: No OFD packet to send [12:28:25]OFD Sender: No OFD packet to send [12:28:30]OFD Sender: No OFD packet to send [12:28:35]OFD Sender: No OFD packet to send [12:28:40]OFD Sender: No OFD packet to send [12:28:45]OFD Sender: No OFD packet to send [12:28:50]OFD Sender: No OFD packet to send [12:28:55]OFD Sender: No OFD packet to send [12:29:00]OFD Sender: No OFD packet to send [12:29:05]OFD Sender: No OFD packet to send [12:29:10]OFD Sender: No OFD packet to send [12:29:15]OFD Sender: No OFD packet to send [12:29:18]accept exits with 7 [12:29:18]New connection [12:29:18]New thread 3067514212 created [12:29:18]Thread 3067370852 joined [12:29:18]Waiting for new connection... [12:29:18] Sock 7.Parse request [12:29:18]Sock 7.Check first char [12:29:18]Sock 7.First char is OK [12:29:18]request: POST /json_proto HTTP/1.0 [12:29:18]Method: POST [12:29:18]URL: /json_proto [12:29:18]Method is POST - this is cgi request [12:29:18]url: /json_proto [12:29:18]query_string will be loaded in cgi processing [12:29:18]execute_cgi json_proto POST (null) [12:29:18]execute_cgi path=json_proto method=POST [12:29:18]POST find Content-Length [12:29:18]Host: 172.17.51.3:8080 [12:29:18]Content-Length: 674 [12:29:18]Content-Type: application/json [12:29:18] [12:29:18]POST finish read [12:29:18]Found Content-Length = 674 [12:29:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342720", "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" ] } } [12:29:18]execute_script... [12:29: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)342720", "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" ] } } [12:29:18]POST & json_proto [12:29:18]process_json_proto [12:29:18]json parsed OK: [12:29:18]protocol is kg_v1.0 [12:29:18]action value=close_receipt [12:29:18]process_action close_receipt [12:29:18]cmd_close_receipt [12:29:18]MH_GetDate [12:29:18]Write to MH i2c: F0 00 00 5B 81 CB [12:29:18]Write i2c OK [12:29:18]MH_I2C_Read... [12:29:18]Read from MH i2c: F0 [12:29:18]MH_I2C_Read... [12:29:18]Read from MH i2c: F0 09 00 [12:29:18]MH_I2C_Read... [12:29:18]Read from MH i2c: F0 09 00 5B 81 00 A8 F7 14 67 04 C1 95 66 AE [12:29:18]GetLastDocTimeStamp 1729427277 [12:29:18]current date 1729427368 [12:29:18]FM_GetShiftState [12:29:18]SAM_PROTO_GetShiftState [12:29:18]wFMCommunicate request_size=4 [12:29:18]MH_SAM_APDU [12:29:18]CAPDU: 80 13 01 00 [12:29:18]Write to MH i2c: E2 08 00 5C 81 80 13 01 00 00 00 00 00 5A [12:29:18]Write i2c OK [12:29:18]MH_I2C_Read... [12:29:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:29:19]Read from MH i2c: E2 [12:29:19]MH_I2C_Read... [12:29:19]Read from MH i2c: E2 0E 00 [12:29:19]MH_I2C_Read... [12:29:19]Read from MH i2c: E2 0E 00 5C 81 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 40 [12:29:19]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [12:29:19]wFMCommunicate OK [12:29:19]SAM_PROTO_GetShiftState done [12:29:19]FM_GetShiftState done [12:29:19]opened in 1729384718 [12:29:19]opened+sec_in_day 1729471118 [12:29:19]quantity*price = 50063 [12:29:19]sum+1 = 50064 [12:29:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 110 20.10.2024 12:29 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30328 ФПД: 92308623873906 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T122928&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30328&fm=92308623873906&tin=02508201610067®Number=0000000000186857&sum=50000 [12:29:20]StoreToDocumentArchive [12:29:20]shift 114 fd 30328 [12:29:20]save to /storage/0114/doc_00030328 [12:29:20]save last doc name /storage/0114/doc_00030328 to /storage/kkm_last_doc_name [12:29:20]save OK [12:29:20]Clear old archive folders... [12:29:20]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:29:20]tlvbuf is 00A79B40 [12:29:20]SAM_PROTO_ClearQueue [12:29:20]wFMCommunicate request_size=4 [12:29:20]MH_SAM_APDU [12:29:20]CAPDU: 80 09 00 00 [12:29:20]Write to MH i2c: E2 08 00 69 81 80 09 00 00 00 00 00 00 5C [12:29:20]Write i2c OK [12:29:20]MH_I2C_Read... [12:29:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:29:20]Read from MH i2c: E2 [12:29:20]MH_I2C_Read... [12:29:20]Read from MH i2c: E2 03 00 [12:29:20]MH_I2C_Read... [12:29:20]Read from MH i2c: E2 03 00 69 81 00 90 00 5E [12:29:20]RAPDU: 90 00 [12:29:20]wFMCommunicate OK [12:29:20]SAM_PROTO_ClearQueue done [12:29:20]KKMCreateOFDPacket [12:29:20]OFDProtocolAddRootSTLVToBuf [12:29:20]FM_MakeSignedData [12:29:20]FM_MakeSignedData [12:29:20]SAM_PROTO_SignData [12:29:20]wFMCommunicate request_size=4 [12:29:20]MH_SAM_APDU [12:29:20]CAPDU: 80 0D 01 02 [12:29:20]Write to MH i2c: E2 08 00 6A 81 80 0D 01 02 00 00 00 00 64 [12:29:20]Write i2c OK [12:29:20]MH_I2C_Read... [12:29:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:29:20]Read from MH i2c: E2 [12:29:20]MH_I2C_Read... [12:29:20]Read from MH i2c: E2 03 00 [12:29:20]MH_I2C_Read... [12:29:20]Read from MH i2c: E2 03 00 6A 81 00 90 00 5F [12:29:20]RAPDU: 90 00 [12:29:20]wFMCommunicate OK [12:29:20]wFMCommunicate request_size=255 [12:29:20]MH_SAM_APDU [12:29:20]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 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 6E 00 00 00 F4 03 04 00 A8 F7 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 53 F4 46 BC [12:29:20]Write to MH i2c: E2 02 01 6B 81 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 6E 00 00 00 F4 03 04 00 A8 F7 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 53 F4 46 BC 00 00 A4 [12:29:20]Write i2c OK [12:29:20]MH_I2C_Read... [12:29:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:29:20]Read from MH i2c: E2 [12:29:20]MH_I2C_Read... [12:29:20]Read from MH i2c: E2 03 00 [12:29:20]MH_I2C_Read... [12:29:20]Read from MH i2c: E2 03 00 6B 81 00 90 00 60 [12:29:20]RAPDU: 90 00 [12:29:20]wFMCommunicate OK [12:29:20]wFMCommunicate request_size=7 [12:29:20]MH_SAM_APDU [12:29:20]CAPDU: 80 0D 02 02 02 57 72 [12:29:20]Write to MH i2c: E2 0A 00 6C 81 80 0D 02 02 02 00 57 72 00 00 34 [12:29:20]Write i2c OK [12:29:20]MH_I2C_Read... [12:29:20]OFD Sender: No OFD packet to send [12:29:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:29:20]Read from MH i2c: E2 [12:29:20]MH_I2C_Read... [12:29:20]Read from MH i2c: E2 03 00 [12:29:20]MH_I2C_Read... [12:29:20]Read from MH i2c: E2 03 00 6C 81 00 90 00 61 [12:29:20]RAPDU: 90 00 [12:29:20]wFMCommunicate OK [12:29:20]wFMCommunicate request_size=4 [12:29:20]MH_SAM_APDU [12:29:20]CAPDU: 80 0D 03 02 [12:29:20]Write to MH i2c: E2 08 00 6D 81 80 0D 03 02 00 00 00 00 69 [12:29:20]Write i2c OK [12:29:20]MH_I2C_Read... [12:29:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:29:20]Read from MH i2c: E2 [12:29:20]MH_I2C_Read... [12:29:20]Read from MH i2c: E2 0B 00 [12:29:20]MH_I2C_Read... [12:29:20]Read from MH i2c: E2 0B 00 6D 81 00 8D C5 12 DD 5F C8 32 F5 90 00 F9 [12:29:20]RAPDU: 8D C5 12 DD 5F C8 32 F5 90 00 [12:29:20]wFMCommunicate OK [12:29:20]SAM_PROTO_SignData done [12:29:20]FM_MakeSignedData done [12:29:20]CreateOFDProtocolMessage [12:29:20]wFMCommunicate request_size=4 [12:29:20]MH_SAM_APDU [12:29:20]CAPDU: 80 11 00 00 [12:29:20]Write to MH i2c: E2 08 00 6E 81 80 11 00 00 00 00 00 00 69 [12:29:20]Write i2c OK [12:29:20]MH_I2C_Read... [12:29:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:29:20]Read from MH i2c: E2 [12:29:20]MH_I2C_Read... [12:29:20]Read from MH i2c: E2 17 00 [12:29:20]MH_I2C_Read... [12:29:20]Read from MH i2c: E2 17 00 6E 81 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:29: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:29:20]wFMCommunicate OK [12:29:20]CreateOFDProtocolMessage done [12:29:20]OFDSenderStorePacket 30328 [12:29:20]StoreOFDPacket docnum=30328 [12:29: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 0C 01 00 00 2D 44 04 01 9A F2 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 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 6E 00 00 00 F4 03 04 00 A8 F7 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 53 F4 46 BC 57 72 8D C5 12 DD 5F C8 32 F5 [12:29:20]CheckFolder [12:29:20]dirname=/storage/ofd_packets [12:29:20]CheckFolder done [12:29:20]ProducePacketName [12:29:20]name=ofd_packets/00030328 [12:29:20]NVStorageSaveData ofd_packets/00030328 [12:29:20]File name is /storage/ofd_packets/00030328 [12:29:20]Write 298 bytes [12:29:20]NVStorageSaveData done [12:29:20]OFDSenderStorePacket done [12:29:20]KKMCreateOFDPacket done [12:29:20]NVStorageSaveData kkm_last_timestamp [12:29:20]File name is /storage/kkm_last_timestamp [12:29:20]Write 4 bytes [12:29:20]NVStorageSaveData done [12:29:20]ExternCall_PrintAddStr [12:29:20]wPrintStart [12:29:20]Write to MH i2c: 01 00 00 6F 81 F0 [12:29:20]Write i2c OK [12:29:20]MH_I2C_Read... [12:29:20]Read from MH i2c: 01 [12:29:20]MH_I2C_Read... [12:29:20]Read from MH i2c: 01 07 00 [12:29:20]MH_I2C_Read... [12:29:20]Read from MH i2c: 01 07 00 6F 81 00 00 00 00 00 FF 0F 05 [12:29:20]RasterBufferAndPrint [12:29:20]line Счет N : (1)342720 [12:29:20]line ИНН: 02508201610067 [12:29:20]line Контрольно-Кассовый Чек [12:29:20]line ПРОДАЖА [12:29:20]line ТРК (МРК, ГНК) : 44 [12:29:20]line Товар: 2710194210 [12:29:20]line ДТ-К-2 [12:29:20]line 6.570 * 76.20 [12:29:20]line = 500.63 [12:29:20]line НДС 12% НСП 1% [12:29:20]line > о реализуемом товаре [12:29:20]line ОКРУГЛЕНИЕ: -0.63 [12:29:20]line ИТОГО: 500.00 [12:29:20]line Внесено: 500.00 [12:29:20]line СДАЧА: 0.00 [12:29:20]line НСП 1% : 4.43 [12:29:20]line НДС 12% : 53.16 [12:29:20]line Наличными: 500.00 [12:29:20]line Безнал.: 0.00 [12:29:20]line Место: АЗС № 78 "Партнер Нефть" [12:29:20]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [12:29:20]line СНО: Общий режим [12:29:20]line Чек 110 20.10.2024 12:29 [12:29:20]line Смена: 114 ФФД: 1.0 [12:29:20]line ЗНМ: 0300000137 [12:29:20]line РНМ: 0000000000186857 [12:29:20]line Версия ККМ: v1.0 [12:29:20]line ФМ: 0000000002094219 [12:29:20]line ФД: 30328 [12:29:20]line ФПД: 92308623873906 [12:29:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T122928&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30328&fm=92308623873906&tin=02508201610067®Number=0000000000186857&sum=50000 [12:29:21]OFD Sender: Processing packet 30328 [packets to send 10, broken 9] [12:29:21]ProducePacketName [12:29:21]name=ofd_packets/00030328 [12:29:21]OFD Sender: To server: pG, [12:29:21]CommunicateWithHost lk.salyk.kg:30040 [12:29:21]ConnectInit lk.salyk.kg [12:29:21]written 0, free lines is 4095 [12:29:21]Connected sock=10 [12:29: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 0C 01 00 00 2D 44 04 01 9A F2 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 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 6E 00 00 00 F4 03 04 00 A8 F7 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 53 F4 46 BC 57 72 8D C5 12 DD 5F C8 32 F5 [12:29: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 8E 41 47 00 6B 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 78 76 00 00 F4 03 04 00 2C A2 14 67 B6 04 01 00 00 EF E9 BE 5D 6D 09 E9 C6 [12:29:21]CommunicateWithHost err = 0 [12:29:21]CheckOFDResponse [12:29:21]1017 (14) - 77093643461234 [12:29:21]1041 (16) - 0000000002094219 [12:29:21]1040 (4) - 30328 [12:29:21]1012 (4) - 20.10.2024 06:24 [12:29:21]1206 (1) - 0 [12:29:21]OFD Sender: Remove packet 30328 [12:29:21]ProducePacketName [12:29:21]name=ofd_packets/00030328 [12:29:21]NVStorageDeleteData [12:29:21]Write to MH i2c: 01 00 00 9A 81 1B [12:29:21]Write i2c OK [12:29:21]MH_I2C_Read... [12:29:21]Read from MH i2c: 01 [12:29:21]MH_I2C_Read... [12:29:21]Read from MH i2c: 01 07 00 [12:29:21]MH_I2C_Read... [12:29:21]Read from MH i2c: 01 07 00 9A 81 00 00 00 00 00 F0 0C 1E [12:29:21]RasterBufferAndPrint [12:29:21]line [12:29:21]line [12:29:21]line [12:29:21]line [12:29:21]line [12:29:21]written 0, free lines is 3318 [12:29:21]MH_Cut [12:29:21]Write to MH i2c: D1 01 00 A1 81 01 F4 [12:29:21]Write i2c OK [12:29:21]MH_I2C_Read... [12:29:21]Read from MH i2c: D1 [12:29:21]MH_I2C_Read... [12:29:21]Read from MH i2c: D1 01 00 [12:29:21]MH_I2C_Read... [12:29:21]Read from MH i2c: D1 01 00 A1 81 00 F3 [12:29:21]Write to MH i2c: 01 00 00 A2 81 23 [12:29:21]Write i2c OK [12:29:21]MH_I2C_Read... [12:29:21]OFD Sender: No OFD packet to send [12:29:22]*** Cut start [12:29:22]*** Partial cut [12:29:22]*** CUTSNS_PIN = 1 [12:29:22]*** CUTSNS_PIN = 0 [12:29:22]*** Brake cut motor [12:29:22]Read from MH i2c: 01 [12:29:22]MH_I2C_Read... [12:29:22]*** Stop cut motor [12:29:22]*** Cut end [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 A2 81 00 00 00 00 00 FF 0F 38 [12:29:22]process_action close_receipt done [12:29:22]requested_data is exist [12:29:22]produce_requested_data [12:29:22]requested_item fm.sn is exist - process it [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 A3 81 80 11 00 00 00 00 00 00 9E [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 A3 81 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: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]requested_item fd.num is exist - process it [12:29:22]SAM_PROTO_GetFieldsCounters [12:29:22]wFMCommunicate request_size=4 [12:29:22]MH_SAM_APDU [12:29:22]CAPDU: 80 13 00 00 [12:29:22]Write to MH i2c: E2 08 00 A4 81 80 13 00 00 00 00 00 00 A1 [12:29:22]Write i2c OK [12:29:22]MH_I2C_Read... [12:29:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:29:22]Read from MH i2c: E2 [12:29:22]MH_I2C_Read... [12:29:22]Read from MH i2c: E2 62 00 [12:29:22]MH_I2C_Read... [12:29:22]Read from MH i2c: E2 62 00 A4 81 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 71 [12:29: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 78 76 00 00 0E 04 04 00 72 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 [12:29:22]wFMCommunicate OK [12:29:22]SAM_PROTO_GetFieldsCounters done [12:29:22]requested_item shift.num is exist - process it [12:29:22]requested_item shift.opened is exist - process it [12:29:22]req_shift_opened [12:29:22]FM_GetShiftState [12:29:22]SAM_PROTO_GetShiftState [12:29:22]wFMCommunicate request_size=4 [12:29:22]MH_SAM_APDU [12:29:22]CAPDU: 80 13 01 00 [12:29:22]Write to MH i2c: E2 08 00 A5 81 80 13 01 00 00 00 00 00 A3 [12:29:22]Write i2c OK [12:29:22]MH_I2C_Read... [12:29:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:29:22]Read from MH i2c: E2 [12:29:22]MH_I2C_Read... [12:29:22]Read from MH i2c: E2 0E 00 [12:29:22]MH_I2C_Read... [12:29:22]Read from MH i2c: E2 0E 00 A5 81 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 89 [12:29:22]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [12:29:22]wFMCommunicate OK [12:29:22]SAM_PROTO_GetShiftState done [12:29:22]FM_GetShiftState done [12:29:22]req_shift_opened done [12:29:22]requested_item shift.open_date is exist - process it [12:29:22]req_shift_open_date [12:29:22]req_shift_open_date done [12:29:22]produce_requested_data done [12:29:22]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30328,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [12:29:22]process_action_free close_receipt [12:29:22]json_value_free [12:29:22]json_value_free done [12:29:22]process_json_proto returns [12:29:22]Send response to host [12:29:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30328,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [12:29:22]free response buf [12:29:22]execute_script done [12:29:22]execute_script returns [12:29:22]free content buf [12:29:22]Sock 7.Close socket [12:29:22]Sock 7.Thread stoped [12:29:26]OFD Sender: No OFD packet to send [12:29:31]OFD Sender: No OFD packet to send [12:29:36]OFD Sender: No OFD packet to send [12:29:41]OFD Sender: No OFD packet to send [12:29:46]OFD Sender: No OFD packet to send [12:29:51]OFD Sender: No OFD packet to send [12:29:56]OFD Sender: No OFD packet to send [12:30:01]OFD Sender: No OFD packet to send [12:30:06]OFD Sender: No OFD packet to send [12:30:11]OFD Sender: No OFD packet to send [12:30:16]OFD Sender: No OFD packet to send [12:30:21]OFD Sender: No OFD packet to send [12:30:26]OFD Sender: No OFD packet to send [12:30:31]OFD Sender: No OFD packet to send [12:30:36]OFD Sender: No OFD packet to send [12:30:41]OFD Sender: No OFD packet to send [12:30:46]OFD Sender: No OFD packet to send [12:30:51]OFD Sender: No OFD packet to send [12:30:56]OFD Sender: No OFD packet to send [12:31:01]OFD Sender: No OFD packet to send [12:31:06]OFD Sender: No OFD packet to send [12:31:11]OFD Sender: No OFD packet to send [12:31:16]OFD Sender: No OFD packet to send [12:31:21]OFD Sender: No OFD packet to send [12:31:26]OFD Sender: No OFD packet to send [12:31:31]OFD Sender: No OFD packet to send [12:31:36]OFD Sender: No OFD packet to send [12:31:41]OFD Sender: No OFD packet to send [12:31:46]OFD Sender: No OFD packet to send [12:31:51]OFD Sender: No OFD packet to send [12:31:56]OFD Sender: No OFD packet to send [12:32:01]OFD Sender: No OFD packet to send [12:32:06]OFD Sender: No OFD packet to send [12:32:11]OFD Sender: No OFD packet to send [12:32:16]OFD Sender: No OFD packet to send [12:32:21]OFD Sender: No OFD packet to send [12:32:26]OFD Sender: No OFD packet to send [12:32:31]OFD Sender: No OFD packet to send [12:32:36]OFD Sender: No OFD packet to send [12:32:41]OFD Sender: No OFD packet to send [12:32:46]OFD Sender: No OFD packet to send [12:32:51]OFD Sender: No OFD packet to send [12:32:56]OFD Sender: No OFD packet to send [12:33:01]OFD Sender: No OFD packet to send [12:33:07]OFD Sender: No OFD packet to send [12:33:12]OFD Sender: No OFD packet to send [12:33:17]OFD Sender: No OFD packet to send [12:33:22]OFD Sender: No OFD packet to send [12:33:27]OFD Sender: No OFD packet to send [12:33:31]accept exits with 9 [12:33:31]New connection [12:33:31]New thread 3067370852 created [12:33:31]Thread 3067514212 joined [12:33:31]Waiting for new connection... [12:33:31] Sock 9.Parse request [12:33:31]Sock 9.Check first char [12:33:31]Sock 9.First char is OK [12:33:31]request: POST /json_proto HTTP/1.0 [12:33:31]Method: POST [12:33:31]URL: /json_proto [12:33:31]Method is POST - this is cgi request [12:33:31]url: /json_proto [12:33:31]query_string will be loaded in cgi processing [12:33:31]execute_cgi json_proto POST (null) [12:33:31]execute_cgi path=json_proto method=POST [12:33:31]POST find Content-Length [12:33:31]Host: 172.17.51.3:8080 [12:33:31]Content-Length: 677 [12:33:31]Content-Type: application/json [12:33:31] [12:33:31]POST finish read [12:33:31]Found Content-Length = 677 [12:33:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342721", "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" ] } } [12:33:31]execute_script... [12:33: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)342721", "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" ] } } [12:33:31]POST & json_proto [12:33:31]process_json_proto [12:33:31]json parsed OK: [12:33:31]protocol is kg_v1.0 [12:33:31]action value=close_receipt [12:33:31]process_action close_receipt [12:33:31]cmd_close_receipt [12:33:31]MH_GetDate [12:33:31]Write to MH i2c: F0 00 00 A6 81 16 [12:33:31]Write i2c OK [12:33:31]MH_I2C_Read... [12:33:31]Read from MH i2c: F0 [12:33:31]MH_I2C_Read... [12:33:31]Read from MH i2c: F0 09 00 [12:33:31]MH_I2C_Read... [12:33:31]Read from MH i2c: F0 09 00 A6 81 00 A4 F8 14 67 04 C1 95 66 F6 [12:33:31]GetLastDocTimeStamp 1729427368 [12:33:31]current date 1729427620 [12:33:31]FM_GetShiftState [12:33:31]SAM_PROTO_GetShiftState [12:33:31]wFMCommunicate request_size=4 [12:33:31]MH_SAM_APDU [12:33:31]CAPDU: 80 13 01 00 [12:33:31]Write to MH i2c: E2 08 00 A7 81 80 13 01 00 00 00 00 00 A5 [12:33:31]Write i2c OK [12:33:31]MH_I2C_Read... [12:33:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:33:31]Read from MH i2c: E2 [12:33:31]MH_I2C_Read... [12:33:31]Read from MH i2c: E2 0E 00 [12:33:31]MH_I2C_Read... [12:33:31]Read from MH i2c: E2 0E 00 A7 81 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 8B [12:33:31]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [12:33:31]wFMCommunicate OK [12:33:31]SAM_PROTO_GetShiftState done [12:33:31]FM_GetShiftState done [12:33:31]opened in 1729384718 [12:33:31]opened+sec_in_day 1729471118 [12:33:31]quantity*price = 50041 [12:33:31]sum+1 = 50042 [12:33:31]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 СНО: Общий режим Чек 111 20.10.2024 12:33 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30329 ФПД: 216394680379156 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T123340&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30329&fm=216394680379156&tin=02508201610067®Number=0000000000186857&sum=50000 [12:33:32]StoreToDocumentArchive [12:33:32]shift 114 fd 30329 [12:33:32]save to /storage/0114/doc_00030329 [12:33:32]save last doc name /storage/0114/doc_00030329 to /storage/kkm_last_doc_name [12:33:32]save OK [12:33:32]Clear old archive folders... [12:33:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:33:32]tlvbuf is 00D04620 [12:33:32]SAM_PROTO_ClearQueue [12:33:32]wFMCommunicate request_size=4 [12:33:32]MH_SAM_APDU [12:33:32]CAPDU: 80 09 00 00 [12:33:32]Write to MH i2c: E2 08 00 B4 81 80 09 00 00 00 00 00 00 A7 [12:33:32]Write i2c OK [12:33:32]MH_I2C_Read... [12:33:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:33:32]Read from MH i2c: E2 [12:33:32]MH_I2C_Read... [12:33:32]Read from MH i2c: E2 03 00 [12:33:32]MH_I2C_Read... [12:33:32]Read from MH i2c: E2 03 00 B4 81 00 90 00 A9 [12:33:32]RAPDU: 90 00 [12:33:32]wFMCommunicate OK [12:33:32]SAM_PROTO_ClearQueue done [12:33:32]KKMCreateOFDPacket [12:33:32]OFDProtocolAddRootSTLVToBuf [12:33:32]FM_MakeSignedData [12:33:32]FM_MakeSignedData [12:33:32]SAM_PROTO_SignData [12:33:32]wFMCommunicate request_size=4 [12:33:32]MH_SAM_APDU [12:33:32]CAPDU: 80 0D 01 02 [12:33:32]Write to MH i2c: E2 08 00 B5 81 80 0D 01 02 00 00 00 00 AF [12:33:32]Write i2c OK [12:33:32]MH_I2C_Read... [12:33:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:33:32]Read from MH i2c: E2 [12:33:32]MH_I2C_Read... [12:33:32]Read from MH i2c: E2 03 00 [12:33:32]MH_I2C_Read... [12:33:32]Read from MH i2c: E2 03 00 B5 81 00 90 00 AA [12:33:32]RAPDU: 90 00 [12:33:32]wFMCommunicate OK [12:33:32]wFMCommunicate request_size=255 [12:33:32]MH_SAM_APDU [12:33: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 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 6F 00 00 00 F4 03 04 00 A4 F8 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 C4 [12:33:32]Write to MH i2c: E2 02 01 B6 81 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 6F 00 00 00 F4 03 04 00 A4 F8 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 C4 00 00 EB [12:33:32]Write i2c OK [12:33:32]MH_I2C_Read... [12:33:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:33:32]Read from MH i2c: E2 [12:33:32]MH_I2C_Read... [12:33:32]Read from MH i2c: E2 03 00 [12:33:32]MH_I2C_Read... [12:33:32]Read from MH i2c: E2 03 00 B6 81 00 90 00 AB [12:33:32]RAPDU: 90 00 [12:33:32]wFMCommunicate OK [12:33:32]wFMCommunicate request_size=10 [12:33:32]MH_SAM_APDU [12:33:32]CAPDU: 80 0D 02 02 05 CF 50 0E 27 14 [12:33:32]Write to MH i2c: E2 0D 00 B7 81 80 0D 02 02 05 00 CF 50 0E 27 14 00 00 24 [12:33:32]Write i2c OK [12:33:32]MH_I2C_Read... [12:33:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:33:32]Read from MH i2c: E2 [12:33:32]MH_I2C_Read... [12:33:32]Read from MH i2c: E2 03 00 [12:33:32]MH_I2C_Read... [12:33:32]Read from MH i2c: E2 03 00 B7 81 00 90 00 AC [12:33:32]RAPDU: 90 00 [12:33:32]wFMCommunicate OK [12:33:32]wFMCommunicate request_size=4 [12:33:32]MH_SAM_APDU [12:33:32]CAPDU: 80 0D 03 02 [12:33:32]Write to MH i2c: E2 08 00 B8 81 80 0D 03 02 00 00 00 00 B4 [12:33:32]Write i2c OK [12:33:32]MH_I2C_Read... [12:33:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:33:32]Read from MH i2c: E2 [12:33:32]MH_I2C_Read... [12:33:32]Read from MH i2c: E2 0B 00 [12:33:32]MH_I2C_Read... [12:33:32]Read from MH i2c: E2 0B 00 B8 81 00 C2 E6 A1 01 44 57 0F BF 90 00 68 [12:33:32]RAPDU: C2 E6 A1 01 44 57 0F BF 90 00 [12:33:32]wFMCommunicate OK [12:33:32]SAM_PROTO_SignData done [12:33:32]FM_MakeSignedData done [12:33:32]CreateOFDProtocolMessage [12:33:32]wFMCommunicate request_size=4 [12:33:32]MH_SAM_APDU [12:33:32]CAPDU: 80 11 00 00 [12:33:32]Write to MH i2c: E2 08 00 B9 81 80 11 00 00 00 00 00 00 B4 [12:33:32]Write i2c OK [12:33:32]MH_I2C_Read... [12:33:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:33:32]Read from MH i2c: E2 [12:33:32]MH_I2C_Read... [12:33:32]Read from MH i2c: E2 17 00 [12:33:32]MH_I2C_Read... [12:33:32]Read from MH i2c: E2 17 00 B9 81 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 02 [12: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 [12:33:32]wFMCommunicate OK [12:33:32]CreateOFDProtocolMessage done [12:33:32]OFDSenderStorePacket 30329 [12:33:32]StoreOFDPacket docnum=30329 [12: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 AD 76 07 01 3E 0F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 6F 00 00 00 F4 03 04 00 A4 F8 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 C4 CF 50 0E 27 14 C2 E6 A1 01 44 57 0F BF [12:33:32]CheckFolder [12:33:32]dirname=/storage/ofd_packets [12:33:32]CheckFolder done [12:33:32]ProducePacketName [12:33:32]name=ofd_packets/00030329 [12:33:32]NVStorageSaveData ofd_packets/00030329 [12:33:32]File name is /storage/ofd_packets/00030329 [12:33:32]Write 301 bytes [12:33:32]NVStorageSaveData done [12:33:32]OFDSenderStorePacket done [12:33:32]KKMCreateOFDPacket done [12:33:32]NVStorageSaveData kkm_last_timestamp [12:33:32]File name is /storage/kkm_last_timestamp [12:33:32]Write 4 bytes [12:33:32]NVStorageSaveData done [12:33:32]ExternCall_PrintAddStr [12:33:32]wPrintStart [12:33:32]Write to MH i2c: 01 00 00 BA 81 3B [12:33:32]Write i2c OK [12:33:32]MH_I2C_Read... [12:33:32]Read from MH i2c: 01 [12:33:32]MH_I2C_Read... [12:33:32]Read from MH i2c: 01 07 00 [12:33:32]MH_I2C_Read... [12:33:32]Read from MH i2c: 01 07 00 BA 81 00 00 00 00 00 FF 0F 50 [12:33:32]RasterBufferAndPrint [12:33:32]line Счет N : (1)342721 [12:33:32]line ИНН: 02508201610067 [12:33:32]line Контрольно-Кассовый Чек [12:33:32]line ПРОДАЖА [12:33:32]line ТРК (МРК, ГНК) : 53 [12:33:32]line Товар: 2710124130 [12:33:32]line Аи-92-К-2 [12:33:32]line 7.480 * 66.90 [12:33:32]line = 500.41 [12:33:32]line НДС 12% НСП 1% [12:33:32]line > о реализуемом товаре [12:33:32]line ОКРУГЛЕНИЕ: -0.41 [12:33:32]line ИТОГО: 500.00 [12:33:32]line Внесено: 500.00 [12:33:32]line СДАЧА: 0.00 [12:33:32]line НСП 1% : 4.43 [12:33:32]line НДС 12% : 53.14 [12:33:32]line Наличными: 500.00 [12:33:32]line Безнал.: 0.00 [12:33:32]line Место: АЗС № 78 "Партнер Нефть" [12:33:32]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [12:33:32]line СНО: Общий режим [12:33:32]line Чек 111 20.10.2024 12:33 [12:33:32]line Смена: 114 ФФД: 1.0 [12:33:32]line ЗНМ: 0300000137 [12:33:32]line РНМ: 0000000000186857 [12:33:32]line Версия ККМ: v1.0 [12:33:32]line ФМ: 0000000002094219 [12:33:32]line ФД: 30329 [12:33:32]line ФПД: 216394680379156 [12:33:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T123340&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30329&fm=216394680379156&tin=02508201610067®Number=0000000000186857&sum=50000 [12:33:33]OFD Sender: Processing packet 30329 [packets to send 10, broken 9] [12:33:33]ProducePacketName [12:33:33]name=ofd_packets/00030329 [12:33:33]OFD Sender: To server: pG, [12:33:33]CommunicateWithHost lk.salyk.kg:30040 [12:33:33]ConnectInit lk.salyk.kg [12:33:33]written 0, free lines is 4095 [12:33:33]Connected sock=10 [12:33: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 AD 76 07 01 3E 0F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 6F 00 00 00 F4 03 04 00 A4 F8 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 C4 CF 50 0E 27 14 C2 E6 A1 01 44 57 0F BF [12:33: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 85 91 47 00 20 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 79 76 00 00 F4 03 04 00 28 A3 14 67 B6 04 01 00 00 C1 AA F8 C2 09 10 C1 9B [12:33:33]CommunicateWithHost err = 0 [12:33:33]CheckOFDResponse [12:33:33]1017 (14) - 77093643461234 [12:33:33]1041 (16) - 0000000002094219 [12:33:33]1040 (4) - 30329 [12:33:33]1012 (4) - 20.10.2024 06:28 [12:33:33]1206 (1) - 0 [12:33:33]OFD Sender: Remove packet 30329 [12:33:33]ProducePacketName [12:33:33]name=ofd_packets/00030329 [12:33:33]NVStorageDeleteData [12:33:33]Write to MH i2c: 01 00 00 E5 81 66 [12:33:33]Write i2c OK [12:33:33]MH_I2C_Read... [12:33:33]Read from MH i2c: 01 [12:33:33]MH_I2C_Read... [12:33:33]Read from MH i2c: 01 07 00 [12:33:33]MH_I2C_Read... [12:33:33]Read from MH i2c: 01 07 00 E5 81 00 00 00 00 00 E1 0C 5A [12:33:33]RasterBufferAndPrint [12:33:33]line [12:33:33]line [12:33:33]line [12:33:33]line [12:33:33]line [12:33:33]written 0, free lines is 3302 [12:33:33]MH_Cut [12:33:33]Write to MH i2c: D1 01 00 EC 81 01 3F [12:33:33]Write i2c OK [12:33:33]MH_I2C_Read... [12:33:33]Read from MH i2c: D1 [12:33:33]MH_I2C_Read... [12:33:33]Read from MH i2c: D1 01 00 [12:33:33]MH_I2C_Read... [12:33:33]Read from MH i2c: D1 01 00 EC 81 00 3E [12:33:33]Write to MH i2c: 01 00 00 ED 81 6E [12:33:33]Write i2c OK [12:33:33]MH_I2C_Read... [12:33:34]OFD Sender: No OFD packet to send [12:33:34]*** Cut start [12:33:34]*** Partial cut [12:33:34]*** CUTSNS_PIN = 1 [12:33:34]*** CUTSNS_PIN = 0 [12:33:34]*** Brake cut motor [12:33:34]Read from MH i2c: 01 [12:33:34]MH_I2C_Read... [12:33:34]*** Stop cut motor [12:33:34]*** Cut end [12:33:34]Read from MH i2c: 01 07 00 [12:33:34]MH_I2C_Read... [12:33:34]Read from MH i2c: 01 07 00 ED 81 00 00 00 00 00 FF 0F 83 [12:33:34]process_action close_receipt done [12:33:34]requested_data is exist [12:33:34]produce_requested_data [12:33:34]requested_item fm.sn is exist - process it [12:33:34]wFMCommunicate request_size=4 [12:33:34]MH_SAM_APDU [12:33:34]CAPDU: 80 11 00 00 [12:33:34]Write to MH i2c: E2 08 00 EE 81 80 11 00 00 00 00 00 00 E9 [12:33:34]Write i2c OK [12:33:34]MH_I2C_Read... [12:33:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:33:35]Read from MH i2c: E2 [12:33:35]MH_I2C_Read... [12:33:35]Read from MH i2c: E2 17 00 [12:33:35]MH_I2C_Read... [12:33:35]Read from MH i2c: E2 17 00 EE 81 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:33: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:33:35]wFMCommunicate OK [12:33:35]requested_item fd.num is exist - process it [12:33:35]SAM_PROTO_GetFieldsCounters [12:33:35]wFMCommunicate request_size=4 [12:33:35]MH_SAM_APDU [12:33:35]CAPDU: 80 13 00 00 [12:33:35]Write to MH i2c: E2 08 00 EF 81 80 13 00 00 00 00 00 00 EC [12:33:35]Write i2c OK [12:33:35]MH_I2C_Read... [12:33:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:33:35]Read from MH i2c: E2 [12:33:35]MH_I2C_Read... [12:33:35]Read from MH i2c: E2 62 00 [12:33:35]MH_I2C_Read... [12:33:35]Read from MH i2c: E2 62 00 EF 81 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 C0 [12:33: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 79 76 00 00 0E 04 04 00 72 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 [12:33:35]wFMCommunicate OK [12:33:35]SAM_PROTO_GetFieldsCounters done [12:33:35]requested_item shift.num is exist - process it [12:33:35]requested_item shift.opened is exist - process it [12:33:35]req_shift_opened [12:33:35]FM_GetShiftState [12:33:35]SAM_PROTO_GetShiftState [12:33:35]wFMCommunicate request_size=4 [12:33:35]MH_SAM_APDU [12:33:35]CAPDU: 80 13 01 00 [12:33:35]Write to MH i2c: E2 08 00 F0 81 80 13 01 00 00 00 00 00 EE [12:33:35]Write i2c OK [12:33:35]MH_I2C_Read... [12:33:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:33:35]Read from MH i2c: E2 [12:33:35]MH_I2C_Read... [12:33:35]Read from MH i2c: E2 0E 00 [12:33:35]MH_I2C_Read... [12:33:35]Read from MH i2c: E2 0E 00 F0 81 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 D4 [12:33:35]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [12:33:35]wFMCommunicate OK [12:33:35]SAM_PROTO_GetShiftState done [12:33:35]FM_GetShiftState done [12:33:35]req_shift_opened done [12:33:35]requested_item shift.open_date is exist - process it [12:33:35]req_shift_open_date [12:33:35]req_shift_open_date done [12:33:35]produce_requested_data done [12:33:35]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30329,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [12:33:35]process_action_free close_receipt [12:33:35]json_value_free [12:33:35]json_value_free done [12:33:35]process_json_proto returns [12:33:35]Send response to host [12:33:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30329,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [12:33:35]free response buf [12:33:35]execute_script done [12:33:35]execute_script returns [12:33:35]free content buf [12:33:35]Sock 9.Close socket [12:33:35]Sock 9.Thread stoped [12:33:39]OFD Sender: No OFD packet to send [12:33:44]OFD Sender: No OFD packet to send [12:33:49]OFD Sender: No OFD packet to send [12:33:54]OFD Sender: No OFD packet to send [12:33:59]OFD Sender: No OFD packet to send [12:34:04]OFD Sender: No OFD packet to send [12:34:09]OFD Sender: No OFD packet to send [12:34:14]OFD Sender: No OFD packet to send [12:34:19]OFD Sender: No OFD packet to send [12:34:24]OFD Sender: No OFD packet to send [12:34:29]OFD Sender: No OFD packet to send [12:34:34]OFD Sender: No OFD packet to send [12:34:39]OFD Sender: No OFD packet to send [12:34:44]OFD Sender: No OFD packet to send [12:34:49]OFD Sender: No OFD packet to send [12:34:54]OFD Sender: No OFD packet to send [12:34:59]OFD Sender: No OFD packet to send [12:35:04]OFD Sender: No OFD packet to send [12:35:09]OFD Sender: No OFD packet to send [12:35:14]OFD Sender: No OFD packet to send [12:35:19]OFD Sender: No OFD packet to send [12:35:24]OFD Sender: No OFD packet to send [12:35:29]OFD Sender: No OFD packet to send [12:35:34]OFD Sender: No OFD packet to send [12:35:39]OFD Sender: No OFD packet to send [12:35:44]OFD Sender: No OFD packet to send [12:35:49]OFD Sender: No OFD packet to send [12:35:54]OFD Sender: No OFD packet to send [12:35:59]OFD Sender: No OFD packet to send [12:36:04]OFD Sender: No OFD packet to send [12:36:09]OFD Sender: No OFD packet to send [12:36:14]OFD Sender: No OFD packet to send [12:36:19]OFD Sender: No OFD packet to send [12:36:24]OFD Sender: No OFD packet to send [12:36:29]OFD Sender: No OFD packet to send [12:36:34]OFD Sender: No OFD packet to send [12:36:39]OFD Sender: No OFD packet to send [12:36:44]OFD Sender: No OFD packet to send [12:36:49]OFD Sender: No OFD packet to send [12:36:54]OFD Sender: No OFD packet to send [12:36:59]OFD Sender: No OFD packet to send [12:37:04]OFD Sender: No OFD packet to send [12:37:09]OFD Sender: No OFD packet to send [12:37:14]OFD Sender: No OFD packet to send [12:37:19]OFD Sender: No OFD packet to send [12:37:24]OFD Sender: No OFD packet to send [12:37:29]OFD Sender: No OFD packet to send [12:37:34]OFD Sender: No OFD packet to send [12:37:39]OFD Sender: No OFD packet to send [12:37:44]OFD Sender: No OFD packet to send [12:37:49]OFD Sender: No OFD packet to send [12:37:54]OFD Sender: No OFD packet to send [12:37:59]OFD Sender: No OFD packet to send [12:38:04]OFD Sender: No OFD packet to send [12:38:09]OFD Sender: No OFD packet to send [12:38:14]OFD Sender: No OFD packet to send [12:38:19]OFD Sender: No OFD packet to send [12:38:24]OFD Sender: No OFD packet to send [12:38:29]OFD Sender: No OFD packet to send [12:38:31]accept exits with 7 [12:38:31]New connection [12:38:31]New thread 3067514212 created [12:38:31]Thread 3067370852 joined [12:38:31]Waiting for new connection... [12:38:31] Sock 7.Parse request [12:38:31]Sock 7.Check first char [12:38:31]Sock 7.First char is OK [12:38:31]request: POST /json_proto HTTP/1.0 [12:38:31]Method: POST [12:38:31]URL: /json_proto [12:38:31]Method is POST - this is cgi request [12:38:31]url: /json_proto [12:38:31]query_string will be loaded in cgi processing [12:38:31]execute_cgi json_proto POST (null) [12:38:31]execute_cgi path=json_proto method=POST [12:38:31]POST find Content-Length [12:38:31]Host: 172.17.51.3:8080 [12:38:31]Content-Length: 682 [12:38:31]Content-Type: application/json [12:38:31] [12:38:31]POST finish read [12:38:31]Found Content-Length = 682 [12:38:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342722", "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" : 15.030, "sum" : 1005.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1005.00, "total" : 1005.00, "payments": [ { "type": 0, "sum" : 1005.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:38:31]execute_script... [12:38:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342722", "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" : 15.030, "sum" : 1005.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1005.00, "total" : 1005.00, "payments": [ { "type": 0, "sum" : 1005.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:38:31]POST & json_proto [12:38:31]process_json_proto [12:38:31]json parsed OK: [12:38:31]protocol is kg_v1.0 [12:38:31]action value=close_receipt [12:38:31]process_action close_receipt [12:38:31]cmd_close_receipt [12:38:31]MH_GetDate [12:38:31]Write to MH i2c: F0 00 00 F1 81 61 [12:38:31]Write i2c OK [12:38:31]MH_I2C_Read... [12:38:31]Read from MH i2c: F0 [12:38:31]MH_I2C_Read... [12:38:31]Read from MH i2c: F0 09 00 [12:38:31]MH_I2C_Read... [12:38:31]Read from MH i2c: F0 09 00 F1 81 00 D0 F9 14 67 04 C1 95 66 6E [12:38:31]GetLastDocTimeStamp 1729427620 [12:38:31]current date 1729427920 [12:38:31]FM_GetShiftState [12:38:31]SAM_PROTO_GetShiftState [12:38:31]wFMCommunicate request_size=4 [12:38:31]MH_SAM_APDU [12:38:31]CAPDU: 80 13 01 00 [12:38:31]Write to MH i2c: E2 08 00 F2 81 80 13 01 00 00 00 00 00 F0 [12:38:31]Write i2c OK [12:38:31]MH_I2C_Read... [12:38:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:38:31]Read from MH i2c: E2 [12:38:31]MH_I2C_Read... [12:38:31]Read from MH i2c: E2 0E 00 [12:38:31]MH_I2C_Read... [12:38:31]Read from MH i2c: E2 0E 00 F2 81 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 D6 [12:38:31]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [12:38:31]wFMCommunicate OK [12:38:31]SAM_PROTO_GetShiftState done [12:38:31]FM_GetShiftState done [12:38:31]opened in 1729384718 [12:38:31]opened+sec_in_day 1729471118 [12:38:31]quantity*price = 100550 [12:38:31]sum+1 = 100552 [12:38:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1005.00 Внесено: 1005.00 СДАЧА: 0.00 НСП 1% : 8.90 НДС 12% : 106.78 Наличными: 1005.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 112 20.10.2024 12:38 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30330 ФПД: 96284685506749 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T123840&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30330&fm=96284685506749&tin=02508201610067®Number=0000000000186857&sum=100500 [12:38:32]StoreToDocumentArchive [12:38:32]shift 114 fd 30330 [12:38:32]save to /storage/0114/doc_00030330 [12:38:32]save last doc name /storage/0114/doc_00030330 to /storage/kkm_last_doc_name [12:38:32]save OK [12:38:32]Clear old archive folders... [12:38:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:38:32]tlvbuf is 00CDF8B0 [12:38:32]SAM_PROTO_ClearQueue [12:38:32]wFMCommunicate request_size=4 [12:38:32]MH_SAM_APDU [12:38:32]CAPDU: 80 09 00 00 [12:38:32]Write to MH i2c: E2 08 00 FF 81 80 09 00 00 00 00 00 00 F2 [12:38:32]Write i2c OK [12:38:32]MH_I2C_Read... [12:38:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:38:32]Read from MH i2c: E2 [12:38:32]MH_I2C_Read... [12:38:32]Read from MH i2c: E2 03 00 [12:38:32]MH_I2C_Read... [12:38:32]Read from MH i2c: E2 03 00 FF 81 00 90 00 F4 [12:38:32]RAPDU: 90 00 [12:38:32]wFMCommunicate OK [12:38:32]SAM_PROTO_ClearQueue done [12:38:32]KKMCreateOFDPacket [12:38:32]OFDProtocolAddRootSTLVToBuf [12:38:32]FM_MakeSignedData [12:38:32]FM_MakeSignedData [12:38:32]SAM_PROTO_SignData [12:38:32]wFMCommunicate request_size=4 [12:38:32]MH_SAM_APDU [12:38:32]CAPDU: 80 0D 01 02 [12:38:32]Write to MH i2c: E2 08 00 00 82 80 0D 01 02 00 00 00 00 FB [12:38:32]Write i2c OK [12:38:32]MH_I2C_Read... [12:38:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:38:32]Read from MH i2c: E2 [12:38:32]MH_I2C_Read... [12:38:32]Read from MH i2c: E2 03 00 [12:38:32]MH_I2C_Read... [12:38:32]Read from MH i2c: E2 03 00 00 82 00 90 00 F6 [12:38:32]RAPDU: 90 00 [12:38:32]wFMCommunicate OK [12:38:32]wFMCommunicate request_size=255 [12:38:32]MH_SAM_APDU [12:38:32]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 B6 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 C7 88 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 88 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7A 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 29 00 00 00 00 07 04 06 00 94 88 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 D0 F9 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 57 [12:38:32]Write to MH i2c: E2 02 01 01 82 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 C7 88 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 88 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7A 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 29 00 00 00 00 07 04 06 00 94 88 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 D0 F9 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 57 00 00 86 [12:38:32]Write i2c OK [12:38:32]MH_I2C_Read... [12:38:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:38:33]Read from MH i2c: E2 [12:38:33]MH_I2C_Read... [12:38:33]Read from MH i2c: E2 03 00 [12:38:33]MH_I2C_Read... [12:38:33]Read from MH i2c: E2 03 00 01 82 00 90 00 F7 [12:38:33]RAPDU: 90 00 [12:38:33]wFMCommunicate OK [12:38:33]wFMCommunicate request_size=10 [12:38:33]MH_SAM_APDU [12:38:33]CAPDU: 80 0D 02 02 05 92 06 7A 18 BD [12:38:33]Write to MH i2c: E2 0D 00 02 82 80 0D 02 02 05 00 92 06 7A 18 BD 00 00 EF [12:38:33]Write i2c OK [12:38:33]MH_I2C_Read... [12:38:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:38:33]Read from MH i2c: E2 [12:38:33]MH_I2C_Read... [12:38:33]Read from MH i2c: E2 03 00 [12:38:33]MH_I2C_Read... [12:38:33]Read from MH i2c: E2 03 00 02 82 00 90 00 F8 [12:38:33]RAPDU: 90 00 [12:38:33]wFMCommunicate OK [12:38:33]wFMCommunicate request_size=4 [12:38:33]MH_SAM_APDU [12:38:33]CAPDU: 80 0D 03 02 [12:38:33]Write to MH i2c: E2 08 00 03 82 80 0D 03 02 00 00 00 00 00 [12:38:33]Write i2c OK [12:38:33]MH_I2C_Read... [12:38:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:38:33]Read from MH i2c: E2 [12:38:33]MH_I2C_Read... [12:38:33]Read from MH i2c: E2 0B 00 [12:38:33]MH_I2C_Read... [12:38:33]Read from MH i2c: E2 0B 00 03 82 00 A5 81 2D 3F E6 BC E8 74 90 00 91 [12:38:33]RAPDU: A5 81 2D 3F E6 BC E8 74 90 00 [12:38:33]wFMCommunicate OK [12:38:33]SAM_PROTO_SignData done [12:38:33]FM_MakeSignedData done [12:38:33]CreateOFDProtocolMessage [12:38:33]wFMCommunicate request_size=4 [12:38:33]MH_SAM_APDU [12:38:33]CAPDU: 80 11 00 00 [12:38:33]Write to MH i2c: E2 08 00 04 82 80 11 00 00 00 00 00 00 00 [12:38:33]Write i2c OK [12:38:33]MH_I2C_Read... [12:38:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:38:33]Read from MH i2c: E2 [12:38:33]MH_I2C_Read... [12:38:33]Read from MH i2c: E2 17 00 [12:38:33]MH_I2C_Read... [12:38:33]Read from MH i2c: E2 17 00 04 82 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 4E [12: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 [12:38:33]wFMCommunicate OK [12:38:33]CreateOFDProtocolMessage done [12:38:33]OFDSenderStorePacket 30330 [12:38:33]StoreOFDPacket docnum=30330 [12:38: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 53 AA 07 01 2A 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 B6 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 C7 88 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 88 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7A 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 29 00 00 00 00 07 04 06 00 94 88 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 D0 F9 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 57 92 06 7A 18 BD A5 81 2D 3F E6 BC E8 74 [12:38:33]CheckFolder [12:38:33]dirname=/storage/ofd_packets [12:38:33]CheckFolder done [12:38:33]ProducePacketName [12:38:33]name=ofd_packets/00030330 [12:38:33]NVStorageSaveData ofd_packets/00030330 [12:38:33]File name is /storage/ofd_packets/00030330 [12:38:33]Write 301 bytes [12:38:33]NVStorageSaveData done [12:38:33]OFDSenderStorePacket done [12:38:33]KKMCreateOFDPacket done [12:38:33]NVStorageSaveData kkm_last_timestamp [12:38:33]File name is /storage/kkm_last_timestamp [12:38:33]Write 4 bytes [12:38:33]NVStorageSaveData done [12:38:33]ExternCall_PrintAddStr [12:38:33]wPrintStart [12:38:33]Write to MH i2c: 01 00 00 05 82 87 [12:38:33]Write i2c OK [12:38:33]MH_I2C_Read... [12:38:33]Read from MH i2c: 01 [12:38:33]MH_I2C_Read... [12:38:33]Read from MH i2c: 01 07 00 [12:38:33]MH_I2C_Read... [12:38:33]Read from MH i2c: 01 07 00 05 82 00 00 00 00 00 FF 0F 9C [12:38:33]RasterBufferAndPrint [12:38:33]line Счет N : (1)342722 [12:38:33]line ИНН: 02508201610067 [12:38:33]line Контрольно-Кассовый Чек [12:38:33]line ПРОДАЖА [12:38:33]line ТРК (МРК, ГНК) : 43 [12:38:33]line Товар: 2710124130 [12:38:33]line Аи-92-К-2 [12:38:33]line 15.030 * 66.90 [12:38:33]line = 1005.51 [12:38:33]line НДС 12% НСП 1% [12:38:33]line > о реализуемом товаре [12:38:33]line ОКРУГЛЕНИЕ: -0.51 [12:38:33]line ИТОГО: 1005.00 [12:38:33]line Внесено: 1005.00 [12:38:33]line СДАЧА: 0.00 [12:38:33]line НСП 1% : 8.90 [12:38:33]line НДС 12% : 106.78 [12:38:33]line Наличными: 1005.00 [12:38:33]line Безнал.: 0.00 [12:38:33]line Место: АЗС № 78 "Партнер Нефть" [12:38:33]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [12:38:33]line СНО: Общий режим [12:38:33]line Чек 112 20.10.2024 12:38 [12:38:33]line Смена: 114 ФФД: 1.0 [12:38:33]line ЗНМ: 0300000137 [12:38:33]line РНМ: 0000000000186857 [12:38:33]line Версия ККМ: v1.0 [12:38:33]line ФМ: 0000000002094219 [12:38:33]line ФД: 30330 [12:38:33]line ФПД: 96284685506749 [12:38:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T123840&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30330&fm=96284685506749&tin=02508201610067®Number=0000000000186857&sum=100500 [12:38:33]OFD Sender: Processing packet 30330 [packets to send 10, broken 9] [12:38:33]ProducePacketName [12:38:33]name=ofd_packets/00030330 [12:38:33]OFD Sender: To server: pG, [12:38:33]CommunicateWithHost lk.salyk.kg:30040 [12:38:33]ConnectInit lk.salyk.kg [12:38:33]written 0, free lines is 4095 [12:38:33]Connected sock=10 [12:38: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 53 AA 07 01 2A 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 B6 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 C7 88 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 88 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7A 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 29 00 00 00 00 07 04 06 00 94 88 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 D0 F9 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 57 92 06 7A 18 BD A5 81 2D 3F E6 BC E8 74 [12:38: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 67 47 00 C8 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 7A 76 00 00 F4 03 04 00 54 A4 14 67 B6 04 01 00 00 7D BA 15 F9 9C 16 9D 14 [12:38:33]CommunicateWithHost err = 0 [12:38:33]CheckOFDResponse [12:38:33]1017 (14) - 77093643461234 [12:38:33]1041 (16) - 0000000002094219 [12:38:33]1040 (4) - 30330 [12:38:33]1012 (4) - 20.10.2024 06:33 [12:38:33]1206 (1) - 0 [12:38:33]OFD Sender: Remove packet 30330 [12:38:33]ProducePacketName [12:38:33]name=ofd_packets/00030330 [12:38:33]NVStorageDeleteData [12:38:33]Write to MH i2c: 01 00 00 30 82 B2 [12:38:33]Write i2c OK [12:38:33]MH_I2C_Read... [12:38:33]Read from MH i2c: 01 [12:38:33]MH_I2C_Read... [12:38:33]Read from MH i2c: 01 07 00 [12:38:33]MH_I2C_Read... [12:38:33]Read from MH i2c: 01 07 00 30 82 00 00 00 00 00 F8 0C BD [12:38:33]RasterBufferAndPrint [12:38:33]line [12:38:33]line [12:38:33]line [12:38:33]line [12:38:33]line [12:38:33]written 0, free lines is 3330 [12:38:33]MH_Cut [12:38:33]Write to MH i2c: D1 01 00 37 82 01 8B [12:38:33]Write i2c OK [12:38:33]MH_I2C_Read... [12:38:33]Read from MH i2c: D1 [12:38:33]MH_I2C_Read... [12:38:33]Read from MH i2c: D1 01 00 [12:38:33]MH_I2C_Read... [12:38:33]Read from MH i2c: D1 01 00 37 82 00 8A [12:38:33]Write to MH i2c: 01 00 00 38 82 BA [12:38:33]Write i2c OK [12:38:33]MH_I2C_Read... [12:38:34]OFD Sender: No OFD packet to send [12:38:34]*** Cut start [12:38:34]*** Partial cut [12:38:34]*** CUTSNS_PIN = 1 [12:38:34]*** CUTSNS_PIN = 0 [12:38:34]*** Brake cut motor [12:38:35]Read from MH i2c: 01 [12:38:35]MH_I2C_Read... [12:38:35]*** Stop cut motor [12:38:35]*** Cut end [12:38:35]Read from MH i2c: 01 07 00 [12:38:35]MH_I2C_Read... [12:38:35]Read from MH i2c: 01 07 00 38 82 00 00 00 00 00 FF 0F CF [12:38:35]process_action close_receipt done [12:38:35]requested_data is exist [12:38:35]produce_requested_data [12:38:35]requested_item fm.sn is exist - process it [12:38:35]wFMCommunicate request_size=4 [12:38:35]MH_SAM_APDU [12:38:35]CAPDU: 80 11 00 00 [12:38:35]Write to MH i2c: E2 08 00 39 82 80 11 00 00 00 00 00 00 35 [12:38:35]Write i2c OK [12:38:35]MH_I2C_Read... [12:38:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:38:35]Read from MH i2c: E2 [12:38:35]MH_I2C_Read... [12:38:35]Read from MH i2c: E2 17 00 [12:38:35]MH_I2C_Read... [12:38:35]Read from MH i2c: E2 17 00 39 82 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 83 [12:38: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:38:35]wFMCommunicate OK [12:38:35]requested_item fd.num is exist - process it [12:38:35]SAM_PROTO_GetFieldsCounters [12:38:35]wFMCommunicate request_size=4 [12:38:35]MH_SAM_APDU [12:38:35]CAPDU: 80 13 00 00 [12:38:35]Write to MH i2c: E2 08 00 3A 82 80 13 00 00 00 00 00 00 38 [12:38:35]Write i2c OK [12:38:35]MH_I2C_Read... [12:38:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:38:35]Read from MH i2c: E2 [12:38:35]MH_I2C_Read... [12:38:35]Read from MH i2c: E2 62 00 [12:38:35]MH_I2C_Read... [12:38:35]Read from MH i2c: E2 62 00 3A 82 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 10 [12:38: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 7A 76 00 00 0E 04 04 00 72 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 [12:38:35]wFMCommunicate OK [12:38:35]SAM_PROTO_GetFieldsCounters done [12:38:35]requested_item shift.num is exist - process it [12:38:35]requested_item shift.opened is exist - process it [12:38:35]req_shift_opened [12:38:35]FM_GetShiftState [12:38:35]SAM_PROTO_GetShiftState [12:38:35]wFMCommunicate request_size=4 [12:38:35]MH_SAM_APDU [12:38:35]CAPDU: 80 13 01 00 [12:38:35]Write to MH i2c: E2 08 00 3B 82 80 13 01 00 00 00 00 00 3A [12:38:35]Write i2c OK [12:38:35]MH_I2C_Read... [12:38:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:38:35]Read from MH i2c: E2 [12:38:35]MH_I2C_Read... [12:38:35]Read from MH i2c: E2 0E 00 [12:38:35]MH_I2C_Read... [12:38:35]Read from MH i2c: E2 0E 00 3B 82 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 20 [12:38:35]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [12:38:35]wFMCommunicate OK [12:38:35]SAM_PROTO_GetShiftState done [12:38:35]FM_GetShiftState done [12:38:35]req_shift_opened done [12:38:35]requested_item shift.open_date is exist - process it [12:38:35]req_shift_open_date [12:38:35]req_shift_open_date done [12:38:35]produce_requested_data done [12:38:35]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30330,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [12:38:35]process_action_free close_receipt [12:38:35]json_value_free [12:38:35]json_value_free done [12:38:35]process_json_proto returns [12:38:35]Send response to host [12:38:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30330,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [12:38:35]free response buf [12:38:35]execute_script done [12:38:35]execute_script returns [12:38:35]free content buf [12:38:35]Sock 7.Close socket [12:38:35]Sock 7.Thread stoped [12:38:39]OFD Sender: No OFD packet to send [12:38:44]OFD Sender: No OFD packet to send [12:38:49]OFD Sender: No OFD packet to send [12:38:54]OFD Sender: No OFD packet to send [12:38:59]OFD Sender: No OFD packet to send [12:39:04]OFD Sender: No OFD packet to send [12:39:09]OFD Sender: No OFD packet to send [12:39:14]OFD Sender: No OFD packet to send [12:39:19]OFD Sender: No OFD packet to send [12:39:24]OFD Sender: No OFD packet to send [12:39:29]OFD Sender: No OFD packet to send [12:39:34]OFD Sender: No OFD packet to send [12:39:39]OFD Sender: No OFD packet to send [12:39:44]OFD Sender: No OFD packet to send [12:39:49]OFD Sender: No OFD packet to send [12:39:54]OFD Sender: No OFD packet to send [12:39:59]OFD Sender: No OFD packet to send [12:40:04]OFD Sender: No OFD packet to send [12:40:09]OFD Sender: No OFD packet to send [12:40:14]OFD Sender: No OFD packet to send [12:40:19]OFD Sender: No OFD packet to send [12:40:24]OFD Sender: No OFD packet to send [12:40:29]OFD Sender: No OFD packet to send [12:40:34]OFD Sender: No OFD packet to send [12:40:39]OFD Sender: No OFD packet to send [12:40:44]OFD Sender: No OFD packet to send [12:40:49]OFD Sender: No OFD packet to send [12:40:54]OFD Sender: No OFD packet to send [12:40:59]OFD Sender: No OFD packet to send [12:41:04]OFD Sender: No OFD packet to send [12:41:09]OFD Sender: No OFD packet to send [12:41:14]OFD Sender: No OFD packet to send [12:41:19]OFD Sender: No OFD packet to send [12:41:24]OFD Sender: No OFD packet to send [12:41:29]OFD Sender: No OFD packet to send [12:41:34]OFD Sender: No OFD packet to send [12:41:39]OFD Sender: No OFD packet to send [12:41:44]OFD Sender: No OFD packet to send [12:41:49]OFD Sender: No OFD packet to send [12:41:54]OFD Sender: No OFD packet to send [12:41:59]OFD Sender: No OFD packet to send [12:42:04]OFD Sender: No OFD packet to send [12:42:09]OFD Sender: No OFD packet to send [12:42:14]OFD Sender: No OFD packet to send [12:42:19]OFD Sender: No OFD packet to send [12:42:24]OFD Sender: No OFD packet to send [12:42:29]OFD Sender: No OFD packet to send [12:42:34]OFD Sender: No OFD packet to send [12:42:39]OFD Sender: No OFD packet to send [12:42:44]OFD Sender: No OFD packet to send [12:42:49]OFD Sender: No OFD packet to send [12:42:54]OFD Sender: No OFD packet to send [12:42:59]OFD Sender: No OFD packet to send [12:43:04]OFD Sender: No OFD packet to send [12:43:09]OFD Sender: No OFD packet to send [12:43:14]OFD Sender: No OFD packet to send [12:43:19]OFD Sender: No OFD packet to send [12:43:24]OFD Sender: No OFD packet to send [12:43:29]OFD Sender: No OFD packet to send [12:43:34]OFD Sender: No OFD packet to send [12:43:39]OFD Sender: No OFD packet to send [12:43:44]OFD Sender: No OFD packet to send [12:43:49]OFD Sender: No OFD packet to send [12:43:54]OFD Sender: No OFD packet to send [12:43:59]OFD Sender: No OFD packet to send [12:44:04]OFD Sender: No OFD packet to send [12:44:09]OFD Sender: No OFD packet to send [12:44:14]OFD Sender: No OFD packet to send [12:44:19]OFD Sender: No OFD packet to send [12:44:24]OFD Sender: No OFD packet to send [12:44:29]OFD Sender: No OFD packet to send [12:44:34]OFD Sender: No OFD packet to send [12:44:39]OFD Sender: No OFD packet to send [12:44:44]OFD Sender: No OFD packet to send [12:44:49]OFD Sender: No OFD packet to send [12:44:54]OFD Sender: No OFD packet to send [12:44:59]OFD Sender: No OFD packet to send [12:45:04]OFD Sender: No OFD packet to send [12:45:09]OFD Sender: No OFD packet to send [12:45:14]OFD Sender: No OFD packet to send [12:45:19]OFD Sender: No OFD packet to send [12:45:24]OFD Sender: No OFD packet to send [12:45:29]OFD Sender: No OFD packet to send [12:45:34]OFD Sender: No OFD packet to send [12:45:39]OFD Sender: No OFD packet to send [12:45:44]OFD Sender: No OFD packet to send [12:45:49]OFD Sender: No OFD packet to send [12:45:54]OFD Sender: No OFD packet to send [12:45:59]OFD Sender: No OFD packet to send [12:46:04]OFD Sender: No OFD packet to send [12:46:09]OFD Sender: No OFD packet to send [12:46:14]OFD Sender: No OFD packet to send [12:46:19]OFD Sender: No OFD packet to send [12:46:24]OFD Sender: No OFD packet to send [12:46:29]OFD Sender: No OFD packet to send [12:46:34]OFD Sender: No OFD packet to send [12:46:39]OFD Sender: No OFD packet to send [12:46:44]OFD Sender: No OFD packet to send [12:46:49]OFD Sender: No OFD packet to send [12:46:54]OFD Sender: No OFD packet to send [12:46:59]OFD Sender: No OFD packet to send [12:47:04]OFD Sender: No OFD packet to send [12:47:09]OFD Sender: No OFD packet to send [12:47:14]OFD Sender: No OFD packet to send [12:47:19]OFD Sender: No OFD packet to send [12:47:24]OFD Sender: No OFD packet to send [12:47:29]OFD Sender: No OFD packet to send [12:47:34]OFD Sender: No OFD packet to send [12:47:39]OFD Sender: No OFD packet to send [12:47:44]OFD Sender: No OFD packet to send [12:47:49]OFD Sender: No OFD packet to send [12:47:54]OFD Sender: No OFD packet to send [12:47:59]OFD Sender: No OFD packet to send [12:48:04]OFD Sender: No OFD packet to send [12:48:09]OFD Sender: No OFD packet to send [12:48:14]OFD Sender: No OFD packet to send [12:48:19]OFD Sender: No OFD packet to send [12:48:20]accept exits with 9 [12:48:20]New connection [12:48:20]New thread 3067370852 created [12:48:20]Thread 3067514212 joined [12:48:20]Waiting for new connection... [12:48:20] Sock 9.Parse request [12:48:20]Sock 9.Check first char [12:48:20]Sock 9.First char is OK [12:48:20]request: POST /json_proto HTTP/1.0 [12:48:20]Method: POST [12:48:20]URL: /json_proto [12:48:20]Method is POST - this is cgi request [12:48:20]url: /json_proto [12:48:20]query_string will be loaded in cgi processing [12:48:20]execute_cgi json_proto POST (null) [12:48:20]execute_cgi path=json_proto method=POST [12:48:20]POST find Content-Length [12:48:20]Host: 172.17.51.3:8080 [12:48:20]Content-Length: 679 [12:48:20]Content-Type: application/json [12:48:20] [12:48:20]POST finish read [12:48:20]Found Content-Length = 679 [12:48:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342723", "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" ] } } [12:48:20]execute_script... [12:48:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342723", "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" ] } } [12:48:20]POST & json_proto [12:48:20]process_json_proto [12:48:20]json parsed OK: [12:48:20]protocol is kg_v1.0 [12:48:20]action value=close_receipt [12:48:20]process_action close_receipt [12:48:20]cmd_close_receipt [12:48:20]MH_GetDate [12:48:20]Write to MH i2c: F0 00 00 3C 82 AD [12:48:20]Write i2c OK [12:48:20]MH_I2C_Read... [12:48:20]Read from MH i2c: F0 [12:48:20]MH_I2C_Read... [12:48:20]Read from MH i2c: F0 09 00 [12:48:20]MH_I2C_Read... [12:48:20]Read from MH i2c: F0 09 00 3C 82 00 1E FC 14 67 04 C1 95 66 0B [12:48:20]GetLastDocTimeStamp 1729427920 [12:48:20]current date 1729428510 [12:48:20]FM_GetShiftState [12:48:20]SAM_PROTO_GetShiftState [12:48:20]wFMCommunicate request_size=4 [12:48:20]MH_SAM_APDU [12:48:20]CAPDU: 80 13 01 00 [12:48:20]Write to MH i2c: E2 08 00 3D 82 80 13 01 00 00 00 00 00 3C [12:48:20]Write i2c OK [12:48:20]MH_I2C_Read... [12:48:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:48:20]Read from MH i2c: E2 [12:48:20]MH_I2C_Read... [12:48:20]Read from MH i2c: E2 0E 00 [12:48:20]MH_I2C_Read... [12:48:20]Read from MH i2c: E2 0E 00 3D 82 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 22 [12:48:20]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [12:48:20]wFMCommunicate OK [12:48:20]SAM_PROTO_GetShiftState done [12:48:20]FM_GetShiftState done [12:48:20]opened in 1729384718 [12:48:20]opened+sec_in_day 1729471118 [12:48:20]quantity*price = 150037 [12:48:20]sum+1 = 150039 [12:48:20]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 СНО: Общий режим Чек 113 20.10.2024 12:48 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30331 ФПД: 91047747297871 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T124830&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30331&fm=91047747297871&tin=02508201610067®Number=0000000000186857&sum=150000 [12:48:21]StoreToDocumentArchive [12:48:21]shift 114 fd 30331 [12:48:21]save to /storage/0114/doc_00030331 [12:48:21]save last doc name /storage/0114/doc_00030331 to /storage/kkm_last_doc_name [12:48:21]save OK [12:48:21]Clear old archive folders... [12:48:21]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:48:21]tlvbuf is 00A790E0 [12:48:21]SAM_PROTO_ClearQueue [12:48:21]wFMCommunicate request_size=4 [12:48:21]MH_SAM_APDU [12:48:21]CAPDU: 80 09 00 00 [12:48:21]Write to MH i2c: E2 08 00 4A 82 80 09 00 00 00 00 00 00 3E [12:48:21]Write i2c OK [12:48:21]MH_I2C_Read... [12:48:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:48:21]Read from MH i2c: E2 [12:48:21]MH_I2C_Read... [12:48:21]Read from MH i2c: E2 03 00 [12:48:21]MH_I2C_Read... [12:48:21]Read from MH i2c: E2 03 00 4A 82 00 90 00 40 [12:48:21]RAPDU: 90 00 [12:48:21]wFMCommunicate OK [12:48:21]SAM_PROTO_ClearQueue done [12:48:21]KKMCreateOFDPacket [12:48:21]OFDProtocolAddRootSTLVToBuf [12:48:21]FM_MakeSignedData [12:48:21]FM_MakeSignedData [12:48:21]SAM_PROTO_SignData [12:48:21]wFMCommunicate request_size=4 [12:48:21]MH_SAM_APDU [12:48:21]CAPDU: 80 0D 01 02 [12:48:21]Write to MH i2c: E2 08 00 4B 82 80 0D 01 02 00 00 00 00 46 [12:48:21]Write i2c OK [12:48:21]MH_I2C_Read... [12:48:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:48:21]Read from MH i2c: E2 [12:48:21]MH_I2C_Read... [12:48:21]Read from MH i2c: E2 03 00 [12:48:21]MH_I2C_Read... [12:48:21]Read from MH i2c: E2 03 00 4B 82 00 90 00 41 [12:48:21]RAPDU: 90 00 [12:48:21]wFMCommunicate OK [12:48:21]wFMCommunicate request_size=255 [12:48:21]MH_SAM_APDU [12:48: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 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 71 00 00 00 F4 03 04 00 1E FC 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 52 CE B4 A2 [12:48:21]Write to MH i2c: E2 02 01 4C 82 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 71 00 00 00 F4 03 04 00 1E FC 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 52 CE B4 A2 00 00 23 [12:48:21]Write i2c OK [12:48:21]MH_I2C_Read... [12:48:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:48:22]Read from MH i2c: E2 [12:48:22]MH_I2C_Read... [12:48:22]Read from MH i2c: E2 03 00 [12:48:22]MH_I2C_Read... [12:48:22]Read from MH i2c: E2 03 00 4C 82 00 90 00 42 [12:48:22]RAPDU: 90 00 [12:48:22]wFMCommunicate OK [12:48:22]wFMCommunicate request_size=7 [12:48:22]MH_SAM_APDU [12:48:22]CAPDU: 80 0D 02 02 02 A2 4F [12:48:22]Write to MH i2c: E2 0A 00 4D 82 80 0D 02 02 02 00 A2 4F 00 00 3E [12:48:22]Write i2c OK [12:48:22]MH_I2C_Read... [12:48:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:48:22]Read from MH i2c: E2 [12:48:22]MH_I2C_Read... [12:48:22]Read from MH i2c: E2 03 00 [12:48:22]MH_I2C_Read... [12:48:22]Read from MH i2c: E2 03 00 4D 82 00 90 00 43 [12:48:22]RAPDU: 90 00 [12:48:22]wFMCommunicate OK [12:48:22]wFMCommunicate request_size=4 [12:48:22]MH_SAM_APDU [12:48:22]CAPDU: 80 0D 03 02 [12:48:22]Write to MH i2c: E2 08 00 4E 82 80 0D 03 02 00 00 00 00 4B [12:48:22]Write i2c OK [12:48:22]MH_I2C_Read... [12:48:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:48:22]Read from MH i2c: E2 [12:48:22]MH_I2C_Read... [12:48:22]Read from MH i2c: E2 0B 00 [12:48:22]MH_I2C_Read... [12:48:22]Read from MH i2c: E2 0B 00 4E 82 00 7A 0B F9 12 36 EB AB 42 90 00 EA [12:48:22]RAPDU: 7A 0B F9 12 36 EB AB 42 90 00 [12:48:22]wFMCommunicate OK [12:48:22]SAM_PROTO_SignData done [12:48:22]FM_MakeSignedData done [12:48:22]CreateOFDProtocolMessage [12:48:22]wFMCommunicate request_size=4 [12:48:22]MH_SAM_APDU [12:48:22]CAPDU: 80 11 00 00 [12:48:22]Write to MH i2c: E2 08 00 4F 82 80 11 00 00 00 00 00 00 4B [12:48:22]Write i2c OK [12:48:22]MH_I2C_Read... [12:48:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:48:22]Read from MH i2c: E2 [12:48:22]MH_I2C_Read... [12:48:22]Read from MH i2c: E2 17 00 [12:48:22]MH_I2C_Read... [12:48:22]Read from MH i2c: E2 17 00 4F 82 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 99 [12:48: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:48:22]wFMCommunicate OK [12:48:22]CreateOFDProtocolMessage done [12:48:22]OFDSenderStorePacket 30331 [12:48:22]StoreOFDPacket docnum=30331 [12:48: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 B3 08 04 01 BA CA 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 71 00 00 00 F4 03 04 00 1E FC 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 52 CE B4 A2 A2 4F 7A 0B F9 12 36 EB AB 42 [12:48:22]CheckFolder [12:48:22]dirname=/storage/ofd_packets [12:48:22]CheckFolder done [12:48:22]ProducePacketName [12:48:22]name=ofd_packets/00030331 [12:48:22]NVStorageSaveData ofd_packets/00030331 [12:48:22]File name is /storage/ofd_packets/00030331 [12:48:22]Write 298 bytes [12:48:22]NVStorageSaveData done [12:48:22]OFDSenderStorePacket done [12:48:22]KKMCreateOFDPacket done [12:48:22]NVStorageSaveData kkm_last_timestamp [12:48:22]File name is /storage/kkm_last_timestamp [12:48:22]Write 4 bytes [12:48:22]NVStorageSaveData done [12:48:22]ExternCall_PrintAddStr [12:48:22]wPrintStart [12:48:22]Write to MH i2c: 01 00 00 50 82 D2 [12:48:22]Write i2c OK [12:48:22]MH_I2C_Read... [12:48:22]Read from MH i2c: 01 [12:48:22]MH_I2C_Read... [12:48:22]Read from MH i2c: 01 07 00 [12:48:22]MH_I2C_Read... [12:48:22]Read from MH i2c: 01 07 00 50 82 00 00 00 00 00 FF 0F E7 [12:48:22]RasterBufferAndPrint [12:48:22]line Счет N : (1)342723 [12:48:22]line ИНН: 02508201610067 [12:48:22]line Контрольно-Кассовый Чек [12:48:22]line ПРОДАЖА [12:48:22]line ТРК (МРК, ГНК) : 54 [12:48:22]line Товар: 2710194210 [12:48:22]line ДТ-К-2 [12:48:22]line 19.690 * 76.20 [12:48:22]line = 1500.38 [12:48:22]line НДС 12% НСП 1% [12:48:22]line > о реализуемом товаре [12:48:22]line ОКРУГЛЕНИЕ: -0.38 [12:48:22]line ИТОГО: 1500.00 [12:48:22]line Внесено: 1500.00 [12:48:22]line СДАЧА: 0.00 [12:48:22]line НСП 1% : 13.28 [12:48:22]line НДС 12% : 159.33 [12:48:22]line Наличными: 1500.00 [12:48:22]line Безнал.: 0.00 [12:48:22]line Место: АЗС № 78 "Партнер Нефть" [12:48:22]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [12:48:22]line СНО: Общий режим [12:48:22]line Чек 113 20.10.2024 12:48 [12:48:22]line Смена: 114 ФФД: 1.0 [12:48:22]line ЗНМ: 0300000137 [12:48:22]line РНМ: 0000000000186857 [12:48:22]line Версия ККМ: v1.0 [12:48:22]line ФМ: 0000000002094219 [12:48:22]line ФД: 30331 [12:48:22]line ФПД: 91047747297871 [12:48:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T124830&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30331&fm=91047747297871&tin=02508201610067®Number=0000000000186857&sum=150000 [12:48:22]OFD Sender: Processing packet 30331 [packets to send 10, broken 9] [12:48:22]ProducePacketName [12:48:22]name=ofd_packets/00030331 [12:48:22]OFD Sender: To server: pG, [12:48:22]CommunicateWithHost lk.salyk.kg:30040 [12:48:22]ConnectInit lk.salyk.kg [12:48:22]written 0, free lines is 4095 [12:48:22]Connected sock=10 [12:48: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 B3 08 04 01 BA CA 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 71 00 00 00 F4 03 04 00 1E FC 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 52 CE B4 A2 A2 4F 7A 0B F9 12 36 EB AB 42 [12:48: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 83 49 47 00 EE 6C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 7B 76 00 00 F4 03 04 00 A2 A6 14 67 B6 04 01 00 00 75 2C 36 C3 8D E7 9D 81 [12:48:23]CommunicateWithHost err = 0 [12:48:23]CheckOFDResponse [12:48:23]1017 (14) - 77093643461234 [12:48:23]1041 (16) - 0000000002094219 [12:48:23]1040 (4) - 30331 [12:48:23]1012 (4) - 20.10.2024 06:43 [12:48:23]1206 (1) - 0 [12:48:23]OFD Sender: Remove packet 30331 [12:48:23]ProducePacketName [12:48:23]name=ofd_packets/00030331 [12:48:23]NVStorageDeleteData [12:48:23]Write to MH i2c: 01 00 00 7B 82 FD [12:48:23]Write i2c OK [12:48:23]MH_I2C_Read... [12:48:23]Read from MH i2c: 01 [12:48:23]MH_I2C_Read... [12:48:23]Read from MH i2c: 01 07 00 [12:48:23]MH_I2C_Read... [12:48:23]Read from MH i2c: 01 07 00 7B 82 00 00 00 00 00 EC 0C FC [12:48:23]RasterBufferAndPrint [12:48:23]line [12:48:23]line [12:48:23]line [12:48:23]line [12:48:23]line [12:48:23]written 0, free lines is 3314 [12:48:23]MH_Cut [12:48:23]Write to MH i2c: D1 01 00 82 82 01 D6 [12:48:23]Write i2c OK [12:48:23]MH_I2C_Read... [12:48:23]Read from MH i2c: D1 [12:48:23]MH_I2C_Read... [12:48:23]Read from MH i2c: D1 01 00 [12:48:23]MH_I2C_Read... [12:48:23]Read from MH i2c: D1 01 00 82 82 00 D5 [12:48:23]Write to MH i2c: 01 00 00 83 82 05 [12:48:23]Write i2c OK [12:48:23]MH_I2C_Read... [12:48:23]OFD Sender: No OFD packet to send [12:48:23]*** Cut start [12:48:23]*** Partial cut [12:48:23]*** CUTSNS_PIN = 1 [12:48:23]*** CUTSNS_PIN = 0 [12:48:24]*** Brake cut motor [12:48:24]Read from MH i2c: 01 [12:48:24]MH_I2C_Read... [12:48:24]*** Stop cut motor [12:48:24]*** Cut end [12:48:24]Read from MH i2c: 01 07 00 [12:48:24]MH_I2C_Read... [12:48:24]Read from MH i2c: 01 07 00 83 82 00 00 00 00 00 FF 0F 1A [12:48:24]process_action close_receipt done [12:48:24]requested_data is exist [12:48:24]produce_requested_data [12:48:24]requested_item fm.sn is exist - process it [12:48:24]wFMCommunicate request_size=4 [12:48:24]MH_SAM_APDU [12:48:24]CAPDU: 80 11 00 00 [12:48:24]Write to MH i2c: E2 08 00 84 82 80 11 00 00 00 00 00 00 80 [12:48:24]Write i2c OK [12:48:24]MH_I2C_Read... [12:48:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:48:24]Read from MH i2c: E2 [12:48:24]MH_I2C_Read... [12:48:24]Read from MH i2c: E2 17 00 [12:48:24]MH_I2C_Read... [12:48:24]Read from MH i2c: E2 17 00 84 82 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 CE [12:48: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:48:24]wFMCommunicate OK [12:48:24]requested_item fd.num is exist - process it [12:48:24]SAM_PROTO_GetFieldsCounters [12:48:24]wFMCommunicate request_size=4 [12:48:24]MH_SAM_APDU [12:48:24]CAPDU: 80 13 00 00 [12:48:24]Write to MH i2c: E2 08 00 85 82 80 13 00 00 00 00 00 00 83 [12:48:24]Write i2c OK [12:48:24]MH_I2C_Read... [12:48:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:48:24]Read from MH i2c: E2 [12:48:24]MH_I2C_Read... [12:48:24]Read from MH i2c: E2 62 00 [12:48:24]MH_I2C_Read... [12:48:24]Read from MH i2c: E2 62 00 85 82 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 5F [12:48: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 7B 76 00 00 0E 04 04 00 72 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 [12:48:24]wFMCommunicate OK [12:48:24]SAM_PROTO_GetFieldsCounters done [12:48:24]requested_item shift.num is exist - process it [12:48:24]requested_item shift.opened is exist - process it [12:48:24]req_shift_opened [12:48:24]FM_GetShiftState [12:48:24]SAM_PROTO_GetShiftState [12:48:24]wFMCommunicate request_size=4 [12:48:24]MH_SAM_APDU [12:48:24]CAPDU: 80 13 01 00 [12:48:24]Write to MH i2c: E2 08 00 86 82 80 13 01 00 00 00 00 00 85 [12:48:24]Write i2c OK [12:48:24]MH_I2C_Read... [12:48:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:48:24]Read from MH i2c: E2 [12:48:24]MH_I2C_Read... [12:48:24]Read from MH i2c: E2 0E 00 [12:48:24]MH_I2C_Read... [12:48:24]Read from MH i2c: E2 0E 00 86 82 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 6B [12:48:24]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [12:48:24]wFMCommunicate OK [12:48:24]SAM_PROTO_GetShiftState done [12:48:24]FM_GetShiftState done [12:48:24]req_shift_opened done [12:48:24]requested_item shift.open_date is exist - process it [12:48:24]req_shift_open_date [12:48:24]req_shift_open_date done [12:48:24]produce_requested_data done [12:48:24]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30331,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [12:48:24]process_action_free close_receipt [12:48:24]json_value_free [12:48:24]json_value_free done [12:48:24]process_json_proto returns [12:48:24]Send response to host [12:48:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30331,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [12:48:24]free response buf [12:48:24]execute_script done [12:48:24]execute_script returns [12:48:24]free content buf [12:48:24]Sock 9.Close socket [12:48:24]Sock 9.Thread stoped [12:48:28]OFD Sender: No OFD packet to send [12:48:33]OFD Sender: No OFD packet to send [12:48:38]OFD Sender: No OFD packet to send [12:48:43]OFD Sender: No OFD packet to send [12:48:48]OFD Sender: No OFD packet to send [12:48:53]OFD Sender: No OFD packet to send [12:48:58]OFD Sender: No OFD packet to send [12:49:03]OFD Sender: No OFD packet to send [12:49:08]OFD Sender: No OFD packet to send [12:49:13]OFD Sender: No OFD packet to send [12:49:18]OFD Sender: No OFD packet to send [12:49:23]OFD Sender: No OFD packet to send [12:49:28]OFD Sender: No OFD packet to send [12:49:33]OFD Sender: No OFD packet to send [12:49:38]OFD Sender: No OFD packet to send [12:49:43]OFD Sender: No OFD packet to send [12:49:48]OFD Sender: No OFD packet to send [12:49:53]OFD Sender: No OFD packet to send [12:49:58]OFD Sender: No OFD packet to send [12:50:03]OFD Sender: No OFD packet to send [12:50:08]OFD Sender: No OFD packet to send [12:50:13]OFD Sender: No OFD packet to send [12:50:18]OFD Sender: No OFD packet to send [12:50:23]OFD Sender: No OFD packet to send [12:50:28]OFD Sender: No OFD packet to send [12:50:33]OFD Sender: No OFD packet to send [12:50:38]OFD Sender: No OFD packet to send [12:50:43]OFD Sender: No OFD packet to send [12:50:48]OFD Sender: No OFD packet to send [12:50:53]OFD Sender: No OFD packet to send [12:50:58]OFD Sender: No OFD packet to send [12:51:03]OFD Sender: No OFD packet to send [12:51:08]OFD Sender: No OFD packet to send [12:51:13]OFD Sender: No OFD packet to send [12:51:18]OFD Sender: No OFD packet to send [12:51:23]OFD Sender: No OFD packet to send [12:51:28]OFD Sender: No OFD packet to send [12:51:33]OFD Sender: No OFD packet to send [12:51:38]OFD Sender: No OFD packet to send [12:51:43]OFD Sender: No OFD packet to send [12:51:48]OFD Sender: No OFD packet to send [12:51:53]OFD Sender: No OFD packet to send [12:51:58]OFD Sender: No OFD packet to send [12:52:03]OFD Sender: No OFD packet to send [12:52:08]OFD Sender: No OFD packet to send [12:52:13]OFD Sender: No OFD packet to send [12:52:18]OFD Sender: No OFD packet to send [12:52:23]OFD Sender: No OFD packet to send [12:52:28]OFD Sender: No OFD packet to send [12:52:33]OFD Sender: No OFD packet to send [12:52:38]OFD Sender: No OFD packet to send [12:52:43]OFD Sender: No OFD packet to send [12:52:48]OFD Sender: No OFD packet to send [12:52:53]OFD Sender: No OFD packet to send [12:52:58]OFD Sender: No OFD packet to send [12:53:03]OFD Sender: No OFD packet to send [12:53:08]OFD Sender: No OFD packet to send [12:53:13]OFD Sender: No OFD packet to send [12:53:18]OFD Sender: No OFD packet to send [12:53:20]accept exits with 7 [12:53:20]New connection [12:53:20]New thread 3067514212 created [12:53:20]Thread 3067370852 joined [12:53:20]Waiting for new connection... [12:53:20] Sock 7.Parse request [12:53:20]Sock 7.Check first char [12:53:20]Sock 7.First char is OK [12:53:20]request: POST /json_proto HTTP/1.0 [12:53:20]Method: POST [12:53:20]URL: /json_proto [12:53:20]Method is POST - this is cgi request [12:53:20]url: /json_proto [12:53:20]query_string will be loaded in cgi processing [12:53:20]execute_cgi json_proto POST (null) [12:53:20]execute_cgi path=json_proto method=POST [12:53:20]POST find Content-Length [12:53:20]Host: 172.17.51.3:8080 [12:53:20]Content-Length: 682 [12:53:20]Content-Type: application/json [12:53:20] [12:53:20]POST finish read [12:53:20]Found Content-Length = 682 [12:53:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342724", "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:53:20]execute_script... [12:53: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)342724", "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:53:20]POST & json_proto [12:53:20]process_json_proto [12:53:20]json parsed OK: [12:53:20]protocol is kg_v1.0 [12:53:20]action value=close_receipt [12:53:20]process_action close_receipt [12:53:20]cmd_close_receipt [12:53:20]MH_GetDate [12:53:20]Write to MH i2c: F0 00 00 87 82 F8 [12:53:20]Write i2c OK [12:53:20]MH_I2C_Read... [12:53:20]Read from MH i2c: F0 [12:53:20]MH_I2C_Read... [12:53:20]Read from MH i2c: F0 09 00 [12:53:20]MH_I2C_Read... [12:53:20]Read from MH i2c: F0 09 00 87 82 00 4A FD 14 67 04 C1 95 66 83 [12:53:20]GetLastDocTimeStamp 1729428510 [12:53:20]current date 1729428810 [12:53:20]FM_GetShiftState [12:53:20]SAM_PROTO_GetShiftState [12:53:20]wFMCommunicate request_size=4 [12:53:20]MH_SAM_APDU [12:53:20]CAPDU: 80 13 01 00 [12:53:20]Write to MH i2c: E2 08 00 88 82 80 13 01 00 00 00 00 00 87 [12:53:20]Write i2c OK [12:53:20]MH_I2C_Read... [12:53:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:53:20]Read from MH i2c: E2 [12:53:20]MH_I2C_Read... [12:53:20]Read from MH i2c: E2 0E 00 [12:53:20]MH_I2C_Read... [12:53:20]Read from MH i2c: E2 0E 00 88 82 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 6D [12:53:20]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [12:53:20]wFMCommunicate OK [12:53:20]SAM_PROTO_GetShiftState done [12:53:20]FM_GetShiftState done [12:53:20]opened in 1729384718 [12:53:20]opened+sec_in_day 1729471118 [12:53:20]quantity*price = 100015 [12:53:20]sum+1 = 100017 [12:53:20]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 СНО: Общий режим Чек 114 20.10.2024 12:53 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30332 ФПД: 242658701546846 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T125330&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30332&fm=242658701546846&tin=02508201610067®Number=0000000000186857&sum=100000 [12:53:21]StoreToDocumentArchive [12:53:21]shift 114 fd 30332 [12:53:21]save to /storage/0114/doc_00030332 [12:53:21]save last doc name /storage/0114/doc_00030332 to /storage/kkm_last_doc_name [12:53:21]save OK [12:53:21]Clear old archive folders... [12:53:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:53:21]tlvbuf is 00BEBB30 [12:53:21]SAM_PROTO_ClearQueue [12:53:21]wFMCommunicate request_size=4 [12:53:21]MH_SAM_APDU [12:53:21]CAPDU: 80 09 00 00 [12:53:21]Write to MH i2c: E2 08 00 95 82 80 09 00 00 00 00 00 00 89 [12:53:21]Write i2c OK [12:53:21]MH_I2C_Read... [12:53:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:53:21]Read from MH i2c: E2 [12:53:21]MH_I2C_Read... [12:53:21]Read from MH i2c: E2 03 00 [12:53:21]MH_I2C_Read... [12:53:21]Read from MH i2c: E2 03 00 95 82 00 90 00 8B [12:53:21]RAPDU: 90 00 [12:53:21]wFMCommunicate OK [12:53:21]SAM_PROTO_ClearQueue done [12:53:21]KKMCreateOFDPacket [12:53:21]OFDProtocolAddRootSTLVToBuf [12:53:21]FM_MakeSignedData [12:53:21]FM_MakeSignedData [12:53:21]SAM_PROTO_SignData [12:53:21]wFMCommunicate request_size=4 [12:53:21]MH_SAM_APDU [12:53:21]CAPDU: 80 0D 01 02 [12:53:21]Write to MH i2c: E2 08 00 96 82 80 0D 01 02 00 00 00 00 91 [12:53:21]Write i2c OK [12:53:21]MH_I2C_Read... [12:53:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:53:22]Read from MH i2c: E2 [12:53:22]MH_I2C_Read... [12:53:22]Read from MH i2c: E2 03 00 [12:53:22]MH_I2C_Read... [12:53:22]Read from MH i2c: E2 03 00 96 82 00 90 00 8C [12:53:22]RAPDU: 90 00 [12:53:22]wFMCommunicate OK [12:53:22]wFMCommunicate request_size=255 [12:53:22]MH_SAM_APDU [12:53: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 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 72 00 00 00 F4 03 04 00 4A FD 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 DC [12:53:22]Write to MH i2c: E2 02 01 97 82 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 72 00 00 00 F4 03 04 00 4A FD 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 DC 00 00 90 [12:53:22]Write i2c OK [12:53:22]MH_I2C_Read... [12:53:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:53:22]Read from MH i2c: E2 [12:53:22]MH_I2C_Read... [12:53:22]Read from MH i2c: E2 03 00 [12:53:22]MH_I2C_Read... [12:53:22]Read from MH i2c: E2 03 00 97 82 00 90 00 8D [12:53:22]RAPDU: 90 00 [12:53:22]wFMCommunicate OK [12:53:22]wFMCommunicate request_size=10 [12:53:22]MH_SAM_APDU [12:53:22]CAPDU: 80 0D 02 02 05 B2 61 B5 15 5E [12:53:22]Write to MH i2c: E2 0D 00 98 82 80 0D 02 02 05 00 B2 61 B5 15 5E 00 00 D9 [12:53:22]Write i2c OK [12:53:22]MH_I2C_Read... [12:53:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:53:22]Read from MH i2c: E2 [12:53:22]MH_I2C_Read... [12:53:22]Read from MH i2c: E2 03 00 [12:53:22]MH_I2C_Read... [12:53:22]Read from MH i2c: E2 03 00 98 82 00 90 00 8E [12:53:22]RAPDU: 90 00 [12:53:22]wFMCommunicate OK [12:53:22]wFMCommunicate request_size=4 [12:53:22]MH_SAM_APDU [12:53:22]CAPDU: 80 0D 03 02 [12:53:22]Write to MH i2c: E2 08 00 99 82 80 0D 03 02 00 00 00 00 96 [12:53:22]Write i2c OK [12:53:22]MH_I2C_Read... [12:53:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:53:22]Read from MH i2c: E2 [12:53:22]MH_I2C_Read... [12:53:22]Read from MH i2c: E2 0B 00 [12:53:22]MH_I2C_Read... [12:53:22]Read from MH i2c: E2 0B 00 99 82 00 BC 33 86 FF 96 7B 60 1C 90 00 98 [12:53:22]RAPDU: BC 33 86 FF 96 7B 60 1C 90 00 [12:53:22]wFMCommunicate OK [12:53:22]SAM_PROTO_SignData done [12:53:22]FM_MakeSignedData done [12:53:22]CreateOFDProtocolMessage [12:53:22]wFMCommunicate request_size=4 [12:53:22]MH_SAM_APDU [12:53:22]CAPDU: 80 11 00 00 [12:53:22]Write to MH i2c: E2 08 00 9A 82 80 11 00 00 00 00 00 00 96 [12:53:22]Write i2c OK [12:53:22]MH_I2C_Read... [12:53:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:53:22]Read from MH i2c: E2 [12:53:22]MH_I2C_Read... [12:53:22]Read from MH i2c: E2 17 00 [12:53:22]MH_I2C_Read... [12:53:22]Read from MH i2c: E2 17 00 9A 82 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 E4 [12:53: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:53:22]wFMCommunicate OK [12:53:22]CreateOFDProtocolMessage done [12:53:22]OFDSenderStorePacket 30332 [12:53:22]StoreOFDPacket docnum=30332 [12:53: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 EA 07 01 14 5C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 72 00 00 00 F4 03 04 00 4A FD 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 DC B2 61 B5 15 5E BC 33 86 FF 96 7B 60 1C [12:53:22]CheckFolder [12:53:22]dirname=/storage/ofd_packets [12:53:22]CheckFolder done [12:53:22]ProducePacketName [12:53:22]name=ofd_packets/00030332 [12:53:22]NVStorageSaveData ofd_packets/00030332 [12:53:22]File name is /storage/ofd_packets/00030332 [12:53:22]Write 301 bytes [12:53:22]NVStorageSaveData done [12:53:22]OFDSenderStorePacket done [12:53:22]KKMCreateOFDPacket done [12:53:22]NVStorageSaveData kkm_last_timestamp [12:53:22]File name is /storage/kkm_last_timestamp [12:53:22]Write 4 bytes [12:53:22]NVStorageSaveData done [12:53:22]ExternCall_PrintAddStr [12:53:22]wPrintStart [12:53:22]Write to MH i2c: 01 00 00 9B 82 1D [12:53:22]Write i2c OK [12:53:22]MH_I2C_Read... [12:53:22]Read from MH i2c: 01 [12:53:22]MH_I2C_Read... [12:53:22]Read from MH i2c: 01 07 00 [12:53:22]MH_I2C_Read... [12:53:22]Read from MH i2c: 01 07 00 9B 82 00 00 00 00 00 FF 0F 32 [12:53:22]RasterBufferAndPrint [12:53:22]line Счет N : (1)342724 [12:53:22]line ИНН: 02508201610067 [12:53:22]line Контрольно-Кассовый Чек [12:53:22]line ПРОДАЖА [12:53:22]line ТРК (МРК, ГНК) : 43 [12:53:22]line Товар: 2710124130 [12:53:22]line Аи-92-К-2 [12:53:22]line 14.950 * 66.90 [12:53:22]line = 1000.16 [12:53:22]line НДС 12% НСП 1% [12:53:22]line > о реализуемом товаре [12:53:22]line ОКРУГЛЕНИЕ: -0.16 [12:53:22]line ИТОГО: 1000.00 [12:53:22]line Внесено: 1000.00 [12:53:22]line СДАЧА: 0.00 [12:53:22]line НСП 1% : 8.85 [12:53:22]line НДС 12% : 106.21 [12:53:22]line Наличными: 1000.00 [12:53:22]line Безнал.: 0.00 [12:53:22]line Место: АЗС № 78 "Партнер Нефть" [12:53:22]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [12:53:22]line СНО: Общий режим [12:53:22]line Чек 114 20.10.2024 12:53 [12:53:22]line Смена: 114 ФФД: 1.0 [12:53:22]line ЗНМ: 0300000137 [12:53:22]line РНМ: 0000000000186857 [12:53:22]line Версия ККМ: v1.0 [12:53:22]line ФМ: 0000000002094219 [12:53:22]line ФД: 30332 [12:53:22]line ФПД: 242658701546846 [12:53:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T125330&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30332&fm=242658701546846&tin=02508201610067®Number=0000000000186857&sum=100000 [12:53:22]OFD Sender: Processing packet 30332 [packets to send 10, broken 9] [12:53:22]ProducePacketName [12:53:22]name=ofd_packets/00030332 [12:53:22]OFD Sender: To server: pG, [12:53:22]CommunicateWithHost lk.salyk.kg:30040 [12:53:22]ConnectInit lk.salyk.kg [12:53:22]written 0, free lines is 4095 [12:53:22]Connected sock=10 [12:53: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 B0 EA 07 01 14 5C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 72 00 00 00 F4 03 04 00 4A FD 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 DC B2 61 B5 15 5E BC 33 86 FF 96 7B 60 1C [12:53: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 F6 44 47 00 65 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 7C 76 00 00 F4 03 04 00 CE A7 14 67 B6 04 01 00 00 B4 C3 1E 3E 87 F7 71 C0 [12:53:23]CommunicateWithHost err = 0 [12:53:23]CheckOFDResponse [12:53:23]1017 (14) - 77093643461234 [12:53:23]1041 (16) - 0000000002094219 [12:53:23]1040 (4) - 30332 [12:53:23]1012 (4) - 20.10.2024 06:48 [12:53:23]1206 (1) - 0 [12:53:23]OFD Sender: Remove packet 30332 [12:53:23]ProducePacketName [12:53:23]name=ofd_packets/00030332 [12:53:23]NVStorageDeleteData [12:53:23]Write to MH i2c: 01 00 00 C6 82 48 [12:53:23]Write i2c OK [12:53:23]MH_I2C_Read... [12:53:23]Read from MH i2c: 01 [12:53:23]MH_I2C_Read... [12:53:23]Read from MH i2c: 01 07 00 [12:53:23]MH_I2C_Read... [12:53:23]Read from MH i2c: 01 07 00 C6 82 00 00 00 00 00 E9 0C 44 [12:53:23]RasterBufferAndPrint [12:53:23]line [12:53:23]line [12:53:23]line [12:53:23]line [12:53:23]line [12:53:23]written 0, free lines is 3314 [12:53:23]MH_Cut [12:53:23]Write to MH i2c: D1 01 00 CD 82 01 21 [12:53:23]Write i2c OK [12:53:23]MH_I2C_Read... [12:53:23]Read from MH i2c: D1 [12:53:23]MH_I2C_Read... [12:53:23]Read from MH i2c: D1 01 00 [12:53:23]MH_I2C_Read... [12:53:23]Read from MH i2c: D1 01 00 CD 82 00 20 [12:53:23]Write to MH i2c: 01 00 00 CE 82 50 [12:53:23]Write i2c OK [12:53:23]MH_I2C_Read... [12:53:23]OFD Sender: No OFD packet to send [12:53:23]*** Cut start [12:53:23]*** Partial cut [12:53:23]*** CUTSNS_PIN = 1 [12:53:23]*** CUTSNS_PIN = 0 [12:53:24]*** Brake cut motor [12:53:24]Read from MH i2c: 01 [12:53:24]MH_I2C_Read... [12:53:24]*** Stop cut motor [12:53:24]*** Cut end [12:53:24]Read from MH i2c: 01 07 00 [12:53:24]MH_I2C_Read... [12:53:24]Read from MH i2c: 01 07 00 CE 82 00 00 00 00 00 FF 0F 65 [12:53:24]process_action close_receipt done [12:53:24]requested_data is exist [12:53:24]produce_requested_data [12:53:24]requested_item fm.sn is exist - process it [12:53:24]wFMCommunicate request_size=4 [12:53:24]MH_SAM_APDU [12:53:24]CAPDU: 80 11 00 00 [12:53:24]Write to MH i2c: E2 08 00 CF 82 80 11 00 00 00 00 00 00 CB [12:53:24]Write i2c OK [12:53:24]MH_I2C_Read... [12:53:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:53:24]Read from MH i2c: E2 [12:53:24]MH_I2C_Read... [12:53:24]Read from MH i2c: E2 17 00 [12:53:24]MH_I2C_Read... [12:53:24]Read from MH i2c: E2 17 00 CF 82 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 19 [12:53: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:53:24]wFMCommunicate OK [12:53:24]requested_item fd.num is exist - process it [12:53:24]SAM_PROTO_GetFieldsCounters [12:53:24]wFMCommunicate request_size=4 [12:53:24]MH_SAM_APDU [12:53:24]CAPDU: 80 13 00 00 [12:53:24]Write to MH i2c: E2 08 00 D0 82 80 13 00 00 00 00 00 00 CE [12:53:24]Write i2c OK [12:53:24]MH_I2C_Read... [12:53:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:53:24]Read from MH i2c: E2 [12:53:24]MH_I2C_Read... [12:53:24]Read from MH i2c: E2 62 00 [12:53:24]MH_I2C_Read... [12:53:24]Read from MH i2c: E2 62 00 D0 82 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 AE [12:53: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 7C 76 00 00 0E 04 04 00 72 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 [12:53:24]wFMCommunicate OK [12:53:24]SAM_PROTO_GetFieldsCounters done [12:53:24]requested_item shift.num is exist - process it [12:53:24]requested_item shift.opened is exist - process it [12:53:24]req_shift_opened [12:53:24]FM_GetShiftState [12:53:24]SAM_PROTO_GetShiftState [12:53:24]wFMCommunicate request_size=4 [12:53:24]MH_SAM_APDU [12:53:24]CAPDU: 80 13 01 00 [12:53:24]Write to MH i2c: E2 08 00 D1 82 80 13 01 00 00 00 00 00 D0 [12:53:24]Write i2c OK [12:53:24]MH_I2C_Read... [12:53:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:53:24]Read from MH i2c: E2 [12:53:24]MH_I2C_Read... [12:53:24]Read from MH i2c: E2 0E 00 [12:53:24]MH_I2C_Read... [12:53:24]Read from MH i2c: E2 0E 00 D1 82 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 B6 [12:53:24]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [12:53:24]wFMCommunicate OK [12:53:24]SAM_PROTO_GetShiftState done [12:53:24]FM_GetShiftState done [12:53:24]req_shift_opened done [12:53:24]requested_item shift.open_date is exist - process it [12:53:24]req_shift_open_date [12:53:24]req_shift_open_date done [12:53:24]produce_requested_data done [12:53:24]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30332,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [12:53:24]process_action_free close_receipt [12:53:24]json_value_free [12:53:24]json_value_free done [12:53:24]process_json_proto returns [12:53:24]Send response to host [12:53:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30332,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [12:53:24]free response buf [12:53:24]execute_script done [12:53:24]execute_script returns [12:53:24]free content buf [12:53:24]Sock 7.Close socket [12:53:24]Sock 7.Thread stoped [12:53:28]OFD Sender: No OFD packet to send [12:53:33]OFD Sender: No OFD packet to send [12:53:38]OFD Sender: No OFD packet to send [12:53:43]OFD Sender: No OFD packet to send [12:53:48]OFD Sender: No OFD packet to send [12:53:53]OFD Sender: No OFD packet to send [12:53:58]OFD Sender: No OFD packet to send [12:54:03]OFD Sender: No OFD packet to send [12:54:08]OFD Sender: No OFD packet to send [12:54:13]OFD Sender: No OFD packet to send [12:54:18]OFD Sender: No OFD packet to send [12:54:23]OFD Sender: No OFD packet to send [12:54:28]OFD Sender: No OFD packet to send [12:54:33]OFD Sender: No OFD packet to send [12:54:38]OFD Sender: No OFD packet to send [12:54:43]OFD Sender: No OFD packet to send [12:54:48]OFD Sender: No OFD packet to send [12:54:53]OFD Sender: No OFD packet to send [12:54:58]OFD Sender: No OFD packet to send [12:55:03]OFD Sender: No OFD packet to send [12:55:08]OFD Sender: No OFD packet to send [12:55:13]OFD Sender: No OFD packet to send [12:55:18]OFD Sender: No OFD packet to send [12:55:23]OFD Sender: No OFD packet to send [12:55:28]OFD Sender: No OFD packet to send [12:55:33]OFD Sender: No OFD packet to send [12:55:38]OFD Sender: No OFD packet to send [12:55:43]OFD Sender: No OFD packet to send [12:55:48]OFD Sender: No OFD packet to send [12:55:53]OFD Sender: No OFD packet to send [12:55:58]OFD Sender: No OFD packet to send [12:56:03]OFD Sender: No OFD packet to send [12:56:08]OFD Sender: No OFD packet to send [12:56:13]OFD Sender: No OFD packet to send [12:56:18]OFD Sender: No OFD packet to send [12:56:23]OFD Sender: No OFD packet to send [12:56:28]OFD Sender: No OFD packet to send [12:56:33]OFD Sender: No OFD packet to send [12:56:38]OFD Sender: No OFD packet to send [12:56:43]OFD Sender: No OFD packet to send [12:56:43]accept exits with 9 [12:56:43]New connection [12:56:43]New thread 3067370852 created [12:56:43]Thread 3067514212 joined [12:56:43]Waiting for new connection... [12:56:43] Sock 9.Parse request [12:56:43]Sock 9.Check first char [12:56:43]Sock 9.First char is OK [12:56:43]request: POST /json_proto HTTP/1.0 [12:56:43]Method: POST [12:56:43]URL: /json_proto [12:56:43]Method is POST - this is cgi request [12:56:43]url: /json_proto [12:56:43]query_string will be loaded in cgi processing [12:56:43]execute_cgi json_proto POST (null) [12:56:43]execute_cgi path=json_proto method=POST [12:56:43]POST find Content-Length [12:56:43]Host: 172.17.51.3:8080 [12:56:43]Content-Length: 682 [12:56:43]Content-Type: application/json [12:56:43] [12:56:43]POST finish read [12:56:43]Found Content-Length = 682 [12:56:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342725", "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" : 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" ] } } [12:56:43]execute_script... [12:56: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)342725", "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" : 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" ] } } [12:56:43]POST & json_proto [12:56:43]process_json_proto [12:56:43]json parsed OK: [12:56:43]protocol is kg_v1.0 [12:56:43]action value=close_receipt [12:56:43]process_action close_receipt [12:56:43]cmd_close_receipt [12:56:43]MH_GetDate [12:56:43]Write to MH i2c: F0 00 00 D2 82 43 [12:56:43]Write i2c OK [12:56:43]MH_I2C_Read... [12:56:43]Read from MH i2c: F0 [12:56:43]MH_I2C_Read... [12:56:43]Read from MH i2c: F0 09 00 [12:56:43]MH_I2C_Read... [12:56:43]Read from MH i2c: F0 09 00 D2 82 00 15 FE 14 67 04 C1 95 66 9A [12:56:43]GetLastDocTimeStamp 1729428810 [12:56:43]current date 1729429013 [12:56:43]FM_GetShiftState [12:56:43]SAM_PROTO_GetShiftState [12:56:43]wFMCommunicate request_size=4 [12:56:43]MH_SAM_APDU [12:56:43]CAPDU: 80 13 01 00 [12:56:43]Write to MH i2c: E2 08 00 D3 82 80 13 01 00 00 00 00 00 D2 [12:56:43]Write i2c OK [12:56:43]MH_I2C_Read... [12:56:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:56:43]Read from MH i2c: E2 [12:56:43]MH_I2C_Read... [12:56:43]Read from MH i2c: E2 0E 00 [12:56:43]MH_I2C_Read... [12:56:43]Read from MH i2c: E2 0E 00 D3 82 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 B8 [12:56:43]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [12:56:43]wFMCommunicate OK [12:56:43]SAM_PROTO_GetShiftState done [12:56:43]FM_GetShiftState done [12:56:43]opened in 1729384718 [12:56:43]opened+sec_in_day 1729471118 [12:56:43]quantity*price = 150056 [12:56:43]sum+1 = 150058 [12:56:43]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 СНО: Общий режим Чек 115 20.10.2024 12:56 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30333 ФПД: 207892078771051 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T125653&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30333&fm=207892078771051&tin=02508201610067®Number=0000000000186857&sum=150000 [12:56:44]StoreToDocumentArchive [12:56:44]shift 114 fd 30333 [12:56:44]save to /storage/0114/doc_00030333 [12:56:44]save last doc name /storage/0114/doc_00030333 to /storage/kkm_last_doc_name [12:56:44]save OK [12:56:44]Clear old archive folders... [12:56:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:56:44]tlvbuf is 00BEBA90 [12:56:44]SAM_PROTO_ClearQueue [12:56:44]wFMCommunicate request_size=4 [12:56:44]MH_SAM_APDU [12:56:44]CAPDU: 80 09 00 00 [12:56:44]Write to MH i2c: E2 08 00 E0 82 80 09 00 00 00 00 00 00 D4 [12:56:44]Write i2c OK [12:56:44]MH_I2C_Read... [12:56:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:56:45]Read from MH i2c: E2 [12:56:45]MH_I2C_Read... [12:56:45]Read from MH i2c: E2 03 00 [12:56:45]MH_I2C_Read... [12:56:45]Read from MH i2c: E2 03 00 E0 82 00 90 00 D6 [12:56:45]RAPDU: 90 00 [12:56:45]wFMCommunicate OK [12:56:45]SAM_PROTO_ClearQueue done [12:56:45]KKMCreateOFDPacket [12:56:45]OFDProtocolAddRootSTLVToBuf [12:56:45]FM_MakeSignedData [12:56:45]FM_MakeSignedData [12:56:45]SAM_PROTO_SignData [12:56:45]wFMCommunicate request_size=4 [12:56:45]MH_SAM_APDU [12:56:45]CAPDU: 80 0D 01 02 [12:56:45]Write to MH i2c: E2 08 00 E1 82 80 0D 01 02 00 00 00 00 DC [12:56:45]Write i2c OK [12:56:45]MH_I2C_Read... [12:56:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:56:45]Read from MH i2c: E2 [12:56:45]MH_I2C_Read... [12:56:45]Read from MH i2c: E2 03 00 [12:56:45]MH_I2C_Read... [12:56:45]Read from MH i2c: E2 03 00 E1 82 00 90 00 D7 [12:56:45]RAPDU: 90 00 [12:56:45]wFMCommunicate OK [12:56:45]wFMCommunicate request_size=255 [12:56:45]MH_SAM_APDU [12:56: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 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 73 00 00 00 F4 03 04 00 15 FE 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 BD [12:56:45]Write to MH i2c: E2 02 01 E2 82 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 73 00 00 00 F4 03 04 00 15 FE 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 BD 00 00 D9 [12:56:45]Write i2c OK [12:56:45]MH_I2C_Read... [12:56:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:56:45]Read from MH i2c: E2 [12:56:45]MH_I2C_Read... [12:56:45]Read from MH i2c: E2 03 00 [12:56:45]MH_I2C_Read... [12:56:45]Read from MH i2c: E2 03 00 E2 82 00 90 00 D8 [12:56:45]RAPDU: 90 00 [12:56:45]wFMCommunicate OK [12:56:45]wFMCommunicate request_size=10 [12:56:45]MH_SAM_APDU [12:56:45]CAPDU: 80 0D 02 02 05 13 A5 81 BB 6B [12:56:45]Write to MH i2c: E2 0D 00 E3 82 80 0D 02 02 05 00 13 A5 81 BB 6B 00 00 48 [12:56:45]Write i2c OK [12:56:45]MH_I2C_Read... [12:56:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:56:45]Read from MH i2c: E2 [12:56:45]MH_I2C_Read... [12:56:45]Read from MH i2c: E2 03 00 [12:56:45]MH_I2C_Read... [12:56:45]Read from MH i2c: E2 03 00 E3 82 00 90 00 D9 [12:56:45]RAPDU: 90 00 [12:56:45]wFMCommunicate OK [12:56:45]wFMCommunicate request_size=4 [12:56:45]MH_SAM_APDU [12:56:45]CAPDU: 80 0D 03 02 [12:56:45]Write to MH i2c: E2 08 00 E4 82 80 0D 03 02 00 00 00 00 E1 [12:56:45]Write i2c OK [12:56:45]MH_I2C_Read... [12:56:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:56:45]Read from MH i2c: E2 [12:56:45]MH_I2C_Read... [12:56:45]Read from MH i2c: E2 0B 00 [12:56:45]MH_I2C_Read... [12:56:45]Read from MH i2c: E2 0B 00 E4 82 00 15 CE B3 27 26 AB D6 50 90 00 96 [12:56:45]RAPDU: 15 CE B3 27 26 AB D6 50 90 00 [12:56:45]wFMCommunicate OK [12:56:45]SAM_PROTO_SignData done [12:56:45]FM_MakeSignedData done [12:56:45]CreateOFDProtocolMessage [12:56:45]wFMCommunicate request_size=4 [12:56:45]MH_SAM_APDU [12:56:45]CAPDU: 80 11 00 00 [12:56:45]Write to MH i2c: E2 08 00 E5 82 80 11 00 00 00 00 00 00 E1 [12:56:45]Write i2c OK [12:56:45]MH_I2C_Read... [12:56:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:56:45]Read from MH i2c: E2 [12:56:45]MH_I2C_Read... [12:56:45]Read from MH i2c: E2 17 00 [12:56:45]MH_I2C_Read... [12:56:45]Read from MH i2c: E2 17 00 E5 82 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 2F [12:56: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:56:45]wFMCommunicate OK [12:56:45]CreateOFDProtocolMessage done [12:56:45]OFDSenderStorePacket 30333 [12:56:45]StoreOFDPacket docnum=30333 [12:56: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 3C 3C 07 01 B5 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 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 73 00 00 00 F4 03 04 00 15 FE 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 BD 13 A5 81 BB 6B 15 CE B3 27 26 AB D6 50 [12:56:45]CheckFolder [12:56:45]dirname=/storage/ofd_packets [12:56:45]CheckFolder done [12:56:45]ProducePacketName [12:56:45]name=ofd_packets/00030333 [12:56:45]NVStorageSaveData ofd_packets/00030333 [12:56:45]File name is /storage/ofd_packets/00030333 [12:56:45]Write 301 bytes [12:56:45]NVStorageSaveData done [12:56:45]OFDSenderStorePacket done [12:56:45]KKMCreateOFDPacket done [12:56:45]NVStorageSaveData kkm_last_timestamp [12:56:45]File name is /storage/kkm_last_timestamp [12:56:45]Write 4 bytes [12:56:45]NVStorageSaveData done [12:56:45]ExternCall_PrintAddStr [12:56:45]wPrintStart [12:56:45]Write to MH i2c: 01 00 00 E6 82 68 [12:56:45]Write i2c OK [12:56:45]MH_I2C_Read... [12:56:45]Read from MH i2c: 01 [12:56:45]MH_I2C_Read... [12:56:45]Read from MH i2c: 01 07 00 [12:56:45]MH_I2C_Read... [12:56:45]Read from MH i2c: 01 07 00 E6 82 00 00 00 00 00 FF 0F 7D [12:56:45]RasterBufferAndPrint [12:56:45]line Счет N : (1)342725 [12:56:45]line ИНН: 02508201610067 [12:56:45]line Контрольно-Кассовый Чек [12:56:45]line ПРОДАЖА [12:56:45]line ТРК (МРК, ГНК) : 53 [12:56:45]line Товар: 2710124130 [12:56:45]line Аи-92-К-2 [12:56:45]line 22.430 * 66.90 [12:56:45]line = 1500.57 [12:56:45]line НДС 12% НСП 1% [12:56:45]line > о реализуемом товаре [12:56:45]line ОКРУГЛЕНИЕ: -0.57 [12:56:45]line ИТОГО: 1500.00 [12:56:45]line Внесено: 1500.00 [12:56:45]line СДАЧА: 0.00 [12:56:45]line НСП 1% : 13.28 [12:56:45]line НДС 12% : 159.35 [12:56:45]line Наличными: 1500.00 [12:56:45]line Безнал.: 0.00 [12:56:45]line Место: АЗС № 78 "Партнер Нефть" [12:56:45]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [12:56:45]line СНО: Общий режим [12:56:45]line Чек 115 20.10.2024 12:56 [12:56:45]line Смена: 114 ФФД: 1.0 [12:56:45]line ЗНМ: 0300000137 [12:56:45]line РНМ: 0000000000186857 [12:56:45]line Версия ККМ: v1.0 [12:56:45]line ФМ: 0000000002094219 [12:56:45]line ФД: 30333 [12:56:45]line ФПД: 207892078771051 [12:56:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T125653&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30333&fm=207892078771051&tin=02508201610067®Number=0000000000186857&sum=150000 [12:56:45]OFD Sender: Processing packet 30333 [packets to send 10, broken 9] [12:56:45]ProducePacketName [12:56:45]name=ofd_packets/00030333 [12:56:45]OFD Sender: To server: pG, [12:56:45]CommunicateWithHost lk.salyk.kg:30040 [12:56:45]ConnectInit lk.salyk.kg [12:56:45]written 0, free lines is 4095 [12:56:45]Connected sock=10 [12:56: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 3C 3C 07 01 B5 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 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 73 00 00 00 F4 03 04 00 15 FE 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 BD 13 A5 81 BB 6B 15 CE B3 27 26 AB D6 50 [12:56: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 7E D1 47 00 4A 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 7D 76 00 00 F4 03 04 00 99 A8 14 67 B6 04 01 00 00 8B 6A 3A 7B 3B E6 6A 9D [12:56:46]CommunicateWithHost err = 0 [12:56:46]CheckOFDResponse [12:56:46]1017 (14) - 77093643461234 [12:56:46]1041 (16) - 0000000002094219 [12:56:46]1040 (4) - 30333 [12:56:46]1012 (4) - 20.10.2024 06:52 [12:56:46]1206 (1) - 0 [12:56:46]OFD Sender: Remove packet 30333 [12:56:46]ProducePacketName [12:56:46]name=ofd_packets/00030333 [12:56:46]NVStorageDeleteData [12:56:46]Write to MH i2c: 01 00 00 11 83 94 [12:56:46]Write i2c OK [12:56:46]MH_I2C_Read... [12:56:46]Read from MH i2c: 01 [12:56:46]MH_I2C_Read... [12:56:46]Read from MH i2c: 01 07 00 [12:56:46]MH_I2C_Read... [12:56:46]Read from MH i2c: 01 07 00 11 83 00 00 00 00 00 F3 0C 9A [12:56:46]RasterBufferAndPrint [12:56:46]line [12:56:46]line [12:56:46]line [12:56:46]line [12:56:46]line [12:56:46]written 0, free lines is 3321 [12:56:46]MH_Cut [12:56:46]Write to MH i2c: D1 01 00 18 83 01 6D [12:56:46]Write i2c OK [12:56:46]MH_I2C_Read... [12:56:46]Read from MH i2c: D1 [12:56:46]MH_I2C_Read... [12:56:46]Read from MH i2c: D1 01 00 [12:56:46]MH_I2C_Read... [12:56:46]Read from MH i2c: D1 01 00 18 83 00 6C [12:56:46]Write to MH i2c: 01 00 00 19 83 9C [12:56:46]Write i2c OK [12:56:46]MH_I2C_Read... [12:56:46]OFD Sender: No OFD packet to send [12:56:46]*** Cut start [12:56:46]*** Partial cut [12:56:46]*** CUTSNS_PIN = 1 [12:56:47]*** CUTSNS_PIN = 0 [12:56:47]*** Brake cut motor [12:56:47]Read from MH i2c: 01 [12:56:47]MH_I2C_Read... [12:56:47]*** Stop cut motor [12:56:47]Read from MH i2c: 01 07 00 [12:56:47]MH_I2C_Read... [12:56:47]*** Cut end [12:56:47]Read from MH i2c: 01 07 00 19 83 00 00 00 00 00 FF 0F B1 [12:56:47]process_action close_receipt done [12:56:47]requested_data is exist [12:56:47]produce_requested_data [12:56:47]requested_item fm.sn is exist - process it [12:56:47]wFMCommunicate request_size=4 [12:56:47]MH_SAM_APDU [12:56:47]CAPDU: 80 11 00 00 [12:56:47]Write to MH i2c: E2 08 00 1A 83 80 11 00 00 00 00 00 00 17 [12:56:47]Write i2c OK [12:56:47]MH_I2C_Read... [12:56:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:56:47]Read from MH i2c: E2 [12:56:47]MH_I2C_Read... [12:56:47]Read from MH i2c: E2 17 00 [12:56:47]MH_I2C_Read... [12:56:47]Read from MH i2c: E2 17 00 1A 83 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 65 [12:56:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [12:56:47]wFMCommunicate OK [12:56:47]requested_item fd.num is exist - process it [12:56:47]SAM_PROTO_GetFieldsCounters [12:56:47]wFMCommunicate request_size=4 [12:56:47]MH_SAM_APDU [12:56:47]CAPDU: 80 13 00 00 [12:56:47]Write to MH i2c: E2 08 00 1B 83 80 13 00 00 00 00 00 00 1A [12:56:47]Write i2c OK [12:56:47]MH_I2C_Read... [12:56:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:56:47]Read from MH i2c: E2 [12:56:47]MH_I2C_Read... [12:56:47]Read from MH i2c: E2 62 00 [12:56:47]MH_I2C_Read... [12:56:47]Read from MH i2c: E2 62 00 1B 83 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 FE [12:56: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 7D 76 00 00 0E 04 04 00 72 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 [12:56:47]wFMCommunicate OK [12:56:47]SAM_PROTO_GetFieldsCounters done [12:56:47]requested_item shift.num is exist - process it [12:56:47]requested_item shift.opened is exist - process it [12:56:47]req_shift_opened [12:56:47]FM_GetShiftState [12:56:47]SAM_PROTO_GetShiftState [12:56:47]wFMCommunicate request_size=4 [12:56:47]MH_SAM_APDU [12:56:47]CAPDU: 80 13 01 00 [12:56:47]Write to MH i2c: E2 08 00 1C 83 80 13 01 00 00 00 00 00 1C [12:56:47]Write i2c OK [12:56:47]MH_I2C_Read... [12:56:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:56:47]Read from MH i2c: E2 [12:56:47]MH_I2C_Read... [12:56:47]Read from MH i2c: E2 0E 00 [12:56:47]MH_I2C_Read... [12:56:47]Read from MH i2c: E2 0E 00 1C 83 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 02 [12:56:47]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [12:56:47]wFMCommunicate OK [12:56:47]SAM_PROTO_GetShiftState done [12:56:47]FM_GetShiftState done [12:56:47]req_shift_opened done [12:56:47]requested_item shift.open_date is exist - process it [12:56:47]req_shift_open_date [12:56:47]req_shift_open_date done [12:56:47]produce_requested_data done [12:56:47]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30333,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [12:56:47]process_action_free close_receipt [12:56:47]json_value_free [12:56:47]json_value_free done [12:56:47]process_json_proto returns [12:56:47]Send response to host [12:56:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30333,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [12:56:47]free response buf [12:56:47]execute_script done [12:56:47]execute_script returns [12:56:47]free content buf [12:56:47]Sock 9.Close socket [12:56:47]Sock 9.Thread stoped [12:56:51]OFD Sender: No OFD packet to send [12:56:56]OFD Sender: No OFD packet to send [12:57:01]OFD Sender: No OFD packet to send [12:57:06]OFD Sender: No OFD packet to send [12:57:11]OFD Sender: No OFD packet to send [12:57:16]OFD Sender: No OFD packet to send [12:57:21]OFD Sender: No OFD packet to send [12:57:26]OFD Sender: No OFD packet to send [12:57:31]OFD Sender: No OFD packet to send [12:57:36]OFD Sender: No OFD packet to send [12:57:41]OFD Sender: No OFD packet to send [12:57:46]OFD Sender: No OFD packet to send [12:57:51]OFD Sender: No OFD packet to send [12:57:56]OFD Sender: No OFD packet to send [12:58:01]OFD Sender: No OFD packet to send [12:58:06]OFD Sender: No OFD packet to send [12:58:11]OFD Sender: No OFD packet to send [12:58:16]OFD Sender: No OFD packet to send [12:58:21]OFD Sender: No OFD packet to send [12:58:26]OFD Sender: No OFD packet to send [12:58:31]OFD Sender: No OFD packet to send [12:58:36]OFD Sender: No OFD packet to send [12:58:41]OFD Sender: No OFD packet to send [12:58:46]OFD Sender: No OFD packet to send [12:58:51]OFD Sender: No OFD packet to send [12:58:56]OFD Sender: No OFD packet to send [12:59:01]OFD Sender: No OFD packet to send [12:59:06]OFD Sender: No OFD packet to send [12:59:11]OFD Sender: No OFD packet to send [12:59:16]OFD Sender: No OFD packet to send [12:59:21]OFD Sender: No OFD packet to send [12:59:26]OFD Sender: No OFD packet to send [12:59:31]OFD Sender: No OFD packet to send [12:59:36]OFD Sender: No OFD packet to send [12:59:41]OFD Sender: No OFD packet to send [12:59:46]OFD Sender: No OFD packet to send [12:59:51]OFD Sender: No OFD packet to send [12:59:56]OFD Sender: No OFD packet to send [13:00:01]OFD Sender: No OFD packet to send [13:00:06]OFD Sender: No OFD packet to send [13:00:11]OFD Sender: No OFD packet to send [13:00:16]OFD Sender: No OFD packet to send [13:00:21]OFD Sender: No OFD packet to send [13:00:26]OFD Sender: No OFD packet to send [13:00:31]OFD Sender: No OFD packet to send [13:00:36]OFD Sender: No OFD packet to send [13:00:41]OFD Sender: No OFD packet to send [13:00:46]OFD Sender: No OFD packet to send [13:00:51]OFD Sender: No OFD packet to send [13:00:56]OFD Sender: No OFD packet to send [13:01:01]OFD Sender: No OFD packet to send [13:01:06]OFD Sender: No OFD packet to send [13:01:11]OFD Sender: No OFD packet to send [13:01:16]OFD Sender: No OFD packet to send [13:01:21]OFD Sender: No OFD packet to send [13:01:26]OFD Sender: No OFD packet to send [13:01:31]OFD Sender: No OFD packet to send [13:01:36]OFD Sender: No OFD packet to send [13:01:41]OFD Sender: No OFD packet to send [13:01:46]OFD Sender: No OFD packet to send [13:01:51]OFD Sender: No OFD packet to send [13:01:56]OFD Sender: No OFD packet to send [13:02:01]OFD Sender: No OFD packet to send [13:02:06]OFD Sender: No OFD packet to send [13:02:11]OFD Sender: No OFD packet to send [13:02:16]OFD Sender: No OFD packet to send [13:02:21]OFD Sender: No OFD packet to send [13:02:26]OFD Sender: No OFD packet to send [13:02:31]OFD Sender: No OFD packet to send [13:02: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:03:01]OFD Sender: No OFD packet to send [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:37]OFD Sender: No OFD packet to send [13:03:41]accept exits with 7 [13:03:41]New connection [13:03:41]New thread 3067514212 created [13:03:41]Thread 3067370852 joined [13:03:41]Waiting for new connection... [13:03:41] Sock 7.Parse request [13:03:41]Sock 7.Check first char [13:03:41]Sock 7.First char is OK [13:03:41]request: POST /json_proto HTTP/1.0 [13:03:41]Method: POST [13:03:41]URL: /json_proto [13:03:41]Method is POST - this is cgi request [13:03:41]url: /json_proto [13:03:41]query_string will be loaded in cgi processing [13:03:41]execute_cgi json_proto POST (null) [13:03:41]execute_cgi path=json_proto method=POST [13:03:41]POST find Content-Length [13:03:41]Host: 172.17.51.3:8080 [13:03:41]Content-Length: 675 [13:03:41]Content-Type: application/json [13:03:41] [13:03:41]POST finish read [13:03:41]Found Content-Length = 675 [13:03:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342726", "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" : 10.500, "sum" : 800.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:03:41]execute_script... [13:03: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)342726", "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" : 10.500, "sum" : 800.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:03:41]POST & json_proto [13:03:41]process_json_proto [13:03:41]json parsed OK: [13:03:41]protocol is kg_v1.0 [13:03:41]action value=close_receipt [13:03:41]process_action close_receipt [13:03:41]cmd_close_receipt [13:03:41]MH_GetDate [13:03:41]Write to MH i2c: F0 00 00 1D 83 8F [13:03:41]Write i2c OK [13:03:41]MH_I2C_Read... [13:03:41]Read from MH i2c: F0 [13:03:41]MH_I2C_Read... [13:03:41]Read from MH i2c: F0 09 00 [13:03:41]MH_I2C_Read... [13:03:41]Read from MH i2c: F0 09 00 1D 83 00 B6 FF 14 67 04 C1 95 66 88 [13:03:41]GetLastDocTimeStamp 1729429013 [13:03:41]current date 1729429430 [13:03:41]FM_GetShiftState [13:03:41]SAM_PROTO_GetShiftState [13:03:41]wFMCommunicate request_size=4 [13:03:41]MH_SAM_APDU [13:03:41]CAPDU: 80 13 01 00 [13:03:41]Write to MH i2c: E2 08 00 1E 83 80 13 01 00 00 00 00 00 1E [13:03:41]Write i2c OK [13:03:41]MH_I2C_Read... [13:03:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:03:41]Read from MH i2c: E2 [13:03:41]MH_I2C_Read... [13:03:41]Read from MH i2c: E2 0E 00 [13:03:41]MH_I2C_Read... [13:03:41]Read from MH i2c: E2 0E 00 1E 83 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 04 [13:03:41]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [13:03:41]wFMCommunicate OK [13:03:41]SAM_PROTO_GetShiftState done [13:03:41]FM_GetShiftState done [13:03:41]opened in 1729384718 [13:03:41]opened+sec_in_day 1729471118 [13:03:41]quantity*price = 80010 [13:03:41]sum+1 = 80011 [13:03:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 116 20.10.2024 13:03 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30334 ФПД: 217885171557827 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T130350&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30334&fm=217885171557827&tin=02508201610067®Number=0000000000186857&sum=80000 [13:03:42]StoreToDocumentArchive [13:03:42]shift 114 fd 30334 [13:03:42]save to /storage/0114/doc_00030334 [13:03:42]save last doc name /storage/0114/doc_00030334 to /storage/kkm_last_doc_name [13:03:42]save OK [13:03:42]Clear old archive folders... [13:03:42]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:03:42]tlvbuf is 00CF6030 [13:03:42]SAM_PROTO_ClearQueue [13:03:42]wFMCommunicate request_size=4 [13:03:42]MH_SAM_APDU [13:03:42]CAPDU: 80 09 00 00 [13:03:42]Write to MH i2c: E2 08 00 2B 83 80 09 00 00 00 00 00 00 20 [13:03:42]Write i2c OK [13:03:42]MH_I2C_Read... [13:03:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:03:42]Read from MH i2c: E2 [13:03:42]MH_I2C_Read... [13:03:42]Read from MH i2c: E2 03 00 [13:03:42]MH_I2C_Read... [13:03:42]Read from MH i2c: E2 03 00 2B 83 00 90 00 22 [13:03:42]RAPDU: 90 00 [13:03:42]wFMCommunicate OK [13:03:42]SAM_PROTO_ClearQueue done [13:03:42]KKMCreateOFDPacket [13:03:42]OFDProtocolAddRootSTLVToBuf [13:03:42]FM_MakeSignedData [13:03:42]FM_MakeSignedData [13:03:42]SAM_PROTO_SignData [13:03:42]wFMCommunicate request_size=4 [13:03:42]MH_SAM_APDU [13:03:42]CAPDU: 80 0D 01 02 [13:03:42]Write to MH i2c: E2 08 00 2C 83 80 0D 01 02 00 00 00 00 28 [13:03:42]Write i2c OK [13:03:42]MH_I2C_Read... [13:03:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:03:42]Read from MH i2c: E2 [13:03:42]MH_I2C_Read... [13:03:42]Read from MH i2c: E2 03 00 [13:03:42]MH_I2C_Read... [13:03:42]Read from MH i2c: E2 03 00 2C 83 00 90 00 23 [13:03:42]RAPDU: 90 00 [13:03:42]wFMCommunicate OK [13:03:42]wFMCommunicate request_size=255 [13:03:42]MH_SAM_APDU [13:03:42]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 B6 FF 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 C6 2A 58 40 [13:03:42]Write to MH i2c: E2 02 01 2D 83 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 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 B6 FF 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 C6 2A 58 40 00 00 74 [13:03:42]Write i2c OK [13:03:42]MH_I2C_Read... [13:03:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:03:42]Read from MH i2c: E2 [13:03:42]MH_I2C_Read... [13:03:42]Read from MH i2c: E2 03 00 [13:03:42]MH_I2C_Read... [13:03:42]Read from MH i2c: E2 03 00 2D 83 00 90 00 24 [13:03:42]RAPDU: 90 00 [13:03:42]wFMCommunicate OK [13:03:42]wFMCommunicate request_size=7 [13:03:42]MH_SAM_APDU [13:03:42]CAPDU: 80 0D 02 02 02 A5 C3 [13:03:42]Write to MH i2c: E2 0A 00 2E 83 80 0D 02 02 02 00 A5 C3 00 00 97 [13:03:42]Write i2c OK [13:03:42]MH_I2C_Read... [13:03:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:03:42]Read from MH i2c: E2 [13:03:42]MH_I2C_Read... [13:03:42]Read from MH i2c: E2 03 00 [13:03:42]MH_I2C_Read... [13:03:42]Read from MH i2c: E2 03 00 2E 83 00 90 00 25 [13:03:42]RAPDU: 90 00 [13:03:42]wFMCommunicate OK [13:03:42]wFMCommunicate request_size=4 [13:03:42]MH_SAM_APDU [13:03:42]CAPDU: 80 0D 03 02 [13:03:42]Write to MH i2c: E2 08 00 2F 83 80 0D 03 02 00 00 00 00 2D [13:03:42]Write i2c OK [13:03:42]MH_I2C_Read... [13:03:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:03:42]Read from MH i2c: E2 [13:03:42]MH_I2C_Read... [13:03:42]Read from MH i2c: E2 0B 00 [13:03:42]MH_I2C_Read... [13:03:42]Read from MH i2c: E2 0B 00 2F 83 00 0A 8A 70 A1 C8 F3 57 D0 90 00 B5 [13:03:42]RAPDU: 0A 8A 70 A1 C8 F3 57 D0 90 00 [13:03:42]wFMCommunicate OK [13:03:42]SAM_PROTO_SignData done [13:03:42]FM_MakeSignedData done [13:03:42]CreateOFDProtocolMessage [13:03:42]wFMCommunicate request_size=4 [13:03:42]MH_SAM_APDU [13:03:42]CAPDU: 80 11 00 00 [13:03:42]Write to MH i2c: E2 08 00 30 83 80 11 00 00 00 00 00 00 2D [13:03:42]Write i2c OK [13:03:42]MH_I2C_Read... [13:03:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:03:42]Read from MH i2c: E2 [13:03:42]MH_I2C_Read... [13:03:42]Read from MH i2c: E2 17 00 [13:03:42]MH_I2C_Read... [13:03:42]Read from MH i2c: E2 17 00 30 83 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 7B [13:03:42]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:42]wFMCommunicate OK [13:03:42]CreateOFDProtocolMessage done [13:03:42]OFDSenderStorePacket 30334 [13:03:42]StoreOFDPacket docnum=30334 [13:03: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 0C 01 00 00 AC 6C 04 01 11 90 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 B6 FF 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 C6 2A 58 40 A5 C3 0A 8A 70 A1 C8 F3 57 D0 [13:03:42]CheckFolder [13:03:42]dirname=/storage/ofd_packets [13:03:42]CheckFolder done [13:03:42]ProducePacketName [13:03:42]name=ofd_packets/00030334 [13:03:42]NVStorageSaveData ofd_packets/00030334 [13:03:42]File name is /storage/ofd_packets/00030334 [13:03:42]Write 298 bytes [13:03:42]NVStorageSaveData done [13:03:42]OFDSenderStorePacket done [13:03:42]KKMCreateOFDPacket done [13:03:42]NVStorageSaveData kkm_last_timestamp [13:03:42]File name is /storage/kkm_last_timestamp [13:03:42]Write 4 bytes [13:03:42]NVStorageSaveData done [13:03:42]ExternCall_PrintAddStr [13:03:42]wPrintStart [13:03:42]Write to MH i2c: 01 00 00 31 83 B4 [13:03:42]Write i2c OK [13:03:42]MH_I2C_Read... [13:03:42]Read from MH i2c: 01 [13:03:42]MH_I2C_Read... [13:03:42]Read from MH i2c: 01 07 00 [13:03:42]MH_I2C_Read... [13:03:42]Read from MH i2c: 01 07 00 31 83 00 00 00 00 00 FF 0F C9 [13:03:42]RasterBufferAndPrint [13:03:42]line Счет N : (1)342726 [13:03:42]line ИНН: 02508201610067 [13:03:42]line Контрольно-Кассовый Чек [13:03:42]line ПРОДАЖА [13:03:42]line ТРК (МРК, ГНК) : 44 [13:03:42]line Товар: 2710194210 [13:03:42]line ДТ-К-2 [13:03:42]line 10.500 * 76.20 [13:03:42]line = 800.10 [13:03:42]line НДС 12% НСП 1% [13:03:42]line > о реализуемом товаре [13:03:42]line ОКРУГЛЕНИЕ: -0.10 [13:03:42]line ИТОГО: 800.00 [13:03:42]line Внесено: 800.00 [13:03:42]line СДАЧА: 0.00 [13:03:42]line НСП 1% : 7.08 [13:03:42]line НДС 12% : 84.97 [13:03:42]line Наличными: 800.00 [13:03:42]line Безнал.: 0.00 [13:03:42]line Место: АЗС № 78 "Партнер Нефть" [13:03:42]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [13:03:42]line СНО: Общий режим [13:03:42]line Чек 116 20.10.2024 13:03 [13:03:42]line Смена: 114 ФФД: 1.0 [13:03:42]line ЗНМ: 0300000137 [13:03:42]line РНМ: 0000000000186857 [13:03:42]line Версия ККМ: v1.0 [13:03:42]line ФМ: 0000000002094219 [13:03:42]line ФД: 30334 [13:03:42]line ФПД: 217885171557827 [13:03:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T130350&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30334&fm=217885171557827&tin=02508201610067®Number=0000000000186857&sum=80000 [13:03:43]OFD Sender: Processing packet 30334 [packets to send 10, broken 9] [13:03:43]ProducePacketName [13:03:43]name=ofd_packets/00030334 [13:03:43]OFD Sender: To server: pG, [13:03:43]CommunicateWithHost lk.salyk.kg:30040 [13:03:43]ConnectInit lk.salyk.kg [13:03:43]written 0, free lines is 4095 [13:03:43]Connected sock=10 [13:03: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 0C 01 00 00 AC 6C 04 01 11 90 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 B6 FF 14 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 C6 2A 58 40 A5 C3 0A 8A 70 A1 C8 F3 57 D0 [13:03: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 E5 CB 47 00 BF 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 7E 76 00 00 F4 03 04 00 3A AA 14 67 B6 04 01 00 00 0A 4D 02 94 E2 63 47 25 [13:03:43]CommunicateWithHost err = 0 [13:03:43]CheckOFDResponse [13:03:43]1017 (14) - 77093643461234 [13:03:43]1041 (16) - 0000000002094219 [13:03:43]1040 (4) - 30334 [13:03:43]1012 (4) - 20.10.2024 06:59 [13:03:43]1206 (1) - 0 [13:03:43]OFD Sender: Remove packet 30334 [13:03:43]ProducePacketName [13:03:43]name=ofd_packets/00030334 [13:03:43]NVStorageDeleteData [13:03:43]Write to MH i2c: 01 00 00 5C 83 DF [13:03:43]Write i2c OK [13:03:43]MH_I2C_Read... [13:03:43]Read from MH i2c: 01 [13:03:43]MH_I2C_Read... [13:03:43]Read from MH i2c: 01 07 00 [13:03:43]MH_I2C_Read... [13:03:43]Read from MH i2c: 01 07 00 5C 83 00 00 00 00 00 E4 0C D6 [13:03:43]RasterBufferAndPrint [13:03:43]line [13:03:43]line [13:03:43]line [13:03:43]line [13:03:43]line [13:03:43]written 0, free lines is 3306 [13:03:43]MH_Cut [13:03:43]Write to MH i2c: D1 01 00 63 83 01 B8 [13:03:43]Write i2c OK [13:03:43]MH_I2C_Read... [13:03:43]Read from MH i2c: D1 [13:03:43]MH_I2C_Read... [13:03:43]Read from MH i2c: D1 01 00 [13:03:43]MH_I2C_Read... [13:03:43]Read from MH i2c: D1 01 00 63 83 00 B7 [13:03:43]Write to MH i2c: 01 00 00 64 83 E7 [13:03:43]Write i2c OK [13:03:43]MH_I2C_Read... [13:03:43]OFD Sender: No OFD packet to send [13:03:44]*** Cut start [13:03:44]*** Partial cut [13:03:44]*** CUTSNS_PIN = 1 [13:03:44]*** CUTSNS_PIN = 0 [13:03:44]*** Brake cut motor [13:03:44]Read from MH i2c: 01 [13:03:44]MH_I2C_Read... [13:03:44]*** Stop cut motor [13:03:44]*** Cut end [13:03:44]Read from MH i2c: 01 07 00 [13:03:44]MH_I2C_Read... [13:03:44]Read from MH i2c: 01 07 00 64 83 00 00 00 00 00 FF 0F FC [13:03:44]process_action close_receipt done [13:03:44]requested_data is exist [13:03:44]produce_requested_data [13:03:44]requested_item fm.sn is exist - process it [13:03:44]wFMCommunicate request_size=4 [13:03:44]MH_SAM_APDU [13:03:44]CAPDU: 80 11 00 00 [13:03:44]Write to MH i2c: E2 08 00 65 83 80 11 00 00 00 00 00 00 62 [13:03:44]Write i2c OK [13:03:44]MH_I2C_Read... [13:03:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:03:44]Read from MH i2c: E2 [13:03:44]MH_I2C_Read... [13:03:44]Read from MH i2c: E2 17 00 [13:03:44]MH_I2C_Read... [13:03:44]Read from MH i2c: E2 17 00 65 83 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 B0 [13:03: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:03:44]wFMCommunicate OK [13:03:44]requested_item fd.num is exist - process it [13:03:44]SAM_PROTO_GetFieldsCounters [13:03:44]wFMCommunicate request_size=4 [13:03:44]MH_SAM_APDU [13:03:44]CAPDU: 80 13 00 00 [13:03:44]Write to MH i2c: E2 08 00 66 83 80 13 00 00 00 00 00 00 65 [13:03:44]Write i2c OK [13:03:44]MH_I2C_Read... [13:03:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:03:45]Read from MH i2c: E2 [13:03:45]MH_I2C_Read... [13:03:45]Read from MH i2c: E2 62 00 [13:03:45]MH_I2C_Read... [13:03:45]Read from MH i2c: E2 62 00 66 83 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 4D [13:03: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 7E 76 00 00 0E 04 04 00 72 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:03:45]wFMCommunicate OK [13:03:45]SAM_PROTO_GetFieldsCounters done [13:03:45]requested_item shift.num is exist - process it [13:03:45]requested_item shift.opened is exist - process it [13:03:45]req_shift_opened [13:03:45]FM_GetShiftState [13:03:45]SAM_PROTO_GetShiftState [13:03:45]wFMCommunicate request_size=4 [13:03:45]MH_SAM_APDU [13:03:45]CAPDU: 80 13 01 00 [13:03:45]Write to MH i2c: E2 08 00 67 83 80 13 01 00 00 00 00 00 67 [13:03:45]Write i2c OK [13:03:45]MH_I2C_Read... [13:03:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:03:45]Read from MH i2c: E2 [13:03:45]MH_I2C_Read... [13:03:45]Read from MH i2c: E2 0E 00 [13:03:45]MH_I2C_Read... [13:03:45]Read from MH i2c: E2 0E 00 67 83 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 4D [13:03:45]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [13:03:45]wFMCommunicate OK [13:03:45]SAM_PROTO_GetShiftState done [13:03:45]FM_GetShiftState done [13:03:45]req_shift_opened done [13:03:45]requested_item shift.open_date is exist - process it [13:03:45]req_shift_open_date [13:03:45]req_shift_open_date done [13:03:45]produce_requested_data done [13:03:45]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30334,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [13:03:45]process_action_free close_receipt [13:03:45]json_value_free [13:03:45]json_value_free done [13:03:45]process_json_proto returns [13:03:45]Send response to host [13:03:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30334,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [13:03:45]free response buf [13:03:45]execute_script done [13:03:45]execute_script returns [13:03:45]free content buf [13:03:45]Sock 7.Close socket [13:03:45]Sock 7.Thread stoped [13:03:48]OFD Sender: No OFD packet to send [13:03:53]OFD Sender: No OFD packet to send [13:03:58]OFD Sender: No OFD packet to send [13:04:03]OFD Sender: No OFD packet to send [13:04:08]OFD Sender: No OFD packet to send [13:04:13]OFD Sender: No OFD packet to send [13:04:18]OFD Sender: No OFD packet to send [13:04:23]OFD Sender: No OFD packet to send [13:04:28]OFD Sender: No OFD packet to send [13:04:33]OFD Sender: No OFD packet to send [13:04:38]OFD Sender: No OFD packet to send [13:04:43]OFD Sender: No OFD packet to send [13:04:48]OFD Sender: No OFD packet to send [13:04:53]OFD Sender: No OFD packet to send [13:04:58]OFD Sender: No OFD packet to send [13:05:03]OFD Sender: No OFD packet to send [13:05:08]OFD Sender: No OFD packet to send [13:05:13]OFD Sender: No OFD packet to send [13:05:18]OFD Sender: No OFD packet to send [13:05:23]OFD Sender: No OFD packet to send [13:05:28]OFD Sender: No OFD packet to send [13:05:33]OFD Sender: No OFD packet to send [13:05:38]OFD Sender: No OFD packet to send [13:05:43]OFD Sender: No OFD packet to send [13:05:49]OFD Sender: No OFD packet to send [13:05:54]OFD Sender: No OFD packet to send [13:05:59]OFD Sender: No OFD packet to send [13:06:04]OFD Sender: No OFD packet to send [13:06:09]OFD Sender: No OFD packet to send [13:06:14]OFD Sender: No OFD packet to send [13:06:19]OFD Sender: No OFD packet to send [13:06:24]OFD Sender: No OFD packet to send [13:06:29]OFD Sender: No OFD packet to send [13:06:34]OFD Sender: No OFD packet to send [13:06:39]OFD Sender: No OFD packet to send [13:06:44]OFD Sender: No OFD packet to send [13:06:49]OFD Sender: No OFD packet to send [13:06:54]OFD Sender: No OFD packet to send [13:06:59]OFD Sender: No OFD packet to send [13:07:04]OFD Sender: No OFD packet to send [13:07:09]OFD Sender: No OFD packet to send [13:07:14]OFD Sender: No OFD packet to send [13:07:19]OFD Sender: No OFD packet to send [13:07:24]OFD Sender: No OFD packet to send [13:07:29]OFD Sender: No OFD packet to send [13:07:34]OFD Sender: No OFD packet to send [13:07:39]OFD Sender: No OFD packet to send [13:07:44]OFD Sender: No OFD packet to send [13:07:49]OFD Sender: No OFD packet to send [13:07:54]OFD Sender: No OFD packet to send [13:07:59]OFD Sender: No OFD packet to send [13:08:04]OFD Sender: No OFD packet to send [13:08:09]OFD Sender: No OFD packet to send [13:08:14]OFD Sender: No OFD packet to send [13:08:19]OFD Sender: No OFD packet to send [13:08:24]OFD Sender: No OFD packet to send [13:08:29]OFD Sender: No OFD packet to send [13:08:29]accept exits with 9 [13:08:29]New connection [13:08:29]New thread 3067370852 created [13:08:29]Thread 3067514212 joined [13:08:29]Waiting for new connection... [13:08:29] Sock 9.Parse request [13:08:29]Sock 9.Check first char [13:08:29]Sock 9.First char is OK [13:08:29]request: POST /json_proto HTTP/1.0 [13:08:29]Method: POST [13:08:29]URL: /json_proto [13:08:29]Method is POST - this is cgi request [13:08:29]url: /json_proto [13:08:29]query_string will be loaded in cgi processing [13:08:29]execute_cgi json_proto POST (null) [13:08:29]execute_cgi path=json_proto method=POST [13:08:29]POST find Content-Length [13:08:29]Host: 172.17.51.3:8080 [13:08:29]Content-Length: 678 [13:08:29]Content-Type: application/json [13:08:29] [13:08:29]POST finish read [13:08:29]Found Content-Length = 678 [13:08:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342727", "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" ] } } [13:08:29]execute_script... [13:08: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)342727", "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" ] } } [13:08:29]POST & json_proto [13:08:29]process_json_proto [13:08:29]json parsed OK: [13:08:29]protocol is kg_v1.0 [13:08:29]action value=close_receipt [13:08:29]process_action close_receipt [13:08:29]cmd_close_receipt [13:08:29]MH_GetDate [13:08:29]Write to MH i2c: F0 00 00 68 83 DA [13:08:29]Write i2c OK [13:08:29]MH_I2C_Read... [13:08:29]Read from MH i2c: F0 [13:08:29]MH_I2C_Read... [13:08:29]Read from MH i2c: F0 09 00 [13:08:29]MH_I2C_Read... [13:08:29]Read from MH i2c: F0 09 00 68 83 00 D7 00 15 67 04 C1 95 66 F6 [13:08:29]GetLastDocTimeStamp 1729429430 [13:08:29]current date 1729429719 [13:08:29]FM_GetShiftState [13:08:29]SAM_PROTO_GetShiftState [13:08:29]wFMCommunicate request_size=4 [13:08:29]MH_SAM_APDU [13:08:29]CAPDU: 80 13 01 00 [13:08:29]Write to MH i2c: E2 08 00 69 83 80 13 01 00 00 00 00 00 69 [13:08:29]Write i2c OK [13:08:29]MH_I2C_Read... [13:08:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:08:29]Read from MH i2c: E2 [13:08:29]MH_I2C_Read... [13:08:29]Read from MH i2c: E2 0E 00 [13:08:29]MH_I2C_Read... [13:08:29]Read from MH i2c: E2 0E 00 69 83 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 4F [13:08:29]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [13:08:29]wFMCommunicate OK [13:08:29]SAM_PROTO_GetShiftState done [13:08:29]FM_GetShiftState done [13:08:29]opened in 1729384718 [13:08:29]opened+sec_in_day 1729471118 [13:08:29]quantity*price = 70044 [13:08:29]sum+1 = 70045 [13:08:29]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 СНО: Общий режим Чек 117 20.10.2024 13:08 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30335 ФПД: 35162662774180 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T130839&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30335&fm=35162662774180&tin=02508201610067®Number=0000000000186857&sum=70000 [13:08:30]StoreToDocumentArchive [13:08:30]shift 114 fd 30335 [13:08:30]save to /storage/0114/doc_00030335 [13:08:30]save last doc name /storage/0114/doc_00030335 to /storage/kkm_last_doc_name [13:08:30]save OK [13:08:30]Clear old archive folders... [13:08:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:08:30]tlvbuf is 00AA0180 [13:08:30]SAM_PROTO_ClearQueue [13:08:30]wFMCommunicate request_size=4 [13:08:30]MH_SAM_APDU [13:08:30]CAPDU: 80 09 00 00 [13:08:30]Write to MH i2c: E2 08 00 76 83 80 09 00 00 00 00 00 00 6B [13:08:30]Write i2c OK [13:08:30]MH_I2C_Read... [13:08:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:08:30]Read from MH i2c: E2 [13:08:30]MH_I2C_Read... [13:08:30]Read from MH i2c: E2 03 00 [13:08:30]MH_I2C_Read... [13:08:30]Read from MH i2c: E2 03 00 76 83 00 90 00 6D [13:08:30]RAPDU: 90 00 [13:08:30]wFMCommunicate OK [13:08:30]SAM_PROTO_ClearQueue done [13:08:30]KKMCreateOFDPacket [13:08:30]OFDProtocolAddRootSTLVToBuf [13:08:30]FM_MakeSignedData [13:08:30]FM_MakeSignedData [13:08:30]SAM_PROTO_SignData [13:08:30]wFMCommunicate request_size=4 [13:08:30]MH_SAM_APDU [13:08:30]CAPDU: 80 0D 01 02 [13:08:30]Write to MH i2c: E2 08 00 77 83 80 0D 01 02 00 00 00 00 73 [13:08:30]Write i2c OK [13:08:30]MH_I2C_Read... [13:08:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:08:30]Read from MH i2c: E2 [13:08:30]MH_I2C_Read... [13:08:30]Read from MH i2c: E2 03 00 [13:08:30]MH_I2C_Read... [13:08:30]Read from MH i2c: E2 03 00 77 83 00 90 00 6E [13:08:30]RAPDU: 90 00 [13:08:30]wFMCommunicate OK [13:08:30]wFMCommunicate request_size=255 [13:08:30]MH_SAM_APDU [13:08: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 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 75 00 00 00 F4 03 04 00 D7 00 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 1F [13:08:30]Write to MH i2c: E2 02 01 78 83 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 75 00 00 00 F4 03 04 00 D7 00 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 1F 00 00 62 [13:08:30]Write i2c OK [13:08:30]MH_I2C_Read... [13:08:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:08:31]Read from MH i2c: E2 [13:08:31]MH_I2C_Read... [13:08:31]Read from MH i2c: E2 03 00 [13:08:31]MH_I2C_Read... [13:08:31]Read from MH i2c: E2 03 00 78 83 00 90 00 6F [13:08:31]RAPDU: 90 00 [13:08:31]wFMCommunicate OK [13:08:31]wFMCommunicate request_size=10 [13:08:31]MH_SAM_APDU [13:08:31]CAPDU: 80 0D 02 02 05 FA F2 06 25 A4 [13:08:31]Write to MH i2c: E2 0D 00 79 83 80 0D 02 02 05 00 FA F2 06 25 A4 00 00 3B [13:08:31]Write i2c OK [13:08:31]MH_I2C_Read... [13:08:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:08:31]Read from MH i2c: E2 [13:08:31]MH_I2C_Read... [13:08:31]Read from MH i2c: E2 03 00 [13:08:31]MH_I2C_Read... [13:08:31]Read from MH i2c: E2 03 00 79 83 00 90 00 70 [13:08:31]RAPDU: 90 00 [13:08:31]wFMCommunicate OK [13:08:31]wFMCommunicate request_size=4 [13:08:31]MH_SAM_APDU [13:08:31]CAPDU: 80 0D 03 02 [13:08:31]Write to MH i2c: E2 08 00 7A 83 80 0D 03 02 00 00 00 00 78 [13:08:31]Write i2c OK [13:08:31]MH_I2C_Read... [13:08:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:08:31]Read from MH i2c: E2 [13:08:31]MH_I2C_Read... [13:08:31]Read from MH i2c: E2 0B 00 [13:08:31]MH_I2C_Read... [13:08:31]Read from MH i2c: E2 0B 00 7A 83 00 1C E8 B6 B4 6D 2E AC 70 90 00 9E [13:08:31]RAPDU: 1C E8 B6 B4 6D 2E AC 70 90 00 [13:08:31]wFMCommunicate OK [13:08:31]SAM_PROTO_SignData done [13:08:31]FM_MakeSignedData done [13:08:31]CreateOFDProtocolMessage [13:08:31]wFMCommunicate request_size=4 [13:08:31]MH_SAM_APDU [13:08:31]CAPDU: 80 11 00 00 [13:08:31]Write to MH i2c: E2 08 00 7B 83 80 11 00 00 00 00 00 00 78 [13:08:31]Write i2c OK [13:08:31]MH_I2C_Read... [13:08:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:08:31]Read from MH i2c: E2 [13:08:31]MH_I2C_Read... [13:08:31]Read from MH i2c: E2 17 00 [13:08:31]MH_I2C_Read... [13:08:31]Read from MH i2c: E2 17 00 7B 83 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 C6 [13:08:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [13:08:31]wFMCommunicate OK [13:08:31]CreateOFDProtocolMessage done [13:08:31]OFDSenderStorePacket 30335 [13:08:31]StoreOFDPacket docnum=30335 [13:08: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 30 95 07 01 47 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 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 75 00 00 00 F4 03 04 00 D7 00 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 1F FA F2 06 25 A4 1C E8 B6 B4 6D 2E AC 70 [13:08:31]CheckFolder [13:08:31]dirname=/storage/ofd_packets [13:08:31]CheckFolder done [13:08:31]ProducePacketName [13:08:31]name=ofd_packets/00030335 [13:08:31]NVStorageSaveData ofd_packets/00030335 [13:08:31]File name is /storage/ofd_packets/00030335 [13:08:31]Write 301 bytes [13:08:31]NVStorageSaveData done [13:08:31]OFDSenderStorePacket done [13:08:31]KKMCreateOFDPacket done [13:08:31]NVStorageSaveData kkm_last_timestamp [13:08:31]File name is /storage/kkm_last_timestamp [13:08:31]Write 4 bytes [13:08:31]NVStorageSaveData done [13:08:31]ExternCall_PrintAddStr [13:08:31]wPrintStart [13:08:31]Write to MH i2c: 01 00 00 7C 83 FF [13:08:31]Write i2c OK [13:08:31]MH_I2C_Read... [13:08:31]Read from MH i2c: 01 [13:08:31]MH_I2C_Read... [13:08:31]Read from MH i2c: 01 07 00 [13:08:31]MH_I2C_Read... [13:08:31]Read from MH i2c: 01 07 00 7C 83 00 00 00 00 00 FF 0F 14 [13:08:31]RasterBufferAndPrint [13:08:31]line Счет N : (1)342727 [13:08:31]line ИНН: 02508201610067 [13:08:31]line Контрольно-Кассовый Чек [13:08:31]line ПРОДАЖА [13:08:31]line ТРК (МРК, ГНК) : 63 [13:08:31]line Товар: 2710124130 [13:08:31]line Аи-92-К-2 [13:08:31]line 10.470 * 66.90 [13:08:31]line = 700.44 [13:08:31]line НДС 12% НСП 1% [13:08:31]line > о реализуемом товаре [13:08:31]line ОКРУГЛЕНИЕ: -0.44 [13:08:31]line ИТОГО: 700.00 [13:08:31]line Внесено: 700.00 [13:08:31]line СДАЧА: 0.00 [13:08:31]line НСП 1% : 6.20 [13:08:31]line НДС 12% : 74.38 [13:08:31]line Наличными: 700.00 [13:08:31]line Безнал.: 0.00 [13:08:31]line Место: АЗС № 78 "Партнер Нефть" [13:08:31]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [13:08:31]line СНО: Общий режим [13:08:31]line Чек 117 20.10.2024 13:08 [13:08:31]line Смена: 114 ФФД: 1.0 [13:08:31]line ЗНМ: 0300000137 [13:08:31]line РНМ: 0000000000186857 [13:08:31]line Версия ККМ: v1.0 [13:08:31]line ФМ: 0000000002094219 [13:08:31]line ФД: 30335 [13:08:31]line ФПД: 35162662774180 [13:08:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T130839&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30335&fm=35162662774180&tin=02508201610067®Number=0000000000186857&sum=70000 [13:08:31]OFD Sender: Processing packet 30335 [packets to send 10, broken 9] [13:08:31]ProducePacketName [13:08:31]name=ofd_packets/00030335 [13:08:31]OFD Sender: To server: pG, [13:08:31]CommunicateWithHost lk.salyk.kg:30040 [13:08:31]ConnectInit lk.salyk.kg [13:08:31]written 0, free lines is 4095 [13:08:31]Connected sock=10 [13:08: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 30 95 07 01 47 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 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 75 00 00 00 F4 03 04 00 D7 00 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 1F FA F2 06 25 A4 1C E8 B6 B4 6D 2E AC 70 [13:08: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 C3 96 47 00 C7 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 7F 76 00 00 F4 03 04 00 5A AB 14 67 B6 04 01 00 00 3A 2C E4 5D 38 EA E4 7A [13:08:31]CommunicateWithHost err = 0 [13:08:31]CheckOFDResponse [13:08:31]1017 (14) - 77093643461234 [13:08:31]1041 (16) - 0000000002094219 [13:08:31]1040 (4) - 30335 [13:08:31]1012 (4) - 20.10.2024 07:03 [13:08:31]1206 (1) - 0 [13:08:31]OFD Sender: Remove packet 30335 [13:08:31]ProducePacketName [13:08:31]name=ofd_packets/00030335 [13:08:31]NVStorageDeleteData [13:08:32]Write to MH i2c: 01 00 00 A7 83 2A [13:08:32]Write i2c OK [13:08:32]MH_I2C_Read... [13:08:32]Read from MH i2c: 01 [13:08:32]MH_I2C_Read... [13:08:32]Read from MH i2c: 01 07 00 [13:08:32]MH_I2C_Read... [13:08:32]Read from MH i2c: 01 07 00 A7 83 00 00 00 00 00 E4 0C 21 [13:08:32]RasterBufferAndPrint [13:08:32]line [13:08:32]line [13:08:32]line [13:08:32]line [13:08:32]line [13:08:32]written 0, free lines is 3306 [13:08:32]MH_Cut [13:08:32]Write to MH i2c: D1 01 00 AE 83 01 03 [13:08:32]Write i2c OK [13:08:32]MH_I2C_Read... [13:08:32]Read from MH i2c: D1 [13:08:32]MH_I2C_Read... [13:08:32]Read from MH i2c: D1 01 00 [13:08:32]MH_I2C_Read... [13:08:32]Read from MH i2c: D1 01 00 AE 83 00 02 [13:08:32]Write to MH i2c: 01 00 00 AF 83 32 [13:08:32]Write i2c OK [13:08:32]MH_I2C_Read... [13:08:32]OFD Sender: No OFD packet to send [13:08:32]*** Cut start [13:08:32]*** Partial cut [13:08:32]*** CUTSNS_PIN = 1 [13:08:32]*** CUTSNS_PIN = 0 [13:08:32]*** Brake cut motor [13:08:33]Read from MH i2c: 01 [13:08:33]MH_I2C_Read... [13:08:33]*** Stop cut motor [13:08:33]*** Cut end [13:08:33]Read from MH i2c: 01 07 00 [13:08:33]MH_I2C_Read... [13:08:33]Read from MH i2c: 01 07 00 AF 83 00 00 00 00 00 FF 0F 47 [13:08:33]process_action close_receipt done [13:08:33]requested_data is exist [13:08:33]produce_requested_data [13:08:33]requested_item fm.sn is exist - process it [13:08:33]wFMCommunicate request_size=4 [13:08:33]MH_SAM_APDU [13:08:33]CAPDU: 80 11 00 00 [13:08:33]Write to MH i2c: E2 08 00 B0 83 80 11 00 00 00 00 00 00 AD [13:08:33]Write i2c OK [13:08:33]MH_I2C_Read... [13:08:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:08:33]Read from MH i2c: E2 [13:08:33]MH_I2C_Read... [13:08:33]Read from MH i2c: E2 17 00 [13:08:33]MH_I2C_Read... [13:08:33]Read from MH i2c: E2 17 00 B0 83 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 FB [13:08: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:08:33]wFMCommunicate OK [13:08:33]requested_item fd.num is exist - process it [13:08:33]SAM_PROTO_GetFieldsCounters [13:08:33]wFMCommunicate request_size=4 [13:08:33]MH_SAM_APDU [13:08:33]CAPDU: 80 13 00 00 [13:08:33]Write to MH i2c: E2 08 00 B1 83 80 13 00 00 00 00 00 00 B0 [13:08:33]Write i2c OK [13:08:33]MH_I2C_Read... [13:08:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:08:33]Read from MH i2c: E2 [13:08:33]MH_I2C_Read... [13:08:33]Read from MH i2c: E2 62 00 [13:08:33]MH_I2C_Read... [13:08:33]Read from MH i2c: E2 62 00 B1 83 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 9C [13:08: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 7F 76 00 00 0E 04 04 00 72 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:08:33]wFMCommunicate OK [13:08:33]SAM_PROTO_GetFieldsCounters done [13:08:33]requested_item shift.num is exist - process it [13:08:33]requested_item shift.opened is exist - process it [13:08:33]req_shift_opened [13:08:33]FM_GetShiftState [13:08:33]SAM_PROTO_GetShiftState [13:08:33]wFMCommunicate request_size=4 [13:08:33]MH_SAM_APDU [13:08:33]CAPDU: 80 13 01 00 [13:08:33]Write to MH i2c: E2 08 00 B2 83 80 13 01 00 00 00 00 00 B2 [13:08:33]Write i2c OK [13:08:33]MH_I2C_Read... [13:08:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:08:33]Read from MH i2c: E2 [13:08:33]MH_I2C_Read... [13:08:33]Read from MH i2c: E2 0E 00 [13:08:33]MH_I2C_Read... [13:08:33]Read from MH i2c: E2 0E 00 B2 83 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 98 [13:08:33]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [13:08:33]wFMCommunicate OK [13:08:33]SAM_PROTO_GetShiftState done [13:08:33]FM_GetShiftState done [13:08:33]req_shift_opened done [13:08:33]requested_item shift.open_date is exist - process it [13:08:33]req_shift_open_date [13:08:33]req_shift_open_date done [13:08:33]produce_requested_data done [13:08:33]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30335,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [13:08:33]process_action_free close_receipt [13:08:33]json_value_free [13:08:33]json_value_free done [13:08:33]process_json_proto returns [13:08:33]Send response to host [13:08:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30335,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [13:08:33]free response buf [13:08:33]execute_script done [13:08:33]execute_script returns [13:08:33]free content buf [13:08:33]Sock 9.Close socket [13:08:33]Sock 9.Thread stoped [13:08:37]OFD Sender: No OFD packet to send [13:08:42]OFD Sender: No OFD packet to send [13:08:47]OFD Sender: No OFD packet to send [13:08:52]OFD Sender: No OFD packet to send [13:08:57]OFD Sender: No OFD packet to send [13:09:02]OFD Sender: No OFD packet to send [13:09:07]OFD Sender: No OFD packet to send [13:09:12]OFD Sender: No OFD packet to send [13:09:17]OFD Sender: No OFD packet to send [13:09:22]OFD Sender: No OFD packet to send [13:09:27]OFD Sender: No OFD packet to send [13:09:32]OFD Sender: No OFD packet to send [13:09:37]OFD Sender: No OFD packet to send [13:09:42]OFD Sender: No OFD packet to send [13:09:47]OFD Sender: No OFD packet to send [13:09:52]OFD Sender: No OFD packet to send [13:09:57]OFD Sender: No OFD packet to send [13:10:02]OFD Sender: No OFD packet to send [13:10:07]OFD Sender: No OFD packet to send [13:10:12]OFD Sender: No OFD packet to send [13:10:17]OFD Sender: No OFD packet to send [13:10:22]OFD Sender: No OFD packet to send [13:10:27]OFD Sender: No OFD packet to send [13:10:32]OFD Sender: No OFD packet to send [13:10:37]OFD Sender: No OFD packet to send [13:10:42]OFD Sender: No OFD packet to send [13:10:47]OFD Sender: No OFD packet to send [13:10:52]OFD Sender: No OFD packet to send [13:10:57]OFD Sender: No OFD packet to send [13:11:02]OFD Sender: No OFD packet to send [13:11:07]OFD Sender: No OFD packet to send [13:11:12]OFD Sender: No OFD packet to send [13:11:17]OFD Sender: No OFD packet to send [13:11:22]OFD Sender: No OFD packet to send [13:11:27]OFD Sender: No OFD packet to send [13:11:32]OFD Sender: No OFD packet to send [13:11:37]OFD Sender: No OFD packet to send [13:11:42]OFD Sender: No OFD packet to send [13:11:47]OFD Sender: No OFD packet to send [13:11:52]OFD Sender: No OFD packet to send [13:11:57]OFD Sender: No OFD packet to send [13:12:02]OFD Sender: No OFD packet to send [13:12:07]OFD Sender: No OFD packet to send [13:12:12]OFD Sender: No OFD packet to send [13:12:17]OFD Sender: No OFD packet to send [13:12:22]OFD Sender: No OFD packet to send [13:12:27]OFD Sender: No OFD packet to send [13:12:30]accept exits with 7 [13:12:30]New connection [13:12:30]New thread 3067514212 created [13:12:30]Thread 3067370852 joined [13:12:30]Waiting for new connection... [13:12:30] Sock 7.Parse request [13:12:30]Sock 7.Check first char [13:12:30]Sock 7.First char is OK [13:12:30]request: POST /json_proto HTTP/1.0 [13:12:30]Method: POST [13:12:30]URL: /json_proto [13:12:30]Method is POST - this is cgi request [13:12:30]url: /json_proto [13:12:30]query_string will be loaded in cgi processing [13:12:30]execute_cgi json_proto POST (null) [13:12:30]execute_cgi path=json_proto method=POST [13:12:30]POST find Content-Length [13:12:30]Host: 172.17.51.3:8080 [13:12:30]Content-Length: 677 [13:12:30]Content-Type: application/json [13:12:30] [13:12:30]POST finish read [13:12:30]Found Content-Length = 677 [13:12:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342728", "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" ] } } [13:12:30]execute_script... [13:12:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342728", "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" ] } } [13:12:30]POST & json_proto [13:12:30]process_json_proto [13:12:30]json parsed OK: [13:12:30]protocol is kg_v1.0 [13:12:30]action value=close_receipt [13:12:30]process_action close_receipt [13:12:30]cmd_close_receipt [13:12:30]MH_GetDate [13:12:30]Write to MH i2c: F0 00 00 B3 83 25 [13:12:30]Write i2c OK [13:12:30]MH_I2C_Read... [13:12:30]Read from MH i2c: F0 [13:12:30]MH_I2C_Read... [13:12:30]Read from MH i2c: F0 09 00 [13:12:30]MH_I2C_Read... [13:12:30]Read from MH i2c: F0 09 00 B3 83 00 C7 01 15 67 04 C1 95 66 32 [13:12:30]GetLastDocTimeStamp 1729429719 [13:12:30]current date 1729429959 [13:12:30]FM_GetShiftState [13:12:30]SAM_PROTO_GetShiftState [13:12:30]wFMCommunicate request_size=4 [13:12:30]MH_SAM_APDU [13:12:30]CAPDU: 80 13 01 00 [13:12:30]Write to MH i2c: E2 08 00 B4 83 80 13 01 00 00 00 00 00 B4 [13:12:30]Write i2c OK [13:12:30]MH_I2C_Read... [13:12:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:12:30]Read from MH i2c: E2 [13:12:30]MH_I2C_Read... [13:12:30]Read from MH i2c: E2 0E 00 [13:12:30]MH_I2C_Read... [13:12:30]Read from MH i2c: E2 0E 00 B4 83 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 9A [13:12:30]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [13:12:30]wFMCommunicate OK [13:12:30]SAM_PROTO_GetShiftState done [13:12:30]FM_GetShiftState done [13:12:30]opened in 1729384718 [13:12:30]opened+sec_in_day 1729471118 [13:12:30]quantity*price = 40006 [13:12:30]sum+1 = 40007 [13:12:30]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 СНО: Общий режим Чек 118 20.10.2024 13:12 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30336 ФПД: 40393071811762 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T131239&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30336&fm=40393071811762&tin=02508201610067®Number=0000000000186857&sum=40000 [13:12:31]StoreToDocumentArchive [13:12:31]shift 114 fd 30336 [13:12:31]save to /storage/0114/doc_00030336 [13:12:31]save last doc name /storage/0114/doc_00030336 to /storage/kkm_last_doc_name [13:12:31]save OK [13:12:31]Clear old archive folders... [13:12:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:12:31]tlvbuf is 00BEBBC0 [13:12:31]SAM_PROTO_ClearQueue [13:12:31]wFMCommunicate request_size=4 [13:12:31]MH_SAM_APDU [13:12:31]CAPDU: 80 09 00 00 [13:12:31]Write to MH i2c: E2 08 00 C1 83 80 09 00 00 00 00 00 00 B6 [13:12:31]Write i2c OK [13:12:31]MH_I2C_Read... [13:12:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:12:31]Read from MH i2c: E2 [13:12:31]MH_I2C_Read... [13:12:31]Read from MH i2c: E2 03 00 [13:12:31]MH_I2C_Read... [13:12:31]Read from MH i2c: E2 03 00 C1 83 00 90 00 B8 [13:12:31]RAPDU: 90 00 [13:12:31]wFMCommunicate OK [13:12:31]SAM_PROTO_ClearQueue done [13:12:31]KKMCreateOFDPacket [13:12:31]OFDProtocolAddRootSTLVToBuf [13:12:31]FM_MakeSignedData [13:12:31]FM_MakeSignedData [13:12:31]SAM_PROTO_SignData [13:12:31]wFMCommunicate request_size=4 [13:12:31]MH_SAM_APDU [13:12:31]CAPDU: 80 0D 01 02 [13:12:31]Write to MH i2c: E2 08 00 C2 83 80 0D 01 02 00 00 00 00 BE [13:12:31]Write i2c OK [13:12:31]MH_I2C_Read... [13:12:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:12:31]Read from MH i2c: E2 [13:12:31]MH_I2C_Read... [13:12:31]Read from MH i2c: E2 03 00 [13:12:31]MH_I2C_Read... [13:12:31]Read from MH i2c: E2 03 00 C2 83 00 90 00 B9 [13:12:31]RAPDU: 90 00 [13:12:31]wFMCommunicate OK [13:12:31]wFMCommunicate request_size=255 [13:12:31]MH_SAM_APDU [13:12:31]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 76 00 00 00 F4 03 04 00 C7 01 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 24 [13:12:31]Write to MH i2c: E2 02 01 C3 83 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 76 00 00 00 F4 03 04 00 C7 01 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 24 00 00 64 [13:12:31]Write i2c OK [13:12:31]MH_I2C_Read... [13:12:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:12:31]Read from MH i2c: E2 [13:12:31]MH_I2C_Read... [13:12:31]Read from MH i2c: E2 03 00 [13:12:31]MH_I2C_Read... [13:12:31]Read from MH i2c: E2 03 00 C3 83 00 90 00 BA [13:12:31]RAPDU: 90 00 [13:12:31]wFMCommunicate OK [13:12:31]wFMCommunicate request_size=10 [13:12:31]MH_SAM_APDU [13:12:31]CAPDU: 80 0D 02 02 05 BC BE B2 5C B2 [13:12:31]Write to MH i2c: E2 0D 00 C4 83 80 0D 02 02 05 00 BC BE B2 5C B2 00 00 05 [13:12:31]Write i2c OK [13:12:31]MH_I2C_Read... [13:12:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:12:32]Read from MH i2c: E2 [13:12:32]MH_I2C_Read... [13:12:32]Read from MH i2c: E2 03 00 [13:12:32]MH_I2C_Read... [13:12:32]Read from MH i2c: E2 03 00 C4 83 00 90 00 BB [13:12:32]RAPDU: 90 00 [13:12:32]wFMCommunicate OK [13:12:32]wFMCommunicate request_size=4 [13:12:32]MH_SAM_APDU [13:12:32]CAPDU: 80 0D 03 02 [13:12:32]Write to MH i2c: E2 08 00 C5 83 80 0D 03 02 00 00 00 00 C3 [13:12:32]Write i2c OK [13:12:32]MH_I2C_Read... [13:12:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:12:32]Read from MH i2c: E2 [13:12:32]MH_I2C_Read... [13:12:32]Read from MH i2c: E2 0B 00 [13:12:32]MH_I2C_Read... [13:12:32]Read from MH i2c: E2 0B 00 C5 83 00 66 8A B6 91 7C 63 BE 97 90 00 2F [13:12:32]RAPDU: 66 8A B6 91 7C 63 BE 97 90 00 [13:12:32]wFMCommunicate OK [13:12:32]SAM_PROTO_SignData done [13:12:32]FM_MakeSignedData done [13:12:32]CreateOFDProtocolMessage [13:12:32]wFMCommunicate request_size=4 [13:12:32]MH_SAM_APDU [13:12:32]CAPDU: 80 11 00 00 [13:12:32]Write to MH i2c: E2 08 00 C6 83 80 11 00 00 00 00 00 00 C3 [13:12:32]Write i2c OK [13:12:32]MH_I2C_Read... [13:12:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:12:32]Read from MH i2c: E2 [13:12:32]MH_I2C_Read... [13:12:32]Read from MH i2c: E2 17 00 [13:12:32]MH_I2C_Read... [13:12:32]Read from MH i2c: E2 17 00 C6 83 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 11 [13:12: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:12:32]wFMCommunicate OK [13:12:32]CreateOFDProtocolMessage done [13:12:32]OFDSenderStorePacket 30336 [13:12:32]StoreOFDPacket docnum=30336 [13:12: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 A5 27 07 01 43 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 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 76 00 00 00 F4 03 04 00 C7 01 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 24 BC BE B2 5C B2 66 8A B6 91 7C 63 BE 97 [13:12:32]CheckFolder [13:12:32]dirname=/storage/ofd_packets [13:12:32]CheckFolder done [13:12:32]ProducePacketName [13:12:32]name=ofd_packets/00030336 [13:12:32]NVStorageSaveData ofd_packets/00030336 [13:12:32]File name is /storage/ofd_packets/00030336 [13:12:32]Write 301 bytes [13:12:32]NVStorageSaveData done [13:12:32]OFDSenderStorePacket done [13:12:32]KKMCreateOFDPacket done [13:12:32]NVStorageSaveData kkm_last_timestamp [13:12:32]File name is /storage/kkm_last_timestamp [13:12:32]Write 4 bytes [13:12:32]NVStorageSaveData done [13:12:32]ExternCall_PrintAddStr [13:12:32]wPrintStart [13:12:32]Write to MH i2c: 01 00 00 C7 83 4A [13:12:32]OFD Sender: Processing packet 30336 [packets to send 10, broken 9] [13:12:32]ProducePacketName [13:12:32]name=ofd_packets/00030336 [13:12:32]OFD Sender: To server: pG, [13:12:32]CommunicateWithHost lk.salyk.kg:30040 [13:12:32]ConnectInit lk.salyk.kg [13:12:32]Write i2c OK [13:12:32]MH_I2C_Read... [13:12:32]Read from MH i2c: 01 [13:12:32]MH_I2C_Read... [13:12:32]Read from MH i2c: 01 07 00 [13:12:32]MH_I2C_Read... [13:12:32]Read from MH i2c: 01 07 00 C7 83 00 00 00 00 00 FF 0F 5F [13:12:32]RasterBufferAndPrint [13:12:32]line Счет N : (1)342728 [13:12:32]line ИНН: 02508201610067 [13:12:32]line Контрольно-Кассовый Чек [13:12:32]line ПРОДАЖА [13:12:32]line ТРК (МРК, ГНК) : 63 [13:12:32]line Товар: 2710124130 [13:12:32]line Аи-92-К-2 [13:12:32]line 5.980 * 66.90 [13:12:32]line = 400.06 [13:12:32]line НДС 12% НСП 1% [13:12:32]line > о реализуемом товаре [13:12:32]line ОКРУГЛЕНИЕ: -0.06 [13:12:32]line ИТОГО: 400.00 [13:12:32]line Внесено: 400.00 [13:12:32]line СДАЧА: 0.00 [13:12:32]line НСП 1% : 3.54 [13:12:32]line НДС 12% : 42.48 [13:12:32]line Наличными: 400.00 [13:12:32]line Безнал.: 0.00 [13:12:32]line Место: АЗС № 78 "Партнер Нефть" [13:12:32]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [13:12:32]line СНО: Общий режим [13:12:32]line Чек 118 20.10.2024 13:12 [13:12:32]line Смена: 114 ФФД: 1.0 [13:12:32]line ЗНМ: 0300000137 [13:12:32]line РНМ: 0000000000186857 [13:12:32]line Версия ККМ: v1.0 [13:12:32]line ФМ: 0000000002094219 [13:12:32]line ФД: 30336 [13:12:32]line ФПД: 40393071811762 [13:12:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T131239&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30336&fm=40393071811762&tin=02508201610067®Number=0000000000186857&sum=40000 [13:12:32]Connected sock=10 [13:12: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 A5 27 07 01 43 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 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 76 00 00 00 F4 03 04 00 C7 01 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 24 BC BE B2 5C B2 66 8A B6 91 7C 63 BE 97 [13:12:32]written 0, free lines is 4095 [13:12: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 64 DC 47 00 49 C5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 80 76 00 00 F4 03 04 00 4B AC 14 67 B6 04 01 00 00 8D 4B 1B 50 83 10 D0 86 [13:12:32]CommunicateWithHost err = 0 [13:12:32]CheckOFDResponse [13:12:32]1017 (14) - 77093643461234 [13:12:32]1041 (16) - 0000000002094219 [13:12:32]1040 (4) - 30336 [13:12:32]1012 (4) - 20.10.2024 07:07 [13:12:32]1206 (1) - 0 [13:12:32]OFD Sender: Remove packet 30336 [13:12:32]ProducePacketName [13:12:32]name=ofd_packets/00030336 [13:12:32]NVStorageDeleteData [13:12:32]Write to MH i2c: 01 00 00 F2 83 75 [13:12:32]Write i2c OK [13:12:32]MH_I2C_Read... [13:12:32]Read from MH i2c: 01 [13:12:32]MH_I2C_Read... [13:12:32]Read from MH i2c: 01 07 00 [13:12:32]MH_I2C_Read... [13:12:32]Read from MH i2c: 01 07 00 F2 83 00 00 00 00 00 F3 0C 7B [13:12:32]RasterBufferAndPrint [13:12:32]line [13:12:32]line [13:12:32]line [13:12:32]line [13:12:32]line [13:12:33]written 0, free lines is 3324 [13:12:33]MH_Cut [13:12:33]Write to MH i2c: D1 01 00 F9 83 01 4E [13:12:33]Write i2c OK [13:12:33]MH_I2C_Read... [13:12:33]Read from MH i2c: D1 [13:12:33]MH_I2C_Read... [13:12:33]Read from MH i2c: D1 01 00 [13:12:33]MH_I2C_Read... [13:12:33]Read from MH i2c: D1 01 00 F9 83 00 4D [13:12:33]Write to MH i2c: 01 00 00 FA 83 7D [13:12:33]Write i2c OK [13:12:33]MH_I2C_Read... [13:12:33]OFD Sender: No OFD packet to send [13:12:33]*** Cut start [13:12:33]*** Partial cut [13:12:33]*** CUTSNS_PIN = 1 [13:12:33]*** CUTSNS_PIN = 0 [13:12:33]*** Brake cut motor [13:12:34]Read from MH i2c: 01 [13:12:34]MH_I2C_Read... [13:12:34]*** Stop cut motor [13:12:34]*** Cut end [13:12:34]Read from MH i2c: 01 07 00 [13:12:34]MH_I2C_Read... [13:12:34]Read from MH i2c: 01 07 00 FA 83 00 00 00 00 00 FF 0F 92 [13:12:34]process_action close_receipt done [13:12:34]requested_data is exist [13:12:34]produce_requested_data [13:12:34]requested_item fm.sn is exist - process it [13:12:34]wFMCommunicate request_size=4 [13:12:34]MH_SAM_APDU [13:12:34]CAPDU: 80 11 00 00 [13:12:34]Write to MH i2c: E2 08 00 FB 83 80 11 00 00 00 00 00 00 F8 [13:12:34]Write i2c OK [13:12:34]MH_I2C_Read... [13:12:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:12:34]Read from MH i2c: E2 [13:12:34]MH_I2C_Read... [13:12:34]Read from MH i2c: E2 17 00 [13:12:34]MH_I2C_Read... [13:12:34]Read from MH i2c: E2 17 00 FB 83 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 46 [13:12: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:12:34]wFMCommunicate OK [13:12:34]requested_item fd.num is exist - process it [13:12:34]SAM_PROTO_GetFieldsCounters [13:12:34]wFMCommunicate request_size=4 [13:12:34]MH_SAM_APDU [13:12:34]CAPDU: 80 13 00 00 [13:12:34]Write to MH i2c: E2 08 00 FC 83 80 13 00 00 00 00 00 00 FB [13:12:34]Write i2c OK [13:12:34]MH_I2C_Read... [13:12:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:12:34]Read from MH i2c: E2 [13:12:34]MH_I2C_Read... [13:12:34]Read from MH i2c: E2 62 00 [13:12:34]MH_I2C_Read... [13:12:34]Read from MH i2c: E2 62 00 FC 83 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 EB [13:12: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 76 00 00 0E 04 04 00 72 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:12:34]wFMCommunicate OK [13:12:34]SAM_PROTO_GetFieldsCounters done [13:12:34]requested_item shift.num is exist - process it [13:12:34]requested_item shift.opened is exist - process it [13:12:34]req_shift_opened [13:12:34]FM_GetShiftState [13:12:34]SAM_PROTO_GetShiftState [13:12:34]wFMCommunicate request_size=4 [13:12:34]MH_SAM_APDU [13:12:34]CAPDU: 80 13 01 00 [13:12:34]Write to MH i2c: E2 08 00 FD 83 80 13 01 00 00 00 00 00 FD [13:12:34]Write i2c OK [13:12:34]MH_I2C_Read... [13:12:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:12:34]Read from MH i2c: E2 [13:12:34]MH_I2C_Read... [13:12:34]Read from MH i2c: E2 0E 00 [13:12:34]MH_I2C_Read... [13:12:34]Read from MH i2c: E2 0E 00 FD 83 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 E3 [13:12:34]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [13:12:34]wFMCommunicate OK [13:12:34]SAM_PROTO_GetShiftState done [13:12:34]FM_GetShiftState done [13:12:34]req_shift_opened done [13:12:34]requested_item shift.open_date is exist - process it [13:12:34]req_shift_open_date [13:12:34]req_shift_open_date done [13:12:34]produce_requested_data done [13:12:34]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30336,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [13:12:34]process_action_free close_receipt [13:12:34]json_value_free [13:12:34]json_value_free done [13:12:34]process_json_proto returns [13:12:34]Send response to host [13:12:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30336,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [13:12:34]free response buf [13:12:34]execute_script done [13:12:34]execute_script returns [13:12:34]free content buf [13:12:34]Sock 7.Close socket [13:12:34]Sock 7.Thread stoped [13:12:38]OFD Sender: No OFD packet to send [13:12:43]OFD Sender: No OFD packet to send [13:12:48]OFD Sender: No OFD packet to send [13:12:53]OFD Sender: No OFD packet to send [13:12:58]OFD Sender: No OFD packet to send [13:13:03]OFD Sender: No OFD packet to send [13:13:08]OFD Sender: No OFD packet to send [13:13:13]OFD Sender: No OFD packet to send [13:13:18]OFD Sender: No OFD packet to send [13:13:23]OFD Sender: No OFD packet to send [13:13:28]OFD Sender: No OFD packet to send [13:13:33]OFD Sender: No OFD packet to send [13:13:38]OFD Sender: No OFD packet to send [13:13:43]OFD Sender: No OFD packet to send [13:13:48]OFD Sender: No OFD packet to send [13:13:53]OFD Sender: No OFD packet to send [13:13:58]OFD Sender: No OFD packet to send [13:14:03]OFD Sender: No OFD packet to send [13:14:08]OFD Sender: No OFD packet to send [13:14:13]OFD Sender: No OFD packet to send [13:14:18]OFD Sender: No OFD packet to send [13:14:23]OFD Sender: No OFD packet to send [13:14:28]OFD Sender: No OFD packet to send [13:14:33]OFD Sender: No OFD packet to send [13:14:38]OFD Sender: No OFD packet to send [13:14:43]OFD Sender: No OFD packet to send [13:14:48]OFD Sender: No OFD packet to send [13:14:53]OFD Sender: No OFD packet to send [13:14:58]OFD Sender: No OFD packet to send [13:15:03]OFD Sender: No OFD packet to send [13:15:08]OFD Sender: No OFD packet to send [13:15:13]OFD Sender: No OFD packet to send [13:15:17]accept exits with 9 [13:15:17]New connection [13:15:17]New thread 3067370852 created [13:15:17]Thread 3067514212 joined [13:15:17]Waiting for new connection... [13:15:17] Sock 9.Parse request [13:15:17]Sock 9.Check first char [13:15:17]Sock 9.First char is OK [13:15:17]request: POST /json_proto HTTP/1.0 [13:15:17]Method: POST [13:15:17]URL: /json_proto [13:15:17]Method is POST - this is cgi request [13:15:17]url: /json_proto [13:15:17]query_string will be loaded in cgi processing [13:15:17]execute_cgi json_proto POST (null) [13:15:17]execute_cgi path=json_proto method=POST [13:15:17]POST find Content-Length [13:15:17]Host: 172.17.51.3:8080 [13:15:17]Content-Length: 679 [13:15:17]Content-Type: application/json [13:15:17] [13:15:17]POST finish read [13:15:17]Found Content-Length = 679 [13:15:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342729", "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" ] } } [13:15:17]execute_script... [13:15:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342729", "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" ] } } [13:15:17]POST & json_proto [13:15:17]process_json_proto [13:15:17]json parsed OK: [13:15:17]protocol is kg_v1.0 [13:15:17]action value=close_receipt [13:15:17]process_action close_receipt [13:15:17]cmd_close_receipt [13:15:17]MH_GetDate [13:15:17]Write to MH i2c: F0 00 00 FE 83 70 [13:15:17]Write i2c OK [13:15:17]MH_I2C_Read... [13:15:17]Read from MH i2c: F0 [13:15:17]MH_I2C_Read... [13:15:17]Read from MH i2c: F0 09 00 [13:15:17]MH_I2C_Read... [13:15:17]Read from MH i2c: F0 09 00 FE 83 00 6E 02 15 67 04 C1 95 66 25 [13:15:17]GetLastDocTimeStamp 1729429959 [13:15:17]current date 1729430126 [13:15:17]FM_GetShiftState [13:15:17]SAM_PROTO_GetShiftState [13:15:17]wFMCommunicate request_size=4 [13:15:17]MH_SAM_APDU [13:15:17]CAPDU: 80 13 01 00 [13:15:17]Write to MH i2c: E2 08 00 FF 83 80 13 01 00 00 00 00 00 FF [13:15:17]Write i2c OK [13:15:17]MH_I2C_Read... [13:15:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:15:17]Read from MH i2c: E2 [13:15:17]MH_I2C_Read... [13:15:17]Read from MH i2c: E2 0E 00 [13:15:17]MH_I2C_Read... [13:15:17]Read from MH i2c: E2 0E 00 FF 83 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 E5 [13:15:17]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [13:15:17]wFMCommunicate OK [13:15:17]SAM_PROTO_GetShiftState done [13:15:17]FM_GetShiftState done [13:15:17]opened in 1729384718 [13:15:17]opened+sec_in_day 1729471118 [13:15:17]quantity*price = 100050 [13:15:17]sum+1 = 100052 [13:15: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 СНО: Общий режим Чек 119 20.10.2024 13:15 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30337 ФПД: 113873161336173 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T131526&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30337&fm=113873161336173&tin=02508201610067®Number=0000000000186857&sum=100000 [13:15:18]StoreToDocumentArchive [13:15:18]shift 114 fd 30337 [13:15:18]save to /storage/0114/doc_00030337 [13:15:18]save last doc name /storage/0114/doc_00030337 to /storage/kkm_last_doc_name [13:15:18]save OK [13:15:18]Clear old archive folders... [13:15:18]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:15:18]tlvbuf is 00B85A80 [13:15:18]SAM_PROTO_ClearQueue [13:15:18]wFMCommunicate request_size=4 [13:15:18]MH_SAM_APDU [13:15:18]CAPDU: 80 09 00 00 [13:15:18]Write to MH i2c: E2 08 00 0C 84 80 09 00 00 00 00 00 00 02 [13:15:18]Write i2c OK [13:15:18]MH_I2C_Read... [13:15:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:15:18]Read from MH i2c: E2 [13:15:18]MH_I2C_Read... [13:15:18]Read from MH i2c: E2 03 00 [13:15:18]MH_I2C_Read... [13:15:18]Read from MH i2c: E2 03 00 0C 84 00 90 00 04 [13:15:18]RAPDU: 90 00 [13:15:18]wFMCommunicate OK [13:15:18]SAM_PROTO_ClearQueue done [13:15:18]KKMCreateOFDPacket [13:15:18]OFDProtocolAddRootSTLVToBuf [13:15:18]FM_MakeSignedData [13:15:18]FM_MakeSignedData [13:15:18]SAM_PROTO_SignData [13:15:18]wFMCommunicate request_size=4 [13:15:18]MH_SAM_APDU [13:15:18]CAPDU: 80 0D 01 02 [13:15:18]Write to MH i2c: E2 08 00 0D 84 80 0D 01 02 00 00 00 00 0A [13:15:18]Write i2c OK [13:15:18]MH_I2C_Read... [13:15:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:15:18]Read from MH i2c: E2 [13:15:18]MH_I2C_Read... [13:15:18]Read from MH i2c: E2 03 00 [13:15:18]MH_I2C_Read... [13:15:18]Read from MH i2c: E2 03 00 0D 84 00 90 00 05 [13:15:18]RAPDU: 90 00 [13:15:18]wFMCommunicate OK [13:15:18]wFMCommunicate request_size=255 [13:15:18]MH_SAM_APDU [13:15:18]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 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 77 00 00 00 F4 03 04 00 6E 02 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 67 91 29 54 [13:15:18]Write to MH i2c: E2 02 01 0E 84 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 77 00 00 00 F4 03 04 00 6E 02 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 67 91 29 54 00 00 D2 [13:15:18]Write i2c OK [13:15:18]MH_I2C_Read... [13:15:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:15:18]Read from MH i2c: E2 [13:15:18]MH_I2C_Read... [13:15:18]Read from MH i2c: E2 03 00 [13:15:18]MH_I2C_Read... [13:15:18]Read from MH i2c: E2 03 00 0E 84 00 90 00 06 [13:15:18]RAPDU: 90 00 [13:15:18]wFMCommunicate OK [13:15:18]wFMCommunicate request_size=7 [13:15:18]MH_SAM_APDU [13:15:18]CAPDU: 80 0D 02 02 02 B5 6D [13:15:18]Write to MH i2c: E2 0A 00 0F 84 80 0D 02 02 02 00 B5 6D 00 00 33 [13:15:18]Write i2c OK [13:15:18]MH_I2C_Read... [13:15:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:15:18]Read from MH i2c: E2 [13:15:18]MH_I2C_Read... [13:15:18]Read from MH i2c: E2 03 00 [13:15:18]MH_I2C_Read... [13:15:18]Read from MH i2c: E2 03 00 0F 84 00 90 00 07 [13:15:18]RAPDU: 90 00 [13:15:18]wFMCommunicate OK [13:15:18]wFMCommunicate request_size=4 [13:15:18]MH_SAM_APDU [13:15:18]CAPDU: 80 0D 03 02 [13:15:18]Write to MH i2c: E2 08 00 10 84 80 0D 03 02 00 00 00 00 0F [13:15:18]Write i2c OK [13:15:18]MH_I2C_Read... [13:15:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:15:18]Read from MH i2c: E2 [13:15:18]MH_I2C_Read... [13:15:19]Read from MH i2c: E2 0B 00 [13:15:19]MH_I2C_Read... [13:15:19]Read from MH i2c: E2 0B 00 10 84 00 DE 8F 39 35 14 71 1B 69 90 00 F4 [13:15:19]RAPDU: DE 8F 39 35 14 71 1B 69 90 00 [13:15:19]wFMCommunicate OK [13:15:19]SAM_PROTO_SignData done [13:15:19]FM_MakeSignedData done [13:15:19]CreateOFDProtocolMessage [13:15:19]wFMCommunicate request_size=4 [13:15:19]MH_SAM_APDU [13:15:19]CAPDU: 80 11 00 00 [13:15:19]Write to MH i2c: E2 08 00 11 84 80 11 00 00 00 00 00 00 0F [13:15:19]Write i2c OK [13:15:19]MH_I2C_Read... [13:15:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:15:19]Read from MH i2c: E2 [13:15:19]MH_I2C_Read... [13:15:19]Read from MH i2c: E2 17 00 [13:15:19]MH_I2C_Read... [13:15:19]Read from MH i2c: E2 17 00 11 84 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 5D [13:15:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [13:15:19]wFMCommunicate OK [13:15:19]CreateOFDProtocolMessage done [13:15:19]OFDSenderStorePacket 30337 [13:15:19]StoreOFDPacket docnum=30337 [13:15: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 0A 63 04 01 FF DD 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 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 77 00 00 00 F4 03 04 00 6E 02 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 67 91 29 54 B5 6D DE 8F 39 35 14 71 1B 69 [13:15:19]CheckFolder [13:15:19]dirname=/storage/ofd_packets [13:15:19]CheckFolder done [13:15:19]ProducePacketName [13:15:19]name=ofd_packets/00030337 [13:15:19]NVStorageSaveData ofd_packets/00030337 [13:15:19]File name is /storage/ofd_packets/00030337 [13:15:19]Write 298 bytes [13:15:19]NVStorageSaveData done [13:15:19]OFDSenderStorePacket done [13:15:19]KKMCreateOFDPacket done [13:15:19]NVStorageSaveData kkm_last_timestamp [13:15:19]File name is /storage/kkm_last_timestamp [13:15:19]Write 4 bytes [13:15:19]NVStorageSaveData done [13:15:19]ExternCall_PrintAddStr [13:15:19]wPrintStart [13:15:19]Write to MH i2c: 01 00 00 12 84 96 [13:15:19]Write i2c OK [13:15:19]MH_I2C_Read... [13:15:19]Read from MH i2c: 01 [13:15:19]MH_I2C_Read... [13:15:19]Read from MH i2c: 01 07 00 [13:15:19]MH_I2C_Read... [13:15:19]Read from MH i2c: 01 07 00 12 84 00 00 00 00 00 FF 0F AB [13:15:19]RasterBufferAndPrint [13:15:19]line Счет N : (1)342729 [13:15:19]line ИНН: 02508201610067 [13:15:19]line Контрольно-Кассовый Чек [13:15:19]line ПРОДАЖА [13:15:19]line ТРК (МРК, ГНК) : 64 [13:15:19]line Товар: 2710194210 [13:15:19]line ДТ-К-2 [13:15:19]line 13.130 * 76.20 [13:15:19]line = 1000.51 [13:15:19]line НДС 12% НСП 1% [13:15:19]line > о реализуемом товаре [13:15:19]line ОКРУГЛЕНИЕ: -0.51 [13:15:19]line ИТОГО: 1000.00 [13:15:19]line Внесено: 1000.00 [13:15:19]line СДАЧА: 0.00 [13:15:19]line НСП 1% : 8.85 [13:15:19]line НДС 12% : 106.25 [13:15:19]line Наличными: 1000.00 [13:15:19]line Безнал.: 0.00 [13:15:19]line Место: АЗС № 78 "Партнер Нефть" [13:15:19]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [13:15:19]line СНО: Общий режим [13:15:19]line Чек 119 20.10.2024 13:15 [13:15:19]line Смена: 114 ФФД: 1.0 [13:15:19]line ЗНМ: 0300000137 [13:15:19]line РНМ: 0000000000186857 [13:15:19]line Версия ККМ: v1.0 [13:15:19]line ФМ: 0000000002094219 [13:15:19]line ФД: 30337 [13:15:19]line ФПД: 113873161336173 [13:15:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T131526&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30337&fm=113873161336173&tin=02508201610067®Number=0000000000186857&sum=100000 [13:15:19]OFD Sender: Processing packet 30337 [packets to send 10, broken 9] [13:15:19]ProducePacketName [13:15:19]name=ofd_packets/00030337 [13:15:19]OFD Sender: To server: pG, [13:15:19]CommunicateWithHost lk.salyk.kg:30040 [13:15:19]ConnectInit lk.salyk.kg [13:15:19]written 0, free lines is 4095 [13:15:19]Connected sock=11 [13:15: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 0A 63 04 01 FF DD 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 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 77 00 00 00 F4 03 04 00 6E 02 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 67 91 29 54 B5 6D DE 8F 39 35 14 71 1B 69 [13:15: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 09 2B 47 00 42 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 81 76 00 00 F4 03 04 00 F2 AC 14 67 B6 04 01 00 00 74 8E 85 7F 06 B3 6B 75 [13:15:19]CommunicateWithHost err = 0 [13:15:19]CheckOFDResponse [13:15:19]1017 (14) - 77093643461234 [13:15:19]1041 (16) - 0000000002094219 [13:15:19]1040 (4) - 30337 [13:15:19]1012 (4) - 20.10.2024 07:10 [13:15:19]1206 (1) - 0 [13:15:19]OFD Sender: Remove packet 30337 [13:15:19]ProducePacketName [13:15:19]name=ofd_packets/00030337 [13:15:19]NVStorageDeleteData [13:15:19]Write to MH i2c: 01 00 00 3D 84 C1 [13:15:19]Write i2c OK [13:15:19]MH_I2C_Read... [13:15:19]Read from MH i2c: 01 [13:15:19]MH_I2C_Read... [13:15:19]Read from MH i2c: 01 07 00 [13:15:19]MH_I2C_Read... [13:15:19]Read from MH i2c: 01 07 00 3D 84 00 00 00 00 00 E7 0C BB [13:15:19]RasterBufferAndPrint [13:15:19]line [13:15:19]line [13:15:19]line [13:15:19]line [13:15:19]line [13:15:19]written 0, free lines is 3309 [13:15:19]MH_Cut [13:15:19]Write to MH i2c: D1 01 00 44 84 01 9A [13:15:19]Write i2c OK [13:15:19]MH_I2C_Read... [13:15:19]Read from MH i2c: D1 [13:15:19]MH_I2C_Read... [13:15:19]Read from MH i2c: D1 01 00 [13:15:19]MH_I2C_Read... [13:15:19]Read from MH i2c: D1 01 00 44 84 00 99 [13:15:19]Write to MH i2c: 01 00 00 45 84 C9 [13:15:19]Write i2c OK [13:15:19]MH_I2C_Read... [13:15:20]OFD Sender: No OFD packet to send [13:15:20]*** Cut start [13:15:20]*** Partial cut [13:15:20]*** CUTSNS_PIN = 1 [13:15:20]*** CUTSNS_PIN = 0 [13:15:20]*** Brake cut motor [13:15:21]Read from MH i2c: 01 [13:15:21]MH_I2C_Read... [13:15:21]*** Stop cut motor [13:15:21]*** Cut end [13:15:21]Read from MH i2c: 01 07 00 [13:15:21]MH_I2C_Read... [13:15:21]Read from MH i2c: 01 07 00 45 84 00 00 00 00 00 FF 0F DE [13:15:21]process_action close_receipt done [13:15:21]requested_data is exist [13:15:21]produce_requested_data [13:15:21]requested_item fm.sn is exist - process it [13:15:21]wFMCommunicate request_size=4 [13:15:21]MH_SAM_APDU [13:15:21]CAPDU: 80 11 00 00 [13:15:21]Write to MH i2c: E2 08 00 46 84 80 11 00 00 00 00 00 00 44 [13:15:21]Write i2c OK [13:15:21]MH_I2C_Read... [13:15:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:15:21]Read from MH i2c: E2 [13:15:21]MH_I2C_Read... [13:15:21]Read from MH i2c: E2 17 00 [13:15:21]MH_I2C_Read... [13:15:21]Read from MH i2c: E2 17 00 46 84 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 92 [13:15:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [13:15:21]wFMCommunicate OK [13:15:21]requested_item fd.num is exist - process it [13:15:21]SAM_PROTO_GetFieldsCounters [13:15:21]wFMCommunicate request_size=4 [13:15:21]MH_SAM_APDU [13:15:21]CAPDU: 80 13 00 00 [13:15:21]Write to MH i2c: E2 08 00 47 84 80 13 00 00 00 00 00 00 47 [13:15:21]Write i2c OK [13:15:21]MH_I2C_Read... [13:15:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:15:21]Read from MH i2c: E2 [13:15:21]MH_I2C_Read... [13:15:21]Read from MH i2c: E2 62 00 [13:15:21]MH_I2C_Read... [13:15:21]Read from MH i2c: E2 62 00 47 84 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 3B [13:15: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 81 76 00 00 0E 04 04 00 72 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:15:21]wFMCommunicate OK [13:15:21]SAM_PROTO_GetFieldsCounters done [13:15:21]requested_item shift.num is exist - process it [13:15:21]requested_item shift.opened is exist - process it [13:15:21]req_shift_opened [13:15:21]FM_GetShiftState [13:15:21]SAM_PROTO_GetShiftState [13:15:21]wFMCommunicate request_size=4 [13:15:21]MH_SAM_APDU [13:15:21]CAPDU: 80 13 01 00 [13:15:21]Write to MH i2c: E2 08 00 48 84 80 13 01 00 00 00 00 00 49 [13:15:21]Write i2c OK [13:15:21]MH_I2C_Read... [13:15:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:15:21]Read from MH i2c: E2 [13:15:21]MH_I2C_Read... [13:15:21]Read from MH i2c: E2 0E 00 [13:15:21]MH_I2C_Read... [13:15:21]Read from MH i2c: E2 0E 00 48 84 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 2F [13:15:21]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [13:15:21]wFMCommunicate OK [13:15:21]SAM_PROTO_GetShiftState done [13:15:21]FM_GetShiftState done [13:15:21]req_shift_opened done [13:15:21]requested_item shift.open_date is exist - process it [13:15:21]req_shift_open_date [13:15:21]req_shift_open_date done [13:15:21]produce_requested_data done [13:15:21]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30337,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [13:15:21]process_action_free close_receipt [13:15:21]json_value_free [13:15:21]json_value_free done [13:15:21]process_json_proto returns [13:15:21]Send response to host [13:15:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30337,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [13:15:21]free response buf [13:15:21]execute_script done [13:15:21]execute_script returns [13:15:21]free content buf [13:15:21]Sock 9.Close socket [13:15:21]Sock 9.Thread stoped [13:15:25]OFD Sender: No OFD packet to send [13:15:30]OFD Sender: No OFD packet to send [13:15:35]OFD Sender: No OFD packet to send [13:15:40]OFD Sender: No OFD packet to send [13:15:45]OFD Sender: No OFD packet to send [13:15:50]OFD Sender: No OFD packet to send [13:15:55]OFD Sender: No OFD packet to send [13:16:00]OFD Sender: No OFD packet to send [13:16:05]OFD Sender: No OFD packet to send [13:16:10]OFD Sender: No OFD packet to send [13:16:15]OFD Sender: No OFD packet to send [13:16:20]OFD Sender: No OFD packet to send [13:16:25]OFD Sender: No OFD packet to send [13:16:30]OFD Sender: No OFD packet to send [13:16:35]OFD Sender: No OFD packet to send [13:16:40]OFD Sender: No OFD packet to send [13:16:45]OFD Sender: No OFD packet to send [13:16:50]OFD Sender: No OFD packet to send [13:16:55]OFD Sender: No OFD packet to send [13:17:00]OFD Sender: No OFD packet to send [13:17:05]OFD Sender: No OFD packet to send [13:17:10]OFD Sender: No OFD packet to send [13:17:15]OFD Sender: No OFD packet to send [13:17:20]OFD Sender: No OFD packet to send [13:17:25]OFD Sender: No OFD packet to send [13:17:30]OFD Sender: No OFD packet to send [13:17:35]OFD Sender: No OFD packet to send [13:17:37]accept exits with 7 [13:17:37]New connection [13:17:37]New thread 3067514212 created [13:17:37]Thread 3067370852 joined [13:17:37]Waiting for new connection... [13:17:37] Sock 7.Parse request [13:17:37]Sock 7.Check first char [13:17:37]Sock 7.First char is OK [13:17:37]request: POST /json_proto HTTP/1.0 [13:17:37]Method: POST [13:17:37]URL: /json_proto [13:17:37]Method is POST - this is cgi request [13:17:37]url: /json_proto [13:17:37]query_string will be loaded in cgi processing [13:17:37]execute_cgi json_proto POST (null) [13:17:37]execute_cgi path=json_proto method=POST [13:17:37]POST find Content-Length [13:17:37]Host: 172.17.51.3:8080 [13:17:37]Content-Length: 682 [13:17:37]Content-Type: application/json [13:17:37] [13:17:37]POST finish read [13:17:37]Found Content-Length = 682 [13:17:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342730", "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" : 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" ] } } [13:17:37]execute_script... [13:17:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342730", "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" : 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" ] } } [13:17:37]POST & json_proto [13:17:37]process_json_proto [13:17:37]json parsed OK: [13:17:37]protocol is kg_v1.0 [13:17:37]action value=close_receipt [13:17:37]process_action close_receipt [13:17:37]cmd_close_receipt [13:17:37]MH_GetDate [13:17:37]Write to MH i2c: F0 00 00 49 84 BC [13:17:37]Write i2c OK [13:17:37]MH_I2C_Read... [13:17:37]Read from MH i2c: F0 [13:17:37]MH_I2C_Read... [13:17:37]Read from MH i2c: F0 09 00 [13:17:37]MH_I2C_Read... [13:17:37]Read from MH i2c: F0 09 00 49 84 00 FA 02 15 67 04 C1 95 66 FD [13:17:37]GetLastDocTimeStamp 1729430126 [13:17:37]current date 1729430266 [13:17:37]FM_GetShiftState [13:17:37]SAM_PROTO_GetShiftState [13:17:37]wFMCommunicate request_size=4 [13:17:37]MH_SAM_APDU [13:17:37]CAPDU: 80 13 01 00 [13:17:37]Write to MH i2c: E2 08 00 4A 84 80 13 01 00 00 00 00 00 4B [13:17:37]Write i2c OK [13:17:37]MH_I2C_Read... [13:17:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:17:37]Read from MH i2c: E2 [13:17:37]MH_I2C_Read... [13:17:37]Read from MH i2c: E2 0E 00 [13:17:37]MH_I2C_Read... [13:17:37]Read from MH i2c: E2 0E 00 4A 84 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 31 [13:17:37]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [13:17:37]wFMCommunicate OK [13:17:37]SAM_PROTO_GetShiftState done [13:17:37]FM_GetShiftState done [13:17:37]opened in 1729384718 [13:17:37]opened+sec_in_day 1729471118 [13:17:37]quantity*price = 200031 [13:17:37]sum+1 = 200032 [13:17:37]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 СНО: Общий режим Чек 120 20.10.2024 13:17 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30338 ФПД: 108779232387621 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T131746&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30338&fm=108779232387621&tin=02508201610067®Number=0000000000186857&sum=200000 [13:17:38]StoreToDocumentArchive [13:17:38]shift 114 fd 30338 [13:17:38]save to /storage/0114/doc_00030338 [13:17:38]save last doc name /storage/0114/doc_00030338 to /storage/kkm_last_doc_name [13:17:38]save OK [13:17:38]Clear old archive folders... [13:17:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:17:38]tlvbuf is 00AA75D0 [13:17:38]SAM_PROTO_ClearQueue [13:17:38]wFMCommunicate request_size=4 [13:17:38]MH_SAM_APDU [13:17:38]CAPDU: 80 09 00 00 [13:17:38]Write to MH i2c: E2 08 00 57 84 80 09 00 00 00 00 00 00 4D [13:17:38]Write i2c OK [13:17:38]MH_I2C_Read... [13:17:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:17:38]Read from MH i2c: E2 [13:17:38]MH_I2C_Read... [13:17:38]Read from MH i2c: E2 03 00 [13:17:38]MH_I2C_Read... [13:17:38]Read from MH i2c: E2 03 00 57 84 00 90 00 4F [13:17:38]RAPDU: 90 00 [13:17:38]wFMCommunicate OK [13:17:38]SAM_PROTO_ClearQueue done [13:17:38]KKMCreateOFDPacket [13:17:38]OFDProtocolAddRootSTLVToBuf [13:17:38]FM_MakeSignedData [13:17:38]FM_MakeSignedData [13:17:38]SAM_PROTO_SignData [13:17:38]wFMCommunicate request_size=4 [13:17:38]MH_SAM_APDU [13:17:38]CAPDU: 80 0D 01 02 [13:17:38]Write to MH i2c: E2 08 00 58 84 80 0D 01 02 00 00 00 00 55 [13:17:38]Write i2c OK [13:17:38]MH_I2C_Read... [13:17:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:17:38]Read from MH i2c: E2 [13:17:38]MH_I2C_Read... [13:17:38]Read from MH i2c: E2 03 00 [13:17:38]MH_I2C_Read... [13:17:38]Read from MH i2c: E2 03 00 58 84 00 90 00 50 [13:17:38]RAPDU: 90 00 [13:17:38]wFMCommunicate OK [13:17:38]wFMCommunicate request_size=255 [13:17:38]MH_SAM_APDU [13:17: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 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 78 00 00 00 F4 03 04 00 FA 02 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 62 [13:17:38]Write to MH i2c: E2 02 01 59 84 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 78 00 00 00 F4 03 04 00 FA 02 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 62 00 00 E4 [13:17:38]Write i2c OK [13:17:38]MH_I2C_Read... [13:17:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:17:38]Read from MH i2c: E2 [13:17:38]MH_I2C_Read... [13:17:38]Read from MH i2c: E2 03 00 [13:17:38]MH_I2C_Read... [13:17:38]Read from MH i2c: E2 03 00 59 84 00 90 00 51 [13:17:38]RAPDU: 90 00 [13:17:38]wFMCommunicate OK [13:17:38]wFMCommunicate request_size=10 [13:17:38]MH_SAM_APDU [13:17:38]CAPDU: 80 0D 02 02 05 EF 23 81 62 25 [13:17:38]Write to MH i2c: E2 0D 00 5A 84 80 0D 02 02 05 00 EF 23 81 62 25 00 00 7C [13:17:38]Write i2c OK [13:17:38]MH_I2C_Read... [13:17:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:17:38]Read from MH i2c: E2 [13:17:38]MH_I2C_Read... [13:17:38]Read from MH i2c: E2 03 00 [13:17:38]MH_I2C_Read... [13:17:38]Read from MH i2c: E2 03 00 5A 84 00 90 00 52 [13:17:38]RAPDU: 90 00 [13:17:38]wFMCommunicate OK [13:17:38]wFMCommunicate request_size=4 [13:17:38]MH_SAM_APDU [13:17:38]CAPDU: 80 0D 03 02 [13:17:38]Write to MH i2c: E2 08 00 5B 84 80 0D 03 02 00 00 00 00 5A [13:17:38]Write i2c OK [13:17:38]MH_I2C_Read... [13:17:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:17:38]Read from MH i2c: E2 [13:17:38]MH_I2C_Read... [13:17:38]Read from MH i2c: E2 0B 00 [13:17:38]MH_I2C_Read... [13:17:38]Read from MH i2c: E2 0B 00 5B 84 00 C7 BB 57 DC F5 2B C5 3A 90 00 2F [13:17:38]RAPDU: C7 BB 57 DC F5 2B C5 3A 90 00 [13:17:38]wFMCommunicate OK [13:17:38]SAM_PROTO_SignData done [13:17:38]FM_MakeSignedData done [13:17:38]CreateOFDProtocolMessage [13:17:38]wFMCommunicate request_size=4 [13:17:38]MH_SAM_APDU [13:17:38]CAPDU: 80 11 00 00 [13:17:38]Write to MH i2c: E2 08 00 5C 84 80 11 00 00 00 00 00 00 5A [13:17:38]Write i2c OK [13:17:38]MH_I2C_Read... [13:17:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:17:38]Read from MH i2c: E2 [13:17:38]MH_I2C_Read... [13:17:38]Read from MH i2c: E2 17 00 [13:17:38]MH_I2C_Read... [13:17:38]Read from MH i2c: E2 17 00 5C 84 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 A8 [13:17:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [13:17:38]wFMCommunicate OK [13:17:38]CreateOFDProtocolMessage done [13:17:38]OFDSenderStorePacket 30338 [13:17:38]StoreOFDPacket docnum=30338 [13:17: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 C2 68 07 01 86 17 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 78 00 00 00 F4 03 04 00 FA 02 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 62 EF 23 81 62 25 C7 BB 57 DC F5 2B C5 3A [13:17:38]CheckFolder [13:17:38]dirname=/storage/ofd_packets [13:17:38]CheckFolder done [13:17:38]ProducePacketName [13:17:38]name=ofd_packets/00030338 [13:17:38]NVStorageSaveData ofd_packets/00030338 [13:17:38]File name is /storage/ofd_packets/00030338 [13:17:38]Write 301 bytes [13:17:38]NVStorageSaveData done [13:17:38]OFDSenderStorePacket done [13:17:38]KKMCreateOFDPacket done [13:17:38]NVStorageSaveData kkm_last_timestamp [13:17:38]File name is /storage/kkm_last_timestamp [13:17:38]Write 4 bytes [13:17:38]NVStorageSaveData done [13:17:38]ExternCall_PrintAddStr [13:17:38]wPrintStart [13:17:38]Write to MH i2c: 01 00 00 5D 84 E1 [13:17:38]OFD Sender: Processing packet 30338 [packets to send 10, broken 9] [13:17:38]ProducePacketName [13:17:38]name=ofd_packets/00030338 [13:17:38]OFD Sender: To server: pG, [13:17:38]CommunicateWithHost lk.salyk.kg:30040 [13:17:38]ConnectInit lk.salyk.kg [13:17:38]Write i2c OK [13:17:38]MH_I2C_Read... [13:17:38]Read from MH i2c: 01 [13:17:38]MH_I2C_Read... [13:17:38]Read from MH i2c: 01 07 00 [13:17:38]MH_I2C_Read... [13:17:38]Read from MH i2c: 01 07 00 5D 84 00 00 00 00 00 FF 0F F6 [13:17:38]RasterBufferAndPrint [13:17:38]line Счет N : (1)342730 [13:17:38]line ИНН: 02508201610067 [13:17:38]line Контрольно-Кассовый Чек [13:17:38]line ПРОДАЖА [13:17:38]line ТРК (МРК, ГНК) : 43 [13:17:38]line Товар: 2710124130 [13:17:38]line Аи-92-К-2 [13:17:38]line 29.900 * 66.90 [13:17:38]line = 2000.31 [13:17:38]line НДС 12% НСП 1% [13:17:38]line > о реализуемом товаре [13:17:38]line ОКРУГЛЕНИЕ: -0.31 [13:17:38]line ИТОГО: 2000.00 [13:17:38]line Внесено: 2000.00 [13:17:38]line СДАЧА: 0.00 [13:17:38]line НСП 1% : 17.70 [13:17:38]line НДС 12% : 212.42 [13:17:38]line Наличными: 2000.00 [13:17:38]line Безнал.: 0.00 [13:17:38]line Место: АЗС № 78 "Партнер Нефть" [13:17:38]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [13:17:38]line СНО: Общий режим [13:17:38]line Чек 120 20.10.2024 13:17 [13:17:38]line Смена: 114 ФФД: 1.0 [13:17:38]line ЗНМ: 0300000137 [13:17:38]line РНМ: 0000000000186857 [13:17:38]line Версия ККМ: v1.0 [13:17:38]line ФМ: 0000000002094219 [13:17:38]line ФД: 30338 [13:17:38]line ФПД: 108779232387621 [13:17:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T131746&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30338&fm=108779232387621&tin=02508201610067®Number=0000000000186857&sum=200000 [13:17:39]Connected sock=10 [13:17: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 C2 68 07 01 86 17 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 78 00 00 00 F4 03 04 00 FA 02 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 62 EF 23 81 62 25 C7 BB 57 DC F5 2B C5 3A [13:17:39]written 0, free lines is 4095 [13:17: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 83 75 47 00 DF 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 82 76 00 00 F4 03 04 00 7E AD 14 67 B6 04 01 00 00 84 B0 51 76 14 FA BE E9 [13:17:39]CommunicateWithHost err = 0 [13:17:39]CheckOFDResponse [13:17:39]1017 (14) - 77093643461234 [13:17:39]1041 (16) - 0000000002094219 [13:17:39]1040 (4) - 30338 [13:17:39]1012 (4) - 20.10.2024 07:13 [13:17:39]1206 (1) - 0 [13:17:39]OFD Sender: Remove packet 30338 [13:17:39]ProducePacketName [13:17:39]name=ofd_packets/00030338 [13:17:39]NVStorageDeleteData [13:17:39]Write to MH i2c: 01 00 00 88 84 0C [13:17:39]Write i2c OK [13:17:39]MH_I2C_Read... [13:17:39]Read from MH i2c: 01 [13:17:39]MH_I2C_Read... [13:17:39]Read from MH i2c: 01 07 00 [13:17:39]MH_I2C_Read... [13:17:39]Read from MH i2c: 01 07 00 88 84 00 00 00 00 00 EE 0C 0D [13:17:39]RasterBufferAndPrint [13:17:39]line [13:17:39]line [13:17:39]line [13:17:39]line [13:17:39]line [13:17:39]written 0, free lines is 3316 [13:17:39]MH_Cut [13:17:39]Write to MH i2c: D1 01 00 8F 84 01 E5 [13:17:39]Write i2c OK [13:17:39]MH_I2C_Read... [13:17:39]Read from MH i2c: D1 [13:17:39]MH_I2C_Read... [13:17:39]Read from MH i2c: D1 01 00 [13:17:39]MH_I2C_Read... [13:17:39]Read from MH i2c: D1 01 00 8F 84 00 E4 [13:17:39]Write to MH i2c: 01 00 00 90 84 14 [13:17:39]Write i2c OK [13:17:39]MH_I2C_Read... [13:17:39]OFD Sender: No OFD packet to send [13:17:40]*** Cut start [13:17:40]*** Partial cut [13:17:40]*** CUTSNS_PIN = 1 [13:17:40]*** CUTSNS_PIN = 0 [13:17:40]*** Brake cut motor [13:17:41]Read from MH i2c: 01 [13:17:41]MH_I2C_Read... [13:17:41]*** Stop cut motor [13:17:41]*** Cut end [13:17:41]Read from MH i2c: 01 07 00 [13:17:41]MH_I2C_Read... [13:17:41]Read from MH i2c: 01 07 00 90 84 00 00 00 00 00 FF 0F 29 [13:17:41]process_action close_receipt done [13:17:41]requested_data is exist [13:17:41]produce_requested_data [13:17:41]requested_item fm.sn is exist - process it [13:17:41]wFMCommunicate request_size=4 [13:17:41]MH_SAM_APDU [13:17:41]CAPDU: 80 11 00 00 [13:17:41]Write to MH i2c: E2 08 00 91 84 80 11 00 00 00 00 00 00 8F [13:17:41]Write i2c OK [13:17:41]MH_I2C_Read... [13:17:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:17:41]Read from MH i2c: E2 [13:17:41]MH_I2C_Read... [13:17:41]Read from MH i2c: E2 17 00 [13:17:41]MH_I2C_Read... [13:17:41]Read from MH i2c: E2 17 00 91 84 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 DD [13:17:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [13:17:41]wFMCommunicate OK [13:17:41]requested_item fd.num is exist - process it [13:17:41]SAM_PROTO_GetFieldsCounters [13:17:41]wFMCommunicate request_size=4 [13:17:41]MH_SAM_APDU [13:17:41]CAPDU: 80 13 00 00 [13:17:41]Write to MH i2c: E2 08 00 92 84 80 13 00 00 00 00 00 00 92 [13:17:41]Write i2c OK [13:17:41]MH_I2C_Read... [13:17:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:17:41]Read from MH i2c: E2 [13:17:41]MH_I2C_Read... [13:17:41]Read from MH i2c: E2 62 00 [13:17:41]MH_I2C_Read... [13:17:41]Read from MH i2c: E2 62 00 92 84 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 8A [13:17: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 82 76 00 00 0E 04 04 00 72 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:17:41]wFMCommunicate OK [13:17:41]SAM_PROTO_GetFieldsCounters done [13:17:41]requested_item shift.num is exist - process it [13:17:41]requested_item shift.opened is exist - process it [13:17:41]req_shift_opened [13:17:41]FM_GetShiftState [13:17:41]SAM_PROTO_GetShiftState [13:17:41]wFMCommunicate request_size=4 [13:17:41]MH_SAM_APDU [13:17:41]CAPDU: 80 13 01 00 [13:17:41]Write to MH i2c: E2 08 00 93 84 80 13 01 00 00 00 00 00 94 [13:17:41]Write i2c OK [13:17:41]MH_I2C_Read... [13:17:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:17:41]Read from MH i2c: E2 [13:17:41]MH_I2C_Read... [13:17:41]Read from MH i2c: E2 0E 00 [13:17:41]MH_I2C_Read... [13:17:41]Read from MH i2c: E2 0E 00 93 84 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 7A [13:17:41]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [13:17:41]wFMCommunicate OK [13:17:41]SAM_PROTO_GetShiftState done [13:17:41]FM_GetShiftState done [13:17:41]req_shift_opened done [13:17:41]requested_item shift.open_date is exist - process it [13:17:41]req_shift_open_date [13:17:41]req_shift_open_date done [13:17:41]produce_requested_data done [13:17:41]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30338,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [13:17:41]process_action_free close_receipt [13:17:41]json_value_free [13:17:41]json_value_free done [13:17:41]process_json_proto returns [13:17:41]Send response to host [13:17:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30338,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [13:17:41]free response buf [13:17:41]execute_script done [13:17:41]execute_script returns [13:17:41]free content buf [13:17:41]Sock 7.Close socket [13:17:41]Sock 7.Thread stoped [13:17:44]OFD Sender: No OFD packet to send [13:17:49]OFD Sender: No OFD packet to send [13:17:54]OFD Sender: No OFD packet to send [13:18:00]OFD Sender: No OFD packet to send [13:18:05]OFD Sender: No OFD packet to send [13:18:10]OFD Sender: No OFD packet to send [13:18:15]OFD Sender: No OFD packet to send [13:18:20]OFD Sender: No OFD packet to send [13:18:25]OFD Sender: No OFD packet to send [13:18:30]OFD Sender: No OFD packet to send [13:18:35]OFD Sender: No OFD packet to send [13:18:40]OFD Sender: No OFD packet to send [13:18:45]OFD Sender: No OFD packet to send [13:18:50]OFD Sender: No OFD packet to send [13:18:55]OFD Sender: No OFD packet to send [13:19:00]OFD Sender: No OFD packet to send [13:19:05]OFD Sender: No OFD packet to send [13:19:10]OFD Sender: No OFD packet to send [13:19:15]OFD Sender: No OFD packet to send [13:19:20]OFD Sender: No OFD packet to send [13:19:25]OFD Sender: No OFD packet to send [13:19:30]OFD Sender: No OFD packet to send [13:19:35]OFD Sender: No OFD packet to send [13:19:40]OFD Sender: No OFD packet to send [13:19:45]OFD Sender: No OFD packet to send [13:19:50]OFD Sender: No OFD packet to send [13:19:55]OFD Sender: No OFD packet to send [13:20:00]OFD Sender: No OFD packet to send [13:20:05]OFD Sender: No OFD packet to send [13:20:10]OFD Sender: No OFD packet to send [13:20:15]OFD Sender: No OFD packet to send [13:20:20]OFD Sender: No OFD packet to send [13:20:25]OFD Sender: No OFD packet to send [13:20:30]OFD Sender: No OFD packet to send [13:20:35]OFD Sender: No OFD packet to send [13:20:40]OFD Sender: No OFD packet to send [13:20:45]OFD Sender: No OFD packet to send [13:20:50]OFD Sender: No OFD packet to send [13:20:55]OFD Sender: No OFD packet to send [13:21:00]OFD Sender: No OFD packet to send [13:21:05]OFD Sender: No OFD packet to send [13:21:10]OFD Sender: No OFD packet to send [13:21:15]OFD Sender: No OFD packet to send [13:21:20]OFD Sender: No OFD packet to send [13:21:25]OFD Sender: No OFD packet to send [13:21:27]accept exits with 9 [13:21:27]New connection [13:21:27]New thread 3067370852 created [13:21:27]Thread 3067514212 joined [13:21:27]Waiting for new connection... [13:21:27] Sock 9.Parse request [13:21:27]Sock 9.Check first char [13:21:27]Sock 9.First char is OK [13:21:27]request: POST /json_proto HTTP/1.0 [13:21:27]Method: POST [13:21:27]URL: /json_proto [13:21:27]Method is POST - this is cgi request [13:21:27]url: /json_proto [13:21:27]query_string will be loaded in cgi processing [13:21:27]execute_cgi json_proto POST (null) [13:21:27]execute_cgi path=json_proto method=POST [13:21:27]POST find Content-Length [13:21:27]Host: 172.17.51.3:8080 [13:21:27]Content-Length: 674 [13:21:27]Content-Type: application/json [13:21:27] [13:21:27]POST finish read [13:21:27]Found Content-Length = 674 [13:21:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342732", "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" ] } } [13:21:27]execute_script... [13:21: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)342732", "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" ] } } [13:21:27]POST & json_proto [13:21:27]process_json_proto [13:21:27]json parsed OK: [13:21:27]protocol is kg_v1.0 [13:21:27]action value=close_receipt [13:21:27]process_action close_receipt [13:21:27]cmd_close_receipt [13:21:27]MH_GetDate [13:21:27]Write to MH i2c: F0 00 00 94 84 07 [13:21:27]Write i2c OK [13:21:27]MH_I2C_Read... [13:21:27]Read from MH i2c: F0 [13:21:27]MH_I2C_Read... [13:21:27]Read from MH i2c: F0 09 00 [13:21:27]MH_I2C_Read... [13:21:27]Read from MH i2c: F0 09 00 94 84 00 E0 03 15 67 04 C1 95 66 2F [13:21:27]GetLastDocTimeStamp 1729430266 [13:21:27]current date 1729430496 [13:21:27]FM_GetShiftState [13:21:27]SAM_PROTO_GetShiftState [13:21:27]wFMCommunicate request_size=4 [13:21:27]MH_SAM_APDU [13:21:27]CAPDU: 80 13 01 00 [13:21:27]Write to MH i2c: E2 08 00 95 84 80 13 01 00 00 00 00 00 96 [13:21:27]Write i2c OK [13:21:27]MH_I2C_Read... [13:21:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:21:27]Read from MH i2c: E2 [13:21:27]MH_I2C_Read... [13:21:27]Read from MH i2c: E2 0E 00 [13:21:27]MH_I2C_Read... [13:21:27]Read from MH i2c: E2 0E 00 95 84 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 7C [13:21:27]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [13:21:27]wFMCommunicate OK [13:21:27]SAM_PROTO_GetShiftState done [13:21:27]FM_GetShiftState done [13:21:27]opened in 1729384718 [13:21:27]opened+sec_in_day 1729471118 [13:21:27]quantity*price = 50063 [13:21:27]sum+1 = 50064 [13:21:27]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 СНО: Общий режим Чек 121 20.10.2024 13:21 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30339 ФПД: 231790980021760 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T132136&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30339&fm=231790980021760&tin=02508201610067®Number=0000000000186857&sum=50000 [13:21:28]StoreToDocumentArchive [13:21:28]shift 114 fd 30339 [13:21:28]save to /storage/0114/doc_00030339 [13:21:28]save last doc name /storage/0114/doc_00030339 to /storage/kkm_last_doc_name [13:21:28]save OK [13:21:28]Clear old archive folders... [13:21:28]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:21:28]tlvbuf is 00B3B9D0 [13:21:28]SAM_PROTO_ClearQueue [13:21:28]wFMCommunicate request_size=4 [13:21:28]MH_SAM_APDU [13:21:28]CAPDU: 80 09 00 00 [13:21:28]Write to MH i2c: E2 08 00 A2 84 80 09 00 00 00 00 00 00 98 [13:21:28]Write i2c OK [13:21:28]MH_I2C_Read... [13:21:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:21:28]Read from MH i2c: E2 [13:21:28]MH_I2C_Read... [13:21:28]Read from MH i2c: E2 03 00 [13:21:28]MH_I2C_Read... [13:21:28]Read from MH i2c: E2 03 00 A2 84 00 90 00 9A [13:21:28]RAPDU: 90 00 [13:21:28]wFMCommunicate OK [13:21:28]SAM_PROTO_ClearQueue done [13:21:28]KKMCreateOFDPacket [13:21:28]OFDProtocolAddRootSTLVToBuf [13:21:28]FM_MakeSignedData [13:21:28]FM_MakeSignedData [13:21:28]SAM_PROTO_SignData [13:21:28]wFMCommunicate request_size=4 [13:21:28]MH_SAM_APDU [13:21:28]CAPDU: 80 0D 01 02 [13:21:28]Write to MH i2c: E2 08 00 A3 84 80 0D 01 02 00 00 00 00 A0 [13:21:28]Write i2c OK [13:21:28]MH_I2C_Read... [13:21:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:21:28]Read from MH i2c: E2 [13:21:28]MH_I2C_Read... [13:21:28]Read from MH i2c: E2 03 00 [13:21:28]MH_I2C_Read... [13:21:28]Read from MH i2c: E2 03 00 A3 84 00 90 00 9B [13:21:28]RAPDU: 90 00 [13:21:28]wFMCommunicate OK [13:21:28]wFMCommunicate request_size=255 [13:21:28]MH_SAM_APDU [13:21:28]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 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 79 00 00 00 F4 03 04 00 E0 03 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 D2 D0 0B 06 [13:21:28]Write to MH i2c: E2 02 01 A4 84 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 79 00 00 00 F4 03 04 00 E0 03 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 D2 D0 0B 06 00 00 A5 [13:21:28]Write i2c OK [13:21:28]MH_I2C_Read... [13:21:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:21:28]Read from MH i2c: E2 [13:21:28]MH_I2C_Read... [13:21:28]Read from MH i2c: E2 03 00 [13:21:28]MH_I2C_Read... [13:21:28]Read from MH i2c: E2 03 00 A4 84 00 90 00 9C [13:21:28]RAPDU: 90 00 [13:21:28]wFMCommunicate OK [13:21:28]wFMCommunicate request_size=7 [13:21:28]MH_SAM_APDU [13:21:28]CAPDU: 80 0D 02 02 02 BE 00 [13:21:28]Write to MH i2c: E2 0A 00 A5 84 80 0D 02 02 02 00 BE 00 00 00 65 [13:21:28]Write i2c OK [13:21:28]MH_I2C_Read... [13:21:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:21:28]Read from MH i2c: E2 [13:21:28]MH_I2C_Read... [13:21:28]Read from MH i2c: E2 03 00 [13:21:28]MH_I2C_Read... [13:21:28]Read from MH i2c: E2 03 00 A5 84 00 90 00 9D [13:21:28]RAPDU: 90 00 [13:21:28]wFMCommunicate OK [13:21:28]wFMCommunicate request_size=4 [13:21:28]MH_SAM_APDU [13:21:28]CAPDU: 80 0D 03 02 [13:21:28]Write to MH i2c: E2 08 00 A6 84 80 0D 03 02 00 00 00 00 A5 [13:21:28]Write i2c OK [13:21:28]MH_I2C_Read... [13:21:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:21:28]Read from MH i2c: E2 [13:21:28]MH_I2C_Read... [13:21:28]Read from MH i2c: E2 0B 00 [13:21:28]MH_I2C_Read... [13:21:29]Read from MH i2c: E2 0B 00 A6 84 00 C9 53 3B BB 2C 18 B1 60 90 00 0D [13:21:29]RAPDU: C9 53 3B BB 2C 18 B1 60 90 00 [13:21:29]wFMCommunicate OK [13:21:29]SAM_PROTO_SignData done [13:21:29]FM_MakeSignedData done [13:21:29]CreateOFDProtocolMessage [13:21:29]wFMCommunicate request_size=4 [13:21:29]MH_SAM_APDU [13:21:29]CAPDU: 80 11 00 00 [13:21:29]Write to MH i2c: E2 08 00 A7 84 80 11 00 00 00 00 00 00 A5 [13:21:29]Write i2c OK [13:21:29]MH_I2C_Read... [13:21:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:21:29]Read from MH i2c: E2 [13:21:29]MH_I2C_Read... [13:21:29]Read from MH i2c: E2 17 00 [13:21:29]MH_I2C_Read... [13:21:29]Read from MH i2c: E2 17 00 A7 84 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 F3 [13:21:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [13:21:29]wFMCommunicate OK [13:21:29]CreateOFDProtocolMessage done [13:21:29]OFDSenderStorePacket 30339 [13:21:29]StoreOFDPacket docnum=30339 [13:21: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 0C 01 00 00 04 45 04 01 5F CF 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 79 00 00 00 F4 03 04 00 E0 03 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 D2 D0 0B 06 BE 00 C9 53 3B BB 2C 18 B1 60 [13:21:29]CheckFolder [13:21:29]dirname=/storage/ofd_packets [13:21:29]CheckFolder done [13:21:29]ProducePacketName [13:21:29]name=ofd_packets/00030339 [13:21:29]NVStorageSaveData ofd_packets/00030339 [13:21:29]File name is /storage/ofd_packets/00030339 [13:21:29]Write 298 bytes [13:21:29]NVStorageSaveData done [13:21:29]OFDSenderStorePacket done [13:21:29]KKMCreateOFDPacket done [13:21:29]NVStorageSaveData kkm_last_timestamp [13:21:29]File name is /storage/kkm_last_timestamp [13:21:29]Write 4 bytes [13:21:29]NVStorageSaveData done [13:21:29]ExternCall_PrintAddStr [13:21:29]wPrintStart [13:21:29]Write to MH i2c: 01 00 00 A8 84 2C [13:21:29]Write i2c OK [13:21:29]MH_I2C_Read... [13:21:29]Read from MH i2c: 01 [13:21:29]MH_I2C_Read... [13:21:29]Read from MH i2c: 01 07 00 [13:21:29]MH_I2C_Read... [13:21:29]Read from MH i2c: 01 07 00 A8 84 00 00 00 00 00 FF 0F 41 [13:21:29]RasterBufferAndPrint [13:21:29]line Счет N : (1)342732 [13:21:29]line ИНН: 02508201610067 [13:21:29]line Контрольно-Кассовый Чек [13:21:29]line ПРОДАЖА [13:21:29]line ТРК (МРК, ГНК) : 34 [13:21:29]line Товар: 2710194210 [13:21:29]line ДТ-К-2 [13:21:29]line 6.570 * 76.20 [13:21:29]line = 500.63 [13:21:29]line НДС 12% НСП 1% [13:21:29]line > о реализуемом товаре [13:21:29]line ОКРУГЛЕНИЕ: -0.63 [13:21:29]line ИТОГО: 500.00 [13:21:29]line Внесено: 500.00 [13:21:29]line СДАЧА: 0.00 [13:21:29]line НСП 1% : 4.43 [13:21:29]line НДС 12% : 53.16 [13:21:29]line Наличными: 500.00 [13:21:29]line Безнал.: 0.00 [13:21:29]line Место: АЗС № 78 "Партнер Нефть" [13:21:29]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [13:21:29]line СНО: Общий режим [13:21:29]line Чек 121 20.10.2024 13:21 [13:21:29]line Смена: 114 ФФД: 1.0 [13:21:29]line ЗНМ: 0300000137 [13:21:29]line РНМ: 0000000000186857 [13:21:29]line Версия ККМ: v1.0 [13:21:29]line ФМ: 0000000002094219 [13:21:29]line ФД: 30339 [13:21:29]line ФПД: 231790980021760 [13:21:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T132136&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30339&fm=231790980021760&tin=02508201610067®Number=0000000000186857&sum=50000 [13:21:29]OFD Sender: Processing packet 30339 [packets to send 10, broken 9] [13:21:29]ProducePacketName [13:21:29]name=ofd_packets/00030339 [13:21:29]OFD Sender: To server: pG, [13:21:29]CommunicateWithHost lk.salyk.kg:30040 [13:21:29]ConnectInit lk.salyk.kg [13:21:29]written 0, free lines is 4095 [13:21:29]Connected sock=10 [13:21: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 0C 01 00 00 04 45 04 01 5F CF 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 79 00 00 00 F4 03 04 00 E0 03 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 D2 D0 0B 06 BE 00 C9 53 3B BB 2C 18 B1 60 [13:21: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 60 B8 47 00 34 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 83 76 00 00 F4 03 04 00 64 AE 14 67 B6 04 01 00 00 B8 9D 32 4D 82 09 4E 1A [13:21:29]CommunicateWithHost err = 0 [13:21:29]CheckOFDResponse [13:21:29]1017 (14) - 77093643461234 [13:21:29]1041 (16) - 0000000002094219 [13:21:29]1040 (4) - 30339 [13:21:29]1012 (4) - 20.10.2024 07:16 [13:21:29]1206 (1) - 0 [13:21:29]OFD Sender: Remove packet 30339 [13:21:29]ProducePacketName [13:21:29]name=ofd_packets/00030339 [13:21:29]NVStorageDeleteData [13:21:29]Write to MH i2c: 01 00 00 D3 84 57 [13:21:29]Write i2c OK [13:21:29]MH_I2C_Read... [13:21:29]Read from MH i2c: 01 [13:21:29]MH_I2C_Read... [13:21:29]Read from MH i2c: 01 07 00 [13:21:29]MH_I2C_Read... [13:21:29]Read from MH i2c: 01 07 00 D3 84 00 00 00 00 00 DD 0C 47 [13:21:29]RasterBufferAndPrint [13:21:29]line [13:21:29]line [13:21:29]line [13:21:29]line [13:21:29]line [13:21:29]written 0, free lines is 3302 [13:21:29]MH_Cut [13:21:29]Write to MH i2c: D1 01 00 DA 84 01 30 [13:21:29]Write i2c OK [13:21:29]MH_I2C_Read... [13:21:29]Read from MH i2c: D1 [13:21:29]MH_I2C_Read... [13:21:29]Read from MH i2c: D1 01 00 [13:21:29]MH_I2C_Read... [13:21:29]Read from MH i2c: D1 01 00 DA 84 00 2F [13:21:29]Write to MH i2c: 01 00 00 DB 84 5F [13:21:29]Write i2c OK [13:21:29]MH_I2C_Read... [13:21:30]OFD Sender: No OFD packet to send [13:21:30]*** Cut start [13:21:30]*** Partial cut [13:21:30]*** CUTSNS_PIN = 1 [13:21:30]*** CUTSNS_PIN = 0 [13:21:30]*** Brake cut motor [13:21:31]Read from MH i2c: 01 [13:21:31]MH_I2C_Read... [13:21:31]*** Stop cut motor [13:21:31]*** Cut end [13:21:31]Read from MH i2c: 01 07 00 [13:21:31]MH_I2C_Read... [13:21:31]Read from MH i2c: 01 07 00 DB 84 00 00 00 00 00 FF 0F 74 [13:21:31]process_action close_receipt done [13:21:31]requested_data is exist [13:21:31]produce_requested_data [13:21:31]requested_item fm.sn is exist - process it [13:21:31]wFMCommunicate request_size=4 [13:21:31]MH_SAM_APDU [13:21:31]CAPDU: 80 11 00 00 [13:21:31]Write to MH i2c: E2 08 00 DC 84 80 11 00 00 00 00 00 00 DA [13:21:31]Write i2c OK [13:21:31]MH_I2C_Read... [13:21:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:21:31]Read from MH i2c: E2 [13:21:31]MH_I2C_Read... [13:21:31]Read from MH i2c: E2 17 00 [13:21:31]MH_I2C_Read... [13:21:31]Read from MH i2c: E2 17 00 DC 84 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 28 [13:21:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [13:21:31]wFMCommunicate OK [13:21:31]requested_item fd.num is exist - process it [13:21:31]SAM_PROTO_GetFieldsCounters [13:21:31]wFMCommunicate request_size=4 [13:21:31]MH_SAM_APDU [13:21:31]CAPDU: 80 13 00 00 [13:21:31]Write to MH i2c: E2 08 00 DD 84 80 13 00 00 00 00 00 00 DD [13:21:31]Write i2c OK [13:21:31]MH_I2C_Read... [13:21:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:21:31]Read from MH i2c: E2 [13:21:31]MH_I2C_Read... [13:21:31]Read from MH i2c: E2 62 00 [13:21:31]MH_I2C_Read... [13:21:31]Read from MH i2c: E2 62 00 DD 84 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 D9 [13:21: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 83 76 00 00 0E 04 04 00 72 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:21:31]wFMCommunicate OK [13:21:31]SAM_PROTO_GetFieldsCounters done [13:21:31]requested_item shift.num is exist - process it [13:21:31]requested_item shift.opened is exist - process it [13:21:31]req_shift_opened [13:21:31]FM_GetShiftState [13:21:31]SAM_PROTO_GetShiftState [13:21:31]wFMCommunicate request_size=4 [13:21:31]MH_SAM_APDU [13:21:31]CAPDU: 80 13 01 00 [13:21:31]Write to MH i2c: E2 08 00 DE 84 80 13 01 00 00 00 00 00 DF [13:21:31]Write i2c OK [13:21:31]MH_I2C_Read... [13:21:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:21:31]Read from MH i2c: E2 [13:21:31]MH_I2C_Read... [13:21:31]Read from MH i2c: E2 0E 00 [13:21:31]MH_I2C_Read... [13:21:31]Read from MH i2c: E2 0E 00 DE 84 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 C5 [13:21:31]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [13:21:31]wFMCommunicate OK [13:21:31]SAM_PROTO_GetShiftState done [13:21:31]FM_GetShiftState done [13:21:31]req_shift_opened done [13:21:31]requested_item shift.open_date is exist - process it [13:21:31]req_shift_open_date [13:21:31]req_shift_open_date done [13:21:31]produce_requested_data done [13:21:31]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30339,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [13:21:31]process_action_free close_receipt [13:21:31]json_value_free [13:21:31]json_value_free done [13:21:31]process_json_proto returns [13:21:31]Send response to host [13:21:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30339,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [13:21:31]free response buf [13:21:31]execute_script done [13:21:31]execute_script returns [13:21:31]free content buf [13:21:31]Sock 9.Close socket [13:21:31]Sock 9.Thread stoped [13:21:35]OFD Sender: No OFD packet to send [13:21:40]OFD Sender: No OFD packet to send [13:21:45]OFD Sender: No OFD packet to send [13:21:50]OFD Sender: No OFD packet to send [13:21:55]OFD Sender: No OFD packet to send [13:22:00]OFD Sender: No OFD packet to send [13:22:05]OFD Sender: No OFD packet to send [13:22:10]OFD Sender: No OFD packet to send [13:22:15]OFD Sender: No OFD packet to send [13:22:19]accept exits with 7 [13:22:19]New connection [13:22:19]New thread 3067514212 created [13:22:19]Thread 3067370852 joined [13:22:19]Waiting for new connection... [13:22:19] Sock 7.Parse request [13:22:19]Sock 7.Check first char [13:22:19]Sock 7.First char is OK [13:22:19]request: POST /json_proto HTTP/1.0 [13:22:19]Method: POST [13:22:19]URL: /json_proto [13:22:19]Method is POST - this is cgi request [13:22:19]url: /json_proto [13:22:19]query_string will be loaded in cgi processing [13:22:19]execute_cgi json_proto POST (null) [13:22:19]execute_cgi path=json_proto method=POST [13:22:19]POST find Content-Length [13:22:19]Host: 172.17.51.3:8080 [13:22:19]Content-Length: 677 [13:22:19]Content-Type: application/json [13:22:19] [13:22:19]POST finish read [13:22:19]Found Content-Length = 677 [13:22:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342731", "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:22:19]execute_script... [13:22: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)342731", "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:22:19]POST & json_proto [13:22:19]process_json_proto [13:22:19]json parsed OK: [13:22:19]protocol is kg_v1.0 [13:22:19]action value=close_receipt [13:22:19]process_action close_receipt [13:22:19]cmd_close_receipt [13:22:19]MH_GetDate [13:22:19]Write to MH i2c: F0 00 00 DF 84 52 [13:22:19]Write i2c OK [13:22:19]MH_I2C_Read... [13:22:19]Read from MH i2c: F0 [13:22:19]MH_I2C_Read... [13:22:19]Read from MH i2c: F0 09 00 [13:22:19]MH_I2C_Read... [13:22:19]Read from MH i2c: F0 09 00 DF 84 00 14 04 15 67 04 C1 95 66 AF [13:22:19]GetLastDocTimeStamp 1729430496 [13:22:19]current date 1729430548 [13:22:19]FM_GetShiftState [13:22:19]SAM_PROTO_GetShiftState [13:22:19]wFMCommunicate request_size=4 [13:22:19]MH_SAM_APDU [13:22:19]CAPDU: 80 13 01 00 [13:22:19]Write to MH i2c: E2 08 00 E0 84 80 13 01 00 00 00 00 00 E1 [13:22:19]Write i2c OK [13:22:19]MH_I2C_Read... [13:22:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:22:19]Read from MH i2c: E2 [13:22:19]MH_I2C_Read... [13:22:19]Read from MH i2c: E2 0E 00 [13:22:19]MH_I2C_Read... [13:22:19]Read from MH i2c: E2 0E 00 E0 84 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 C7 [13:22:19]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [13:22:19]wFMCommunicate OK [13:22:19]SAM_PROTO_GetShiftState done [13:22:19]FM_GetShiftState done [13:22:19]opened in 1729384718 [13:22:19]opened+sec_in_day 1729471118 [13:22:19]quantity*price = 25020 [13:22:19]sum+1 = 25022 [13:22:19]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 СНО: Общий режим Чек 122 20.10.2024 13:22 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30340 ФПД: 213695854278593 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T132229&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30340&fm=213695854278593&tin=02508201610067®Number=0000000000186857&sum=25000 [13:22:20]StoreToDocumentArchive [13:22:20]shift 114 fd 30340 [13:22:20]save to /storage/0114/doc_00030340 [13:22:20]save last doc name /storage/0114/doc_00030340 to /storage/kkm_last_doc_name [13:22:20]save OK [13:22:20]Clear old archive folders... [13:22:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:22:20]tlvbuf is 00A95550 [13:22:20]SAM_PROTO_ClearQueue [13:22:20]wFMCommunicate request_size=4 [13:22:20]MH_SAM_APDU [13:22:20]CAPDU: 80 09 00 00 [13:22:20]Write to MH i2c: E2 08 00 ED 84 80 09 00 00 00 00 00 00 E3 [13:22:20]Write i2c OK [13:22:20]MH_I2C_Read... [13:22:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:22:20]Read from MH i2c: E2 [13:22:20]MH_I2C_Read... [13:22:20]Read from MH i2c: E2 03 00 [13:22:20]MH_I2C_Read... [13:22:20]Read from MH i2c: E2 03 00 ED 84 00 90 00 E5 [13:22:20]RAPDU: 90 00 [13:22:20]wFMCommunicate OK [13:22:20]SAM_PROTO_ClearQueue done [13:22:20]KKMCreateOFDPacket [13:22:20]OFDProtocolAddRootSTLVToBuf [13:22:20]FM_MakeSignedData [13:22:20]FM_MakeSignedData [13:22:20]SAM_PROTO_SignData [13:22:20]wFMCommunicate request_size=4 [13:22:20]MH_SAM_APDU [13:22:20]CAPDU: 80 0D 01 02 [13:22:20]Write to MH i2c: E2 08 00 EE 84 80 0D 01 02 00 00 00 00 EB [13:22:20]Write i2c OK [13:22:20]MH_I2C_Read... [13:22:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:22:20]Read from MH i2c: E2 [13:22:20]MH_I2C_Read... [13:22:20]Read from MH i2c: E2 03 00 [13:22:20]MH_I2C_Read... [13:22:20]Read from MH i2c: E2 03 00 EE 84 00 90 00 E6 [13:22:20]RAPDU: 90 00 [13:22:20]wFMCommunicate OK [13:22:20]wFMCommunicate request_size=255 [13:22:20]MH_SAM_APDU [13:22: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 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 7A 00 00 00 F4 03 04 00 15 04 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 C2 [13:22:20]Write to MH i2c: E2 02 01 EF 84 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 7A 00 00 00 F4 03 04 00 15 04 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 C2 00 00 92 [13:22:20]Write i2c OK [13:22:20]MH_I2C_Read... [13:22:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:22:21]Read from MH i2c: E2 [13:22:21]MH_I2C_Read... [13:22:21]Read from MH i2c: E2 03 00 [13:22:21]MH_I2C_Read... [13:22:21]Read from MH i2c: E2 03 00 EF 84 00 90 00 E7 [13:22:21]RAPDU: 90 00 [13:22:21]wFMCommunicate OK [13:22:21]wFMCommunicate request_size=10 [13:22:21]MH_SAM_APDU [13:22:21]CAPDU: 80 0D 02 02 05 5A F1 7B F7 C1 [13:22:21]Write to MH i2c: E2 0D 00 F0 84 80 0D 02 02 05 00 5A F1 7B F7 C1 00 00 76 [13:22:21]Write i2c OK [13:22:21]MH_I2C_Read... [13:22:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:22:21]Read from MH i2c: E2 [13:22:21]MH_I2C_Read... [13:22:21]Read from MH i2c: E2 03 00 [13:22:21]MH_I2C_Read... [13:22:21]Read from MH i2c: E2 03 00 F0 84 00 90 00 E8 [13:22:21]RAPDU: 90 00 [13:22:21]wFMCommunicate OK [13:22:21]wFMCommunicate request_size=4 [13:22:21]MH_SAM_APDU [13:22:21]CAPDU: 80 0D 03 02 [13:22:21]Write to MH i2c: E2 08 00 F1 84 80 0D 03 02 00 00 00 00 F0 [13:22:21]Write i2c OK [13:22:21]MH_I2C_Read... [13:22:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:22:21]Read from MH i2c: E2 [13:22:21]MH_I2C_Read... [13:22:21]Read from MH i2c: E2 0B 00 [13:22:21]MH_I2C_Read... [13:22:21]Read from MH i2c: E2 0B 00 F1 84 00 AA B8 D7 D0 A8 C9 55 56 90 00 16 [13:22:21]RAPDU: AA B8 D7 D0 A8 C9 55 56 90 00 [13:22:21]wFMCommunicate OK [13:22:21]SAM_PROTO_SignData done [13:22:21]FM_MakeSignedData done [13:22:21]CreateOFDProtocolMessage [13:22:21]wFMCommunicate request_size=4 [13:22:21]MH_SAM_APDU [13:22:21]CAPDU: 80 11 00 00 [13:22:21]Write to MH i2c: E2 08 00 F2 84 80 11 00 00 00 00 00 00 F0 [13:22:21]Write i2c OK [13:22:21]MH_I2C_Read... [13:22:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:22:21]Read from MH i2c: E2 [13:22:21]MH_I2C_Read... [13:22:21]Read from MH i2c: E2 17 00 [13:22:21]MH_I2C_Read... [13:22:21]Read from MH i2c: E2 17 00 F2 84 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 3E [13:22:21]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:21]wFMCommunicate OK [13:22:21]CreateOFDProtocolMessage done [13:22:21]OFDSenderStorePacket 30340 [13:22:21]StoreOFDPacket docnum=30340 [13:22: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 5C FA 07 01 12 13 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 7A 00 00 00 F4 03 04 00 15 04 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 C2 5A F1 7B F7 C1 AA B8 D7 D0 A8 C9 55 56 [13:22:21]CheckFolder [13:22:21]dirname=/storage/ofd_packets [13:22:21]CheckFolder done [13:22:21]ProducePacketName [13:22:21]name=ofd_packets/00030340 [13:22:21]NVStorageSaveData ofd_packets/00030340 [13:22:21]File name is /storage/ofd_packets/00030340 [13:22:21]Write 301 bytes [13:22:21]NVStorageSaveData done [13:22:21]OFDSenderStorePacket done [13:22:21]KKMCreateOFDPacket done [13:22:21]NVStorageSaveData kkm_last_timestamp [13:22:21]File name is /storage/kkm_last_timestamp [13:22:21]Write 4 bytes [13:22:21]NVStorageSaveData done [13:22:21]ExternCall_PrintAddStr [13:22:21]wPrintStart [13:22:21]Write to MH i2c: 01 00 00 F3 84 77 [13:22:21]Write i2c OK [13:22:21]MH_I2C_Read... [13:22:21]Read from MH i2c: 01 [13:22:21]MH_I2C_Read... [13:22:21]Read from MH i2c: 01 07 00 [13:22:21]MH_I2C_Read... [13:22:21]Read from MH i2c: 01 07 00 F3 84 00 00 00 00 00 FF 0F 8C [13:22:21]RasterBufferAndPrint [13:22:21]line Счет N : (1)342731 [13:22:21]line ИНН: 02508201610067 [13:22:21]line Контрольно-Кассовый Чек [13:22:21]line ПРОДАЖА [13:22:21]line ТРК (МРК, ГНК) : 63 [13:22:21]line Товар: 2710124130 [13:22:21]line Аи-92-К-2 [13:22:21]line 3.740 * 66.90 [13:22:21]line = 250.21 [13:22:21]line НДС 12% НСП 1% [13:22:21]line > о реализуемом товаре [13:22:21]line ОКРУГЛЕНИЕ: -0.21 [13:22:21]line ИТОГО: 250.00 [13:22:21]line Внесено: 250.00 [13:22:21]line СДАЧА: 0.00 [13:22:21]line НСП 1% : 2.21 [13:22:21]line НДС 12% : 26.57 [13:22:21]line Наличными: 250.00 [13:22:21]line Безнал.: 0.00 [13:22:21]line Место: АЗС № 78 "Партнер Нефть" [13:22:21]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [13:22:21]line СНО: Общий режим [13:22:21]line Чек 122 20.10.2024 13:22 [13:22:21]line Смена: 114 ФФД: 1.0 [13:22:21]line ЗНМ: 0300000137 [13:22:21]line РНМ: 0000000000186857 [13:22:21]line Версия ККМ: v1.0 [13:22:21]line ФМ: 0000000002094219 [13:22:21]line ФД: 30340 [13:22:21]line ФПД: 213695854278593 [13:22:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T132229&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30340&fm=213695854278593&tin=02508201610067®Number=0000000000186857&sum=25000 [13:22:21]OFD Sender: Processing packet 30340 [packets to send 10, broken 9] [13:22:21]ProducePacketName [13:22:21]name=ofd_packets/00030340 [13:22:21]OFD Sender: To server: pG, [13:22:21]CommunicateWithHost lk.salyk.kg:30040 [13:22:21]ConnectInit lk.salyk.kg [13:22:21]written 0, free lines is 4095 [13:22:21]Connected sock=10 [13:22: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 5C FA 07 01 12 13 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 7A 00 00 00 F4 03 04 00 15 04 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 C2 5A F1 7B F7 C1 AA B8 D7 D0 A8 C9 55 56 [13:22: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 B2 2D 47 00 44 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 84 76 00 00 F4 03 04 00 98 AE 14 67 B6 04 01 00 00 DE B9 87 5A 2A 3F B2 6B [13:22:21]CommunicateWithHost err = 0 [13:22:21]CheckOFDResponse [13:22:21]1017 (14) - 77093643461234 [13:22:21]1041 (16) - 0000000002094219 [13:22:21]1040 (4) - 30340 [13:22:21]1012 (4) - 20.10.2024 07:17 [13:22:21]1206 (1) - 0 [13:22:21]OFD Sender: Remove packet 30340 [13:22:21]ProducePacketName [13:22:21]name=ofd_packets/00030340 [13:22:21]NVStorageDeleteData [13:22:21]Write to MH i2c: 01 00 00 1E 85 A3 [13:22:21]Write i2c OK [13:22:21]MH_I2C_Read... [13:22:21]Read from MH i2c: 01 [13:22:21]MH_I2C_Read... [13:22:21]Read from MH i2c: 01 07 00 [13:22:21]MH_I2C_Read... [13:22:21]Read from MH i2c: 01 07 00 1E 85 00 00 00 00 00 E3 0C 99 [13:22:21]RasterBufferAndPrint [13:22:21]line [13:22:21]line [13:22:21]line [13:22:21]line [13:22:21]line [13:22:21]written 0, free lines is 3308 [13:22:21]MH_Cut [13:22:21]Write to MH i2c: D1 01 00 25 85 01 7C [13:22:21]Write i2c OK [13:22:21]MH_I2C_Read... [13:22:21]Read from MH i2c: D1 [13:22:21]MH_I2C_Read... [13:22:21]Read from MH i2c: D1 01 00 [13:22:21]MH_I2C_Read... [13:22:21]Read from MH i2c: D1 01 00 25 85 00 7B [13:22:21]Write to MH i2c: 01 00 00 26 85 AB [13:22:21]Write i2c OK [13:22:21]MH_I2C_Read... [13:22:22]OFD Sender: No OFD packet to send [13:22:22]*** Cut start [13:22:22]*** Partial cut [13:22:22]*** CUTSNS_PIN = 1 [13:22:22]*** CUTSNS_PIN = 0 [13:22:22]*** Brake cut motor [13:22:23]Read from MH i2c: 01 [13:22:23]MH_I2C_Read... [13:22:23]*** Stop cut motor [13:22:23]*** Cut end [13:22:23]Read from MH i2c: 01 07 00 [13:22:23]MH_I2C_Read... [13:22:23]Read from MH i2c: 01 07 00 26 85 00 00 00 00 00 FF 0F C0 [13:22:23]process_action close_receipt done [13:22:23]requested_data is exist [13:22:23]produce_requested_data [13:22:23]requested_item fm.sn is exist - process it [13:22:23]wFMCommunicate request_size=4 [13:22:23]MH_SAM_APDU [13:22:23]CAPDU: 80 11 00 00 [13:22:23]Write to MH i2c: E2 08 00 27 85 80 11 00 00 00 00 00 00 26 [13:22:23]Write i2c OK [13:22:23]MH_I2C_Read... [13:22:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:22:23]Read from MH i2c: E2 [13:22:23]MH_I2C_Read... [13:22:23]Read from MH i2c: E2 17 00 [13:22:23]MH_I2C_Read... [13:22:23]Read from MH i2c: E2 17 00 27 85 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 74 [13:22:23]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:23]wFMCommunicate OK [13:22:23]requested_item fd.num is exist - process it [13:22:23]SAM_PROTO_GetFieldsCounters [13:22:23]wFMCommunicate request_size=4 [13:22:23]MH_SAM_APDU [13:22:23]CAPDU: 80 13 00 00 [13:22:23]Write to MH i2c: E2 08 00 28 85 80 13 00 00 00 00 00 00 29 [13:22:23]Write i2c OK [13:22:23]MH_I2C_Read... [13:22:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:22:23]Read from MH i2c: E2 [13:22:23]MH_I2C_Read... [13:22:23]Read from MH i2c: E2 62 00 [13:22:23]MH_I2C_Read... [13:22:23]Read from MH i2c: E2 62 00 28 85 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 29 [13:22: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 84 76 00 00 0E 04 04 00 72 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 [13:22:23]wFMCommunicate OK [13:22:23]SAM_PROTO_GetFieldsCounters done [13:22:23]requested_item shift.num is exist - process it [13:22:23]requested_item shift.opened is exist - process it [13:22:23]req_shift_opened [13:22:23]FM_GetShiftState [13:22:23]SAM_PROTO_GetShiftState [13:22:23]wFMCommunicate request_size=4 [13:22:23]MH_SAM_APDU [13:22:23]CAPDU: 80 13 01 00 [13:22:23]Write to MH i2c: E2 08 00 29 85 80 13 01 00 00 00 00 00 2B [13:22:23]Write i2c OK [13:22:23]MH_I2C_Read... [13:22:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:22:23]Read from MH i2c: E2 [13:22:23]MH_I2C_Read... [13:22:23]Read from MH i2c: E2 0E 00 [13:22:23]MH_I2C_Read... [13:22:23]Read from MH i2c: E2 0E 00 29 85 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 11 [13:22:23]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [13:22:23]wFMCommunicate OK [13:22:23]SAM_PROTO_GetShiftState done [13:22:23]FM_GetShiftState done [13:22:23]req_shift_opened done [13:22:23]requested_item shift.open_date is exist - process it [13:22:23]req_shift_open_date [13:22:23]req_shift_open_date done [13:22:23]produce_requested_data done [13:22:23]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30340,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [13:22:23]process_action_free close_receipt [13:22:23]json_value_free [13:22:23]json_value_free done [13:22:23]process_json_proto returns [13:22:23]Send response to host [13:22:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30340,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [13:22:23]free response buf [13:22:23]execute_script done [13:22:23]execute_script returns [13:22:23]free content buf [13:22:23]Sock 7.Close socket [13:22:23]Sock 7.Thread stoped [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:47]OFD Sender: No OFD packet to send [13:22:52]OFD Sender: No OFD packet to send [13:22:57]OFD Sender: No OFD packet to send [13:23:02]OFD Sender: No OFD packet to send [13:23:07]OFD Sender: No OFD packet to send [13:23:12]OFD Sender: No OFD packet to send [13:23:17]OFD Sender: No OFD packet to send [13:23:22]OFD Sender: No OFD packet to send [13:23:27]OFD Sender: No OFD packet to send [13:23:32]OFD Sender: No OFD packet to send [13:23:37]OFD Sender: No OFD packet to send [13:23:42]OFD Sender: No OFD packet to send [13:23:47]OFD Sender: No OFD packet to send [13:23:52]OFD Sender: No OFD packet to send [13:23:57]OFD Sender: No OFD packet to send [13:24:02]OFD Sender: No OFD packet to send [13:24:07]OFD Sender: No OFD packet to send [13:24:12]OFD Sender: No OFD packet to send [13:24:17]OFD Sender: No OFD packet to send [13:24:22]OFD Sender: No OFD packet to send [13:24:26]accept exits with 9 [13:24:26]New connection [13:24:26]New thread 3067370852 created [13:24:26]Thread 3067514212 joined [13:24:26]Waiting for new connection... [13:24:26] Sock 9.Parse request [13:24:26]Sock 9.Check first char [13:24:26]Sock 9.First char is OK [13:24:26]request: POST /json_proto HTTP/1.0 [13:24:26]Method: POST [13:24:26]URL: /json_proto [13:24:26]Method is POST - this is cgi request [13:24:26]url: /json_proto [13:24:26]query_string will be loaded in cgi processing [13:24:26]execute_cgi json_proto POST (null) [13:24:26]execute_cgi path=json_proto method=POST [13:24:26]POST find Content-Length [13:24:26]Host: 172.17.51.3:8080 [13:24:26]Content-Length: 679 [13:24:26]Content-Type: application/json [13:24:26] [13:24:26]POST finish read [13:24:26]Found Content-Length = 679 [13:24:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342733", "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" ] } } [13:24:26]execute_script... [13:24: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)342733", "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" ] } } [13:24:26]POST & json_proto [13:24:26]process_json_proto [13:24:26]json parsed OK: [13:24:26]protocol is kg_v1.0 [13:24:26]action value=close_receipt [13:24:26]process_action close_receipt [13:24:26]cmd_close_receipt [13:24:26]MH_GetDate [13:24:26]Write to MH i2c: F0 00 00 2A 85 9E [13:24:26]Write i2c OK [13:24:26]MH_I2C_Read... [13:24:26]Read from MH i2c: F0 [13:24:26]MH_I2C_Read... [13:24:26]Read from MH i2c: F0 09 00 [13:24:26]MH_I2C_Read... [13:24:26]Read from MH i2c: F0 09 00 2A 85 00 94 04 15 67 04 C1 95 66 7B [13:24:26]GetLastDocTimeStamp 1729430549 [13:24:26]current date 1729430676 [13:24:26]FM_GetShiftState [13:24:26]SAM_PROTO_GetShiftState [13:24:26]wFMCommunicate request_size=4 [13:24:26]MH_SAM_APDU [13:24:26]CAPDU: 80 13 01 00 [13:24:26]Write to MH i2c: E2 08 00 2B 85 80 13 01 00 00 00 00 00 2D [13:24:26]Write i2c OK [13:24:26]MH_I2C_Read... [13:24:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:24:26]Read from MH i2c: E2 [13:24:26]MH_I2C_Read... [13:24:26]Read from MH i2c: E2 0E 00 [13:24:26]MH_I2C_Read... [13:24:26]Read from MH i2c: E2 0E 00 2B 85 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 13 [13:24:26]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [13:24:26]wFMCommunicate OK [13:24:26]SAM_PROTO_GetShiftState done [13:24:26]FM_GetShiftState done [13:24:26]opened in 1729384718 [13:24:26]opened+sec_in_day 1729471118 [13:24:26]quantity*price = 100050 [13:24:26]sum+1 = 100052 [13:24:26]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 20.10.2024 13:24 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30341 ФПД: 256398163352980 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T132436&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30341&fm=256398163352980&tin=02508201610067®Number=0000000000186857&sum=100000 [13:24:27]StoreToDocumentArchive [13:24:27]shift 114 fd 30341 [13:24:27]save to /storage/0114/doc_00030341 [13:24:27]save last doc name /storage/0114/doc_00030341 to /storage/kkm_last_doc_name [13:24:27]save OK [13:24:27]Clear old archive folders... [13:24:27]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:24:27]tlvbuf is 00C87360 [13:24:27]SAM_PROTO_ClearQueue [13:24:27]wFMCommunicate request_size=4 [13:24:27]MH_SAM_APDU [13:24:27]CAPDU: 80 09 00 00 [13:24:27]Write to MH i2c: E2 08 00 38 85 80 09 00 00 00 00 00 00 2F [13:24:27]Write i2c OK [13:24:27]MH_I2C_Read... [13:24:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:24:27]Read from MH i2c: E2 [13:24:27]MH_I2C_Read... [13:24:27]Read from MH i2c: E2 03 00 [13:24:27]MH_I2C_Read... [13:24:27]Read from MH i2c: E2 03 00 38 85 00 90 00 31 [13:24:27]RAPDU: 90 00 [13:24:27]wFMCommunicate OK [13:24:27]SAM_PROTO_ClearQueue done [13:24:27]KKMCreateOFDPacket [13:24:27]OFDProtocolAddRootSTLVToBuf [13:24:27]FM_MakeSignedData [13:24:27]FM_MakeSignedData [13:24:27]SAM_PROTO_SignData [13:24:27]wFMCommunicate request_size=4 [13:24:27]MH_SAM_APDU [13:24:27]CAPDU: 80 0D 01 02 [13:24:27]Write to MH i2c: E2 08 00 39 85 80 0D 01 02 00 00 00 00 37 [13:24:27]Write i2c OK [13:24:27]MH_I2C_Read... [13:24:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:24:27]Read from MH i2c: E2 [13:24:27]MH_I2C_Read... [13:24:27]Read from MH i2c: E2 03 00 [13:24:27]MH_I2C_Read... [13:24:27]Read from MH i2c: E2 03 00 39 85 00 90 00 32 [13:24:27]RAPDU: 90 00 [13:24:27]wFMCommunicate OK [13:24:27]wFMCommunicate request_size=255 [13:24:27]MH_SAM_APDU [13:24: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 7B 00 00 00 F4 03 04 00 94 04 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 E9 31 59 72 [13:24:27]Write to MH i2c: E2 02 01 3A 85 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 94 04 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 E9 31 59 72 00 00 9F [13:24:27]Write i2c OK [13:24:27]MH_I2C_Read... [13:24:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:24:28]Read from MH i2c: E2 [13:24:28]MH_I2C_Read... [13:24:28]Read from MH i2c: E2 03 00 [13:24:28]MH_I2C_Read... [13:24:28]Read from MH i2c: E2 03 00 3A 85 00 90 00 33 [13:24:28]RAPDU: 90 00 [13:24:28]wFMCommunicate OK [13:24:28]wFMCommunicate request_size=7 [13:24:28]MH_SAM_APDU [13:24:28]CAPDU: 80 0D 02 02 02 9D 94 [13:24:28]Write to MH i2c: E2 0A 00 3B 85 80 0D 02 02 02 00 9D 94 00 00 6F [13:24:28]Write i2c OK [13:24:28]MH_I2C_Read... [13:24:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:24:28]Read from MH i2c: E2 [13:24:28]MH_I2C_Read... [13:24:28]Read from MH i2c: E2 03 00 [13:24:28]MH_I2C_Read... [13:24:28]Read from MH i2c: E2 03 00 3B 85 00 90 00 34 [13:24:28]RAPDU: 90 00 [13:24:28]wFMCommunicate OK [13:24:28]wFMCommunicate request_size=4 [13:24:28]MH_SAM_APDU [13:24:28]CAPDU: 80 0D 03 02 [13:24:28]Write to MH i2c: E2 08 00 3C 85 80 0D 03 02 00 00 00 00 3C [13:24:28]Write i2c OK [13:24:28]MH_I2C_Read... [13:24:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:24:28]Read from MH i2c: E2 [13:24:28]MH_I2C_Read... [13:24:28]Read from MH i2c: E2 0B 00 [13:24:28]MH_I2C_Read... [13:24:28]Read from MH i2c: E2 0B 00 3C 85 00 EE 00 0D F1 F0 44 5A 04 90 00 BB [13:24:28]RAPDU: EE 00 0D F1 F0 44 5A 04 90 00 [13:24:28]wFMCommunicate OK [13:24:28]SAM_PROTO_SignData done [13:24:28]FM_MakeSignedData done [13:24:28]CreateOFDProtocolMessage [13:24:28]wFMCommunicate request_size=4 [13:24:28]MH_SAM_APDU [13:24:28]CAPDU: 80 11 00 00 [13:24:28]Write to MH i2c: E2 08 00 3D 85 80 11 00 00 00 00 00 00 3C [13:24:28]Write i2c OK [13:24:28]MH_I2C_Read... [13:24:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:24:28]Read from MH i2c: E2 [13:24:28]MH_I2C_Read... [13:24:28]Read from MH i2c: E2 17 00 [13:24:28]MH_I2C_Read... [13:24:28]Read from MH i2c: E2 17 00 3D 85 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 8A [13:24: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:24:28]wFMCommunicate OK [13:24:28]CreateOFDProtocolMessage done [13:24:28]OFDSenderStorePacket 30341 [13:24:28]StoreOFDPacket docnum=30341 [13:24: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 0C 01 00 00 AD 83 04 01 D6 8B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 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 94 04 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 E9 31 59 72 9D 94 EE 00 0D F1 F0 44 5A 04 [13:24:28]CheckFolder [13:24:28]dirname=/storage/ofd_packets [13:24:28]CheckFolder done [13:24:28]ProducePacketName [13:24:28]name=ofd_packets/00030341 [13:24:28]NVStorageSaveData ofd_packets/00030341 [13:24:28]File name is /storage/ofd_packets/00030341 [13:24:28]Write 298 bytes [13:24:28]NVStorageSaveData done [13:24:28]OFDSenderStorePacket done [13:24:28]KKMCreateOFDPacket done [13:24:28]NVStorageSaveData kkm_last_timestamp [13:24:28]File name is /storage/kkm_last_timestamp [13:24:28]Write 4 bytes [13:24:28]NVStorageSaveData done [13:24:28]ExternCall_PrintAddStr [13:24:28]wPrintStart [13:24:28]Write to MH i2c: 01 00 00 3E 85 C3 [13:24:28]Write i2c OK [13:24:28]MH_I2C_Read... [13:24:28]Read from MH i2c: 01 [13:24:28]MH_I2C_Read... [13:24:28]Read from MH i2c: 01 07 00 [13:24:28]MH_I2C_Read... [13:24:28]Read from MH i2c: 01 07 00 3E 85 00 00 00 00 00 FF 0F D8 [13:24:28]RasterBufferAndPrint [13:24:28]line Счет N : (1)342733 [13:24:28]line ИНН: 02508201610067 [13:24:28]line Контрольно-Кассовый Чек [13:24:28]line ПРОДАЖА [13:24:28]line ТРК (МРК, ГНК) : 54 [13:24:28]line Товар: 2710194210 [13:24:28]line ДТ-К-2 [13:24:28]line 13.130 * 76.20 [13:24:28]line = 1000.51 [13:24:28]line НДС 12% НСП 1% [13:24:28]line > о реализуемом товаре [13:24:28]line ОКРУГЛЕНИЕ: -0.51 [13:24:28]line ИТОГО: 1000.00 [13:24:28]line Внесено: 1000.00 [13:24:28]line СДАЧА: 0.00 [13:24:28]line НСП 1% : 8.85 [13:24:28]line НДС 12% : 106.25 [13:24:28]line Наличными: 1000.00 [13:24:28]line Безнал.: 0.00 [13:24:28]line Место: АЗС № 78 "Партнер Нефть" [13:24:28]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [13:24:28]line СНО: Общий режим [13:24:28]line Чек 123 20.10.2024 13:24 [13:24:28]line Смена: 114 ФФД: 1.0 [13:24:28]line ЗНМ: 0300000137 [13:24:28]line РНМ: 0000000000186857 [13:24:28]line Версия ККМ: v1.0 [13:24:28]line ФМ: 0000000002094219 [13:24:28]line ФД: 30341 [13:24:28]line ФПД: 256398163352980 [13:24:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T132436&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30341&fm=256398163352980&tin=02508201610067®Number=0000000000186857&sum=100000 [13:24:28]OFD Sender: Processing packet 30341 [packets to send 10, broken 9] [13:24:28]ProducePacketName [13:24:28]name=ofd_packets/00030341 [13:24:28]OFD Sender: To server: pG, [13:24:28]CommunicateWithHost lk.salyk.kg:30040 [13:24:28]ConnectInit lk.salyk.kg [13:24:28]written 0, free lines is 4095 [13:24:28]Connected sock=10 [13:24: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 0C 01 00 00 AD 83 04 01 D6 8B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 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 94 04 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 E9 31 59 72 9D 94 EE 00 0D F1 F0 44 5A 04 [13:24: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 49 83 47 00 6A 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 85 76 00 00 F4 03 04 00 17 AF 14 67 B6 04 01 00 00 E0 3E C3 34 26 09 D9 70 [13:24:28]CommunicateWithHost err = 0 [13:24:28]CheckOFDResponse [13:24:28]1017 (14) - 77093643461234 [13:24:28]1041 (16) - 0000000002094219 [13:24:28]1040 (4) - 30341 [13:24:28]1012 (4) - 20.10.2024 07:19 [13:24:28]1206 (1) - 0 [13:24:28]OFD Sender: Remove packet 30341 [13:24:28]ProducePacketName [13:24:28]name=ofd_packets/00030341 [13:24:28]NVStorageDeleteData [13:24:28]Write to MH i2c: 01 00 00 69 85 EE [13:24:28]Write i2c OK [13:24:28]MH_I2C_Read... [13:24:28]Read from MH i2c: 01 [13:24:28]MH_I2C_Read... [13:24:28]Read from MH i2c: 01 07 00 [13:24:28]MH_I2C_Read... [13:24:28]Read from MH i2c: 01 07 00 69 85 00 00 00 00 00 E6 0C E7 [13:24:28]RasterBufferAndPrint [13:24:28]line [13:24:28]line [13:24:28]line [13:24:28]line [13:24:28]line [13:24:28]written 0, free lines is 3309 [13:24:28]MH_Cut [13:24:28]Write to MH i2c: D1 01 00 70 85 01 C7 [13:24:28]Write i2c OK [13:24:28]MH_I2C_Read... [13:24:28]Read from MH i2c: D1 [13:24:28]MH_I2C_Read... [13:24:28]Read from MH i2c: D1 01 00 [13:24:28]MH_I2C_Read... [13:24:28]Read from MH i2c: D1 01 00 70 85 00 C6 [13:24:28]Write to MH i2c: 01 00 00 71 85 F6 [13:24:28]Write i2c OK [13:24:28]MH_I2C_Read... [13:24:29]OFD Sender: No OFD packet to send [13:24:29]*** Cut start [13:24:29]*** Partial cut [13:24:29]*** CUTSNS_PIN = 1 [13:24:29]*** CUTSNS_PIN = 0 [13:24:29]*** Brake cut motor [13:24:30]Read from MH i2c: 01 [13:24:30]MH_I2C_Read... [13:24:30]*** Stop cut motor [13:24:30]*** Cut end [13:24:30]Read from MH i2c: 01 07 00 [13:24:30]MH_I2C_Read... [13:24:30]Read from MH i2c: 01 07 00 71 85 00 00 00 00 00 FF 0F 0B [13:24:30]process_action close_receipt done [13:24:30]requested_data is exist [13:24:30]produce_requested_data [13:24:30]requested_item fm.sn is exist - process it [13:24:30]wFMCommunicate request_size=4 [13:24:30]MH_SAM_APDU [13:24:30]CAPDU: 80 11 00 00 [13:24:30]Write to MH i2c: E2 08 00 72 85 80 11 00 00 00 00 00 00 71 [13:24:30]Write i2c OK [13:24:30]MH_I2C_Read... [13:24:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:24:30]Read from MH i2c: E2 [13:24:30]MH_I2C_Read... [13:24:30]Read from MH i2c: E2 17 00 [13:24:30]MH_I2C_Read... [13:24:30]Read from MH i2c: E2 17 00 72 85 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 BF [13:24: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:24:30]wFMCommunicate OK [13:24:30]requested_item fd.num is exist - process it [13:24:30]SAM_PROTO_GetFieldsCounters [13:24:30]wFMCommunicate request_size=4 [13:24:30]MH_SAM_APDU [13:24:30]CAPDU: 80 13 00 00 [13:24:30]Write to MH i2c: E2 08 00 73 85 80 13 00 00 00 00 00 00 74 [13:24:30]Write i2c OK [13:24:30]MH_I2C_Read... [13:24:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:24:30]Read from MH i2c: E2 [13:24:30]MH_I2C_Read... [13:24:30]Read from MH i2c: E2 62 00 [13:24:30]MH_I2C_Read... [13:24:30]Read from MH i2c: E2 62 00 73 85 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 78 [13:24: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 85 76 00 00 0E 04 04 00 72 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 [13:24:30]wFMCommunicate OK [13:24:30]SAM_PROTO_GetFieldsCounters done [13:24:30]requested_item shift.num is exist - process it [13:24:30]requested_item shift.opened is exist - process it [13:24:30]req_shift_opened [13:24:30]FM_GetShiftState [13:24:30]SAM_PROTO_GetShiftState [13:24:30]wFMCommunicate request_size=4 [13:24:30]MH_SAM_APDU [13:24:30]CAPDU: 80 13 01 00 [13:24:30]Write to MH i2c: E2 08 00 74 85 80 13 01 00 00 00 00 00 76 [13:24:30]Write i2c OK [13:24:30]MH_I2C_Read... [13:24:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:24:30]Read from MH i2c: E2 [13:24:30]MH_I2C_Read... [13:24:30]Read from MH i2c: E2 0E 00 [13:24:30]MH_I2C_Read... [13:24:30]Read from MH i2c: E2 0E 00 74 85 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 5C [13:24:30]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [13:24:30]wFMCommunicate OK [13:24:30]SAM_PROTO_GetShiftState done [13:24:30]FM_GetShiftState done [13:24:30]req_shift_opened done [13:24:30]requested_item shift.open_date is exist - process it [13:24:30]req_shift_open_date [13:24:30]req_shift_open_date done [13:24:30]produce_requested_data done [13:24:30]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30341,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [13:24:30]process_action_free close_receipt [13:24:30]json_value_free [13:24:30]json_value_free done [13:24:30]process_json_proto returns [13:24:30]Send response to host [13:24:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30341,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [13:24:30]free response buf [13:24:30]execute_script done [13:24:30]execute_script returns [13:24:30]free content buf [13:24:30]Sock 9.Close socket [13:24:30]Sock 9.Thread stoped [13:24:34]OFD Sender: No OFD packet to send [13:24:39]OFD Sender: No OFD packet to send [13:24:44]OFD Sender: No OFD packet to send [13:24:49]OFD Sender: No OFD packet to send [13:24:54]OFD Sender: No OFD packet to send [13:24:59]OFD Sender: No OFD packet to send [13:25:04]OFD Sender: No OFD packet to send [13:25:09]OFD Sender: No OFD packet to send [13:25:14]OFD Sender: No OFD packet to send [13:25:19]OFD Sender: No OFD packet to send [13:25:24]OFD Sender: No OFD packet to send [13:25:29]OFD Sender: No OFD packet to send [13:25:34]OFD Sender: No OFD packet to send [13:25:39]OFD Sender: No OFD packet to send [13:25:44]OFD Sender: No OFD packet to send [13:25:49]OFD Sender: No OFD packet to send [13:25:54]OFD Sender: No OFD packet to send [13:25:59]OFD Sender: No OFD packet to send [13:26:04]OFD Sender: No OFD packet to send [13:26:09]OFD Sender: No OFD packet to send [13:26:14]OFD Sender: No OFD packet to send [13:26:19]OFD Sender: No OFD packet to send [13:26:24]OFD Sender: No OFD packet to send [13:26:29]OFD Sender: No OFD packet to send [13:26:34]OFD Sender: No OFD packet to send [13:26:39]OFD Sender: No OFD packet to send [13:26:44]OFD Sender: No OFD packet to send [13:26:49]OFD Sender: No OFD packet to send [13:26:54]OFD Sender: No OFD packet to send [13:26:59]OFD Sender: No OFD packet to send [13:27:04]OFD Sender: No OFD packet to send [13:27:09]OFD Sender: No OFD packet to send [13:27:14]OFD Sender: No OFD packet to send [13:27:19]OFD Sender: No OFD packet to send [13:27:24]OFD Sender: No OFD packet to send [13:27:29]OFD Sender: No OFD packet to send [13:27:34]OFD Sender: No OFD packet to send [13:27:39]OFD Sender: No OFD packet to send [13:27:44]OFD Sender: No OFD packet to send [13:27:49]OFD Sender: No OFD packet to send [13:27:52]accept exits with 7 [13:27:52]New connection [13:27:52]New thread 3067514212 created [13:27:52]Thread 3067370852 joined [13:27:52]Waiting for new connection... [13:27:52] Sock 7.Parse request [13:27:52]Sock 7.Check first char [13:27:52]Sock 7.First char is OK [13:27:52]request: POST /json_proto HTTP/1.0 [13:27:52]Method: POST [13:27:52]URL: /json_proto [13:27:52]Method is POST - this is cgi request [13:27:52]url: /json_proto [13:27:52]query_string will be loaded in cgi processing [13:27:52]execute_cgi json_proto POST (null) [13:27:52]execute_cgi path=json_proto method=POST [13:27:52]POST find Content-Length [13:27:52]Host: 172.17.51.3:8080 [13:27:52]Content-Length: 677 [13:27:52]Content-Type: application/json [13:27:52] [13:27:52]POST finish read [13:27:52]Found Content-Length = 677 [13:27:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342734", "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" ] } } [13:27:52]execute_script... [13:27: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)342734", "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" ] } } [13:27:52]POST & json_proto [13:27:52]process_json_proto [13:27:52]json parsed OK: [13:27:52]protocol is kg_v1.0 [13:27:52]action value=close_receipt [13:27:52]process_action close_receipt [13:27:52]cmd_close_receipt [13:27:52]MH_GetDate [13:27:52]Write to MH i2c: F0 00 00 75 85 E9 [13:27:52]Write i2c OK [13:27:52]MH_I2C_Read... [13:27:52]Read from MH i2c: F0 [13:27:52]MH_I2C_Read... [13:27:52]Read from MH i2c: F0 09 00 [13:27:52]MH_I2C_Read... [13:27:52]Read from MH i2c: F0 09 00 75 85 00 62 05 15 67 04 C1 95 66 95 [13:27:52]GetLastDocTimeStamp 1729430676 [13:27:52]current date 1729430882 [13:27:52]FM_GetShiftState [13:27:52]SAM_PROTO_GetShiftState [13:27:52]wFMCommunicate request_size=4 [13:27:52]MH_SAM_APDU [13:27:52]CAPDU: 80 13 01 00 [13:27:52]Write to MH i2c: E2 08 00 76 85 80 13 01 00 00 00 00 00 78 [13:27:52]Write i2c OK [13:27:52]MH_I2C_Read... [13:27:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:27:52]Read from MH i2c: E2 [13:27:52]MH_I2C_Read... [13:27:52]Read from MH i2c: E2 0E 00 [13:27:52]MH_I2C_Read... [13:27:52]Read from MH i2c: E2 0E 00 76 85 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 5E [13:27:52]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [13:27:52]wFMCommunicate OK [13:27:52]SAM_PROTO_GetShiftState done [13:27:52]FM_GetShiftState done [13:27:52]opened in 1729384718 [13:27:52]opened+sec_in_day 1729471118 [13:27:52]quantity*price = 40006 [13:27:52]sum+1 = 40007 [13:27: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 СНО: Общий режим Чек 124 20.10.2024 13:28 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30342 ФПД: 118300845522604 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T132802&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30342&fm=118300845522604&tin=02508201610067®Number=0000000000186857&sum=40000 [13:27:53]StoreToDocumentArchive [13:27:53]shift 114 fd 30342 [13:27:53]save to /storage/0114/doc_00030342 [13:27:53]save last doc name /storage/0114/doc_00030342 to /storage/kkm_last_doc_name [13:27:53]save OK [13:27:53]Clear old archive folders... [13:27:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:27:53]tlvbuf is 00B25DB0 [13:27:53]SAM_PROTO_ClearQueue [13:27:53]wFMCommunicate request_size=4 [13:27:53]MH_SAM_APDU [13:27:53]CAPDU: 80 09 00 00 [13:27:53]Write to MH i2c: E2 08 00 83 85 80 09 00 00 00 00 00 00 7A [13:27:53]Write i2c OK [13:27:53]MH_I2C_Read... [13:27:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:27:53]Read from MH i2c: E2 [13:27:53]MH_I2C_Read... [13:27:53]Read from MH i2c: E2 03 00 [13:27:53]MH_I2C_Read... [13:27:53]Read from MH i2c: E2 03 00 83 85 00 90 00 7C [13:27:53]RAPDU: 90 00 [13:27:53]wFMCommunicate OK [13:27:53]SAM_PROTO_ClearQueue done [13:27:53]KKMCreateOFDPacket [13:27:53]OFDProtocolAddRootSTLVToBuf [13:27:53]FM_MakeSignedData [13:27:53]FM_MakeSignedData [13:27:53]SAM_PROTO_SignData [13:27:53]wFMCommunicate request_size=4 [13:27:53]MH_SAM_APDU [13:27:53]CAPDU: 80 0D 01 02 [13:27:53]Write to MH i2c: E2 08 00 84 85 80 0D 01 02 00 00 00 00 82 [13:27:53]Write i2c OK [13:27:53]MH_I2C_Read... [13:27:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:27:53]Read from MH i2c: E2 [13:27:53]MH_I2C_Read... [13:27:53]Read from MH i2c: E2 03 00 [13:27:53]MH_I2C_Read... [13:27:53]Read from MH i2c: E2 03 00 84 85 00 90 00 7D [13:27:53]RAPDU: 90 00 [13:27:53]wFMCommunicate OK [13:27:53]wFMCommunicate request_size=255 [13:27:53]MH_SAM_APDU [13:27: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 7C 00 00 00 F4 03 04 00 62 05 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 6B [13:27:53]Write to MH i2c: E2 02 01 85 85 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 62 05 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 6B 00 00 1A [13:27:53]Write i2c OK [13:27:53]MH_I2C_Read... [13:27:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:27:54]Read from MH i2c: E2 [13:27:54]MH_I2C_Read... [13:27:54]Read from MH i2c: E2 03 00 [13:27:54]MH_I2C_Read... [13:27:54]Read from MH i2c: E2 03 00 85 85 00 90 00 7E [13:27:54]RAPDU: 90 00 [13:27:54]wFMCommunicate OK [13:27:54]wFMCommunicate request_size=10 [13:27:54]MH_SAM_APDU [13:27:54]CAPDU: 80 0D 02 02 05 98 0F DF BE AC [13:27:54]Write to MH i2c: E2 0D 00 86 85 80 0D 02 02 05 00 98 0F DF BE AC 00 00 7F [13:27:54]Write i2c OK [13:27:54]MH_I2C_Read... [13:27:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:27:54]Read from MH i2c: E2 [13:27:54]MH_I2C_Read... [13:27:54]Read from MH i2c: E2 03 00 [13:27:54]MH_I2C_Read... [13:27:54]Read from MH i2c: E2 03 00 86 85 00 90 00 7F [13:27:54]RAPDU: 90 00 [13:27:54]wFMCommunicate OK [13:27:54]wFMCommunicate request_size=4 [13:27:54]MH_SAM_APDU [13:27:54]CAPDU: 80 0D 03 02 [13:27:54]Write to MH i2c: E2 08 00 87 85 80 0D 03 02 00 00 00 00 87 [13:27:54]Write i2c OK [13:27:54]MH_I2C_Read... [13:27:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:27:54]Read from MH i2c: E2 [13:27:54]MH_I2C_Read... [13:27:54]Read from MH i2c: E2 0B 00 [13:27:54]MH_I2C_Read... [13:27:54]Read from MH i2c: E2 0B 00 87 85 00 0C F5 9C A5 FB 65 5A 0B 90 00 8F [13:27:54]RAPDU: 0C F5 9C A5 FB 65 5A 0B 90 00 [13:27:54]wFMCommunicate OK [13:27:54]SAM_PROTO_SignData done [13:27:54]FM_MakeSignedData done [13:27:54]CreateOFDProtocolMessage [13:27:54]wFMCommunicate request_size=4 [13:27:54]MH_SAM_APDU [13:27:54]CAPDU: 80 11 00 00 [13:27:54]Write to MH i2c: E2 08 00 88 85 80 11 00 00 00 00 00 00 87 [13:27:54]Write i2c OK [13:27:54]MH_I2C_Read... [13:27:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:27:54]Read from MH i2c: E2 [13:27:54]MH_I2C_Read... [13:27:54]Read from MH i2c: E2 17 00 [13:27:54]MH_I2C_Read... [13:27:54]Read from MH i2c: E2 17 00 88 85 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 D5 [13:27:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [13:27:54]wFMCommunicate OK [13:27:54]CreateOFDProtocolMessage done [13:27:54]OFDSenderStorePacket 30342 [13:27:54]StoreOFDPacket docnum=30342 [13:27: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 BA 40 07 01 00 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 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 62 05 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 6B 98 0F DF BE AC 0C F5 9C A5 FB 65 5A 0B [13:27:54]CheckFolder [13:27:54]dirname=/storage/ofd_packets [13:27:54]CheckFolder done [13:27:54]ProducePacketName [13:27:54]name=ofd_packets/00030342 [13:27:54]NVStorageSaveData ofd_packets/00030342 [13:27:54]File name is /storage/ofd_packets/00030342 [13:27:54]Write 301 bytes [13:27:54]NVStorageSaveData done [13:27:54]OFDSenderStorePacket done [13:27:54]KKMCreateOFDPacket done [13:27:54]NVStorageSaveData kkm_last_timestamp [13:27:54]File name is /storage/kkm_last_timestamp [13:27:54]Write 4 bytes [13:27:54]NVStorageSaveData done [13:27:54]ExternCall_PrintAddStr [13:27:54]wPrintStart [13:27:54]Write to MH i2c: 01 00 00 89 85 0E [13:27:54]Write i2c OK [13:27:54]MH_I2C_Read... [13:27:54]Read from MH i2c: 01 [13:27:54]MH_I2C_Read... [13:27:54]Read from MH i2c: 01 07 00 [13:27:54]MH_I2C_Read... [13:27:54]Read from MH i2c: 01 07 00 89 85 00 00 00 00 00 FF 0F 23 [13:27:54]RasterBufferAndPrint [13:27:54]line Счет N : (1)342734 [13:27:54]line ИНН: 02508201610067 [13:27:54]line Контрольно-Кассовый Чек [13:27:54]line ПРОДАЖА [13:27:54]line ТРК (МРК, ГНК) : 63 [13:27:54]line Товар: 2710124130 [13:27:54]line Аи-92-К-2 [13:27:54]line 5.980 * 66.90 [13:27:54]line = 400.06 [13:27:54]line НДС 12% НСП 1% [13:27:54]line > о реализуемом товаре [13:27:54]line ОКРУГЛЕНИЕ: -0.06 [13:27:54]line ИТОГО: 400.00 [13:27:54]line Внесено: 400.00 [13:27:54]line СДАЧА: 0.00 [13:27:54]line НСП 1% : 3.54 [13:27:54]line НДС 12% : 42.48 [13:27:54]line Наличными: 400.00 [13:27:54]line Безнал.: 0.00 [13:27:54]line Место: АЗС № 78 "Партнер Нефть" [13:27:54]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [13:27:54]line СНО: Общий режим [13:27:54]line Чек 124 20.10.2024 13:28 [13:27:54]line Смена: 114 ФФД: 1.0 [13:27:54]line ЗНМ: 0300000137 [13:27:54]line РНМ: 0000000000186857 [13:27:54]line Версия ККМ: v1.0 [13:27:54]line ФМ: 0000000002094219 [13:27:54]line ФД: 30342 [13:27:54]line ФПД: 118300845522604 [13:27:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T132802&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30342&fm=118300845522604&tin=02508201610067®Number=0000000000186857&sum=40000 [13:27:54]OFD Sender: Processing packet 30342 [packets to send 10, broken 9] [13:27:54]ProducePacketName [13:27:54]name=ofd_packets/00030342 [13:27:54]OFD Sender: To server: pG, [13:27:54]CommunicateWithHost lk.salyk.kg:30040 [13:27:54]ConnectInit lk.salyk.kg [13:27:54]written 0, free lines is 4095 [13:27:54]Connected sock=10 [13:27: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 BA 40 07 01 00 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 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 62 05 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 6B 98 0F DF BE AC 0C F5 9C A5 FB 65 5A 0B [13:27: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 C8 E0 47 00 69 93 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 86 76 00 00 F4 03 04 00 E6 AF 14 67 B6 04 01 00 00 51 AD CC 00 F3 12 0D 16 [13:27:55]CommunicateWithHost err = 0 [13:27:55]CheckOFDResponse [13:27:55]1017 (14) - 77093643461234 [13:27:55]1041 (16) - 0000000002094219 [13:27:55]1040 (4) - 30342 [13:27:55]1012 (4) - 20.10.2024 07:23 [13:27:55]1206 (1) - 0 [13:27:55]OFD Sender: Remove packet 30342 [13:27:55]ProducePacketName [13:27:55]name=ofd_packets/00030342 [13:27:55]NVStorageDeleteData [13:27:55]Write to MH i2c: 01 00 00 B4 85 39 [13:27:55]Write i2c OK [13:27:55]MH_I2C_Read... [13:27:55]Read from MH i2c: 01 [13:27:55]MH_I2C_Read... [13:27:55]Read from MH i2c: 01 07 00 [13:27:55]MH_I2C_Read... [13:27:55]Read from MH i2c: 01 07 00 B4 85 00 00 00 00 00 E7 0C 33 [13:27:55]RasterBufferAndPrint [13:27:55]line [13:27:55]line [13:27:55]line [13:27:55]line [13:27:55]line [13:27:55]written 0, free lines is 3313 [13:27:55]MH_Cut [13:27:55]Write to MH i2c: D1 01 00 BB 85 01 12 [13:27:55]Write i2c OK [13:27:55]MH_I2C_Read... [13:27:55]Read from MH i2c: D1 [13:27:55]MH_I2C_Read... [13:27:55]Read from MH i2c: D1 01 00 [13:27:55]MH_I2C_Read... [13:27:55]Read from MH i2c: D1 01 00 BB 85 00 11 [13:27:55]Write to MH i2c: 01 00 00 BC 85 41 [13:27:55]Write i2c OK [13:27:55]MH_I2C_Read... [13:27:55]OFD Sender: No OFD packet to send [13:27:55]*** Cut start [13:27:55]*** Partial cut [13:27:55]*** CUTSNS_PIN = 1 [13:27:55]*** CUTSNS_PIN = 0 [13:27:56]*** Brake cut motor [13:27:56]Read from MH i2c: 01 [13:27:56]MH_I2C_Read... [13:27:56]*** Stop cut motor [13:27:56]*** Cut end [13:27:56]Read from MH i2c: 01 07 00 [13:27:56]MH_I2C_Read... [13:27:56]Read from MH i2c: 01 07 00 BC 85 00 00 00 00 00 FF 0F 56 [13:27:56]process_action close_receipt done [13:27:56]requested_data is exist [13:27:56]produce_requested_data [13:27:56]requested_item fm.sn is exist - process it [13:27:56]wFMCommunicate request_size=4 [13:27:56]MH_SAM_APDU [13:27:56]CAPDU: 80 11 00 00 [13:27:56]Write to MH i2c: E2 08 00 BD 85 80 11 00 00 00 00 00 00 BC [13:27:56]Write i2c OK [13:27:56]MH_I2C_Read... [13:27:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:27:56]Read from MH i2c: E2 [13:27:56]MH_I2C_Read... [13:27:56]Read from MH i2c: E2 17 00 [13:27:56]MH_I2C_Read... [13:27:56]Read from MH i2c: E2 17 00 BD 85 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 0A [13:27:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [13:27:56]wFMCommunicate OK [13:27:56]requested_item fd.num is exist - process it [13:27:56]SAM_PROTO_GetFieldsCounters [13:27:56]wFMCommunicate request_size=4 [13:27:56]MH_SAM_APDU [13:27:56]CAPDU: 80 13 00 00 [13:27:56]Write to MH i2c: E2 08 00 BE 85 80 13 00 00 00 00 00 00 BF [13:27:56]Write i2c OK [13:27:56]MH_I2C_Read... [13:27:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:27:56]Read from MH i2c: E2 [13:27:56]MH_I2C_Read... [13:27:56]Read from MH i2c: E2 62 00 [13:27:56]MH_I2C_Read... [13:27:56]Read from MH i2c: E2 62 00 BE 85 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 C7 [13:27: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 86 76 00 00 0E 04 04 00 72 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 [13:27:56]wFMCommunicate OK [13:27:56]SAM_PROTO_GetFieldsCounters done [13:27:56]requested_item shift.num is exist - process it [13:27:56]requested_item shift.opened is exist - process it [13:27:56]req_shift_opened [13:27:56]FM_GetShiftState [13:27:56]SAM_PROTO_GetShiftState [13:27:56]wFMCommunicate request_size=4 [13:27:56]MH_SAM_APDU [13:27:56]CAPDU: 80 13 01 00 [13:27:56]Write to MH i2c: E2 08 00 BF 85 80 13 01 00 00 00 00 00 C1 [13:27:56]Write i2c OK [13:27:56]MH_I2C_Read... [13:27:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:27:56]Read from MH i2c: E2 [13:27:56]MH_I2C_Read... [13:27:56]Read from MH i2c: E2 0E 00 [13:27:56]MH_I2C_Read... [13:27:56]Read from MH i2c: E2 0E 00 BF 85 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 A7 [13:27:56]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [13:27:56]wFMCommunicate OK [13:27:56]SAM_PROTO_GetShiftState done [13:27:56]FM_GetShiftState done [13:27:56]req_shift_opened done [13:27:56]requested_item shift.open_date is exist - process it [13:27:56]req_shift_open_date [13:27:56]req_shift_open_date done [13:27:56]produce_requested_data done [13:27:56]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30342,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [13:27:56]process_action_free close_receipt [13:27:56]json_value_free [13:27:56]json_value_free done [13:27:56]process_json_proto returns [13:27:56]Send response to host [13:27:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30342,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [13:27:56]free response buf [13:27:56]execute_script done [13:27:56]execute_script returns [13:27:56]free content buf [13:27:56]Sock 7.Close socket [13:27:56]Sock 7.Thread stoped [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:05]OFD Sender: No OFD packet to send [13:31:10]OFD Sender: No OFD packet to send [13:31:15]OFD Sender: No OFD packet to send [13:31:20]OFD Sender: No OFD packet to send [13:31:25]OFD Sender: No OFD packet to send [13:31:30]OFD Sender: No OFD packet to send [13:31:35]OFD Sender: No OFD packet to send [13:31:40]OFD Sender: No OFD packet to send [13:31:45]OFD Sender: No OFD packet to send [13:31:50]OFD Sender: No OFD packet to send [13:31:55]OFD Sender: No OFD packet to send [13:32:00]OFD Sender: No OFD packet to send [13:32:05]OFD Sender: No OFD packet to send [13:32:10]OFD Sender: No OFD packet to send [13:32:15]OFD Sender: No OFD packet to send [13:32:20]OFD Sender: No OFD packet to send [13:32:25]OFD Sender: No OFD packet to send [13:32:30]OFD Sender: No OFD packet to send [13:32:35]OFD Sender: No OFD packet to send [13:32:40]OFD Sender: No OFD packet to send [13:32:45]OFD Sender: No OFD packet to send [13:32:50]OFD Sender: No OFD packet to send [13:32: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:05]OFD Sender: No OFD packet to send [13:35:10]OFD Sender: No OFD packet to send [13:35:15]OFD Sender: No OFD packet to send [13:35:20]OFD Sender: No OFD packet to send [13:35:25]OFD Sender: No OFD packet to send [13:35:30]OFD Sender: No OFD packet to send [13:35:35]OFD Sender: No OFD packet to send [13:35:40]OFD Sender: No OFD packet to send [13:35:43]accept exits with 9 [13:35:43]New connection [13:35:43]New thread 3067370852 created [13:35:43]Thread 3067514212 joined [13:35:43]Waiting for new connection... [13:35:43] Sock 9.Parse request [13:35:43]Sock 9.Check first char [13:35:43]Sock 9.First char is OK [13:35:43]request: POST /json_proto HTTP/1.0 [13:35:43]Method: POST [13:35:43]URL: /json_proto [13:35:43]Method is POST - this is cgi request [13:35:43]url: /json_proto [13:35:43]query_string will be loaded in cgi processing [13:35:43]execute_cgi json_proto POST (null) [13:35:43]execute_cgi path=json_proto method=POST [13:35:43]POST find Content-Length [13:35:43]Host: 172.17.51.3:8080 [13:35:43]Content-Length: 677 [13:35:43]Content-Type: application/json [13:35:43] [13:35:43]POST finish read [13:35:43]Found Content-Length = 677 [13:35:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342736", "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" ] } } [13:35:43]execute_script... [13:35: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)342736", "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" ] } } [13:35:43]POST & json_proto [13:35:43]process_json_proto [13:35:43]json parsed OK: [13:35:43]protocol is kg_v1.0 [13:35:43]action value=close_receipt [13:35:43]process_action close_receipt [13:35:43]cmd_close_receipt [13:35:43]MH_GetDate [13:35:43]Write to MH i2c: F0 00 00 C0 85 34 [13:35:43]Write i2c OK [13:35:43]MH_I2C_Read... [13:35:43]Read from MH i2c: F0 [13:35:43]MH_I2C_Read... [13:35:43]Read from MH i2c: F0 09 00 [13:35:43]MH_I2C_Read... [13:35:43]Read from MH i2c: F0 09 00 C0 85 00 38 07 15 67 04 C1 95 66 B8 [13:35:43]GetLastDocTimeStamp 1729430882 [13:35:43]current date 1729431352 [13:35:43]FM_GetShiftState [13:35:43]SAM_PROTO_GetShiftState [13:35:43]wFMCommunicate request_size=4 [13:35:43]MH_SAM_APDU [13:35:43]CAPDU: 80 13 01 00 [13:35:43]Write to MH i2c: E2 08 00 C1 85 80 13 01 00 00 00 00 00 C3 [13:35:43]Write i2c OK [13:35:43]MH_I2C_Read... [13:35:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:35:43]Read from MH i2c: E2 [13:35:43]MH_I2C_Read... [13:35:43]Read from MH i2c: E2 0E 00 [13:35:43]MH_I2C_Read... [13:35:43]Read from MH i2c: E2 0E 00 C1 85 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 A9 [13:35:43]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [13:35:43]wFMCommunicate OK [13:35:43]SAM_PROTO_GetShiftState done [13:35:43]FM_GetShiftState done [13:35:43]opened in 1729384718 [13:35:43]opened+sec_in_day 1729471118 [13:35:43]quantity*price = 50041 [13:35:43]sum+1 = 50042 [13:35:43]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 СНО: Общий режим Чек 125 20.10.2024 13:35 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30343 ФПД: 52307344959372 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T133552&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30343&fm=52307344959372&tin=02508201610067®Number=0000000000186857&sum=50000 [13:35:44]StoreToDocumentArchive [13:35:44]shift 114 fd 30343 [13:35:44]save to /storage/0114/doc_00030343 [13:35:44]save last doc name /storage/0114/doc_00030343 to /storage/kkm_last_doc_name [13:35:44]save OK [13:35:44]Clear old archive folders... [13:35:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:35:44]tlvbuf is 00A9FF10 [13:35:44]SAM_PROTO_ClearQueue [13:35:44]wFMCommunicate request_size=4 [13:35:44]MH_SAM_APDU [13:35:44]CAPDU: 80 09 00 00 [13:35:44]Write to MH i2c: E2 08 00 CE 85 80 09 00 00 00 00 00 00 C5 [13:35:44]Write i2c OK [13:35:44]MH_I2C_Read... [13:35:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:35:44]Read from MH i2c: E2 [13:35:44]MH_I2C_Read... [13:35:44]Read from MH i2c: E2 03 00 [13:35:44]MH_I2C_Read... [13:35:44]Read from MH i2c: E2 03 00 CE 85 00 90 00 C7 [13:35:44]RAPDU: 90 00 [13:35:44]wFMCommunicate OK [13:35:44]SAM_PROTO_ClearQueue done [13:35:44]KKMCreateOFDPacket [13:35:44]OFDProtocolAddRootSTLVToBuf [13:35:44]FM_MakeSignedData [13:35:44]FM_MakeSignedData [13:35:44]SAM_PROTO_SignData [13:35:44]wFMCommunicate request_size=4 [13:35:44]MH_SAM_APDU [13:35:44]CAPDU: 80 0D 01 02 [13:35:44]Write to MH i2c: E2 08 00 CF 85 80 0D 01 02 00 00 00 00 CD [13:35:44]Write i2c OK [13:35:44]MH_I2C_Read... [13:35:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:35:44]Read from MH i2c: E2 [13:35:44]MH_I2C_Read... [13:35:44]Read from MH i2c: E2 03 00 [13:35:44]MH_I2C_Read... [13:35:44]Read from MH i2c: E2 03 00 CF 85 00 90 00 C8 [13:35:44]RAPDU: 90 00 [13:35:44]wFMCommunicate OK [13:35:44]wFMCommunicate request_size=255 [13:35:44]MH_SAM_APDU [13:35:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 7D 00 00 00 F4 03 04 00 38 07 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 2F [13:35:44]Write to MH i2c: E2 02 01 D0 85 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 7D 00 00 00 F4 03 04 00 38 07 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 2F 00 00 34 [13:35:44]Write i2c OK [13:35:44]MH_I2C_Read... [13:35:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:35:44]Read from MH i2c: E2 [13:35:44]MH_I2C_Read... [13:35:44]Read from MH i2c: E2 03 00 [13:35:44]MH_I2C_Read... [13:35:44]Read from MH i2c: E2 03 00 D0 85 00 90 00 C9 [13:35:44]RAPDU: 90 00 [13:35:44]wFMCommunicate OK [13:35:44]wFMCommunicate request_size=10 [13:35:44]MH_SAM_APDU [13:35:44]CAPDU: 80 0D 02 02 05 92 C0 B7 27 8C [13:35:44]Write to MH i2c: E2 0D 00 D1 85 80 0D 02 02 05 00 92 C0 B7 27 8C 00 00 96 [13:35:44]Write i2c OK [13:35:44]MH_I2C_Read... [13:35:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:35:44]Read from MH i2c: E2 [13:35:44]MH_I2C_Read... [13:35:44]Read from MH i2c: E2 03 00 [13:35:44]MH_I2C_Read... [13:35:44]Read from MH i2c: E2 03 00 D1 85 00 90 00 CA [13:35:44]RAPDU: 90 00 [13:35:44]wFMCommunicate OK [13:35:44]wFMCommunicate request_size=4 [13:35:44]MH_SAM_APDU [13:35:44]CAPDU: 80 0D 03 02 [13:35:44]Write to MH i2c: E2 08 00 D2 85 80 0D 03 02 00 00 00 00 D2 [13:35:44]Write i2c OK [13:35:44]MH_I2C_Read... [13:35:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:35:44]Read from MH i2c: E2 [13:35:44]MH_I2C_Read... [13:35:44]Read from MH i2c: E2 0B 00 [13:35:44]MH_I2C_Read... [13:35:44]Read from MH i2c: E2 0B 00 D2 85 00 52 A8 11 91 68 B9 1B EC 90 00 97 [13:35:44]RAPDU: 52 A8 11 91 68 B9 1B EC 90 00 [13:35:44]wFMCommunicate OK [13:35:44]SAM_PROTO_SignData done [13:35:44]FM_MakeSignedData done [13:35:44]CreateOFDProtocolMessage [13:35:44]wFMCommunicate request_size=4 [13:35:44]MH_SAM_APDU [13:35:44]CAPDU: 80 11 00 00 [13:35:44]Write to MH i2c: E2 08 00 D3 85 80 11 00 00 00 00 00 00 D2 [13:35:44]Write i2c OK [13:35:44]MH_I2C_Read... [13:35:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:35:44]Read from MH i2c: E2 [13:35:44]MH_I2C_Read... [13:35:44]Read from MH i2c: E2 17 00 [13:35:44]MH_I2C_Read... [13:35:44]Read from MH i2c: E2 17 00 D3 85 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 20 [13: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 [13:35:44]wFMCommunicate OK [13:35:44]CreateOFDProtocolMessage done [13:35:44]OFDSenderStorePacket 30343 [13:35:44]StoreOFDPacket docnum=30343 [13: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 0F 01 00 00 CF 95 07 01 51 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 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 7D 00 00 00 F4 03 04 00 38 07 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 2F 92 C0 B7 27 8C 52 A8 11 91 68 B9 1B EC [13:35:44]CheckFolder [13:35:44]dirname=/storage/ofd_packets [13:35:44]CheckFolder done [13:35:44]ProducePacketName [13:35:44]name=ofd_packets/00030343 [13:35:44]NVStorageSaveData ofd_packets/00030343 [13:35:44]File name is /storage/ofd_packets/00030343 [13:35:44]Write 301 bytes [13:35:44]NVStorageSaveData done [13:35:44]OFDSenderStorePacket done [13:35:44]KKMCreateOFDPacket done [13:35:44]NVStorageSaveData kkm_last_timestamp [13:35:44]File name is /storage/kkm_last_timestamp [13:35:44]Write 4 bytes [13:35:44]NVStorageSaveData done [13:35:44]ExternCall_PrintAddStr [13:35:44]wPrintStart [13:35:44]Write to MH i2c: 01 00 00 D4 85 59 [13:35:44]Write i2c OK [13:35:44]MH_I2C_Read... [13:35:44]Read from MH i2c: 01 [13:35:44]MH_I2C_Read... [13:35:44]Read from MH i2c: 01 07 00 [13:35:44]MH_I2C_Read... [13:35:44]Read from MH i2c: 01 07 00 D4 85 00 00 00 00 00 FF 0F 6E [13:35:44]RasterBufferAndPrint [13:35:44]line Счет N : (1)342736 [13:35:44]line ИНН: 02508201610067 [13:35:44]line Контрольно-Кассовый Чек [13:35:44]line ПРОДАЖА [13:35:44]line ТРК (МРК, ГНК) : 53 [13:35:44]line Товар: 2710124130 [13:35:44]line Аи-92-К-2 [13:35:44]line 7.480 * 66.90 [13:35:44]line = 500.41 [13:35:44]line НДС 12% НСП 1% [13:35:44]line > о реализуемом товаре [13:35:44]line ОКРУГЛЕНИЕ: -0.41 [13:35:44]line ИТОГО: 500.00 [13:35:44]line Внесено: 500.00 [13:35:44]line СДАЧА: 0.00 [13:35:44]line НСП 1% : 4.43 [13:35:44]line НДС 12% : 53.14 [13:35:44]line Наличными: 500.00 [13:35:44]line Безнал.: 0.00 [13:35:44]line Место: АЗС № 78 "Партнер Нефть" [13:35:44]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [13:35:44]line СНО: Общий режим [13:35:44]line Чек 125 20.10.2024 13:35 [13:35:44]line Смена: 114 ФФД: 1.0 [13:35:44]line ЗНМ: 0300000137 [13:35:44]line РНМ: 0000000000186857 [13:35:44]line Версия ККМ: v1.0 [13:35:44]line ФМ: 0000000002094219 [13:35:44]line ФД: 30343 [13:35:44]line ФПД: 52307344959372 [13:35:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T133552&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30343&fm=52307344959372&tin=02508201610067®Number=0000000000186857&sum=50000 [13:35:45]OFD Sender: Processing packet 30343 [packets to send 10, broken 9] [13:35:45]ProducePacketName [13:35:45]name=ofd_packets/00030343 [13:35:45]OFD Sender: To server: pG, [13:35:45]CommunicateWithHost lk.salyk.kg:30040 [13:35:45]ConnectInit lk.salyk.kg [13:35:45]written 0, free lines is 4095 [13:35:45]Connected sock=10 [13:35: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 CF 95 07 01 51 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 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 7D 00 00 00 F4 03 04 00 38 07 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 2F 92 C0 B7 27 8C 52 A8 11 91 68 B9 1B EC [13: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 CB C7 47 00 78 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 87 76 00 00 F4 03 04 00 BC B1 14 67 B6 04 01 00 00 2B 52 8A A9 F0 B3 93 A1 [13:35:45]CommunicateWithHost err = 0 [13:35:45]CheckOFDResponse [13:35:45]1017 (14) - 77093643461234 [13:35:45]1041 (16) - 0000000002094219 [13:35:45]1040 (4) - 30343 [13:35:45]1012 (4) - 20.10.2024 07:31 [13:35:45]1206 (1) - 0 [13:35:45]OFD Sender: Remove packet 30343 [13:35:45]ProducePacketName [13:35:45]name=ofd_packets/00030343 [13:35:45]NVStorageDeleteData [13:35:45]Write to MH i2c: 01 00 00 FF 85 84 [13:35:45]Write i2c OK [13:35:45]MH_I2C_Read... [13:35:45]Read from MH i2c: 01 [13:35:45]MH_I2C_Read... [13:35:45]Read from MH i2c: 01 07 00 [13:35:45]MH_I2C_Read... [13:35:45]Read from MH i2c: 01 07 00 FF 85 00 00 00 00 00 FD 0C 94 [13:35:45]RasterBufferAndPrint [13:35:45]line [13:35:45]line [13:35:45]line [13:35:45]line [13:35:45]line [13:35:45]written 0, free lines is 3331 [13:35:45]MH_Cut [13:35:45]Write to MH i2c: D1 01 00 06 86 01 5E [13:35:45]Write i2c OK [13:35:45]MH_I2C_Read... [13:35:45]Read from MH i2c: D1 [13:35:45]MH_I2C_Read... [13:35:45]Read from MH i2c: D1 01 00 [13:35:45]MH_I2C_Read... [13:35:45]Read from MH i2c: D1 01 00 06 86 00 5D [13:35:45]Write to MH i2c: 01 00 00 07 86 8D [13:35:45]Write i2c OK [13:35:45]MH_I2C_Read... [13:35:46]OFD Sender: No OFD packet to send [13:35:46]*** Cut start [13:35:46]*** Partial cut [13:35:46]*** CUTSNS_PIN = 1 [13:35:46]*** CUTSNS_PIN = 0 [13:35:46]*** Brake cut motor [13:35:47]Read from MH i2c: 01 [13:35:47]MH_I2C_Read... [13:35:47]*** Stop cut motor [13:35:47]*** Cut end [13:35:47]Read from MH i2c: 01 07 00 [13:35:47]MH_I2C_Read... [13:35:47]Read from MH i2c: 01 07 00 07 86 00 00 00 00 00 FF 0F A2 [13:35:47]process_action close_receipt done [13:35:47]requested_data is exist [13:35:47]produce_requested_data [13:35:47]requested_item fm.sn is exist - process it [13:35:47]wFMCommunicate request_size=4 [13:35:47]MH_SAM_APDU [13:35:47]CAPDU: 80 11 00 00 [13:35:47]Write to MH i2c: E2 08 00 08 86 80 11 00 00 00 00 00 00 08 [13:35:47]Write i2c OK [13:35:47]MH_I2C_Read... [13:35:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:35:47]Read from MH i2c: E2 [13:35:47]MH_I2C_Read... [13:35:47]Read from MH i2c: E2 17 00 [13:35:47]MH_I2C_Read... [13:35:47]Read from MH i2c: E2 17 00 08 86 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 56 [13:35:47]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:47]wFMCommunicate OK [13:35:47]requested_item fd.num is exist - process it [13:35:47]SAM_PROTO_GetFieldsCounters [13:35:47]wFMCommunicate request_size=4 [13:35:47]MH_SAM_APDU [13:35:47]CAPDU: 80 13 00 00 [13:35:47]Write to MH i2c: E2 08 00 09 86 80 13 00 00 00 00 00 00 0B [13:35:47]Write i2c OK [13:35:47]MH_I2C_Read... [13:35:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:35:47]Read from MH i2c: E2 [13:35:47]MH_I2C_Read... [13:35:47]Read from MH i2c: E2 62 00 [13:35:47]MH_I2C_Read... [13:35:47]Read from MH i2c: E2 62 00 09 86 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 17 [13:35: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 87 76 00 00 0E 04 04 00 72 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 [13:35:47]wFMCommunicate OK [13:35:47]SAM_PROTO_GetFieldsCounters done [13:35:47]requested_item shift.num is exist - process it [13:35:47]requested_item shift.opened is exist - process it [13:35:47]req_shift_opened [13:35:47]FM_GetShiftState [13:35:47]SAM_PROTO_GetShiftState [13:35:47]wFMCommunicate request_size=4 [13:35:47]MH_SAM_APDU [13:35:47]CAPDU: 80 13 01 00 [13:35:47]Write to MH i2c: E2 08 00 0A 86 80 13 01 00 00 00 00 00 0D [13:35:47]Write i2c OK [13:35:47]MH_I2C_Read... [13:35:47]Read from MH i2c: E2 [13:35:47]MH_I2C_Read... [13:35:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:35:47]Read from MH i2c: E2 0E 00 [13:35:47]MH_I2C_Read... [13:35:47]Read from MH i2c: E2 0E 00 0A 86 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 F3 [13:35:47]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [13:35:47]wFMCommunicate OK [13:35:47]SAM_PROTO_GetShiftState done [13:35:47]FM_GetShiftState done [13:35:47]req_shift_opened done [13:35:47]requested_item shift.open_date is exist - process it [13:35:47]req_shift_open_date [13:35:47]req_shift_open_date done [13:35:47]produce_requested_data done [13:35:47]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30343,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [13:35:47]process_action_free close_receipt [13:35:47]json_value_free [13:35:47]json_value_free done [13:35:47]process_json_proto returns [13:35:47]Send response to host [13:35:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30343,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [13:35:47]free response buf [13:35:47]execute_script done [13:35:47]execute_script returns [13:35:47]free content buf [13:35:47]Sock 9.Close socket [13:35:47]Sock 9.Thread stoped [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:55]accept exits with 7 [13:36:55]New connection [13:36:55]New thread 3067514212 created [13:36:55]Thread 3067370852 joined [13:36:55]Waiting for new connection... [13:36:55] Sock 7.Parse request [13:36:55]Sock 7.Check first char [13:36:55]Sock 7.First char is OK [13:36:55]request: POST /json_proto HTTP/1.0 [13:36:55]Method: POST [13:36:55]URL: /json_proto [13:36:55]Method is POST - this is cgi request [13:36:55]url: /json_proto [13:36:55]query_string will be loaded in cgi processing [13:36:55]execute_cgi json_proto POST (null) [13:36:55]execute_cgi path=json_proto method=POST [13:36:55]POST find Content-Length [13:36:55]Host: 172.17.51.3:8080 [13:36:55]Content-Length: 843 [13:36:55]Content-Type: application/json [13:36:55] [13:36:55]POST finish read [13:36:55]Found Content-Length = 843 [13:36:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342735", "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" : 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" ] } } [13:36:55]execute_script... [13:36: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)342735", "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" : 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" ] } } [13:36:55]POST & json_proto [13:36:55]process_json_proto [13:36:55]json parsed OK: [13:36:55]protocol is kg_v1.0 [13:36:55]action value=close_receipt [13:36:55]process_action close_receipt [13:36:55]cmd_close_receipt [13:36:55]MH_GetDate [13:36:55]Write to MH i2c: F0 00 00 0B 86 80 [13:36:55]Write i2c OK [13:36:55]MH_I2C_Read... [13:36:55]Read from MH i2c: F0 [13:36:55]MH_I2C_Read... [13:36:55]Read from MH i2c: F0 09 00 [13:36:55]MH_I2C_Read... [13:36:55]Read from MH i2c: F0 09 00 0B 86 00 81 07 15 67 04 C1 95 66 4D [13:36:55]GetLastDocTimeStamp 1729431352 [13:36:55]current date 1729431425 [13:36:55]FM_GetShiftState [13:36:55]SAM_PROTO_GetShiftState [13:36:55]wFMCommunicate request_size=4 [13:36:55]MH_SAM_APDU [13:36:55]CAPDU: 80 13 01 00 [13:36:55]Write to MH i2c: E2 08 00 0C 86 80 13 01 00 00 00 00 00 0F [13:36:55]Write i2c OK [13:36:55]MH_I2C_Read... [13:36:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:36:55]Read from MH i2c: E2 [13:36:55]MH_I2C_Read... [13:36:55]Read from MH i2c: E2 0E 00 [13:36:55]MH_I2C_Read... [13:36:55]Read from MH i2c: E2 0E 00 0C 86 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 F5 [13:36:55]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [13:36:55]wFMCommunicate OK [13:36:55]SAM_PROTO_GetShiftState done [13:36:55]FM_GetShiftState done [13:36:55]opened in 1729384718 [13:36:55]opened+sec_in_day 1729471118 [13:36:55]quantity*price = 400012 [13:36:55]sum+1 = 400013 [13:36:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 4000.12 НСП 1% : 35.40 НДС 12% : 424.79 Наличными: 0.00 Безнал.: 4000.12 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 126 20.10.2024 13:37 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Платежная система: АКБ Кыргызстан ФМ: 0000000002094219 ФД: 30344 ФПД: 80591227206905 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T133705&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30344&fm=80591227206905&tin=02508201610067®Number=0000000000186857&sum=400012 [13:36:57]StoreToDocumentArchive [13:36:57]shift 114 fd 30344 [13:36:57]save to /storage/0114/doc_00030344 [13:36:57]save last doc name /storage/0114/doc_00030344 to /storage/kkm_last_doc_name [13:36:57]save OK [13:36:57]Clear old archive folders... [13:36:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:36:57]tlvbuf is 00B3BC40 [13:36:57]SAM_PROTO_ClearQueue [13:36:57]wFMCommunicate request_size=4 [13:36:57]MH_SAM_APDU [13:36:57]CAPDU: 80 09 00 00 [13:36:57]Write to MH i2c: E2 08 00 19 86 80 09 00 00 00 00 00 00 11 [13:36:57]Write i2c OK [13:36:57]MH_I2C_Read... [13:36:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:36:57]Read from MH i2c: E2 [13:36:57]MH_I2C_Read... [13:36:57]Read from MH i2c: E2 03 00 [13:36:57]MH_I2C_Read... [13:36:57]Read from MH i2c: E2 03 00 19 86 00 90 00 13 [13:36:57]RAPDU: 90 00 [13:36:57]wFMCommunicate OK [13:36:57]SAM_PROTO_ClearQueue done [13:36:57]KKMCreateOFDPacket [13:36:57]OFDProtocolAddRootSTLVToBuf [13:36:57]FM_MakeSignedData [13:36:57]FM_MakeSignedData [13:36:57]SAM_PROTO_SignData [13:36:57]wFMCommunicate request_size=4 [13:36:57]MH_SAM_APDU [13:36:57]CAPDU: 80 0D 01 02 [13:36:57]Write to MH i2c: E2 08 00 1A 86 80 0D 01 02 00 00 00 00 19 [13:36:57]Write i2c OK [13:36:57]MH_I2C_Read... [13:36:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:36:57]Read from MH i2c: E2 [13:36:57]MH_I2C_Read... [13:36:57]Read from MH i2c: E2 03 00 [13:36:57]MH_I2C_Read... [13:36:57]Read from MH i2c: E2 03 00 1A 86 00 90 00 14 [13:36:57]RAPDU: 90 00 [13:36:57]wFMCommunicate OK [13:36:57]wFMCommunicate request_size=255 [13:36:57]MH_SAM_APDU [13:36: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 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 7E 00 00 00 F4 03 04 00 81 07 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 49 [13:36:57]Write to MH i2c: E2 02 01 1B 86 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 7E 00 00 00 F4 03 04 00 81 07 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 49 00 00 5E [13:36:57]Write i2c OK [13:36:57]MH_I2C_Read... [13:36:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:36:57]Read from MH i2c: E2 [13:36:57]MH_I2C_Read... [13:36:57]Read from MH i2c: E2 03 00 [13:36:57]MH_I2C_Read... [13:36:57]Read from MH i2c: E2 03 00 1B 86 00 90 00 15 [13:36:57]RAPDU: 90 00 [13:36:57]wFMCommunicate OK [13:36:57]wFMCommunicate request_size=10 [13:36:57]MH_SAM_APDU [13:36:57]CAPDU: 80 0D 02 02 05 4C 1B 78 3C F9 [13:36:57]Write to MH i2c: E2 0D 00 1C 86 80 0D 02 02 05 00 4C 1B 78 3C F9 00 00 3A [13:36:57]Write i2c OK [13:36:57]MH_I2C_Read... [13:36:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:36:57]Read from MH i2c: E2 [13:36:57]MH_I2C_Read... [13:36:57]Read from MH i2c: E2 03 00 [13:36:57]MH_I2C_Read... [13:36:57]Read from MH i2c: E2 03 00 1C 86 00 90 00 16 [13:36:57]RAPDU: 90 00 [13:36:57]wFMCommunicate OK [13:36:57]wFMCommunicate request_size=4 [13:36:57]MH_SAM_APDU [13:36:57]CAPDU: 80 0D 03 02 [13:36:57]Write to MH i2c: E2 08 00 1D 86 80 0D 03 02 00 00 00 00 1E [13:36:57]Write i2c OK [13:36:57]MH_I2C_Read... [13:36:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:36:57]Read from MH i2c: E2 [13:36:57]MH_I2C_Read... [13:36:57]Read from MH i2c: E2 0B 00 [13:36:57]MH_I2C_Read... [13:36:57]Read from MH i2c: E2 0B 00 1D 86 00 97 1E 1D B7 D5 15 C3 F0 90 00 45 [13:36:57]RAPDU: 97 1E 1D B7 D5 15 C3 F0 90 00 [13:36:57]wFMCommunicate OK [13:36:57]SAM_PROTO_SignData done [13:36:57]FM_MakeSignedData done [13:36:57]CreateOFDProtocolMessage [13:36:57]wFMCommunicate request_size=4 [13:36:57]MH_SAM_APDU [13:36:57]CAPDU: 80 11 00 00 [13:36:57]Write to MH i2c: E2 08 00 1E 86 80 11 00 00 00 00 00 00 1E [13:36:57]Write i2c OK [13:36:57]MH_I2C_Read... [13:36:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:36:57]Read from MH i2c: E2 [13:36:57]MH_I2C_Read... [13:36:57]Read from MH i2c: E2 17 00 [13:36:57]MH_I2C_Read... [13:36:57]Read from MH i2c: E2 17 00 1E 86 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 6C [13:36: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:36:57]wFMCommunicate OK [13:36:57]CreateOFDProtocolMessage done [13:36:57]OFDSenderStorePacket 30344 [13:36:57]StoreOFDPacket docnum=30344 [13:36: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 C8 D6 07 01 E9 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 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 7E 00 00 00 F4 03 04 00 81 07 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 49 4C 1B 78 3C F9 97 1E 1D B7 D5 15 C3 F0 [13:36:57]CheckFolder [13:36:57]dirname=/storage/ofd_packets [13:36:57]CheckFolder done [13:36:57]ProducePacketName [13:36:57]name=ofd_packets/00030344 [13:36:57]NVStorageSaveData ofd_packets/00030344 [13:36:57]File name is /storage/ofd_packets/00030344 [13:36:57]Write 301 bytes [13:36:57]NVStorageSaveData done [13:36:57]OFDSenderStorePacket done [13:36:57]KKMCreateOFDPacket done [13:36:57]NVStorageSaveData kkm_last_timestamp [13:36:57]File name is /storage/kkm_last_timestamp [13:36:57]Write 4 bytes [13:36:57]NVStorageSaveData done [13:36:57]ExternCall_PrintAddStr [13:36:57]wPrintStart [13:36:57]Write to MH i2c: 01 00 00 1F 86 A5 [13:36:57]Write i2c OK [13:36:57]MH_I2C_Read... [13:36:57]Read from MH i2c: 01 [13:36:57]MH_I2C_Read... [13:36:57]Read from MH i2c: 01 07 00 [13:36:57]MH_I2C_Read... [13:36:57]Read from MH i2c: 01 07 00 1F 86 00 00 00 00 00 FF 0F BA [13:36:57]RasterBufferAndPrint [13:36:57]line Счет N : (1)342735 [13:36:57]line ИНН: 02508201610067 [13:36:57]line Контрольно-Кассовый Чек [13:36:57]line ПРОДАЖА [13:36:57]line ТРК (МРК, ГНК) : 32 [13:36:57]line Товар: 2710124500 [13:36:57]line Аи-95-К-3 [13:36:57]line 53.910 * 74.20 [13:36:57]line = 4000.12 [13:36:57]line НДС 12% НСП 1% [13:36:57]line > о реализуемом товаре [13:36:57]line ИТОГО: 4000.12 [13:36:57]line НСП 1% : 35.40 [13:36:57]line НДС 12% : 424.79 [13:36:57]line Наличными: 0.00 [13:36:57]line Безнал.: 4000.12 [13:36:57]line Место: АЗС № 78 "Партнер Нефть" [13:36:57]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [13:36:57]line СНО: Общий режим [13:36:57]line Чек 126 20.10.2024 13:37 [13:36:57]line Смена: 114 ФФД: 1.0 [13:36:57]line ЗНМ: 0300000137 [13:36:57]line РНМ: 0000000000186857 [13:36:57]line Версия ККМ: v1.0 [13:36:57]line Платежная система: АКБ Кыргызстан [13:36:57]line ФМ: 0000000002094219 [13:36:57]line ФД: 30344 [13:36:57]line ФПД: 80591227206905 [13:36:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T133705&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30344&fm=80591227206905&tin=02508201610067®Number=0000000000186857&sum=400012 [13:36:57]OFD Sender: Processing packet 30344 [packets to send 10, broken 9] [13:36:57]ProducePacketName [13:36:57]name=ofd_packets/00030344 [13:36:57]OFD Sender: To server: pG, [13:36:57]CommunicateWithHost lk.salyk.kg:30040 [13:36:57]ConnectInit lk.salyk.kg [13:36:57]written 0, free lines is 4095 [13:36:58]Connected sock=10 [13:36: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 C8 D6 07 01 E9 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 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 7E 00 00 00 F4 03 04 00 81 07 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 49 4C 1B 78 3C F9 97 1E 1D B7 D5 15 C3 F0 [13:36: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 3C E2 47 00 47 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 88 76 00 00 F4 03 04 00 05 B2 14 67 B6 04 01 00 00 82 DE 25 51 75 9A BA D4 [13:36:58]CommunicateWithHost err = 0 [13:36:58]CheckOFDResponse [13:36:58]1017 (14) - 77093643461234 [13:36:58]1041 (16) - 0000000002094219 [13:36:58]1040 (4) - 30344 [13:36:58]1012 (4) - 20.10.2024 07:32 [13:36:58]1206 (1) - 0 [13:36:58]OFD Sender: Remove packet 30344 [13:36:58]ProducePacketName [13:36:58]name=ofd_packets/00030344 [13:36:58]NVStorageDeleteData [13:36:58]Write to MH i2c: 01 00 00 49 86 CF [13:36:58]Write i2c OK [13:36:58]MH_I2C_Read... [13:36:58]Read from MH i2c: 01 [13:36:58]MH_I2C_Read... [13:36:58]Read from MH i2c: 01 07 00 [13:36:58]MH_I2C_Read... [13:36:58]Read from MH i2c: 01 07 00 49 86 00 00 00 00 00 05 0D E8 [13:36:58]RasterBufferAndPrint [13:36:58]line [13:36:58]line [13:36:58]line [13:36:58]line [13:36:58]line [13:36:58]written 0, free lines is 3339 [13:36:58]MH_Cut [13:36:58]Write to MH i2c: D1 01 00 50 86 01 A8 [13:36:58]Write i2c OK [13:36:58]MH_I2C_Read... [13:36:58]Read from MH i2c: D1 [13:36:58]MH_I2C_Read... [13:36:58]Read from MH i2c: D1 01 00 [13:36:58]MH_I2C_Read... [13:36:58]Read from MH i2c: D1 01 00 50 86 00 A7 [13:36:58]Write to MH i2c: 01 00 00 51 86 D7 [13:36:58]Write i2c OK [13:36:58]MH_I2C_Read... [13:36:58]OFD Sender: No OFD packet to send [13:36:59]*** Cut start [13:36:59]*** Partial cut [13:36:59]*** CUTSNS_PIN = 1 [13:36:59]*** CUTSNS_PIN = 0 [13:36:59]*** Brake cut motor [13:36:59]Read from MH i2c: 01 [13:36:59]MH_I2C_Read... [13:36:59]*** Stop cut motor [13:36:59]*** Cut end [13:36:59]Read from MH i2c: 01 07 00 [13:36:59]MH_I2C_Read... [13:36:59]Read from MH i2c: 01 07 00 51 86 00 00 00 00 00 FF 0F EC [13:36:59]process_action close_receipt done [13:36:59]requested_data is exist [13:36:59]produce_requested_data [13:36:59]requested_item fm.sn is exist - process it [13:36:59]wFMCommunicate request_size=4 [13:36:59]MH_SAM_APDU [13:36:59]CAPDU: 80 11 00 00 [13:36:59]Write to MH i2c: E2 08 00 52 86 80 11 00 00 00 00 00 00 52 [13:36:59]Write i2c OK [13:36:59]MH_I2C_Read... [13:36:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:36:59]Read from MH i2c: E2 [13:36:59]MH_I2C_Read... [13:36:59]Read from MH i2c: E2 17 00 [13:36:59]MH_I2C_Read... [13:36:59]Read from MH i2c: E2 17 00 52 86 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 A0 [13:36:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [13:36:59]wFMCommunicate OK [13:36:59]requested_item fd.num is exist - process it [13:36:59]SAM_PROTO_GetFieldsCounters [13:36:59]wFMCommunicate request_size=4 [13:36:59]MH_SAM_APDU [13:36:59]CAPDU: 80 13 00 00 [13:36:59]Write to MH i2c: E2 08 00 53 86 80 13 00 00 00 00 00 00 55 [13:36:59]Write i2c OK [13:36:59]MH_I2C_Read... [13:36:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:36:59]Read from MH i2c: E2 [13:36:59]MH_I2C_Read... [13:36:59]Read from MH i2c: E2 62 00 [13:36:59]MH_I2C_Read... [13:36:59]Read from MH i2c: E2 62 00 53 86 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 65 [13:36: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 88 76 00 00 0E 04 04 00 72 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 [13:36:59]wFMCommunicate OK [13:36:59]SAM_PROTO_GetFieldsCounters done [13:36:59]requested_item shift.num is exist - process it [13:36:59]requested_item shift.opened is exist - process it [13:36:59]req_shift_opened [13:36:59]FM_GetShiftState [13:36:59]SAM_PROTO_GetShiftState [13:36:59]wFMCommunicate request_size=4 [13:36:59]MH_SAM_APDU [13:36:59]CAPDU: 80 13 01 00 [13:36:59]Write to MH i2c: E2 08 00 54 86 80 13 01 00 00 00 00 00 57 [13:36:59]Write i2c OK [13:36:59]MH_I2C_Read... [13:36:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:36:59]Read from MH i2c: E2 [13:36:59]MH_I2C_Read... [13:36:59]Read from MH i2c: E2 0E 00 [13:36:59]MH_I2C_Read... [13:36:59]Read from MH i2c: E2 0E 00 54 86 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 3D [13:36:59]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [13:36:59]wFMCommunicate OK [13:36:59]SAM_PROTO_GetShiftState done [13:36:59]FM_GetShiftState done [13:36:59]req_shift_opened done [13:36:59]requested_item shift.open_date is exist - process it [13:36:59]req_shift_open_date [13:36:59]req_shift_open_date done [13:36:59]produce_requested_data done [13:36:59]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30344,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [13:36:59]process_action_free close_receipt [13:36:59]json_value_free [13:36:59]json_value_free done [13:36:59]process_json_proto returns [13:36:59]Send response to host [13:36:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30344,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [13:36:59]free response buf [13:36:59]execute_script done [13:36:59]execute_script returns [13:36:59]free content buf [13:36:59]Sock 7.Close socket [13:36:59]Sock 7.Thread stoped [13:37:03]OFD Sender: No OFD packet to send [13:37:08]OFD Sender: No OFD packet to send [13:37:13]OFD Sender: No OFD packet to send [13:37:18]OFD Sender: No OFD packet to send [13:37:23]OFD Sender: No OFD packet to send [13:37:28]OFD Sender: No OFD packet to send [13:37:33]OFD Sender: No OFD packet to send [13:37:38]OFD Sender: No OFD packet to send [13:37:43]OFD Sender: No OFD packet to send [13:37:48]OFD Sender: No OFD packet to send [13:37:53]OFD Sender: No OFD packet to send [13:37:58]OFD Sender: No OFD packet to send [13:38:03]OFD Sender: No OFD packet to send [13:38:08]OFD Sender: No OFD packet to send [13:38:13]OFD Sender: No OFD packet to send [13:38:18]OFD Sender: No OFD packet to send [13:38:23]OFD Sender: No OFD packet to send [13:38:28]OFD Sender: No OFD packet to send [13:38:33]OFD Sender: No OFD packet to send [13:38:38]OFD Sender: No OFD packet to send [13:38:43]OFD Sender: No OFD packet to send [13:38:48]OFD Sender: No OFD packet to send [13:38:53]OFD Sender: No OFD packet to send [13:38:58]OFD Sender: No OFD packet to send [13:39:03]OFD Sender: No OFD packet to send [13:39:08]OFD Sender: No OFD packet to send [13:39:13]OFD Sender: No OFD packet to send [13:39:18]OFD Sender: No OFD packet to send [13:39:23]OFD Sender: No OFD packet to send [13:39:28]OFD Sender: No OFD packet to send [13:39:33]OFD Sender: No OFD packet to send [13:39:38]OFD Sender: No OFD packet to send [13:39:43]OFD Sender: No OFD packet to send [13:39:48]OFD Sender: No OFD packet to send [13:39:53]OFD Sender: No OFD packet to send [13:39:58]OFD Sender: No OFD packet to send [13:40:03]OFD Sender: No OFD packet to send [13:40:08]OFD Sender: No OFD packet to send [13:40:13]OFD Sender: No OFD packet to send [13:40:18]OFD Sender: No OFD packet to send [13:40:23]OFD Sender: No OFD packet to send [13:40:28]OFD Sender: No OFD packet to send [13:40:33]OFD Sender: No OFD packet to send [13:40:38]OFD Sender: No OFD packet to send [13:40:43]OFD Sender: No OFD packet to send [13:40:48]OFD Sender: No OFD packet to send [13:40:53]OFD Sender: No OFD packet to send [13:40:58]OFD Sender: No OFD packet to send [13:41:03]OFD Sender: No OFD packet to send [13:41:08]OFD Sender: No OFD packet to send [13:41:13]OFD Sender: No OFD packet to send [13:41:18]OFD Sender: No OFD packet to send [13:41:23]OFD Sender: No OFD packet to send [13:41:29]OFD Sender: No OFD packet to send [13:41:34]OFD Sender: No OFD packet to send [13:41:39]OFD Sender: No OFD packet to send [13:41:44]OFD Sender: No OFD packet to send [13:41:49]OFD Sender: No OFD packet to send [13:41:54]OFD Sender: No OFD packet to send [13:41:59]OFD Sender: No OFD packet to send [13:42:04]OFD Sender: No OFD packet to send [13:42:09]OFD Sender: No OFD packet to send [13:42:14]OFD Sender: No OFD packet to send [13:42:19]OFD Sender: No OFD packet to send [13:42:24]OFD Sender: No OFD packet to send [13:42:29]OFD Sender: No OFD packet to send [13:42:34]OFD Sender: No OFD packet to send [13:42:39]OFD Sender: No OFD packet to send [13:42:44]OFD Sender: No OFD packet to send [13:42:49]OFD Sender: No OFD packet to send [13:42:54]OFD Sender: No OFD packet to send [13:42:59]OFD Sender: No OFD packet to send [13:43:04]OFD Sender: No OFD packet to send [13:43:09]OFD Sender: No OFD packet to send [13:43:14]OFD Sender: No OFD packet to send [13:43:19]OFD Sender: No OFD packet to send [13:43:24]OFD Sender: No OFD packet to send [13:43:29]OFD Sender: No OFD packet to send [13:43:34]OFD Sender: No OFD packet to send [13:43:39]OFD Sender: No OFD packet to send [13:43:44]OFD Sender: No OFD packet to send [13:43:49]OFD Sender: No OFD packet to send [13:43:54]OFD Sender: No OFD packet to send [13:43:59]OFD Sender: No OFD packet to send [13:44:04]OFD Sender: No OFD packet to send [13:44:09]OFD Sender: No OFD packet to send [13:44:14]OFD Sender: No OFD packet to send [13:44:19]OFD Sender: No OFD packet to send [13:44:24]OFD Sender: No OFD packet to send [13:44:29]OFD Sender: No OFD packet to send [13:44:34]OFD Sender: No OFD packet to send [13:44:38]accept exits with 9 [13:44:38]New connection [13:44:38]New thread 3067370852 created [13:44:38]Thread 3067514212 joined [13:44:38]Waiting for new connection... [13:44:38] Sock 9.Parse request [13:44:38]Sock 9.Check first char [13:44:38]Sock 9.First char is OK [13:44:38]request: POST /json_proto HTTP/1.0 [13:44:38]Method: POST [13:44:38]URL: /json_proto [13:44:38]Method is POST - this is cgi request [13:44:38]url: /json_proto [13:44:38]query_string will be loaded in cgi processing [13:44:38]execute_cgi json_proto POST (null) [13:44:38]execute_cgi path=json_proto method=POST [13:44:38]POST find Content-Length [13:44:38]Host: 172.17.51.3:8080 [13:44:38]Content-Length: 682 [13:44:38]Content-Type: application/json [13:44:38] [13:44:38]POST finish read [13:44:38]Found Content-Length = 682 [13:44:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342737", "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.500, "sum" : 3005.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3005.00, "total" : 3005.00, "payments": [ { "type": 0, "sum" : 3005.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:44:38]execute_script... [13:44: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)342737", "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.500, "sum" : 3005.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3005.00, "total" : 3005.00, "payments": [ { "type": 0, "sum" : 3005.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:44:38]POST & json_proto [13:44:38]process_json_proto [13:44:38]json parsed OK: [13:44:38]protocol is kg_v1.0 [13:44:38]action value=close_receipt [13:44:38]process_action close_receipt [13:44:38]cmd_close_receipt [13:44:38]MH_GetDate [13:44:38]Write to MH i2c: F0 00 00 55 86 CA [13:44:38]Write i2c OK [13:44:38]MH_I2C_Read... [13:44:38]Read from MH i2c: F0 [13:44:38]MH_I2C_Read... [13:44:38]Read from MH i2c: F0 09 00 [13:44:38]MH_I2C_Read... [13:44:38]Read from MH i2c: F0 09 00 55 86 00 50 09 15 67 04 C1 95 66 68 [13:44:38]GetLastDocTimeStamp 1729431425 [13:44:38]current date 1729431888 [13:44:38]FM_GetShiftState [13:44:38]SAM_PROTO_GetShiftState [13:44:38]wFMCommunicate request_size=4 [13:44:38]MH_SAM_APDU [13:44:38]CAPDU: 80 13 01 00 [13:44:38]Write to MH i2c: E2 08 00 56 86 80 13 01 00 00 00 00 00 59 [13:44:38]Write i2c OK [13:44:38]MH_I2C_Read... [13:44:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:44:38]Read from MH i2c: E2 [13:44:38]MH_I2C_Read... [13:44:38]Read from MH i2c: E2 0E 00 [13:44:38]MH_I2C_Read... [13:44:38]Read from MH i2c: E2 0E 00 56 86 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 3F [13:44:38]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [13:44:38]wFMCommunicate OK [13:44:38]SAM_PROTO_GetShiftState done [13:44:38]FM_GetShiftState done [13:44:38]opened in 1729384718 [13:44:38]opened+sec_in_day 1729471118 [13:44:38]quantity*price = 300510 [13:44:38]sum+1 = 300511 [13:44:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 3005.00 Внесено: 3005.00 СДАЧА: 0.00 НСП 1% : 26.59 НДС 12% : 319.13 Наличными: 3005.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 127 20.10.2024 13:44 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30345 ФПД: 167963564814513 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T134448&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30345&fm=167963564814513&tin=02508201610067®Number=0000000000186857&sum=300500 [13:44:39]StoreToDocumentArchive [13:44:39]shift 114 fd 30345 [13:44:39]save to /storage/0114/doc_00030345 [13:44:39]save last doc name /storage/0114/doc_00030345 to /storage/kkm_last_doc_name [13:44:39]save OK [13:44:39]Clear old archive folders... [13:44:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:44:39]tlvbuf is 00C08BF0 [13:44:39]SAM_PROTO_ClearQueue [13:44:39]wFMCommunicate request_size=4 [13:44:39]MH_SAM_APDU [13:44:39]CAPDU: 80 09 00 00 [13:44:39]Write to MH i2c: E2 08 00 63 86 80 09 00 00 00 00 00 00 5B [13:44:39]Write i2c OK [13:44:39]MH_I2C_Read... [13:44:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:44:39]Read from MH i2c: E2 [13:44:39]MH_I2C_Read... [13:44:39]Read from MH i2c: E2 03 00 [13:44:39]MH_I2C_Read... [13:44:39]Read from MH i2c: E2 03 00 63 86 00 90 00 5D [13:44:39]RAPDU: 90 00 [13:44:39]wFMCommunicate OK [13:44:39]SAM_PROTO_ClearQueue done [13:44:39]KKMCreateOFDPacket [13:44:39]OFDProtocolAddRootSTLVToBuf [13:44:39]FM_MakeSignedData [13:44:39]FM_MakeSignedData [13:44:39]SAM_PROTO_SignData [13:44:39]wFMCommunicate request_size=4 [13:44:39]MH_SAM_APDU [13:44:39]CAPDU: 80 0D 01 02 [13:44:39]Write to MH i2c: E2 08 00 64 86 80 0D 01 02 00 00 00 00 63 [13:44:39]Write i2c OK [13:44:39]MH_I2C_Read... [13:44:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:44:39]Read from MH i2c: E2 [13:44:39]MH_I2C_Read... [13:44:39]Read from MH i2c: E2 03 00 [13:44:39]MH_I2C_Read... [13:44:39]Read from MH i2c: E2 03 00 64 86 00 90 00 5E [13:44:39]RAPDU: 90 00 [13:44:39]wFMCommunicate OK [13:44:39]wFMCommunicate request_size=255 [13:44:39]MH_SAM_APDU [13:44: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 9E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 DE 95 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 95 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 7C 00 00 00 00 07 04 06 00 D4 95 04 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 50 09 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 98 [13:44:39]Write to MH i2c: E2 02 01 65 86 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 9E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 DE 95 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 95 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 7C 00 00 00 00 07 04 06 00 D4 95 04 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 50 09 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 98 00 00 9E [13:44:39]Write i2c OK [13:44:39]MH_I2C_Read... [13:44:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:44:40]Read from MH i2c: E2 [13:44:40]MH_I2C_Read... [13:44:40]Read from MH i2c: E2 03 00 [13:44:40]MH_I2C_Read... [13:44:40]Read from MH i2c: E2 03 00 65 86 00 90 00 5F [13:44:40]RAPDU: 90 00 [13:44:40]wFMCommunicate OK [13:44:40]wFMCommunicate request_size=10 [13:44:40]MH_SAM_APDU [13:44:40]CAPDU: 80 0D 02 02 05 C3 10 9D B0 B1 [13:44:40]Write to MH i2c: E2 0D 00 66 86 80 0D 02 02 05 00 C3 10 9D B0 B1 00 00 41 [13:44:40]Write i2c OK [13:44:40]MH_I2C_Read... [13:44:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:44:40]Read from MH i2c: E2 [13:44:40]MH_I2C_Read... [13:44:40]Read from MH i2c: E2 03 00 [13:44:40]MH_I2C_Read... [13:44:40]Read from MH i2c: E2 03 00 66 86 00 90 00 60 [13:44:40]RAPDU: 90 00 [13:44:40]wFMCommunicate OK [13:44:40]wFMCommunicate request_size=4 [13:44:40]MH_SAM_APDU [13:44:40]CAPDU: 80 0D 03 02 [13:44:40]Write to MH i2c: E2 08 00 67 86 80 0D 03 02 00 00 00 00 68 [13:44:40]Write i2c OK [13:44:40]MH_I2C_Read... [13:44:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:44:40]Read from MH i2c: E2 [13:44:40]MH_I2C_Read... [13:44:40]Read from MH i2c: E2 0B 00 [13:44:40]MH_I2C_Read... [13:44:40]Read from MH i2c: E2 0B 00 67 86 00 A8 A0 60 C0 BD 15 7E 3C 90 00 5D [13:44:40]RAPDU: A8 A0 60 C0 BD 15 7E 3C 90 00 [13:44:40]wFMCommunicate OK [13:44:40]SAM_PROTO_SignData done [13:44:40]FM_MakeSignedData done [13:44:40]CreateOFDProtocolMessage [13:44:40]wFMCommunicate request_size=4 [13:44:40]MH_SAM_APDU [13:44:40]CAPDU: 80 11 00 00 [13:44:40]Write to MH i2c: E2 08 00 68 86 80 11 00 00 00 00 00 00 68 [13:44:40]Write i2c OK [13:44:40]MH_I2C_Read... [13:44:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:44:40]Read from MH i2c: E2 [13:44:40]MH_I2C_Read... [13:44:40]Read from MH i2c: E2 17 00 [13:44:40]MH_I2C_Read... [13:44:40]Read from MH i2c: E2 17 00 68 86 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 B6 [13:44:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [13:44:40]wFMCommunicate OK [13:44:40]CreateOFDProtocolMessage done [13:44:40]OFDSenderStorePacket 30345 [13:44:40]StoreOFDPacket docnum=30345 [13:44: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 ED 6A 07 01 6E 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 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 9E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 DE 95 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 95 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 7C 00 00 00 00 07 04 06 00 D4 95 04 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 50 09 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 98 C3 10 9D B0 B1 A8 A0 60 C0 BD 15 7E 3C [13:44:40]CheckFolder [13:44:40]dirname=/storage/ofd_packets [13:44:40]CheckFolder done [13:44:40]ProducePacketName [13:44:40]name=ofd_packets/00030345 [13:44:40]NVStorageSaveData ofd_packets/00030345 [13:44:40]File name is /storage/ofd_packets/00030345 [13:44:40]Write 301 bytes [13:44:40]NVStorageSaveData done [13:44:40]OFDSenderStorePacket done [13:44:40]KKMCreateOFDPacket done [13:44:40]NVStorageSaveData kkm_last_timestamp [13:44:40]File name is /storage/kkm_last_timestamp [13:44:40]Write 4 bytes [13:44:40]NVStorageSaveData done [13:44:40]ExternCall_PrintAddStr [13:44:40]wPrintStart [13:44:40]Write to MH i2c: 01 00 00 69 86 EF [13:44:40]Write i2c OK [13:44:40]MH_I2C_Read... [13:44:40]Read from MH i2c: 01 [13:44:40]MH_I2C_Read... [13:44:40]Read from MH i2c: 01 07 00 [13:44:40]MH_I2C_Read... [13:44:40]Read from MH i2c: 01 07 00 69 86 00 00 00 00 00 FF 0F 04 [13:44:40]RasterBufferAndPrint [13:44:40]line Счет N : (1)342737 [13:44:40]line ИНН: 02508201610067 [13:44:40]line Контрольно-Кассовый Чек [13:44:40]line ПРОДАЖА [13:44:40]line ТРК (МРК, ГНК) : 52 [13:44:40]line Товар: 2710124500 [13:44:40]line Аи-95-К-3 [13:44:40]line 40.500 * 74.20 [13:44:40]line = 3005.10 [13:44:40]line НДС 12% НСП 1% [13:44:40]line > о реализуемом товаре [13:44:40]line ОКРУГЛЕНИЕ: -0.10 [13:44:40]line ИТОГО: 3005.00 [13:44:40]line Внесено: 3005.00 [13:44:40]line СДАЧА: 0.00 [13:44:40]line НСП 1% : 26.59 [13:44:40]line НДС 12% : 319.13 [13:44:40]line Наличными: 3005.00 [13:44:40]line Безнал.: 0.00 [13:44:40]line Место: АЗС № 78 "Партнер Нефть" [13:44:40]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [13:44:40]line СНО: Общий режим [13:44:40]line Чек 127 20.10.2024 13:44 [13:44:40]line Смена: 114 ФФД: 1.0 [13:44:40]line ЗНМ: 0300000137 [13:44:40]line РНМ: 0000000000186857 [13:44:40]line Версия ККМ: v1.0 [13:44:40]line ФМ: 0000000002094219 [13:44:40]line ФД: 30345 [13:44:40]line ФПД: 167963564814513 [13:44:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T134448&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30345&fm=167963564814513&tin=02508201610067®Number=0000000000186857&sum=300500 [13:44:40]OFD Sender: Processing packet 30345 [packets to send 10, broken 9] [13:44:40]ProducePacketName [13:44:40]name=ofd_packets/00030345 [13:44:40]OFD Sender: To server: pG, [13:44:40]CommunicateWithHost lk.salyk.kg:30040 [13:44:40]ConnectInit lk.salyk.kg [13:44:40]written 0, free lines is 4095 [13:44:40]Connected sock=10 [13:44: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 ED 6A 07 01 6E 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 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 9E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 DE 95 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 95 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 7C 00 00 00 00 07 04 06 00 D4 95 04 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 50 09 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 98 C3 10 9D B0 B1 A8 A0 60 C0 BD 15 7E 3C [13:44: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 A4 3E 47 00 2B 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 89 76 00 00 F4 03 04 00 D4 B3 14 67 B6 04 01 00 00 92 D3 99 35 9D B3 AD 38 [13:44:40]CommunicateWithHost err = 0 [13:44:40]CheckOFDResponse [13:44:40]1017 (14) - 77093643461234 [13:44:40]1041 (16) - 0000000002094219 [13:44:40]1040 (4) - 30345 [13:44:40]1012 (4) - 20.10.2024 07:40 [13:44:40]1206 (1) - 0 [13:44:40]OFD Sender: Remove packet 30345 [13:44:40]ProducePacketName [13:44:40]name=ofd_packets/00030345 [13:44:40]NVStorageDeleteData [13:44:41]Write to MH i2c: 01 00 00 94 86 1A [13:44:41]Write i2c OK [13:44:41]MH_I2C_Read... [13:44:41]Read from MH i2c: 01 [13:44:41]MH_I2C_Read... [13:44:41]Read from MH i2c: 01 07 00 [13:44:41]MH_I2C_Read... [13:44:41]Read from MH i2c: 01 07 00 94 86 00 00 00 00 00 EC 0C 19 [13:44:41]RasterBufferAndPrint [13:44:41]line [13:44:41]line [13:44:41]line [13:44:41]line [13:44:41]line [13:44:41]written 0, free lines is 3314 [13:44:41]MH_Cut [13:44:41]Write to MH i2c: D1 01 00 9B 86 01 F3 [13:44:41]Write i2c OK [13:44:41]MH_I2C_Read... [13:44:41]Read from MH i2c: D1 [13:44:41]MH_I2C_Read... [13:44:41]Read from MH i2c: D1 01 00 [13:44:41]MH_I2C_Read... [13:44:41]Read from MH i2c: D1 01 00 9B 86 00 F2 [13:44:41]Write to MH i2c: 01 00 00 9C 86 22 [13:44:41]Write i2c OK [13:44:41]MH_I2C_Read... [13:44:41]OFD Sender: No OFD packet to send [13:44:41]*** Cut start [13:44:41]*** Partial cut [13:44:41]*** CUTSNS_PIN = 1 [13:44:41]*** CUTSNS_PIN = 0 [13:44:41]*** Brake cut motor [13:44:42]Read from MH i2c: 01 [13:44:42]MH_I2C_Read... [13:44:42]*** Stop cut motor [13:44:42]*** Cut end [13:44:42]Read from MH i2c: 01 07 00 [13:44:42]MH_I2C_Read... [13:44:42]Read from MH i2c: 01 07 00 9C 86 00 00 00 00 00 FF 0F 37 [13:44:42]process_action close_receipt done [13:44:42]requested_data is exist [13:44:42]produce_requested_data [13:44:42]requested_item fm.sn is exist - process it [13:44:42]wFMCommunicate request_size=4 [13:44:42]MH_SAM_APDU [13:44:42]CAPDU: 80 11 00 00 [13:44:42]Write to MH i2c: E2 08 00 9D 86 80 11 00 00 00 00 00 00 9D [13:44:42]Write i2c OK [13:44:42]MH_I2C_Read... [13:44:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:44:42]Read from MH i2c: E2 [13:44:42]MH_I2C_Read... [13:44:42]Read from MH i2c: E2 17 00 [13:44:42]MH_I2C_Read... [13:44:42]Read from MH i2c: E2 17 00 9D 86 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 EB [13:44:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [13:44:42]wFMCommunicate OK [13:44:42]requested_item fd.num is exist - process it [13:44:42]SAM_PROTO_GetFieldsCounters [13:44:42]wFMCommunicate request_size=4 [13:44:42]MH_SAM_APDU [13:44:42]CAPDU: 80 13 00 00 [13:44:42]Write to MH i2c: E2 08 00 9E 86 80 13 00 00 00 00 00 00 A0 [13:44:42]Write i2c OK [13:44:42]MH_I2C_Read... [13:44:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:44:42]Read from MH i2c: E2 [13:44:42]MH_I2C_Read... [13:44:42]Read from MH i2c: E2 62 00 [13:44:42]MH_I2C_Read... [13:44:42]Read from MH i2c: E2 62 00 9E 86 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 B4 [13:44: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 89 76 00 00 0E 04 04 00 72 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 [13:44:42]wFMCommunicate OK [13:44:42]SAM_PROTO_GetFieldsCounters done [13:44:42]requested_item shift.num is exist - process it [13:44:42]requested_item shift.opened is exist - process it [13:44:42]req_shift_opened [13:44:42]FM_GetShiftState [13:44:42]SAM_PROTO_GetShiftState [13:44:42]wFMCommunicate request_size=4 [13:44:42]MH_SAM_APDU [13:44:42]CAPDU: 80 13 01 00 [13:44:42]Write to MH i2c: E2 08 00 9F 86 80 13 01 00 00 00 00 00 A2 [13:44:42]Write i2c OK [13:44:42]MH_I2C_Read... [13:44:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:44:42]Read from MH i2c: E2 [13:44:42]MH_I2C_Read... [13:44:42]Read from MH i2c: E2 0E 00 [13:44:42]MH_I2C_Read... [13:44:42]Read from MH i2c: E2 0E 00 9F 86 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 88 [13:44:42]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [13:44:42]wFMCommunicate OK [13:44:42]SAM_PROTO_GetShiftState done [13:44:42]FM_GetShiftState done [13:44:42]req_shift_opened done [13:44:42]requested_item shift.open_date is exist - process it [13:44:42]req_shift_open_date [13:44:42]req_shift_open_date done [13:44:42]produce_requested_data done [13:44:42]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30345,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [13:44:42]process_action_free close_receipt [13:44:42]json_value_free [13:44:42]json_value_free done [13:44:42]process_json_proto returns [13:44:42]Send response to host [13:44:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30345,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [13:44:42]free response buf [13:44:42]execute_script done [13:44:42]execute_script returns [13:44:42]free content buf [13:44:42]Sock 9.Close socket [13:44:42]Sock 9.Thread stoped [13:44:42]accept exits with 7 [13:44:42]New connection [13:44:42]New thread 3067514212 created [13:44:42]Thread 3067370852 joined [13:44:42]Waiting for new connection... [13:44:42] Sock 7.Parse request [13:44:42]Sock 7.Check first char [13:44:42]Sock 7.First char is OK [13:44:42]request: POST /json_proto HTTP/1.0 [13:44:42]Method: POST [13:44:42]URL: /json_proto [13:44:42]Method is POST - this is cgi request [13:44:42]url: /json_proto [13:44:42]query_string will be loaded in cgi processing [13:44:42]execute_cgi json_proto POST (null) [13:44:42]execute_cgi path=json_proto method=POST [13:44:42]POST find Content-Length [13:44:42]Host: 172.17.51.3:8080 [13:44:42]Content-Length: 846 [13:44:42]Content-Type: application/json [13:44:42] [13:44:42]POST finish read [13:44:42]Found Content-Length = 846 [13:44:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342738", "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 }]} ], "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.26 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:44:42]execute_script... [13:44: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)342738", "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 }]} ], "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.26 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:44:42]POST & json_proto [13:44:42]process_json_proto [13:44:42]json parsed OK: [13:44:42]protocol is kg_v1.0 [13:44:42]action value=close_receipt [13:44:42]process_action close_receipt [13:44:42]cmd_close_receipt [13:44:42]MH_GetDate [13:44:42]Write to MH i2c: F0 00 00 A0 86 15 [13:44:42]Write i2c OK [13:44:42]MH_I2C_Read... [13:44:42]Read from MH i2c: F0 [13:44:42]MH_I2C_Read... [13:44:42]Read from MH i2c: F0 09 00 [13:44:42]MH_I2C_Read... [13:44:42]Read from MH i2c: F0 09 00 A0 86 00 54 09 15 67 04 C1 95 66 B7 [13:44:42]GetLastDocTimeStamp 1729431888 [13:44:42]current date 1729431892 [13:44:42]FM_GetShiftState [13:44:42]SAM_PROTO_GetShiftState [13:44:42]wFMCommunicate request_size=4 [13:44:42]MH_SAM_APDU [13:44:42]CAPDU: 80 13 01 00 [13:44:42]Write to MH i2c: E2 08 00 A1 86 80 13 01 00 00 00 00 00 A4 [13:44:42]Write i2c OK [13:44:42]MH_I2C_Read... [13:44:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:44:43]Read from MH i2c: E2 [13:44:43]MH_I2C_Read... [13:44:43]Read from MH i2c: E2 0E 00 [13:44:43]MH_I2C_Read... [13:44:43]Read from MH i2c: E2 0E 00 A1 86 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 8A [13:44:43]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [13:44:43]wFMCommunicate OK [13:44:43]SAM_PROTO_GetShiftState done [13:44:43]FM_GetShiftState done [13:44:43]opened in 1729384718 [13:44:43]opened+sec_in_day 1729471118 [13:44:43]quantity*price = 50025 [13:44:43]sum+1 = 50027 [13:44:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.26 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 0.00 Безнал.: 500.26 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 128 20.10.2024 13:44 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Платежная система: АКБ Кыргызстан ФМ: 0000000002094219 ФД: 30346 ФПД: 185176111881054 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T134452&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30346&fm=185176111881054&tin=02508201610067®Number=0000000000186857&sum=50026 [13:44:44]StoreToDocumentArchive [13:44:44]shift 114 fd 30346 [13:44:44]save to /storage/0114/doc_00030346 [13:44:44]save last doc name /storage/0114/doc_00030346 to /storage/kkm_last_doc_name [13:44:44]save OK [13:44:44]Clear old archive folders... [13:44:44]ProcessDocumentItem done err = 0, tmpTLVsize=257 [13:44:44]tlvbuf is 00AC5DA0 [13:44:44]SAM_PROTO_ClearQueue [13:44:44]wFMCommunicate request_size=4 [13:44:44]MH_SAM_APDU [13:44:44]CAPDU: 80 09 00 00 [13:44:44]Write to MH i2c: E2 08 00 AE 86 80 09 00 00 00 00 00 00 A6 [13:44:44]Write i2c OK [13:44:44]MH_I2C_Read... [13:44:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:44:44]Read from MH i2c: E2 [13:44:44]MH_I2C_Read... [13:44:44]Read from MH i2c: E2 03 00 [13:44:44]MH_I2C_Read... [13:44:44]Read from MH i2c: E2 03 00 AE 86 00 90 00 A8 [13:44:44]RAPDU: 90 00 [13:44:44]wFMCommunicate OK [13:44:44]SAM_PROTO_ClearQueue done [13:44:44]KKMCreateOFDPacket [13:44:44]OFDProtocolAddRootSTLVToBuf [13:44:44]FM_MakeSignedData [13:44:44]FM_MakeSignedData [13:44:44]SAM_PROTO_SignData [13:44:44]wFMCommunicate request_size=4 [13:44:44]MH_SAM_APDU [13:44:44]CAPDU: 80 0D 01 02 [13:44:44]Write to MH i2c: E2 08 00 AF 86 80 0D 01 02 00 00 00 00 AE [13:44:44]Write i2c OK [13:44:44]MH_I2C_Read... [13:44:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:44:44]Read from MH i2c: E2 [13:44:44]MH_I2C_Read... [13:44:44]Read from MH i2c: E2 03 00 [13:44:44]MH_I2C_Read... [13:44:44]Read from MH i2c: E2 03 00 AF 86 00 90 00 A9 [13:44:44]RAPDU: 90 00 [13:44:44]wFMCommunicate OK [13:44:44]wFMCommunicate request_size=255 [13:44:44]MH_SAM_APDU [13:44: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 6A C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6A C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 54 09 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 [13:44:44]Write to MH i2c: E2 02 01 B0 86 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 6A C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6A C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 54 09 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 00 B7 [13:44:44]Write i2c OK [13:44:44]MH_I2C_Read... [13:44:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:44:44]Read from MH i2c: E2 [13:44:44]MH_I2C_Read... [13:44:44]Read from MH i2c: E2 03 00 [13:44:44]MH_I2C_Read... [13:44:44]Read from MH i2c: E2 03 00 B0 86 00 90 00 AA [13:44:44]RAPDU: 90 00 [13:44:44]wFMCommunicate OK [13:44:44]wFMCommunicate request_size=16 [13:44:44]MH_SAM_APDU [13:44:44]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 A8 6A AC 5E 9B 5E [13:44:44]Write to MH i2c: E2 13 00 B1 86 80 0D 02 02 0B 00 00 35 04 06 00 A8 6A AC 5E 9B 5E 00 00 1B [13:44:44]Write i2c OK [13:44:44]MH_I2C_Read... [13:44:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:44:44]Read from MH i2c: E2 [13:44:44]MH_I2C_Read... [13:44:44]Read from MH i2c: E2 03 00 [13:44:44]MH_I2C_Read... [13:44:44]Read from MH i2c: E2 03 00 B1 86 00 90 00 AB [13:44:44]RAPDU: 90 00 [13:44:44]wFMCommunicate OK [13:44:44]wFMCommunicate request_size=4 [13:44:44]MH_SAM_APDU [13:44:44]CAPDU: 80 0D 03 02 [13:44:44]Write to MH i2c: E2 08 00 B2 86 80 0D 03 02 00 00 00 00 B3 [13:44:44]Write i2c OK [13:44:44]MH_I2C_Read... [13:44:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:44:44]Read from MH i2c: E2 [13:44:44]MH_I2C_Read... [13:44:44]Read from MH i2c: E2 0B 00 [13:44:44]MH_I2C_Read... [13:44:44]Read from MH i2c: E2 0B 00 B2 86 00 BD 87 42 F5 76 A6 12 EC 90 00 49 [13:44:44]RAPDU: BD 87 42 F5 76 A6 12 EC 90 00 [13:44:44]wFMCommunicate OK [13:44:44]SAM_PROTO_SignData done [13:44:44]FM_MakeSignedData done [13:44:44]CreateOFDProtocolMessage [13:44:44]wFMCommunicate request_size=4 [13:44:44]MH_SAM_APDU [13:44:44]CAPDU: 80 11 00 00 [13:44:44]Write to MH i2c: E2 08 00 B3 86 80 11 00 00 00 00 00 00 B3 [13:44:44]Write i2c OK [13:44:44]MH_I2C_Read... [13:44:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:44:45]Read from MH i2c: E2 [13:44:45]MH_I2C_Read... [13:44:45]Read from MH i2c: E2 17 00 [13:44:45]MH_I2C_Read... [13:44:45]Read from MH i2c: E2 17 00 B3 86 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 01 [13:44:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [13:44:45]wFMCommunicate OK [13:44:45]CreateOFDProtocolMessage done [13:44:45]OFDSenderStorePacket 30346 [13:44:45]StoreOFDPacket docnum=30346 [13:44: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 B3 3F 0D 01 D0 18 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 6A C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6A C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 54 09 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 A8 6A AC 5E 9B 5E BD 87 42 F5 76 A6 12 EC [13:44:45]CheckFolder [13:44:45]dirname=/storage/ofd_packets [13:44:45]CheckFolder done [13:44:45]ProducePacketName [13:44:45]name=ofd_packets/00030346 [13:44:45]NVStorageSaveData ofd_packets/00030346 [13:44:45]File name is /storage/ofd_packets/00030346 [13:44:45]Write 307 bytes [13:44:45]NVStorageSaveData done [13:44:45]OFDSenderStorePacket done [13:44:45]KKMCreateOFDPacket done [13:44:45]NVStorageSaveData kkm_last_timestamp [13:44:45]File name is /storage/kkm_last_timestamp [13:44:45]Write 4 bytes [13:44:45]NVStorageSaveData done [13:44:45]ExternCall_PrintAddStr [13:44:45]wPrintStart [13:44:45]Write to MH i2c: 01 00 00 B4 86 3A [13:44:45]Write i2c OK [13:44:45]MH_I2C_Read... [13:44:45]Read from MH i2c: 01 [13:44:45]MH_I2C_Read... [13:44:45]Read from MH i2c: 01 07 00 [13:44:45]MH_I2C_Read... [13:44:45]Read from MH i2c: 01 07 00 B4 86 00 00 00 00 00 FF 0F 4F [13:44:45]RasterBufferAndPrint [13:44:45]line Счет N : (1)342738 [13:44:45]line ИНН: 02508201610067 [13:44:45]line Контрольно-Кассовый Чек [13:44:45]line ПРОДАЖА [13:44:45]line ТРК (МРК, ГНК) : 61 [13:44:45]line Товар: 2710194210 [13:44:45]line D-ENERGY Дт-К-2 [13:44:45]line 6.480 * 77.20 [13:44:45]line = 500.26 [13:44:45]line НДС 12% НСП 1% [13:44:45]line > о реализуемом товаре [13:44:45]line ИТОГО: 500.26 [13:44:45]line НСП 1% : 4.43 [13:44:45]line НДС 12% : 53.12 [13:44:45]line Наличными: 0.00 [13:44:45]line Безнал.: 500.26 [13:44:45]line Место: АЗС № 78 "Партнер Нефть" [13:44:45]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [13:44:45]line СНО: Общий режим [13:44:45]line Чек 128 20.10.2024 13:44 [13:44:45]line Смена: 114 ФФД: 1.0 [13:44:45]line ЗНМ: 0300000137 [13:44:45]line РНМ: 0000000000186857 [13:44:45]line Версия ККМ: v1.0 [13:44:45]line Платежная система: АКБ Кыргызстан [13:44:45]line ФМ: 0000000002094219 [13:44:45]line ФД: 30346 [13:44:45]line ФПД: 185176111881054 [13:44:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T134452&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30346&fm=185176111881054&tin=02508201610067®Number=0000000000186857&sum=50026 [13:44:45]written 0, free lines is 4095 [13:44:45]OFD Sender: Processing packet 30346 [packets to send 10, broken 9] [13:44:45]ProducePacketName [13:44:45]name=ofd_packets/00030346 [13:44:45]OFD Sender: To server: pG, [13:44:45]CommunicateWithHost lk.salyk.kg:30040 [13:44:45]ConnectInit lk.salyk.kg [13:44:45]Connected sock=10 [13:44: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 B3 3F 0D 01 D0 18 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 6A C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6A C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 54 09 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 A8 6A AC 5E 9B 5E BD 87 42 F5 76 A6 12 EC [13:44: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 D7 FF 47 00 05 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 8A 76 00 00 F4 03 04 00 D8 B3 14 67 B6 04 01 00 00 18 A3 EE 14 9B 8A EA 03 [13:44:45]CommunicateWithHost err = 0 [13:44:45]CheckOFDResponse [13:44:45]1017 (14) - 77093643461234 [13:44:45]1041 (16) - 0000000002094219 [13:44:45]1040 (4) - 30346 [13:44:45]1012 (4) - 20.10.2024 07:40 [13:44:45]1206 (1) - 0 [13:44:45]OFD Sender: Remove packet 30346 [13:44:45]ProducePacketName [13:44:45]name=ofd_packets/00030346 [13:44:45]NVStorageDeleteData [13:44:45]Write to MH i2c: 01 00 00 DE 86 64 [13:44:45]Write i2c OK [13:44:45]MH_I2C_Read... [13:44:45]Read from MH i2c: 01 [13:44:45]MH_I2C_Read... [13:44:45]Read from MH i2c: 01 07 00 [13:44:45]MH_I2C_Read... [13:44:45]Read from MH i2c: 01 07 00 DE 86 00 00 00 00 00 09 0D 81 [13:44:45]RasterBufferAndPrint [13:44:45]line [13:44:45]line [13:44:45]line [13:44:45]line [13:44:45]line [13:44:45]written 0, free lines is 3350 [13:44:45]MH_Cut [13:44:45]Write to MH i2c: D1 01 00 E5 86 01 3D [13:44:45]Write i2c OK [13:44:45]MH_I2C_Read... [13:44:45]Read from MH i2c: D1 [13:44:45]MH_I2C_Read... [13:44:45]Read from MH i2c: D1 01 00 [13:44:45]MH_I2C_Read... [13:44:45]Read from MH i2c: D1 01 00 E5 86 00 3C [13:44:45]Write to MH i2c: 01 00 00 E6 86 6C [13:44:45]Write i2c OK [13:44:45]MH_I2C_Read... [13:44:45]OFD Sender: No OFD packet to send [13:44:46]*** Cut start [13:44:46]*** Partial cut [13:44:46]*** CUTSNS_PIN = 1 [13:44:46]*** CUTSNS_PIN = 0 [13:44:46]*** Brake cut motor [13:44:46]Read from MH i2c: 01 [13:44:46]MH_I2C_Read... [13:44:46]*** Stop cut motor [13:44:46]*** Cut end [13:44:46]Read from MH i2c: 01 07 00 [13:44:46]MH_I2C_Read... [13:44:46]Read from MH i2c: 01 07 00 E6 86 00 00 00 00 00 FF 0F 81 [13:44:46]process_action close_receipt done [13:44:46]requested_data is exist [13:44:46]produce_requested_data [13:44:46]requested_item fm.sn is exist - process it [13:44:46]wFMCommunicate request_size=4 [13:44:46]MH_SAM_APDU [13:44:46]CAPDU: 80 11 00 00 [13:44:46]Write to MH i2c: E2 08 00 E7 86 80 11 00 00 00 00 00 00 E7 [13:44:46]Write i2c OK [13:44:46]MH_I2C_Read... [13:44:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:44:46]Read from MH i2c: E2 [13:44:46]MH_I2C_Read... [13:44:46]Read from MH i2c: E2 17 00 [13:44:46]MH_I2C_Read... [13:44:46]Read from MH i2c: E2 17 00 E7 86 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 35 [13:44: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:44:46]wFMCommunicate OK [13:44:46]requested_item fd.num is exist - process it [13:44:46]SAM_PROTO_GetFieldsCounters [13:44:46]wFMCommunicate request_size=4 [13:44:46]MH_SAM_APDU [13:44:46]CAPDU: 80 13 00 00 [13:44:46]Write to MH i2c: E2 08 00 E8 86 80 13 00 00 00 00 00 00 EA [13:44:46]Write i2c OK [13:44:46]MH_I2C_Read... [13:44:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:44:46]Read from MH i2c: E2 [13:44:46]MH_I2C_Read... [13:44:46]Read from MH i2c: E2 62 00 [13:44:46]MH_I2C_Read... [13:44:46]Read from MH i2c: E2 62 00 E8 86 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 02 [13:44: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 8A 76 00 00 0E 04 04 00 72 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 [13:44:47]wFMCommunicate OK [13:44:47]SAM_PROTO_GetFieldsCounters done [13:44:47]requested_item shift.num is exist - process it [13:44:47]requested_item shift.opened is exist - process it [13:44:47]req_shift_opened [13:44:47]FM_GetShiftState [13:44:47]SAM_PROTO_GetShiftState [13:44:47]wFMCommunicate request_size=4 [13:44:47]MH_SAM_APDU [13:44:47]CAPDU: 80 13 01 00 [13:44:47]Write to MH i2c: E2 08 00 E9 86 80 13 01 00 00 00 00 00 EC [13:44:47]Write i2c OK [13:44:47]MH_I2C_Read... [13:44:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:44:47]Read from MH i2c: E2 [13:44:47]MH_I2C_Read... [13:44:47]Read from MH i2c: E2 0E 00 [13:44:47]MH_I2C_Read... [13:44:47]Read from MH i2c: E2 0E 00 E9 86 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 D2 [13:44:47]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [13:44:47]wFMCommunicate OK [13:44:47]SAM_PROTO_GetShiftState done [13:44:47]FM_GetShiftState done [13:44:47]req_shift_opened done [13:44:47]requested_item shift.open_date is exist - process it [13:44:47]req_shift_open_date [13:44:47]req_shift_open_date done [13:44:47]produce_requested_data done [13:44:47]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30346,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [13:44:47]process_action_free close_receipt [13:44:47]json_value_free [13:44:47]json_value_free done [13:44:47]process_json_proto returns [13:44:47]Send response to host [13:44:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30346,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [13:44:47]free response buf [13:44:47]execute_script done [13:44:47]execute_script returns [13:44:47]free content buf [13:44:47]Sock 7.Close socket [13:44:47]Sock 7.Thread stoped [13:44:50]OFD Sender: No OFD packet to send [13:44:55]OFD Sender: No OFD packet to send [13:45:00]OFD Sender: No OFD packet to send [13:45:05]OFD Sender: No OFD packet to send [13:45:11]OFD Sender: No OFD packet to send [13:45:16]OFD Sender: No OFD packet to send [13:45:21]OFD Sender: No OFD packet to send [13:45:26]OFD Sender: No OFD packet to send [13:45:31]OFD Sender: No OFD packet to send [13:45:36]OFD Sender: No OFD packet to send [13:45:41]OFD Sender: No OFD packet to send [13:45:46]OFD Sender: No OFD packet to send [13:45:51]OFD Sender: No OFD packet to send [13:45:56]OFD Sender: No OFD packet to send [13:46:01]OFD Sender: No OFD packet to send [13:46:06]OFD Sender: No OFD packet to send [13:46:11]OFD Sender: No OFD packet to send [13:46:16]OFD Sender: No OFD packet to send [13:46:21]OFD Sender: No OFD packet to send [13:46:26]OFD Sender: No OFD packet to send [13:46:31]OFD Sender: No OFD packet to send [13:46:36]OFD Sender: No OFD packet to send [13:46:41]OFD Sender: No OFD packet to send [13:46:46]OFD Sender: No OFD packet to send [13:46:51]OFD Sender: No OFD packet to send [13:46:56]OFD Sender: No OFD packet to send [13:47:01]OFD Sender: No OFD packet to send [13:47:06]OFD Sender: No OFD packet to send [13:47:11]OFD Sender: No OFD packet to send [13:47:16]OFD Sender: No OFD packet to send [13:47:21]OFD Sender: No OFD packet to send [13:47:26]OFD Sender: No OFD packet to send [13:47:31]OFD Sender: No OFD packet to send [13:47:36]OFD Sender: No OFD packet to send [13:47:41]OFD Sender: No OFD packet to send [13:47:46]OFD Sender: No OFD packet to send [13:47:51]OFD Sender: No OFD packet to send [13:47:56]OFD Sender: No OFD packet to send [13:48:01]OFD Sender: No OFD packet to send [13:48:06]OFD Sender: No OFD packet to send [13:48:11]OFD Sender: No OFD packet to send [13:48:16]OFD Sender: No OFD packet to send [13:48:21]OFD Sender: No OFD packet to send [13:48:26]OFD Sender: No OFD packet to send [13:48:31]OFD Sender: No OFD packet to send [13:48:36]OFD Sender: No OFD packet to send [13:48:41]OFD Sender: No OFD packet to send [13:48:46]OFD Sender: No OFD packet to send [13:48:51]OFD Sender: No OFD packet to send [13:48:56]OFD Sender: No OFD packet to send [13:49:01]OFD Sender: No OFD packet to send [13:49:06]OFD Sender: No OFD packet to send [13:49:11]OFD Sender: No OFD packet to send [13:49:16]OFD Sender: No OFD packet to send [13:49:21]OFD Sender: No OFD packet to send [13:49:26]OFD Sender: No OFD packet to send [13:49:31]OFD Sender: No OFD packet to send [13:49:36]OFD Sender: No OFD packet to send [13:49:41]OFD Sender: No OFD packet to send [13:49:46]OFD Sender: No OFD packet to send [13:49:51]OFD Sender: No OFD packet to send [13:49:56]OFD Sender: No OFD packet to send [13:50:01]OFD Sender: No OFD packet to send [13:50:06]OFD Sender: No OFD packet to send [13:50:11]OFD Sender: No OFD packet to send [13:50:16]OFD Sender: No OFD packet to send [13:50:21]OFD Sender: No OFD packet to send [13:50:26]OFD Sender: No OFD packet to send [13:50:31]OFD Sender: No OFD packet to send [13:50:36]OFD Sender: No OFD packet to send [13:50:41]OFD Sender: No OFD packet to send [13:50:46]OFD Sender: No OFD packet to send [13:50:51]OFD Sender: No OFD packet to send [13:50:56]OFD Sender: No OFD packet to send [13:51:01]OFD Sender: No OFD packet to send [13:51:06]OFD Sender: No OFD packet to send [13:51:11]OFD Sender: No OFD packet to send [13:51:16]OFD Sender: No OFD packet to send [13:51:20]accept exits with 9 [13:51:20]New connection [13:51:20]New thread 3067370852 created [13:51:20]Thread 3067514212 joined [13:51:20]Waiting for new connection... [13:51:20] Sock 9.Parse request [13:51:20]Sock 9.Check first char [13:51:20]Sock 9.First char is OK [13:51:20]request: POST /json_proto HTTP/1.0 [13:51:20]Method: POST [13:51:20]URL: /json_proto [13:51:20]Method is POST - this is cgi request [13:51:20]url: /json_proto [13:51:20]query_string will be loaded in cgi processing [13:51:20]execute_cgi json_proto POST (null) [13:51:20]execute_cgi path=json_proto method=POST [13:51:20]POST find Content-Length [13:51:20]Host: 172.17.51.3:8080 [13:51:20]Content-Length: 679 [13:51:20]Content-Type: application/json [13:51:20] [13:51:20]POST finish read [13:51:20]Found Content-Length = 679 [13:51:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342739", "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" ] } } [13:51:20]execute_script... [13:51: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)342739", "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" ] } } [13:51:20]POST & json_proto [13:51:20]process_json_proto [13:51:20]json parsed OK: [13:51:20]protocol is kg_v1.0 [13:51:20]action value=close_receipt [13:51:20]process_action close_receipt [13:51:20]cmd_close_receipt [13:51:20]MH_GetDate [13:51:20]Write to MH i2c: F0 00 00 EA 86 5F [13:51:20]Write i2c OK [13:51:20]MH_I2C_Read... [13:51:20]Read from MH i2c: F0 [13:51:20]MH_I2C_Read... [13:51:20]Read from MH i2c: F0 09 00 [13:51:20]MH_I2C_Read... [13:51:20]Read from MH i2c: F0 09 00 EA 86 00 E1 0A 15 67 04 C1 95 66 8F [13:51:20]GetLastDocTimeStamp 1729431892 [13:51:20]current date 1729432289 [13:51:20]FM_GetShiftState [13:51:20]SAM_PROTO_GetShiftState [13:51:20]wFMCommunicate request_size=4 [13:51:20]MH_SAM_APDU [13:51:20]CAPDU: 80 13 01 00 [13:51:20]Write to MH i2c: E2 08 00 EB 86 80 13 01 00 00 00 00 00 EE [13:51:20]Write i2c OK [13:51:20]MH_I2C_Read... [13:51:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:51:20]Read from MH i2c: E2 [13:51:20]MH_I2C_Read... [13:51:20]Read from MH i2c: E2 0E 00 [13:51:20]MH_I2C_Read... [13:51:20]Read from MH i2c: E2 0E 00 EB 86 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 D4 [13:51:20]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [13:51:20]wFMCommunicate OK [13:51:20]SAM_PROTO_GetShiftState done [13:51:20]FM_GetShiftState done [13:51:20]opened in 1729384718 [13:51:20]opened+sec_in_day 1729471118 [13:51:20]quantity*price = 100050 [13:51:20]sum+1 = 100052 [13:51: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 СНО: Общий режим Чек 129 20.10.2024 13:51 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30347 ФПД: 183342390951781 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T135129&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30347&fm=183342390951781&tin=02508201610067®Number=0000000000186857&sum=100000 [13:51:21]StoreToDocumentArchive [13:51:21]shift 114 fd 30347 [13:51:21]save to /storage/0114/doc_00030347 [13:51:21]save last doc name /storage/0114/doc_00030347 to /storage/kkm_last_doc_name [13:51:21]save OK [13:51:21]Clear old archive folders... [13:51:21]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:51:21]tlvbuf is B6FDE550 [13:51:21]SAM_PROTO_ClearQueue [13:51:21]wFMCommunicate request_size=4 [13:51:21]MH_SAM_APDU [13:51:21]CAPDU: 80 09 00 00 [13:51:21]Write to MH i2c: E2 08 00 F8 86 80 09 00 00 00 00 00 00 F0 [13:51:21]Write i2c OK [13:51:21]MH_I2C_Read... [13:51:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:51:21]Read from MH i2c: E2 [13:51:21]MH_I2C_Read... [13:51:21]Read from MH i2c: E2 03 00 [13:51:21]MH_I2C_Read... [13:51:21]Read from MH i2c: E2 03 00 F8 86 00 90 00 F2 [13:51:21]RAPDU: 90 00 [13:51:21]wFMCommunicate OK [13:51:21]SAM_PROTO_ClearQueue done [13:51:21]KKMCreateOFDPacket [13:51:21]OFDProtocolAddRootSTLVToBuf [13:51:21]FM_MakeSignedData [13:51:21]FM_MakeSignedData [13:51:21]SAM_PROTO_SignData [13:51:21]wFMCommunicate request_size=4 [13:51:21]MH_SAM_APDU [13:51:21]CAPDU: 80 0D 01 02 [13:51:21]Write to MH i2c: E2 08 00 F9 86 80 0D 01 02 00 00 00 00 F8 [13:51:21]Write i2c OK [13:51:21]MH_I2C_Read... [13:51:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:51:21]Read from MH i2c: E2 [13:51:21]MH_I2C_Read... [13:51:21]Read from MH i2c: E2 03 00 [13:51:21]MH_I2C_Read... [13:51:21]Read from MH i2c: E2 03 00 F9 86 00 90 00 F3 [13:51:21]RAPDU: 90 00 [13:51:21]wFMCommunicate OK [13:51:21]wFMCommunicate request_size=255 [13:51:21]MH_SAM_APDU [13:51: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 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 81 00 00 00 F4 03 04 00 E1 0A 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 A6 BF BA 15 [13:51:21]Write to MH i2c: E2 02 01 FA 86 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 81 00 00 00 F4 03 04 00 E1 0A 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 A6 BF BA 15 00 00 0E [13:51:21]Write i2c OK [13:51:21]MH_I2C_Read... [13:51:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:51:21]Read from MH i2c: E2 [13:51:21]MH_I2C_Read... [13:51:21]Read from MH i2c: E2 03 00 [13:51:21]MH_I2C_Read... [13:51:21]Read from MH i2c: E2 03 00 FA 86 00 90 00 F4 [13:51:21]RAPDU: 90 00 [13:51:21]wFMCommunicate OK [13:51:21]wFMCommunicate request_size=7 [13:51:21]MH_SAM_APDU [13:51:21]CAPDU: 80 0D 02 02 02 BF 65 [13:51:21]Write to MH i2c: E2 0A 00 FB 86 80 0D 02 02 02 00 BF 65 00 00 23 [13:51:21]Write i2c OK [13:51:21]MH_I2C_Read... [13:51:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:51:21]Read from MH i2c: E2 [13:51:21]MH_I2C_Read... [13:51:21]Read from MH i2c: E2 03 00 [13:51:21]MH_I2C_Read... [13:51:21]Read from MH i2c: E2 03 00 FB 86 00 90 00 F5 [13:51:21]RAPDU: 90 00 [13:51:21]wFMCommunicate OK [13:51:21]wFMCommunicate request_size=4 [13:51:21]MH_SAM_APDU [13:51:21]CAPDU: 80 0D 03 02 [13:51:21]Write to MH i2c: E2 08 00 FC 86 80 0D 03 02 00 00 00 00 FD [13:51:21]Write i2c OK [13:51:21]MH_I2C_Read... [13:51:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:51:21]Read from MH i2c: E2 [13:51:21]MH_I2C_Read... [13:51:21]Read from MH i2c: E2 0B 00 [13:51:21]MH_I2C_Read... [13:51:21]Read from MH i2c: E2 0B 00 FC 86 00 6C 66 92 69 DA A5 3F FF 90 00 88 [13:51:21]RAPDU: 6C 66 92 69 DA A5 3F FF 90 00 [13:51:21]wFMCommunicate OK [13:51:21]SAM_PROTO_SignData done [13:51:21]FM_MakeSignedData done [13:51:21]CreateOFDProtocolMessage [13:51:21]wFMCommunicate request_size=4 [13:51:21]MH_SAM_APDU [13:51:21]CAPDU: 80 11 00 00 [13:51:21]Write to MH i2c: E2 08 00 FD 86 80 11 00 00 00 00 00 00 FD [13:51:21]Write i2c OK [13:51:21]MH_I2C_Read... [13:51:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:51:21]Read from MH i2c: E2 [13:51:21]MH_I2C_Read... [13:51:21]Read from MH i2c: E2 17 00 [13:51:21]MH_I2C_Read... [13:51:21]Read from MH i2c: E2 17 00 FD 86 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:51:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [13:51:21]wFMCommunicate OK [13:51:21]CreateOFDProtocolMessage done [13:51:21]OFDSenderStorePacket 30347 [13:51:21]StoreOFDPacket docnum=30347 [13:51: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 0C 01 00 00 DC 75 04 01 08 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 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 81 00 00 00 F4 03 04 00 E1 0A 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 A6 BF BA 15 BF 65 6C 66 92 69 DA A5 3F FF [13:51:21]CheckFolder [13:51:21]dirname=/storage/ofd_packets [13:51:21]CheckFolder done [13:51:21]ProducePacketName [13:51:21]name=ofd_packets/00030347 [13:51:21]NVStorageSaveData ofd_packets/00030347 [13:51:21]File name is /storage/ofd_packets/00030347 [13:51:21]Write 298 bytes [13:51:21]NVStorageSaveData done [13:51:21]OFDSenderStorePacket done [13:51:21]KKMCreateOFDPacket done [13:51:21]NVStorageSaveData kkm_last_timestamp [13:51:21]File name is /storage/kkm_last_timestamp [13:51:21]Write 4 bytes [13:51:21]NVStorageSaveData done [13:51:21]ExternCall_PrintAddStr [13:51:21]wPrintStart [13:51:21]Write to MH i2c: 01 00 00 FE 86 84 [13:51:21]Write i2c OK [13:51:21]MH_I2C_Read... [13:51:21]Read from MH i2c: 01 [13:51:21]MH_I2C_Read... [13:51:21]Read from MH i2c: 01 07 00 [13:51:21]MH_I2C_Read... [13:51:21]Read from MH i2c: 01 07 00 FE 86 00 00 00 00 00 FF 0F 99 [13:51:21]RasterBufferAndPrint [13:51:21]line Счет N : (1)342739 [13:51:21]line ИНН: 02508201610067 [13:51:21]line Контрольно-Кассовый Чек [13:51:21]line ПРОДАЖА [13:51:21]line ТРК (МРК, ГНК) : 64 [13:51:21]line Товар: 2710194210 [13:51:21]line ДТ-К-2 [13:51:21]line 13.130 * 76.20 [13:51:21]line = 1000.51 [13:51:21]line НДС 12% НСП 1% [13:51:21]line > о реализуемом товаре [13:51:21]line ОКРУГЛЕНИЕ: -0.51 [13:51:21]line ИТОГО: 1000.00 [13:51:21]line Внесено: 1000.00 [13:51:21]line СДАЧА: 0.00 [13:51:21]line НСП 1% : 8.85 [13:51:21]line НДС 12% : 106.25 [13:51:21]line Наличными: 1000.00 [13:51:21]line Безнал.: 0.00 [13:51:21]line Место: АЗС № 78 "Партнер Нефть" [13:51:21]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [13:51:21]line СНО: Общий режим [13:51:21]line Чек 129 20.10.2024 13:51 [13:51:21]line Смена: 114 ФФД: 1.0 [13:51:21]line ЗНМ: 0300000137 [13:51:21]line РНМ: 0000000000186857 [13:51:21]line Версия ККМ: v1.0 [13:51:21]line ФМ: 0000000002094219 [13:51:21]line ФД: 30347 [13:51:22]line ФПД: 183342390951781 [13:51:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T135129&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30347&fm=183342390951781&tin=02508201610067®Number=0000000000186857&sum=100000 [13:51:22]OFD Sender: Processing packet 30347 [packets to send 10, broken 9] [13:51:22]ProducePacketName [13:51:22]name=ofd_packets/00030347 [13:51:22]OFD Sender: To server: pG, [13:51:22]CommunicateWithHost lk.salyk.kg:30040 [13:51:22]ConnectInit lk.salyk.kg [13:51:22]written 0, free lines is 4095 [13:51:22]Connected sock=10 [13:51: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 DC 75 04 01 08 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 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 81 00 00 00 F4 03 04 00 E1 0A 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 A6 BF BA 15 BF 65 6C 66 92 69 DA A5 3F FF [13:51: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 D5 E6 47 00 C2 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 8B 76 00 00 F4 03 04 00 65 B5 14 67 B6 04 01 00 00 A8 94 4C 31 04 D9 CC 28 [13:51:22]CommunicateWithHost err = 0 [13:51:22]CheckOFDResponse [13:51:22]1017 (14) - 77093643461234 [13:51:22]1041 (16) - 0000000002094219 [13:51:22]1040 (4) - 30347 [13:51:22]1012 (4) - 20.10.2024 07:46 [13:51:22]1206 (1) - 0 [13:51:22]OFD Sender: Remove packet 30347 [13:51:22]ProducePacketName [13:51:22]name=ofd_packets/00030347 [13:51:22]NVStorageDeleteData [13:51:22]Write to MH i2c: 01 00 00 29 87 B0 [13:51:22]Write i2c OK [13:51:22]MH_I2C_Read... [13:51:22]Read from MH i2c: 01 [13:51:22]MH_I2C_Read... [13:51:22]Read from MH i2c: 01 07 00 [13:51:22]MH_I2C_Read... [13:51:22]Read from MH i2c: 01 07 00 29 87 00 00 00 00 00 E0 0C A3 [13:51:22]RasterBufferAndPrint [13:51:22]line [13:51:22]line [13:51:22]line [13:51:22]line [13:51:22]line [13:51:22]written 0, free lines is 3302 [13:51:22]MH_Cut [13:51:22]Write to MH i2c: D1 01 00 30 87 01 89 [13:51:22]Write i2c OK [13:51:22]MH_I2C_Read... [13:51:22]Read from MH i2c: D1 [13:51:22]MH_I2C_Read... [13:51:22]Read from MH i2c: D1 01 00 [13:51:22]MH_I2C_Read... [13:51:22]Read from MH i2c: D1 01 00 30 87 00 88 [13:51:22]Write to MH i2c: 01 00 00 31 87 B8 [13:51:22]Write i2c OK [13:51:22]MH_I2C_Read... [13:51:23]OFD Sender: No OFD packet to send [13:51:23]*** Cut start [13:51:23]*** Partial cut [13:51:23]*** CUTSNS_PIN = 1 [13:51:23]*** CUTSNS_PIN = 0 [13:51:23]*** Brake cut motor [13:51:23]Read from MH i2c: 01 [13:51:23]MH_I2C_Read... [13:51:23]*** Stop cut motor [13:51:23]*** Cut end [13:51:23]Read from MH i2c: 01 07 00 [13:51:23]MH_I2C_Read... [13:51:23]Read from MH i2c: 01 07 00 31 87 00 00 00 00 00 FF 0F CD [13:51:23]process_action close_receipt done [13:51:23]requested_data is exist [13:51:23]produce_requested_data [13:51:23]requested_item fm.sn is exist - process it [13:51:23]wFMCommunicate request_size=4 [13:51:23]MH_SAM_APDU [13:51:23]CAPDU: 80 11 00 00 [13:51:23]Write to MH i2c: E2 08 00 32 87 80 11 00 00 00 00 00 00 33 [13:51:23]Write i2c OK [13:51:23]MH_I2C_Read... [13:51:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:51:24]Read from MH i2c: E2 [13:51:24]MH_I2C_Read... [13:51:24]Read from MH i2c: E2 17 00 [13:51:24]MH_I2C_Read... [13:51:24]Read from MH i2c: E2 17 00 32 87 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 81 [13:51: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:51:24]wFMCommunicate OK [13:51:24]requested_item fd.num is exist - process it [13:51:24]SAM_PROTO_GetFieldsCounters [13:51:24]wFMCommunicate request_size=4 [13:51:24]MH_SAM_APDU [13:51:24]CAPDU: 80 13 00 00 [13:51:24]Write to MH i2c: E2 08 00 33 87 80 13 00 00 00 00 00 00 36 [13:51:24]Write i2c OK [13:51:24]MH_I2C_Read... [13:51:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:51:24]Read from MH i2c: E2 [13:51:24]MH_I2C_Read... [13:51:24]Read from MH i2c: E2 62 00 [13:51:24]MH_I2C_Read... [13:51:24]Read from MH i2c: E2 62 00 33 87 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 52 [13:51: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 8B 76 00 00 0E 04 04 00 72 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 [13:51:24]wFMCommunicate OK [13:51:24]SAM_PROTO_GetFieldsCounters done [13:51:24]requested_item shift.num is exist - process it [13:51:24]requested_item shift.opened is exist - process it [13:51:24]req_shift_opened [13:51:24]FM_GetShiftState [13:51:24]SAM_PROTO_GetShiftState [13:51:24]wFMCommunicate request_size=4 [13:51:24]MH_SAM_APDU [13:51:24]CAPDU: 80 13 01 00 [13:51:24]Write to MH i2c: E2 08 00 34 87 80 13 01 00 00 00 00 00 38 [13:51:24]Write i2c OK [13:51:24]MH_I2C_Read... [13:51:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:51:24]Read from MH i2c: E2 [13:51:24]MH_I2C_Read... [13:51:24]Read from MH i2c: E2 0E 00 [13:51:24]MH_I2C_Read... [13:51:24]Read from MH i2c: E2 0E 00 34 87 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 1E [13:51:24]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [13:51:24]wFMCommunicate OK [13:51:24]SAM_PROTO_GetShiftState done [13:51:24]FM_GetShiftState done [13:51:24]req_shift_opened done [13:51:24]requested_item shift.open_date is exist - process it [13:51:24]req_shift_open_date [13:51:24]req_shift_open_date done [13:51:24]produce_requested_data done [13:51:24]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30347,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [13:51:24]process_action_free close_receipt [13:51:24]json_value_free [13:51:24]json_value_free done [13:51:24]process_json_proto returns [13:51:24]Send response to host [13:51:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30347,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [13:51:24]free response buf [13:51:24]execute_script done [13:51:24]execute_script returns [13:51:24]free content buf [13:51:24]Sock 9.Close socket [13:51:24]Sock 9.Thread stoped [13:51:28]OFD Sender: No OFD packet to send [13:51:33]OFD Sender: No OFD packet to send [13:51:38]OFD Sender: No OFD packet to send [13:51:43]OFD Sender: No OFD packet to send [13:51:48]OFD Sender: No OFD packet to send [13:51:53]OFD Sender: No OFD packet to send [13:51:58]OFD Sender: No OFD packet to send [13:52:03]OFD Sender: No OFD packet to send [13:52:08]OFD Sender: No OFD packet to send [13:52:13]OFD Sender: No OFD packet to send [13:52:14]accept exits with 7 [13:52:14]New connection [13:52:14]New thread 3067514212 created [13:52:14]Thread 3067370852 joined [13:52:14]Waiting for new connection... [13:52:14] Sock 7.Parse request [13:52:14]Sock 7.Check first char [13:52:14]Sock 7.First char is OK [13:52:14]request: POST /json_proto HTTP/1.0 [13:52:14]Method: POST [13:52:14]URL: /json_proto [13:52:14]Method is POST - this is cgi request [13:52:14]url: /json_proto [13:52:14]query_string will be loaded in cgi processing [13:52:14]execute_cgi json_proto POST (null) [13:52:14]execute_cgi path=json_proto method=POST [13:52:14]POST find Content-Length [13:52:14]Host: 172.17.51.3:8080 [13:52:14]Content-Length: 677 [13:52:14]Content-Type: application/json [13:52:14] [13:52:14]POST finish read [13:52:14]Found Content-Length = 677 [13:52:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342740", "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" ] } } [13:52:14]execute_script... [13:52: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)342740", "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" ] } } [13:52:14]POST & json_proto [13:52:14]process_json_proto [13:52:14]json parsed OK: [13:52:14]protocol is kg_v1.0 [13:52:14]action value=close_receipt [13:52:14]process_action close_receipt [13:52:14]cmd_close_receipt [13:52:14]MH_GetDate [13:52:14]Write to MH i2c: F0 00 00 35 87 AB [13:52:14]Write i2c OK [13:52:14]MH_I2C_Read... [13:52:14]Read from MH i2c: F0 [13:52:14]MH_I2C_Read... [13:52:14]Read from MH i2c: F0 09 00 [13:52:14]MH_I2C_Read... [13:52:14]Read from MH i2c: F0 09 00 35 87 00 18 0B 15 67 04 C1 95 66 13 [13:52:14]GetLastDocTimeStamp 1729432289 [13:52:14]current date 1729432344 [13:52:14]FM_GetShiftState [13:52:14]SAM_PROTO_GetShiftState [13:52:14]wFMCommunicate request_size=4 [13:52:14]MH_SAM_APDU [13:52:14]CAPDU: 80 13 01 00 [13:52:14]Write to MH i2c: E2 08 00 36 87 80 13 01 00 00 00 00 00 3A [13:52:14]Write i2c OK [13:52:14]MH_I2C_Read... [13:52:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:52:14]Read from MH i2c: E2 [13:52:14]MH_I2C_Read... [13:52:14]Read from MH i2c: E2 0E 00 [13:52:14]MH_I2C_Read... [13:52:14]Read from MH i2c: E2 0E 00 36 87 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 20 [13:52:14]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [13:52:14]wFMCommunicate OK [13:52:14]SAM_PROTO_GetShiftState done [13:52:14]FM_GetShiftState done [13:52:14]opened in 1729384718 [13:52:14]opened+sec_in_day 1729471118 [13:52:14]quantity*price = 20003 [13:52:14]sum+1 = 20004 [13:52:14]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 СНО: Общий режим Чек 130 20.10.2024 13:52 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30348 ФПД: 83817438586076 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T135224&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30348&fm=83817438586076&tin=02508201610067®Number=0000000000186857&sum=20000 [13:52:16]StoreToDocumentArchive [13:52:16]shift 114 fd 30348 [13:52:16]save to /storage/0114/doc_00030348 [13:52:16]save last doc name /storage/0114/doc_00030348 to /storage/kkm_last_doc_name [13:52:16]save OK [13:52:16]Clear old archive folders... [13:52:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:52:16]tlvbuf is 00D13CA0 [13:52:16]SAM_PROTO_ClearQueue [13:52:16]wFMCommunicate request_size=4 [13:52:16]MH_SAM_APDU [13:52:16]CAPDU: 80 09 00 00 [13:52:16]Write to MH i2c: E2 08 00 43 87 80 09 00 00 00 00 00 00 3C [13:52:16]Write i2c OK [13:52:16]MH_I2C_Read... [13:52:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:52:16]Read from MH i2c: E2 [13:52:16]MH_I2C_Read... [13:52:16]Read from MH i2c: E2 03 00 [13:52:16]MH_I2C_Read... [13:52:16]Read from MH i2c: E2 03 00 43 87 00 90 00 3E [13:52:16]RAPDU: 90 00 [13:52:16]wFMCommunicate OK [13:52:16]SAM_PROTO_ClearQueue done [13:52:16]KKMCreateOFDPacket [13:52:16]OFDProtocolAddRootSTLVToBuf [13:52:16]FM_MakeSignedData [13:52:16]FM_MakeSignedData [13:52:16]SAM_PROTO_SignData [13:52:16]wFMCommunicate request_size=4 [13:52:16]MH_SAM_APDU [13:52:16]CAPDU: 80 0D 01 02 [13:52:16]Write to MH i2c: E2 08 00 44 87 80 0D 01 02 00 00 00 00 44 [13:52:16]Write i2c OK [13:52:16]MH_I2C_Read... [13:52:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:52:16]Read from MH i2c: E2 [13:52:16]MH_I2C_Read... [13:52:16]Read from MH i2c: E2 03 00 [13:52:16]MH_I2C_Read... [13:52:16]Read from MH i2c: E2 03 00 44 87 00 90 00 3F [13:52:16]RAPDU: 90 00 [13:52:16]wFMCommunicate OK [13:52:16]wFMCommunicate request_size=255 [13:52:16]MH_SAM_APDU [13:52:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 82 00 00 00 F4 03 04 00 18 0B 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 4C [13:52:16]Write to MH i2c: E2 02 01 45 87 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 82 00 00 00 F4 03 04 00 18 0B 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 4C 00 00 78 [13:52:16]Write i2c OK [13:52:16]MH_I2C_Read... [13:52:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:52:16]Read from MH i2c: E2 [13:52:16]MH_I2C_Read... [13:52:16]Read from MH i2c: E2 03 00 [13:52:16]MH_I2C_Read... [13:52:16]Read from MH i2c: E2 03 00 45 87 00 90 00 40 [13:52:16]RAPDU: 90 00 [13:52:16]wFMCommunicate OK [13:52:16]wFMCommunicate request_size=10 [13:52:16]MH_SAM_APDU [13:52:16]CAPDU: 80 0D 02 02 05 3B 44 A7 24 DC [13:52:16]Write to MH i2c: E2 0D 00 46 87 80 0D 02 02 05 00 3B 44 A7 24 DC 00 00 77 [13:52:16]Write i2c OK [13:52:16]MH_I2C_Read... [13:52:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:52:16]Read from MH i2c: E2 [13:52:16]MH_I2C_Read... [13:52:16]Read from MH i2c: E2 03 00 [13:52:16]MH_I2C_Read... [13:52:16]Read from MH i2c: E2 03 00 46 87 00 90 00 41 [13:52:16]RAPDU: 90 00 [13:52:16]wFMCommunicate OK [13:52:16]wFMCommunicate request_size=4 [13:52:16]MH_SAM_APDU [13:52:16]CAPDU: 80 0D 03 02 [13:52:16]Write to MH i2c: E2 08 00 47 87 80 0D 03 02 00 00 00 00 49 [13:52:16]Write i2c OK [13:52:16]MH_I2C_Read... [13:52:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:52:16]Read from MH i2c: E2 [13:52:16]MH_I2C_Read... [13:52:16]Read from MH i2c: E2 0B 00 [13:52:16]MH_I2C_Read... [13:52:16]Read from MH i2c: E2 0B 00 47 87 00 EF 37 35 9A 66 FC C0 11 90 00 72 [13:52:16]RAPDU: EF 37 35 9A 66 FC C0 11 90 00 [13:52:16]wFMCommunicate OK [13:52:16]SAM_PROTO_SignData done [13:52:16]FM_MakeSignedData done [13:52:16]CreateOFDProtocolMessage [13:52:16]wFMCommunicate request_size=4 [13:52:16]MH_SAM_APDU [13:52:16]CAPDU: 80 11 00 00 [13:52:16]Write to MH i2c: E2 08 00 48 87 80 11 00 00 00 00 00 00 49 [13:52:16]Write i2c OK [13:52:16]MH_I2C_Read... [13:52:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:52:16]Read from MH i2c: E2 [13:52:16]MH_I2C_Read... [13:52:16]Read from MH i2c: E2 17 00 [13:52:16]MH_I2C_Read... [13:52:16]Read from MH i2c: E2 17 00 48 87 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 97 [13:52:16]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:16]wFMCommunicate OK [13:52:16]CreateOFDProtocolMessage done [13:52:16]OFDSenderStorePacket 30348 [13:52:16]StoreOFDPacket docnum=30348 [13:52: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 E7 55 07 01 D7 5C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 82 00 00 00 F4 03 04 00 18 0B 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 4C 3B 44 A7 24 DC EF 37 35 9A 66 FC C0 11 [13:52:16]CheckFolder [13:52:16]dirname=/storage/ofd_packets [13:52:16]CheckFolder done [13:52:16]ProducePacketName [13:52:16]name=ofd_packets/00030348 [13:52:16]NVStorageSaveData ofd_packets/00030348 [13:52:16]File name is /storage/ofd_packets/00030348 [13:52:16]Write 301 bytes [13:52:16]NVStorageSaveData done [13:52:16]OFDSenderStorePacket done [13:52:16]KKMCreateOFDPacket done [13:52:16]NVStorageSaveData kkm_last_timestamp [13:52:16]File name is /storage/kkm_last_timestamp [13:52:16]Write 4 bytes [13:52:16]NVStorageSaveData done [13:52:16]ExternCall_PrintAddStr [13:52:16]wPrintStart [13:52:16]Write to MH i2c: 01 00 00 49 87 D0 [13:52:16]Write i2c OK [13:52:16]MH_I2C_Read... [13:52:16]Read from MH i2c: 01 [13:52:16]MH_I2C_Read... [13:52:16]Read from MH i2c: 01 07 00 [13:52:16]MH_I2C_Read... [13:52:16]Read from MH i2c: 01 07 00 49 87 00 00 00 00 00 FF 0F E5 [13:52:16]RasterBufferAndPrint [13:52:16]line Счет N : (1)342740 [13:52:16]line ИНН: 02508201610067 [13:52:16]line Контрольно-Кассовый Чек [13:52:16]line ПРОДАЖА [13:52:16]line ТРК (МРК, ГНК) : 43 [13:52:16]line Товар: 2710124130 [13:52:16]line Аи-92-К-2 [13:52:16]line 2.990 * 66.90 [13:52:16]line = 200.03 [13:52:16]line НДС 12% НСП 1% [13:52:16]line > о реализуемом товаре [13:52:16]line ОКРУГЛЕНИЕ: -0.03 [13:52:16]line ИТОГО: 200.00 [13:52:16]line Внесено: 200.00 [13:52:16]line СДАЧА: 0.00 [13:52:16]line НСП 1% : 1.77 [13:52:16]line НДС 12% : 21.24 [13:52:16]line Наличными: 200.00 [13:52:16]line Безнал.: 0.00 [13:52:16]line Место: АЗС № 78 "Партнер Нефть" [13:52:16]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [13:52:16]line СНО: Общий режим [13:52:16]line Чек 130 20.10.2024 13:52 [13:52:16]line Смена: 114 ФФД: 1.0 [13:52:16]line ЗНМ: 0300000137 [13:52:16]line РНМ: 0000000000186857 [13:52:16]line Версия ККМ: v1.0 [13:52:16]line ФМ: 0000000002094219 [13:52:16]line ФД: 30348 [13:52:16]line ФПД: 83817438586076 [13:52:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T135224&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30348&fm=83817438586076&tin=02508201610067®Number=0000000000186857&sum=20000 [13:52:16]OFD Sender: Processing packet 30348 [packets to send 10, broken 9] [13:52:16]ProducePacketName [13:52:16]name=ofd_packets/00030348 [13:52:16]OFD Sender: To server: pG, [13:52:16]CommunicateWithHost lk.salyk.kg:30040 [13:52:16]ConnectInit lk.salyk.kg [13:52:16]written 0, free lines is 4095 [13:52:16]Connected sock=9 [13:52: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 E7 55 07 01 D7 5C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 82 00 00 00 F4 03 04 00 18 0B 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 4C 3B 44 A7 24 DC EF 37 35 9A 66 FC C0 11 [13:52: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 CB 5D 47 00 EA 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 8C 76 00 00 F4 03 04 00 9C B5 14 67 B6 04 01 00 00 59 25 AD BE A4 23 94 F4 [13:52:17]CommunicateWithHost err = 0 [13:52:17]CheckOFDResponse [13:52:17]1017 (14) - 77093643461234 [13:52:17]1041 (16) - 0000000002094219 [13:52:17]1040 (4) - 30348 [13:52:17]1012 (4) - 20.10.2024 07:47 [13:52:17]1206 (1) - 0 [13:52:17]OFD Sender: Remove packet 30348 [13:52:17]ProducePacketName [13:52:17]name=ofd_packets/00030348 [13:52:17]NVStorageDeleteData [13:52:17]Write to MH i2c: 01 00 00 74 87 FB [13:52:17]Write i2c OK [13:52:17]MH_I2C_Read... [13:52:17]Read from MH i2c: 01 [13:52:17]MH_I2C_Read... [13:52:17]Read from MH i2c: 01 07 00 [13:52:17]MH_I2C_Read... [13:52:17]Read from MH i2c: 01 07 00 74 87 00 00 00 00 00 FF 0C 0D [13:52:17]RasterBufferAndPrint [13:52:17]line [13:52:17]line [13:52:17]line [13:52:17]line [13:52:17]line [13:52:17]written 0, free lines is 3336 [13:52:17]MH_Cut [13:52:17]Write to MH i2c: D1 01 00 7B 87 01 D4 [13:52:17]Write i2c OK [13:52:17]MH_I2C_Read... [13:52:17]Read from MH i2c: D1 [13:52:17]MH_I2C_Read... [13:52:17]Read from MH i2c: D1 01 00 [13:52:17]MH_I2C_Read... [13:52:17]Read from MH i2c: D1 01 00 7B 87 00 D3 [13:52:17]Write to MH i2c: 01 00 00 7C 87 03 [13:52:17]Write i2c OK [13:52:17]MH_I2C_Read... [13:52:17]OFD Sender: No OFD packet to send [13:52:18]*** Cut start [13:52:18]*** Partial cut [13:52:18]*** CUTSNS_PIN = 1 [13:52:18]*** CUTSNS_PIN = 0 [13:52:18]*** Brake cut motor [13:52:18]Read from MH i2c: 01 [13:52:18]MH_I2C_Read... [13:52:18]*** Stop cut motor [13:52:18]*** Cut end [13:52:18]Read from MH i2c: 01 07 00 [13:52:18]MH_I2C_Read... [13:52:18]Read from MH i2c: 01 07 00 7C 87 00 00 00 00 00 FF 0F 18 [13:52:18]process_action close_receipt done [13:52:18]requested_data is exist [13:52:18]produce_requested_data [13:52:18]requested_item fm.sn is exist - process it [13:52:18]wFMCommunicate request_size=4 [13:52:18]MH_SAM_APDU [13:52:18]CAPDU: 80 11 00 00 [13:52:18]Write to MH i2c: E2 08 00 7D 87 80 11 00 00 00 00 00 00 7E [13:52:18]Write i2c OK [13:52:18]MH_I2C_Read... [13:52:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:52:18]Read from MH i2c: E2 [13:52:18]MH_I2C_Read... [13:52:18]Read from MH i2c: E2 17 00 [13:52:18]MH_I2C_Read... [13:52:18]Read from MH i2c: E2 17 00 7D 87 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 CC [13:52:18]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:18]wFMCommunicate OK [13:52:18]requested_item fd.num is exist - process it [13:52:18]SAM_PROTO_GetFieldsCounters [13:52:18]wFMCommunicate request_size=4 [13:52:18]MH_SAM_APDU [13:52:18]CAPDU: 80 13 00 00 [13:52:18]Write to MH i2c: E2 08 00 7E 87 80 13 00 00 00 00 00 00 81 [13:52:18]Write i2c OK [13:52:18]MH_I2C_Read... [13:52:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:52:18]Read from MH i2c: E2 [13:52:18]MH_I2C_Read... [13:52:18]Read from MH i2c: E2 62 00 [13:52:18]MH_I2C_Read... [13:52:18]Read from MH i2c: E2 62 00 7E 87 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 A1 [13:52: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 8C 76 00 00 0E 04 04 00 72 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 [13:52:18]wFMCommunicate OK [13:52:18]SAM_PROTO_GetFieldsCounters done [13:52:18]requested_item shift.num is exist - process it [13:52:18]requested_item shift.opened is exist - process it [13:52:18]req_shift_opened [13:52:18]FM_GetShiftState [13:52:18]SAM_PROTO_GetShiftState [13:52:18]wFMCommunicate request_size=4 [13:52:18]MH_SAM_APDU [13:52:18]CAPDU: 80 13 01 00 [13:52:18]Write to MH i2c: E2 08 00 7F 87 80 13 01 00 00 00 00 00 83 [13:52:18]Write i2c OK [13:52:18]MH_I2C_Read... [13:52:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:52:18]Read from MH i2c: E2 [13:52:18]MH_I2C_Read... [13:52:18]Read from MH i2c: E2 0E 00 [13:52:18]MH_I2C_Read... [13:52:18]Read from MH i2c: E2 0E 00 7F 87 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 69 [13:52:18]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [13:52:18]wFMCommunicate OK [13:52:18]SAM_PROTO_GetShiftState done [13:52:18]FM_GetShiftState done [13:52:18]req_shift_opened done [13:52:18]requested_item shift.open_date is exist - process it [13:52:18]req_shift_open_date [13:52:18]req_shift_open_date done [13:52:18]produce_requested_data done [13:52:18]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30348,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [13:52:18]process_action_free close_receipt [13:52:18]json_value_free [13:52:18]json_value_free done [13:52:18]process_json_proto returns [13:52:18]Send response to host [13:52:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30348,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [13:52:18]free response buf [13:52:18]execute_script done [13:52:18]execute_script returns [13:52:18]free content buf [13:52:18]Sock 7.Close socket [13:52:18]Sock 7.Thread stoped [13:52:22]OFD Sender: No OFD packet to send [13:52:27]OFD Sender: No OFD packet to send [13:52:32]OFD Sender: No OFD packet to send [13:52:37]OFD Sender: No OFD packet to send [13:52:42]OFD Sender: No OFD packet to send [13:52:47]OFD Sender: No OFD packet to send [13:52:52]OFD Sender: No OFD packet to send [13:52:57]OFD Sender: No OFD packet to send [13:53:02]OFD Sender: No OFD packet to send [13:53:07]OFD Sender: No OFD packet to send [13:53:12]OFD Sender: No OFD packet to send [13:53:17]OFD Sender: No OFD packet to send [13:53:22]OFD Sender: No OFD packet to send [13:53:27]OFD Sender: No OFD packet to send [13:53:32]OFD Sender: No OFD packet to send [13:53:37]OFD Sender: No OFD packet to send [13:53:42]OFD Sender: No OFD packet to send [13:53:47]OFD Sender: No OFD packet to send [13:53:52]OFD Sender: No OFD packet to send [13:53:57]OFD Sender: No OFD packet to send [13:54:02]OFD Sender: No OFD packet to send [13:54:06]accept exits with 10 [13:54:06]New connection [13:54:06]New thread 3067370852 created [13:54:06]Thread 3067514212 joined [13:54:06]Waiting for new connection... [13:54:06] Sock 10.Parse request [13:54:06]Sock 10.Check first char [13:54:06]Sock 10.First char is OK [13:54:06]request: POST /json_proto HTTP/1.0 [13:54:06]Method: POST [13:54:06]URL: /json_proto [13:54:06]Method is POST - this is cgi request [13:54:06]url: /json_proto [13:54:06]query_string will be loaded in cgi processing [13:54:06]execute_cgi json_proto POST (null) [13:54:06]execute_cgi path=json_proto method=POST [13:54:06]POST find Content-Length [13:54:06]Host: 172.17.51.3:8080 [13:54:06]Content-Length: 849 [13:54:06]Content-Type: application/json [13:54:06] [13:54:06]POST finish read [13:54:06]Found Content-Length = 849 [13:54:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342741", "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" : 32.390, "sum" : 2500.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" : 2500.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:54:06]execute_script... [13:54: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)342741", "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" : 32.390, "sum" : 2500.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" : 2500.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:54:06]POST & json_proto [13:54:06]process_json_proto [13:54:06]json parsed OK: [13:54:06]protocol is kg_v1.0 [13:54:06]action value=close_receipt [13:54:06]process_action close_receipt [13:54:06]cmd_close_receipt [13:54:06]MH_GetDate [13:54:06]Write to MH i2c: F0 00 00 80 87 F6 [13:54:06]Write i2c OK [13:54:06]MH_I2C_Read... [13:54:06]Read from MH i2c: F0 [13:54:06]MH_I2C_Read... [13:54:06]Read from MH i2c: F0 09 00 [13:54:06]MH_I2C_Read... [13:54:06]Read from MH i2c: F0 09 00 80 87 00 88 0B 15 67 04 C1 95 66 CE [13:54:06]GetLastDocTimeStamp 1729432344 [13:54:06]current date 1729432456 [13:54:06]FM_GetShiftState [13:54:06]SAM_PROTO_GetShiftState [13:54:06]wFMCommunicate request_size=4 [13:54:06]MH_SAM_APDU [13:54:06]CAPDU: 80 13 01 00 [13:54:06]Write to MH i2c: E2 08 00 81 87 80 13 01 00 00 00 00 00 85 [13:54:06]Write i2c OK [13:54:06]MH_I2C_Read... [13:54:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:54:06]Read from MH i2c: E2 [13:54:06]MH_I2C_Read... [13:54:06]Read from MH i2c: E2 0E 00 [13:54:06]MH_I2C_Read... [13:54:06]Read from MH i2c: E2 0E 00 81 87 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 6B [13:54:06]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [13:54:06]wFMCommunicate OK [13:54:06]SAM_PROTO_GetShiftState done [13:54:06]FM_GetShiftState done [13:54:06]opened in 1729384718 [13:54:06]opened+sec_in_day 1729471118 [13:54:06]quantity*price = 250050 [13:54:06]sum+1 = 250052 [13:54:06]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2500.51 НСП 1% : 22.13 НДС 12% : 265.54 Наличными: 0.00 Безнал.: 2500.51 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 131 20.10.2024 13:54 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Платежная система: АКБ Кыргызстан ФМ: 0000000002094219 ФД: 30349 ФПД: 52414221645758 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T135416&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30349&fm=52414221645758&tin=02508201610067®Number=0000000000186857&sum=250051 [13:54:07]StoreToDocumentArchive [13:54:07]shift 114 fd 30349 [13:54:07]save to /storage/0114/doc_00030349 [13:54:07]save last doc name /storage/0114/doc_00030349 to /storage/kkm_last_doc_name [13:54:07]save OK [13:54:07]Clear old archive folders... [13:54:07]ProcessDocumentItem done err = 0, tmpTLVsize=257 [13:54:07]tlvbuf is 00C17660 [13:54:07]SAM_PROTO_ClearQueue [13:54:07]wFMCommunicate request_size=4 [13:54:07]MH_SAM_APDU [13:54:07]CAPDU: 80 09 00 00 [13:54:07]Write to MH i2c: E2 08 00 8E 87 80 09 00 00 00 00 00 00 87 [13:54:07]Write i2c OK [13:54:07]MH_I2C_Read... [13:54:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:54:07]Read from MH i2c: E2 [13:54:07]MH_I2C_Read... [13:54:07]Read from MH i2c: E2 03 00 [13:54:07]MH_I2C_Read... [13:54:07]Read from MH i2c: E2 03 00 8E 87 00 90 00 89 [13:54:07]RAPDU: 90 00 [13:54:07]wFMCommunicate OK [13:54:07]SAM_PROTO_ClearQueue done [13:54:07]KKMCreateOFDPacket [13:54:07]OFDProtocolAddRootSTLVToBuf [13:54:07]FM_MakeSignedData [13:54:07]FM_MakeSignedData [13:54:07]SAM_PROTO_SignData [13:54:07]wFMCommunicate request_size=4 [13:54:07]MH_SAM_APDU [13:54:07]CAPDU: 80 0D 01 02 [13:54:07]Write to MH i2c: E2 08 00 8F 87 80 0D 01 02 00 00 00 00 8F [13:54:07]Write i2c OK [13:54:07]MH_I2C_Read... [13:54:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:54:07]Read from MH i2c: E2 [13:54:07]MH_I2C_Read... [13:54:07]Read from MH i2c: E2 03 00 [13:54:07]MH_I2C_Read... [13:54:07]Read from MH i2c: E2 03 00 8F 87 00 90 00 8A [13:54:07]RAPDU: 90 00 [13:54:07]wFMCommunicate OK [13:54:07]wFMCommunicate request_size=255 [13:54:07]MH_SAM_APDU [13:54: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 86 7E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 C3 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C3 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C3 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 88 0B 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 [13:54:07]Write to MH i2c: E2 02 01 90 87 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 86 7E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 C3 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C3 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C3 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 88 0B 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 00 E8 [13:54:07]Write i2c OK [13:54:07]MH_I2C_Read... [13:54:07]OFD Sender: No OFD packet to send [13:54:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:54:07]Read from MH i2c: E2 [13:54:07]MH_I2C_Read... [13:54:07]Read from MH i2c: E2 03 00 [13:54:07]MH_I2C_Read... [13:54:07]Read from MH i2c: E2 03 00 90 87 00 90 00 8B [13:54:07]RAPDU: 90 00 [13:54:07]wFMCommunicate OK [13:54:07]wFMCommunicate request_size=16 [13:54:07]MH_SAM_APDU [13:54:07]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 2F AB A3 0F F7 BE [13:54:07]Write to MH i2c: E2 13 00 91 87 80 0D 02 02 0B 00 00 35 04 06 00 2F AB A3 0F F7 BE 00 00 28 [13:54:07]Write i2c OK [13:54:07]MH_I2C_Read... [13:54:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:54:07]Read from MH i2c: E2 [13:54:07]MH_I2C_Read... [13:54:07]Read from MH i2c: E2 03 00 [13:54:07]MH_I2C_Read... [13:54:07]Read from MH i2c: E2 03 00 91 87 00 90 00 8C [13:54:07]RAPDU: 90 00 [13:54:07]wFMCommunicate OK [13:54:07]wFMCommunicate request_size=4 [13:54:07]MH_SAM_APDU [13:54:07]CAPDU: 80 0D 03 02 [13:54:07]Write to MH i2c: E2 08 00 92 87 80 0D 03 02 00 00 00 00 94 [13:54:07]Write i2c OK [13:54:07]MH_I2C_Read... [13:54:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:54:07]Read from MH i2c: E2 [13:54:07]MH_I2C_Read... [13:54:07]Read from MH i2c: E2 0B 00 [13:54:07]MH_I2C_Read... [13:54:07]Read from MH i2c: E2 0B 00 92 87 00 19 57 A2 1E D8 73 88 E0 90 00 78 [13:54:07]RAPDU: 19 57 A2 1E D8 73 88 E0 90 00 [13:54:07]wFMCommunicate OK [13:54:07]SAM_PROTO_SignData done [13:54:07]FM_MakeSignedData done [13:54:07]CreateOFDProtocolMessage [13:54:07]wFMCommunicate request_size=4 [13:54:07]MH_SAM_APDU [13:54:07]CAPDU: 80 11 00 00 [13:54:07]Write to MH i2c: E2 08 00 93 87 80 11 00 00 00 00 00 00 94 [13:54:07]Write i2c OK [13:54:07]MH_I2C_Read... [13:54:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:54:08]Read from MH i2c: E2 [13:54:08]MH_I2C_Read... [13:54:08]Read from MH i2c: E2 17 00 [13:54:08]MH_I2C_Read... [13:54:08]Read from MH i2c: E2 17 00 93 87 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 E2 [13:54:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [13:54:08]wFMCommunicate OK [13:54:08]CreateOFDProtocolMessage done [13:54:08]OFDSenderStorePacket 30349 [13:54:08]StoreOFDPacket docnum=30349 [13:54: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 6A 49 0D 01 CF 7A 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 86 7E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 C3 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C3 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C3 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 88 0B 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 2F AB A3 0F F7 BE 19 57 A2 1E D8 73 88 E0 [13:54:08]CheckFolder [13:54:08]dirname=/storage/ofd_packets [13:54:08]CheckFolder done [13:54:08]ProducePacketName [13:54:08]name=ofd_packets/00030349 [13:54:08]NVStorageSaveData ofd_packets/00030349 [13:54:08]File name is /storage/ofd_packets/00030349 [13:54:08]Write 307 bytes [13:54:08]NVStorageSaveData done [13:54:08]OFDSenderStorePacket done [13:54:08]KKMCreateOFDPacket done [13:54:08]NVStorageSaveData kkm_last_timestamp [13:54:08]File name is /storage/kkm_last_timestamp [13:54:08]Write 4 bytes [13:54:08]NVStorageSaveData done [13:54:08]ExternCall_PrintAddStr [13:54:08]wPrintStart [13:54:08]Write to MH i2c: 01 00 00 94 87 1B [13:54:08]Write i2c OK [13:54:08]MH_I2C_Read... [13:54:08]Read from MH i2c: 01 [13:54:08]MH_I2C_Read... [13:54:08]Read from MH i2c: 01 07 00 [13:54:08]MH_I2C_Read... [13:54:08]Read from MH i2c: 01 07 00 94 87 00 00 00 00 00 FF 0F 30 [13:54:08]RasterBufferAndPrint [13:54:08]line Счет N : (1)342741 [13:54:08]line ИНН: 02508201610067 [13:54:08]line Контрольно-Кассовый Чек [13:54:08]line ПРОДАЖА [13:54:08]line ТРК (МРК, ГНК) : 61 [13:54:08]line Товар: 2710194210 [13:54:08]line D-ENERGY Дт-К-2 [13:54:08]line 32.390 * 77.20 [13:54:08]line = 2500.51 [13:54:08]line НДС 12% НСП 1% [13:54:08]line > о реализуемом товаре [13:54:08]line ИТОГО: 2500.51 [13:54:08]line НСП 1% : 22.13 [13:54:08]line НДС 12% : 265.54 [13:54:08]line Наличными: 0.00 [13:54:08]line Безнал.: 2500.51 [13:54:08]line Место: АЗС № 78 "Партнер Нефть" [13:54:08]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [13:54:08]line СНО: Общий режим [13:54:08]line Чек 131 20.10.2024 13:54 [13:54:08]line Смена: 114 ФФД: 1.0 [13:54:08]line ЗНМ: 0300000137 [13:54:08]line РНМ: 0000000000186857 [13:54:08]line Версия ККМ: v1.0 [13:54:08]line Платежная система: АКБ Кыргызстан [13:54:08]line ФМ: 0000000002094219 [13:54:08]line ФД: 30349 [13:54:08]line ФПД: 52414221645758 [13:54:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T135416&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30349&fm=52414221645758&tin=02508201610067®Number=0000000000186857&sum=250051 [13:54:08]OFD Sender: Processing packet 30349 [packets to send 10, broken 9] [13:54:08]ProducePacketName [13:54:08]name=ofd_packets/00030349 [13:54:08]OFD Sender: To server: pG, [13:54:08]CommunicateWithHost lk.salyk.kg:30040 [13:54:08]ConnectInit lk.salyk.kg [13:54:08]written 0, free lines is 4095 [13:54:08]Connected sock=9 [13:54: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 6A 49 0D 01 CF 7A 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 86 7E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 C3 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C3 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C3 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 88 0B 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 2F AB A3 0F F7 BE 19 57 A2 1E D8 73 88 E0 [13:54: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 A1 89 47 00 30 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 8D 76 00 00 F4 03 04 00 0B B6 14 67 B6 04 01 00 00 59 7F 84 43 BC 3D 80 98 [13:54:08]CommunicateWithHost err = 0 [13:54:08]CheckOFDResponse [13:54:08]1017 (14) - 77093643461234 [13:54:08]1041 (16) - 0000000002094219 [13:54:08]1040 (4) - 30349 [13:54:08]1012 (4) - 20.10.2024 07:49 [13:54:08]1206 (1) - 0 [13:54:08]OFD Sender: Remove packet 30349 [13:54:08]ProducePacketName [13:54:08]name=ofd_packets/00030349 [13:54:08]NVStorageDeleteData [13:54:08]Write to MH i2c: 01 00 00 BE 87 45 [13:54:08]Write i2c OK [13:54:08]MH_I2C_Read... [13:54:08]Read from MH i2c: 01 [13:54:08]MH_I2C_Read... [13:54:08]Read from MH i2c: 01 07 00 [13:54:08]MH_I2C_Read... [13:54:08]Read from MH i2c: 01 07 00 BE 87 00 00 00 00 00 FF 0C 57 [13:54:08]RasterBufferAndPrint [13:54:08]line [13:54:08]line [13:54:08]line [13:54:08]line [13:54:08]line [13:54:08]written 0, free lines is 3336 [13:54:08]MH_Cut [13:54:08]Write to MH i2c: D1 01 00 C5 87 01 1E [13:54:08]Write i2c OK [13:54:08]MH_I2C_Read... [13:54:08]Read from MH i2c: D1 [13:54:08]MH_I2C_Read... [13:54:08]Read from MH i2c: D1 01 00 [13:54:08]MH_I2C_Read... [13:54:08]Read from MH i2c: D1 01 00 C5 87 00 1D [13:54:08]Write to MH i2c: 01 00 00 C6 87 4D [13:54:08]Write i2c OK [13:54:08]MH_I2C_Read... [13:54:09]OFD Sender: No OFD packet to send [13:54:09]*** Cut start [13:54:09]*** Partial cut [13:54:09]*** CUTSNS_PIN = 1 [13:54:09]*** CUTSNS_PIN = 0 [13:54:09]*** Brake cut motor [13:54:10]Read from MH i2c: 01 [13:54:10]MH_I2C_Read... [13:54:10]*** Stop cut motor [13:54:10]*** Cut end [13:54:10]Read from MH i2c: 01 07 00 [13:54:10]MH_I2C_Read... [13:54:10]Read from MH i2c: 01 07 00 C6 87 00 00 00 00 00 FF 0F 62 [13:54:10]process_action close_receipt done [13:54:10]requested_data is exist [13:54:10]produce_requested_data [13:54:10]requested_item fm.sn is exist - process it [13:54:10]wFMCommunicate request_size=4 [13:54:10]MH_SAM_APDU [13:54:10]CAPDU: 80 11 00 00 [13:54:10]Write to MH i2c: E2 08 00 C7 87 80 11 00 00 00 00 00 00 C8 [13:54:10]Write i2c OK [13:54:10]MH_I2C_Read... [13:54:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:54:10]Read from MH i2c: E2 [13:54:10]MH_I2C_Read... [13:54:10]Read from MH i2c: E2 17 00 [13:54:10]MH_I2C_Read... [13:54:10]Read from MH i2c: E2 17 00 C7 87 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:54:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [13:54:10]wFMCommunicate OK [13:54:10]requested_item fd.num is exist - process it [13:54:10]SAM_PROTO_GetFieldsCounters [13:54:10]wFMCommunicate request_size=4 [13:54:10]MH_SAM_APDU [13:54:10]CAPDU: 80 13 00 00 [13:54:10]Write to MH i2c: E2 08 00 C8 87 80 13 00 00 00 00 00 00 CB [13:54:10]Write i2c OK [13:54:10]MH_I2C_Read... [13:54:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:54:10]Read from MH i2c: E2 [13:54:10]MH_I2C_Read... [13:54:10]Read from MH i2c: E2 62 00 [13:54:10]MH_I2C_Read... [13:54:10]Read from MH i2c: E2 62 00 C8 87 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 EF [13:54: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 8D 76 00 00 0E 04 04 00 72 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 [13:54:10]wFMCommunicate OK [13:54:10]SAM_PROTO_GetFieldsCounters done [13:54:10]requested_item shift.num is exist - process it [13:54:10]requested_item shift.opened is exist - process it [13:54:10]req_shift_opened [13:54:10]FM_GetShiftState [13:54:10]SAM_PROTO_GetShiftState [13:54:10]wFMCommunicate request_size=4 [13:54:10]MH_SAM_APDU [13:54:10]CAPDU: 80 13 01 00 [13:54:10]Write to MH i2c: E2 08 00 C9 87 80 13 01 00 00 00 00 00 CD [13:54:10]Write i2c OK [13:54:10]MH_I2C_Read... [13:54:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:54:10]Read from MH i2c: E2 [13:54:10]MH_I2C_Read... [13:54:10]Read from MH i2c: E2 0E 00 [13:54:10]MH_I2C_Read... [13:54:10]Read from MH i2c: E2 0E 00 C9 87 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 B3 [13:54:10]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [13:54:10]wFMCommunicate OK [13:54:10]SAM_PROTO_GetShiftState done [13:54:10]FM_GetShiftState done [13:54:10]req_shift_opened done [13:54:10]requested_item shift.open_date is exist - process it [13:54:10]req_shift_open_date [13:54:10]req_shift_open_date done [13:54:10]produce_requested_data done [13:54:10]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30349,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [13:54:10]process_action_free close_receipt [13:54:10]json_value_free [13:54:10]json_value_free done [13:54:10]process_json_proto returns [13:54:10]Send response to host [13:54:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30349,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [13:54:10]free response buf [13:54:10]execute_script done [13:54:10]execute_script returns [13:54:10]free content buf [13:54:10]Sock 10.Close socket [13:54:10]Sock 10.Thread stoped [13:54:14]OFD Sender: No OFD packet to send [13:54:19]OFD Sender: No OFD packet to send [13:54:24]OFD Sender: No OFD packet to send [13:54:29]OFD Sender: No OFD packet to send [13:54:34]OFD Sender: No OFD packet to send [13:54:39]OFD Sender: No OFD packet to send [13:54:44]OFD Sender: No OFD packet to send [13:54:49]OFD Sender: No OFD packet to send [13:54:54]OFD Sender: No OFD packet to send [13:54:54]accept exits with 7 [13:54:54]New connection [13:54:54]New thread 3067514212 created [13:54:54]Thread 3067370852 joined [13:54:54]Waiting for new connection... [13:54:54] Sock 7.Parse request [13:54:54]Sock 7.Check first char [13:54:54]Sock 7.First char is OK [13:54:54]request: POST /json_proto HTTP/1.0 [13:54:54]Method: POST [13:54:54]URL: /json_proto [13:54:54]Method is POST - this is cgi request [13:54:54]url: /json_proto [13:54:54]query_string will be loaded in cgi processing [13:54:54]execute_cgi json_proto POST (null) [13:54:54]execute_cgi path=json_proto method=POST [13:54:54]POST find Content-Length [13:54:54]Host: 172.17.51.3:8080 [13:54:54]Content-Length: 678 [13:54:54]Content-Type: application/json [13:54:54] [13:54:54]POST finish read [13:54:54]Found Content-Length = 678 [13:54:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342742", "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:54:54]execute_script... [13: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)342742", "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:54:54]POST & json_proto [13:54:54]process_json_proto [13:54:54]json parsed OK: [13:54:54]protocol is kg_v1.0 [13:54:54]action value=close_receipt [13:54:54]process_action close_receipt [13:54:54]cmd_close_receipt [13:54:54]MH_GetDate [13:54:54]Write to MH i2c: F0 00 00 CA 87 40 [13:54:54]Write i2c OK [13:54:54]MH_I2C_Read... [13:54:54]Read from MH i2c: F0 [13:54:54]MH_I2C_Read... [13:54:54]Read from MH i2c: F0 09 00 [13:54:54]MH_I2C_Read... [13:54:54]Read from MH i2c: F0 09 00 CA 87 00 B8 0B 15 67 04 C1 95 66 48 [13:54:54]GetLastDocTimeStamp 1729432456 [13:54:54]current date 1729432504 [13:54:54]FM_GetShiftState [13:54:54]SAM_PROTO_GetShiftState [13:54:54]wFMCommunicate request_size=4 [13:54:54]MH_SAM_APDU [13:54:54]CAPDU: 80 13 01 00 [13:54:54]Write to MH i2c: E2 08 00 CB 87 80 13 01 00 00 00 00 00 CF [13:54:54]Write i2c OK [13:54:54]MH_I2C_Read... [13:54:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:54:54]Read from MH i2c: E2 [13:54:54]MH_I2C_Read... [13:54:54]Read from MH i2c: E2 0E 00 [13:54:54]MH_I2C_Read... [13:54:54]Read from MH i2c: E2 0E 00 CB 87 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 B5 [13:54:54]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [13:54:54]wFMCommunicate OK [13:54:54]SAM_PROTO_GetShiftState done [13:54:54]FM_GetShiftState done [13:54:54]opened in 1729384718 [13:54:54]opened+sec_in_day 1729471118 [13:54:54]quantity*price = 70044 [13:54:54]sum+1 = 70045 [13:54:54]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 СНО: Общий режим Чек 132 20.10.2024 13:55 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30350 ФПД: 13688567999935 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T135504&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30350&fm=13688567999935&tin=02508201610067®Number=0000000000186857&sum=70000 [13:54:55]StoreToDocumentArchive [13:54:55]shift 114 fd 30350 [13:54:55]save to /storage/0114/doc_00030350 [13:54:55]save last doc name /storage/0114/doc_00030350 to /storage/kkm_last_doc_name [13:54:55]save OK [13:54:55]Clear old archive folders... [13:54:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:54:55]tlvbuf is 00BE98E0 [13:54:55]SAM_PROTO_ClearQueue [13:54:55]wFMCommunicate request_size=4 [13:54:55]MH_SAM_APDU [13:54:55]CAPDU: 80 09 00 00 [13:54:55]Write to MH i2c: E2 08 00 D8 87 80 09 00 00 00 00 00 00 D1 [13:54:55]Write i2c OK [13:54:55]MH_I2C_Read... [13:54:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:54:55]Read from MH i2c: E2 [13:54:55]MH_I2C_Read... [13:54:55]Read from MH i2c: E2 03 00 [13:54:55]MH_I2C_Read... [13:54:55]Read from MH i2c: E2 03 00 D8 87 00 90 00 D3 [13:54:55]RAPDU: 90 00 [13:54:55]wFMCommunicate OK [13:54:55]SAM_PROTO_ClearQueue done [13:54:55]KKMCreateOFDPacket [13:54:55]OFDProtocolAddRootSTLVToBuf [13:54:55]FM_MakeSignedData [13:54:55]FM_MakeSignedData [13:54:55]SAM_PROTO_SignData [13:54:55]wFMCommunicate request_size=4 [13:54:55]MH_SAM_APDU [13:54:55]CAPDU: 80 0D 01 02 [13:54:55]Write to MH i2c: E2 08 00 D9 87 80 0D 01 02 00 00 00 00 D9 [13:54:55]Write i2c OK [13:54:55]MH_I2C_Read... [13:54:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:54:55]Read from MH i2c: E2 [13:54:55]MH_I2C_Read... [13:54:55]Read from MH i2c: E2 03 00 [13:54:55]MH_I2C_Read... [13:54:55]Read from MH i2c: E2 03 00 D9 87 00 90 00 D4 [13:54:55]RAPDU: 90 00 [13:54:55]wFMCommunicate OK [13:54:55]wFMCommunicate request_size=255 [13:54:55]MH_SAM_APDU [13: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 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 84 00 00 00 F4 03 04 00 B8 0B 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 0C [13:54:55]Write to MH i2c: E2 02 01 DA 87 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 84 00 00 00 F4 03 04 00 B8 0B 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 0C 00 00 BF [13:54:55]Write i2c OK [13:54:55]MH_I2C_Read... [13:54:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:54:56]Read from MH i2c: E2 [13:54:56]MH_I2C_Read... [13:54:56]Read from MH i2c: E2 03 00 [13:54:56]MH_I2C_Read... [13:54:56]Read from MH i2c: E2 03 00 DA 87 00 90 00 D5 [13:54:56]RAPDU: 90 00 [13:54:56]wFMCommunicate OK [13:54:56]wFMCommunicate request_size=10 [13:54:56]MH_SAM_APDU [13:54:56]CAPDU: 80 0D 02 02 05 73 1E 3B AD BF [13:54:56]Write to MH i2c: E2 0D 00 DB 87 80 0D 02 02 05 00 73 1E 3B AD BF 00 00 1E [13:54:56]Write i2c OK [13:54:56]MH_I2C_Read... [13:54:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:54:56]Read from MH i2c: E2 [13:54:56]MH_I2C_Read... [13:54:56]Read from MH i2c: E2 03 00 [13:54:56]MH_I2C_Read... [13:54:56]Read from MH i2c: E2 03 00 DB 87 00 90 00 D6 [13:54:56]RAPDU: 90 00 [13:54:56]wFMCommunicate OK [13:54:56]wFMCommunicate request_size=4 [13:54:56]MH_SAM_APDU [13:54:56]CAPDU: 80 0D 03 02 [13:54:56]Write to MH i2c: E2 08 00 DC 87 80 0D 03 02 00 00 00 00 DE [13:54:56]Write i2c OK [13:54:56]MH_I2C_Read... [13:54:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:54:56]Read from MH i2c: E2 [13:54:56]MH_I2C_Read... [13:54:56]Read from MH i2c: E2 0B 00 [13:54:56]MH_I2C_Read... [13:54:56]Read from MH i2c: E2 0B 00 DC 87 00 A6 AB 1D 0B 79 E8 89 B4 90 00 F6 [13:54:56]RAPDU: A6 AB 1D 0B 79 E8 89 B4 90 00 [13:54:56]wFMCommunicate OK [13:54:56]SAM_PROTO_SignData done [13:54:56]FM_MakeSignedData done [13:54:56]CreateOFDProtocolMessage [13:54:56]wFMCommunicate request_size=4 [13:54:56]MH_SAM_APDU [13:54:56]CAPDU: 80 11 00 00 [13:54:56]Write to MH i2c: E2 08 00 DD 87 80 11 00 00 00 00 00 00 DE [13:54:56]Write i2c OK [13:54:56]MH_I2C_Read... [13:54:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:54:56]Read from MH i2c: E2 [13:54:56]MH_I2C_Read... [13:54:56]Read from MH i2c: E2 17 00 [13:54:56]MH_I2C_Read... [13:54:56]Read from MH i2c: E2 17 00 DD 87 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: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 [13:54:56]wFMCommunicate OK [13:54:56]CreateOFDProtocolMessage done [13:54:56]OFDSenderStorePacket 30350 [13:54:56]StoreOFDPacket docnum=30350 [13: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 4F F8 07 01 C2 79 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 84 00 00 00 F4 03 04 00 B8 0B 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 0C 73 1E 3B AD BF A6 AB 1D 0B 79 E8 89 B4 [13:54:56]CheckFolder [13:54:56]dirname=/storage/ofd_packets [13:54:56]CheckFolder done [13:54:56]ProducePacketName [13:54:56]name=ofd_packets/00030350 [13:54:56]NVStorageSaveData ofd_packets/00030350 [13:54:56]File name is /storage/ofd_packets/00030350 [13:54:56]Write 301 bytes [13:54:56]NVStorageSaveData done [13:54:56]OFDSenderStorePacket done [13:54:56]KKMCreateOFDPacket done [13:54:56]NVStorageSaveData kkm_last_timestamp [13:54:56]File name is /storage/kkm_last_timestamp [13:54:56]Write 4 bytes [13:54:56]NVStorageSaveData done [13:54:56]ExternCall_PrintAddStr [13:54:56]wPrintStart [13:54:56]Write to MH i2c: 01 00 00 DE 87 65 [13:54:56]Write i2c OK [13:54:56]MH_I2C_Read... [13:54:56]Read from MH i2c: 01 [13:54:56]MH_I2C_Read... [13:54:56]Read from MH i2c: 01 07 00 [13:54:56]MH_I2C_Read... [13:54:56]Read from MH i2c: 01 07 00 DE 87 00 00 00 00 00 FF 0F 7A [13:54:56]RasterBufferAndPrint [13:54:56]line Счет N : (1)342742 [13:54:56]line ИНН: 02508201610067 [13:54:56]line Контрольно-Кассовый Чек [13:54:56]line ПРОДАЖА [13:54:56]line ТРК (МРК, ГНК) : 43 [13:54:56]line Товар: 2710124130 [13:54:56]line Аи-92-К-2 [13:54:56]line 10.470 * 66.90 [13:54:56]line = 700.44 [13:54:56]line НДС 12% НСП 1% [13:54:56]line > о реализуемом товаре [13:54:56]line ОКРУГЛЕНИЕ: -0.44 [13:54:56]line ИТОГО: 700.00 [13:54:56]line Внесено: 700.00 [13:54:56]line СДАЧА: 0.00 [13:54:56]line НСП 1% : 6.20 [13:54:56]line НДС 12% : 74.38 [13:54:56]line Наличными: 700.00 [13:54:56]line Безнал.: 0.00 [13:54:56]line Место: АЗС № 78 "Партнер Нефть" [13:54:56]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [13:54:56]line СНО: Общий режим [13:54:56]line Чек 132 20.10.2024 13:55 [13:54:56]line Смена: 114 ФФД: 1.0 [13:54:56]line ЗНМ: 0300000137 [13:54:56]line РНМ: 0000000000186857 [13:54:56]line Версия ККМ: v1.0 [13:54:56]line ФМ: 0000000002094219 [13:54:56]line ФД: 30350 [13:54:56]line ФПД: 13688567999935 [13:54:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T135504&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30350&fm=13688567999935&tin=02508201610067®Number=0000000000186857&sum=70000 [13:54:56]OFD Sender: Processing packet 30350 [packets to send 10, broken 9] [13:54:56]ProducePacketName [13:54:56]name=ofd_packets/00030350 [13:54:56]OFD Sender: To server: pG, [13:54:56]CommunicateWithHost lk.salyk.kg:30040 [13:54:56]ConnectInit lk.salyk.kg [13:54:56]written 0, free lines is 4095 [13:54:56]Connected sock=10 [13: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 4F F8 07 01 C2 79 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 84 00 00 00 F4 03 04 00 B8 0B 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 0C 73 1E 3B AD BF A6 AB 1D 0B 79 E8 89 B4 [13:54: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 72 21 47 00 41 5C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 8E 76 00 00 F4 03 04 00 3C B6 14 67 B6 04 01 00 00 85 F8 5D 33 D8 95 90 8B [13:54:57]CommunicateWithHost err = 0 [13:54:57]CheckOFDResponse [13:54:57]1017 (14) - 77093643461234 [13:54:57]1041 (16) - 0000000002094219 [13:54:57]1040 (4) - 30350 [13:54:57]1012 (4) - 20.10.2024 07:50 [13:54:57]1206 (1) - 0 [13:54:57]OFD Sender: Remove packet 30350 [13:54:57]ProducePacketName [13:54:57]name=ofd_packets/00030350 [13:54:57]NVStorageDeleteData [13:54:57]Write to MH i2c: 01 00 00 09 88 91 [13:54:57]Write i2c OK [13:54:57]MH_I2C_Read... [13:54:57]Read from MH i2c: 01 [13:54:57]MH_I2C_Read... [13:54:57]Read from MH i2c: 01 07 00 [13:54:57]MH_I2C_Read... [13:54:57]Read from MH i2c: 01 07 00 09 88 00 00 00 00 00 ED 0C 91 [13:54:57]RasterBufferAndPrint [13:54:57]line [13:54:57]line [13:54:57]line [13:54:57]line [13:54:57]line [13:54:57]written 0, free lines is 3318 [13:54:57]MH_Cut [13:54:57]Write to MH i2c: D1 01 00 10 88 01 6A [13:54:57]Write i2c OK [13:54:57]MH_I2C_Read... [13:54:57]Read from MH i2c: D1 [13:54:57]MH_I2C_Read... [13:54:57]Read from MH i2c: D1 01 00 [13:54:57]MH_I2C_Read... [13:54:57]Read from MH i2c: D1 01 00 10 88 00 69 [13:54:57]Write to MH i2c: 01 00 00 11 88 99 [13:54:57]Write i2c OK [13:54:57]MH_I2C_Read... [13:54:57]OFD Sender: No OFD packet to send [13:54:57]*** Cut start [13:54:57]*** Partial cut [13:54:57]*** CUTSNS_PIN = 1 [13:54:57]*** CUTSNS_PIN = 0 [13:54:58]*** Brake cut motor [13:54:58]Read from MH i2c: 01 [13:54:58]MH_I2C_Read... [13:54:58]*** Stop cut motor [13:54:58]*** Cut end [13:54:58]Read from MH i2c: 01 07 00 [13:54:58]MH_I2C_Read... [13:54:58]Read from MH i2c: 01 07 00 11 88 00 00 00 00 00 FF 0F AE [13:54:58]process_action close_receipt done [13:54:58]requested_data is exist [13:54:58]produce_requested_data [13:54:58]requested_item fm.sn is exist - process it [13:54:58]wFMCommunicate request_size=4 [13:54:58]MH_SAM_APDU [13:54:58]CAPDU: 80 11 00 00 [13:54:58]Write to MH i2c: E2 08 00 12 88 80 11 00 00 00 00 00 00 14 [13:54:58]Write i2c OK [13:54:58]MH_I2C_Read... [13:54:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:54:58]Read from MH i2c: E2 [13:54:58]MH_I2C_Read... [13:54:58]Read from MH i2c: E2 17 00 [13:54:58]MH_I2C_Read... [13:54:58]Read from MH i2c: E2 17 00 12 88 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 62 [13: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 [13:54:58]wFMCommunicate OK [13:54:58]requested_item fd.num is exist - process it [13:54:58]SAM_PROTO_GetFieldsCounters [13:54:58]wFMCommunicate request_size=4 [13:54:58]MH_SAM_APDU [13:54:58]CAPDU: 80 13 00 00 [13:54:58]Write to MH i2c: E2 08 00 13 88 80 13 00 00 00 00 00 00 17 [13:54:58]Write i2c OK [13:54:58]MH_I2C_Read... [13:54:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:54:58]Read from MH i2c: E2 [13:54:58]MH_I2C_Read... [13:54:58]Read from MH i2c: E2 62 00 [13:54:58]MH_I2C_Read... [13:54:58]Read from MH i2c: E2 62 00 13 88 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 3F [13: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 8E 76 00 00 0E 04 04 00 72 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 [13:54:58]wFMCommunicate OK [13:54:58]SAM_PROTO_GetFieldsCounters done [13:54:58]requested_item shift.num is exist - process it [13:54:58]requested_item shift.opened is exist - process it [13:54:58]req_shift_opened [13:54:58]FM_GetShiftState [13:54:58]SAM_PROTO_GetShiftState [13:54:58]wFMCommunicate request_size=4 [13:54:58]MH_SAM_APDU [13:54:58]CAPDU: 80 13 01 00 [13:54:58]Write to MH i2c: E2 08 00 14 88 80 13 01 00 00 00 00 00 19 [13:54:58]Write i2c OK [13:54:58]MH_I2C_Read... [13:54:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:54:58]Read from MH i2c: E2 [13:54:58]MH_I2C_Read... [13:54:58]Read from MH i2c: E2 0E 00 [13:54:58]MH_I2C_Read... [13:54:58]Read from MH i2c: E2 0E 00 14 88 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 FF [13:54:58]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [13:54:58]wFMCommunicate OK [13:54:58]SAM_PROTO_GetShiftState done [13:54:58]FM_GetShiftState done [13:54:58]req_shift_opened done [13:54:58]requested_item shift.open_date is exist - process it [13:54:58]req_shift_open_date [13:54:58]req_shift_open_date done [13:54:58]produce_requested_data done [13:54:58]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30350,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [13:54:58]process_action_free close_receipt [13:54:58]json_value_free [13:54:58]json_value_free done [13:54:58]process_json_proto returns [13:54:58]Send response to host [13:54:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30350,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [13:54:58]free response buf [13:54:58]execute_script done [13:54:58]execute_script returns [13:54:58]free content buf [13:54:58]Sock 7.Close socket [13:54:58]Sock 7.Thread stoped [13:55:02]OFD Sender: No OFD packet to send [13:55:07]OFD Sender: No OFD packet to send [13:55:12]OFD Sender: No OFD packet to send [13:55:17]OFD Sender: No OFD packet to send [13:55:22]OFD Sender: No OFD packet to send [13:55:27]OFD Sender: No OFD packet to send [13:55:32]OFD Sender: No OFD packet to send [13:55:37]OFD Sender: No OFD packet to send [13:55:38]accept exits with 9 [13:55:38]New connection [13:55:38]New thread 3067370852 created [13:55:38]Thread 3067514212 joined [13:55:38]Waiting for new connection... [13:55:38] Sock 9.Parse request [13:55:38]Sock 9.Check first char [13:55:38]Sock 9.First char is OK [13:55:38]request: POST /json_proto HTTP/1.0 [13:55:38]Method: POST [13:55:38]URL: /json_proto [13:55:38]Method is POST - this is cgi request [13:55:38]url: /json_proto [13:55:38]query_string will be loaded in cgi processing [13:55:38]execute_cgi json_proto POST (null) [13:55:38]execute_cgi path=json_proto method=POST [13:55:38]POST find Content-Length [13:55:38]Host: 172.17.51.3:8080 [13:55:38]Content-Length: 677 [13:55:38]Content-Type: application/json [13:55:38] [13:55:38]POST finish read [13:55:38]Found Content-Length = 677 [13:55:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342743", "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" ] } } [13:55:38]execute_script... [13:55:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342743", "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" ] } } [13:55:38]POST & json_proto [13:55:38]process_json_proto [13:55:38]json parsed OK: [13:55:38]protocol is kg_v1.0 [13:55:38]action value=close_receipt [13:55:38]process_action close_receipt [13:55:38]cmd_close_receipt [13:55:38]MH_GetDate [13:55:38]Write to MH i2c: F0 00 00 15 88 8C [13:55:38]Write i2c OK [13:55:38]MH_I2C_Read... [13:55:38]Read from MH i2c: F0 [13:55:38]MH_I2C_Read... [13:55:38]Read from MH i2c: F0 09 00 [13:55:38]MH_I2C_Read... [13:55:38]Read from MH i2c: F0 09 00 15 88 00 E3 0B 15 67 04 C1 95 66 BF [13:55:38]GetLastDocTimeStamp 1729432504 [13:55:38]current date 1729432547 [13:55:38]FM_GetShiftState [13:55:38]SAM_PROTO_GetShiftState [13:55:38]wFMCommunicate request_size=4 [13:55:38]MH_SAM_APDU [13:55:38]CAPDU: 80 13 01 00 [13:55:38]Write to MH i2c: E2 08 00 16 88 80 13 01 00 00 00 00 00 1B [13:55:38]Write i2c OK [13:55:38]MH_I2C_Read... [13:55:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:55:38]Read from MH i2c: E2 [13:55:38]MH_I2C_Read... [13:55:38]Read from MH i2c: E2 0E 00 [13:55:38]MH_I2C_Read... [13:55:38]Read from MH i2c: E2 0E 00 16 88 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 01 [13:55:38]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [13:55:38]wFMCommunicate OK [13:55:38]SAM_PROTO_GetShiftState done [13:55:38]FM_GetShiftState done [13:55:38]opened in 1729384718 [13:55:38]opened+sec_in_day 1729471118 [13:55:38]quantity*price = 40006 [13:55:38]sum+1 = 40007 [13:55:38]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 СНО: Общий режим Чек 133 20.10.2024 13:55 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30351 ФПД: 278815063967566 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T135548&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30351&fm=278815063967566&tin=02508201610067®Number=0000000000186857&sum=40000 [13:55:39]StoreToDocumentArchive [13:55:39]shift 114 fd 30351 [13:55:39]save to /storage/0114/doc_00030351 [13:55:39]save last doc name /storage/0114/doc_00030351 to /storage/kkm_last_doc_name [13:55:39]save OK [13:55:39]Clear old archive folders... [13:55:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:55:39]tlvbuf is 00C08A30 [13:55:39]SAM_PROTO_ClearQueue [13:55:39]wFMCommunicate request_size=4 [13:55:39]MH_SAM_APDU [13:55:39]CAPDU: 80 09 00 00 [13:55:39]Write to MH i2c: E2 08 00 23 88 80 09 00 00 00 00 00 00 1D [13:55:39]Write i2c OK [13:55:39]MH_I2C_Read... [13:55:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:55:39]Read from MH i2c: E2 [13:55:39]MH_I2C_Read... [13:55:39]Read from MH i2c: E2 03 00 [13:55:39]MH_I2C_Read... [13:55:39]Read from MH i2c: E2 03 00 23 88 00 90 00 1F [13:55:39]RAPDU: 90 00 [13:55:39]wFMCommunicate OK [13:55:39]SAM_PROTO_ClearQueue done [13:55:39]KKMCreateOFDPacket [13:55:39]OFDProtocolAddRootSTLVToBuf [13:55:39]FM_MakeSignedData [13:55:39]FM_MakeSignedData [13:55:39]SAM_PROTO_SignData [13:55:39]wFMCommunicate request_size=4 [13:55:39]MH_SAM_APDU [13:55:39]CAPDU: 80 0D 01 02 [13:55:39]Write to MH i2c: E2 08 00 24 88 80 0D 01 02 00 00 00 00 25 [13:55:39]Write i2c OK [13:55:39]MH_I2C_Read... [13:55:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:55:39]Read from MH i2c: E2 [13:55:39]MH_I2C_Read... [13:55:39]Read from MH i2c: E2 03 00 [13:55:39]MH_I2C_Read... [13:55:39]Read from MH i2c: E2 03 00 24 88 00 90 00 20 [13:55:39]RAPDU: 90 00 [13:55:39]wFMCommunicate OK [13:55:39]wFMCommunicate request_size=255 [13:55:39]MH_SAM_APDU [13:55: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 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 85 00 00 00 F4 03 04 00 E4 0B 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 FD [13:55:39]Write to MH i2c: E2 02 01 25 88 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 85 00 00 00 F4 03 04 00 E4 0B 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 FD 00 00 E9 [13:55:39]Write i2c OK [13:55:39]MH_I2C_Read... [13:55:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:55:39]Read from MH i2c: E2 [13:55:39]MH_I2C_Read... [13:55:39]Read from MH i2c: E2 03 00 [13:55:39]MH_I2C_Read... [13:55:39]Read from MH i2c: E2 03 00 25 88 00 90 00 21 [13:55:39]RAPDU: 90 00 [13:55:39]wFMCommunicate OK [13:55:39]wFMCommunicate request_size=10 [13:55:39]MH_SAM_APDU [13:55:39]CAPDU: 80 0D 02 02 05 94 B0 D8 87 4E [13:55:39]Write to MH i2c: E2 0D 00 26 88 80 0D 02 02 05 00 94 B0 D8 87 4E 00 00 23 [13:55:39]Write i2c OK [13:55:39]MH_I2C_Read... [13:55:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:55:39]Read from MH i2c: E2 [13:55:39]MH_I2C_Read... [13:55:39]Read from MH i2c: E2 03 00 [13:55:39]MH_I2C_Read... [13:55:39]Read from MH i2c: E2 03 00 26 88 00 90 00 22 [13:55:39]RAPDU: 90 00 [13:55:39]wFMCommunicate OK [13:55:39]wFMCommunicate request_size=4 [13:55:39]MH_SAM_APDU [13:55:39]CAPDU: 80 0D 03 02 [13:55:39]Write to MH i2c: E2 08 00 27 88 80 0D 03 02 00 00 00 00 2A [13:55:39]Write i2c OK [13:55:39]MH_I2C_Read... [13:55:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:55:39]Read from MH i2c: E2 [13:55:39]MH_I2C_Read... [13:55:39]Read from MH i2c: E2 0B 00 [13:55:39]MH_I2C_Read... [13:55:39]Read from MH i2c: E2 0B 00 27 88 00 42 A1 26 76 0D 23 3E 99 90 00 B1 [13:55:39]RAPDU: 42 A1 26 76 0D 23 3E 99 90 00 [13:55:39]wFMCommunicate OK [13:55:39]SAM_PROTO_SignData done [13:55:39]FM_MakeSignedData done [13:55:39]CreateOFDProtocolMessage [13:55:39]wFMCommunicate request_size=4 [13:55:39]MH_SAM_APDU [13:55:39]CAPDU: 80 11 00 00 [13:55:39]Write to MH i2c: E2 08 00 28 88 80 11 00 00 00 00 00 00 2A [13:55:39]Write i2c OK [13:55:39]MH_I2C_Read... [13:55:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:55:40]Read from MH i2c: E2 [13:55:40]MH_I2C_Read... [13:55:40]Read from MH i2c: E2 17 00 [13:55:40]MH_I2C_Read... [13:55:40]Read from MH i2c: E2 17 00 28 88 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 78 [13:55:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [13:55:40]wFMCommunicate OK [13:55:40]CreateOFDProtocolMessage done [13:55:40]OFDSenderStorePacket 30351 [13:55:40]StoreOFDPacket docnum=30351 [13:55: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 00 B2 07 01 11 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 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 85 00 00 00 F4 03 04 00 E4 0B 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 FD 94 B0 D8 87 4E 42 A1 26 76 0D 23 3E 99 [13:55:40]CheckFolder [13:55:40]dirname=/storage/ofd_packets [13:55:40]CheckFolder done [13:55:40]ProducePacketName [13:55:40]name=ofd_packets/00030351 [13:55:40]NVStorageSaveData ofd_packets/00030351 [13:55:40]File name is /storage/ofd_packets/00030351 [13:55:40]Write 301 bytes [13:55:40]NVStorageSaveData done [13:55:40]OFDSenderStorePacket done [13:55:40]KKMCreateOFDPacket done [13:55:40]NVStorageSaveData kkm_last_timestamp [13:55:40]File name is /storage/kkm_last_timestamp [13:55:40]Write 4 bytes [13:55:40]NVStorageSaveData done [13:55:40]ExternCall_PrintAddStr [13:55:40]wPrintStart [13:55:40]Write to MH i2c: 01 00 00 29 88 B1 [13:55:40]Write i2c OK [13:55:40]MH_I2C_Read... [13:55:40]Read from MH i2c: 01 [13:55:40]MH_I2C_Read... [13:55:40]Read from MH i2c: 01 07 00 [13:55:40]MH_I2C_Read... [13:55:40]Read from MH i2c: 01 07 00 29 88 00 00 00 00 00 FF 0F C6 [13:55:40]RasterBufferAndPrint [13:55:40]line Счет N : (1)342743 [13:55:40]line ИНН: 02508201610067 [13:55:40]line Контрольно-Кассовый Чек [13:55:40]line ПРОДАЖА [13:55:40]line ТРК (МРК, ГНК) : 53 [13:55:40]line Товар: 2710124130 [13:55:40]line Аи-92-К-2 [13:55:40]line 5.980 * 66.90 [13:55:40]line = 400.06 [13:55:40]line НДС 12% НСП 1% [13:55:40]line > о реализуемом товаре [13:55:40]line ОКРУГЛЕНИЕ: -0.06 [13:55:40]line ИТОГО: 400.00 [13:55:40]line Внесено: 400.00 [13:55:40]line СДАЧА: 0.00 [13:55:40]line НСП 1% : 3.54 [13:55:40]line НДС 12% : 42.48 [13:55:40]line Наличными: 400.00 [13:55:40]line Безнал.: 0.00 [13:55:40]line Место: АЗС № 78 "Партнер Нефть" [13:55:40]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [13:55:40]line СНО: Общий режим [13:55:40]line Чек 133 20.10.2024 13:55 [13:55:40]line Смена: 114 ФФД: 1.0 [13:55:40]line ЗНМ: 0300000137 [13:55:40]line РНМ: 0000000000186857 [13:55:40]line Версия ККМ: v1.0 [13:55:40]line ФМ: 0000000002094219 [13:55:40]line ФД: 30351 [13:55:40]line ФПД: 278815063967566 [13:55:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T135548&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30351&fm=278815063967566&tin=02508201610067®Number=0000000000186857&sum=40000 [13:55:40]OFD Sender: Processing packet 30351 [packets to send 10, broken 9] [13:55:40]ProducePacketName [13:55:40]name=ofd_packets/00030351 [13:55:40]OFD Sender: To server: pG, [13:55:40]CommunicateWithHost lk.salyk.kg:30040 [13:55:40]ConnectInit lk.salyk.kg [13:55:40]written 0, free lines is 4095 [13:55:40]Connected sock=10 [13:55: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 00 B2 07 01 11 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 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 85 00 00 00 F4 03 04 00 E4 0B 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 FD 94 B0 D8 87 4E 42 A1 26 76 0D 23 3E 99 [13:55: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 74 DD 47 00 ED 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 8F 76 00 00 F4 03 04 00 67 B6 14 67 B6 04 01 00 00 62 C4 AE 5E 12 1E CE CD [13:55:40]CommunicateWithHost err = 0 [13:55:40]CheckOFDResponse [13:55:40]1017 (14) - 77093643461234 [13:55:40]1041 (16) - 0000000002094219 [13:55:40]1040 (4) - 30351 [13:55:40]1012 (4) - 20.10.2024 07:51 [13:55:40]1206 (1) - 0 [13:55:40]OFD Sender: Remove packet 30351 [13:55:40]ProducePacketName [13:55:40]name=ofd_packets/00030351 [13:55:40]NVStorageDeleteData [13:55:40]Write to MH i2c: 01 00 00 54 88 DC [13:55:40]Write i2c OK [13:55:40]MH_I2C_Read... [13:55:40]Read from MH i2c: 01 [13:55:40]MH_I2C_Read... [13:55:40]Read from MH i2c: 01 07 00 [13:55:40]MH_I2C_Read... [13:55:40]Read from MH i2c: 01 07 00 54 88 00 00 00 00 00 EC 0C DB [13:55:40]RasterBufferAndPrint [13:55:40]line [13:55:40]line [13:55:40]line [13:55:40]line [13:55:40]line [13:55:40]written 0, free lines is 3317 [13:55:40]MH_Cut [13:55:40]Write to MH i2c: D1 01 00 5B 88 01 B5 [13:55:40]Write i2c OK [13:55:40]MH_I2C_Read... [13:55:40]Read from MH i2c: D1 [13:55:40]MH_I2C_Read... [13:55:40]Read from MH i2c: D1 01 00 [13:55:40]MH_I2C_Read... [13:55:40]Read from MH i2c: D1 01 00 5B 88 00 B4 [13:55:40]Write to MH i2c: 01 00 00 5C 88 E4 [13:55:40]Write i2c OK [13:55:40]MH_I2C_Read... [13:55:41]OFD Sender: No OFD packet to send [13:55:41]*** Cut start [13:55:41]*** Partial cut [13:55:41]*** CUTSNS_PIN = 1 [13:55:41]*** CUTSNS_PIN = 0 [13:55:41]*** Brake cut motor [13:55:42]Read from MH i2c: 01 [13:55:42]MH_I2C_Read... [13:55:42]*** Stop cut motor [13:55:42]Read from MH i2c: 01 07 00 [13:55:42]MH_I2C_Read... [13:55:42]*** Cut end [13:55:42]Read from MH i2c: 01 07 00 5C 88 00 00 00 00 00 FF 0F F9 [13:55:42]process_action close_receipt done [13:55:42]requested_data is exist [13:55:42]produce_requested_data [13:55:42]requested_item fm.sn is exist - process it [13:55:42]wFMCommunicate request_size=4 [13:55:42]MH_SAM_APDU [13:55:42]CAPDU: 80 11 00 00 [13:55:42]Write to MH i2c: E2 08 00 5D 88 80 11 00 00 00 00 00 00 5F [13:55:42]Write i2c OK [13:55:42]MH_I2C_Read... [13:55:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:55:42]Read from MH i2c: E2 [13:55:42]MH_I2C_Read... [13:55:42]Read from MH i2c: E2 17 00 [13:55:42]MH_I2C_Read... [13:55:42]Read from MH i2c: E2 17 00 5D 88 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 AD [13:55:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [13:55:42]wFMCommunicate OK [13:55:42]requested_item fd.num is exist - process it [13:55:42]SAM_PROTO_GetFieldsCounters [13:55:42]wFMCommunicate request_size=4 [13:55:42]MH_SAM_APDU [13:55:42]CAPDU: 80 13 00 00 [13:55:42]Write to MH i2c: E2 08 00 5E 88 80 13 00 00 00 00 00 00 62 [13:55:42]Write i2c OK [13:55:42]MH_I2C_Read... [13:55:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:55:42]Read from MH i2c: E2 [13:55:42]MH_I2C_Read... [13:55:42]Read from MH i2c: E2 62 00 [13:55:42]MH_I2C_Read... [13:55:42]Read from MH i2c: E2 62 00 5E 88 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 8E [13:55: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 8F 76 00 00 0E 04 04 00 72 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 [13:55:42]wFMCommunicate OK [13:55:42]SAM_PROTO_GetFieldsCounters done [13:55:42]requested_item shift.num is exist - process it [13:55:42]requested_item shift.opened is exist - process it [13:55:42]req_shift_opened [13:55:42]FM_GetShiftState [13:55:42]SAM_PROTO_GetShiftState [13:55:42]wFMCommunicate request_size=4 [13:55:42]MH_SAM_APDU [13:55:42]CAPDU: 80 13 01 00 [13:55:42]Write to MH i2c: E2 08 00 5F 88 80 13 01 00 00 00 00 00 64 [13:55:42]Write i2c OK [13:55:42]MH_I2C_Read... [13:55:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:55:42]Read from MH i2c: E2 [13:55:42]MH_I2C_Read... [13:55:42]Read from MH i2c: E2 0E 00 [13:55:42]MH_I2C_Read... [13:55:42]Read from MH i2c: E2 0E 00 5F 88 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 4A [13:55:42]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [13:55:42]wFMCommunicate OK [13:55:42]SAM_PROTO_GetShiftState done [13:55:42]FM_GetShiftState done [13:55:42]req_shift_opened done [13:55:42]requested_item shift.open_date is exist - process it [13:55:42]req_shift_open_date [13:55:42]req_shift_open_date done [13:55:42]produce_requested_data done [13:55:42]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30351,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [13:55:42]process_action_free close_receipt [13:55:42]json_value_free [13:55:42]json_value_free done [13:55:42]process_json_proto returns [13:55:42]Send response to host [13:55:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30351,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [13:55:42]free response buf [13:55:42]execute_script done [13:55:42]execute_script returns [13:55:42]free content buf [13:55:42]Sock 9.Close socket [13:55:42]Sock 9.Thread stoped [13:55:46]OFD Sender: No OFD packet to send [13:55:51]OFD Sender: No OFD packet to send [13:55:56]OFD Sender: No OFD packet to send [13:56:01]OFD Sender: No OFD packet to send [13:56:06]OFD Sender: No OFD packet to send [13:56:11]OFD Sender: No OFD packet to send [13:56:16]OFD Sender: No OFD packet to send [13:56:21]OFD Sender: No OFD packet to send [13:56:26]OFD Sender: No OFD packet to send [13:56:31]OFD Sender: No OFD packet to send [13:56:36]OFD Sender: No OFD packet to send [13:56:41]OFD Sender: No OFD packet to send [13:56:42]accept exits with 7 [13:56:42]New connection [13:56:42]New thread 3067514212 created [13:56:42]Thread 3067370852 joined [13:56:42]Waiting for new connection... [13:56:42] Sock 7.Parse request [13:56:42]Sock 7.Check first char [13:56:42]Sock 7.First char is OK [13:56:42]request: POST /json_proto HTTP/1.0 [13:56:42]Method: POST [13:56:42]URL: /json_proto [13:56:42]Method is POST - this is cgi request [13:56:42]url: /json_proto [13:56:42]query_string will be loaded in cgi processing [13:56:42]execute_cgi json_proto POST (null) [13:56:42]execute_cgi path=json_proto method=POST [13:56:42]POST find Content-Length [13:56:42]Host: 172.17.51.3:8080 [13:56:42]Content-Length: 677 [13:56:42]Content-Type: application/json [13:56:42] [13:56:42]POST finish read [13:56:42]Found Content-Length = 677 [13:56:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342744", "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" ] } } [13:56:42]execute_script... [13:56: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)342744", "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" ] } } [13:56:42]POST & json_proto [13:56:42]process_json_proto [13:56:42]json parsed OK: [13:56:42]protocol is kg_v1.0 [13:56:42]action value=close_receipt [13:56:42]process_action close_receipt [13:56:42]cmd_close_receipt [13:56:42]MH_GetDate [13:56:42]Write to MH i2c: F0 00 00 60 88 D7 [13:56:42]Write i2c OK [13:56:42]MH_I2C_Read... [13:56:42]Read from MH i2c: F0 [13:56:42]MH_I2C_Read... [13:56:42]Read from MH i2c: F0 09 00 [13:56:42]MH_I2C_Read... [13:56:42]Read from MH i2c: F0 09 00 60 88 00 24 0C 15 67 04 C1 95 66 4C [13:56:42]GetLastDocTimeStamp 1729432548 [13:56:42]current date 1729432612 [13:56:42]FM_GetShiftState [13:56:42]SAM_PROTO_GetShiftState [13:56:42]wFMCommunicate request_size=4 [13:56:42]MH_SAM_APDU [13:56:42]CAPDU: 80 13 01 00 [13:56:42]Write to MH i2c: E2 08 00 61 88 80 13 01 00 00 00 00 00 66 [13:56:42]Write i2c OK [13:56:42]MH_I2C_Read... [13:56:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:56:43]Read from MH i2c: E2 [13:56:43]MH_I2C_Read... [13:56:43]Read from MH i2c: E2 0E 00 [13:56:43]MH_I2C_Read... [13:56:43]Read from MH i2c: E2 0E 00 61 88 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 4C [13:56:43]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [13:56:43]wFMCommunicate OK [13:56:43]SAM_PROTO_GetShiftState done [13:56:43]FM_GetShiftState done [13:56:43]opened in 1729384718 [13:56:43]opened+sec_in_day 1729471118 [13:56:43]quantity*price = 40006 [13:56:43]sum+1 = 40007 [13:56:43]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 СНО: Общий режим Чек 134 20.10.2024 13:56 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30352 ФПД: 56510533243554 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T135652&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30352&fm=56510533243554&tin=02508201610067®Number=0000000000186857&sum=40000 [13:56:44]StoreToDocumentArchive [13:56:44]shift 114 fd 30352 [13:56:44]save to /storage/0114/doc_00030352 [13:56:44]save last doc name /storage/0114/doc_00030352 to /storage/kkm_last_doc_name [13:56:44]save OK [13:56:44]Clear old archive folders... [13:56:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:56:44]tlvbuf is 00AB9B20 [13:56:44]SAM_PROTO_ClearQueue [13:56:44]wFMCommunicate request_size=4 [13:56:44]MH_SAM_APDU [13:56:44]CAPDU: 80 09 00 00 [13:56:44]Write to MH i2c: E2 08 00 6E 88 80 09 00 00 00 00 00 00 68 [13:56:44]Write i2c OK [13:56:44]MH_I2C_Read... [13:56:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:56:44]Read from MH i2c: E2 [13:56:44]MH_I2C_Read... [13:56:44]Read from MH i2c: E2 03 00 [13:56:44]MH_I2C_Read... [13:56:44]Read from MH i2c: E2 03 00 6E 88 00 90 00 6A [13:56:44]RAPDU: 90 00 [13:56:44]wFMCommunicate OK [13:56:44]SAM_PROTO_ClearQueue done [13:56:44]KKMCreateOFDPacket [13:56:44]OFDProtocolAddRootSTLVToBuf [13:56:44]FM_MakeSignedData [13:56:44]FM_MakeSignedData [13:56:44]SAM_PROTO_SignData [13:56:44]wFMCommunicate request_size=4 [13:56:44]MH_SAM_APDU [13:56:44]CAPDU: 80 0D 01 02 [13:56:44]Write to MH i2c: E2 08 00 6F 88 80 0D 01 02 00 00 00 00 70 [13:56:44]Write i2c OK [13:56:44]MH_I2C_Read... [13:56:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:56:44]Read from MH i2c: E2 [13:56:44]MH_I2C_Read... [13:56:44]Read from MH i2c: E2 03 00 [13:56:44]MH_I2C_Read... [13:56:44]Read from MH i2c: E2 03 00 6F 88 00 90 00 6B [13:56:44]RAPDU: 90 00 [13:56:44]wFMCommunicate OK [13:56:44]wFMCommunicate request_size=255 [13:56:44]MH_SAM_APDU [13:56:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 86 00 00 00 F4 03 04 00 24 0C 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 33 [13:56:44]Write to MH i2c: E2 02 01 70 88 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 86 00 00 00 F4 03 04 00 24 0C 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 33 00 00 AD [13:56:44]Write i2c OK [13:56:44]MH_I2C_Read... [13:56:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:56:44]Read from MH i2c: E2 [13:56:44]MH_I2C_Read... [13:56:44]Read from MH i2c: E2 03 00 [13:56:44]MH_I2C_Read... [13:56:44]Read from MH i2c: E2 03 00 70 88 00 90 00 6C [13:56:44]RAPDU: 90 00 [13:56:44]wFMCommunicate OK [13:56:44]wFMCommunicate request_size=10 [13:56:44]MH_SAM_APDU [13:56:44]CAPDU: 80 0D 02 02 05 65 62 42 92 A2 [13:56:44]Write to MH i2c: E2 0D 00 71 88 80 0D 02 02 05 00 65 62 42 92 A2 00 00 BA [13:56:44]Write i2c OK [13:56:44]MH_I2C_Read... [13:56:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:56:44]Read from MH i2c: E2 [13:56:44]MH_I2C_Read... [13:56:44]Read from MH i2c: E2 03 00 [13:56:44]MH_I2C_Read... [13:56:44]Read from MH i2c: E2 03 00 71 88 00 90 00 6D [13:56:44]RAPDU: 90 00 [13:56:44]wFMCommunicate OK [13:56:44]wFMCommunicate request_size=4 [13:56:44]MH_SAM_APDU [13:56:44]CAPDU: 80 0D 03 02 [13:56:44]Write to MH i2c: E2 08 00 72 88 80 0D 03 02 00 00 00 00 75 [13:56:44]Write i2c OK [13:56:44]MH_I2C_Read... [13:56:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:56:44]Read from MH i2c: E2 [13:56:44]MH_I2C_Read... [13:56:44]Read from MH i2c: E2 0B 00 [13:56:44]MH_I2C_Read... [13:56:44]Read from MH i2c: E2 0B 00 72 88 00 E2 FD 12 69 B4 C7 05 95 90 00 E5 [13:56:44]RAPDU: E2 FD 12 69 B4 C7 05 95 90 00 [13:56:44]wFMCommunicate OK [13:56:44]SAM_PROTO_SignData done [13:56:44]FM_MakeSignedData done [13:56:44]CreateOFDProtocolMessage [13:56:44]wFMCommunicate request_size=4 [13:56:44]MH_SAM_APDU [13:56:44]CAPDU: 80 11 00 00 [13:56:44]Write to MH i2c: E2 08 00 73 88 80 11 00 00 00 00 00 00 75 [13:56:44]Write i2c OK [13:56:44]MH_I2C_Read... [13:56:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:56:44]Read from MH i2c: E2 [13:56:44]MH_I2C_Read... [13:56:44]Read from MH i2c: E2 17 00 [13:56:44]MH_I2C_Read... [13:56:44]Read from MH i2c: E2 17 00 73 88 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 C3 [13:56: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:56:44]wFMCommunicate OK [13:56:44]CreateOFDProtocolMessage done [13:56:44]OFDSenderStorePacket 30352 [13:56:44]StoreOFDPacket docnum=30352 [13:56: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 5B 85 07 01 8C 32 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 86 00 00 00 F4 03 04 00 24 0C 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 33 65 62 42 92 A2 E2 FD 12 69 B4 C7 05 95 [13:56:44]CheckFolder [13:56:44]dirname=/storage/ofd_packets [13:56:44]CheckFolder done [13:56:44]ProducePacketName [13:56:44]name=ofd_packets/00030352 [13:56:44]NVStorageSaveData ofd_packets/00030352 [13:56:44]File name is /storage/ofd_packets/00030352 [13:56:44]Write 301 bytes [13:56:44]NVStorageSaveData done [13:56:44]OFDSenderStorePacket done [13:56:44]KKMCreateOFDPacket done [13:56:44]NVStorageSaveData kkm_last_timestamp [13:56:44]File name is /storage/kkm_last_timestamp [13:56:44]Write 4 bytes [13:56:44]NVStorageSaveData done [13:56:44]ExternCall_PrintAddStr [13:56:44]wPrintStart [13:56:44]Write to MH i2c: 01 00 00 74 88 FC [13:56:44]Write i2c OK [13:56:44]MH_I2C_Read... [13:56:44]Read from MH i2c: 01 [13:56:44]MH_I2C_Read... [13:56:44]Read from MH i2c: 01 07 00 [13:56:44]MH_I2C_Read... [13:56:44]Read from MH i2c: 01 07 00 74 88 00 00 00 00 00 FF 0F 11 [13:56:44]RasterBufferAndPrint [13:56:44]line Счет N : (1)342744 [13:56:44]line ИНН: 02508201610067 [13:56:44]line Контрольно-Кассовый Чек [13:56:44]line ПРОДАЖА [13:56:44]line ТРК (МРК, ГНК) : 63 [13:56:44]line Товар: 2710124130 [13:56:44]line Аи-92-К-2 [13:56:44]line 5.980 * 66.90 [13:56:44]line = 400.06 [13:56:44]line НДС 12% НСП 1% [13:56:44]line > о реализуемом товаре [13:56:44]line ОКРУГЛЕНИЕ: -0.06 [13:56:44]line ИТОГО: 400.00 [13:56:44]line Внесено: 400.00 [13:56:44]line СДАЧА: 0.00 [13:56:44]line НСП 1% : 3.54 [13:56:44]line НДС 12% : 42.48 [13:56:44]line Наличными: 400.00 [13:56:44]line Безнал.: 0.00 [13:56:44]line Место: АЗС № 78 "Партнер Нефть" [13:56:44]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [13:56:44]line СНО: Общий режим [13:56:44]line Чек 134 20.10.2024 13:56 [13:56:44]line Смена: 114 ФФД: 1.0 [13:56:44]line ЗНМ: 0300000137 [13:56:44]line РНМ: 0000000000186857 [13:56:44]line Версия ККМ: v1.0 [13:56:44]line ФМ: 0000000002094219 [13:56:44]line ФД: 30352 [13:56:44]line ФПД: 56510533243554 [13:56:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T135652&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30352&fm=56510533243554&tin=02508201610067®Number=0000000000186857&sum=40000 [13:56:45]OFD Sender: Processing packet 30352 [packets to send 10, broken 9] [13:56:45]ProducePacketName [13:56:45]name=ofd_packets/00030352 [13:56:45]OFD Sender: To server: pG, [13:56:45]CommunicateWithHost lk.salyk.kg:30040 [13:56:45]ConnectInit lk.salyk.kg [13:56:45]written 0, free lines is 4095 [13:56:45]Connected sock=10 [13:56: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 5B 85 07 01 8C 32 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 86 00 00 00 F4 03 04 00 24 0C 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 33 65 62 42 92 A2 E2 FD 12 69 B4 C7 05 95 [13:56: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 08 19 47 00 EA 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 90 76 00 00 F4 03 04 00 A8 B6 14 67 B6 04 01 00 00 8B 33 9B 60 89 98 0B CF [13:56:45]CommunicateWithHost err = 0 [13:56:45]CheckOFDResponse [13:56:45]1017 (14) - 77093643461234 [13:56:45]1041 (16) - 0000000002094219 [13:56:45]1040 (4) - 30352 [13:56:45]1012 (4) - 20.10.2024 07:52 [13:56:45]1206 (1) - 0 [13:56:45]OFD Sender: Remove packet 30352 [13:56:45]ProducePacketName [13:56:45]name=ofd_packets/00030352 [13:56:45]NVStorageDeleteData [13:56:45]Write to MH i2c: 01 00 00 9F 88 27 [13:56:45]Write i2c OK [13:56:45]MH_I2C_Read... [13:56:45]Read from MH i2c: 01 [13:56:45]MH_I2C_Read... [13:56:45]Read from MH i2c: 01 07 00 [13:56:45]MH_I2C_Read... [13:56:45]Read from MH i2c: 01 07 00 9F 88 00 00 00 00 00 ED 0C 27 [13:56:45]RasterBufferAndPrint [13:56:45]line [13:56:45]line [13:56:45]line [13:56:45]line [13:56:45]line [13:56:45]written 0, free lines is 3315 [13:56:45]MH_Cut [13:56:45]Write to MH i2c: D1 01 00 A6 88 01 00 [13:56:45]Write i2c OK [13:56:45]MH_I2C_Read... [13:56:45]Read from MH i2c: D1 [13:56:45]MH_I2C_Read... [13:56:45]Read from MH i2c: D1 01 00 [13:56:45]MH_I2C_Read... [13:56:45]Read from MH i2c: D1 01 00 A6 88 00 FF [13:56:45]Write to MH i2c: 01 00 00 A7 88 2F [13:56:45]Write i2c OK [13:56:45]MH_I2C_Read... [13:56:45]OFD Sender: No OFD packet to send [13:56:46]*** Cut start [13:56:46]*** Partial cut [13:56:46]*** CUTSNS_PIN = 1 [13:56:46]*** CUTSNS_PIN = 0 [13:56:46]*** Brake cut motor [13:56:46]Read from MH i2c: 01 [13:56:46]MH_I2C_Read... [13:56:46]*** Stop cut motor [13:56:46]*** Cut end [13:56:46]Read from MH i2c: 01 07 00 [13:56:46]MH_I2C_Read... [13:56:46]Read from MH i2c: 01 07 00 A7 88 00 00 00 00 00 FF 0F 44 [13:56:46]process_action close_receipt done [13:56:46]requested_data is exist [13:56:46]produce_requested_data [13:56:46]requested_item fm.sn is exist - process it [13:56:46]wFMCommunicate request_size=4 [13:56:46]MH_SAM_APDU [13:56:46]CAPDU: 80 11 00 00 [13:56:46]Write to MH i2c: E2 08 00 A8 88 80 11 00 00 00 00 00 00 AA [13:56:46]Write i2c OK [13:56:46]MH_I2C_Read... [13:56:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:56:46]Read from MH i2c: E2 [13:56:46]MH_I2C_Read... [13:56:46]Read from MH i2c: E2 17 00 [13:56:46]MH_I2C_Read... [13:56:46]Read from MH i2c: E2 17 00 A8 88 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 F8 [13:56: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:56:46]wFMCommunicate OK [13:56:46]requested_item fd.num is exist - process it [13:56:46]SAM_PROTO_GetFieldsCounters [13:56:46]wFMCommunicate request_size=4 [13:56:46]MH_SAM_APDU [13:56:46]CAPDU: 80 13 00 00 [13:56:46]Write to MH i2c: E2 08 00 A9 88 80 13 00 00 00 00 00 00 AD [13:56:46]Write i2c OK [13:56:46]MH_I2C_Read... [13:56:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:56:46]Read from MH i2c: E2 [13:56:46]MH_I2C_Read... [13:56:46]Read from MH i2c: E2 62 00 [13:56:46]MH_I2C_Read... [13:56:46]Read from MH i2c: E2 62 00 A9 88 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 DD [13:56: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 90 76 00 00 0E 04 04 00 72 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 [13:56:46]wFMCommunicate OK [13:56:46]SAM_PROTO_GetFieldsCounters done [13:56:46]requested_item shift.num is exist - process it [13:56:46]requested_item shift.opened is exist - process it [13:56:46]req_shift_opened [13:56:46]FM_GetShiftState [13:56:46]SAM_PROTO_GetShiftState [13:56:46]wFMCommunicate request_size=4 [13:56:46]MH_SAM_APDU [13:56:46]CAPDU: 80 13 01 00 [13:56:46]Write to MH i2c: E2 08 00 AA 88 80 13 01 00 00 00 00 00 AF [13:56:46]Write i2c OK [13:56:46]MH_I2C_Read... [13:56:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:56:47]Read from MH i2c: E2 [13:56:47]MH_I2C_Read... [13:56:47]Read from MH i2c: E2 0E 00 [13:56:47]MH_I2C_Read... [13:56:47]Read from MH i2c: E2 0E 00 AA 88 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 95 [13:56:47]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [13:56:47]wFMCommunicate OK [13:56:47]SAM_PROTO_GetShiftState done [13:56:47]FM_GetShiftState done [13:56:47]req_shift_opened done [13:56:47]requested_item shift.open_date is exist - process it [13:56:47]req_shift_open_date [13:56:47]req_shift_open_date done [13:56:47]produce_requested_data done [13:56:47]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30352,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [13:56:47]process_action_free close_receipt [13:56:47]json_value_free [13:56:47]json_value_free done [13:56:47]process_json_proto returns [13:56:47]Send response to host [13:56:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30352,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [13:56:47]free response buf [13:56:47]execute_script done [13:56:47]execute_script returns [13:56:47]free content buf [13:56:47]Sock 7.Close socket [13:56:47]Sock 7.Thread stoped [13:56:50]OFD Sender: No OFD packet to send [13:56:55]OFD Sender: No OFD packet to send [13:57:00]OFD Sender: No OFD packet to send [13:57:05]OFD Sender: No OFD packet to send [13:57:10]OFD Sender: No OFD packet to send [13:57:15]OFD Sender: No OFD packet to send [13:57:20]OFD Sender: No OFD packet to send [13:57:25]OFD Sender: No OFD packet to send [13:57:30]OFD Sender: No OFD packet to send [13:57:35]OFD Sender: No OFD packet to send [13:57:40]OFD Sender: No OFD packet to send [13:57:45]OFD Sender: No OFD packet to send [13:57:50]OFD Sender: No OFD packet to send [13:57:55]OFD Sender: No OFD packet to send [13:58:00]OFD Sender: No OFD packet to send [13:58:05]OFD Sender: No OFD packet to send [13:58:10]OFD Sender: No OFD packet to send [13:58:15]OFD Sender: No OFD packet to send [13:58:20]OFD Sender: No OFD packet to send [13:58:25]OFD Sender: No OFD packet to send [13:58:30]OFD Sender: No OFD packet to send [13:58:35]OFD Sender: No OFD packet to send [13:58:40]OFD Sender: No OFD packet to send [13:58:46]OFD Sender: No OFD packet to send [13:58:51]OFD Sender: No OFD packet to send [13:58:56]OFD Sender: No OFD packet to send [13:59:01]OFD Sender: No OFD packet to send [13:59:06]OFD Sender: No OFD packet to send [13:59:11]OFD Sender: No OFD packet to send [13:59:16]OFD Sender: No OFD packet to send [13:59:21]OFD Sender: No OFD packet to send [13:59:26]OFD Sender: No OFD packet to send [13:59:31]OFD Sender: No OFD packet to send [13:59:36]OFD Sender: No OFD packet to send [13:59:41]OFD Sender: No OFD packet to send [13:59:46]OFD Sender: No OFD packet to send [13:59:51]OFD Sender: No OFD packet to send [13:59:56]OFD Sender: No OFD packet to send [14:00:01]OFD Sender: No OFD packet to send [14:00:06]OFD Sender: No OFD packet to send [14:00:11]OFD Sender: No OFD packet to send [14:00:16]OFD Sender: No OFD packet to send [14:00:21]OFD Sender: No OFD packet to send [14:00:26]OFD Sender: No OFD packet to send [14:00:31]OFD Sender: No OFD packet to send [14:00:36]OFD Sender: No OFD packet to send [14:00:40]accept exits with 9 [14:00:40]New connection [14:00:40]New thread 3067370852 created [14:00:40]Thread 3067514212 joined [14:00:40]Waiting for new connection... [14:00:40] Sock 9.Parse request [14:00:40]Sock 9.Check first char [14:00:40]Sock 9.First char is OK [14:00:40]request: POST /json_proto HTTP/1.0 [14:00:40]Method: POST [14:00:40]URL: /json_proto [14:00:40]Method is POST - this is cgi request [14:00:40]url: /json_proto [14:00:40]query_string will be loaded in cgi processing [14:00:40]execute_cgi json_proto POST (null) [14:00:40]execute_cgi path=json_proto method=POST [14:00:40]POST find Content-Length [14:00:40]Host: 172.17.51.3:8080 [14:00:40]Content-Length: 677 [14:00:40]Content-Type: application/json [14:00:40] [14:00:40]POST finish read [14:00:40]Found Content-Length = 677 [14:00:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342745", "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" ] } } [14:00:40]execute_script... [14:00:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342745", "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" ] } } [14:00:40]POST & json_proto [14:00:40]process_json_proto [14:00:40]json parsed OK: [14:00:40]protocol is kg_v1.0 [14:00:40]action value=close_receipt [14:00:40]process_action close_receipt [14:00:40]cmd_close_receipt [14:00:40]MH_GetDate [14:00:40]Write to MH i2c: F0 00 00 AB 88 22 [14:00:40]Write i2c OK [14:00:40]MH_I2C_Read... [14:00:40]Read from MH i2c: F0 [14:00:40]MH_I2C_Read... [14:00:40]Read from MH i2c: F0 09 00 [14:00:40]MH_I2C_Read... [14:00:40]Read from MH i2c: F0 09 00 AB 88 00 11 0D 15 67 04 C1 95 66 85 [14:00:40]GetLastDocTimeStamp 1729432612 [14:00:40]current date 1729432849 [14:00:40]FM_GetShiftState [14:00:40]SAM_PROTO_GetShiftState [14:00:40]wFMCommunicate request_size=4 [14:00:40]MH_SAM_APDU [14:00:40]CAPDU: 80 13 01 00 [14:00:40]Write to MH i2c: E2 08 00 AC 88 80 13 01 00 00 00 00 00 B1 [14:00:40]Write i2c OK [14:00:40]MH_I2C_Read... [14:00:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:00:40]Read from MH i2c: E2 [14:00:40]MH_I2C_Read... [14:00:40]Read from MH i2c: E2 0E 00 [14:00:40]MH_I2C_Read... [14:00:40]Read from MH i2c: E2 0E 00 AC 88 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 97 [14:00:40]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [14:00:40]wFMCommunicate OK [14:00:40]SAM_PROTO_GetShiftState done [14:00:40]FM_GetShiftState done [14:00:40]opened in 1729384718 [14:00:40]opened+sec_in_day 1729471118 [14:00:40]quantity*price = 50010 [14:00:40]sum+1 = 50012 [14:00:40]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 СНО: Общий режим Чек 135 20.10.2024 14:00 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30353 ФПД: 186585333694899 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T140050&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30353&fm=186585333694899&tin=02508201610067®Number=0000000000186857&sum=50000 [14:00:41]StoreToDocumentArchive [14:00:41]shift 114 fd 30353 [14:00:41]save to /storage/0114/doc_00030353 [14:00:41]save last doc name /storage/0114/doc_00030353 to /storage/kkm_last_doc_name [14:00:41]save OK [14:00:41]Clear old archive folders... [14:00:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:00:41]tlvbuf is 00CB7260 [14:00:41]SAM_PROTO_ClearQueue [14:00:41]wFMCommunicate request_size=4 [14:00:41]MH_SAM_APDU [14:00:41]CAPDU: 80 09 00 00 [14:00:41]Write to MH i2c: E2 08 00 B9 88 80 09 00 00 00 00 00 00 B3 [14:00:41]Write i2c OK [14:00:41]MH_I2C_Read... [14:00:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:00:41]Read from MH i2c: E2 [14:00:41]MH_I2C_Read... [14:00:41]Read from MH i2c: E2 03 00 [14:00:41]MH_I2C_Read... [14:00:41]Read from MH i2c: E2 03 00 B9 88 00 90 00 B5 [14:00:41]RAPDU: 90 00 [14:00:41]wFMCommunicate OK [14:00:41]SAM_PROTO_ClearQueue done [14:00:41]KKMCreateOFDPacket [14:00:41]OFDProtocolAddRootSTLVToBuf [14:00:41]FM_MakeSignedData [14:00:41]FM_MakeSignedData [14:00:41]SAM_PROTO_SignData [14:00:41]wFMCommunicate request_size=4 [14:00:41]MH_SAM_APDU [14:00:41]CAPDU: 80 0D 01 02 [14:00:41]Write to MH i2c: E2 08 00 BA 88 80 0D 01 02 00 00 00 00 BB [14:00:41]Write i2c OK [14:00:41]MH_I2C_Read... [14:00:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:00:41]Read from MH i2c: E2 [14:00:41]MH_I2C_Read... [14:00:41]Read from MH i2c: E2 03 00 [14:00:41]MH_I2C_Read... [14:00:41]Read from MH i2c: E2 03 00 BA 88 00 90 00 B6 [14:00:41]RAPDU: 90 00 [14:00:41]wFMCommunicate OK [14:00:41]wFMCommunicate request_size=255 [14:00:41]MH_SAM_APDU [14:00:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 87 00 00 00 F4 03 04 00 12 0D 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 A9 [14:00:41]Write to MH i2c: E2 02 01 BB 88 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 87 00 00 00 F4 03 04 00 12 0D 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 A9 00 00 69 [14:00:41]Write i2c OK [14:00:41]MH_I2C_Read... [14:00:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:00:41]Read from MH i2c: E2 [14:00:41]MH_I2C_Read... [14:00:41]Read from MH i2c: E2 03 00 [14:00:41]MH_I2C_Read... [14:00:41]Read from MH i2c: E2 03 00 BB 88 00 90 00 B7 [14:00:41]RAPDU: 90 00 [14:00:41]wFMCommunicate OK [14:00:41]wFMCommunicate request_size=10 [14:00:41]MH_SAM_APDU [14:00:41]CAPDU: 80 0D 02 02 05 B2 C8 89 01 B3 [14:00:41]Write to MH i2c: E2 0D 00 BC 88 80 0D 02 02 05 00 B2 C8 89 01 B3 00 00 7F [14:00:41]Write i2c OK [14:00:41]MH_I2C_Read... [14:00:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:00:41]Read from MH i2c: E2 [14:00:41]MH_I2C_Read... [14:00:41]Read from MH i2c: E2 03 00 [14:00:41]MH_I2C_Read... [14:00:41]Read from MH i2c: E2 03 00 BC 88 00 90 00 B8 [14:00:41]RAPDU: 90 00 [14:00:41]wFMCommunicate OK [14:00:41]wFMCommunicate request_size=4 [14:00:41]MH_SAM_APDU [14:00:41]CAPDU: 80 0D 03 02 [14:00:41]Write to MH i2c: E2 08 00 BD 88 80 0D 03 02 00 00 00 00 C0 [14:00:41]Write i2c OK [14:00:41]MH_I2C_Read... [14:00:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:00:41]Read from MH i2c: E2 [14:00:41]MH_I2C_Read... [14:00:41]Read from MH i2c: E2 0B 00 [14:00:41]MH_I2C_Read... [14:00:41]Read from MH i2c: E2 0B 00 BD 88 00 B2 62 2B 6C E4 87 65 CC 90 00 08 [14:00:41]RAPDU: B2 62 2B 6C E4 87 65 CC 90 00 [14:00:41]wFMCommunicate OK [14:00:41]SAM_PROTO_SignData done [14:00:41]FM_MakeSignedData done [14:00:41]CreateOFDProtocolMessage [14:00:41]wFMCommunicate request_size=4 [14:00:41]MH_SAM_APDU [14:00:41]CAPDU: 80 11 00 00 [14:00:41]Write to MH i2c: E2 08 00 BE 88 80 11 00 00 00 00 00 00 C0 [14:00:41]Write i2c OK [14:00:41]MH_I2C_Read... [14:00:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:00:41]Read from MH i2c: E2 [14:00:41]MH_I2C_Read... [14:00:41]Read from MH i2c: E2 17 00 [14:00:41]MH_I2C_Read... [14:00:41]Read from MH i2c: E2 17 00 BE 88 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 0E [14:00:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [14:00:41]wFMCommunicate OK [14:00:41]CreateOFDProtocolMessage done [14:00:41]OFDSenderStorePacket 30353 [14:00:41]StoreOFDPacket docnum=30353 [14:00: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 D3 CB 07 01 6A 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 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 87 00 00 00 F4 03 04 00 12 0D 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 A9 B2 C8 89 01 B3 B2 62 2B 6C E4 87 65 CC [14:00:41]CheckFolder [14:00:41]dirname=/storage/ofd_packets [14:00:41]CheckFolder done [14:00:41]ProducePacketName [14:00:41]name=ofd_packets/00030353 [14:00:41]NVStorageSaveData ofd_packets/00030353 [14:00:41]File name is /storage/ofd_packets/00030353 [14:00:41]Write 301 bytes [14:00:41]NVStorageSaveData done [14:00:41]OFDSenderStorePacket done [14:00:41]KKMCreateOFDPacket done [14:00:41]NVStorageSaveData kkm_last_timestamp [14:00:41]File name is /storage/kkm_last_timestamp [14:00:41]Write 4 bytes [14:00:41]NVStorageSaveData done [14:00:41]ExternCall_PrintAddStr [14:00:41]wPrintStart [14:00:41]Write to MH i2c: 01 00 00 BF 88 47 [14:00:41]Write i2c OK [14:00:41]MH_I2C_Read... [14:00:41]Read from MH i2c: 01 [14:00:41]MH_I2C_Read... [14:00:41]Read from MH i2c: 01 07 00 [14:00:41]MH_I2C_Read... [14:00:41]Read from MH i2c: 01 07 00 BF 88 00 00 00 00 00 FF 0F 5C [14:00:41]RasterBufferAndPrint [14:00:41]line Счет N : (1)342745 [14:00:41]line ИНН: 02508201610067 [14:00:41]line Контрольно-Кассовый Чек [14:00:41]line ПРОДАЖА [14:00:41]line ТРК (МРК, ГНК) : 62 [14:00:41]line Товар: 2710124500 [14:00:41]line Аи-95-К-3 [14:00:41]line 6.740 * 74.20 [14:00:41]line = 500.11 [14:00:41]line НДС 12% НСП 1% [14:00:41]line > о реализуемом товаре [14:00:41]line ОКРУГЛЕНИЕ: -0.11 [14:00:41]line ИТОГО: 500.00 [14:00:41]line Внесено: 500.00 [14:00:41]line СДАЧА: 0.00 [14:00:41]line НСП 1% : 4.43 [14:00:41]line НДС 12% : 53.11 [14:00:41]line Наличными: 500.00 [14:00:41]line Безнал.: 0.00 [14:00:41]line Место: АЗС № 78 "Партнер Нефть" [14:00:41]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [14:00:41]line СНО: Общий режим [14:00:41]line Чек 135 20.10.2024 14:00 [14:00:41]line Смена: 114 ФФД: 1.0 [14:00:41]line ЗНМ: 0300000137 [14:00:41]line РНМ: 0000000000186857 [14:00:41]line Версия ККМ: v1.0 [14:00:41]line ФМ: 0000000002094219 [14:00:41]line ФД: 30353 [14:00:41]line ФПД: 186585333694899 [14:00:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T140050&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30353&fm=186585333694899&tin=02508201610067®Number=0000000000186857&sum=50000 [14:00:42]OFD Sender: Processing packet 30353 [packets to send 10, broken 9] [14:00:42]ProducePacketName [14:00:42]name=ofd_packets/00030353 [14:00:42]OFD Sender: To server: pG, [14:00:42]CommunicateWithHost lk.salyk.kg:30040 [14:00:42]ConnectInit lk.salyk.kg [14:00:42]written 0, free lines is 4095 [14:00:42]Connected sock=10 [14:00: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 D3 CB 07 01 6A 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 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 87 00 00 00 F4 03 04 00 12 0D 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 A9 B2 C8 89 01 B3 B2 62 2B 6C E4 87 65 CC [14:00: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 3B 57 47 00 59 F6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 91 76 00 00 F4 03 04 00 95 B7 14 67 B6 04 01 00 00 11 A9 E4 82 57 7D 6A 0F [14:00:42]CommunicateWithHost err = 0 [14:00:42]CheckOFDResponse [14:00:42]1017 (14) - 77093643461234 [14:00:42]1041 (16) - 0000000002094219 [14:00:42]1040 (4) - 30353 [14:00:42]1012 (4) - 20.10.2024 07:56 [14:00:42]1206 (1) - 0 [14:00:42]OFD Sender: Remove packet 30353 [14:00:42]ProducePacketName [14:00:42]name=ofd_packets/00030353 [14:00:42]NVStorageDeleteData [14:00:42]Write to MH i2c: 01 00 00 EA 88 72 [14:00:42]Write i2c OK [14:00:42]MH_I2C_Read... [14:00:42]Read from MH i2c: 01 [14:00:42]MH_I2C_Read... [14:00:42]Read from MH i2c: 01 07 00 [14:00:42]MH_I2C_Read... [14:00:42]Read from MH i2c: 01 07 00 EA 88 00 00 00 00 00 F0 0C 75 [14:00:42]RasterBufferAndPrint [14:00:42]line [14:00:42]line [14:00:42]line [14:00:42]line [14:00:42]line [14:00:42]written 0, free lines is 3318 [14:00:42]MH_Cut [14:00:42]Write to MH i2c: D1 01 00 F1 88 01 4B [14:00:42]Write i2c OK [14:00:42]MH_I2C_Read... [14:00:42]Read from MH i2c: D1 [14:00:42]MH_I2C_Read... [14:00:42]Read from MH i2c: D1 01 00 [14:00:42]MH_I2C_Read... [14:00:42]Read from MH i2c: D1 01 00 F1 88 00 4A [14:00:42]Write to MH i2c: 01 00 00 F2 88 7A [14:00:42]Write i2c OK [14:00:42]MH_I2C_Read... [14:00:43]OFD Sender: No OFD packet to send [14:00:43]*** Cut start [14:00:43]*** Partial cut [14:00:43]*** CUTSNS_PIN = 1 [14:00:43]*** CUTSNS_PIN = 0 [14:00:43]*** Brake cut motor [14:00:44]Read from MH i2c: 01 [14:00:44]MH_I2C_Read... [14:00:44]*** Stop cut motor [14:00:44]*** Cut end [14:00:44]Read from MH i2c: 01 07 00 [14:00:44]MH_I2C_Read... [14:00:44]Read from MH i2c: 01 07 00 F2 88 00 00 00 00 00 FF 0F 8F [14:00:44]process_action close_receipt done [14:00:44]requested_data is exist [14:00:44]produce_requested_data [14:00:44]requested_item fm.sn is exist - process it [14:00:44]wFMCommunicate request_size=4 [14:00:44]MH_SAM_APDU [14:00:44]CAPDU: 80 11 00 00 [14:00:44]Write to MH i2c: E2 08 00 F3 88 80 11 00 00 00 00 00 00 F5 [14:00:44]Write i2c OK [14:00:44]MH_I2C_Read... [14:00:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:00:44]Read from MH i2c: E2 [14:00:44]MH_I2C_Read... [14:00:44]Read from MH i2c: E2 17 00 [14:00:44]MH_I2C_Read... [14:00:44]Read from MH i2c: E2 17 00 F3 88 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 43 [14:00:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [14:00:44]wFMCommunicate OK [14:00:44]requested_item fd.num is exist - process it [14:00:44]SAM_PROTO_GetFieldsCounters [14:00:44]wFMCommunicate request_size=4 [14:00:44]MH_SAM_APDU [14:00:44]CAPDU: 80 13 00 00 [14:00:44]Write to MH i2c: E2 08 00 F4 88 80 13 00 00 00 00 00 00 F8 [14:00:44]Write i2c OK [14:00:44]MH_I2C_Read... [14:00:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:00:44]Read from MH i2c: E2 [14:00:44]MH_I2C_Read... [14:00:44]Read from MH i2c: E2 62 00 [14:00:44]MH_I2C_Read... [14:00:44]Read from MH i2c: E2 62 00 F4 88 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 2C [14:00: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 91 76 00 00 0E 04 04 00 72 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:00:44]wFMCommunicate OK [14:00:44]SAM_PROTO_GetFieldsCounters done [14:00:44]requested_item shift.num is exist - process it [14:00:44]requested_item shift.opened is exist - process it [14:00:44]req_shift_opened [14:00:44]FM_GetShiftState [14:00:44]SAM_PROTO_GetShiftState [14:00:44]wFMCommunicate request_size=4 [14:00:44]MH_SAM_APDU [14:00:44]CAPDU: 80 13 01 00 [14:00:44]Write to MH i2c: E2 08 00 F5 88 80 13 01 00 00 00 00 00 FA [14:00:44]Write i2c OK [14:00:44]MH_I2C_Read... [14:00:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:00:44]Read from MH i2c: E2 [14:00:44]MH_I2C_Read... [14:00:44]Read from MH i2c: E2 0E 00 [14:00:44]MH_I2C_Read... [14:00:44]Read from MH i2c: E2 0E 00 F5 88 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 E0 [14:00:44]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [14:00:44]wFMCommunicate OK [14:00:44]SAM_PROTO_GetShiftState done [14:00:44]FM_GetShiftState done [14:00:44]req_shift_opened done [14:00:44]requested_item shift.open_date is exist - process it [14:00:44]req_shift_open_date [14:00:44]req_shift_open_date done [14:00:44]produce_requested_data done [14:00:44]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30353,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [14:00:44]process_action_free close_receipt [14:00:44]json_value_free [14:00:44]json_value_free done [14:00:44]process_json_proto returns [14:00:44]Send response to host [14:00:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30353,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [14:00:44]free response buf [14:00:44]execute_script done [14:00:44]execute_script returns [14:00:44]free content buf [14:00:44]Sock 9.Close socket [14:00:44]Sock 9.Thread stoped [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:53]OFD Sender: No OFD packet to send [14:05:58]OFD Sender: No OFD packet to send [14:06:03]OFD Sender: No OFD packet to send [14:06:08]OFD Sender: No OFD packet to send [14:06:13]OFD Sender: No OFD packet to send [14:06:18]OFD Sender: No OFD packet to send [14:06:23]OFD Sender: No OFD packet to send [14:06:28]OFD Sender: No OFD packet to send [14:06:33]OFD Sender: No OFD packet to send [14:06:38]OFD Sender: No OFD packet to send [14:06:43]OFD Sender: No OFD packet to send [14:06:48]OFD Sender: No OFD packet to send [14:06:53]OFD Sender: No OFD packet to send [14:06:58]OFD Sender: No OFD packet to send [14:07:03]OFD Sender: No OFD packet to send [14:07:08]OFD Sender: No OFD packet to send [14:07:13]OFD Sender: No OFD packet to send [14:07:18]OFD Sender: No OFD packet to send [14:07:23]OFD Sender: No OFD packet to send [14:07:28]OFD Sender: No OFD packet to send [14:07:33]OFD Sender: No OFD packet to send [14:07:38]OFD Sender: No OFD packet to send [14:07:43]OFD Sender: No OFD packet to send [14:07:48]OFD Sender: No OFD packet to send [14:07:52]accept exits with 7 [14:07:52]New connection [14:07:52]New thread 3067514212 created [14:07:52]Thread 3067370852 joined [14:07:52]Waiting for new connection... [14:07:52] Sock 7.Parse request [14:07:52]Sock 7.Check first char [14:07:52]Sock 7.First char is OK [14:07:52]request: POST /json_proto HTTP/1.0 [14:07:52]Method: POST [14:07:52]URL: /json_proto [14:07:52]Method is POST - this is cgi request [14:07:52]url: /json_proto [14:07:52]query_string will be loaded in cgi processing [14:07:52]execute_cgi json_proto POST (null) [14:07:52]execute_cgi path=json_proto method=POST [14:07:52]POST find Content-Length [14:07:52]Host: 172.17.51.3:8080 [14:07:52]Content-Length: 682 [14:07:52]Content-Type: application/json [14:07:52] [14:07:52]POST finish read [14:07:52]Found Content-Length = 682 [14:07:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342746", "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" ] } } [14:07:52]execute_script... [14:07: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)342746", "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" ] } } [14:07:52]POST & json_proto [14:07:52]process_json_proto [14:07:52]json parsed OK: [14:07:52]protocol is kg_v1.0 [14:07:52]action value=close_receipt [14:07:52]process_action close_receipt [14:07:52]cmd_close_receipt [14:07:52]MH_GetDate [14:07:52]Write to MH i2c: F0 00 00 F6 88 6D [14:07:52]Write i2c OK [14:07:52]MH_I2C_Read... [14:07:52]Read from MH i2c: F0 [14:07:52]MH_I2C_Read... [14:07:52]Read from MH i2c: F0 09 00 [14:07:52]MH_I2C_Read... [14:07:52]Read from MH i2c: F0 09 00 F6 88 00 C2 0E 15 67 04 C1 95 66 82 [14:07:52]GetLastDocTimeStamp 1729432850 [14:07:52]current date 1729433282 [14:07:52]FM_GetShiftState [14:07:52]SAM_PROTO_GetShiftState [14:07:52]wFMCommunicate request_size=4 [14:07:52]MH_SAM_APDU [14:07:52]CAPDU: 80 13 01 00 [14:07:52]Write to MH i2c: E2 08 00 F7 88 80 13 01 00 00 00 00 00 FC [14:07:52]Write i2c OK [14:07:52]MH_I2C_Read... [14:07:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:07:52]Read from MH i2c: E2 [14:07:52]MH_I2C_Read... [14:07:52]Read from MH i2c: E2 0E 00 [14:07:52]MH_I2C_Read... [14:07:52]Read from MH i2c: E2 0E 00 F7 88 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 E2 [14:07:52]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [14:07:52]wFMCommunicate OK [14:07:52]SAM_PROTO_GetShiftState done [14:07:52]FM_GetShiftState done [14:07:52]opened in 1729384718 [14:07:52]opened+sec_in_day 1729471118 [14:07:52]quantity*price = 100015 [14:07:52]sum+1 = 100017 [14:07:52]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 20.10.2024 14:08 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30354 ФПД: 67996396716422 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T140802&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30354&fm=67996396716422&tin=02508201610067®Number=0000000000186857&sum=100000 [14:07:53]StoreToDocumentArchive [14:07:53]shift 114 fd 30354 [14:07:53]save to /storage/0114/doc_00030354 [14:07:53]save last doc name /storage/0114/doc_00030354 to /storage/kkm_last_doc_name [14:07:53]save OK [14:07:53]Clear old archive folders... [14:07:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:07:53]tlvbuf is 00AA7680 [14:07:53]SAM_PROTO_ClearQueue [14:07:53]wFMCommunicate request_size=4 [14:07:53]MH_SAM_APDU [14:07:53]CAPDU: 80 09 00 00 [14:07:53]Write to MH i2c: E2 08 00 04 89 80 09 00 00 00 00 00 00 FF [14:07:53]Write i2c OK [14:07:53]MH_I2C_Read... [14:07:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:07:53]Read from MH i2c: E2 [14:07:53]MH_I2C_Read... [14:07:53]Read from MH i2c: E2 03 00 [14:07:53]MH_I2C_Read... [14:07:53]Read from MH i2c: E2 03 00 04 89 00 90 00 01 [14:07:53]RAPDU: 90 00 [14:07:53]wFMCommunicate OK [14:07:53]SAM_PROTO_ClearQueue done [14:07:53]KKMCreateOFDPacket [14:07:53]OFDProtocolAddRootSTLVToBuf [14:07:53]FM_MakeSignedData [14:07:53]FM_MakeSignedData [14:07:53]SAM_PROTO_SignData [14:07:53]wFMCommunicate request_size=4 [14:07:53]MH_SAM_APDU [14:07:53]CAPDU: 80 0D 01 02 [14:07:53]Write to MH i2c: E2 08 00 05 89 80 0D 01 02 00 00 00 00 07 [14:07:53]Write i2c OK [14:07:53]MH_I2C_Read... [14:07:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:07:53]Read from MH i2c: E2 [14:07:53]MH_I2C_Read... [14:07:53]Read from MH i2c: E2 03 00 [14:07:53]MH_I2C_Read... [14:07:53]Read from MH i2c: E2 03 00 05 89 00 90 00 02 [14:07:53]RAPDU: 90 00 [14:07:53]wFMCommunicate OK [14:07:53]wFMCommunicate request_size=255 [14:07:53]MH_SAM_APDU [14: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 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 C2 0E 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 3D [14:07:53]Write to MH i2c: E2 02 01 06 89 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 C2 0E 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 3D 00 00 1D [14:07:53]Write i2c OK [14:07:53]MH_I2C_Read... [14:07:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:07:54]Read from MH i2c: E2 [14:07:54]MH_I2C_Read... [14:07:54]Read from MH i2c: E2 03 00 [14:07:54]MH_I2C_Read... [14:07:54]Read from MH i2c: E2 03 00 06 89 00 90 00 03 [14:07:54]RAPDU: 90 00 [14:07:54]wFMCommunicate OK [14:07:54]wFMCommunicate request_size=10 [14:07:54]MH_SAM_APDU [14:07:54]CAPDU: 80 0D 02 02 05 D7 A5 12 81 86 [14:07:54]Write to MH i2c: E2 0D 00 07 89 80 0D 02 02 05 00 D7 A5 12 81 86 00 00 A9 [14:07:54]Write i2c OK [14:07:54]MH_I2C_Read... [14:07:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:07:54]Read from MH i2c: E2 [14:07:54]MH_I2C_Read... [14:07:54]Read from MH i2c: E2 03 00 [14:07:54]MH_I2C_Read... [14:07:54]Read from MH i2c: E2 03 00 07 89 00 90 00 04 [14:07:54]RAPDU: 90 00 [14:07:54]wFMCommunicate OK [14:07:54]wFMCommunicate request_size=4 [14:07:54]MH_SAM_APDU [14:07:54]CAPDU: 80 0D 03 02 [14:07:54]Write to MH i2c: E2 08 00 08 89 80 0D 03 02 00 00 00 00 0C [14:07:54]Write i2c OK [14:07:54]MH_I2C_Read... [14:07:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:07:54]Read from MH i2c: E2 [14:07:54]MH_I2C_Read... [14:07:54]Read from MH i2c: E2 0B 00 [14:07:54]MH_I2C_Read... [14:07:54]Read from MH i2c: E2 0B 00 08 89 00 D6 68 0E 0F A8 0C B8 C8 90 00 9C [14:07:54]RAPDU: D6 68 0E 0F A8 0C B8 C8 90 00 [14:07:54]wFMCommunicate OK [14:07:54]SAM_PROTO_SignData done [14:07:54]FM_MakeSignedData done [14:07:54]CreateOFDProtocolMessage [14:07:54]wFMCommunicate request_size=4 [14:07:54]MH_SAM_APDU [14:07:54]CAPDU: 80 11 00 00 [14:07:54]Write to MH i2c: E2 08 00 09 89 80 11 00 00 00 00 00 00 0C [14:07:54]Write i2c OK [14:07:54]MH_I2C_Read... [14:07:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:07:54]Read from MH i2c: E2 [14:07:54]MH_I2C_Read... [14:07:54]Read from MH i2c: E2 17 00 [14:07:54]MH_I2C_Read... [14:07:54]Read from MH i2c: E2 17 00 09 89 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 5A [14:07: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:07:54]wFMCommunicate OK [14:07:54]CreateOFDProtocolMessage done [14:07:54]OFDSenderStorePacket 30354 [14:07:54]StoreOFDPacket docnum=30354 [14:07: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 E3 F7 07 01 0D 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 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 C2 0E 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 3D D7 A5 12 81 86 D6 68 0E 0F A8 0C B8 C8 [14:07:54]CheckFolder [14:07:54]dirname=/storage/ofd_packets [14:07:54]CheckFolder done [14:07:54]ProducePacketName [14:07:54]name=ofd_packets/00030354 [14:07:54]NVStorageSaveData ofd_packets/00030354 [14:07:54]File name is /storage/ofd_packets/00030354 [14:07:54]Write 301 bytes [14:07:54]NVStorageSaveData done [14:07:54]OFDSenderStorePacket done [14:07:54]KKMCreateOFDPacket done [14:07:54]NVStorageSaveData kkm_last_timestamp [14:07:54]File name is /storage/kkm_last_timestamp [14:07:54]Write 4 bytes [14:07:54]NVStorageSaveData done [14:07:54]ExternCall_PrintAddStr [14:07:54]wPrintStart [14:07:54]Write to MH i2c: 01 00 00 0A 89 93 [14:07:54]Write i2c OK [14:07:54]MH_I2C_Read... [14:07:54]Read from MH i2c: 01 [14:07:54]MH_I2C_Read... [14:07:54]Read from MH i2c: 01 07 00 [14:07:54]MH_I2C_Read... [14:07:54]Read from MH i2c: 01 07 00 0A 89 00 00 00 00 00 FF 0F A8 [14:07:54]RasterBufferAndPrint [14:07:54]line Счет N : (1)342746 [14:07:54]line ИНН: 02508201610067 [14:07:54]line Контрольно-Кассовый Чек [14:07:54]line ПРОДАЖА [14:07:54]line ТРК (МРК, ГНК) : 63 [14:07:54]line Товар: 2710124130 [14:07:54]line Аи-92-К-2 [14:07:54]line 14.950 * 66.90 [14:07:54]line = 1000.16 [14:07:54]line НДС 12% НСП 1% [14:07:54]line > о реализуемом товаре [14:07:54]line ОКРУГЛЕНИЕ: -0.16 [14:07:54]line ИТОГО: 1000.00 [14:07:54]line Внесено: 1000.00 [14:07:54]line СДАЧА: 0.00 [14:07:54]line НСП 1% : 8.85 [14:07:54]line НДС 12% : 106.21 [14:07:54]line Наличными: 1000.00 [14:07:54]line Безнал.: 0.00 [14:07:54]line Место: АЗС № 78 "Партнер Нефть" [14:07:54]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [14:07:54]line СНО: Общий режим [14:07:54]line Чек 136 20.10.2024 14:08 [14:07:54]line Смена: 114 ФФД: 1.0 [14:07:54]line ЗНМ: 0300000137 [14:07:54]line РНМ: 0000000000186857 [14:07:54]line Версия ККМ: v1.0 [14:07:54]line ФМ: 0000000002094219 [14:07:54]line ФД: 30354 [14:07:54]line ФПД: 67996396716422 [14:07:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T140802&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30354&fm=67996396716422&tin=02508201610067®Number=0000000000186857&sum=100000 [14:07:54]OFD Sender: Processing packet 30354 [packets to send 10, broken 9] [14:07:54]ProducePacketName [14:07:54]name=ofd_packets/00030354 [14:07:54]OFD Sender: To server: pG, [14:07:54]CommunicateWithHost lk.salyk.kg:30040 [14:07:54]ConnectInit lk.salyk.kg [14:07:54]written 0, free lines is 4095 [14:07:54]Connected sock=10 [14: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 E3 F7 07 01 0D 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 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 C2 0E 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 3D D7 A5 12 81 86 D6 68 0E 0F A8 0C B8 C8 [14: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 07 08 47 00 CD 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 92 76 00 00 F4 03 04 00 46 B9 14 67 B6 04 01 00 00 10 E2 C8 C5 66 EA BA E8 [14:07:55]CommunicateWithHost err = 0 [14:07:55]CheckOFDResponse [14:07:55]1017 (14) - 77093643461234 [14:07:55]1041 (16) - 0000000002094219 [14:07:55]1040 (4) - 30354 [14:07:55]1012 (4) - 20.10.2024 08:03 [14:07:55]1206 (1) - 0 [14:07:55]OFD Sender: Remove packet 30354 [14:07:55]ProducePacketName [14:07:55]name=ofd_packets/00030354 [14:07:55]NVStorageDeleteData [14:07:55]Write to MH i2c: 01 00 00 35 89 BE [14:07:55]Write i2c OK [14:07:55]MH_I2C_Read... [14:07:55]Read from MH i2c: 01 [14:07:55]MH_I2C_Read... [14:07:55]Read from MH i2c: 01 07 00 [14:07:55]MH_I2C_Read... [14:07:55]Read from MH i2c: 01 07 00 35 89 00 00 00 00 00 EE 0C BF [14:07:55]RasterBufferAndPrint [14:07:55]line [14:07:55]line [14:07:55]line [14:07:55]line [14:07:55]line [14:07:55]written 0, free lines is 3316 [14:07:55]MH_Cut [14:07:55]Write to MH i2c: D1 01 00 3C 89 01 97 [14:07:55]Write i2c OK [14:07:55]MH_I2C_Read... [14:07:55]Read from MH i2c: D1 [14:07:55]MH_I2C_Read... [14:07:55]Read from MH i2c: D1 01 00 [14:07:55]MH_I2C_Read... [14:07:55]Read from MH i2c: D1 01 00 3C 89 00 96 [14:07:55]Write to MH i2c: 01 00 00 3D 89 C6 [14:07:55]Write i2c OK [14:07:55]MH_I2C_Read... [14:07:55]OFD Sender: No OFD packet to send [14:07:55]*** Cut start [14:07:55]*** Partial cut [14:07:55]*** CUTSNS_PIN = 1 [14:07:55]*** CUTSNS_PIN = 0 [14:07:56]*** Brake cut motor [14:07:56]Read from MH i2c: 01 [14:07:56]MH_I2C_Read... [14:07:56]*** Stop cut motor [14:07:56]*** Cut end [14:07:56]Read from MH i2c: 01 07 00 [14:07:56]MH_I2C_Read... [14:07:56]Read from MH i2c: 01 07 00 3D 89 00 00 00 00 00 FF 0F DB [14:07:56]process_action close_receipt done [14:07:56]requested_data is exist [14:07:56]produce_requested_data [14:07:56]requested_item fm.sn is exist - process it [14:07:56]wFMCommunicate request_size=4 [14:07:56]MH_SAM_APDU [14:07:56]CAPDU: 80 11 00 00 [14:07:56]Write to MH i2c: E2 08 00 3E 89 80 11 00 00 00 00 00 00 41 [14:07:56]Write i2c OK [14:07:56]MH_I2C_Read... [14:07:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:07:56]Read from MH i2c: E2 [14:07:56]MH_I2C_Read... [14:07:56]Read from MH i2c: E2 17 00 [14:07:56]MH_I2C_Read... [14:07:56]Read from MH i2c: E2 17 00 3E 89 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 8F [14:07: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:07:56]wFMCommunicate OK [14:07:56]requested_item fd.num is exist - process it [14:07:56]SAM_PROTO_GetFieldsCounters [14:07:56]wFMCommunicate request_size=4 [14:07:56]MH_SAM_APDU [14:07:56]CAPDU: 80 13 00 00 [14:07:56]Write to MH i2c: E2 08 00 3F 89 80 13 00 00 00 00 00 00 44 [14:07:56]Write i2c OK [14:07:56]MH_I2C_Read... [14:07:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:07:56]Read from MH i2c: E2 [14:07:56]MH_I2C_Read... [14:07:56]Read from MH i2c: E2 62 00 [14:07:56]MH_I2C_Read... [14:07:56]Read from MH i2c: E2 62 00 3F 89 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 7C [14:07: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 92 76 00 00 0E 04 04 00 72 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:07:56]wFMCommunicate OK [14:07:56]SAM_PROTO_GetFieldsCounters done [14:07:56]requested_item shift.num is exist - process it [14:07:56]requested_item shift.opened is exist - process it [14:07:56]req_shift_opened [14:07:56]FM_GetShiftState [14:07:56]SAM_PROTO_GetShiftState [14:07:56]wFMCommunicate request_size=4 [14:07:56]MH_SAM_APDU [14:07:56]CAPDU: 80 13 01 00 [14:07:56]Write to MH i2c: E2 08 00 40 89 80 13 01 00 00 00 00 00 46 [14:07:56]Write i2c OK [14:07:56]MH_I2C_Read... [14:07:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:07:56]Read from MH i2c: E2 [14:07:56]MH_I2C_Read... [14:07:56]Read from MH i2c: E2 0E 00 [14:07:56]MH_I2C_Read... [14:07:56]Read from MH i2c: E2 0E 00 40 89 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 2C [14:07:56]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [14:07:56]wFMCommunicate OK [14:07:56]SAM_PROTO_GetShiftState done [14:07:56]FM_GetShiftState done [14:07:56]req_shift_opened done [14:07:56]requested_item shift.open_date is exist - process it [14:07:56]req_shift_open_date [14:07:56]req_shift_open_date done [14:07:56]produce_requested_data done [14:07:56]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30354,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [14:07:56]process_action_free close_receipt [14:07:56]json_value_free [14:07:56]json_value_free done [14:07:56]process_json_proto returns [14:07:56]Send response to host [14:07:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30354,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [14:07:56]free response buf [14:07:56]execute_script done [14:07:56]execute_script returns [14:07:56]free content buf [14:07:56]Sock 7.Close socket [14:07:56]Sock 7.Thread stoped [14:08:00]OFD Sender: No OFD packet to send [14:08:05]OFD Sender: No OFD packet to send [14:08:10]OFD Sender: No OFD packet to send [14:08:15]OFD Sender: No OFD packet to send [14:08:20]OFD Sender: No OFD packet to send [14:08:25]OFD Sender: No OFD packet to send [14:08:30]OFD Sender: No OFD packet to send [14:08:35]OFD Sender: No OFD packet to send [14:08:40]OFD Sender: No OFD packet to send [14:08:45]OFD Sender: No OFD packet to send [14:08:50]OFD Sender: No OFD packet to send [14:08:55]OFD Sender: No OFD packet to send [14:09:00]OFD Sender: No OFD packet to send [14:09:05]OFD Sender: No OFD packet to send [14:09:10]OFD Sender: No OFD packet to send [14:09:15]OFD Sender: No OFD packet to send [14:09:20]OFD Sender: No OFD packet to send [14:09:25]OFD Sender: No OFD packet to send [14:09:30]OFD Sender: No OFD packet to send [14:09:35]OFD Sender: No OFD packet to send [14:09:40]OFD Sender: No OFD packet to send [14:09:45]OFD Sender: No OFD packet to send [14:09:50]OFD Sender: No OFD packet to send [14:09:55]OFD Sender: No OFD packet to send [14:10:00]OFD Sender: No OFD packet to send [14:10:05]OFD Sender: No OFD packet to send [14:10:10]OFD Sender: No OFD packet to send [14:10:15]OFD Sender: No OFD packet to send [14:10:16]accept exits with 9 [14:10:16]New connection [14:10:16]New thread 3067370852 created [14:10:16]Thread 3067514212 joined [14:10:16]Waiting for new connection... [14:10:16] Sock 9.Parse request [14:10:16]Sock 9.Check first char [14:10:16]Sock 9.First char is OK [14:10:16]request: POST /json_proto HTTP/1.0 [14:10:16]Method: POST [14:10:16]URL: /json_proto [14:10:16]Method is POST - this is cgi request [14:10:16]url: /json_proto [14:10:16]query_string will be loaded in cgi processing [14:10:16]execute_cgi json_proto POST (null) [14:10:16]execute_cgi path=json_proto method=POST [14:10:16]POST find Content-Length [14:10:16]Host: 172.17.51.3:8080 [14:10:16]Content-Length: 677 [14:10:16]Content-Type: application/json [14:10:16] [14:10:16]POST finish read [14:10:16]Found Content-Length = 677 [14:10:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342747", "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" ] } } [14:10:16]execute_script... [14:10: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)342747", "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" ] } } [14:10:16]POST & json_proto [14:10:16]process_json_proto [14:10:16]json parsed OK: [14:10:16]protocol is kg_v1.0 [14:10:16]action value=close_receipt [14:10:16]process_action close_receipt [14:10:16]cmd_close_receipt [14:10:16]MH_GetDate [14:10:16]Write to MH i2c: F0 00 00 41 89 B9 [14:10:16]Write i2c OK [14:10:16]MH_I2C_Read... [14:10:16]Read from MH i2c: F0 [14:10:16]MH_I2C_Read... [14:10:16]Read from MH i2c: F0 09 00 [14:10:16]MH_I2C_Read... [14:10:16]Read from MH i2c: F0 09 00 41 89 00 51 0F 15 67 04 C1 95 66 5E [14:10:16]GetLastDocTimeStamp 1729433282 [14:10:16]current date 1729433425 [14:10:16]FM_GetShiftState [14:10:16]SAM_PROTO_GetShiftState [14:10:16]wFMCommunicate request_size=4 [14:10:16]MH_SAM_APDU [14:10:16]CAPDU: 80 13 01 00 [14:10:16]Write to MH i2c: E2 08 00 42 89 80 13 01 00 00 00 00 00 48 [14:10:16]Write i2c OK [14:10:16]MH_I2C_Read... [14:10:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:10:16]Read from MH i2c: E2 [14:10:16]MH_I2C_Read... [14:10:16]Read from MH i2c: E2 0E 00 [14:10:16]MH_I2C_Read... [14:10:16]Read from MH i2c: E2 0E 00 42 89 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 2E [14:10:16]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [14:10:16]wFMCommunicate OK [14:10:16]SAM_PROTO_GetShiftState done [14:10:16]FM_GetShiftState done [14:10:16]opened in 1729384718 [14:10:16]opened+sec_in_day 1729471118 [14:10:16]quantity*price = 50041 [14:10:16]sum+1 = 50042 [14:10: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 СНО: Общий режим Чек 137 20.10.2024 14:10 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30355 ФПД: 263330026719068 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T141026&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30355&fm=263330026719068&tin=02508201610067®Number=0000000000186857&sum=50000 [14:10:17]StoreToDocumentArchive [14:10:17]shift 114 fd 30355 [14:10:17]save to /storage/0114/doc_00030355 [14:10:17]save last doc name /storage/0114/doc_00030355 to /storage/kkm_last_doc_name [14:10:17]save OK [14:10:17]Clear old archive folders... [14:10:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:10:17]tlvbuf is 00AC8010 [14:10:17]SAM_PROTO_ClearQueue [14:10:17]wFMCommunicate request_size=4 [14:10:17]MH_SAM_APDU [14:10:17]CAPDU: 80 09 00 00 [14:10:17]Write to MH i2c: E2 08 00 4F 89 80 09 00 00 00 00 00 00 4A [14:10:17]Write i2c OK [14:10:17]MH_I2C_Read... [14:10:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:10:17]Read from MH i2c: E2 [14:10:17]MH_I2C_Read... [14:10:17]Read from MH i2c: E2 03 00 [14:10:17]MH_I2C_Read... [14:10:17]Read from MH i2c: E2 03 00 4F 89 00 90 00 4C [14:10:17]RAPDU: 90 00 [14:10:17]wFMCommunicate OK [14:10:17]SAM_PROTO_ClearQueue done [14:10:17]KKMCreateOFDPacket [14:10:17]OFDProtocolAddRootSTLVToBuf [14:10:17]FM_MakeSignedData [14:10:17]FM_MakeSignedData [14:10:17]SAM_PROTO_SignData [14:10:17]wFMCommunicate request_size=4 [14:10:17]MH_SAM_APDU [14:10:17]CAPDU: 80 0D 01 02 [14:10:17]Write to MH i2c: E2 08 00 50 89 80 0D 01 02 00 00 00 00 52 [14:10:17]Write i2c OK [14:10:17]MH_I2C_Read... [14:10:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:10:17]Read from MH i2c: E2 [14:10:17]MH_I2C_Read... [14:10:17]Read from MH i2c: E2 03 00 [14:10:17]MH_I2C_Read... [14:10:17]Read from MH i2c: E2 03 00 50 89 00 90 00 4D [14:10:17]RAPDU: 90 00 [14:10:17]wFMCommunicate OK [14:10:17]wFMCommunicate request_size=255 [14:10:17]MH_SAM_APDU [14:10: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 89 00 00 00 F4 03 04 00 52 0F 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 EF [14:10:17]Write to MH i2c: E2 02 01 51 89 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 89 00 00 00 F4 03 04 00 52 0F 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 EF 00 00 B3 [14:10:17]Write i2c OK [14:10:17]MH_I2C_Read... [14:10:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:10:17]Read from MH i2c: E2 [14:10:17]MH_I2C_Read... [14:10:17]Read from MH i2c: E2 03 00 [14:10:17]MH_I2C_Read... [14:10:17]Read from MH i2c: E2 03 00 51 89 00 90 00 4E [14:10:17]RAPDU: 90 00 [14:10:17]wFMCommunicate OK [14:10:17]wFMCommunicate request_size=10 [14:10:17]MH_SAM_APDU [14:10:17]CAPDU: 80 0D 02 02 05 7F 4C B3 87 5C [14:10:17]Write to MH i2c: E2 0D 00 52 89 80 0D 02 02 05 00 7F 4C B3 87 5C 00 00 C0 [14:10:17]Write i2c OK [14:10:17]MH_I2C_Read... [14:10:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:10:17]Read from MH i2c: E2 [14:10:17]MH_I2C_Read... [14:10:17]Read from MH i2c: E2 03 00 [14:10:17]MH_I2C_Read... [14:10:17]Read from MH i2c: E2 03 00 52 89 00 90 00 4F [14:10:17]RAPDU: 90 00 [14:10:17]wFMCommunicate OK [14:10:17]wFMCommunicate request_size=4 [14:10:17]MH_SAM_APDU [14:10:17]CAPDU: 80 0D 03 02 [14:10:17]Write to MH i2c: E2 08 00 53 89 80 0D 03 02 00 00 00 00 57 [14:10:17]Write i2c OK [14:10:17]MH_I2C_Read... [14:10:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:10:17]Read from MH i2c: E2 [14:10:17]MH_I2C_Read... [14:10:17]Read from MH i2c: E2 0B 00 [14:10:17]MH_I2C_Read... [14:10:17]Read from MH i2c: E2 0B 00 53 89 00 F4 65 5A 61 96 62 BC A1 90 00 C1 [14:10:17]RAPDU: F4 65 5A 61 96 62 BC A1 90 00 [14:10:17]wFMCommunicate OK [14:10:17]SAM_PROTO_SignData done [14:10:17]FM_MakeSignedData done [14:10:17]CreateOFDProtocolMessage [14:10:17]wFMCommunicate request_size=4 [14:10:17]MH_SAM_APDU [14:10:17]CAPDU: 80 11 00 00 [14:10:17]Write to MH i2c: E2 08 00 54 89 80 11 00 00 00 00 00 00 57 [14:10:17]Write i2c OK [14:10:17]MH_I2C_Read... [14:10:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:10:17]Read from MH i2c: E2 [14:10:17]MH_I2C_Read... [14:10:17]Read from MH i2c: E2 17 00 [14:10:17]MH_I2C_Read... [14:10:17]Read from MH i2c: E2 17 00 54 89 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 A5 [14:10: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:10:17]wFMCommunicate OK [14:10:17]CreateOFDProtocolMessage done [14:10:17]OFDSenderStorePacket 30355 [14:10:17]StoreOFDPacket docnum=30355 [14:10: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 0C 55 07 01 CD F2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 89 00 00 00 F4 03 04 00 52 0F 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 EF 7F 4C B3 87 5C F4 65 5A 61 96 62 BC A1 [14:10:17]CheckFolder [14:10:17]dirname=/storage/ofd_packets [14:10:17]CheckFolder done [14:10:17]ProducePacketName [14:10:17]name=ofd_packets/00030355 [14:10:17]NVStorageSaveData ofd_packets/00030355 [14:10:17]File name is /storage/ofd_packets/00030355 [14:10:17]Write 301 bytes [14:10:17]NVStorageSaveData done [14:10:17]OFDSenderStorePacket done [14:10:17]KKMCreateOFDPacket done [14:10:17]NVStorageSaveData kkm_last_timestamp [14:10:17]File name is /storage/kkm_last_timestamp [14:10:17]Write 4 bytes [14:10:17]NVStorageSaveData done [14:10:17]ExternCall_PrintAddStr [14:10:17]wPrintStart [14:10:17]Write to MH i2c: 01 00 00 55 89 DE [14:10:17]Write i2c OK [14:10:17]MH_I2C_Read... [14:10:17]Read from MH i2c: 01 [14:10:17]MH_I2C_Read... [14:10:17]Read from MH i2c: 01 07 00 [14:10:17]MH_I2C_Read... [14:10:17]Read from MH i2c: 01 07 00 55 89 00 00 00 00 00 FF 0F F3 [14:10:17]RasterBufferAndPrint [14:10:17]line Счет N : (1)342747 [14:10:17]line ИНН: 02508201610067 [14:10:17]line Контрольно-Кассовый Чек [14:10:17]line ПРОДАЖА [14:10:17]line ТРК (МРК, ГНК) : 43 [14:10:17]line Товар: 2710124130 [14:10:17]line Аи-92-К-2 [14:10:17]line 7.480 * 66.90 [14:10:17]line = 500.41 [14:10:17]line НДС 12% НСП 1% [14:10:17]line > о реализуемом товаре [14:10:17]line ОКРУГЛЕНИЕ: -0.41 [14:10:17]line ИТОГО: 500.00 [14:10:17]line Внесено: 500.00 [14:10:17]line СДАЧА: 0.00 [14:10:17]line НСП 1% : 4.43 [14:10:17]line НДС 12% : 53.14 [14:10:17]line Наличными: 500.00 [14:10:17]line Безнал.: 0.00 [14:10:17]line Место: АЗС № 78 "Партнер Нефть" [14:10:17]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [14:10:17]line СНО: Общий режим [14:10:17]line Чек 137 20.10.2024 14:10 [14:10:17]line Смена: 114 ФФД: 1.0 [14:10:17]line ЗНМ: 0300000137 [14:10:17]line РНМ: 0000000000186857 [14:10:17]line Версия ККМ: v1.0 [14:10:17]line ФМ: 0000000002094219 [14:10:17]line ФД: 30355 [14:10:17]line ФПД: 263330026719068 [14:10:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T141026&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30355&fm=263330026719068&tin=02508201610067®Number=0000000000186857&sum=50000 [14:10:18]OFD Sender: Processing packet 30355 [packets to send 10, broken 9] [14:10:18]ProducePacketName [14:10:18]name=ofd_packets/00030355 [14:10:18]OFD Sender: To server: pG, [14:10:18]CommunicateWithHost lk.salyk.kg:30040 [14:10:18]ConnectInit lk.salyk.kg [14:10:18]written 0, free lines is 4095 [14:10:18]Connected sock=10 [14:10: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 0C 55 07 01 CD F2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 89 00 00 00 F4 03 04 00 52 0F 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 EF 7F 4C B3 87 5C F4 65 5A 61 96 62 BC A1 [14:10: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 1B 9A 47 00 4E C2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 93 76 00 00 F4 03 04 00 D5 B9 14 67 B6 04 01 00 00 C4 CC 09 D5 52 80 0B 0C [14:10:18]CommunicateWithHost err = 0 [14:10:18]CheckOFDResponse [14:10:18]1017 (14) - 77093643461234 [14:10:18]1041 (16) - 0000000002094219 [14:10:18]1040 (4) - 30355 [14:10:18]1012 (4) - 20.10.2024 08:05 [14:10:18]1206 (1) - 0 [14:10:18]OFD Sender: Remove packet 30355 [14:10:18]ProducePacketName [14:10:18]name=ofd_packets/00030355 [14:10:18]NVStorageDeleteData [14:10:18]Write to MH i2c: 01 00 00 80 89 09 [14:10:18]Write i2c OK [14:10:18]MH_I2C_Read... [14:10:18]Read from MH i2c: 01 [14:10:18]MH_I2C_Read... [14:10:18]Read from MH i2c: 01 07 00 [14:10:18]MH_I2C_Read... [14:10:18]Read from MH i2c: 01 07 00 80 89 00 00 00 00 00 E6 0C 02 [14:10:18]RasterBufferAndPrint [14:10:18]line [14:10:18]line [14:10:18]line [14:10:18]line [14:10:18]line [14:10:18]written 0, free lines is 3312 [14:10:18]MH_Cut [14:10:18]Write to MH i2c: D1 01 00 87 89 01 E2 [14:10:18]Write i2c OK [14:10:18]MH_I2C_Read... [14:10:18]Read from MH i2c: D1 [14:10:18]MH_I2C_Read... [14:10:18]Read from MH i2c: D1 01 00 [14:10:18]MH_I2C_Read... [14:10:18]Read from MH i2c: D1 01 00 87 89 00 E1 [14:10:18]Write to MH i2c: 01 00 00 88 89 11 [14:10:18]Write i2c OK [14:10:18]MH_I2C_Read... [14:10:19]OFD Sender: No OFD packet to send [14:10:19]*** Cut start [14:10:19]*** Partial cut [14:10:19]*** CUTSNS_PIN = 1 [14:10:19]*** CUTSNS_PIN = 0 [14:10:19]*** Brake cut motor [14:10:20]Read from MH i2c: 01 [14:10:20]MH_I2C_Read... [14:10:20]*** Stop cut motor [14:10:20]*** Cut end [14:10:20]Read from MH i2c: 01 07 00 [14:10:20]MH_I2C_Read... [14:10:20]Read from MH i2c: 01 07 00 88 89 00 00 00 00 00 FF 0F 26 [14:10:20]process_action close_receipt done [14:10:20]requested_data is exist [14:10:20]produce_requested_data [14:10:20]requested_item fm.sn is exist - process it [14:10:20]wFMCommunicate request_size=4 [14:10:20]MH_SAM_APDU [14:10:20]CAPDU: 80 11 00 00 [14:10:20]Write to MH i2c: E2 08 00 89 89 80 11 00 00 00 00 00 00 8C [14:10:20]Write i2c OK [14:10:20]MH_I2C_Read... [14:10:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:10:20]Read from MH i2c: E2 [14:10:20]MH_I2C_Read... [14:10:20]Read from MH i2c: E2 17 00 [14:10:20]MH_I2C_Read... [14:10:20]Read from MH i2c: E2 17 00 89 89 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 DA [14:10:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [14:10:20]wFMCommunicate OK [14:10:20]requested_item fd.num is exist - process it [14:10:20]SAM_PROTO_GetFieldsCounters [14:10:20]wFMCommunicate request_size=4 [14:10:20]MH_SAM_APDU [14:10:20]CAPDU: 80 13 00 00 [14:10:20]Write to MH i2c: E2 08 00 8A 89 80 13 00 00 00 00 00 00 8F [14:10:20]Write i2c OK [14:10:20]MH_I2C_Read... [14:10:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:10:20]Read from MH i2c: E2 [14:10:20]MH_I2C_Read... [14:10:20]Read from MH i2c: E2 62 00 [14:10:20]MH_I2C_Read... [14:10:20]Read from MH i2c: E2 62 00 8A 89 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 CB [14:10: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 93 76 00 00 0E 04 04 00 72 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:10:20]wFMCommunicate OK [14:10:20]SAM_PROTO_GetFieldsCounters done [14:10:20]requested_item shift.num is exist - process it [14:10:20]requested_item shift.opened is exist - process it [14:10:20]req_shift_opened [14:10:20]FM_GetShiftState [14:10:20]SAM_PROTO_GetShiftState [14:10:20]wFMCommunicate request_size=4 [14:10:20]MH_SAM_APDU [14:10:20]CAPDU: 80 13 01 00 [14:10:20]Write to MH i2c: E2 08 00 8B 89 80 13 01 00 00 00 00 00 91 [14:10:20]Write i2c OK [14:10:20]MH_I2C_Read... [14:10:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:10:20]Read from MH i2c: E2 [14:10:20]MH_I2C_Read... [14:10:20]Read from MH i2c: E2 0E 00 [14:10:20]MH_I2C_Read... [14:10:20]Read from MH i2c: E2 0E 00 8B 89 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 77 [14:10:20]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [14:10:20]wFMCommunicate OK [14:10:20]SAM_PROTO_GetShiftState done [14:10:20]FM_GetShiftState done [14:10:20]req_shift_opened done [14:10:20]requested_item shift.open_date is exist - process it [14:10:20]req_shift_open_date [14:10:20]req_shift_open_date done [14:10:20]produce_requested_data done [14:10:20]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30355,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [14:10:20]process_action_free close_receipt [14:10:20]json_value_free [14:10:20]json_value_free done [14:10:20]process_json_proto returns [14:10:20]Send response to host [14:10:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30355,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [14:10:20]free response buf [14:10:20]execute_script done [14:10:20]execute_script returns [14:10:20]free content buf [14:10:20]Sock 9.Close socket [14:10:20]Sock 9.Thread stoped [14:10:24]OFD Sender: No OFD packet to send [14:10:29]OFD Sender: No OFD packet to send [14:10:34]OFD Sender: No OFD packet to send [14:10:39]OFD Sender: No OFD packet to send [14:10:44]OFD Sender: No OFD packet to send [14:10:49]OFD Sender: No OFD packet to send [14:10:54]OFD Sender: No OFD packet to send [14:10:59]OFD Sender: No OFD packet to send [14:11:04]OFD Sender: No OFD packet to send [14:11:09]OFD Sender: No OFD packet to send [14:11:14]OFD Sender: No OFD packet to send [14:11:19]OFD Sender: No OFD packet to send [14:11:24]OFD Sender: No OFD packet to send [14:11:29]OFD Sender: No OFD packet to send [14:11:34]OFD Sender: No OFD packet to send [14:11:39]OFD Sender: No OFD packet to send [14:11:44]OFD Sender: No OFD packet to send [14:11:49]OFD Sender: No OFD packet to send [14:11:54]OFD Sender: No OFD packet to send [14:11:59]OFD Sender: No OFD packet to send [14:12:04]OFD Sender: No OFD packet to send [14:12:09]OFD Sender: No OFD packet to send [14:12:14]OFD Sender: No OFD packet to send [14:12:19]OFD Sender: No OFD packet to send [14:12:21]accept exits with 7 [14:12:21]New connection [14:12:21]New thread 3067514212 created [14:12:21]Thread 3067370852 joined [14:12:21]Waiting for new connection... [14:12:21] Sock 7.Parse request [14:12:21]Sock 7.Check first char [14:12:21]Sock 7.First char is OK [14:12:21]request: POST /json_proto HTTP/1.0 [14:12:21]Method: POST [14:12:21]URL: /json_proto [14:12:21]Method is POST - this is cgi request [14:12:21]url: /json_proto [14:12:21]query_string will be loaded in cgi processing [14:12:21]execute_cgi json_proto POST (null) [14:12:21]execute_cgi path=json_proto method=POST [14:12:21]POST find Content-Length [14:12:21]Host: 172.17.51.3:8080 [14:12:21]Content-Length: 675 [14:12:21]Content-Type: application/json [14:12:21] [14:12:21]POST finish read [14:12:21]Found Content-Length = 675 [14:12:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342748", "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" ] } } [14:12:21]execute_script... [14:12:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342748", "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" ] } } [14:12:21]POST & json_proto [14:12:21]process_json_proto [14:12:21]json parsed OK: [14:12:21]protocol is kg_v1.0 [14:12:21]action value=close_receipt [14:12:21]process_action close_receipt [14:12:21]cmd_close_receipt [14:12:21]MH_GetDate [14:12:21]Write to MH i2c: F0 00 00 8C 89 04 [14:12:21]Write i2c OK [14:12:21]MH_I2C_Read... [14:12:21]Read from MH i2c: F0 [14:12:21]MH_I2C_Read... [14:12:21]Read from MH i2c: F0 09 00 [14:12:21]MH_I2C_Read... [14:12:21]Read from MH i2c: F0 09 00 8C 89 00 CF 0F 15 67 04 C1 95 66 27 [14:12:21]GetLastDocTimeStamp 1729433426 [14:12:21]current date 1729433551 [14:12:21]FM_GetShiftState [14:12:21]SAM_PROTO_GetShiftState [14:12:21]wFMCommunicate request_size=4 [14:12:21]MH_SAM_APDU [14:12:21]CAPDU: 80 13 01 00 [14:12:21]Write to MH i2c: E2 08 00 8D 89 80 13 01 00 00 00 00 00 93 [14:12:21]Write i2c OK [14:12:21]MH_I2C_Read... [14:12:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:12:21]Read from MH i2c: E2 [14:12:21]MH_I2C_Read... [14:12:21]Read from MH i2c: E2 0E 00 [14:12:21]MH_I2C_Read... [14:12:21]Read from MH i2c: E2 0E 00 8D 89 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 79 [14:12:21]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [14:12:21]wFMCommunicate OK [14:12:21]SAM_PROTO_GetShiftState done [14:12:21]FM_GetShiftState done [14:12:21]opened in 1729384718 [14:12:21]opened+sec_in_day 1729471118 [14:12:21]quantity*price = 90068 [14:12:21]sum+1 = 90069 [14:12:21]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 СНО: Общий режим Чек 138 20.10.2024 14:12 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30356 ФПД: 262841092360536 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T141231&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30356&fm=262841092360536&tin=02508201610067®Number=0000000000186857&sum=90000 [14:12:22]StoreToDocumentArchive [14:12:22]shift 114 fd 30356 [14:12:22]save to /storage/0114/doc_00030356 [14:12:22]save last doc name /storage/0114/doc_00030356 to /storage/kkm_last_doc_name [14:12:22]save OK [14:12:22]Clear old archive folders... [14:12:22]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:12:22]tlvbuf is B6E31460 [14:12:22]SAM_PROTO_ClearQueue [14:12:22]wFMCommunicate request_size=4 [14:12:22]MH_SAM_APDU [14:12:22]CAPDU: 80 09 00 00 [14:12:22]Write to MH i2c: E2 08 00 9A 89 80 09 00 00 00 00 00 00 95 [14:12:22]Write i2c OK [14:12:22]MH_I2C_Read... [14:12:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:12:22]Read from MH i2c: E2 [14:12:22]MH_I2C_Read... [14:12:22]Read from MH i2c: E2 03 00 [14:12:22]MH_I2C_Read... [14:12:22]Read from MH i2c: E2 03 00 9A 89 00 90 00 97 [14:12:22]RAPDU: 90 00 [14:12:22]wFMCommunicate OK [14:12:22]SAM_PROTO_ClearQueue done [14:12:22]KKMCreateOFDPacket [14:12:22]OFDProtocolAddRootSTLVToBuf [14:12:22]FM_MakeSignedData [14:12:22]FM_MakeSignedData [14:12:22]SAM_PROTO_SignData [14:12:22]wFMCommunicate request_size=4 [14:12:22]MH_SAM_APDU [14:12:22]CAPDU: 80 0D 01 02 [14:12:22]Write to MH i2c: E2 08 00 9B 89 80 0D 01 02 00 00 00 00 9D [14:12:22]Write i2c OK [14:12:22]MH_I2C_Read... [14:12:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:12:22]Read from MH i2c: E2 [14:12:22]MH_I2C_Read... [14:12:22]Read from MH i2c: E2 03 00 [14:12:22]MH_I2C_Read... [14:12:22]Read from MH i2c: E2 03 00 9B 89 00 90 00 98 [14:12:22]RAPDU: 90 00 [14:12:22]wFMCommunicate OK [14:12:22]wFMCommunicate request_size=255 [14:12:22]MH_SAM_APDU [14:12: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 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 8A 00 00 00 F4 03 04 00 CF 0F 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 EF 0D 75 F1 [14:12:22]Write to MH i2c: E2 02 01 9C 89 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 8A 00 00 00 F4 03 04 00 CF 0F 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 EF 0D 75 F1 00 00 AF [14:12:22]Write i2c OK [14:12:22]MH_I2C_Read... [14:12:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:12:22]Read from MH i2c: E2 [14:12:22]MH_I2C_Read... [14:12:22]Read from MH i2c: E2 03 00 [14:12:22]MH_I2C_Read... [14:12:22]Read from MH i2c: E2 03 00 9C 89 00 90 00 99 [14:12:22]RAPDU: 90 00 [14:12:22]wFMCommunicate OK [14:12:22]wFMCommunicate request_size=7 [14:12:22]MH_SAM_APDU [14:12:22]CAPDU: 80 0D 02 02 02 49 58 [14:12:22]Write to MH i2c: E2 0A 00 9D 89 80 0D 02 02 02 00 49 58 00 00 45 [14:12:22]Write i2c OK [14:12:22]MH_I2C_Read... [14:12:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:12:22]Read from MH i2c: E2 [14:12:22]MH_I2C_Read... [14:12:23]Read from MH i2c: E2 03 00 [14:12:23]MH_I2C_Read... [14:12:23]Read from MH i2c: E2 03 00 9D 89 00 90 00 9A [14:12:23]RAPDU: 90 00 [14:12:23]wFMCommunicate OK [14:12:23]wFMCommunicate request_size=4 [14:12:23]MH_SAM_APDU [14:12:23]CAPDU: 80 0D 03 02 [14:12:23]Write to MH i2c: E2 08 00 9E 89 80 0D 03 02 00 00 00 00 A2 [14:12:23]Write i2c OK [14:12:23]MH_I2C_Read... [14:12:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:12:23]Read from MH i2c: E2 [14:12:23]MH_I2C_Read... [14:12:23]Read from MH i2c: E2 0B 00 [14:12:23]MH_I2C_Read... [14:12:23]Read from MH i2c: E2 0B 00 9E 89 00 F8 99 7A 0D E0 5D F0 15 90 00 FD [14:12:23]RAPDU: F8 99 7A 0D E0 5D F0 15 90 00 [14:12:23]wFMCommunicate OK [14:12:23]SAM_PROTO_SignData done [14:12:23]FM_MakeSignedData done [14:12:23]CreateOFDProtocolMessage [14:12:23]wFMCommunicate request_size=4 [14:12:23]MH_SAM_APDU [14:12:23]CAPDU: 80 11 00 00 [14:12:23]Write to MH i2c: E2 08 00 9F 89 80 11 00 00 00 00 00 00 A2 [14:12:23]Write i2c OK [14:12:23]MH_I2C_Read... [14:12:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:12:23]Read from MH i2c: E2 [14:12:23]MH_I2C_Read... [14:12:23]Read from MH i2c: E2 17 00 [14:12:23]MH_I2C_Read... [14:12:23]Read from MH i2c: E2 17 00 9F 89 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 F0 [14:12:23]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:23]wFMCommunicate OK [14:12:23]CreateOFDProtocolMessage done [14:12:23]OFDSenderStorePacket 30356 [14:12:23]StoreOFDPacket docnum=30356 [14:12: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 67 7F 04 01 C6 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 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 8A 00 00 00 F4 03 04 00 CF 0F 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 EF 0D 75 F1 49 58 F8 99 7A 0D E0 5D F0 15 [14:12:23]CheckFolder [14:12:23]dirname=/storage/ofd_packets [14:12:23]CheckFolder done [14:12:23]ProducePacketName [14:12:23]name=ofd_packets/00030356 [14:12:23]NVStorageSaveData ofd_packets/00030356 [14:12:23]File name is /storage/ofd_packets/00030356 [14:12:23]Write 298 bytes [14:12:23]NVStorageSaveData done [14:12:23]OFDSenderStorePacket done [14:12:23]KKMCreateOFDPacket done [14:12:23]NVStorageSaveData kkm_last_timestamp [14:12:23]File name is /storage/kkm_last_timestamp [14:12:23]Write 4 bytes [14:12:23]NVStorageSaveData done [14:12:23]ExternCall_PrintAddStr [14:12:23]wPrintStart [14:12:23]Write to MH i2c: 01 00 00 A0 89 29 [14:12:23]Write i2c OK [14:12:23]MH_I2C_Read... [14:12:23]Read from MH i2c: 01 [14:12:23]MH_I2C_Read... [14:12:23]Read from MH i2c: 01 07 00 [14:12:23]MH_I2C_Read... [14:12:23]Read from MH i2c: 01 07 00 A0 89 00 00 00 00 00 FF 0F 3E [14:12:23]RasterBufferAndPrint [14:12:23]line Счет N : (1)342748 [14:12:23]line ИНН: 02508201610067 [14:12:23]line Контрольно-Кассовый Чек [14:12:23]line ПРОДАЖА [14:12:23]line ТРК (МРК, ГНК) : 54 [14:12:23]line Товар: 2710194210 [14:12:23]line ДТ-К-2 [14:12:23]line 11.820 * 76.20 [14:12:23]line = 900.68 [14:12:23]line НДС 12% НСП 1% [14:12:23]line > о реализуемом товаре [14:12:23]line ОКРУГЛЕНИЕ: -0.68 [14:12:23]line ИТОГО: 900.00 [14:12:23]line Внесено: 900.00 [14:12:23]line СДАЧА: 0.00 [14:12:23]line НСП 1% : 7.97 [14:12:23]line НДС 12% : 95.65 [14:12:23]line Наличными: 900.00 [14:12:23]line Безнал.: 0.00 [14:12:23]line Место: АЗС № 78 "Партнер Нефть" [14:12:23]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [14:12:23]line СНО: Общий режим [14:12:23]line Чек 138 20.10.2024 14:12 [14:12:23]line Смена: 114 ФФД: 1.0 [14:12:23]line ЗНМ: 0300000137 [14:12:23]line РНМ: 0000000000186857 [14:12:23]line Версия ККМ: v1.0 [14:12:23]line ФМ: 0000000002094219 [14:12:23]line ФД: 30356 [14:12:23]line ФПД: 262841092360536 [14:12:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T141231&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30356&fm=262841092360536&tin=02508201610067®Number=0000000000186857&sum=90000 [14:12:23]OFD Sender: Processing packet 30356 [packets to send 10, broken 9] [14:12:23]ProducePacketName [14:12:23]name=ofd_packets/00030356 [14:12:23]OFD Sender: To server: pG, [14:12:23]CommunicateWithHost lk.salyk.kg:30040 [14:12:23]ConnectInit lk.salyk.kg [14:12:23]written 0, free lines is 4095 [14:12:23]Connected sock=10 [14:12: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 67 7F 04 01 C6 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 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 8A 00 00 00 F4 03 04 00 CF 0F 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 EF 0D 75 F1 49 58 F8 99 7A 0D E0 5D F0 15 [14:12: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 D3 3E 47 00 4A 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 94 76 00 00 F4 03 04 00 52 BA 14 67 B6 04 01 00 00 0B 9F 8B 1C FE 44 20 65 [14:12:23]CommunicateWithHost err = 0 [14:12:23]CheckOFDResponse [14:12:23]1017 (14) - 77093643461234 [14:12:23]1041 (16) - 0000000002094219 [14:12:23]1040 (4) - 30356 [14:12:23]1012 (4) - 20.10.2024 08:07 [14:12:23]1206 (1) - 0 [14:12:23]OFD Sender: Remove packet 30356 [14:12:23]ProducePacketName [14:12:23]name=ofd_packets/00030356 [14:12:23]NVStorageDeleteData [14:12:23]Write to MH i2c: 01 00 00 CB 89 54 [14:12:23]Write i2c OK [14:12:23]MH_I2C_Read... [14:12:23]Read from MH i2c: 01 [14:12:23]MH_I2C_Read... [14:12:23]Read from MH i2c: 01 07 00 [14:12:23]MH_I2C_Read... [14:12:23]Read from MH i2c: 01 07 00 CB 89 00 00 00 00 00 ED 0C 54 [14:12:23]RasterBufferAndPrint [14:12:23]line [14:12:23]line [14:12:23]line [14:12:23]line [14:12:23]line [14:12:23]written 0, free lines is 3315 [14:12:23]MH_Cut [14:12:23]Write to MH i2c: D1 01 00 D2 89 01 2D [14:12:23]Write i2c OK [14:12:23]MH_I2C_Read... [14:12:23]Read from MH i2c: D1 [14:12:23]MH_I2C_Read... [14:12:23]Read from MH i2c: D1 01 00 [14:12:23]MH_I2C_Read... [14:12:23]Read from MH i2c: D1 01 00 D2 89 00 2C [14:12:23]Write to MH i2c: 01 00 00 D3 89 5C [14:12:23]Write i2c OK [14:12:23]MH_I2C_Read... [14:12:24]OFD Sender: No OFD packet to send [14:12:24]*** Cut start [14:12:24]*** Partial cut [14:12:24]*** CUTSNS_PIN = 1 [14:12:24]*** CUTSNS_PIN = 0 [14:12:24]*** Brake cut motor [14:12:25]Read from MH i2c: 01 [14:12:25]MH_I2C_Read... [14:12:25]*** Stop cut motor [14:12:25]*** Cut end [14:12:25]Read from MH i2c: 01 07 00 [14:12:25]MH_I2C_Read... [14:12:25]Read from MH i2c: 01 07 00 D3 89 00 00 00 00 00 FF 0F 71 [14:12:25]process_action close_receipt done [14:12:25]requested_data is exist [14:12:25]produce_requested_data [14:12:25]requested_item fm.sn is exist - process it [14:12:25]wFMCommunicate request_size=4 [14:12:25]MH_SAM_APDU [14:12:25]CAPDU: 80 11 00 00 [14:12:25]Write to MH i2c: E2 08 00 D4 89 80 11 00 00 00 00 00 00 D7 [14:12:25]Write i2c OK [14:12:25]MH_I2C_Read... [14:12:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:12:25]Read from MH i2c: E2 [14:12:25]MH_I2C_Read... [14:12:25]Read from MH i2c: E2 17 00 [14:12:25]MH_I2C_Read... [14:12:25]Read from MH i2c: E2 17 00 D4 89 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 25 [14:12:25]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:25]wFMCommunicate OK [14:12:25]requested_item fd.num is exist - process it [14:12:25]SAM_PROTO_GetFieldsCounters [14:12:25]wFMCommunicate request_size=4 [14:12:25]MH_SAM_APDU [14:12:25]CAPDU: 80 13 00 00 [14:12:25]Write to MH i2c: E2 08 00 D5 89 80 13 00 00 00 00 00 00 DA [14:12:25]Write i2c OK [14:12:25]MH_I2C_Read... [14:12:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:12:25]Read from MH i2c: E2 [14:12:25]MH_I2C_Read... [14:12:25]Read from MH i2c: E2 62 00 [14:12:25]MH_I2C_Read... [14:12:25]Read from MH i2c: E2 62 00 D5 89 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 1A [14:12: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 94 76 00 00 0E 04 04 00 72 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:12:25]wFMCommunicate OK [14:12:25]SAM_PROTO_GetFieldsCounters done [14:12:25]requested_item shift.num is exist - process it [14:12:25]requested_item shift.opened is exist - process it [14:12:25]req_shift_opened [14:12:25]FM_GetShiftState [14:12:25]SAM_PROTO_GetShiftState [14:12:25]wFMCommunicate request_size=4 [14:12:25]MH_SAM_APDU [14:12:25]CAPDU: 80 13 01 00 [14:12:25]Write to MH i2c: E2 08 00 D6 89 80 13 01 00 00 00 00 00 DC [14:12:25]Write i2c OK [14:12:25]MH_I2C_Read... [14:12:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:12:25]Read from MH i2c: E2 [14:12:25]MH_I2C_Read... [14:12:25]Read from MH i2c: E2 0E 00 [14:12:25]MH_I2C_Read... [14:12:25]Read from MH i2c: E2 0E 00 D6 89 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 C2 [14:12:25]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [14:12:25]wFMCommunicate OK [14:12:25]SAM_PROTO_GetShiftState done [14:12:25]FM_GetShiftState done [14:12:25]req_shift_opened done [14:12:25]requested_item shift.open_date is exist - process it [14:12:25]req_shift_open_date [14:12:25]req_shift_open_date done [14:12:25]produce_requested_data done [14:12:25]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30356,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [14:12:25]process_action_free close_receipt [14:12:25]json_value_free [14:12:25]json_value_free done [14:12:25]process_json_proto returns [14:12:25]Send response to host [14:12:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30356,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [14:12:25]free response buf [14:12:25]execute_script done [14:12:25]execute_script returns [14:12:25]free content buf [14:12:25]Sock 7.Close socket [14:12:25]Sock 7.Thread stoped [14:12:29]OFD Sender: No OFD packet to send [14:12:34]OFD Sender: No OFD packet to send [14:12:39]OFD Sender: No OFD packet to send [14:12:44]OFD Sender: No OFD packet to send [14:12:49]OFD Sender: No OFD packet to send [14:12:54]OFD Sender: No OFD packet to send [14:12:59]OFD Sender: No OFD packet to send [14:13:04]OFD Sender: No OFD packet to send [14:13:09]OFD Sender: No OFD packet to send [14:13:14]OFD Sender: No OFD packet to send [14:13:19]OFD Sender: No OFD packet to send [14:13:24]OFD Sender: No OFD packet to send [14:13:29]OFD Sender: No OFD packet to send [14:13:34]OFD Sender: No OFD packet to send [14:13:39]OFD Sender: No OFD packet to send [14:13:44]OFD Sender: No OFD packet to send [14:13:49]OFD Sender: No OFD packet to send [14:13:54]OFD Sender: No OFD packet to send [14:13:59]OFD Sender: No OFD packet to send [14:14:04]OFD Sender: No OFD packet to send [14:14:09]OFD Sender: No OFD packet to send [14:14:14]OFD Sender: No OFD packet to send [14:14:19]OFD Sender: No OFD packet to send [14:14:24]OFD Sender: No OFD packet to send [14:14:29]OFD Sender: No OFD packet to send [14:14:34]OFD Sender: No OFD packet to send [14:14:39]OFD Sender: No OFD packet to send [14:14:44]OFD Sender: No OFD packet to send [14:14:49]OFD Sender: No OFD packet to send [14:14:54]OFD Sender: No OFD packet to send [14:14:59]OFD Sender: No OFD packet to send [14:15:04]OFD Sender: No OFD packet to send [14:15:09]OFD Sender: No OFD packet to send [14:15:14]OFD Sender: No OFD packet to send [14:15:19]OFD Sender: No OFD packet to send [14:15:24]OFD Sender: No OFD packet to send [14:15:29]OFD Sender: No OFD packet to send [14:15:34]OFD Sender: No OFD packet to send [14:15:39]OFD Sender: No OFD packet to send [14:15:44]OFD Sender: No OFD packet to send [14:15:45]accept exits with 9 [14:15:45]New connection [14:15:45]New thread 3067370852 created [14:15:45]Thread 3067514212 joined [14:15:45]Waiting for new connection... [14:15:45] Sock 9.Parse request [14:15:45]Sock 9.Check first char [14:15:45]Sock 9.First char is OK [14:15:45]request: POST /json_proto HTTP/1.0 [14:15:45]Method: POST [14:15:45]URL: /json_proto [14:15:45]Method is POST - this is cgi request [14:15:45]url: /json_proto [14:15:45]query_string will be loaded in cgi processing [14:15:45]execute_cgi json_proto POST (null) [14:15:45]execute_cgi path=json_proto method=POST [14:15:45]POST find Content-Length [14:15:45]Host: 172.17.51.3:8080 [14:15:45]Content-Length: 682 [14:15:45]Content-Type: application/json [14:15:45] [14:15:45]POST finish read [14:15:45]Found Content-Length = 682 [14:15:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342749", "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" ] } } [14:15:45]execute_script... [14:15:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342749", "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" ] } } [14:15:45]POST & json_proto [14:15:45]process_json_proto [14:15:45]json parsed OK: [14:15:45]protocol is kg_v1.0 [14:15:45]action value=close_receipt [14:15:45]process_action close_receipt [14:15:45]cmd_close_receipt [14:15:45]MH_GetDate [14:15:45]Write to MH i2c: F0 00 00 D7 89 4F [14:15:45]Write i2c OK [14:15:45]MH_I2C_Read... [14:15:45]Read from MH i2c: F0 [14:15:45]MH_I2C_Read... [14:15:45]Read from MH i2c: F0 09 00 [14:15:45]MH_I2C_Read... [14:15:45]Read from MH i2c: F0 09 00 D7 89 00 9B 10 15 67 04 C1 95 66 3F [14:15:45]GetLastDocTimeStamp 1729433551 [14:15:45]current date 1729433755 [14:15:45]FM_GetShiftState [14:15:45]SAM_PROTO_GetShiftState [14:15:45]wFMCommunicate request_size=4 [14:15:45]MH_SAM_APDU [14:15:45]CAPDU: 80 13 01 00 [14:15:45]Write to MH i2c: E2 08 00 D8 89 80 13 01 00 00 00 00 00 DE [14:15:45]Write i2c OK [14:15:45]MH_I2C_Read... [14:15:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:15:45]Read from MH i2c: E2 [14:15:45]MH_I2C_Read... [14:15:45]Read from MH i2c: E2 0E 00 [14:15:45]MH_I2C_Read... [14:15:45]Read from MH i2c: E2 0E 00 D8 89 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 C4 [14:15:45]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [14:15:45]wFMCommunicate OK [14:15:45]SAM_PROTO_GetShiftState done [14:15:45]FM_GetShiftState done [14:15:45]opened in 1729384718 [14:15:45]opened+sec_in_day 1729471118 [14:15:45]quantity*price = 150056 [14:15:45]sum+1 = 150058 [14:15:45]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 СНО: Общий режим Чек 139 20.10.2024 14:15 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30357 ФПД: 232410344804213 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T141555&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30357&fm=232410344804213&tin=02508201610067®Number=0000000000186857&sum=150000 [14:15:47]StoreToDocumentArchive [14:15:47]shift 114 fd 30357 [14:15:47]save to /storage/0114/doc_00030357 [14:15:47]save last doc name /storage/0114/doc_00030357 to /storage/kkm_last_doc_name [14:15:47]save OK [14:15:47]Clear old archive folders... [14:15:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:15:47]tlvbuf is 00CD5F90 [14:15:47]SAM_PROTO_ClearQueue [14:15:47]wFMCommunicate request_size=4 [14:15:47]MH_SAM_APDU [14:15:47]CAPDU: 80 09 00 00 [14:15:47]Write to MH i2c: E2 08 00 E5 89 80 09 00 00 00 00 00 00 E0 [14:15:47]Write i2c OK [14:15:47]MH_I2C_Read... [14:15:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:15:47]Read from MH i2c: E2 [14:15:47]MH_I2C_Read... [14:15:47]Read from MH i2c: E2 03 00 [14:15:47]MH_I2C_Read... [14:15:47]Read from MH i2c: E2 03 00 E5 89 00 90 00 E2 [14:15:47]RAPDU: 90 00 [14:15:47]wFMCommunicate OK [14:15:47]SAM_PROTO_ClearQueue done [14:15:47]KKMCreateOFDPacket [14:15:47]OFDProtocolAddRootSTLVToBuf [14:15:47]FM_MakeSignedData [14:15:47]FM_MakeSignedData [14:15:47]SAM_PROTO_SignData [14:15:47]wFMCommunicate request_size=4 [14:15:47]MH_SAM_APDU [14:15:47]CAPDU: 80 0D 01 02 [14:15:47]Write to MH i2c: E2 08 00 E6 89 80 0D 01 02 00 00 00 00 E8 [14:15:47]Write i2c OK [14:15:47]MH_I2C_Read... [14:15:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:15:47]Read from MH i2c: E2 [14:15:47]MH_I2C_Read... [14:15:47]Read from MH i2c: E2 03 00 [14:15:47]MH_I2C_Read... [14:15:47]Read from MH i2c: E2 03 00 E6 89 00 90 00 E3 [14:15:47]RAPDU: 90 00 [14:15:47]wFMCommunicate OK [14:15:47]wFMCommunicate request_size=255 [14:15:47]MH_SAM_APDU [14:15:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 8B 00 00 00 F4 03 04 00 9B 10 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 D3 [14:15:47]Write to MH i2c: E2 02 01 E7 89 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 8B 00 00 00 F4 03 04 00 9B 10 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 D3 00 00 C4 [14:15:47]Write i2c OK [14:15:47]MH_I2C_Read... [14:15:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:15:47]Read from MH i2c: E2 [14:15:47]MH_I2C_Read... [14:15:47]Read from MH i2c: E2 03 00 [14:15:47]MH_I2C_Read... [14:15:47]Read from MH i2c: E2 03 00 E7 89 00 90 00 E4 [14:15:47]RAPDU: 90 00 [14:15:47]wFMCommunicate OK [14:15:47]wFMCommunicate request_size=10 [14:15:47]MH_SAM_APDU [14:15:47]CAPDU: 80 0D 02 02 05 60 40 0B 4F 75 [14:15:47]Write to MH i2c: E2 0D 00 E8 89 80 0D 02 02 05 00 60 40 0B 4F 75 00 00 64 [14:15:47]Write i2c OK [14:15:47]MH_I2C_Read... [14:15:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:15:47]Read from MH i2c: E2 [14:15:47]MH_I2C_Read... [14:15:47]Read from MH i2c: E2 03 00 [14:15:47]MH_I2C_Read... [14:15:47]Read from MH i2c: E2 03 00 E8 89 00 90 00 E5 [14:15:47]RAPDU: 90 00 [14:15:47]wFMCommunicate OK [14:15:47]wFMCommunicate request_size=4 [14:15:47]MH_SAM_APDU [14:15:47]CAPDU: 80 0D 03 02 [14:15:47]Write to MH i2c: E2 08 00 E9 89 80 0D 03 02 00 00 00 00 ED [14:15:47]Write i2c OK [14:15:47]MH_I2C_Read... [14:15:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:15:47]Read from MH i2c: E2 [14:15:47]MH_I2C_Read... [14:15:47]Read from MH i2c: E2 0B 00 [14:15:47]MH_I2C_Read... [14:15:47]Read from MH i2c: E2 0B 00 E9 89 00 88 B7 0A EF 54 33 C8 FF 90 00 74 [14:15:47]RAPDU: 88 B7 0A EF 54 33 C8 FF 90 00 [14:15:47]wFMCommunicate OK [14:15:47]SAM_PROTO_SignData done [14:15:47]FM_MakeSignedData done [14:15:47]CreateOFDProtocolMessage [14:15:47]wFMCommunicate request_size=4 [14:15:47]MH_SAM_APDU [14:15:47]CAPDU: 80 11 00 00 [14:15:47]Write to MH i2c: E2 08 00 EA 89 80 11 00 00 00 00 00 00 ED [14:15:47]Write i2c OK [14:15:47]MH_I2C_Read... [14:15:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:15:47]Read from MH i2c: E2 [14:15:47]MH_I2C_Read... [14:15:47]Read from MH i2c: E2 17 00 [14:15:47]MH_I2C_Read... [14:15:47]Read from MH i2c: E2 17 00 EA 89 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 3B [14:15:47]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:47]wFMCommunicate OK [14:15:47]CreateOFDProtocolMessage done [14:15:47]OFDSenderStorePacket 30357 [14:15:47]StoreOFDPacket docnum=30357 [14:15: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 77 C5 07 01 62 F5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 8B 00 00 00 F4 03 04 00 9B 10 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 D3 60 40 0B 4F 75 88 B7 0A EF 54 33 C8 FF [14:15:47]CheckFolder [14:15:47]dirname=/storage/ofd_packets [14:15:47]CheckFolder done [14:15:47]ProducePacketName [14:15:47]name=ofd_packets/00030357 [14:15:47]NVStorageSaveData ofd_packets/00030357 [14:15:47]File name is /storage/ofd_packets/00030357 [14:15:47]Write 301 bytes [14:15:47]NVStorageSaveData done [14:15:47]OFDSenderStorePacket done [14:15:47]KKMCreateOFDPacket done [14:15:47]NVStorageSaveData kkm_last_timestamp [14:15:47]File name is /storage/kkm_last_timestamp [14:15:47]Write 4 bytes [14:15:47]NVStorageSaveData done [14:15:47]ExternCall_PrintAddStr [14:15:47]wPrintStart [14:15:47]Write to MH i2c: 01 00 00 EB 89 74 [14:15:47]Write i2c OK [14:15:47]MH_I2C_Read... [14:15:47]Read from MH i2c: 01 [14:15:47]MH_I2C_Read... [14:15:47]Read from MH i2c: 01 07 00 [14:15:47]MH_I2C_Read... [14:15:47]Read from MH i2c: 01 07 00 EB 89 00 00 00 00 00 FF 0F 89 [14:15:47]RasterBufferAndPrint [14:15:47]line Счет N : (1)342749 [14:15:47]line ИНН: 02508201610067 [14:15:47]line Контрольно-Кассовый Чек [14:15:47]line ПРОДАЖА [14:15:47]line ТРК (МРК, ГНК) : 43 [14:15:47]line Товар: 2710124130 [14:15:47]line Аи-92-К-2 [14:15:47]line 22.430 * 66.90 [14:15:47]line = 1500.57 [14:15:47]line НДС 12% НСП 1% [14:15:47]line > о реализуемом товаре [14:15:47]line ОКРУГЛЕНИЕ: -0.57 [14:15:47]line ИТОГО: 1500.00 [14:15:47]line Внесено: 1500.00 [14:15:47]line СДАЧА: 0.00 [14:15:47]line НСП 1% : 13.28 [14:15:47]line НДС 12% : 159.35 [14:15:47]line Наличными: 1500.00 [14:15:47]line Безнал.: 0.00 [14:15:47]line Место: АЗС № 78 "Партнер Нефть" [14:15:47]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [14:15:47]line СНО: Общий режим [14:15:47]line Чек 139 20.10.2024 14:15 [14:15:47]line Смена: 114 ФФД: 1.0 [14:15:47]line ЗНМ: 0300000137 [14:15:47]line РНМ: 0000000000186857 [14:15:47]line Версия ККМ: v1.0 [14:15:47]line ФМ: 0000000002094219 [14:15:47]line ФД: 30357 [14:15:47]line ФПД: 232410344804213 [14:15:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T141555&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30357&fm=232410344804213&tin=02508201610067®Number=0000000000186857&sum=150000 [14:15:47]OFD Sender: Processing packet 30357 [packets to send 10, broken 9] [14:15:47]ProducePacketName [14:15:47]name=ofd_packets/00030357 [14:15:47]OFD Sender: To server: pG, [14:15:47]CommunicateWithHost lk.salyk.kg:30040 [14:15:47]ConnectInit lk.salyk.kg [14:15:47]written 0, free lines is 4095 [14:15:48]Connected sock=10 [14:15: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 77 C5 07 01 62 F5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 8B 00 00 00 F4 03 04 00 9B 10 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 D3 60 40 0B 4F 75 88 B7 0A EF 54 33 C8 FF [14:15: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 6B DA 47 00 D2 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 95 76 00 00 F4 03 04 00 1F BB 14 67 B6 04 01 00 00 5B 9C B7 7B F8 0B CC E0 [14:15:48]CommunicateWithHost err = 0 [14:15:48]CheckOFDResponse [14:15:48]1017 (14) - 77093643461234 [14:15:48]1041 (16) - 0000000002094219 [14:15:48]1040 (4) - 30357 [14:15:48]1012 (4) - 20.10.2024 08:11 [14:15:48]1206 (1) - 0 [14:15:48]OFD Sender: Remove packet 30357 [14:15:48]ProducePacketName [14:15:48]name=ofd_packets/00030357 [14:15:48]NVStorageDeleteData [14:15:48]Write to MH i2c: 01 00 00 16 8A A0 [14:15:48]Write i2c OK [14:15:48]MH_I2C_Read... [14:15:48]Read from MH i2c: 01 [14:15:48]MH_I2C_Read... [14:15:48]Read from MH i2c: 01 07 00 [14:15:48]MH_I2C_Read... [14:15:48]Read from MH i2c: 01 07 00 16 8A 00 00 00 00 00 EF 0C A2 [14:15:48]RasterBufferAndPrint [14:15:48]line [14:15:48]line [14:15:48]line [14:15:48]line [14:15:48]line [14:15:48]written 0, free lines is 3317 [14:15:48]MH_Cut [14:15:48]Write to MH i2c: D1 01 00 1D 8A 01 79 [14:15:48]Write i2c OK [14:15:48]MH_I2C_Read... [14:15:48]Read from MH i2c: D1 [14:15:48]MH_I2C_Read... [14:15:48]Read from MH i2c: D1 01 00 [14:15:48]MH_I2C_Read... [14:15:48]Read from MH i2c: D1 01 00 1D 8A 00 78 [14:15:48]Write to MH i2c: 01 00 00 1E 8A A8 [14:15:48]Write i2c OK [14:15:48]MH_I2C_Read... [14:15:48]OFD Sender: No OFD packet to send [14:15:49]*** Cut start [14:15:49]*** Partial cut [14:15:49]*** CUTSNS_PIN = 1 [14:15:49]*** CUTSNS_PIN = 0 [14:15:49]*** Brake cut motor [14:15:49]Read from MH i2c: 01 [14:15:49]MH_I2C_Read... [14:15:49]*** Stop cut motor [14:15:49]*** Cut end [14:15:49]Read from MH i2c: 01 07 00 [14:15:49]MH_I2C_Read... [14:15:49]Read from MH i2c: 01 07 00 1E 8A 00 00 00 00 00 FF 0F BD [14:15:49]process_action close_receipt done [14:15:49]requested_data is exist [14:15:49]produce_requested_data [14:15:49]requested_item fm.sn is exist - process it [14:15:49]wFMCommunicate request_size=4 [14:15:49]MH_SAM_APDU [14:15:49]CAPDU: 80 11 00 00 [14:15:49]Write to MH i2c: E2 08 00 1F 8A 80 11 00 00 00 00 00 00 23 [14:15:49]Write i2c OK [14:15:49]MH_I2C_Read... [14:15:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:15:49]Read from MH i2c: E2 [14:15:49]MH_I2C_Read... [14:15:49]Read from MH i2c: E2 17 00 [14:15:49]MH_I2C_Read... [14:15:49]Read from MH i2c: E2 17 00 1F 8A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 71 [14:15:49]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:49]wFMCommunicate OK [14:15:49]requested_item fd.num is exist - process it [14:15:49]SAM_PROTO_GetFieldsCounters [14:15:49]wFMCommunicate request_size=4 [14:15:49]MH_SAM_APDU [14:15:49]CAPDU: 80 13 00 00 [14:15:49]Write to MH i2c: E2 08 00 20 8A 80 13 00 00 00 00 00 00 26 [14:15:49]Write i2c OK [14:15:49]MH_I2C_Read... [14:15:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:15:49]Read from MH i2c: E2 [14:15:49]MH_I2C_Read... [14:15:49]Read from MH i2c: E2 62 00 [14:15:49]MH_I2C_Read... [14:15:49]Read from MH i2c: E2 62 00 20 8A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 6A [14:15: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 95 76 00 00 0E 04 04 00 72 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 [14:15:49]wFMCommunicate OK [14:15:49]SAM_PROTO_GetFieldsCounters done [14:15:49]requested_item shift.num is exist - process it [14:15:49]requested_item shift.opened is exist - process it [14:15:49]req_shift_opened [14:15:49]FM_GetShiftState [14:15:49]SAM_PROTO_GetShiftState [14:15:49]wFMCommunicate request_size=4 [14:15:49]MH_SAM_APDU [14:15:49]CAPDU: 80 13 01 00 [14:15:49]Write to MH i2c: E2 08 00 21 8A 80 13 01 00 00 00 00 00 28 [14:15:49]Write i2c OK [14:15:49]MH_I2C_Read... [14:15:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:15:49]Read from MH i2c: E2 [14:15:49]MH_I2C_Read... [14:15:49]Read from MH i2c: E2 0E 00 [14:15:49]MH_I2C_Read... [14:15:49]Read from MH i2c: E2 0E 00 21 8A 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 0E [14:15:49]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [14:15:49]wFMCommunicate OK [14:15:49]SAM_PROTO_GetShiftState done [14:15:49]FM_GetShiftState done [14:15:49]req_shift_opened done [14:15:49]requested_item shift.open_date is exist - process it [14:15:49]req_shift_open_date [14:15:49]req_shift_open_date done [14:15:49]produce_requested_data done [14:15:49]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30357,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [14:15:49]process_action_free close_receipt [14:15:49]json_value_free [14:15:49]json_value_free done [14:15:49]process_json_proto returns [14:15:49]Send response to host [14:15:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30357,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [14:15:49]free response buf [14:15:49]execute_script done [14:15:49]execute_script returns [14:15:49]free content buf [14:15:49]Sock 9.Close socket [14:15:49]Sock 9.Thread stoped [14:15:53]OFD Sender: No OFD packet to send [14:15:58]OFD Sender: No OFD packet to send [14:16:03]OFD Sender: No OFD packet to send [14:16:08]OFD Sender: No OFD packet to send [14:16:13]OFD Sender: No OFD packet to send [14:16:18]OFD Sender: No OFD packet to send [14:16:23]OFD Sender: No OFD packet to send [14:16:28]OFD Sender: No OFD packet to send [14:16:33]OFD Sender: No OFD packet to send [14:16:38]OFD Sender: No OFD packet to send [14:16:43]OFD Sender: No OFD packet to send [14:16:48]OFD Sender: No OFD packet to send [14:16:53]OFD Sender: No OFD packet to send [14:16:58]OFD Sender: No OFD packet to send [14:17:03]OFD Sender: No OFD packet to send [14:17:08]OFD Sender: No OFD packet to send [14:17:10]accept exits with 7 [14:17:10]New connection [14:17:10]New thread 3067514212 created [14:17:10]Thread 3067370852 joined [14:17:10]Waiting for new connection... [14:17:10] Sock 7.Parse request [14:17:10]Sock 7.Check first char [14:17:10]Sock 7.First char is OK [14:17:10]request: POST /json_proto HTTP/1.0 [14:17:10]Method: POST [14:17:10]URL: /json_proto [14:17:10]Method is POST - this is cgi request [14:17:10]url: /json_proto [14:17:10]query_string will be loaded in cgi processing [14:17:10]execute_cgi json_proto POST (null) [14:17:10]execute_cgi path=json_proto method=POST [14:17:10]POST find Content-Length [14:17:10]Host: 172.17.51.3:8080 [14:17:10]Content-Length: 677 [14:17:10]Content-Type: application/json [14:17:10] [14:17:10]POST finish read [14:17:10]Found Content-Length = 677 [14:17:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342750", "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" ] } } [14:17:10]execute_script... [14:17: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)342750", "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" ] } } [14:17:10]POST & json_proto [14:17:10]process_json_proto [14:17:10]json parsed OK: [14:17:10]protocol is kg_v1.0 [14:17:10]action value=close_receipt [14:17:10]process_action close_receipt [14:17:10]cmd_close_receipt [14:17:10]MH_GetDate [14:17:10]Write to MH i2c: F0 00 00 22 8A 9B [14:17:10]Write i2c OK [14:17:10]MH_I2C_Read... [14:17:10]Read from MH i2c: F0 [14:17:10]MH_I2C_Read... [14:17:10]Read from MH i2c: F0 09 00 [14:17:10]MH_I2C_Read... [14:17:10]Read from MH i2c: F0 09 00 22 8A 00 EF 10 15 67 04 C1 95 66 DF [14:17:10]GetLastDocTimeStamp 1729433755 [14:17:10]current date 1729433839 [14:17:10]FM_GetShiftState [14:17:10]SAM_PROTO_GetShiftState [14:17:10]wFMCommunicate request_size=4 [14:17:10]MH_SAM_APDU [14:17:10]CAPDU: 80 13 01 00 [14:17:10]Write to MH i2c: E2 08 00 23 8A 80 13 01 00 00 00 00 00 2A [14:17:10]Write i2c OK [14:17:10]MH_I2C_Read... [14:17:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:17:10]Read from MH i2c: E2 [14:17:10]MH_I2C_Read... [14:17:10]Read from MH i2c: E2 0E 00 [14:17:10]MH_I2C_Read... [14:17:10]Read from MH i2c: E2 0E 00 23 8A 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 10 [14:17:10]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [14:17:10]wFMCommunicate OK [14:17:10]SAM_PROTO_GetShiftState done [14:17:10]FM_GetShiftState done [14:17:10]opened in 1729384718 [14:17:10]opened+sec_in_day 1729471118 [14:17:10]quantity*price = 15052 [14:17:10]sum+1 = 15054 [14:17:10]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 СНО: Общий режим Чек 140 20.10.2024 14:17 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30358 ФПД: 33372518307700 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T141719&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30358&fm=33372518307700&tin=02508201610067®Number=0000000000186857&sum=15000 [14:17:11]StoreToDocumentArchive [14:17:11]shift 114 fd 30358 [14:17:11]save to /storage/0114/doc_00030358 [14:17:11]save last doc name /storage/0114/doc_00030358 to /storage/kkm_last_doc_name [14:17:11]save OK [14:17:11]Clear old archive folders... [14:17:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:17:11]tlvbuf is 00AB75B0 [14:17:11]SAM_PROTO_ClearQueue [14:17:11]wFMCommunicate request_size=4 [14:17:11]MH_SAM_APDU [14:17:11]CAPDU: 80 09 00 00 [14:17:11]Write to MH i2c: E2 08 00 30 8A 80 09 00 00 00 00 00 00 2C [14:17:11]Write i2c OK [14:17:11]MH_I2C_Read... [14:17:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:17:11]Read from MH i2c: E2 [14:17:11]MH_I2C_Read... [14:17:11]Read from MH i2c: E2 03 00 [14:17:11]MH_I2C_Read... [14:17:11]Read from MH i2c: E2 03 00 30 8A 00 90 00 2E [14:17:11]RAPDU: 90 00 [14:17:11]wFMCommunicate OK [14:17:11]SAM_PROTO_ClearQueue done [14:17:11]KKMCreateOFDPacket [14:17:11]OFDProtocolAddRootSTLVToBuf [14:17:11]FM_MakeSignedData [14:17:11]FM_MakeSignedData [14:17:11]SAM_PROTO_SignData [14:17:11]wFMCommunicate request_size=4 [14:17:11]MH_SAM_APDU [14:17:11]CAPDU: 80 0D 01 02 [14:17:11]Write to MH i2c: E2 08 00 31 8A 80 0D 01 02 00 00 00 00 34 [14:17:11]Write i2c OK [14:17:11]MH_I2C_Read... [14:17:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:17:11]Read from MH i2c: E2 [14:17:11]MH_I2C_Read... [14:17:11]Read from MH i2c: E2 03 00 [14:17:11]MH_I2C_Read... [14:17:11]Read from MH i2c: E2 03 00 31 8A 00 90 00 2F [14:17:11]RAPDU: 90 00 [14:17:11]wFMCommunicate OK [14:17:11]wFMCommunicate request_size=255 [14:17:11]MH_SAM_APDU [14:17: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 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 8C 00 00 00 F4 03 04 00 EF 10 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 1E [14:17:11]Write to MH i2c: E2 02 01 32 8A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 8C 00 00 00 F4 03 04 00 EF 10 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 1E 00 00 65 [14:17:11]Write i2c OK [14:17:11]MH_I2C_Read... [14:17:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:17:11]Read from MH i2c: E2 [14:17:11]MH_I2C_Read... [14:17:11]Read from MH i2c: E2 03 00 [14:17:11]MH_I2C_Read... [14:17:11]Read from MH i2c: E2 03 00 32 8A 00 90 00 30 [14:17:11]RAPDU: 90 00 [14:17:11]wFMCommunicate OK [14:17:11]wFMCommunicate request_size=10 [14:17:11]MH_SAM_APDU [14:17:11]CAPDU: 80 0D 02 02 05 5A 25 19 57 74 [14:17:11]Write to MH i2c: E2 0D 00 33 8A 80 0D 02 02 05 00 5A 25 19 57 74 00 00 A4 [14:17:11]Write i2c OK [14:17:11]MH_I2C_Read... [14:17:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:17:11]Read from MH i2c: E2 [14:17:11]MH_I2C_Read... [14:17:11]Read from MH i2c: E2 03 00 [14:17:11]MH_I2C_Read... [14:17:11]Read from MH i2c: E2 03 00 33 8A 00 90 00 31 [14:17:11]RAPDU: 90 00 [14:17:11]wFMCommunicate OK [14:17:11]wFMCommunicate request_size=4 [14:17:11]MH_SAM_APDU [14:17:11]CAPDU: 80 0D 03 02 [14:17:11]Write to MH i2c: E2 08 00 34 8A 80 0D 03 02 00 00 00 00 39 [14:17:11]Write i2c OK [14:17:11]MH_I2C_Read... [14:17:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:17:11]Read from MH i2c: E2 [14:17:11]MH_I2C_Read... [14:17:11]Read from MH i2c: E2 0B 00 [14:17:11]MH_I2C_Read... [14:17:11]Read from MH i2c: E2 0B 00 34 8A 00 4D 6B 8F 3C 1A 90 77 6E 90 00 4C [14:17:11]RAPDU: 4D 6B 8F 3C 1A 90 77 6E 90 00 [14:17:11]wFMCommunicate OK [14:17:11]SAM_PROTO_SignData done [14:17:11]FM_MakeSignedData done [14:17:11]CreateOFDProtocolMessage [14:17:11]wFMCommunicate request_size=4 [14:17:11]MH_SAM_APDU [14:17:11]CAPDU: 80 11 00 00 [14:17:11]Write to MH i2c: E2 08 00 35 8A 80 11 00 00 00 00 00 00 39 [14:17:11]Write i2c OK [14:17:11]MH_I2C_Read... [14:17:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:17:11]Read from MH i2c: E2 [14:17:11]MH_I2C_Read... [14:17:11]Read from MH i2c: E2 17 00 [14:17:11]MH_I2C_Read... [14:17:11]Read from MH i2c: E2 17 00 35 8A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 87 [14:17: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:17:11]wFMCommunicate OK [14:17:11]CreateOFDProtocolMessage done [14:17:11]OFDSenderStorePacket 30358 [14:17:11]StoreOFDPacket docnum=30358 [14:17: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 47 82 07 01 7B A7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 8C 00 00 00 F4 03 04 00 EF 10 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 1E 5A 25 19 57 74 4D 6B 8F 3C 1A 90 77 6E [14:17:11]CheckFolder [14:17:11]dirname=/storage/ofd_packets [14:17:11]CheckFolder done [14:17:11]ProducePacketName [14:17:11]name=ofd_packets/00030358 [14:17:11]NVStorageSaveData ofd_packets/00030358 [14:17:11]File name is /storage/ofd_packets/00030358 [14:17:11]Write 301 bytes [14:17:11]NVStorageSaveData done [14:17:11]OFDSenderStorePacket done [14:17:11]KKMCreateOFDPacket done [14:17:11]NVStorageSaveData kkm_last_timestamp [14:17:11]File name is /storage/kkm_last_timestamp [14:17:11]Write 4 bytes [14:17:11]NVStorageSaveData done [14:17:11]ExternCall_PrintAddStr [14:17:11]wPrintStart [14:17:11]Write to MH i2c: 01 00 00 36 8A C0 [14:17:11]Write i2c OK [14:17:11]MH_I2C_Read... [14:17:11]Read from MH i2c: 01 [14:17:11]MH_I2C_Read... [14:17:11]Read from MH i2c: 01 07 00 [14:17:11]MH_I2C_Read... [14:17:11]Read from MH i2c: 01 07 00 36 8A 00 00 00 00 00 FF 0F D5 [14:17:11]RasterBufferAndPrint [14:17:11]line Счет N : (1)342750 [14:17:11]line ИНН: 02508201610067 [14:17:11]line Контрольно-Кассовый Чек [14:17:11]line ПРОДАЖА [14:17:11]line ТРК (МРК, ГНК) : 33 [14:17:11]line Товар: 2710124130 [14:17:11]line Аи-92-К-2 [14:17:11]line 2.250 * 66.90 [14:17:11]line = 150.53 [14:17:11]line НДС 12% НСП 1% [14:17:11]line > о реализуемом товаре [14:17:11]line ОКРУГЛЕНИЕ: -0.53 [14:17:11]line ИТОГО: 150.00 [14:17:11]line Внесено: 150.00 [14:17:11]line СДАЧА: 0.00 [14:17:11]line НСП 1% : 1.33 [14:17:11]line НДС 12% : 15.98 [14:17:11]line Наличными: 150.00 [14:17:11]line Безнал.: 0.00 [14:17:11]line Место: АЗС № 78 "Партнер Нефть" [14:17:11]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [14:17:11]line СНО: Общий режим [14:17:11]line Чек 140 20.10.2024 14:17 [14:17:11]line Смена: 114 ФФД: 1.0 [14:17:11]line ЗНМ: 0300000137 [14:17:11]line РНМ: 0000000000186857 [14:17:11]line Версия ККМ: v1.0 [14:17:11]line ФМ: 0000000002094219 [14:17:11]line ФД: 30358 [14:17:11]line ФПД: 33372518307700 [14:17:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T141719&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30358&fm=33372518307700&tin=02508201610067®Number=0000000000186857&sum=15000 [14:17:12]OFD Sender: Processing packet 30358 [packets to send 10, broken 9] [14:17:12]ProducePacketName [14:17:12]name=ofd_packets/00030358 [14:17:12]OFD Sender: To server: pG, [14:17:12]CommunicateWithHost lk.salyk.kg:30040 [14:17:12]ConnectInit lk.salyk.kg [14:17:12]written 0, free lines is 4095 [14:17:12]Connected sock=10 [14:17: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 47 82 07 01 7B A7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 8C 00 00 00 F4 03 04 00 EF 10 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 1E 5A 25 19 57 74 4D 6B 8F 3C 1A 90 77 6E [14:17: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 2D D1 47 00 2E 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 96 76 00 00 F4 03 04 00 73 BB 14 67 B6 04 01 00 00 B0 EF 3A 38 76 52 3A AC [14:17:12]CommunicateWithHost err = 0 [14:17:12]CheckOFDResponse [14:17:12]1017 (14) - 77093643461234 [14:17:12]1041 (16) - 0000000002094219 [14:17:12]1040 (4) - 30358 [14:17:12]1012 (4) - 20.10.2024 08:12 [14:17:12]1206 (1) - 0 [14:17:12]OFD Sender: Remove packet 30358 [14:17:12]ProducePacketName [14:17:12]name=ofd_packets/00030358 [14:17:12]NVStorageDeleteData [14:17:12]Write to MH i2c: 01 00 00 61 8A EB [14:17:12]Write i2c OK [14:17:12]MH_I2C_Read... [14:17:12]Read from MH i2c: 01 [14:17:12]MH_I2C_Read... [14:17:12]Read from MH i2c: 01 07 00 [14:17:12]MH_I2C_Read... [14:17:12]Read from MH i2c: 01 07 00 61 8A 00 00 00 00 00 E4 0C E2 [14:17:12]RasterBufferAndPrint [14:17:12]line [14:17:12]line [14:17:12]line [14:17:12]line [14:17:12]line [14:17:12]written 0, free lines is 3306 [14:17:12]MH_Cut [14:17:12]Write to MH i2c: D1 01 00 68 8A 01 C4 [14:17:12]Write i2c OK [14:17:12]MH_I2C_Read... [14:17:12]Read from MH i2c: D1 [14:17:12]MH_I2C_Read... [14:17:12]Read from MH i2c: D1 01 00 [14:17:12]MH_I2C_Read... [14:17:12]Read from MH i2c: D1 01 00 68 8A 00 C3 [14:17:12]Write to MH i2c: 01 00 00 69 8A F3 [14:17:12]Write i2c OK [14:17:12]MH_I2C_Read... [14:17:13]OFD Sender: No OFD packet to send [14:17:13]*** Cut start [14:17:13]*** Partial cut [14:17:13]*** CUTSNS_PIN = 1 [14:17:13]*** CUTSNS_PIN = 0 [14:17:13]*** Brake cut motor [14:17:13]Read from MH i2c: 01 [14:17:13]MH_I2C_Read... [14:17:13]*** Stop cut motor [14:17:13]*** Cut end [14:17:13]Read from MH i2c: 01 07 00 [14:17:13]MH_I2C_Read... [14:17:13]Read from MH i2c: 01 07 00 69 8A 00 00 00 00 00 FF 0F 08 [14:17:13]process_action close_receipt done [14:17:13]requested_data is exist [14:17:13]produce_requested_data [14:17:13]requested_item fm.sn is exist - process it [14:17:13]wFMCommunicate request_size=4 [14:17:13]MH_SAM_APDU [14:17:13]CAPDU: 80 11 00 00 [14:17:13]Write to MH i2c: E2 08 00 6A 8A 80 11 00 00 00 00 00 00 6E [14:17:13]Write i2c OK [14:17:13]MH_I2C_Read... [14:17:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:17:13]Read from MH i2c: E2 [14:17:13]MH_I2C_Read... [14:17:13]Read from MH i2c: E2 17 00 [14:17:13]MH_I2C_Read... [14:17:13]Read from MH i2c: E2 17 00 6A 8A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 BC [14:17: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:17:13]wFMCommunicate OK [14:17:13]requested_item fd.num is exist - process it [14:17:13]SAM_PROTO_GetFieldsCounters [14:17:13]wFMCommunicate request_size=4 [14:17:13]MH_SAM_APDU [14:17:13]CAPDU: 80 13 00 00 [14:17:13]Write to MH i2c: E2 08 00 6B 8A 80 13 00 00 00 00 00 00 71 [14:17:13]Write i2c OK [14:17:13]MH_I2C_Read... [14:17:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:17:14]Read from MH i2c: E2 [14:17:14]MH_I2C_Read... [14:17:14]Read from MH i2c: E2 62 00 [14:17:14]MH_I2C_Read... [14:17:14]Read from MH i2c: E2 62 00 6B 8A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 B9 [14:17: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 96 76 00 00 0E 04 04 00 72 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 [14:17:14]wFMCommunicate OK [14:17:14]SAM_PROTO_GetFieldsCounters done [14:17:14]requested_item shift.num is exist - process it [14:17:14]requested_item shift.opened is exist - process it [14:17:14]req_shift_opened [14:17:14]FM_GetShiftState [14:17:14]SAM_PROTO_GetShiftState [14:17:14]wFMCommunicate request_size=4 [14:17:14]MH_SAM_APDU [14:17:14]CAPDU: 80 13 01 00 [14:17:14]Write to MH i2c: E2 08 00 6C 8A 80 13 01 00 00 00 00 00 73 [14:17:14]Write i2c OK [14:17:14]MH_I2C_Read... [14:17:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:17:14]Read from MH i2c: E2 [14:17:14]MH_I2C_Read... [14:17:14]Read from MH i2c: E2 0E 00 [14:17:14]MH_I2C_Read... [14:17:14]Read from MH i2c: E2 0E 00 6C 8A 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 59 [14:17:14]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [14:17:14]wFMCommunicate OK [14:17:14]SAM_PROTO_GetShiftState done [14:17:14]FM_GetShiftState done [14:17:14]req_shift_opened done [14:17:14]requested_item shift.open_date is exist - process it [14:17:14]req_shift_open_date [14:17:14]req_shift_open_date done [14:17:14]produce_requested_data done [14:17:14]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30358,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [14:17:14]process_action_free close_receipt [14:17:14]json_value_free [14:17:14]json_value_free done [14:17:14]process_json_proto returns [14:17:14]Send response to host [14:17:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30358,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [14:17:14]free response buf [14:17:14]execute_script done [14:17:14]execute_script returns [14:17:14]free content buf [14:17:14]Sock 7.Close socket [14:17:14]Sock 7.Thread stoped [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:33]OFD Sender: No OFD packet to send [14:21:38]OFD Sender: No OFD packet to send [14:21:43]OFD Sender: No OFD packet to send [14:21:48]OFD Sender: No OFD packet to send [14:21:53]OFD Sender: No OFD packet to send [14:21:55]accept exits with 9 [14:21:55]New connection [14:21:55]New thread 3067370852 created [14:21:55]Thread 3067514212 joined [14:21:55]Waiting for new connection... [14:21:55] Sock 9.Parse request [14:21:55]Sock 9.Check first char [14:21:55]Sock 9.First char is OK [14:21:55]request: POST /json_proto HTTP/1.0 [14:21:55]Method: POST [14:21:55]URL: /json_proto [14:21:55]Method is POST - this is cgi request [14:21:55]url: /json_proto [14:21:55]query_string will be loaded in cgi processing [14:21:55]execute_cgi json_proto POST (null) [14:21:55]execute_cgi path=json_proto method=POST [14:21:55]POST find Content-Length [14:21:55]Host: 172.17.51.3:8080 [14:21:55]Content-Length: 679 [14:21:55]Content-Type: application/json [14:21:55] [14:21:55]POST finish read [14:21:55]Found Content-Length = 679 [14:21:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342751", "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" : 15.750, "sum" : 1200.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:21:55]execute_script... [14:21: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)342751", "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" : 15.750, "sum" : 1200.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:21:55]POST & json_proto [14:21:55]process_json_proto [14:21:55]json parsed OK: [14:21:55]protocol is kg_v1.0 [14:21:55]action value=close_receipt [14:21:55]process_action close_receipt [14:21:55]cmd_close_receipt [14:21:55]MH_GetDate [14:21:55]Write to MH i2c: F0 00 00 6D 8A E6 [14:21:55]Write i2c OK [14:21:55]MH_I2C_Read... [14:21:55]Read from MH i2c: F0 [14:21:55]MH_I2C_Read... [14:21:55]Read from MH i2c: F0 09 00 [14:21:55]MH_I2C_Read... [14:21:55]Read from MH i2c: F0 09 00 6D 8A 00 0D 12 15 67 04 C1 95 66 4A [14:21:55]GetLastDocTimeStamp 1729433839 [14:21:55]current date 1729434125 [14:21:55]FM_GetShiftState [14:21:55]SAM_PROTO_GetShiftState [14:21:55]wFMCommunicate request_size=4 [14:21:55]MH_SAM_APDU [14:21:55]CAPDU: 80 13 01 00 [14:21:55]Write to MH i2c: E2 08 00 6E 8A 80 13 01 00 00 00 00 00 75 [14:21:55]Write i2c OK [14:21:55]MH_I2C_Read... [14:21:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:21:55]Read from MH i2c: E2 [14:21:55]MH_I2C_Read... [14:21:55]Read from MH i2c: E2 0E 00 [14:21:55]MH_I2C_Read... [14:21:55]Read from MH i2c: E2 0E 00 6E 8A 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 5B [14:21:55]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [14:21:55]wFMCommunicate OK [14:21:55]SAM_PROTO_GetShiftState done [14:21:55]FM_GetShiftState done [14:21:55]opened in 1729384718 [14:21:55]opened+sec_in_day 1729471118 [14:21:55]quantity*price = 120015 [14:21:55]sum+1 = 120016 [14:21:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.15 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.45 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 141 20.10.2024 14:22 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30359 ФПД: 156063486456364 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T142205&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30359&fm=156063486456364&tin=02508201610067®Number=0000000000186857&sum=120000 [14:21:56]StoreToDocumentArchive [14:21:56]shift 114 fd 30359 [14:21:56]save to /storage/0114/doc_00030359 [14:21:56]save last doc name /storage/0114/doc_00030359 to /storage/kkm_last_doc_name [14:21:56]save OK [14:21:56]Clear old archive folders... [14:21:56]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:21:56]tlvbuf is 00AC7EF0 [14:21:56]SAM_PROTO_ClearQueue [14:21:56]wFMCommunicate request_size=4 [14:21:56]MH_SAM_APDU [14:21:56]CAPDU: 80 09 00 00 [14:21:56]Write to MH i2c: E2 08 00 7B 8A 80 09 00 00 00 00 00 00 77 [14:21:56]Write i2c OK [14:21:56]MH_I2C_Read... [14:21:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:21:57]Read from MH i2c: E2 [14:21:57]MH_I2C_Read... [14:21:57]Read from MH i2c: E2 03 00 [14:21:57]MH_I2C_Read... [14:21:57]Read from MH i2c: E2 03 00 7B 8A 00 90 00 79 [14:21:57]RAPDU: 90 00 [14:21:57]wFMCommunicate OK [14:21:57]SAM_PROTO_ClearQueue done [14:21:57]KKMCreateOFDPacket [14:21:57]OFDProtocolAddRootSTLVToBuf [14:21:57]FM_MakeSignedData [14:21:57]FM_MakeSignedData [14:21:57]SAM_PROTO_SignData [14:21:57]wFMCommunicate request_size=4 [14:21:57]MH_SAM_APDU [14:21:57]CAPDU: 80 0D 01 02 [14:21:57]Write to MH i2c: E2 08 00 7C 8A 80 0D 01 02 00 00 00 00 7F [14:21:57]Write i2c OK [14:21:57]MH_I2C_Read... [14:21:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:21:57]Read from MH i2c: E2 [14:21:57]MH_I2C_Read... [14:21:57]Read from MH i2c: E2 03 00 [14:21:57]MH_I2C_Read... [14:21:57]Read from MH i2c: E2 03 00 7C 8A 00 90 00 7A [14:21:57]RAPDU: 90 00 [14:21:57]wFMCommunicate OK [14:21:57]wFMCommunicate request_size=255 [14:21:57]MH_SAM_APDU [14:21: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 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 0D 12 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 8D F0 5C AC [14:21:57]Write to MH i2c: E2 02 01 7D 8A 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 0D 12 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 8D F0 5C AC 00 00 A0 [14:21:57]Write i2c OK [14:21:57]MH_I2C_Read... [14:21:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:21:57]Read from MH i2c: E2 [14:21:57]MH_I2C_Read... [14:21:57]Read from MH i2c: E2 03 00 [14:21:57]MH_I2C_Read... [14:21:57]Read from MH i2c: E2 03 00 7D 8A 00 90 00 7B [14:21:57]RAPDU: 90 00 [14:21:57]wFMCommunicate OK [14:21:57]wFMCommunicate request_size=7 [14:21:57]MH_SAM_APDU [14:21:57]CAPDU: 80 0D 02 02 02 32 2C [14:21:57]Write to MH i2c: E2 0A 00 7E 8A 80 0D 02 02 02 00 32 2C 00 00 E4 [14:21:57]Write i2c OK [14:21:57]MH_I2C_Read... [14:21:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:21:57]Read from MH i2c: E2 [14:21:57]MH_I2C_Read... [14:21:57]Read from MH i2c: E2 03 00 [14:21:57]MH_I2C_Read... [14:21:57]Read from MH i2c: E2 03 00 7E 8A 00 90 00 7C [14:21:57]RAPDU: 90 00 [14:21:57]wFMCommunicate OK [14:21:57]wFMCommunicate request_size=4 [14:21:57]MH_SAM_APDU [14:21:57]CAPDU: 80 0D 03 02 [14:21:57]Write to MH i2c: E2 08 00 7F 8A 80 0D 03 02 00 00 00 00 84 [14:21:57]Write i2c OK [14:21:57]MH_I2C_Read... [14:21:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:21:57]Read from MH i2c: E2 [14:21:57]MH_I2C_Read... [14:21:57]Read from MH i2c: E2 0B 00 [14:21:57]MH_I2C_Read... [14:21:57]Read from MH i2c: E2 0B 00 7F 8A 00 8B 43 0A 2C EA C8 1F 60 90 00 BA [14:21:57]RAPDU: 8B 43 0A 2C EA C8 1F 60 90 00 [14:21:57]wFMCommunicate OK [14:21:57]SAM_PROTO_SignData done [14:21:57]FM_MakeSignedData done [14:21:57]CreateOFDProtocolMessage [14:21:57]wFMCommunicate request_size=4 [14:21:57]MH_SAM_APDU [14:21:57]CAPDU: 80 11 00 00 [14:21:57]Write to MH i2c: E2 08 00 80 8A 80 11 00 00 00 00 00 00 84 [14:21:57]Write i2c OK [14:21:57]MH_I2C_Read... [14:21:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:21:57]Read from MH i2c: E2 [14:21:57]MH_I2C_Read... [14:21:57]Read from MH i2c: E2 17 00 [14:21:57]MH_I2C_Read... [14:21:57]Read from MH i2c: E2 17 00 80 8A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 D2 [14:21: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:21:57]wFMCommunicate OK [14:21:57]CreateOFDProtocolMessage done [14:21:57]OFDSenderStorePacket 30359 [14:21:57]StoreOFDPacket docnum=30359 [14:21: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 19 B9 04 01 17 A9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 0D 12 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 8D F0 5C AC 32 2C 8B 43 0A 2C EA C8 1F 60 [14:21:57]CheckFolder [14:21:57]dirname=/storage/ofd_packets [14:21:57]CheckFolder done [14:21:57]ProducePacketName [14:21:57]name=ofd_packets/00030359 [14:21:57]NVStorageSaveData ofd_packets/00030359 [14:21:57]File name is /storage/ofd_packets/00030359 [14:21:57]Write 298 bytes [14:21:57]NVStorageSaveData done [14:21:57]OFDSenderStorePacket done [14:21:57]KKMCreateOFDPacket done [14:21:57]NVStorageSaveData kkm_last_timestamp [14:21:57]File name is /storage/kkm_last_timestamp [14:21:57]Write 4 bytes [14:21:57]NVStorageSaveData done [14:21:57]ExternCall_PrintAddStr [14:21:57]wPrintStart [14:21:57]Write to MH i2c: 01 00 00 81 8A 0B [14:21:57]Write i2c OK [14:21:57]MH_I2C_Read... [14:21:57]Read from MH i2c: 01 [14:21:57]MH_I2C_Read... [14:21:57]Read from MH i2c: 01 07 00 [14:21:57]MH_I2C_Read... [14:21:57]Read from MH i2c: 01 07 00 81 8A 00 00 00 00 00 FF 0F 20 [14:21:57]RasterBufferAndPrint [14:21:57]line Счет N : (1)342751 [14:21:57]line ИНН: 02508201610067 [14:21:57]line Контрольно-Кассовый Чек [14:21:57]line ПРОДАЖА [14:21:57]line ТРК (МРК, ГНК) : 54 [14:21:57]line Товар: 2710194210 [14:21:57]line ДТ-К-2 [14:21:57]line 15.750 * 76.20 [14:21:57]line = 1200.15 [14:21:57]line НДС 12% НСП 1% [14:21:57]line > о реализуемом товаре [14:21:57]line ОКРУГЛЕНИЕ: -0.15 [14:21:57]line ИТОГО: 1200.00 [14:21:57]line Внесено: 1200.00 [14:21:57]line СДАЧА: 0.00 [14:21:57]line НСП 1% : 10.62 [14:21:57]line НДС 12% : 127.45 [14:21:57]line Наличными: 1200.00 [14:21:57]line Безнал.: 0.00 [14:21:57]line Место: АЗС № 78 "Партнер Нефть" [14:21:57]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [14:21:57]line СНО: Общий режим [14:21:57]line Чек 141 20.10.2024 14:22 [14:21:57]line Смена: 114 ФФД: 1.0 [14:21:57]line ЗНМ: 0300000137 [14:21:57]line РНМ: 0000000000186857 [14:21:57]line Версия ККМ: v1.0 [14:21:57]line ФМ: 0000000002094219 [14:21:57]line ФД: 30359 [14:21:57]line ФПД: 156063486456364 [14:21:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T142205&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30359&fm=156063486456364&tin=02508201610067®Number=0000000000186857&sum=120000 [14:21:57]OFD Sender: Processing packet 30359 [packets to send 10, broken 9] [14:21:57]ProducePacketName [14:21:57]name=ofd_packets/00030359 [14:21:57]OFD Sender: To server: pG, [14:21:57]CommunicateWithHost lk.salyk.kg:30040 [14:21:57]ConnectInit lk.salyk.kg [14:21:57]written 0, free lines is 4095 [14:21:57]Connected sock=10 [14:21: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 19 B9 04 01 17 A9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 0D 12 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 8D F0 5C AC 32 2C 8B 43 0A 2C EA C8 1F 60 [14:21: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 99 5C 47 00 9D E7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 97 76 00 00 F4 03 04 00 91 BC 14 67 B6 04 01 00 00 10 F8 84 E7 78 48 04 15 [14:21:58]CommunicateWithHost err = 0 [14:21:58]CheckOFDResponse [14:21:58]1017 (14) - 77093643461234 [14:21:58]1041 (16) - 0000000002094219 [14:21:58]1040 (4) - 30359 [14:21:58]1012 (4) - 20.10.2024 08:17 [14:21:58]1206 (1) - 0 [14:21:58]OFD Sender: Remove packet 30359 [14:21:58]ProducePacketName [14:21:58]name=ofd_packets/00030359 [14:21:58]NVStorageDeleteData [14:21:58]Write to MH i2c: 01 00 00 AC 8A 36 [14:21:58]Write i2c OK [14:21:58]MH_I2C_Read... [14:21:58]Read from MH i2c: 01 [14:21:58]MH_I2C_Read... [14:21:58]Read from MH i2c: 01 07 00 [14:21:58]MH_I2C_Read... [14:21:58]Read from MH i2c: 01 07 00 AC 8A 00 00 00 00 00 E0 0C 29 [14:21:58]RasterBufferAndPrint [14:21:58]line [14:21:58]line [14:21:58]line [14:21:58]line [14:21:58]line [14:21:58]written 0, free lines is 3302 [14:21:58]MH_Cut [14:21:58]Write to MH i2c: D1 01 00 B3 8A 01 0F [14:21:58]Write i2c OK [14:21:58]MH_I2C_Read... [14:21:58]Read from MH i2c: D1 [14:21:58]MH_I2C_Read... [14:21:58]Read from MH i2c: D1 01 00 [14:21:58]MH_I2C_Read... [14:21:58]Read from MH i2c: D1 01 00 B3 8A 00 0E [14:21:58]Write to MH i2c: 01 00 00 B4 8A 3E [14:21:58]Write i2c OK [14:21:58]MH_I2C_Read... [14:21:58]OFD Sender: No OFD packet to send [14:21:58]*** Cut start [14:21:58]*** Partial cut [14:21:58]*** CUTSNS_PIN = 1 [14:21:59]*** CUTSNS_PIN = 0 [14:21:59]*** Brake cut motor [14:21:59]Read from MH i2c: 01 [14:21:59]MH_I2C_Read... [14:21:59]*** Stop cut motor [14:21:59]*** Cut end [14:21:59]Read from MH i2c: 01 07 00 [14:21:59]MH_I2C_Read... [14:21:59]Read from MH i2c: 01 07 00 B4 8A 00 00 00 00 00 FF 0F 53 [14:21:59]process_action close_receipt done [14:21:59]requested_data is exist [14:21:59]produce_requested_data [14:21:59]requested_item fm.sn is exist - process it [14:21:59]wFMCommunicate request_size=4 [14:21:59]MH_SAM_APDU [14:21:59]CAPDU: 80 11 00 00 [14:21:59]Write to MH i2c: E2 08 00 B5 8A 80 11 00 00 00 00 00 00 B9 [14:21:59]Write i2c OK [14:21:59]MH_I2C_Read... [14:21:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:21:59]Read from MH i2c: E2 [14:21:59]MH_I2C_Read... [14:21:59]Read from MH i2c: E2 17 00 [14:21:59]MH_I2C_Read... [14:21:59]Read from MH i2c: E2 17 00 B5 8A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 07 [14:21: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:21:59]wFMCommunicate OK [14:21:59]requested_item fd.num is exist - process it [14:21:59]SAM_PROTO_GetFieldsCounters [14:21:59]wFMCommunicate request_size=4 [14:21:59]MH_SAM_APDU [14:21:59]CAPDU: 80 13 00 00 [14:21:59]Write to MH i2c: E2 08 00 B6 8A 80 13 00 00 00 00 00 00 BC [14:21:59]Write i2c OK [14:21:59]MH_I2C_Read... [14:21:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:21:59]Read from MH i2c: E2 [14:21:59]MH_I2C_Read... [14:21:59]Read from MH i2c: E2 62 00 [14:21:59]MH_I2C_Read... [14:21:59]Read from MH i2c: E2 62 00 B6 8A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 08 [14:21: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 97 76 00 00 0E 04 04 00 72 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 [14:21:59]wFMCommunicate OK [14:21:59]SAM_PROTO_GetFieldsCounters done [14:21:59]requested_item shift.num is exist - process it [14:21:59]requested_item shift.opened is exist - process it [14:21:59]req_shift_opened [14:21:59]FM_GetShiftState [14:21:59]SAM_PROTO_GetShiftState [14:21:59]wFMCommunicate request_size=4 [14:21:59]MH_SAM_APDU [14:21:59]CAPDU: 80 13 01 00 [14:21:59]Write to MH i2c: E2 08 00 B7 8A 80 13 01 00 00 00 00 00 BE [14:21:59]Write i2c OK [14:21:59]MH_I2C_Read... [14:21:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:21:59]Read from MH i2c: E2 [14:21:59]MH_I2C_Read... [14:21:59]Read from MH i2c: E2 0E 00 [14:21:59]MH_I2C_Read... [14:21:59]Read from MH i2c: E2 0E 00 B7 8A 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 A4 [14:21:59]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [14:21:59]wFMCommunicate OK [14:21:59]SAM_PROTO_GetShiftState done [14:21:59]FM_GetShiftState done [14:21:59]req_shift_opened done [14:21:59]requested_item shift.open_date is exist - process it [14:21:59]req_shift_open_date [14:21:59]req_shift_open_date done [14:21:59]produce_requested_data done [14:21:59]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30359,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [14:21:59]process_action_free close_receipt [14:21:59]json_value_free [14:21:59]json_value_free done [14:21:59]process_json_proto returns [14:21:59]Send response to host [14:21:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30359,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [14:21:59]free response buf [14:21:59]execute_script done [14:21:59]execute_script returns [14:21:59]free content buf [14:21:59]Sock 9.Close socket [14:21:59]Sock 9.Thread stoped [14:22:03]OFD Sender: No OFD packet to send [14:22:08]OFD Sender: No OFD packet to send [14:22:11]accept exits with 7 [14:22:11]New connection [14:22:11]New thread 3067514212 created [14:22:11]Thread 3067370852 joined [14:22:11]Waiting for new connection... [14:22:11] Sock 7.Parse request [14:22:11]Sock 7.Check first char [14:22:11]Sock 7.First char is OK [14:22:11]request: POST /json_proto HTTP/1.0 [14:22:11]Method: POST [14:22:11]URL: /json_proto [14:22:11]Method is POST - this is cgi request [14:22:11]url: /json_proto [14:22:11]query_string will be loaded in cgi processing [14:22:11]execute_cgi json_proto POST (null) [14:22:11]execute_cgi path=json_proto method=POST [14:22:11]POST find Content-Length [14:22:11]Host: 172.17.51.3:8080 [14:22:11]Content-Length: 215 [14:22:11]Content-Type: application/json [14:22:11] [14:22:11]POST finish read [14:22:11]Found Content-Length = 215 [14:22:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:22:11]execute_script... [14:22:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:22:11]POST & json_proto [14:22:11]process_json_proto [14:22:11]json parsed OK: [14:22:11]protocol is kg_v1.0 [14:22:11]action value=get_value [14:22:11]process_action get_value [14:22:11]cmd_get_value [14:22:11]process_action get_value done [14:22:11]requested_data is exist [14:22:11]produce_requested_data [14:22:11]requested_item kkm.sn is exist - process it [14:22:11]requested_item kkm.ver is exist - process it [14:22:11]requested_item fm.sn is exist - process it [14:22:11]wFMCommunicate request_size=4 [14:22:11]MH_SAM_APDU [14:22:11]CAPDU: 80 11 00 00 [14:22:11]Write to MH i2c: E2 08 00 B8 8A 80 11 00 00 00 00 00 00 BC [14:22:11]Write i2c OK [14:22:11]MH_I2C_Read... [14:22:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:22:11]Read from MH i2c: E2 [14:22:11]MH_I2C_Read... [14:22:11]Read from MH i2c: E2 17 00 [14:22:11]MH_I2C_Read... [14:22:11]Read from MH i2c: E2 17 00 B8 8A 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:22: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:22:11]wFMCommunicate OK [14:22:11]requested_item fd.num is exist - process it [14:22:11]SAM_PROTO_GetFieldsCounters [14:22:11]wFMCommunicate request_size=4 [14:22:11]MH_SAM_APDU [14:22:11]CAPDU: 80 13 00 00 [14:22:11]Write to MH i2c: E2 08 00 B9 8A 80 13 00 00 00 00 00 00 BF [14:22:11]Write i2c OK [14:22:11]MH_I2C_Read... [14:22:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:22:11]Read from MH i2c: E2 [14:22:11]MH_I2C_Read... [14:22:11]Read from MH i2c: E2 62 00 [14:22:11]MH_I2C_Read... [14:22:11]Read from MH i2c: E2 62 00 B9 8A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 0B [14:22: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 97 76 00 00 0E 04 04 00 72 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 [14:22:11]wFMCommunicate OK [14:22:11]SAM_PROTO_GetFieldsCounters done [14:22:11]requested_item shift.num is exist - process it [14:22:11]requested_item shift.opened is exist - process it [14:22:11]req_shift_opened [14:22:11]FM_GetShiftState [14:22:11]SAM_PROTO_GetShiftState [14:22:11]wFMCommunicate request_size=4 [14:22:11]MH_SAM_APDU [14:22:11]CAPDU: 80 13 01 00 [14:22:11]Write to MH i2c: E2 08 00 BA 8A 80 13 01 00 00 00 00 00 C1 [14:22:11]Write i2c OK [14:22:11]MH_I2C_Read... [14:22:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:22:11]Read from MH i2c: E2 [14:22:11]MH_I2C_Read... [14:22:11]Read from MH i2c: E2 0E 00 [14:22:11]MH_I2C_Read... [14:22:11]Read from MH i2c: E2 0E 00 BA 8A 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 A7 [14:22:11]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [14:22:11]wFMCommunicate OK [14:22:11]SAM_PROTO_GetShiftState done [14:22:11]FM_GetShiftState done [14:22:11]req_shift_opened done [14:22:11]requested_item shift.open_date is exist - process it [14:22:11]req_shift_open_date [14:22:11]req_shift_open_date done [14:22:11]produce_requested_data done [14:22:11]produce_requested_data return {"kkm.sn":"0300000137","kkm.ver":"v1.0","fm.sn":"0000000002094219","fd.num":30359,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [14:22:11]process_action_free get_value [14:22:11]json_value_free [14:22:11]json_value_free done [14:22:11]process_json_proto returns [14:22:11]Send response to host [14:22:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000137","kkm.ver":"v1.0","fm.sn":"0000000002094219","fd.num":30359,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [14:22:11]free response buf [14:22:11]execute_script done [14:22:11]execute_script returns [14:22:11]free content buf [14:22:11]Sock 7.Close socket [14:22:11]Sock 7.Thread stoped [14:22:11]accept exits with 9 [14:22:11]New connection [14:22:11]New thread 3067370852 created [14:22:11]Thread 3067514212 joined [14:22:11]Waiting for new connection... [14:22:11] Sock 9.Parse request [14:22:11]Sock 9.Check first char [14:22:11]Sock 9.First char is OK [14:22:11]request: POST /json_proto HTTP/1.0 [14:22:11]Method: POST [14:22:11]URL: /json_proto [14:22:11]Method is POST - this is cgi request [14:22:11]url: /json_proto [14:22:11]query_string will be loaded in cgi processing [14:22:11]execute_cgi json_proto POST (null) [14:22:11]execute_cgi path=json_proto method=POST [14:22:11]POST find Content-Length [14:22:11]Host: 172.17.51.3:8080 [14:22:11]Content-Length: 331 [14:22:11]Content-Type: application/json [14:22:11] [14:22:11]POST finish read [14:22:11]Found Content-Length = 331 [14:22:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [14:22:11]execute_script... [14:22:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [14:22:11]POST & json_proto [14:22:11]process_json_proto [14:22:11]json parsed OK: [14:22:11]protocol is kg_v1.0 [14:22:11]action value=get_value [14:22:11]process_action get_value [14:22:11]cmd_get_value [14:22:11]process_action get_value done [14:22:11]requested_data is exist [14:22:11]produce_requested_data [14:22:11]requested_item fm.sale.total is exist - process it [14:22:11]SAM_PROTO_GetFMData [14:22:11]wFMCommunicate request_size=4 [14:22:11]MH_SAM_APDU [14:22:11]CAPDU: 80 13 03 00 [14:22:11]Write to MH i2c: E2 08 00 BB 8A 80 13 03 00 00 00 00 00 C4 [14:22:11]Write i2c OK [14:22:11]MH_I2C_Read... [14:22:12]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [14:22:12]Read from MH i2c: E2 [14:22:12]MH_I2C_Read... [14:22:12]Read from MH i2c: E2 FD 00 [14:22:12]MH_I2C_Read... [14:22:12]Read from MH i2c: E2 FD 00 BB 8A 00 BF 04 85 04 BB 04 6E 04 04 00 B3 75 00 00 69 04 A1 00 6F 04 04 00 A4 75 00 00 B1 04 04 00 CB 6B 11 A3 70 04 04 00 F8 08 9F 82 72 04 04 00 D3 62 72 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 EE 62 52 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 45 86 71 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 54 [14:22:12]RAPDU: BF 04 85 04 BB 04 6E 04 04 00 B3 75 00 00 69 04 A1 00 6F 04 04 00 A4 75 00 00 B1 04 04 00 CB 6B 11 A3 70 04 04 00 F8 08 9F 82 72 04 04 00 D3 62 72 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 EE 62 52 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 45 86 71 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 [14:22:12]wFMCommunicate OK [14:22:12]wFMCommunicate request_size=4 [14:22:12]MH_SAM_APDU [14:22:12]CAPDU: 80 17 00 00 [14:22:12]Write to MH i2c: E2 08 00 BC 8A 80 17 00 00 00 00 00 00 C6 [14:22:12]Write i2c OK [14:22:12]MH_I2C_Read... [14:22:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:22:12]Read from MH i2c: E2 [14:22:12]MH_I2C_Read... [14:22:12]Read from MH i2c: E2 FD 00 [14:22:12]MH_I2C_Read... [14:22:12]Read from MH i2c: E2 FD 00 BC 8A 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 97 [14:22:12]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 [14:22:12]wFMCommunicate OK [14:22:12]wFMCommunicate request_size=4 [14:22:12]MH_SAM_APDU [14:22:12]CAPDU: 80 17 00 00 [14:22:12]Write to MH i2c: E2 08 00 BD 8A 80 17 00 00 00 00 00 00 C7 [14:22:12]Write i2c OK [14:22:12]MH_I2C_Read... [14:22:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:22:12]Read from MH i2c: E2 [14:22:12]MH_I2C_Read... [14:22:12]Read from MH i2c: E2 FD 00 [14:22:12]MH_I2C_Read... [14:22:12]Read from MH i2c: E2 FD 00 BD 8A 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 6B [14:22:12]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 [14:22:12]wFMCommunicate OK [14:22:12]wFMCommunicate request_size=4 [14:22:12]MH_SAM_APDU [14:22:12]CAPDU: 80 17 00 00 [14:22:12]Write to MH i2c: E2 08 00 BE 8A 80 17 00 00 00 00 00 00 C8 [14:22:12]Write i2c OK [14:22:12]MH_I2C_Read... [14:22:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:22:12]Read from MH i2c: E2 [14:22:12]MH_I2C_Read... [14:22:12]Read from MH i2c: E2 FD 00 [14:22:12]MH_I2C_Read... [14:22:12]Read from MH i2c: E2 FD 00 BE 8A 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 42 [14:22:12]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 [14:22:12]wFMCommunicate OK [14:22:12]wFMCommunicate request_size=4 [14:22:12]MH_SAM_APDU [14:22:12]CAPDU: 80 17 00 00 [14:22:12]Write to MH i2c: E2 08 00 BF 8A 80 17 00 00 00 00 00 00 C9 [14:22:12]Write i2c OK [14:22:12]MH_I2C_Read... [14:22:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 217! [14:22:13]Read from MH i2c: E2 [14:22:13]MH_I2C_Read... [14:22:13]Read from MH i2c: E2 DC 00 [14:22:13]MH_I2C_Read... [14:22:13]Read from MH i2c: E2 DC 00 BF 8A 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 AD [14:22:13]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 [14:22:13]wFMCommunicate OK [14:22:13]SAM_PROTO_GetFMData done [14:22:13]requested_item fm.sale_refund.total is exist - process it [14:22:13]requested_item fm.buy.total is exist - process it [14:22:13]requested_item shift.sale.total is exist - process it [14:22:13]SAM_PROTO_GetShiftData [14:22:13]wFMCommunicate request_size=4 [14:22:13]MH_SAM_APDU [14:22:13]CAPDU: 80 13 02 00 [14:22:13]Write to MH i2c: E2 08 00 C0 8A 80 13 02 00 00 00 00 00 C8 [14:22:13]Write i2c OK [14:22:13]MH_I2C_Read... [14:22:13]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [14:22:13]Read from MH i2c: E2 [14:22:13]MH_I2C_Read... [14:22:13]Read from MH i2c: E2 FD 00 [14:22:13]MH_I2C_Read... [14:22:13]Read from MH i2c: E2 FD 00 C0 8A 00 AF 04 AA 04 AB 04 6E 04 04 00 8D 00 00 00 69 04 9C 00 6F 04 04 00 8D 00 00 00 B1 04 03 00 55 02 B5 70 04 03 00 34 EC A2 72 04 03 00 21 16 12 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 62 3A 13 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 2F 9A 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 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 42 [14:22:13]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 8D 00 00 00 69 04 9C 00 6F 04 04 00 8D 00 00 00 B1 04 03 00 55 02 B5 70 04 03 00 34 EC A2 72 04 03 00 21 16 12 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 62 3A 13 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 2F 9A 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 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 [14:22:13]wFMCommunicate OK [14:22:13]wFMCommunicate request_size=4 [14:22:13]MH_SAM_APDU [14:22:13]CAPDU: 80 17 00 00 [14:22:13]Write to MH i2c: E2 08 00 C1 8A 80 17 00 00 00 00 00 00 CB [14:22:13]Write i2c OK [14:22:13]MH_I2C_Read... [14:22:13]OFD Sender: No OFD packet to send [14:22:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:22:13]Read from MH i2c: E2 [14:22:13]MH_I2C_Read... [14:22:13]Read from MH i2c: E2 FD 00 [14:22:13]MH_I2C_Read... [14:22:13]Read from MH i2c: E2 FD 00 C1 8A 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 E4 [14:22:13]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [14:22:13]wFMCommunicate OK [14:22:13]wFMCommunicate request_size=4 [14:22:13]MH_SAM_APDU [14:22:13]CAPDU: 80 17 00 00 [14:22:13]Write to MH i2c: E2 08 00 C2 8A 80 17 00 00 00 00 00 00 CC [14:22:13]Write i2c OK [14:22:13]MH_I2C_Read... [14:22:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:22:14]Read from MH i2c: E2 [14:22:14]MH_I2C_Read... [14:22:14]Read from MH i2c: E2 FD 00 [14:22:14]MH_I2C_Read... [14:22:14]Read from MH i2c: E2 FD 00 C2 8A 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 80 [14:22:14]RAPDU: 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [14:22:14]wFMCommunicate OK [14:22:14]wFMCommunicate request_size=4 [14:22:14]MH_SAM_APDU [14:22:14]CAPDU: 80 17 00 00 [14:22:14]Write to MH i2c: E2 08 00 C3 8A 80 17 00 00 00 00 00 00 CD [14:22:14]Write i2c OK [14:22:14]MH_I2C_Read... [14:22:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:22:14]Read from MH i2c: E2 [14:22:14]MH_I2C_Read... [14:22:14]Read from MH i2c: E2 FD 00 [14:22:14]MH_I2C_Read... [14:22:14]Read from MH i2c: E2 FD 00 C3 8A 00 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 90 00 4B [14:22:14]RAPDU: 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 90 00 [14:22:14]wFMCommunicate OK [14:22:14]wFMCommunicate request_size=4 [14:22:14]MH_SAM_APDU [14:22:14]CAPDU: 80 17 00 00 [14:22:14]Write to MH i2c: E2 08 00 C4 8A 80 17 00 00 00 00 00 00 CE [14:22:14]Write i2c OK [14:22:14]MH_I2C_Read... [14:22:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [14:22:14]Read from MH i2c: E2 [14:22:14]MH_I2C_Read... [14:22:14]Read from MH i2c: E2 CC 00 [14:22:14]MH_I2C_Read... [14:22:14]Read from MH i2c: E2 CC 00 C4 8A 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 AF [14:22:14]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [14:22:14]wFMCommunicate OK [14:22:14]SAM_PROTO_GetShiftData done [14:22:14]requested_item shift.sale.total_cash is exist - process it [14:22:14]requested_item shift.sale_refund.total is exist - process it [14:22:14]requested_item shift.sale_refund.total_cash is exist - process it [14:22:14]requested_item shift.buy.total is exist - process it [14:22:14]requested_item shift.buy.total_cash is exist - process it [14:22:14]produce_requested_data done [14:22:14]produce_requested_data return {"fm.sale.total":27358279.15,"fm.sale_refund.total":54066.00,"fm.buy.total":0.00,"shift.sale.total":118626.13,"shift.sale.total_cash":106773.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} [14:22:14]process_action_free get_value [14:22:14]json_value_free [14:22:14]json_value_free done [14:22:14]process_json_proto returns [14:22:14]Send response to host [14:22:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":27358279.15,"fm.sale_refund.total":54066.00,"fm.buy.total":0.00,"shift.sale.total":118626.13,"shift.sale.total_cash":106773.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}}} [14:22:14]free response buf [14:22:14]execute_script done [14:22:14]execute_script returns [14:22:14]free content buf [14:22:14]Sock 9.Close socket [14:22:14]Sock 9.Thread stoped [14:22:18]OFD Sender: No OFD packet to send [14:22:23]OFD Sender: No OFD packet to send [14:22:28]OFD Sender: No OFD packet to send [14:22:33]OFD Sender: No OFD packet to send [14:22:38]OFD Sender: No OFD packet to send [14:22:43]OFD Sender: No OFD packet to send [14:22:48]OFD Sender: No OFD packet to send [14:22:53]OFD Sender: No OFD packet to send [14:22:58]OFD Sender: No OFD packet to send [14:23:03]OFD Sender: No OFD packet to send [14:23:08]OFD Sender: No OFD packet to send [14:23:13]OFD Sender: No OFD packet to send [14:23:18]OFD Sender: No OFD packet to send [14:23:23]OFD Sender: No OFD packet to send [14:23:28]OFD Sender: No OFD packet to send [14:23:33]OFD Sender: No OFD packet to send [14:23:38]OFD Sender: No OFD packet to send [14:23:43]OFD Sender: No OFD packet to send [14:23:48]OFD Sender: No OFD packet to send [14:23:53]OFD Sender: No OFD packet to send [14:23:58]OFD Sender: No OFD packet to send [14:24:03]OFD Sender: No OFD packet to send [14:24:08]OFD Sender: No OFD packet to send [14:24:13]OFD Sender: No OFD packet to send [14:24:18]OFD Sender: No OFD packet to send [14:24:23]OFD Sender: No OFD packet to send [14:24:28]OFD Sender: No OFD packet to send [14:24:33]OFD Sender: No OFD packet to send [14:24:38]OFD Sender: No OFD packet to send [14:24:43]OFD Sender: No OFD packet to send [14:24:48]OFD Sender: No OFD packet to send [14:24:53]accept exits with 7 [14:24:53]New connection [14:24:53]New thread 3067514212 created [14:24:53]Thread 3067370852 joined [14:24:53]Waiting for new connection... [14:24:53] Sock 7.Parse request [14:24:53]Sock 7.Check first char [14:24:53]Sock 7.First char is OK [14:24:53]request: POST /json_proto HTTP/1.0 [14:24:53]Method: POST [14:24:53]URL: /json_proto [14:24:53]Method is POST - this is cgi request [14:24:53]url: /json_proto [14:24:53]query_string will be loaded in cgi processing [14:24:53]execute_cgi json_proto POST (null) [14:24:53]execute_cgi path=json_proto method=POST [14:24:53]POST find Content-Length [14:24:53]Host: 172.17.51.3:8080 [14:24:53]Content-Length: 215 [14:24:53]Content-Type: application/json [14:24:53] [14:24:53]POST finish read [14:24:53]Found Content-Length = 215 [14:24:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:24:53]execute_script... [14:24:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:24:53]POST & json_proto [14:24:53]process_json_proto [14:24:53]json parsed OK: [14:24:53]protocol is kg_v1.0 [14:24:53]action value=get_value [14:24:53]process_action get_value [14:24:53]cmd_get_value [14:24:53]process_action get_value done [14:24:53]requested_data is exist [14:24:53]produce_requested_data [14:24:53]requested_item kkm.sn is exist - process it [14:24:53]requested_item kkm.ver is exist - process it [14:24:53]requested_item fm.sn is exist - process it [14:24:53]wFMCommunicate request_size=4 [14:24:53]MH_SAM_APDU [14:24:53]CAPDU: 80 11 00 00 [14:24:53]Write to MH i2c: E2 08 00 C5 8A 80 11 00 00 00 00 00 00 C9 [14:24:53]Write i2c OK [14:24:53]MH_I2C_Read... [14:24:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:24:53]Read from MH i2c: E2 [14:24:53]MH_I2C_Read... [14:24:53]Read from MH i2c: E2 17 00 [14:24:53]MH_I2C_Read... [14:24:53]Read from MH i2c: E2 17 00 C5 8A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 17 [14:24: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:24:53]wFMCommunicate OK [14:24:53]requested_item fd.num is exist - process it [14:24:53]SAM_PROTO_GetFieldsCounters [14:24:53]wFMCommunicate request_size=4 [14:24:53]MH_SAM_APDU [14:24:53]CAPDU: 80 13 00 00 [14:24:53]Write to MH i2c: E2 08 00 C6 8A 80 13 00 00 00 00 00 00 CC [14:24:53]Write i2c OK [14:24:53]MH_I2C_Read... [14:24:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:24:53]Read from MH i2c: E2 [14:24:53]MH_I2C_Read... [14:24:53]Read from MH i2c: E2 62 00 [14:24:53]MH_I2C_Read... [14:24:53]Read from MH i2c: E2 62 00 C6 8A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 18 [14:24: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 97 76 00 00 0E 04 04 00 72 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 [14:24:53]wFMCommunicate OK [14:24:53]SAM_PROTO_GetFieldsCounters done [14:24:53]requested_item shift.num is exist - process it [14:24:53]requested_item shift.opened is exist - process it [14:24:53]req_shift_opened [14:24:53]FM_GetShiftState [14:24:53]SAM_PROTO_GetShiftState [14:24:53]wFMCommunicate request_size=4 [14:24:53]MH_SAM_APDU [14:24:53]CAPDU: 80 13 01 00 [14:24:53]Write to MH i2c: E2 08 00 C7 8A 80 13 01 00 00 00 00 00 CE [14:24:53]Write i2c OK [14:24:53]MH_I2C_Read... [14:24:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:24:53]Read from MH i2c: E2 [14:24:53]MH_I2C_Read... [14:24:53]Read from MH i2c: E2 0E 00 [14:24:53]MH_I2C_Read... [14:24:53]Read from MH i2c: E2 0E 00 C7 8A 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 B4 [14:24:53]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [14:24:53]wFMCommunicate OK [14:24:53]SAM_PROTO_GetShiftState done [14:24:53]FM_GetShiftState done [14:24:53]req_shift_opened done [14:24:53]requested_item shift.open_date is exist - process it [14:24:53]req_shift_open_date [14:24:53]req_shift_open_date done [14:24:53]produce_requested_data done [14:24:53]produce_requested_data return {"kkm.sn":"0300000137","kkm.ver":"v1.0","fm.sn":"0000000002094219","fd.num":30359,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [14:24:53]process_action_free get_value [14:24:53]json_value_free [14:24:53]json_value_free done [14:24:53]process_json_proto returns [14:24:53]Send response to host [14:24:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000137","kkm.ver":"v1.0","fm.sn":"0000000002094219","fd.num":30359,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [14:24:53]free response buf [14:24:53]execute_script done [14:24:53]execute_script returns [14:24:53]free content buf [14:24:53]Sock 7.Close socket [14:24:53]Sock 7.Thread stoped [14:24:53]accept exits with 9 [14:24:53]New connection [14:24:53]New thread 3067370852 created [14:24:53]Thread 3067514212 joined [14:24:53]Waiting for new connection... [14:24:53] Sock 9.Parse request [14:24:53]Sock 9.Check first char [14:24:53]Sock 9.First char is OK [14:24:53]request: POST /json_proto HTTP/1.0 [14:24:53]Method: POST [14:24:53]URL: /json_proto [14:24:53]Method is POST - this is cgi request [14:24:53]url: /json_proto [14:24:53]query_string will be loaded in cgi processing [14:24:53]execute_cgi json_proto POST (null) [14:24:53]execute_cgi path=json_proto method=POST [14:24:53]POST find Content-Length [14:24:53]Host: 172.17.51.3:8080 [14:24:53]Content-Length: 331 [14:24:53]Content-Type: application/json [14:24:53] [14:24:53]POST finish read [14:24:53]Found Content-Length = 331 [14:24:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [14:24:53]execute_script... [14:24:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [14:24:53]POST & json_proto [14:24:53]process_json_proto [14:24:53]json parsed OK: [14:24:53]protocol is kg_v1.0 [14:24:53]action value=get_value [14:24:53]process_action get_value [14:24:53]cmd_get_value [14:24:53]process_action get_value done [14:24:53]requested_data is exist [14:24:53]produce_requested_data [14:24:53]requested_item fm.sale.total is exist - process it [14:24:53]SAM_PROTO_GetFMData [14:24:53]wFMCommunicate request_size=4 [14:24:53]MH_SAM_APDU [14:24:53]CAPDU: 80 13 03 00 [14:24:53]Write to MH i2c: E2 08 00 C8 8A 80 13 03 00 00 00 00 00 D1 [14:24:53]OFD Sender: No OFD packet to send [14:24:53]Write i2c OK [14:24:53]MH_I2C_Read... [14:24:54]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [14:24:54]Read from MH i2c: E2 [14:24:54]MH_I2C_Read... [14:24:54]Read from MH i2c: E2 FD 00 [14:24:54]MH_I2C_Read... [14:24:54]Read from MH i2c: E2 FD 00 C8 8A 00 BF 04 85 04 BB 04 6E 04 04 00 B3 75 00 00 69 04 A1 00 6F 04 04 00 A4 75 00 00 B1 04 04 00 CB 6B 11 A3 70 04 04 00 F8 08 9F 82 72 04 04 00 D3 62 72 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 EE 62 52 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 45 86 71 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 61 [14:24:54]RAPDU: BF 04 85 04 BB 04 6E 04 04 00 B3 75 00 00 69 04 A1 00 6F 04 04 00 A4 75 00 00 B1 04 04 00 CB 6B 11 A3 70 04 04 00 F8 08 9F 82 72 04 04 00 D3 62 72 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 EE 62 52 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 45 86 71 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 [14:24:54]wFMCommunicate OK [14:24:54]wFMCommunicate request_size=4 [14:24:54]MH_SAM_APDU [14:24:54]CAPDU: 80 17 00 00 [14:24:54]Write to MH i2c: E2 08 00 C9 8A 80 17 00 00 00 00 00 00 D3 [14:24:54]Write i2c OK [14:24:54]MH_I2C_Read... [14:24:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:24:54]Read from MH i2c: E2 [14:24:54]MH_I2C_Read... [14:24:54]Read from MH i2c: E2 FD 00 [14:24:54]MH_I2C_Read... [14:24:54]Read from MH i2c: E2 FD 00 C9 8A 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 A4 [14:24:54]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 [14:24:54]wFMCommunicate OK [14:24:54]wFMCommunicate request_size=4 [14:24:54]MH_SAM_APDU [14:24:54]CAPDU: 80 17 00 00 [14:24:54]Write to MH i2c: E2 08 00 CA 8A 80 17 00 00 00 00 00 00 D4 [14:24:54]Write i2c OK [14:24:54]MH_I2C_Read... [14:24:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:24:54]Read from MH i2c: E2 [14:24:54]MH_I2C_Read... [14:24:54]Read from MH i2c: E2 FD 00 [14:24:54]MH_I2C_Read... [14:24:54]Read from MH i2c: E2 FD 00 CA 8A 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 78 [14:24:54]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 [14:24:54]wFMCommunicate OK [14:24:54]wFMCommunicate request_size=4 [14:24:54]MH_SAM_APDU [14:24:54]CAPDU: 80 17 00 00 [14:24:54]Write to MH i2c: E2 08 00 CB 8A 80 17 00 00 00 00 00 00 D5 [14:24:54]Write i2c OK [14:24:54]MH_I2C_Read... [14:24:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:24:55]Read from MH i2c: E2 [14:24:55]MH_I2C_Read... [14:24:55]Read from MH i2c: E2 FD 00 [14:24:55]MH_I2C_Read... [14:24:55]Read from MH i2c: E2 FD 00 CB 8A 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 4F [14:24:55]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 [14:24:55]wFMCommunicate OK [14:24:55]wFMCommunicate request_size=4 [14:24:55]MH_SAM_APDU [14:24:55]CAPDU: 80 17 00 00 [14:24:55]Write to MH i2c: E2 08 00 CC 8A 80 17 00 00 00 00 00 00 D6 [14:24:55]Write i2c OK [14:24:55]MH_I2C_Read... [14:24:55]Read from MH i2c: E2 [14:24:55]MH_I2C_Read... [14:24:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 217! [14:24:55]Read from MH i2c: E2 DC 00 [14:24:55]MH_I2C_Read... [14:24:55]Read from MH i2c: E2 DC 00 CC 8A 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 BA [14:24:55]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 [14:24:55]wFMCommunicate OK [14:24:55]SAM_PROTO_GetFMData done [14:24:55]requested_item fm.sale_refund.total is exist - process it [14:24:55]requested_item fm.buy.total is exist - process it [14:24:55]requested_item shift.sale.total is exist - process it [14:24:55]SAM_PROTO_GetShiftData [14:24:55]wFMCommunicate request_size=4 [14:24:55]MH_SAM_APDU [14:24:55]CAPDU: 80 13 02 00 [14:24:55]Write to MH i2c: E2 08 00 CD 8A 80 13 02 00 00 00 00 00 D5 [14:24:55]Write i2c OK [14:24:55]MH_I2C_Read... [14:24:55]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [14:24:55]Read from MH i2c: E2 [14:24:55]MH_I2C_Read... [14:24:55]Read from MH i2c: E2 FD 00 [14:24:55]MH_I2C_Read... [14:24:55]Read from MH i2c: E2 FD 00 CD 8A 00 AF 04 AA 04 AB 04 6E 04 04 00 8D 00 00 00 69 04 9C 00 6F 04 04 00 8D 00 00 00 B1 04 03 00 55 02 B5 70 04 03 00 34 EC A2 72 04 03 00 21 16 12 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 62 3A 13 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 2F 9A 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 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 4F [14:24:55]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 8D 00 00 00 69 04 9C 00 6F 04 04 00 8D 00 00 00 B1 04 03 00 55 02 B5 70 04 03 00 34 EC A2 72 04 03 00 21 16 12 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 62 3A 13 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 2F 9A 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 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 [14:24:55]wFMCommunicate OK [14:24:55]wFMCommunicate request_size=4 [14:24:55]MH_SAM_APDU [14:24:55]CAPDU: 80 17 00 00 [14:24:55]Write to MH i2c: E2 08 00 CE 8A 80 17 00 00 00 00 00 00 D8 [14:24:55]Write i2c OK [14:24:55]MH_I2C_Read... [14:24:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:24:56]Read from MH i2c: E2 [14:24:56]MH_I2C_Read... [14:24:56]Read from MH i2c: E2 FD 00 [14:24:56]MH_I2C_Read... [14:24:56]Read from MH i2c: E2 FD 00 CE 8A 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 F1 [14:24:56]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [14:24:56]wFMCommunicate OK [14:24:56]wFMCommunicate request_size=4 [14:24:56]MH_SAM_APDU [14:24:56]CAPDU: 80 17 00 00 [14:24:56]Write to MH i2c: E2 08 00 CF 8A 80 17 00 00 00 00 00 00 D9 [14:24:56]Write i2c OK [14:24:56]MH_I2C_Read... [14:24:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:24:56]Read from MH i2c: E2 [14:24:56]MH_I2C_Read... [14:24:56]Read from MH i2c: E2 FD 00 [14:24:56]MH_I2C_Read... [14:24:56]Read from MH i2c: E2 FD 00 CF 8A 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 8D [14:24:56]RAPDU: 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [14:24:56]wFMCommunicate OK [14:24:56]wFMCommunicate request_size=4 [14:24:56]MH_SAM_APDU [14:24:56]CAPDU: 80 17 00 00 [14:24:56]Write to MH i2c: E2 08 00 D0 8A 80 17 00 00 00 00 00 00 DA [14:24:56]Write i2c OK [14:24:56]MH_I2C_Read... [14:24:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:24:56]Read from MH i2c: E2 [14:24:56]MH_I2C_Read... [14:24:56]Read from MH i2c: E2 FD 00 [14:24:56]MH_I2C_Read... [14:24:56]Read from MH i2c: E2 FD 00 D0 8A 00 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 90 00 58 [14:24:56]RAPDU: 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 90 00 [14:24:56]wFMCommunicate OK [14:24:56]wFMCommunicate request_size=4 [14:24:56]MH_SAM_APDU [14:24:56]CAPDU: 80 17 00 00 [14:24:56]Write to MH i2c: E2 08 00 D1 8A 80 17 00 00 00 00 00 00 DB [14:24:56]Write i2c OK [14:24:56]MH_I2C_Read... [14:24:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [14:24:56]Read from MH i2c: E2 [14:24:56]MH_I2C_Read... [14:24:56]Read from MH i2c: E2 CC 00 [14:24:56]MH_I2C_Read... [14:24:56]Read from MH i2c: E2 CC 00 D1 8A 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 BC [14:24:56]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [14:24:56]wFMCommunicate OK [14:24:56]SAM_PROTO_GetShiftData done [14:24:56]requested_item shift.sale.total_cash is exist - process it [14:24:56]requested_item shift.sale_refund.total is exist - process it [14:24:56]requested_item shift.sale_refund.total_cash is exist - process it [14:24:56]requested_item shift.buy.total is exist - process it [14:24:56]requested_item shift.buy.total_cash is exist - process it [14:24:56]produce_requested_data done [14:24:56]produce_requested_data return {"fm.sale.total":27358279.15,"fm.sale_refund.total":54066.00,"fm.buy.total":0.00,"shift.sale.total":118626.13,"shift.sale.total_cash":106773.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} [14:24:56]process_action_free get_value [14:24:56]json_value_free [14:24:56]json_value_free done [14:24:56]process_json_proto returns [14:24:56]Send response to host [14:24:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":27358279.15,"fm.sale_refund.total":54066.00,"fm.buy.total":0.00,"shift.sale.total":118626.13,"shift.sale.total_cash":106773.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}}} [14:24:56]free response buf [14:24:56]execute_script done [14:24:56]execute_script returns [14:24:56]free content buf [14:24:56]Sock 9.Close socket [14:24:56]Sock 9.Thread stoped [14:24:58]OFD Sender: No OFD packet to send [14:25:03]OFD Sender: No OFD packet to send [14:25:08]OFD Sender: No OFD packet to send [14:25:13]OFD Sender: No OFD packet to send [14:25:18]OFD Sender: No OFD packet to send [14:25:23]OFD Sender: No OFD packet to send [14:25:28]OFD Sender: No OFD packet to send [14:25:33]OFD Sender: No OFD packet to send [14:25:38]OFD Sender: No OFD packet to send [14:25:43]OFD Sender: No OFD packet to send [14:25:48]OFD Sender: No OFD packet to send [14:25:53]OFD Sender: No OFD packet to send [14:25:58]OFD Sender: No OFD packet to send [14:26:03]OFD Sender: No OFD packet to send [14:26:08]OFD Sender: No OFD packet to send [14:26:13]OFD Sender: No OFD packet to send [14:26:19]OFD Sender: No OFD packet to send [14:26:24]OFD Sender: No OFD packet to send [14:26:29]OFD Sender: No OFD packet to send [14:26:34]OFD Sender: No OFD packet to send [14:26:39]OFD Sender: No OFD packet to send [14:26:44]OFD Sender: No OFD packet to send [14:26:49]OFD Sender: No OFD packet to send [14:26:54]OFD Sender: No OFD packet to send [14:26:54]accept exits with 7 [14:26:54]New connection [14:26:54]New thread 3067514212 created [14:26:54]Thread 3067370852 joined [14:26:54]Waiting for new connection... [14:26:54] Sock 7.Parse request [14:26:54]Sock 7.Check first char [14:26:54]Sock 7.First char is OK [14:26:54]request: POST /json_proto HTTP/1.0 [14:26:54]Method: POST [14:26:54]URL: /json_proto [14:26:54]Method is POST - this is cgi request [14:26:54]url: /json_proto [14:26:54]query_string will be loaded in cgi processing [14:26:54]execute_cgi json_proto POST (null) [14:26:54]execute_cgi path=json_proto method=POST [14:26:54]POST find Content-Length [14:26:54]Host: 172.17.51.3:8080 [14:26:54]Content-Length: 677 [14:26:54]Content-Type: application/json [14:26:54] [14:26:54]POST finish read [14:26:54]Found Content-Length = 677 [14:26:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342753", "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" ] } } [14:26:54]execute_script... [14: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)342753", "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" ] } } [14:26:54]POST & json_proto [14:26:54]process_json_proto [14:26:54]json parsed OK: [14:26:54]protocol is kg_v1.0 [14:26:54]action value=close_receipt [14:26:54]process_action close_receipt [14:26:54]cmd_close_receipt [14:26:54]MH_GetDate [14:26:54]Write to MH i2c: F0 00 00 D2 8A 4B [14:26:54]Write i2c OK [14:26:54]MH_I2C_Read... [14:26:54]Read from MH i2c: F0 [14:26:54]MH_I2C_Read... [14:26:54]Read from MH i2c: F0 09 00 [14:26:54]MH_I2C_Read... [14:26:54]Read from MH i2c: F0 09 00 D2 8A 00 38 13 15 67 04 C1 95 66 DB [14:26:54]GetLastDocTimeStamp 1729434125 [14:26:54]current date 1729434424 [14:26:54]FM_GetShiftState [14:26:54]SAM_PROTO_GetShiftState [14:26:54]wFMCommunicate request_size=4 [14:26:54]MH_SAM_APDU [14:26:54]CAPDU: 80 13 01 00 [14:26:54]Write to MH i2c: E2 08 00 D3 8A 80 13 01 00 00 00 00 00 DA [14:26:54]Write i2c OK [14:26:54]MH_I2C_Read... [14:26:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:26:54]Read from MH i2c: E2 [14:26:54]MH_I2C_Read... [14:26:54]Read from MH i2c: E2 0E 00 [14:26:54]MH_I2C_Read... [14:26:54]Read from MH i2c: E2 0E 00 D3 8A 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 C0 [14:26:54]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [14:26:54]wFMCommunicate OK [14:26:54]SAM_PROTO_GetShiftState done [14:26:54]FM_GetShiftState done [14:26:54]opened in 1729384718 [14:26:54]opened+sec_in_day 1729471118 [14:26:54]quantity*price = 30038 [14:26:54]sum+1 = 30039 [14:26:54]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 СНО: Общий режим Чек 142 20.10.2024 14:27 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30360 ФПД: 3173174286607 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T142704&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30360&fm=3173174286607&tin=02508201610067®Number=0000000000186857&sum=30000 [14:26:55]StoreToDocumentArchive [14:26:55]shift 114 fd 30360 [14:26:55]save to /storage/0114/doc_00030360 [14:26:55]save last doc name /storage/0114/doc_00030360 to /storage/kkm_last_doc_name [14:26:55]save OK [14:26:55]Clear old archive folders... [14:26:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:26:55]tlvbuf is 00CEBE80 [14:26:55]SAM_PROTO_ClearQueue [14:26:55]wFMCommunicate request_size=4 [14:26:55]MH_SAM_APDU [14:26:55]CAPDU: 80 09 00 00 [14:26:55]Write to MH i2c: E2 08 00 E0 8A 80 09 00 00 00 00 00 00 DC [14:26:55]Write i2c OK [14:26:55]MH_I2C_Read... [14:26:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:26:55]Read from MH i2c: E2 [14:26:55]MH_I2C_Read... [14:26:55]Read from MH i2c: E2 03 00 [14:26:55]MH_I2C_Read... [14:26:55]Read from MH i2c: E2 03 00 E0 8A 00 90 00 DE [14:26:55]RAPDU: 90 00 [14:26:55]wFMCommunicate OK [14:26:55]SAM_PROTO_ClearQueue done [14:26:55]KKMCreateOFDPacket [14:26:55]OFDProtocolAddRootSTLVToBuf [14:26:55]FM_MakeSignedData [14:26:55]FM_MakeSignedData [14:26:55]SAM_PROTO_SignData [14:26:55]wFMCommunicate request_size=4 [14:26:55]MH_SAM_APDU [14:26:55]CAPDU: 80 0D 01 02 [14:26:55]Write to MH i2c: E2 08 00 E1 8A 80 0D 01 02 00 00 00 00 E4 [14:26:55]Write i2c OK [14:26:55]MH_I2C_Read... [14:26:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:26:55]Read from MH i2c: E2 [14:26:55]MH_I2C_Read... [14:26:55]Read from MH i2c: E2 03 00 [14:26:55]MH_I2C_Read... [14:26:55]Read from MH i2c: E2 03 00 E1 8A 00 90 00 DF [14:26:55]RAPDU: 90 00 [14:26:55]wFMCommunicate OK [14:26:55]wFMCommunicate request_size=255 [14:26:55]MH_SAM_APDU [14:26: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 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 8E 00 00 00 F4 03 04 00 38 13 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 02 [14:26:55]Write to MH i2c: E2 02 01 E2 8A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 8E 00 00 00 F4 03 04 00 38 13 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 02 00 00 40 [14:26:55]Write i2c OK [14:26:55]MH_I2C_Read... [14:26:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:26:55]Read from MH i2c: E2 [14:26:55]MH_I2C_Read... [14:26:55]Read from MH i2c: E2 03 00 [14:26:55]MH_I2C_Read... [14:26:55]Read from MH i2c: E2 03 00 E2 8A 00 90 00 E0 [14:26:55]RAPDU: 90 00 [14:26:55]wFMCommunicate OK [14:26:55]wFMCommunicate request_size=10 [14:26:55]MH_SAM_APDU [14:26:55]CAPDU: 80 0D 02 02 05 E2 CF ED 19 0F [14:26:55]Write to MH i2c: E2 0D 00 E3 8A 80 0D 02 02 05 00 E2 CF ED 19 0F 00 00 B7 [14:26:55]Write i2c OK [14:26:55]MH_I2C_Read... [14:26:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:26:55]Read from MH i2c: E2 [14:26:55]MH_I2C_Read... [14:26:55]Read from MH i2c: E2 03 00 [14:26:55]MH_I2C_Read... [14:26:55]Read from MH i2c: E2 03 00 E3 8A 00 90 00 E1 [14:26:55]RAPDU: 90 00 [14:26:55]wFMCommunicate OK [14:26:55]wFMCommunicate request_size=4 [14:26:55]MH_SAM_APDU [14:26:55]CAPDU: 80 0D 03 02 [14:26:55]Write to MH i2c: E2 08 00 E4 8A 80 0D 03 02 00 00 00 00 E9 [14:26:55]Write i2c OK [14:26:55]MH_I2C_Read... [14:26:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:26:56]Read from MH i2c: E2 [14:26:56]MH_I2C_Read... [14:26:56]Read from MH i2c: E2 0B 00 [14:26:56]MH_I2C_Read... [14:26:56]Read from MH i2c: E2 0B 00 E4 8A 00 44 04 3E 22 88 4C 37 87 90 00 24 [14:26:56]RAPDU: 44 04 3E 22 88 4C 37 87 90 00 [14:26:56]wFMCommunicate OK [14:26:56]SAM_PROTO_SignData done [14:26:56]FM_MakeSignedData done [14:26:56]CreateOFDProtocolMessage [14:26:56]wFMCommunicate request_size=4 [14:26:56]MH_SAM_APDU [14:26:56]CAPDU: 80 11 00 00 [14:26:56]Write to MH i2c: E2 08 00 E5 8A 80 11 00 00 00 00 00 00 E9 [14:26:56]Write i2c OK [14:26:56]MH_I2C_Read... [14:26:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:26:56]Read from MH i2c: E2 [14:26:56]MH_I2C_Read... [14:26:56]Read from MH i2c: E2 17 00 [14:26:56]MH_I2C_Read... [14:26:56]Read from MH i2c: E2 17 00 E5 8A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 37 [14: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 [14:26:56]wFMCommunicate OK [14:26:56]CreateOFDProtocolMessage done [14:26:56]OFDSenderStorePacket 30360 [14:26:56]StoreOFDPacket docnum=30360 [14: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 0F 01 00 00 2D 3F 07 01 A4 CE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 8E 00 00 00 F4 03 04 00 38 13 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 02 E2 CF ED 19 0F 44 04 3E 22 88 4C 37 87 [14:26:56]CheckFolder [14:26:56]dirname=/storage/ofd_packets [14:26:56]CheckFolder done [14:26:56]ProducePacketName [14:26:56]name=ofd_packets/00030360 [14:26:56]NVStorageSaveData ofd_packets/00030360 [14:26:56]File name is /storage/ofd_packets/00030360 [14:26:56]Write 301 bytes [14:26:56]NVStorageSaveData done [14:26:56]OFDSenderStorePacket done [14:26:56]KKMCreateOFDPacket done [14:26:56]NVStorageSaveData kkm_last_timestamp [14:26:56]File name is /storage/kkm_last_timestamp [14:26:56]Write 4 bytes [14:26:56]NVStorageSaveData done [14:26:56]ExternCall_PrintAddStr [14:26:56]wPrintStart [14:26:56]Write to MH i2c: 01 00 00 E6 8A 70 [14:26:56]Write i2c OK [14:26:56]MH_I2C_Read... [14:26:56]Read from MH i2c: 01 [14:26:56]MH_I2C_Read... [14:26:56]Read from MH i2c: 01 07 00 [14:26:56]MH_I2C_Read... [14:26:56]Read from MH i2c: 01 07 00 E6 8A 00 00 00 00 00 FF 0F 85 [14:26:56]RasterBufferAndPrint [14:26:56]line Счет N : (1)342753 [14:26:56]line ИНН: 02508201610067 [14:26:56]line Контрольно-Кассовый Чек [14:26:56]line ПРОДАЖА [14:26:56]line ТРК (МРК, ГНК) : 63 [14:26:56]line Товар: 2710124130 [14:26:56]line Аи-92-К-2 [14:26:56]line 4.490 * 66.90 [14:26:56]line = 300.38 [14:26:56]line НДС 12% НСП 1% [14:26:56]line > о реализуемом товаре [14:26:56]line ОКРУГЛЕНИЕ: -0.38 [14:26:56]line ИТОГО: 300.00 [14:26:56]line Внесено: 300.00 [14:26:56]line СДАЧА: 0.00 [14:26:56]line НСП 1% : 2.66 [14:26:56]line НДС 12% : 31.90 [14:26:56]line Наличными: 300.00 [14:26:56]line Безнал.: 0.00 [14:26:56]line Место: АЗС № 78 "Партнер Нефть" [14:26:56]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [14:26:56]line СНО: Общий режим [14:26:56]line Чек 142 20.10.2024 14:27 [14:26:56]line Смена: 114 ФФД: 1.0 [14:26:56]line ЗНМ: 0300000137 [14:26:56]line РНМ: 0000000000186857 [14:26:56]line Версия ККМ: v1.0 [14:26:56]line ФМ: 0000000002094219 [14:26:56]line ФД: 30360 [14:26:56]line ФПД: 3173174286607 [14:26:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T142704&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30360&fm=3173174286607&tin=02508201610067®Number=0000000000186857&sum=30000 [14:26:56]OFD Sender: Processing packet 30360 [packets to send 10, broken 9] [14:26:56]ProducePacketName [14:26:56]name=ofd_packets/00030360 [14:26:56]OFD Sender: To server: pG, [14:26:56]CommunicateWithHost lk.salyk.kg:30040 [14:26:56]ConnectInit lk.salyk.kg [14:26:56]written 0, free lines is 4095 [14:26:56]Connected sock=10 [14: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 0F 01 00 00 2D 3F 07 01 A4 CE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 8E 00 00 00 F4 03 04 00 38 13 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 02 E2 CF ED 19 0F 44 04 3E 22 88 4C 37 87 [14:26: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 6E 19 47 00 3C 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 98 76 00 00 F4 03 04 00 BB BD 14 67 B6 04 01 00 00 A0 F9 27 15 ED 22 3A A9 [14:26:56]CommunicateWithHost err = 0 [14:26:56]CheckOFDResponse [14:26:56]1017 (14) - 77093643461234 [14:26:56]1041 (16) - 0000000002094219 [14:26:56]1040 (4) - 30360 [14:26:56]1012 (4) - 20.10.2024 08:22 [14:26:56]1206 (1) - 0 [14:26:56]OFD Sender: Remove packet 30360 [14:26:56]ProducePacketName [14:26:56]name=ofd_packets/00030360 [14:26:56]NVStorageDeleteData [14:26:56]Write to MH i2c: 01 00 00 11 8B 9C [14:26:56]Write i2c OK [14:26:56]MH_I2C_Read... [14:26:56]Read from MH i2c: 01 [14:26:56]MH_I2C_Read... [14:26:56]Read from MH i2c: 01 07 00 [14:26:56]MH_I2C_Read... [14:26:56]Read from MH i2c: 01 07 00 11 8B 00 00 00 00 00 EC 0C 9B [14:26:56]RasterBufferAndPrint [14:26:56]line [14:26:56]line [14:26:56]line [14:26:56]line [14:26:56]line [14:26:56]written 0, free lines is 3314 [14:26:56]MH_Cut [14:26:56]Write to MH i2c: D1 01 00 18 8B 01 75 [14:26:56]Write i2c OK [14:26:56]MH_I2C_Read... [14:26:56]Read from MH i2c: D1 [14:26:56]MH_I2C_Read... [14:26:56]Read from MH i2c: D1 01 00 [14:26:56]MH_I2C_Read... [14:26:56]Read from MH i2c: D1 01 00 18 8B 00 74 [14:26:56]Write to MH i2c: 01 00 00 19 8B A4 [14:26:56]Write i2c OK [14:26:56]MH_I2C_Read... [14:26:57]OFD Sender: No OFD packet to send [14:26:57]*** Cut start [14:26:57]*** Partial cut [14:26:57]*** CUTSNS_PIN = 1 [14:26:57]*** CUTSNS_PIN = 0 [14:26:57]*** Brake cut motor [14:26:58]Read from MH i2c: 01 [14:26:58]MH_I2C_Read... [14:26:58]*** Stop cut motor [14:26:58]*** Cut end [14:26:58]Read from MH i2c: 01 07 00 [14:26:58]MH_I2C_Read... [14:26:58]Read from MH i2c: 01 07 00 19 8B 00 00 00 00 00 FF 0F B9 [14:26:58]process_action close_receipt done [14:26:58]requested_data is exist [14:26:58]produce_requested_data [14:26:58]requested_item fm.sn is exist - process it [14:26:58]wFMCommunicate request_size=4 [14:26:58]MH_SAM_APDU [14:26:58]CAPDU: 80 11 00 00 [14:26:58]Write to MH i2c: E2 08 00 1A 8B 80 11 00 00 00 00 00 00 1F [14:26:58]Write i2c OK [14:26:58]MH_I2C_Read... [14:26:58]Read from MH i2c: E2 [14:26:58]MH_I2C_Read... [14:26:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:26:58]Read from MH i2c: E2 17 00 [14:26:58]MH_I2C_Read... [14:26:58]Read from MH i2c: E2 17 00 1A 8B 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: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 [14:26:58]wFMCommunicate OK [14:26:58]requested_item fd.num is exist - process it [14:26:58]SAM_PROTO_GetFieldsCounters [14:26:58]wFMCommunicate request_size=4 [14:26:58]MH_SAM_APDU [14:26:58]CAPDU: 80 13 00 00 [14:26:58]Write to MH i2c: E2 08 00 1B 8B 80 13 00 00 00 00 00 00 22 [14:26:58]Write i2c OK [14:26:58]MH_I2C_Read... [14:26:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:26:58]Read from MH i2c: E2 [14:26:58]MH_I2C_Read... [14:26:58]Read from MH i2c: E2 62 00 [14:26:58]MH_I2C_Read... [14:26:58]Read from MH i2c: E2 62 00 1B 8B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 72 [14: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 98 76 00 00 0E 04 04 00 72 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 [14:26:58]wFMCommunicate OK [14:26:58]SAM_PROTO_GetFieldsCounters done [14:26:58]requested_item shift.num is exist - process it [14:26:58]requested_item shift.opened is exist - process it [14:26:58]req_shift_opened [14:26:58]FM_GetShiftState [14:26:58]SAM_PROTO_GetShiftState [14:26:58]wFMCommunicate request_size=4 [14:26:58]MH_SAM_APDU [14:26:58]CAPDU: 80 13 01 00 [14:26:58]Write to MH i2c: E2 08 00 1C 8B 80 13 01 00 00 00 00 00 24 [14:26:58]Write i2c OK [14:26:58]MH_I2C_Read... [14:26:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:26:58]Read from MH i2c: E2 [14:26:58]MH_I2C_Read... [14:26:58]Read from MH i2c: E2 0E 00 [14:26:58]MH_I2C_Read... [14:26:58]Read from MH i2c: E2 0E 00 1C 8B 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 0A [14:26:58]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [14:26:58]wFMCommunicate OK [14:26:58]SAM_PROTO_GetShiftState done [14:26:58]FM_GetShiftState done [14:26:58]req_shift_opened done [14:26:58]requested_item shift.open_date is exist - process it [14:26:58]req_shift_open_date [14:26:58]req_shift_open_date done [14:26:58]produce_requested_data done [14:26:58]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30360,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [14:26:58]process_action_free close_receipt [14:26:58]json_value_free [14:26:58]json_value_free done [14:26:58]process_json_proto returns [14:26:58]Send response to host [14:26:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30360,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [14:26:58]free response buf [14:26:58]execute_script done [14:26:58]execute_script returns [14:26:58]free content buf [14:26:58]Sock 7.Close socket [14:26:58]Sock 7.Thread stoped [14:27:02]OFD Sender: No OFD packet to send [14:27:07]OFD Sender: No OFD packet to send [14:27:12]OFD Sender: No OFD packet to send [14:27:17]OFD Sender: No OFD packet to send [14:27:22]OFD Sender: No OFD packet to send [14:27:27]OFD Sender: No OFD packet to send [14:27:32]OFD Sender: No OFD packet to send [14:27:37]OFD Sender: No OFD packet to send [14:27:42]OFD Sender: No OFD packet to send [14:27:47]OFD Sender: No OFD packet to send [14:27:52]OFD Sender: No OFD packet to send [14:27:57]OFD Sender: No OFD packet to send [14:28:02]OFD Sender: No OFD packet to send [14:28:07]OFD Sender: No OFD packet to send [14:28:12]OFD Sender: No OFD packet to send [14:28:17]OFD Sender: No OFD packet to send [14:28:22]OFD Sender: No OFD packet to send [14:28:27]OFD Sender: No OFD packet to send [14:28:32]OFD Sender: No OFD packet to send [14:28:37]OFD Sender: No OFD packet to send [14:28:42]OFD Sender: No OFD packet to send [14:28:47]OFD Sender: No OFD packet to send [14:28:52]OFD Sender: No OFD packet to send [14:28:57]OFD Sender: No OFD packet to send [14:29:02]OFD Sender: No OFD packet to send [14:29:07]OFD Sender: No OFD packet to send [14:29:12]OFD Sender: No OFD packet to send [14:29:17]OFD Sender: No OFD packet to send [14:29:22]OFD Sender: No OFD packet to send [14:29:27]OFD Sender: No OFD packet to send [14:29:32]OFD Sender: No OFD packet to send [14:29:37]OFD Sender: No OFD packet to send [14:29:42]OFD Sender: No OFD packet to send [14:29:47]OFD Sender: No OFD packet to send [14:29:52]OFD Sender: No OFD packet to send [14:29:57]OFD Sender: No OFD packet to send [14:30:02]OFD Sender: No OFD packet to send [14:30:07]OFD Sender: No OFD packet to send [14:30:12]OFD Sender: No OFD packet to send [14:30:17]OFD Sender: No OFD packet to send [14:30:22]OFD Sender: No OFD packet to send [14:30:27]OFD Sender: No OFD packet to send [14:30:32]OFD Sender: No OFD packet to send [14:30:37]OFD Sender: No OFD packet to send [14:30:42]OFD Sender: No OFD packet to send [14:30:47]OFD Sender: No OFD packet to send [14:30:52]OFD Sender: No OFD packet to send [14:30:57]OFD Sender: No OFD packet to send [14:31:02]OFD Sender: No OFD packet to send [14:31:07]OFD Sender: No OFD packet to send [14:31:12]OFD Sender: No OFD packet to send [14:31:17]OFD Sender: No OFD packet to send [14:31:22]OFD Sender: No OFD packet to send [14:31:27]OFD Sender: No OFD packet to send [14:31:32]OFD Sender: No OFD packet to send [14:31:37]OFD Sender: No OFD packet to send [14:31:42]OFD Sender: No OFD packet to send [14:31:47]OFD Sender: No OFD packet to send [14:31:52]OFD Sender: No OFD packet to send [14:31:57]OFD Sender: No OFD packet to send [14:32:02]OFD Sender: No OFD packet to send [14:32:07]OFD Sender: No OFD packet to send [14:32:12]OFD Sender: No OFD packet to send [14:32:17]OFD Sender: No OFD packet to send [14:32:22]OFD Sender: No OFD packet to send [14:32:27]OFD Sender: No OFD packet to send [14:32:32]OFD Sender: No OFD packet to send [14:32:37]OFD Sender: No OFD packet to send [14:32:42]OFD Sender: No OFD packet to send [14:32:47]OFD Sender: No OFD packet to send [14:32:52]OFD Sender: No OFD packet to send [14:32:57]OFD Sender: No OFD packet to send [14:33:01]accept exits with 9 [14:33:01]New connection [14:33:01]New thread 3067370852 created [14:33:01]Thread 3067514212 joined [14:33:01]Waiting for new connection... [14:33:01] Sock 9.Parse request [14:33:01]Sock 9.Check first char [14:33:01]Sock 9.First char is OK [14:33:01]request: POST /json_proto HTTP/1.0 [14:33:01]Method: POST [14:33:01]URL: /json_proto [14:33:01]Method is POST - this is cgi request [14:33:01]url: /json_proto [14:33:01]query_string will be loaded in cgi processing [14:33:01]execute_cgi json_proto POST (null) [14:33:01]execute_cgi path=json_proto method=POST [14:33:01]POST find Content-Length [14:33:01]Host: 172.17.51.3:8080 [14:33:01]Content-Length: 679 [14:33:01]Content-Type: application/json [14:33:01] [14:33:01]POST finish read [14:33:01]Found Content-Length = 679 [14:33:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342754", "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" : 12.740, "sum" : 852.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 852.00, "payments": [ { "type": 0, "sum" : 852.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:33:01]execute_script... [14:33:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342754", "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" : 12.740, "sum" : 852.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 852.00, "payments": [ { "type": 0, "sum" : 852.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:33:01]POST & json_proto [14:33:01]process_json_proto [14:33:01]json parsed OK: [14:33:01]protocol is kg_v1.0 [14:33:01]action value=close_receipt [14:33:01]process_action close_receipt [14:33:01]cmd_close_receipt [14:33:01]MH_GetDate [14:33:01]Write to MH i2c: F0 00 00 1D 8B 97 [14:33:01]Write i2c OK [14:33:01]MH_I2C_Read... [14:33:01]Read from MH i2c: F0 [14:33:01]MH_I2C_Read... [14:33:01]Read from MH i2c: F0 09 00 [14:33:01]MH_I2C_Read... [14:33:01]Read from MH i2c: F0 09 00 1D 8B 00 A6 14 15 67 04 C1 95 66 96 [14:33:01]GetLastDocTimeStamp 1729434424 [14:33:01]current date 1729434790 [14:33:01]FM_GetShiftState [14:33:01]SAM_PROTO_GetShiftState [14:33:01]wFMCommunicate request_size=4 [14:33:01]MH_SAM_APDU [14:33:01]CAPDU: 80 13 01 00 [14:33:01]Write to MH i2c: E2 08 00 1E 8B 80 13 01 00 00 00 00 00 26 [14:33:01]Write i2c OK [14:33:01]MH_I2C_Read... [14:33:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:33:01]Read from MH i2c: E2 [14:33:01]MH_I2C_Read... [14:33:01]Read from MH i2c: E2 0E 00 [14:33:01]MH_I2C_Read... [14:33:01]Read from MH i2c: E2 0E 00 1E 8B 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 0C [14:33:01]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [14:33:01]wFMCommunicate OK [14:33:01]SAM_PROTO_GetShiftState done [14:33:01]FM_GetShiftState done [14:33:01]opened in 1729384718 [14:33:01]opened+sec_in_day 1729471118 [14:33:01]quantity*price = 85230 [14:33:01]sum+1 = 85232 [14:33:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 852.00 Внесено: 1000.00 СДАЧА: 148.00 НСП 1% : 7.54 НДС 12% : 90.51 Наличными: 852.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 143 20.10.2024 14:33 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30361 ФПД: 154567114563223 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T143310&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30361&fm=154567114563223&tin=02508201610067®Number=0000000000186857&sum=85200 [14:33:02]StoreToDocumentArchive [14:33:02]shift 114 fd 30361 [14:33:02]save to /storage/0114/doc_00030361 [14:33:02]save last doc name /storage/0114/doc_00030361 to /storage/kkm_last_doc_name [14:33:02]save OK [14:33:02]Clear old archive folders... [14:33:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:33:02]tlvbuf is 00AA5670 [14:33:02]SAM_PROTO_ClearQueue [14:33:02]wFMCommunicate request_size=4 [14:33:02]MH_SAM_APDU [14:33:02]CAPDU: 80 09 00 00 [14:33:02]Write to MH i2c: E2 08 00 2B 8B 80 09 00 00 00 00 00 00 28 [14:33:02]Write i2c OK [14:33:02]MH_I2C_Read... [14:33:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:33:02]Read from MH i2c: E2 [14:33:02]MH_I2C_Read... [14:33:02]Read from MH i2c: E2 03 00 [14:33:02]MH_I2C_Read... [14:33:02]Read from MH i2c: E2 03 00 2B 8B 00 90 00 2A [14:33:02]RAPDU: 90 00 [14:33:02]wFMCommunicate OK [14:33:02]SAM_PROTO_ClearQueue done [14:33:02]KKMCreateOFDPacket [14:33:02]OFDProtocolAddRootSTLVToBuf [14:33:02]FM_MakeSignedData [14:33:02]FM_MakeSignedData [14:33:02]SAM_PROTO_SignData [14:33:02]wFMCommunicate request_size=4 [14:33:02]MH_SAM_APDU [14:33:02]CAPDU: 80 0D 01 02 [14:33:02]Write to MH i2c: E2 08 00 2C 8B 80 0D 01 02 00 00 00 00 30 [14:33:02]Write i2c OK [14:33:02]MH_I2C_Read... [14:33:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:33:02]Read from MH i2c: E2 [14:33:02]MH_I2C_Read... [14:33:02]Read from MH i2c: E2 03 00 [14:33:02]MH_I2C_Read... [14:33:02]Read from MH i2c: E2 03 00 2C 8B 00 90 00 2B [14:33:02]RAPDU: 90 00 [14:33:02]wFMCommunicate OK [14:33:02]wFMCommunicate request_size=255 [14:33:02]MH_SAM_APDU [14:33:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 C4 31 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 EF 4C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 4C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F2 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 23 00 00 00 00 07 04 06 00 D0 4C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 A6 14 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 8C [14:33:02]Write to MH i2c: E2 02 01 2D 8B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 C4 31 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 EF 4C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 4C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F2 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 23 00 00 00 00 07 04 06 00 D0 4C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 A6 14 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 8C 00 00 27 [14:33:02]Write i2c OK [14:33:02]MH_I2C_Read... [14:33:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:33:02]Read from MH i2c: E2 [14:33:02]MH_I2C_Read... [14:33:02]Read from MH i2c: E2 03 00 [14:33:02]MH_I2C_Read... [14:33:02]Read from MH i2c: E2 03 00 2D 8B 00 90 00 2C [14:33:02]RAPDU: 90 00 [14:33:02]wFMCommunicate OK [14:33:02]wFMCommunicate request_size=10 [14:33:02]MH_SAM_APDU [14:33:02]CAPDU: 80 0D 02 02 05 93 F5 F5 1E 97 [14:33:02]Write to MH i2c: E2 0D 00 2E 8B 80 0D 02 02 05 00 93 F5 F5 1E 97 00 00 6F [14:33:02]Write i2c OK [14:33:02]MH_I2C_Read... [14:33:02]OFD Sender: No OFD packet to send [14:33:02]Read from MH i2c: E2 [14:33:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:33:02]MH_I2C_Read... [14:33:02]Read from MH i2c: E2 03 00 [14:33:02]MH_I2C_Read... [14:33:02]Read from MH i2c: E2 03 00 2E 8B 00 90 00 2D [14:33:02]RAPDU: 90 00 [14:33:02]wFMCommunicate OK [14:33:02]wFMCommunicate request_size=4 [14:33:02]MH_SAM_APDU [14:33:02]CAPDU: 80 0D 03 02 [14:33:02]Write to MH i2c: E2 08 00 2F 8B 80 0D 03 02 00 00 00 00 35 [14:33:02]Write i2c OK [14:33:02]MH_I2C_Read... [14:33:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:33:02]Read from MH i2c: E2 [14:33:02]MH_I2C_Read... [14:33:02]Read from MH i2c: E2 0B 00 [14:33:02]MH_I2C_Read... [14:33:02]Read from MH i2c: E2 0B 00 2F 8B 00 E6 09 60 6B C6 82 3D 88 90 00 FD [14:33:02]RAPDU: E6 09 60 6B C6 82 3D 88 90 00 [14:33:02]wFMCommunicate OK [14:33:02]SAM_PROTO_SignData done [14:33:02]FM_MakeSignedData done [14:33:02]CreateOFDProtocolMessage [14:33:02]wFMCommunicate request_size=4 [14:33:02]MH_SAM_APDU [14:33:02]CAPDU: 80 11 00 00 [14:33:02]Write to MH i2c: E2 08 00 30 8B 80 11 00 00 00 00 00 00 35 [14:33:02]Write i2c OK [14:33:02]MH_I2C_Read... [14:33:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:33:02]Read from MH i2c: E2 [14:33:02]MH_I2C_Read... [14:33:02]Read from MH i2c: E2 17 00 [14:33:02]MH_I2C_Read... [14:33:02]Read from MH i2c: E2 17 00 30 8B 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:33:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [14:33:02]wFMCommunicate OK [14:33:02]CreateOFDProtocolMessage done [14:33:02]OFDSenderStorePacket 30361 [14:33:02]StoreOFDPacket docnum=30361 [14:33: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 E2 77 07 01 66 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 C4 31 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 EF 4C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 4C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F2 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 23 00 00 00 00 07 04 06 00 D0 4C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 A6 14 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 8C 93 F5 F5 1E 97 E6 09 60 6B C6 82 3D 88 [14:33:02]CheckFolder [14:33:02]dirname=/storage/ofd_packets [14:33:02]CheckFolder done [14:33:02]ProducePacketName [14:33:02]name=ofd_packets/00030361 [14:33:02]NVStorageSaveData ofd_packets/00030361 [14:33:02]File name is /storage/ofd_packets/00030361 [14:33:02]Write 301 bytes [14:33:02]NVStorageSaveData done [14:33:02]OFDSenderStorePacket done [14:33:02]KKMCreateOFDPacket done [14:33:02]NVStorageSaveData kkm_last_timestamp [14:33:02]File name is /storage/kkm_last_timestamp [14:33:02]Write 4 bytes [14:33:02]NVStorageSaveData done [14:33:02]ExternCall_PrintAddStr [14:33:02]wPrintStart [14:33:02]Write to MH i2c: 01 00 00 31 8B BC [14:33:02]Write i2c OK [14:33:02]MH_I2C_Read... [14:33:02]Read from MH i2c: 01 [14:33:02]MH_I2C_Read... [14:33:02]Read from MH i2c: 01 07 00 [14:33:02]MH_I2C_Read... [14:33:02]Read from MH i2c: 01 07 00 31 8B 00 00 00 00 00 FF 0F D1 [14:33:02]RasterBufferAndPrint [14:33:02]line Счет N : (1)342754 [14:33:02]line ИНН: 02508201610067 [14:33:02]line Контрольно-Кассовый Чек [14:33:02]line ПРОДАЖА [14:33:02]line ТРК (МРК, ГНК) : 43 [14:33:02]line Товар: 2710124130 [14:33:02]line Аи-92-К-2 [14:33:02]line 12.740 * 66.90 [14:33:02]line = 852.31 [14:33:02]line НДС 12% НСП 1% [14:33:02]line > о реализуемом товаре [14:33:02]line ОКРУГЛЕНИЕ: -0.31 [14:33:02]line ИТОГО: 852.00 [14:33:02]line Внесено: 1000.00 [14:33:02]line СДАЧА: 148.00 [14:33:02]line НСП 1% : 7.54 [14:33:02]line НДС 12% : 90.51 [14:33:02]line Наличными: 852.00 [14:33:02]line Безнал.: 0.00 [14:33:02]line Место: АЗС № 78 "Партнер Нефть" [14:33:02]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [14:33:02]line СНО: Общий режим [14:33:02]line Чек 143 20.10.2024 14:33 [14:33:03]line Смена: 114 ФФД: 1.0 [14:33:03]line ЗНМ: 0300000137 [14:33:03]line РНМ: 0000000000186857 [14:33:03]line Версия ККМ: v1.0 [14:33:03]line ФМ: 0000000002094219 [14:33:03]line ФД: 30361 [14:33:03]line ФПД: 154567114563223 [14:33:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T143310&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30361&fm=154567114563223&tin=02508201610067®Number=0000000000186857&sum=85200 [14:33:03]OFD Sender: Processing packet 30361 [packets to send 10, broken 9] [14:33:03]ProducePacketName [14:33:03]name=ofd_packets/00030361 [14:33:03]OFD Sender: To server: pG, [14:33:03]CommunicateWithHost lk.salyk.kg:30040 [14:33:03]ConnectInit lk.salyk.kg [14:33:03]written 0, free lines is 4095 [14:33:03]Connected sock=10 [14:33: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 0F 01 00 00 E2 77 07 01 66 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 C4 31 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 EF 4C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 4C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F2 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 23 00 00 00 00 07 04 06 00 D0 4C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 A6 14 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 8C 93 F5 F5 1E 97 E6 09 60 6B C6 82 3D 88 [14:33: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 80 A4 47 00 FA 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 99 76 00 00 F4 03 04 00 2A BF 14 67 B6 04 01 00 00 90 33 8F 85 27 82 76 AC [14:33:03]CommunicateWithHost err = 0 [14:33:03]CheckOFDResponse [14:33:03]1017 (14) - 77093643461234 [14:33:03]1041 (16) - 0000000002094219 [14:33:03]1040 (4) - 30361 [14:33:03]1012 (4) - 20.10.2024 08:28 [14:33:03]1206 (1) - 0 [14:33:03]OFD Sender: Remove packet 30361 [14:33:03]ProducePacketName [14:33:03]name=ofd_packets/00030361 [14:33:03]NVStorageDeleteData [14:33:03]Write to MH i2c: 01 00 00 5C 8B E7 [14:33:03]Write i2c OK [14:33:03]MH_I2C_Read... [14:33:03]Read from MH i2c: 01 [14:33:03]MH_I2C_Read... [14:33:03]Read from MH i2c: 01 07 00 [14:33:03]MH_I2C_Read... [14:33:03]Read from MH i2c: 01 07 00 5C 8B 00 00 00 00 00 E6 0C E0 [14:33:03]RasterBufferAndPrint [14:33:03]line [14:33:03]line [14:33:03]line [14:33:03]line [14:33:03]line [14:33:03]written 0, free lines is 3308 [14:33:03]MH_Cut [14:33:03]Write to MH i2c: D1 01 00 63 8B 01 C0 [14:33:03]Write i2c OK [14:33:03]MH_I2C_Read... [14:33:03]Read from MH i2c: D1 [14:33:03]MH_I2C_Read... [14:33:03]Read from MH i2c: D1 01 00 [14:33:03]MH_I2C_Read... [14:33:03]Read from MH i2c: D1 01 00 63 8B 00 BF [14:33:03]Write to MH i2c: 01 00 00 64 8B EF [14:33:03]Write i2c OK [14:33:03]MH_I2C_Read... [14:33:03]OFD Sender: No OFD packet to send [14:33:04]*** Cut start [14:33:04]*** Partial cut [14:33:04]*** CUTSNS_PIN = 1 [14:33:04]*** CUTSNS_PIN = 0 [14:33:04]*** Brake cut motor [14:33:04]Read from MH i2c: 01 [14:33:04]MH_I2C_Read... [14:33:04]*** Stop cut motor [14:33:04]*** Cut end [14:33:04]Read from MH i2c: 01 07 00 [14:33:04]MH_I2C_Read... [14:33:04]Read from MH i2c: 01 07 00 64 8B 00 00 00 00 00 FF 0F 04 [14:33:04]process_action close_receipt done [14:33:04]requested_data is exist [14:33:04]produce_requested_data [14:33:04]requested_item fm.sn is exist - process it [14:33:04]wFMCommunicate request_size=4 [14:33:04]MH_SAM_APDU [14:33:04]CAPDU: 80 11 00 00 [14:33:04]Write to MH i2c: E2 08 00 65 8B 80 11 00 00 00 00 00 00 6A [14:33:04]Write i2c OK [14:33:04]MH_I2C_Read... [14:33:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:33:04]Read from MH i2c: E2 [14:33:04]MH_I2C_Read... [14:33:04]Read from MH i2c: E2 17 00 [14:33:04]MH_I2C_Read... [14:33:04]Read from MH i2c: E2 17 00 65 8B 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:33:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [14:33:04]wFMCommunicate OK [14:33:04]requested_item fd.num is exist - process it [14:33:04]SAM_PROTO_GetFieldsCounters [14:33:04]wFMCommunicate request_size=4 [14:33:04]MH_SAM_APDU [14:33:04]CAPDU: 80 13 00 00 [14:33:04]Write to MH i2c: E2 08 00 66 8B 80 13 00 00 00 00 00 00 6D [14:33:04]Write i2c OK [14:33:04]MH_I2C_Read... [14:33:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:33:04]Read from MH i2c: E2 [14:33:04]MH_I2C_Read... [14:33:04]Read from MH i2c: E2 62 00 [14:33:04]MH_I2C_Read... [14:33:04]Read from MH i2c: E2 62 00 66 8B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 C1 [14:33: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 99 76 00 00 0E 04 04 00 72 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 [14:33:04]wFMCommunicate OK [14:33:04]SAM_PROTO_GetFieldsCounters done [14:33:04]requested_item shift.num is exist - process it [14:33:04]requested_item shift.opened is exist - process it [14:33:04]req_shift_opened [14:33:04]FM_GetShiftState [14:33:04]SAM_PROTO_GetShiftState [14:33:04]wFMCommunicate request_size=4 [14:33:04]MH_SAM_APDU [14:33:04]CAPDU: 80 13 01 00 [14:33:04]Write to MH i2c: E2 08 00 67 8B 80 13 01 00 00 00 00 00 6F [14:33:04]Write i2c OK [14:33:04]MH_I2C_Read... [14:33:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:33:05]Read from MH i2c: E2 [14:33:05]MH_I2C_Read... [14:33:05]Read from MH i2c: E2 0E 00 [14:33:05]MH_I2C_Read... [14:33:05]Read from MH i2c: E2 0E 00 67 8B 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 55 [14:33:05]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [14:33:05]wFMCommunicate OK [14:33:05]SAM_PROTO_GetShiftState done [14:33:05]FM_GetShiftState done [14:33:05]req_shift_opened done [14:33:05]requested_item shift.open_date is exist - process it [14:33:05]req_shift_open_date [14:33:05]req_shift_open_date done [14:33:05]produce_requested_data done [14:33:05]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30361,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [14:33:05]process_action_free close_receipt [14:33:05]json_value_free [14:33:05]json_value_free done [14:33:05]process_json_proto returns [14:33:05]Send response to host [14:33:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30361,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [14:33:05]free response buf [14:33:05]execute_script done [14:33:05]execute_script returns [14:33:05]free content buf [14:33:05]Sock 9.Close socket [14:33:05]Sock 9.Thread stoped [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]accept exits with 7 [14:33:43]New connection [14:33:43]New thread 3067514212 created [14:33:43]Thread 3067370852 joined [14:33:43]Waiting for new connection... [14:33:43] Sock 7.Parse request [14:33:43]Sock 7.Check first char [14:33:43]Sock 7.First char is OK [14:33:43]request: POST /json_proto HTTP/1.0 [14:33:43]Method: POST [14:33:43]URL: /json_proto [14:33:43]Method is POST - this is cgi request [14:33:43]url: /json_proto [14:33:43]query_string will be loaded in cgi processing [14:33:43]execute_cgi json_proto POST (null) [14:33:43]execute_cgi path=json_proto method=POST [14:33:43]POST find Content-Length [14:33:43]Host: 172.17.51.3:8080 [14:33:43]Content-Length: 677 [14:33:43]Content-Type: application/json [14:33:43] [14:33:43]POST finish read [14:33:43]Found Content-Length = 677 [14:33:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342756", "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:33:43]execute_script... [14: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)342756", "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:33:43]POST & json_proto [14:33:43]process_json_proto [14:33:43]json parsed OK: [14:33:43]protocol is kg_v1.0 [14:33:43]action value=close_receipt [14:33:43]process_action close_receipt [14:33:43]cmd_close_receipt [14:33:43]MH_GetDate [14:33:43]Write to MH i2c: F0 00 00 68 8B E2 [14:33:43]Write i2c OK [14:33:43]MH_I2C_Read... [14:33:43]Read from MH i2c: F0 [14:33:43]MH_I2C_Read... [14:33:43]Read from MH i2c: F0 09 00 [14:33:43]MH_I2C_Read... [14:33:43]Read from MH i2c: F0 09 00 68 8B 00 D0 14 15 67 04 C1 95 66 0B [14:33:43]GetLastDocTimeStamp 1729434790 [14:33:43]current date 1729434832 [14:33:43]FM_GetShiftState [14:33:43]SAM_PROTO_GetShiftState [14:33:43]wFMCommunicate request_size=4 [14:33:43]MH_SAM_APDU [14:33:43]CAPDU: 80 13 01 00 [14:33:43]Write to MH i2c: E2 08 00 69 8B 80 13 01 00 00 00 00 00 71 [14:33:43]Write i2c OK [14:33:43]MH_I2C_Read... [14:33:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:33:43]Read from MH i2c: E2 [14:33:43]MH_I2C_Read... [14:33:43]Read from MH i2c: E2 0E 00 [14:33:43]MH_I2C_Read... [14:33:43]Read from MH i2c: E2 0E 00 69 8B 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 57 [14:33:43]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [14:33:43]wFMCommunicate OK [14:33:43]SAM_PROTO_GetShiftState done [14:33:43]FM_GetShiftState done [14:33:43]opened in 1729384718 [14:33:43]opened+sec_in_day 1729471118 [14:33:43]quantity*price = 20003 [14:33:43]sum+1 = 20004 [14: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 СНО: Общий режим Чек 144 20.10.2024 14:33 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30362 ФПД: 172452696096517 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T143352&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30362&fm=172452696096517&tin=02508201610067®Number=0000000000186857&sum=20000 [14:33:44]StoreToDocumentArchive [14:33:44]shift 114 fd 30362 [14:33:44]save to /storage/0114/doc_00030362 [14:33:44]save last doc name /storage/0114/doc_00030362 to /storage/kkm_last_doc_name [14:33:44]save OK [14:33:44]Clear old archive folders... [14:33:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:33:44]tlvbuf is 00AC7FF0 [14:33:44]SAM_PROTO_ClearQueue [14:33:44]wFMCommunicate request_size=4 [14:33:44]MH_SAM_APDU [14:33:44]CAPDU: 80 09 00 00 [14:33:44]Write to MH i2c: E2 08 00 76 8B 80 09 00 00 00 00 00 00 73 [14:33:44]Write i2c OK [14:33:44]MH_I2C_Read... [14:33:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:33:44]Read from MH i2c: E2 [14:33:44]MH_I2C_Read... [14:33:44]Read from MH i2c: E2 03 00 [14:33:44]MH_I2C_Read... [14:33:44]Read from MH i2c: E2 03 00 76 8B 00 90 00 75 [14:33:44]RAPDU: 90 00 [14:33:44]wFMCommunicate OK [14:33:44]SAM_PROTO_ClearQueue done [14:33:44]KKMCreateOFDPacket [14:33:44]OFDProtocolAddRootSTLVToBuf [14:33:44]FM_MakeSignedData [14:33:44]FM_MakeSignedData [14:33:44]SAM_PROTO_SignData [14:33:44]wFMCommunicate request_size=4 [14:33:44]MH_SAM_APDU [14:33:44]CAPDU: 80 0D 01 02 [14:33:44]Write to MH i2c: E2 08 00 77 8B 80 0D 01 02 00 00 00 00 7B [14:33:44]Write i2c OK [14:33:44]MH_I2C_Read... [14:33:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:33:44]Read from MH i2c: E2 [14:33:44]MH_I2C_Read... [14:33:44]Read from MH i2c: E2 03 00 [14:33:44]MH_I2C_Read... [14:33:44]Read from MH i2c: E2 03 00 77 8B 00 90 00 76 [14:33:44]RAPDU: 90 00 [14:33:44]wFMCommunicate OK [14:33:44]wFMCommunicate request_size=255 [14:33:44]MH_SAM_APDU [14:33:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 90 00 00 00 F4 03 04 00 D0 14 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 9C [14:33:44]Write to MH i2c: E2 02 01 78 8B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 90 00 00 00 F4 03 04 00 D0 14 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 9C 00 00 DC [14:33:44]Write i2c OK [14:33:44]MH_I2C_Read... [14:33:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:33:44]Read from MH i2c: E2 [14:33:44]MH_I2C_Read... [14:33:44]Read from MH i2c: E2 03 00 [14:33:44]MH_I2C_Read... [14:33:44]Read from MH i2c: E2 03 00 78 8B 00 90 00 77 [14:33:44]RAPDU: 90 00 [14:33:44]wFMCommunicate OK [14:33:44]wFMCommunicate request_size=10 [14:33:44]MH_SAM_APDU [14:33:44]CAPDU: 80 0D 02 02 05 D8 45 B0 FF 05 [14:33:44]Write to MH i2c: E2 0D 00 79 8B 80 0D 02 02 05 00 D8 45 B0 FF 05 00 00 59 [14:33:44]Write i2c OK [14:33:44]MH_I2C_Read... [14:33:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:33:44]Read from MH i2c: E2 [14:33:44]MH_I2C_Read... [14:33:44]Read from MH i2c: E2 03 00 [14:33:44]MH_I2C_Read... [14:33:44]Read from MH i2c: E2 03 00 79 8B 00 90 00 78 [14:33:44]RAPDU: 90 00 [14:33:44]wFMCommunicate OK [14:33:44]wFMCommunicate request_size=4 [14:33:44]MH_SAM_APDU [14:33:44]CAPDU: 80 0D 03 02 [14:33:44]Write to MH i2c: E2 08 00 7A 8B 80 0D 03 02 00 00 00 00 80 [14:33:44]Write i2c OK [14:33:44]MH_I2C_Read... [14:33:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:33:44]Read from MH i2c: E2 [14:33:44]MH_I2C_Read... [14:33:44]Read from MH i2c: E2 0B 00 [14:33:44]MH_I2C_Read... [14:33:44]Read from MH i2c: E2 0B 00 7A 8B 00 5A A1 7B 66 B0 1A 1B F7 90 00 39 [14:33:44]RAPDU: 5A A1 7B 66 B0 1A 1B F7 90 00 [14:33:44]wFMCommunicate OK [14:33:44]SAM_PROTO_SignData done [14:33:44]FM_MakeSignedData done [14:33:44]CreateOFDProtocolMessage [14:33:44]wFMCommunicate request_size=4 [14:33:44]MH_SAM_APDU [14:33:44]CAPDU: 80 11 00 00 [14:33:44]Write to MH i2c: E2 08 00 7B 8B 80 11 00 00 00 00 00 00 80 [14:33:44]Write i2c OK [14:33:44]MH_I2C_Read... [14:33:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:33:44]Read from MH i2c: E2 [14:33:44]MH_I2C_Read... [14:33:44]Read from MH i2c: E2 17 00 [14:33:44]MH_I2C_Read... [14:33:44]Read from MH i2c: E2 17 00 7B 8B 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:33:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [14:33:44]wFMCommunicate OK [14:33:44]CreateOFDProtocolMessage done [14:33:44]OFDSenderStorePacket 30362 [14:33:44]StoreOFDPacket docnum=30362 [14:33: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 34 FB 07 01 7B AD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 90 00 00 00 F4 03 04 00 D0 14 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 9C D8 45 B0 FF 05 5A A1 7B 66 B0 1A 1B F7 [14:33:44]CheckFolder [14:33:44]dirname=/storage/ofd_packets [14:33:44]CheckFolder done [14:33:44]ProducePacketName [14:33:44]name=ofd_packets/00030362 [14:33:44]NVStorageSaveData ofd_packets/00030362 [14:33:44]File name is /storage/ofd_packets/00030362 [14:33:44]Write 301 bytes [14:33:44]NVStorageSaveData done [14:33:44]OFDSenderStorePacket done [14:33:44]KKMCreateOFDPacket done [14:33:44]NVStorageSaveData kkm_last_timestamp [14:33:44]File name is /storage/kkm_last_timestamp [14:33:44]Write 4 bytes [14:33:44]NVStorageSaveData done [14:33:44]ExternCall_PrintAddStr [14:33:44]wPrintStart [14:33:44]Write to MH i2c: 01 00 00 7C 8B 07 [14:33:44]Write i2c OK [14:33:44]MH_I2C_Read... [14:33:44]Read from MH i2c: 01 [14:33:44]MH_I2C_Read... [14:33:44]Read from MH i2c: 01 07 00 [14:33:44]MH_I2C_Read... [14:33:44]Read from MH i2c: 01 07 00 7C 8B 00 00 00 00 00 FF 0F 1C [14:33:44]RasterBufferAndPrint [14:33:44]line Счет N : (1)342756 [14:33:44]line ИНН: 02508201610067 [14:33:44]line Контрольно-Кассовый Чек [14:33:44]line ПРОДАЖА [14:33:44]line ТРК (МРК, ГНК) : 33 [14:33:44]line Товар: 2710124130 [14:33:44]line Аи-92-К-2 [14:33:44]line 2.990 * 66.90 [14:33:44]line = 200.03 [14:33:44]line НДС 12% НСП 1% [14:33:44]line > о реализуемом товаре [14:33:44]line ОКРУГЛЕНИЕ: -0.03 [14:33:44]line ИТОГО: 200.00 [14:33:44]line Внесено: 200.00 [14:33:44]line СДАЧА: 0.00 [14:33:44]line НСП 1% : 1.77 [14:33:44]line НДС 12% : 21.24 [14:33:44]line Наличными: 200.00 [14:33:44]line Безнал.: 0.00 [14:33:44]line Место: АЗС № 78 "Партнер Нефть" [14:33:44]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [14:33:44]line СНО: Общий режим [14:33:44]line Чек 144 20.10.2024 14:33 [14:33:44]line Смена: 114 ФФД: 1.0 [14:33:44]line ЗНМ: 0300000137 [14:33:44]line РНМ: 0000000000186857 [14:33:44]line Версия ККМ: v1.0 [14:33:44]line ФМ: 0000000002094219 [14:33:44]line ФД: 30362 [14:33:44]line ФПД: 172452696096517 [14:33:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T143352&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30362&fm=172452696096517&tin=02508201610067®Number=0000000000186857&sum=20000 [14:33:45]OFD Sender: Processing packet 30362 [packets to send 10, broken 9] [14:33:45]ProducePacketName [14:33:45]name=ofd_packets/00030362 [14:33:45]OFD Sender: To server: pG, [14:33:45]CommunicateWithHost lk.salyk.kg:30040 [14:33:45]ConnectInit lk.salyk.kg [14:33:45]written 0, free lines is 4095 [14:33:45]Connected sock=10 [14:33: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 34 FB 07 01 7B AD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 90 00 00 00 F4 03 04 00 D0 14 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 9C D8 45 B0 FF 05 5A A1 7B 66 B0 1A 1B F7 [14:33: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 A2 F2 47 00 EB 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 9A 76 00 00 F4 03 04 00 54 BF 14 67 B6 04 01 00 00 BC E2 8B F1 A1 21 E9 90 [14:33:45]CommunicateWithHost err = 0 [14:33:45]CheckOFDResponse [14:33:45]1017 (14) - 77093643461234 [14:33:45]1041 (16) - 0000000002094219 [14:33:45]1040 (4) - 30362 [14:33:45]1012 (4) - 20.10.2024 08:29 [14:33:45]1206 (1) - 0 [14:33:45]OFD Sender: Remove packet 30362 [14:33:45]ProducePacketName [14:33:45]name=ofd_packets/00030362 [14:33:45]NVStorageDeleteData [14:33:45]Write to MH i2c: 01 00 00 A7 8B 32 [14:33:45]Write i2c OK [14:33:45]MH_I2C_Read... [14:33:45]Read from MH i2c: 01 [14:33:45]MH_I2C_Read... [14:33:45]Read from MH i2c: 01 07 00 [14:33:45]MH_I2C_Read... [14:33:45]Read from MH i2c: 01 07 00 A7 8B 00 00 00 00 00 F2 0C 37 [14:33:45]RasterBufferAndPrint [14:33:45]line [14:33:45]line [14:33:45]line [14:33:45]line [14:33:45]line [14:33:45]written 0, free lines is 3320 [14:33:45]MH_Cut [14:33:45]Write to MH i2c: D1 01 00 AE 8B 01 0B [14:33:45]Write i2c OK [14:33:45]MH_I2C_Read... [14:33:45]Read from MH i2c: D1 [14:33:45]MH_I2C_Read... [14:33:45]Read from MH i2c: D1 01 00 [14:33:45]MH_I2C_Read... [14:33:45]Read from MH i2c: D1 01 00 AE 8B 00 0A [14:33:45]Write to MH i2c: 01 00 00 AF 8B 3A [14:33:45]Write i2c OK [14:33:45]MH_I2C_Read... [14:33:45]OFD Sender: No OFD packet to send [14:33:46]*** Cut start [14:33:46]*** Partial cut [14:33:46]*** CUTSNS_PIN = 1 [14:33:46]*** CUTSNS_PIN = 0 [14:33:46]*** Brake cut motor [14:33:46]Read from MH i2c: 01 [14:33:46]MH_I2C_Read... [14:33:46]*** Stop cut motor [14:33:46]*** Cut end [14:33:46]Read from MH i2c: 01 07 00 [14:33:46]MH_I2C_Read... [14:33:46]Read from MH i2c: 01 07 00 AF 8B 00 00 00 00 00 FF 0F 4F [14:33:46]process_action close_receipt done [14:33:46]requested_data is exist [14:33:46]produce_requested_data [14:33:46]requested_item fm.sn is exist - process it [14:33:46]wFMCommunicate request_size=4 [14:33:46]MH_SAM_APDU [14:33:46]CAPDU: 80 11 00 00 [14:33:46]Write to MH i2c: E2 08 00 B0 8B 80 11 00 00 00 00 00 00 B5 [14:33:46]Write i2c OK [14:33:46]MH_I2C_Read... [14:33:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:33:46]Read from MH i2c: E2 [14:33:46]MH_I2C_Read... [14:33:46]Read from MH i2c: E2 17 00 [14:33:46]MH_I2C_Read... [14:33:46]Read from MH i2c: E2 17 00 B0 8B 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: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 [14:33:46]wFMCommunicate OK [14:33:46]requested_item fd.num is exist - process it [14:33:46]SAM_PROTO_GetFieldsCounters [14:33:46]wFMCommunicate request_size=4 [14:33:46]MH_SAM_APDU [14:33:46]CAPDU: 80 13 00 00 [14:33:46]Write to MH i2c: E2 08 00 B1 8B 80 13 00 00 00 00 00 00 B8 [14:33:46]Write i2c OK [14:33:46]MH_I2C_Read... [14:33:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:33:46]Read from MH i2c: E2 [14:33:46]MH_I2C_Read... [14:33:46]Read from MH i2c: E2 62 00 [14:33:46]MH_I2C_Read... [14:33:46]Read from MH i2c: E2 62 00 B1 8B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 10 [14: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 9A 76 00 00 0E 04 04 00 72 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 [14:33:47]wFMCommunicate OK [14:33:47]SAM_PROTO_GetFieldsCounters done [14:33:47]requested_item shift.num is exist - process it [14:33:47]requested_item shift.opened is exist - process it [14:33:47]req_shift_opened [14:33:47]FM_GetShiftState [14:33:47]SAM_PROTO_GetShiftState [14:33:47]wFMCommunicate request_size=4 [14:33:47]MH_SAM_APDU [14:33:47]CAPDU: 80 13 01 00 [14:33:47]Write to MH i2c: E2 08 00 B2 8B 80 13 01 00 00 00 00 00 BA [14:33:47]Write i2c OK [14:33:47]MH_I2C_Read... [14:33:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:33:47]Read from MH i2c: E2 [14:33:47]MH_I2C_Read... [14:33:47]Read from MH i2c: E2 0E 00 [14:33:47]MH_I2C_Read... [14:33:47]Read from MH i2c: E2 0E 00 B2 8B 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 A0 [14:33:47]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [14:33:47]wFMCommunicate OK [14:33:47]SAM_PROTO_GetShiftState done [14:33:47]FM_GetShiftState done [14:33:47]req_shift_opened done [14:33:47]requested_item shift.open_date is exist - process it [14:33:47]req_shift_open_date [14:33:47]req_shift_open_date done [14:33:47]produce_requested_data done [14:33:47]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30362,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [14:33:47]process_action_free close_receipt [14:33:47]json_value_free [14:33:47]json_value_free done [14:33:47]process_json_proto returns [14:33:47]Send response to host [14:33:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30362,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [14:33:47]free response buf [14:33:47]execute_script done [14:33:47]execute_script returns [14:33:47]free content buf [14:33:47]Sock 7.Close socket [14:33:47]Sock 7.Thread stoped [14:33:50]OFD Sender: No OFD packet to send [14:33:54]accept exits with 9 [14:33:54]New connection [14:33:54]New thread 3067370852 created [14:33:54]Thread 3067514212 joined [14:33:54]Waiting for new connection... [14:33:54] Sock 9.Parse request [14:33:54]Sock 9.Check first char [14:33:54]Sock 9.First char is OK [14:33:54]request: POST /json_proto HTTP/1.0 [14:33:54]Method: POST [14:33:54]URL: /json_proto [14:33:54]Method is POST - this is cgi request [14:33:54]url: /json_proto [14:33:54]query_string will be loaded in cgi processing [14:33:54]execute_cgi json_proto POST (null) [14:33:54]execute_cgi path=json_proto method=POST [14:33:54]POST find Content-Length [14:33:54]Host: 172.17.51.3:8080 [14:33:54]Content-Length: 688 [14:33:54]Content-Type: application/json [14:33:54] [14:33:54]POST finish read [14:33:54]Found Content-Length = 688 [14:33:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342755", "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" ] } } [14:33:54]execute_script... [14:33: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)342755", "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" ] } } [14:33:54]POST & json_proto [14:33:54]process_json_proto [14:33:54]json parsed OK: [14:33:54]protocol is kg_v1.0 [14:33:54]action value=close_receipt [14:33:54]process_action close_receipt [14:33:54]cmd_close_receipt [14:33:54]MH_GetDate [14:33:54]Write to MH i2c: F0 00 00 B3 8B 2D [14:33:54]Write i2c OK [14:33:54]MH_I2C_Read... [14:33:54]Read from MH i2c: F0 [14:33:54]MH_I2C_Read... [14:33:54]Read from MH i2c: F0 09 00 [14:33:54]MH_I2C_Read... [14:33:54]Read from MH i2c: F0 09 00 B3 8B 00 DC 14 15 67 04 C1 95 66 62 [14:33:54]GetLastDocTimeStamp 1729434832 [14:33:54]current date 1729434844 [14:33:54]FM_GetShiftState [14:33:54]SAM_PROTO_GetShiftState [14:33:54]wFMCommunicate request_size=4 [14:33:55]MH_SAM_APDU [14:33:55]CAPDU: 80 13 01 00 [14:33:55]Write to MH i2c: E2 08 00 B4 8B 80 13 01 00 00 00 00 00 BC [14:33:55]Write i2c OK [14:33:55]MH_I2C_Read... [14:33:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:33:55]Read from MH i2c: E2 [14:33:55]MH_I2C_Read... [14:33:55]Read from MH i2c: E2 0E 00 [14:33:55]MH_I2C_Read... [14:33:55]Read from MH i2c: E2 0E 00 B4 8B 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 A2 [14:33:55]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [14:33:55]wFMCommunicate OK [14:33:55]SAM_PROTO_GetShiftState done [14:33:55]FM_GetShiftState done [14:33:55]opened in 1729384718 [14:33:55]opened+sec_in_day 1729471118 [14:33:55]quantity*price = 150076 [14:33:55]sum+1 = 150078 [14:33:55]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 СНО: Общий режим Чек 145 20.10.2024 14:34 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30363 ФПД: 243998194059618 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T143404&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30363&fm=243998194059618&tin=02508201610067®Number=0000000000186857&sum=150000 [14:33:56]StoreToDocumentArchive [14:33:56]shift 114 fd 30363 [14:33:56]save to /storage/0114/doc_00030363 [14:33:56]save last doc name /storage/0114/doc_00030363 to /storage/kkm_last_doc_name [14:33:56]save OK [14:33:56]Clear old archive folders... [14:33:56]ProcessDocumentItem done err = 0, tmpTLVsize=257 [14:33:56]tlvbuf is 00CDFCB0 [14:33:56]SAM_PROTO_ClearQueue [14:33:56]wFMCommunicate request_size=4 [14:33:56]MH_SAM_APDU [14:33:56]CAPDU: 80 09 00 00 [14:33:56]Write to MH i2c: E2 08 00 C1 8B 80 09 00 00 00 00 00 00 BE [14:33:56]Write i2c OK [14:33:56]MH_I2C_Read... [14:33:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:33:56]Read from MH i2c: E2 [14:33:56]MH_I2C_Read... [14:33:56]Read from MH i2c: E2 03 00 [14:33:56]MH_I2C_Read... [14:33:56]Read from MH i2c: E2 03 00 C1 8B 00 90 00 C0 [14:33:56]RAPDU: 90 00 [14:33:56]wFMCommunicate OK [14:33:56]SAM_PROTO_ClearQueue done [14:33:56]KKMCreateOFDPacket [14:33:56]OFDProtocolAddRootSTLVToBuf [14:33:56]FM_MakeSignedData [14:33:56]FM_MakeSignedData [14:33:56]SAM_PROTO_SignData [14:33:56]wFMCommunicate request_size=4 [14:33:56]MH_SAM_APDU [14:33:56]CAPDU: 80 0D 01 02 [14:33:56]Write to MH i2c: E2 08 00 C2 8B 80 0D 01 02 00 00 00 00 C6 [14:33:56]Write i2c OK [14:33:56]MH_I2C_Read... [14:33:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:33:56]Read from MH i2c: E2 [14:33:56]MH_I2C_Read... [14:33:56]Read from MH i2c: E2 03 00 [14:33:56]MH_I2C_Read... [14:33:56]Read from MH i2c: E2 03 00 C2 8B 00 90 00 C1 [14:33:56]RAPDU: 90 00 [14:33:56]wFMCommunicate OK [14:33:56]wFMCommunicate request_size=255 [14:33:56]MH_SAM_APDU [14:33:56]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 91 00 00 00 F4 03 04 00 DC 14 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 [14:33:56]Write to MH i2c: E2 02 01 C3 8B 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 91 00 00 00 F4 03 04 00 DC 14 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 00 F2 [14:33:56]Write i2c OK [14:33:56]MH_I2C_Read... [14:33:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:33:56]Read from MH i2c: E2 [14:33:56]MH_I2C_Read... [14:33:56]Read from MH i2c: E2 03 00 [14:33:56]MH_I2C_Read... [14:33:56]Read from MH i2c: E2 03 00 C3 8B 00 90 00 C2 [14:33:56]RAPDU: 90 00 [14:33:56]wFMCommunicate OK [14:33:56]wFMCommunicate request_size=16 [14:33:56]MH_SAM_APDU [14:33:56]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 DD EA 41 AE C9 62 [14:33:56]Write to MH i2c: E2 13 00 C4 8B 80 0D 02 02 0B 00 00 35 04 06 00 DD EA 41 AE C9 62 00 00 FF [14:33:56]Write i2c OK [14:33:56]MH_I2C_Read... [14:33:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:33:56]Read from MH i2c: E2 [14:33:56]MH_I2C_Read... [14:33:56]Read from MH i2c: E2 03 00 [14:33:56]MH_I2C_Read... [14:33:56]Read from MH i2c: E2 03 00 C4 8B 00 90 00 C3 [14:33:56]RAPDU: 90 00 [14:33:56]wFMCommunicate OK [14:33:56]wFMCommunicate request_size=4 [14:33:56]MH_SAM_APDU [14:33:56]CAPDU: 80 0D 03 02 [14:33:56]Write to MH i2c: E2 08 00 C5 8B 80 0D 03 02 00 00 00 00 CB [14:33:56]Write i2c OK [14:33:56]MH_I2C_Read... [14:33:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:33:56]Read from MH i2c: E2 [14:33:56]MH_I2C_Read... [14:33:56]Read from MH i2c: E2 0B 00 [14:33:56]MH_I2C_Read... [14:33:56]Read from MH i2c: E2 0B 00 C5 8B 00 69 D2 A7 34 E6 61 2C A6 90 00 FB [14:33:56]RAPDU: 69 D2 A7 34 E6 61 2C A6 90 00 [14:33:56]wFMCommunicate OK [14:33:56]SAM_PROTO_SignData done [14:33:56]FM_MakeSignedData done [14:33:56]CreateOFDProtocolMessage [14:33:56]wFMCommunicate request_size=4 [14:33:56]MH_SAM_APDU [14:33:56]CAPDU: 80 11 00 00 [14:33:56]Write to MH i2c: E2 08 00 C6 8B 80 11 00 00 00 00 00 00 CB [14:33:56]Write i2c OK [14:33:56]MH_I2C_Read... [14:33:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:33:56]Read from MH i2c: E2 [14:33:56]MH_I2C_Read... [14:33:56]Read from MH i2c: E2 17 00 [14:33:56]MH_I2C_Read... [14:33:56]Read from MH i2c: E2 17 00 C6 8B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 19 [14:33: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:33:56]wFMCommunicate OK [14:33:56]CreateOFDProtocolMessage done [14:33:56]OFDSenderStorePacket 30363 [14:33:56]StoreOFDPacket docnum=30363 [14:33: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 15 01 00 00 77 D0 0D 01 9F 3E 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 91 00 00 00 F4 03 04 00 DC 14 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 DD EA 41 AE C9 62 69 D2 A7 34 E6 61 2C A6 [14:33:56]CheckFolder [14:33:56]dirname=/storage/ofd_packets [14:33:56]CheckFolder done [14:33:56]ProducePacketName [14:33:56]name=ofd_packets/00030363 [14:33:56]NVStorageSaveData ofd_packets/00030363 [14:33:56]File name is /storage/ofd_packets/00030363 [14:33:56]Write 307 bytes [14:33:56]NVStorageSaveData done [14:33:56]OFDSenderStorePacket done [14:33:56]KKMCreateOFDPacket done [14:33:56]NVStorageSaveData kkm_last_timestamp [14:33:56]File name is /storage/kkm_last_timestamp [14:33:56]Write 4 bytes [14:33:56]NVStorageSaveData done [14:33:56]ExternCall_PrintAddStr [14:33:56]wPrintStart [14:33:56]Write to MH i2c: 01 00 00 C7 8B 52 [14:33:56]Write i2c OK [14:33:56]MH_I2C_Read... [14:33:56]Read from MH i2c: 01 [14:33:56]MH_I2C_Read... [14:33:56]Read from MH i2c: 01 07 00 [14:33:56]MH_I2C_Read... [14:33:56]Read from MH i2c: 01 07 00 C7 8B 00 00 00 00 00 FF 0F 67 [14:33:56]RasterBufferAndPrint [14:33:56]line Счет N : (1)342755 [14:33:56]line ИНН: 02508201610067 [14:33:56]line Контрольно-Кассовый Чек [14:33:56]line ПРОДАЖА [14:33:56]line ТРК (МРК, ГНК) : 51 [14:33:56]line Товар: 2710194210 [14:33:56]line D-ENERGY Дт-К-2 [14:33:56]line 19.440 * 77.20 [14:33:56]line = 1500.77 [14:33:56]line НДС 12% НСП 1% [14:33:56]line > о реализуемом товаре [14:33:56]line ОКРУГЛЕНИЕ: -0.77 [14:33:56]line ИТОГО: 1500.00 [14:33:56]line Внесено: 1500.00 [14:33:56]line СДАЧА: 0.00 [14:33:56]line НСП 1% : 13.28 [14:33:56]line НДС 12% : 159.37 [14:33:56]line Наличными: 1500.00 [14:33:56]line Безнал.: 0.00 [14:33:56]line Место: АЗС № 78 "Партнер Нефть" [14:33:56]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [14:33:56]line СНО: Общий режим [14:33:56]line Чек 145 20.10.2024 14:34 [14:33:56]line Смена: 114 ФФД: 1.0 [14:33:56]line ЗНМ: 0300000137 [14:33:56]line РНМ: 0000000000186857 [14:33:56]line Версия ККМ: v1.0 [14:33:56]line ФМ: 0000000002094219 [14:33:56]line ФД: 30363 [14:33:56]line ФПД: 243998194059618 [14:33:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T143404&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30363&fm=243998194059618&tin=02508201610067®Number=0000000000186857&sum=150000 [14:33:57]OFD Sender: Processing packet 30363 [packets to send 10, broken 9] [14:33:57]ProducePacketName [14:33:57]name=ofd_packets/00030363 [14:33:57]OFD Sender: To server: pG, [14:33:57]CommunicateWithHost lk.salyk.kg:30040 [14:33:57]ConnectInit lk.salyk.kg [14:33:57]written 0, free lines is 4095 [14:33:57]Connected sock=10 [14:33: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 15 01 00 00 77 D0 0D 01 9F 3E 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 91 00 00 00 F4 03 04 00 DC 14 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 DD EA 41 AE C9 62 69 D2 A7 34 E6 61 2C A6 [14:33: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 64 7A 47 00 C9 05 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 9B 76 00 00 F4 03 04 00 60 BF 14 67 B6 04 01 00 00 32 76 59 FC 1A D9 2A 40 [14:33:57]CommunicateWithHost err = 0 [14:33:57]CheckOFDResponse [14:33:57]1017 (14) - 77093643461234 [14:33:57]1041 (16) - 0000000002094219 [14:33:57]1040 (4) - 30363 [14:33:57]1012 (4) - 20.10.2024 08:29 [14:33:57]1206 (1) - 0 [14:33:57]OFD Sender: Remove packet 30363 [14:33:57]ProducePacketName [14:33:57]name=ofd_packets/00030363 [14:33:57]NVStorageDeleteData [14:33:57]Write to MH i2c: 01 00 00 F2 8B 7D [14:33:57]Write i2c OK [14:33:57]MH_I2C_Read... [14:33:57]Read from MH i2c: 01 [14:33:57]MH_I2C_Read... [14:33:57]Read from MH i2c: 01 07 00 [14:33:57]MH_I2C_Read... [14:33:57]Read from MH i2c: 01 07 00 F2 8B 00 00 00 00 00 F2 0C 82 [14:33:57]RasterBufferAndPrint [14:33:57]line [14:33:57]line [14:33:57]line [14:33:57]line [14:33:57]line [14:33:57]written 0, free lines is 3323 [14:33:57]MH_Cut [14:33:57]Write to MH i2c: D1 01 00 F9 8B 01 56 [14:33:57]Write i2c OK [14:33:57]MH_I2C_Read... [14:33:57]Read from MH i2c: D1 [14:33:57]MH_I2C_Read... [14:33:57]Read from MH i2c: D1 01 00 [14:33:57]MH_I2C_Read... [14:33:57]Read from MH i2c: D1 01 00 F9 8B 00 55 [14:33:57]Write to MH i2c: 01 00 00 FA 8B 85 [14:33:57]Write i2c OK [14:33:57]MH_I2C_Read... [14:33:57]OFD Sender: No OFD packet to send [14:33:58]*** Cut start [14:33:58]*** Partial cut [14:33:58]*** CUTSNS_PIN = 1 [14:33:58]*** CUTSNS_PIN = 0 [14:33:58]*** Brake cut motor [14:33:58]Read from MH i2c: 01 [14:33:58]MH_I2C_Read... [14:33:58]*** Stop cut motor [14:33:58]*** Cut end [14:33:58]Read from MH i2c: 01 07 00 [14:33:58]MH_I2C_Read... [14:33:58]Read from MH i2c: 01 07 00 FA 8B 00 00 00 00 00 FF 0F 9A [14:33:58]process_action close_receipt done [14:33:58]requested_data is exist [14:33:58]produce_requested_data [14:33:58]requested_item fm.sn is exist - process it [14:33:58]wFMCommunicate request_size=4 [14:33:58]MH_SAM_APDU [14:33:58]CAPDU: 80 11 00 00 [14:33:58]Write to MH i2c: E2 08 00 FB 8B 80 11 00 00 00 00 00 00 00 [14:33:58]Write i2c OK [14:33:58]MH_I2C_Read... [14:33:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:33:58]Read from MH i2c: E2 [14:33:58]MH_I2C_Read... [14:33:58]Read from MH i2c: E2 17 00 [14:33:58]MH_I2C_Read... [14:33:58]Read from MH i2c: E2 17 00 FB 8B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 4E [14:33: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:33:58]wFMCommunicate OK [14:33:58]requested_item fd.num is exist - process it [14:33:58]SAM_PROTO_GetFieldsCounters [14:33:58]wFMCommunicate request_size=4 [14:33:58]MH_SAM_APDU [14:33:58]CAPDU: 80 13 00 00 [14:33:58]Write to MH i2c: E2 08 00 FC 8B 80 13 00 00 00 00 00 00 03 [14:33:58]Write i2c OK [14:33:58]MH_I2C_Read... [14:33:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:33:58]Read from MH i2c: E2 [14:33:58]MH_I2C_Read... [14:33:58]Read from MH i2c: E2 62 00 [14:33:58]MH_I2C_Read... [14:33:58]Read from MH i2c: E2 62 00 FC 8B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 5F [14:33: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 9B 76 00 00 0E 04 04 00 72 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 [14:33:58]wFMCommunicate OK [14:33:58]SAM_PROTO_GetFieldsCounters done [14:33:58]requested_item shift.num is exist - process it [14:33:58]requested_item shift.opened is exist - process it [14:33:58]req_shift_opened [14:33:58]FM_GetShiftState [14:33:58]SAM_PROTO_GetShiftState [14:33:58]wFMCommunicate request_size=4 [14:33:58]MH_SAM_APDU [14:33:58]CAPDU: 80 13 01 00 [14:33:58]Write to MH i2c: E2 08 00 FD 8B 80 13 01 00 00 00 00 00 05 [14:33:58]Write i2c OK [14:33:58]MH_I2C_Read... [14:33:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:33:59]Read from MH i2c: E2 [14:33:59]MH_I2C_Read... [14:33:59]Read from MH i2c: E2 0E 00 [14:33:59]MH_I2C_Read... [14:33:59]Read from MH i2c: E2 0E 00 FD 8B 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 EB [14:33:59]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [14:33:59]wFMCommunicate OK [14:33:59]SAM_PROTO_GetShiftState done [14:33:59]FM_GetShiftState done [14:33:59]req_shift_opened done [14:33:59]requested_item shift.open_date is exist - process it [14:33:59]req_shift_open_date [14:33:59]req_shift_open_date done [14:33:59]produce_requested_data done [14:33:59]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30363,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [14:33:59]process_action_free close_receipt [14:33:59]json_value_free [14:33:59]json_value_free done [14:33:59]process_json_proto returns [14:33:59]Send response to host [14:33:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30363,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [14:33:59]free response buf [14:33:59]execute_script done [14:33:59]execute_script returns [14:33:59]free content buf [14:33:59]Sock 9.Close socket [14:33:59]Sock 9.Thread stoped [14:34:02]OFD Sender: No OFD packet to send [14:34:07]OFD Sender: No OFD packet to send [14:34:12]OFD Sender: No OFD packet to send [14:34:17]accept exits with 7 [14:34:17]New connection [14:34:17]New thread 3067514212 created [14:34:17]Thread 3067370852 joined [14:34:17]Waiting for new connection... [14:34:17] Sock 7.Parse request [14:34:17]Sock 7.Check first char [14:34:17]Sock 7.First char is OK [14:34:17]request: POST /json_proto HTTP/1.0 [14:34:17]Method: POST [14:34:17]URL: /json_proto [14:34:17]Method is POST - this is cgi request [14:34:17]url: /json_proto [14:34:17]query_string will be loaded in cgi processing [14:34:17]execute_cgi json_proto POST (null) [14:34:17]execute_cgi path=json_proto method=POST [14:34:17]POST find Content-Length [14:34:17]Host: 172.17.51.3:8080 [14:34:17]Content-Length: 678 [14:34:17]Content-Type: application/json [14:34:17] [14:34:17]POST finish read [14:34:17]Found Content-Length = 678 [14:34:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342757", "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" ] } } [14:34:17]execute_script... [14: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)342757", "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" ] } } [14:34:17]POST & json_proto [14:34:17]process_json_proto [14:34:17]json parsed OK: [14:34:17]protocol is kg_v1.0 [14:34:17]action value=close_receipt [14:34:17]process_action close_receipt [14:34:17]cmd_close_receipt [14:34:17]MH_GetDate [14:34:17]Write to MH i2c: F0 00 00 FE 8B 78 [14:34:17]Write i2c OK [14:34:17]MH_I2C_Read... [14:34:17]Read from MH i2c: F0 [14:34:17]MH_I2C_Read... [14:34:17]Read from MH i2c: F0 09 00 [14:34:17]MH_I2C_Read... [14:34:17]Read from MH i2c: F0 09 00 FE 8B 00 F3 14 15 67 04 C1 95 66 C4 [14:34:17]GetLastDocTimeStamp 1729434844 [14:34:17]current date 1729434867 [14:34:17]FM_GetShiftState [14:34:17]SAM_PROTO_GetShiftState [14:34:17]wFMCommunicate request_size=4 [14:34:17]MH_SAM_APDU [14:34:17]CAPDU: 80 13 01 00 [14:34:17]Write to MH i2c: E2 08 00 FF 8B 80 13 01 00 00 00 00 00 07 [14:34:17]Write i2c OK [14:34:17]MH_I2C_Read... [14:34:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:34:17]Read from MH i2c: E2 [14:34:17]MH_I2C_Read... [14:34:17]Read from MH i2c: E2 0E 00 [14:34:17]MH_I2C_Read... [14:34:17]Read from MH i2c: E2 0E 00 FF 8B 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 ED [14:34:17]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [14:34:17]wFMCommunicate OK [14:34:17]SAM_PROTO_GetShiftState done [14:34:17]FM_GetShiftState done [14:34:17]opened in 1729384718 [14:34:17]opened+sec_in_day 1729471118 [14:34:17]quantity*price = 70044 [14:34:17]sum+1 = 70045 [14:34:17]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 СНО: Общий режим Чек 146 20.10.2024 14:34 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30364 ФПД: 156545204039900 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T143427&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30364&fm=156545204039900&tin=02508201610067®Number=0000000000186857&sum=70000 [14:34:18]StoreToDocumentArchive [14:34:18]shift 114 fd 30364 [14:34:18]save to /storage/0114/doc_00030364 [14:34:18]save last doc name /storage/0114/doc_00030364 to /storage/kkm_last_doc_name [14:34:18]save OK [14:34:18]Clear old archive folders... [14:34:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:34:18]tlvbuf is 00BE9C60 [14:34:18]SAM_PROTO_ClearQueue [14:34:18]wFMCommunicate request_size=4 [14:34:18]MH_SAM_APDU [14:34:18]CAPDU: 80 09 00 00 [14:34:18]Write to MH i2c: E2 08 00 0C 8C 80 09 00 00 00 00 00 00 0A [14:34:18]Write i2c OK [14:34:18]MH_I2C_Read... [14:34:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:34:18]Read from MH i2c: E2 [14:34:18]MH_I2C_Read... [14:34:18]Read from MH i2c: E2 03 00 [14:34:18]MH_I2C_Read... [14:34:18]Read from MH i2c: E2 03 00 0C 8C 00 90 00 0C [14:34:18]RAPDU: 90 00 [14:34:18]wFMCommunicate OK [14:34:18]SAM_PROTO_ClearQueue done [14:34:18]KKMCreateOFDPacket [14:34:18]OFDProtocolAddRootSTLVToBuf [14:34:18]FM_MakeSignedData [14:34:18]FM_MakeSignedData [14:34:18]SAM_PROTO_SignData [14:34:18]wFMCommunicate request_size=4 [14:34:18]MH_SAM_APDU [14:34:18]CAPDU: 80 0D 01 02 [14:34:18]Write to MH i2c: E2 08 00 0D 8C 80 0D 01 02 00 00 00 00 12 [14:34:18]Write i2c OK [14:34:18]MH_I2C_Read... [14:34:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:34:18]Read from MH i2c: E2 [14:34:18]MH_I2C_Read... [14:34:18]Read from MH i2c: E2 03 00 [14:34:18]MH_I2C_Read... [14:34:18]Read from MH i2c: E2 03 00 0D 8C 00 90 00 0D [14:34:18]RAPDU: 90 00 [14:34:18]wFMCommunicate OK [14:34:18]wFMCommunicate request_size=255 [14:34:18]MH_SAM_APDU [14: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 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 92 00 00 00 F4 03 04 00 F3 14 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 8E [14:34:18]Write to MH i2c: E2 02 01 0E 8C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 92 00 00 00 F4 03 04 00 F3 14 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 8E 00 00 DA [14:34:18]Write i2c OK [14:34:18]MH_I2C_Read... [14:34:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:34:19]Read from MH i2c: E2 [14:34:19]MH_I2C_Read... [14:34:19]Read from MH i2c: E2 03 00 [14:34:19]MH_I2C_Read... [14:34:19]Read from MH i2c: E2 03 00 0E 8C 00 90 00 0E [14:34:19]RAPDU: 90 00 [14:34:19]wFMCommunicate OK [14:34:19]wFMCommunicate request_size=10 [14:34:19]MH_SAM_APDU [14:34:19]CAPDU: 80 0D 02 02 05 60 85 47 30 DC [14:34:19]Write to MH i2c: E2 0D 00 0F 8C 80 0D 02 02 05 00 60 85 47 30 DC 00 00 57 [14:34:19]Write i2c OK [14:34:19]MH_I2C_Read... [14:34:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:34:19]Read from MH i2c: E2 [14:34:19]MH_I2C_Read... [14:34:19]Read from MH i2c: E2 03 00 [14:34:19]MH_I2C_Read... [14:34:19]Read from MH i2c: E2 03 00 0F 8C 00 90 00 0F [14:34:19]RAPDU: 90 00 [14:34:19]wFMCommunicate OK [14:34:19]wFMCommunicate request_size=4 [14:34:19]MH_SAM_APDU [14:34:19]CAPDU: 80 0D 03 02 [14:34:19]Write to MH i2c: E2 08 00 10 8C 80 0D 03 02 00 00 00 00 17 [14:34:19]Write i2c OK [14:34:19]MH_I2C_Read... [14:34:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:34:19]Read from MH i2c: E2 [14:34:19]MH_I2C_Read... [14:34:19]Read from MH i2c: E2 0B 00 [14:34:19]MH_I2C_Read... [14:34:19]Read from MH i2c: E2 0B 00 10 8C 00 E0 F1 96 AB 69 EC 27 72 90 00 18 [14:34:19]RAPDU: E0 F1 96 AB 69 EC 27 72 90 00 [14:34:19]wFMCommunicate OK [14:34:19]SAM_PROTO_SignData done [14:34:19]FM_MakeSignedData done [14:34:19]CreateOFDProtocolMessage [14:34:19]wFMCommunicate request_size=4 [14:34:19]MH_SAM_APDU [14:34:19]CAPDU: 80 11 00 00 [14:34:19]Write to MH i2c: E2 08 00 11 8C 80 11 00 00 00 00 00 00 17 [14:34:19]Write i2c OK [14:34:19]MH_I2C_Read... [14:34:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:34:19]Read from MH i2c: E2 [14:34:19]MH_I2C_Read... [14:34:19]Read from MH i2c: E2 17 00 [14:34:19]MH_I2C_Read... [14:34:19]Read from MH i2c: E2 17 00 11 8C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 65 [14:34:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [14:34:19]wFMCommunicate OK [14:34:19]CreateOFDProtocolMessage done [14:34:19]OFDSenderStorePacket 30364 [14:34:19]StoreOFDPacket docnum=30364 [14:34: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 70 5D 07 01 DE 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 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 92 00 00 00 F4 03 04 00 F3 14 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 8E 60 85 47 30 DC E0 F1 96 AB 69 EC 27 72 [14:34:19]CheckFolder [14:34:19]dirname=/storage/ofd_packets [14:34:19]CheckFolder done [14:34:19]ProducePacketName [14:34:19]name=ofd_packets/00030364 [14:34:19]NVStorageSaveData ofd_packets/00030364 [14:34:19]File name is /storage/ofd_packets/00030364 [14:34:19]Write 301 bytes [14:34:19]NVStorageSaveData done [14:34:19]OFDSenderStorePacket done [14:34:19]KKMCreateOFDPacket done [14:34:19]NVStorageSaveData kkm_last_timestamp [14:34:19]File name is /storage/kkm_last_timestamp [14:34:19]Write 4 bytes [14:34:19]NVStorageSaveData done [14:34:19]ExternCall_PrintAddStr [14:34:19]wPrintStart [14:34:19]Write to MH i2c: 01 00 00 12 8C 9E [14:34:19]Write i2c OK [14:34:19]MH_I2C_Read... [14:34:19]Read from MH i2c: 01 [14:34:19]MH_I2C_Read... [14:34:19]Read from MH i2c: 01 07 00 [14:34:19]MH_I2C_Read... [14:34:19]Read from MH i2c: 01 07 00 12 8C 00 00 00 00 00 FF 0F B3 [14:34:19]RasterBufferAndPrint [14:34:19]line Счет N : (1)342757 [14:34:19]line ИНН: 02508201610067 [14:34:19]line Контрольно-Кассовый Чек [14:34:19]line ПРОДАЖА [14:34:19]line ТРК (МРК, ГНК) : 63 [14:34:19]line Товар: 2710124130 [14:34:19]line Аи-92-К-2 [14:34:19]line 10.470 * 66.90 [14:34:19]line = 700.44 [14:34:19]line НДС 12% НСП 1% [14:34:19]line > о реализуемом товаре [14:34:19]line ОКРУГЛЕНИЕ: -0.44 [14:34:19]line ИТОГО: 700.00 [14:34:19]line Внесено: 700.00 [14:34:19]line СДАЧА: 0.00 [14:34:19]line НСП 1% : 6.20 [14:34:19]line НДС 12% : 74.38 [14:34:19]line Наличными: 700.00 [14:34:19]line Безнал.: 0.00 [14:34:19]line Место: АЗС № 78 "Партнер Нефть" [14:34:19]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [14:34:19]line СНО: Общий режим [14:34:19]line Чек 146 20.10.2024 14:34 [14:34:19]line Смена: 114 ФФД: 1.0 [14:34:19]line ЗНМ: 0300000137 [14:34:19]line РНМ: 0000000000186857 [14:34:19]line Версия ККМ: v1.0 [14:34:19]line ФМ: 0000000002094219 [14:34:19]line ФД: 30364 [14:34:19]line ФПД: 156545204039900 [14:34:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T143427&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30364&fm=156545204039900&tin=02508201610067®Number=0000000000186857&sum=70000 [14:34:19]OFD Sender: Processing packet 30364 [packets to send 10, broken 9] [14:34:19]ProducePacketName [14:34:19]name=ofd_packets/00030364 [14:34:19]OFD Sender: To server: pG, [14:34:19]CommunicateWithHost lk.salyk.kg:30040 [14:34:19]ConnectInit lk.salyk.kg [14:34:19]written 0, free lines is 4095 [14:34:19]Connected sock=10 [14: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 70 5D 07 01 DE 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 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 92 00 00 00 F4 03 04 00 F3 14 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 8E 60 85 47 30 DC E0 F1 96 AB 69 EC 27 72 [14:34: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 F1 70 47 00 08 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 9C 76 00 00 F4 03 04 00 77 BF 14 67 B6 04 01 00 00 E1 BB 1D B2 63 C3 89 73 [14:34:20]CommunicateWithHost err = 0 [14:34:20]CheckOFDResponse [14:34:20]1017 (14) - 77093643461234 [14:34:20]1041 (16) - 0000000002094219 [14:34:20]1040 (4) - 30364 [14:34:20]1012 (4) - 20.10.2024 08:29 [14:34:20]1206 (1) - 0 [14:34:20]OFD Sender: Remove packet 30364 [14:34:20]ProducePacketName [14:34:20]name=ofd_packets/00030364 [14:34:20]NVStorageDeleteData [14:34:20]Write to MH i2c: 01 00 00 3D 8C C9 [14:34:20]Write i2c OK [14:34:20]MH_I2C_Read... [14:34:20]Read from MH i2c: 01 [14:34:20]MH_I2C_Read... [14:34:20]Read from MH i2c: 01 07 00 [14:34:20]MH_I2C_Read... [14:34:20]Read from MH i2c: 01 07 00 3D 8C 00 00 00 00 00 EC 0C C8 [14:34:20]RasterBufferAndPrint [14:34:20]line [14:34:20]line [14:34:20]line [14:34:20]line [14:34:20]line [14:34:20]written 0, free lines is 3314 [14:34:20]MH_Cut [14:34:20]Write to MH i2c: D1 01 00 44 8C 01 A2 [14:34:20]Write i2c OK [14:34:20]MH_I2C_Read... [14:34:20]Read from MH i2c: D1 [14:34:20]MH_I2C_Read... [14:34:20]Read from MH i2c: D1 01 00 [14:34:20]MH_I2C_Read... [14:34:20]Read from MH i2c: D1 01 00 44 8C 00 A1 [14:34:20]Write to MH i2c: 01 00 00 45 8C D1 [14:34:20]Write i2c OK [14:34:20]MH_I2C_Read... [14:34:20]OFD Sender: No OFD packet to send [14:34:20]*** Cut start [14:34:20]*** Partial cut [14:34:20]*** CUTSNS_PIN = 1 [14:34:20]*** CUTSNS_PIN = 0 [14:34:21]*** Brake cut motor [14:34:21]Read from MH i2c: 01 [14:34:21]MH_I2C_Read... [14:34:21]*** Stop cut motor [14:34:21]*** Cut end [14:34:21]Read from MH i2c: 01 07 00 [14:34:21]MH_I2C_Read... [14:34:21]Read from MH i2c: 01 07 00 45 8C 00 00 00 00 00 FF 0F E6 [14:34:21]process_action close_receipt done [14:34:21]requested_data is exist [14:34:21]produce_requested_data [14:34:21]requested_item fm.sn is exist - process it [14:34:21]wFMCommunicate request_size=4 [14:34:21]MH_SAM_APDU [14:34:21]CAPDU: 80 11 00 00 [14:34:21]Write to MH i2c: E2 08 00 46 8C 80 11 00 00 00 00 00 00 4C [14:34:21]Write i2c OK [14:34:21]MH_I2C_Read... [14:34:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:34:21]Read from MH i2c: E2 [14:34:21]MH_I2C_Read... [14:34:21]Read from MH i2c: E2 17 00 [14:34:21]MH_I2C_Read... [14:34:21]Read from MH i2c: E2 17 00 46 8C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 9A [14:34:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [14:34:21]wFMCommunicate OK [14:34:21]requested_item fd.num is exist - process it [14:34:21]SAM_PROTO_GetFieldsCounters [14:34:21]wFMCommunicate request_size=4 [14:34:21]MH_SAM_APDU [14:34:21]CAPDU: 80 13 00 00 [14:34:21]Write to MH i2c: E2 08 00 47 8C 80 13 00 00 00 00 00 00 4F [14:34:21]Write i2c OK [14:34:21]MH_I2C_Read... [14:34:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:34:21]Read from MH i2c: E2 [14:34:21]MH_I2C_Read... [14:34:21]Read from MH i2c: E2 62 00 [14:34:21]MH_I2C_Read... [14:34:21]Read from MH i2c: E2 62 00 47 8C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 AF [14: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 9C 76 00 00 0E 04 04 00 72 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 [14:34:21]wFMCommunicate OK [14:34:21]SAM_PROTO_GetFieldsCounters done [14:34:21]requested_item shift.num is exist - process it [14:34:21]requested_item shift.opened is exist - process it [14:34:21]req_shift_opened [14:34:21]FM_GetShiftState [14:34:21]SAM_PROTO_GetShiftState [14:34:21]wFMCommunicate request_size=4 [14:34:21]MH_SAM_APDU [14:34:21]CAPDU: 80 13 01 00 [14:34:21]Write to MH i2c: E2 08 00 48 8C 80 13 01 00 00 00 00 00 51 [14:34:21]Write i2c OK [14:34:21]MH_I2C_Read... [14:34:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:34:21]Read from MH i2c: E2 [14:34:21]MH_I2C_Read... [14:34:21]Read from MH i2c: E2 0E 00 [14:34:21]MH_I2C_Read... [14:34:21]Read from MH i2c: E2 0E 00 48 8C 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 37 [14:34:21]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [14:34:21]wFMCommunicate OK [14:34:21]SAM_PROTO_GetShiftState done [14:34:21]FM_GetShiftState done [14:34:21]req_shift_opened done [14:34:21]requested_item shift.open_date is exist - process it [14:34:21]req_shift_open_date [14:34:21]req_shift_open_date done [14:34:21]produce_requested_data done [14:34:21]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30364,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [14:34:21]process_action_free close_receipt [14:34:21]json_value_free [14:34:21]json_value_free done [14:34:21]process_json_proto returns [14:34:21]Send response to host [14:34:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30364,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [14:34:21]free response buf [14:34:21]execute_script done [14:34:21]execute_script returns [14:34:21]free content buf [14:34:21]Sock 7.Close socket [14:34:21]Sock 7.Thread stoped [14:34:25]OFD Sender: No OFD packet to send [14:34:30]OFD Sender: No OFD packet to send [14:34:35]OFD Sender: No OFD packet to send [14:34:40]OFD Sender: No OFD packet to send [14:34:45]OFD Sender: No OFD packet to send [14:34:50]OFD Sender: No OFD packet to send [14:34:55]OFD Sender: No OFD packet to send [14:35:00]OFD Sender: No OFD packet to send [14:35:01]accept exits with 9 [14:35:01]New connection [14:35:01]New thread 3067370852 created [14:35:01]Thread 3067514212 joined [14:35:01]Waiting for new connection... [14:35:01] Sock 9.Parse request [14:35:01]Sock 9.Check first char [14:35:01]Sock 9.First char is OK [14:35:01]request: POST /json_proto HTTP/1.0 [14:35:01]Method: POST [14:35:01]URL: /json_proto [14:35:01]Method is POST - this is cgi request [14:35:01]url: /json_proto [14:35:01]query_string will be loaded in cgi processing [14:35:01]execute_cgi json_proto POST (null) [14:35:01]execute_cgi path=json_proto method=POST [14:35:01]POST find Content-Length [14:35:01]Host: 172.17.51.3:8080 [14:35:01]Content-Length: 677 [14:35:01]Content-Type: application/json [14:35:01] [14:35:01]POST finish read [14:35:01]Found Content-Length = 677 [14:35:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342758", "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:35:01]execute_script... [14:35:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342758", "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:35:01]POST & json_proto [14:35:01]process_json_proto [14:35:01]json parsed OK: [14:35:01]protocol is kg_v1.0 [14:35:01]action value=close_receipt [14:35:01]process_action close_receipt [14:35:01]cmd_close_receipt [14:35:01]MH_GetDate [14:35:01]Write to MH i2c: F0 00 00 49 8C C4 [14:35:01]Write i2c OK [14:35:01]MH_I2C_Read... [14:35:01]Read from MH i2c: F0 [14:35:01]MH_I2C_Read... [14:35:01]Read from MH i2c: F0 09 00 [14:35:01]MH_I2C_Read... [14:35:01]Read from MH i2c: F0 09 00 49 8C 00 1F 15 15 67 04 C1 95 66 3D [14:35:01]GetLastDocTimeStamp 1729434867 [14:35:01]current date 1729434911 [14:35:01]FM_GetShiftState [14:35:01]SAM_PROTO_GetShiftState [14:35:01]wFMCommunicate request_size=4 [14:35:01]MH_SAM_APDU [14:35:01]CAPDU: 80 13 01 00 [14:35:01]Write to MH i2c: E2 08 00 4A 8C 80 13 01 00 00 00 00 00 53 [14:35:01]Write i2c OK [14:35:01]MH_I2C_Read... [14:35:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:35:01]Read from MH i2c: E2 [14:35:01]MH_I2C_Read... [14:35:01]Read from MH i2c: E2 0E 00 [14:35:01]MH_I2C_Read... [14:35:01]Read from MH i2c: E2 0E 00 4A 8C 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 39 [14:35:01]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [14:35:01]wFMCommunicate OK [14:35:01]SAM_PROTO_GetShiftState done [14:35:01]FM_GetShiftState done [14:35:01]opened in 1729384718 [14:35:01]opened+sec_in_day 1729471118 [14:35:01]quantity*price = 20003 [14:35:01]sum+1 = 20004 [14:35:01]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 СНО: Общий режим Чек 147 20.10.2024 14:35 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30365 ФПД: 250497744651551 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T143511&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30365&fm=250497744651551&tin=02508201610067®Number=0000000000186857&sum=20000 [14:35:02]StoreToDocumentArchive [14:35:02]shift 114 fd 30365 [14:35:02]save to /storage/0114/doc_00030365 [14:35:02]save last doc name /storage/0114/doc_00030365 to /storage/kkm_last_doc_name [14:35:02]save OK [14:35:02]Clear old archive folders... [14:35:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:35:02]tlvbuf is 00B37D00 [14:35:02]SAM_PROTO_ClearQueue [14:35:02]wFMCommunicate request_size=4 [14:35:02]MH_SAM_APDU [14:35:02]CAPDU: 80 09 00 00 [14:35:02]Write to MH i2c: E2 08 00 57 8C 80 09 00 00 00 00 00 00 55 [14:35:02]Write i2c OK [14:35:02]MH_I2C_Read... [14:35:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:35:02]Read from MH i2c: E2 [14:35:02]MH_I2C_Read... [14:35:02]Read from MH i2c: E2 03 00 [14:35:02]MH_I2C_Read... [14:35:02]Read from MH i2c: E2 03 00 57 8C 00 90 00 57 [14:35:02]RAPDU: 90 00 [14:35:02]wFMCommunicate OK [14:35:02]SAM_PROTO_ClearQueue done [14:35:02]KKMCreateOFDPacket [14:35:02]OFDProtocolAddRootSTLVToBuf [14:35:02]FM_MakeSignedData [14:35:02]FM_MakeSignedData [14:35:02]SAM_PROTO_SignData [14:35:02]wFMCommunicate request_size=4 [14:35:02]MH_SAM_APDU [14:35:02]CAPDU: 80 0D 01 02 [14:35:02]Write to MH i2c: E2 08 00 58 8C 80 0D 01 02 00 00 00 00 5D [14:35:02]Write i2c OK [14:35:02]MH_I2C_Read... [14:35:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:35:02]Read from MH i2c: E2 [14:35:02]MH_I2C_Read... [14:35:02]Read from MH i2c: E2 03 00 [14:35:02]MH_I2C_Read... [14:35:02]Read from MH i2c: E2 03 00 58 8C 00 90 00 58 [14:35:02]RAPDU: 90 00 [14:35:02]wFMCommunicate OK [14:35:02]wFMCommunicate request_size=255 [14:35:02]MH_SAM_APDU [14:35:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 93 00 00 00 F4 03 04 00 1F 15 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 E3 [14:35:02]Write to MH i2c: E2 02 01 59 8C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 93 00 00 00 F4 03 04 00 1F 15 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 E3 00 00 5B [14:35:02]Write i2c OK [14:35:02]MH_I2C_Read... [14:35:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:35:02]Read from MH i2c: E2 [14:35:02]MH_I2C_Read... [14:35:02]Read from MH i2c: E2 03 00 [14:35:02]MH_I2C_Read... [14:35:02]Read from MH i2c: E2 03 00 59 8C 00 90 00 59 [14:35:02]RAPDU: 90 00 [14:35:02]wFMCommunicate OK [14:35:02]wFMCommunicate request_size=10 [14:35:02]MH_SAM_APDU [14:35:02]CAPDU: 80 0D 02 02 05 D3 8D 16 45 1F [14:35:02]Write to MH i2c: E2 0D 00 5A 8C 80 0D 02 02 05 00 D3 8D 16 45 1F 00 00 44 [14:35:02]Write i2c OK [14:35:02]MH_I2C_Read... [14:35:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:35:02]Read from MH i2c: E2 [14:35:02]MH_I2C_Read... [14:35:02]Read from MH i2c: E2 03 00 [14:35:02]MH_I2C_Read... [14:35:02]Read from MH i2c: E2 03 00 5A 8C 00 90 00 5A [14:35:02]RAPDU: 90 00 [14:35:02]wFMCommunicate OK [14:35:02]wFMCommunicate request_size=4 [14:35:02]MH_SAM_APDU [14:35:02]CAPDU: 80 0D 03 02 [14:35:02]Write to MH i2c: E2 08 00 5B 8C 80 0D 03 02 00 00 00 00 62 [14:35:02]Write i2c OK [14:35:02]MH_I2C_Read... [14:35:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:35:03]Read from MH i2c: E2 [14:35:03]MH_I2C_Read... [14:35:03]Read from MH i2c: E2 0B 00 [14:35:03]MH_I2C_Read... [14:35:03]Read from MH i2c: E2 0B 00 5B 8C 00 D5 A1 07 19 84 57 F8 E7 90 00 B3 [14:35:03]RAPDU: D5 A1 07 19 84 57 F8 E7 90 00 [14:35:03]wFMCommunicate OK [14:35:03]SAM_PROTO_SignData done [14:35:03]FM_MakeSignedData done [14:35:03]CreateOFDProtocolMessage [14:35:03]wFMCommunicate request_size=4 [14:35:03]MH_SAM_APDU [14:35:03]CAPDU: 80 11 00 00 [14:35:03]Write to MH i2c: E2 08 00 5C 8C 80 11 00 00 00 00 00 00 62 [14:35:03]Write i2c OK [14:35:03]MH_I2C_Read... [14:35:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:35:03]Read from MH i2c: E2 [14:35:03]MH_I2C_Read... [14:35:03]Read from MH i2c: E2 17 00 [14:35:03]MH_I2C_Read... [14:35:03]Read from MH i2c: E2 17 00 5C 8C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 B0 [14:35:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [14:35:03]wFMCommunicate OK [14:35:03]CreateOFDProtocolMessage done [14:35:03]OFDSenderStorePacket 30365 [14:35:03]StoreOFDPacket docnum=30365 [14:35: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 0F 01 00 00 13 43 07 01 98 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 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 93 00 00 00 F4 03 04 00 1F 15 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 E3 D3 8D 16 45 1F D5 A1 07 19 84 57 F8 E7 [14:35:03]CheckFolder [14:35:03]dirname=/storage/ofd_packets [14:35:03]CheckFolder done [14:35:03]ProducePacketName [14:35:03]name=ofd_packets/00030365 [14:35:03]NVStorageSaveData ofd_packets/00030365 [14:35:03]File name is /storage/ofd_packets/00030365 [14:35:03]Write 301 bytes [14:35:03]NVStorageSaveData done [14:35:03]OFDSenderStorePacket done [14:35:03]KKMCreateOFDPacket done [14:35:03]NVStorageSaveData kkm_last_timestamp [14:35:03]File name is /storage/kkm_last_timestamp [14:35:03]Write 4 bytes [14:35:03]NVStorageSaveData done [14:35:03]ExternCall_PrintAddStr [14:35:03]wPrintStart [14:35:03]Write to MH i2c: 01 00 00 5D 8C E9 [14:35:03]Write i2c OK [14:35:03]MH_I2C_Read... [14:35:03]Read from MH i2c: 01 [14:35:03]MH_I2C_Read... [14:35:03]Read from MH i2c: 01 07 00 [14:35:03]MH_I2C_Read... [14:35:03]Read from MH i2c: 01 07 00 5D 8C 00 00 00 00 00 FF 0F FE [14:35:03]RasterBufferAndPrint [14:35:03]line Счет N : (1)342758 [14:35:03]line ИНН: 02508201610067 [14:35:03]line Контрольно-Кассовый Чек [14:35:03]line ПРОДАЖА [14:35:03]line ТРК (МРК, ГНК) : 33 [14:35:03]line Товар: 2710124130 [14:35:03]line Аи-92-К-2 [14:35:03]line 2.990 * 66.90 [14:35:03]line = 200.03 [14:35:03]line НДС 12% НСП 1% [14:35:03]line > о реализуемом товаре [14:35:03]line ОКРУГЛЕНИЕ: -0.03 [14:35:03]line ИТОГО: 200.00 [14:35:03]line Внесено: 200.00 [14:35:03]line СДАЧА: 0.00 [14:35:03]line НСП 1% : 1.77 [14:35:03]line НДС 12% : 21.24 [14:35:03]line Наличными: 200.00 [14:35:03]line Безнал.: 0.00 [14:35:03]line Место: АЗС № 78 "Партнер Нефть" [14:35:03]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [14:35:03]line СНО: Общий режим [14:35:03]line Чек 147 20.10.2024 14:35 [14:35:03]line Смена: 114 ФФД: 1.0 [14:35:03]line ЗНМ: 0300000137 [14:35:03]line РНМ: 0000000000186857 [14:35:03]line Версия ККМ: v1.0 [14:35:03]line ФМ: 0000000002094219 [14:35:03]line ФД: 30365 [14:35:03]line ФПД: 250497744651551 [14:35:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T143511&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30365&fm=250497744651551&tin=02508201610067®Number=0000000000186857&sum=20000 [14:35:03]OFD Sender: Processing packet 30365 [packets to send 10, broken 9] [14:35:03]ProducePacketName [14:35:03]name=ofd_packets/00030365 [14:35:03]OFD Sender: To server: pG, [14:35:03]CommunicateWithHost lk.salyk.kg:30040 [14:35:03]ConnectInit lk.salyk.kg [14:35:03]written 0, free lines is 4095 [14:35:03]Connected sock=10 [14:35: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 0F 01 00 00 13 43 07 01 98 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 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 93 00 00 00 F4 03 04 00 1F 15 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 E3 D3 8D 16 45 1F D5 A1 07 19 84 57 F8 E7 [14:35: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 0F 56 47 00 BE 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 9D 76 00 00 F4 03 04 00 A2 BF 14 67 B6 04 01 00 00 4E 55 3C A0 3A E5 CE FE [14:35:03]CommunicateWithHost err = 0 [14:35:03]CheckOFDResponse [14:35:03]1017 (14) - 77093643461234 [14:35:03]1041 (16) - 0000000002094219 [14:35:03]1040 (4) - 30365 [14:35:03]1012 (4) - 20.10.2024 08:30 [14:35:03]1206 (1) - 0 [14:35:03]OFD Sender: Remove packet 30365 [14:35:03]ProducePacketName [14:35:03]name=ofd_packets/00030365 [14:35:03]NVStorageDeleteData [14:35:03]Write to MH i2c: 01 00 00 88 8C 14 [14:35:03]Write i2c OK [14:35:03]MH_I2C_Read... [14:35:03]Read from MH i2c: 01 [14:35:03]MH_I2C_Read... [14:35:03]Read from MH i2c: 01 07 00 [14:35:03]MH_I2C_Read... [14:35:03]Read from MH i2c: 01 07 00 88 8C 00 00 00 00 00 E7 0C 0E [14:35:03]RasterBufferAndPrint [14:35:03]line [14:35:03]line [14:35:03]line [14:35:03]line [14:35:03]line [14:35:03]written 0, free lines is 3310 [14:35:03]MH_Cut [14:35:03]Write to MH i2c: D1 01 00 8F 8C 01 ED [14:35:03]Write i2c OK [14:35:03]MH_I2C_Read... [14:35:03]Read from MH i2c: D1 [14:35:03]MH_I2C_Read... [14:35:03]Read from MH i2c: D1 01 00 [14:35:03]MH_I2C_Read... [14:35:03]Read from MH i2c: D1 01 00 8F 8C 00 EC [14:35:03]Write to MH i2c: 01 00 00 90 8C 1C [14:35:03]Write i2c OK [14:35:03]MH_I2C_Read... [14:35:04]OFD Sender: No OFD packet to send [14:35:04]*** Cut start [14:35:04]*** Partial cut [14:35:04]*** CUTSNS_PIN = 1 [14:35:04]*** CUTSNS_PIN = 0 [14:35:04]*** Brake cut motor [14:35:05]Read from MH i2c: 01 [14:35:05]MH_I2C_Read... [14:35:05]*** Stop cut motor [14:35:05]*** Cut end [14:35:05]Read from MH i2c: 01 07 00 [14:35:05]MH_I2C_Read... [14:35:05]Read from MH i2c: 01 07 00 90 8C 00 00 00 00 00 FF 0F 31 [14:35:05]process_action close_receipt done [14:35:05]requested_data is exist [14:35:05]produce_requested_data [14:35:05]requested_item fm.sn is exist - process it [14:35:05]wFMCommunicate request_size=4 [14:35:05]MH_SAM_APDU [14:35:05]CAPDU: 80 11 00 00 [14:35:05]Write to MH i2c: E2 08 00 91 8C 80 11 00 00 00 00 00 00 97 [14:35:05]Write i2c OK [14:35:05]MH_I2C_Read... [14:35:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:35:05]Read from MH i2c: E2 [14:35:05]MH_I2C_Read... [14:35:05]Read from MH i2c: E2 17 00 [14:35:05]MH_I2C_Read... [14:35:05]Read from MH i2c: E2 17 00 91 8C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 E5 [14: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 [14:35:05]wFMCommunicate OK [14:35:05]requested_item fd.num is exist - process it [14:35:05]SAM_PROTO_GetFieldsCounters [14:35:05]wFMCommunicate request_size=4 [14:35:05]MH_SAM_APDU [14:35:05]CAPDU: 80 13 00 00 [14:35:05]Write to MH i2c: E2 08 00 92 8C 80 13 00 00 00 00 00 00 9A [14:35:05]Write i2c OK [14:35:05]MH_I2C_Read... [14:35:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:35:05]Read from MH i2c: E2 [14:35:05]MH_I2C_Read... [14:35:05]Read from MH i2c: E2 62 00 [14:35:05]MH_I2C_Read... [14:35:05]Read from MH i2c: E2 62 00 92 8C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 FE [14:35: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 9D 76 00 00 0E 04 04 00 72 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 [14:35:05]wFMCommunicate OK [14:35:05]SAM_PROTO_GetFieldsCounters done [14:35:05]requested_item shift.num is exist - process it [14:35:05]requested_item shift.opened is exist - process it [14:35:05]req_shift_opened [14:35:05]FM_GetShiftState [14:35:05]SAM_PROTO_GetShiftState [14:35:05]wFMCommunicate request_size=4 [14:35:05]MH_SAM_APDU [14:35:05]CAPDU: 80 13 01 00 [14:35:05]Write to MH i2c: E2 08 00 93 8C 80 13 01 00 00 00 00 00 9C [14:35:05]Write i2c OK [14:35:05]MH_I2C_Read... [14:35:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:35:05]Read from MH i2c: E2 [14:35:05]MH_I2C_Read... [14:35:05]Read from MH i2c: E2 0E 00 [14:35:05]MH_I2C_Read... [14:35:05]Read from MH i2c: E2 0E 00 93 8C 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 82 [14:35:05]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [14:35:05]wFMCommunicate OK [14:35:05]SAM_PROTO_GetShiftState done [14:35:05]FM_GetShiftState done [14:35:05]req_shift_opened done [14:35:05]requested_item shift.open_date is exist - process it [14:35:05]req_shift_open_date [14:35:05]req_shift_open_date done [14:35:05]produce_requested_data done [14:35:05]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30365,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [14:35:05]process_action_free close_receipt [14:35:05]json_value_free [14:35:05]json_value_free done [14:35:05]process_json_proto returns [14:35:05]Send response to host [14:35:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30365,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [14:35:05]free response buf [14:35:05]execute_script done [14:35:05]execute_script returns [14:35:05]free content buf [14:35:05]Sock 9.Close socket [14:35:05]Sock 9.Thread stoped [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:35]accept exits with 7 [14:36:35]New connection [14:36:35]New thread 3067514212 created [14:36:35]Thread 3067370852 joined [14:36:35]Waiting for new connection... [14:36:35] Sock 7.Parse request [14:36:35]Sock 7.Check first char [14:36:35]Sock 7.First char is OK [14:36:35]request: POST /json_proto HTTP/1.0 [14:36:35]Method: POST [14:36:35]URL: /json_proto [14:36:35]Method is POST - this is cgi request [14:36:35]url: /json_proto [14:36:35]query_string will be loaded in cgi processing [14:36:35]execute_cgi json_proto POST (null) [14:36:35]execute_cgi path=json_proto method=POST [14:36:35]POST find Content-Length [14:36:35]Host: 172.17.51.3:8080 [14:36:35]Content-Length: 682 [14:36:35]Content-Type: application/json [14:36:35] [14:36:35]POST finish read [14:36:35]Found Content-Length = 682 [14:36:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342759", "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" : 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" ] } } [14:36:35]execute_script... [14:36: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)342759", "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" : 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" ] } } [14:36:35]POST & json_proto [14:36:35]process_json_proto [14:36:35]json parsed OK: [14:36:35]protocol is kg_v1.0 [14:36:35]action value=close_receipt [14:36:35]process_action close_receipt [14:36:35]cmd_close_receipt [14:36:35]MH_GetDate [14:36:35]Write to MH i2c: F0 00 00 94 8C 0F [14:36:35]Write i2c OK [14:36:35]MH_I2C_Read... [14:36:35]Read from MH i2c: F0 [14:36:35]MH_I2C_Read... [14:36:35]Read from MH i2c: F0 09 00 [14:36:35]MH_I2C_Read... [14:36:35]Read from MH i2c: F0 09 00 94 8C 00 7D 15 15 67 04 C1 95 66 E6 [14:36:35]GetLastDocTimeStamp 1729434911 [14:36:35]current date 1729435005 [14:36:35]FM_GetShiftState [14:36:35]SAM_PROTO_GetShiftState [14:36:35]wFMCommunicate request_size=4 [14:36:35]MH_SAM_APDU [14:36:35]CAPDU: 80 13 01 00 [14:36:35]Write to MH i2c: E2 08 00 95 8C 80 13 01 00 00 00 00 00 9E [14:36:35]Write i2c OK [14:36:35]MH_I2C_Read... [14:36:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:36:35]Read from MH i2c: E2 [14:36:35]MH_I2C_Read... [14:36:35]Read from MH i2c: E2 0E 00 [14:36:35]MH_I2C_Read... [14:36:35]Read from MH i2c: E2 0E 00 95 8C 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 84 [14:36:35]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [14:36:35]wFMCommunicate OK [14:36:35]SAM_PROTO_GetShiftState done [14:36:35]FM_GetShiftState done [14:36:35]opened in 1729384718 [14:36:35]opened+sec_in_day 1729471118 [14:36:35]quantity*price = 150032 [14:36:35]sum+1 = 150033 [14:36:35]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 СНО: Общий режим Чек 148 20.10.2024 14:36 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30366 ФПД: 43827114863735 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T143645&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30366&fm=43827114863735&tin=02508201610067®Number=0000000000186857&sum=150000 [14:36:36]StoreToDocumentArchive [14:36:36]shift 114 fd 30366 [14:36:36]save to /storage/0114/doc_00030366 [14:36:36]save last doc name /storage/0114/doc_00030366 to /storage/kkm_last_doc_name [14:36:36]save OK [14:36:36]Clear old archive folders... [14:36:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:36:36]tlvbuf is 00C3F150 [14:36:36]SAM_PROTO_ClearQueue [14:36:36]wFMCommunicate request_size=4 [14:36:36]MH_SAM_APDU [14:36:36]CAPDU: 80 09 00 00 [14:36:36]Write to MH i2c: E2 08 00 A2 8C 80 09 00 00 00 00 00 00 A0 [14:36:36]Write i2c OK [14:36:36]MH_I2C_Read... [14:36:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:36:36]Read from MH i2c: E2 [14:36:36]MH_I2C_Read... [14:36:36]Read from MH i2c: E2 03 00 [14:36:36]MH_I2C_Read... [14:36:36]Read from MH i2c: E2 03 00 A2 8C 00 90 00 A2 [14:36:36]RAPDU: 90 00 [14:36:36]wFMCommunicate OK [14:36:36]SAM_PROTO_ClearQueue done [14:36:36]KKMCreateOFDPacket [14:36:36]OFDProtocolAddRootSTLVToBuf [14:36:36]FM_MakeSignedData [14:36:36]FM_MakeSignedData [14:36:36]SAM_PROTO_SignData [14:36:36]wFMCommunicate request_size=4 [14:36:36]MH_SAM_APDU [14:36:36]CAPDU: 80 0D 01 02 [14:36:36]Write to MH i2c: E2 08 00 A3 8C 80 0D 01 02 00 00 00 00 A8 [14:36:36]Write i2c OK [14:36:36]MH_I2C_Read... [14:36:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:36:36]Read from MH i2c: E2 [14:36:36]MH_I2C_Read... [14:36:36]Read from MH i2c: E2 03 00 [14:36:36]MH_I2C_Read... [14:36:36]Read from MH i2c: E2 03 00 A3 8C 00 90 00 A3 [14:36:36]RAPDU: 90 00 [14:36:36]wFMCommunicate OK [14:36:36]wFMCommunicate request_size=255 [14:36:36]MH_SAM_APDU [14:36:36]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 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 94 00 00 00 F4 03 04 00 7D 15 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 27 [14:36:36]Write to MH i2c: E2 02 01 A4 8C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 94 00 00 00 F4 03 04 00 7D 15 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 27 00 00 EC [14:36:36]Write i2c OK [14:36:36]MH_I2C_Read... [14:36:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:36:36]Read from MH i2c: E2 [14:36:36]MH_I2C_Read... [14:36:36]Read from MH i2c: E2 03 00 [14:36:36]MH_I2C_Read... [14:36:36]Read from MH i2c: E2 03 00 A4 8C 00 90 00 A4 [14:36:36]RAPDU: 90 00 [14:36:36]wFMCommunicate OK [14:36:36]wFMCommunicate request_size=10 [14:36:36]MH_SAM_APDU [14:36:36]CAPDU: 80 0D 02 02 05 DC 4B 9C EC 77 [14:36:36]Write to MH i2c: E2 0D 00 A5 8C 80 0D 02 02 05 00 DC 4B 9C EC 77 00 00 DB [14:36:36]Write i2c OK [14:36:36]MH_I2C_Read... [14:36:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:36:36]Read from MH i2c: E2 [14:36:36]MH_I2C_Read... [14:36:36]Read from MH i2c: E2 03 00 [14:36:36]MH_I2C_Read... [14:36:36]Read from MH i2c: E2 03 00 A5 8C 00 90 00 A5 [14:36:36]RAPDU: 90 00 [14:36:36]wFMCommunicate OK [14:36:36]wFMCommunicate request_size=4 [14:36:36]MH_SAM_APDU [14:36:36]CAPDU: 80 0D 03 02 [14:36:36]Write to MH i2c: E2 08 00 A6 8C 80 0D 03 02 00 00 00 00 AD [14:36:36]Write i2c OK [14:36:36]MH_I2C_Read... [14:36:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:36:36]Read from MH i2c: E2 [14:36:36]MH_I2C_Read... [14:36:36]Read from MH i2c: E2 0B 00 [14:36:36]MH_I2C_Read... [14:36:36]Read from MH i2c: E2 0B 00 A6 8C 00 E4 76 5E FF 49 5A 52 86 90 00 E0 [14:36:36]RAPDU: E4 76 5E FF 49 5A 52 86 90 00 [14:36:36]wFMCommunicate OK [14:36:36]SAM_PROTO_SignData done [14:36:36]FM_MakeSignedData done [14:36:36]CreateOFDProtocolMessage [14:36:36]wFMCommunicate request_size=4 [14:36:36]MH_SAM_APDU [14:36:36]CAPDU: 80 11 00 00 [14:36:36]Write to MH i2c: E2 08 00 A7 8C 80 11 00 00 00 00 00 00 AD [14:36:36]Write i2c OK [14:36:36]MH_I2C_Read... [14:36:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:36:36]Read from MH i2c: E2 [14:36:36]MH_I2C_Read... [14:36:36]Read from MH i2c: E2 17 00 [14:36:36]MH_I2C_Read... [14:36:36]Read from MH i2c: E2 17 00 A7 8C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 FB [14:36: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:36:36]wFMCommunicate OK [14:36:36]CreateOFDProtocolMessage done [14:36:36]OFDSenderStorePacket 30366 [14:36:36]StoreOFDPacket docnum=30366 [14:36: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 71 A5 07 01 D5 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 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 94 00 00 00 F4 03 04 00 7D 15 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 27 DC 4B 9C EC 77 E4 76 5E FF 49 5A 52 86 [14:36:36]CheckFolder [14:36:36]dirname=/storage/ofd_packets [14:36:36]CheckFolder done [14:36:36]ProducePacketName [14:36:36]name=ofd_packets/00030366 [14:36:36]NVStorageSaveData ofd_packets/00030366 [14:36:36]File name is /storage/ofd_packets/00030366 [14:36:36]Write 301 bytes [14:36:36]NVStorageSaveData done [14:36:36]OFDSenderStorePacket done [14:36:36]KKMCreateOFDPacket done [14:36:36]NVStorageSaveData kkm_last_timestamp [14:36:36]File name is /storage/kkm_last_timestamp [14:36:36]Write 4 bytes [14:36:36]NVStorageSaveData done [14:36:36]ExternCall_PrintAddStr [14:36:36]wPrintStart [14:36:36]Write to MH i2c: 01 00 00 A8 8C 34 [14:36:36]Write i2c OK [14:36:36]MH_I2C_Read... [14:36:36]Read from MH i2c: 01 [14:36:36]MH_I2C_Read... [14:36:36]Read from MH i2c: 01 07 00 [14:36:36]MH_I2C_Read... [14:36:36]Read from MH i2c: 01 07 00 A8 8C 00 00 00 00 00 FF 0F 49 [14:36:36]RasterBufferAndPrint [14:36:36]line Счет N : (1)342759 [14:36:36]line ИНН: 02508201610067 [14:36:36]line Контрольно-Кассовый Чек [14:36:36]line ПРОДАЖА [14:36:36]line ТРК (МРК, ГНК) : 52 [14:36:36]line Товар: 2710124500 [14:36:36]line Аи-95-К-3 [14:36:36]line 20.220 * 74.20 [14:36:36]line = 1500.32 [14:36:36]line НДС 12% НСП 1% [14:36:36]line > о реализуемом товаре [14:36:36]line ОКРУГЛЕНИЕ: -0.32 [14:36:36]line ИТОГО: 1500.00 [14:36:36]line Внесено: 1500.00 [14:36:36]line СДАЧА: 0.00 [14:36:36]line НСП 1% : 13.28 [14:36:36]line НДС 12% : 159.33 [14:36:36]line Наличными: 1500.00 [14:36:36]line Безнал.: 0.00 [14:36:36]line Место: АЗС № 78 "Партнер Нефть" [14:36:36]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [14:36:36]line СНО: Общий режим [14:36:36]line Чек 148 20.10.2024 14:36 [14:36:36]line Смена: 114 ФФД: 1.0 [14:36:36]line ЗНМ: 0300000137 [14:36:36]line РНМ: 0000000000186857 [14:36:36]line Версия ККМ: v1.0 [14:36:36]line ФМ: 0000000002094219 [14:36:36]line ФД: 30366 [14:36:36]line ФПД: 43827114863735 [14:36:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T143645&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30366&fm=43827114863735&tin=02508201610067®Number=0000000000186857&sum=150000 [14:36:37]OFD Sender: Processing packet 30366 [packets to send 10, broken 9] [14:36:37]ProducePacketName [14:36:37]name=ofd_packets/00030366 [14:36:37]OFD Sender: To server: pG, [14:36:37]CommunicateWithHost lk.salyk.kg:30040 [14:36:37]ConnectInit lk.salyk.kg [14:36:37]written 0, free lines is 4095 [14:36:37]Connected sock=10 [14:36: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 71 A5 07 01 D5 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 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 94 00 00 00 F4 03 04 00 7D 15 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 27 DC 4B 9C EC 77 E4 76 5E FF 49 5A 52 86 [14:36: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 1F 3B 47 00 FA 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 9E 76 00 00 F4 03 04 00 00 C0 14 67 B6 04 01 00 00 75 D7 7B 02 6D 6E 41 87 [14:36:37]CommunicateWithHost err = 0 [14:36:37]CheckOFDResponse [14:36:37]1017 (14) - 77093643461234 [14:36:37]1041 (16) - 0000000002094219 [14:36:37]1040 (4) - 30366 [14:36:37]1012 (4) - 20.10.2024 08:32 [14:36:37]1206 (1) - 0 [14:36:37]OFD Sender: Remove packet 30366 [14:36:37]ProducePacketName [14:36:37]name=ofd_packets/00030366 [14:36:37]NVStorageDeleteData [14:36:37]Write to MH i2c: 01 00 00 D3 8C 5F [14:36:37]Write i2c OK [14:36:37]MH_I2C_Read... [14:36:37]Read from MH i2c: 01 [14:36:37]MH_I2C_Read... [14:36:37]Read from MH i2c: 01 07 00 [14:36:37]MH_I2C_Read... [14:36:37]Read from MH i2c: 01 07 00 D3 8C 00 00 00 00 00 EC 0C 5E [14:36:37]RasterBufferAndPrint [14:36:37]line [14:36:37]line [14:36:37]line [14:36:37]line [14:36:37]line [14:36:37]written 0, free lines is 3315 [14:36:37]MH_Cut [14:36:37]Write to MH i2c: D1 01 00 DA 8C 01 38 [14:36:37]Write i2c OK [14:36:37]MH_I2C_Read... [14:36:37]Read from MH i2c: D1 [14:36:37]MH_I2C_Read... [14:36:37]Read from MH i2c: D1 01 00 [14:36:37]MH_I2C_Read... [14:36:37]Read from MH i2c: D1 01 00 DA 8C 00 37 [14:36:37]Write to MH i2c: 01 00 00 DB 8C 67 [14:36:37]Write i2c OK [14:36:37]MH_I2C_Read... [14:36:38]OFD Sender: No OFD packet to send [14:36:38]*** Cut start [14:36:38]*** Partial cut [14:36:38]*** CUTSNS_PIN = 1 [14:36:38]*** CUTSNS_PIN = 0 [14:36:38]*** Brake cut motor [14:36:38]Read from MH i2c: 01 [14:36:38]MH_I2C_Read... [14:36:38]*** Stop cut motor [14:36:38]*** Cut end [14:36:38]Read from MH i2c: 01 07 00 [14:36:38]MH_I2C_Read... [14:36:38]Read from MH i2c: 01 07 00 DB 8C 00 00 00 00 00 FF 0F 7C [14:36:38]process_action close_receipt done [14:36:38]requested_data is exist [14:36:38]produce_requested_data [14:36:38]requested_item fm.sn is exist - process it [14:36:38]wFMCommunicate request_size=4 [14:36:38]MH_SAM_APDU [14:36:38]CAPDU: 80 11 00 00 [14:36:38]Write to MH i2c: E2 08 00 DC 8C 80 11 00 00 00 00 00 00 E2 [14:36:38]Write i2c OK [14:36:38]MH_I2C_Read... [14:36:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:36:39]Read from MH i2c: E2 [14:36:39]MH_I2C_Read... [14:36:39]Read from MH i2c: E2 17 00 [14:36:39]MH_I2C_Read... [14:36:39]Read from MH i2c: E2 17 00 DC 8C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 30 [14:36: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:36:39]wFMCommunicate OK [14:36:39]requested_item fd.num is exist - process it [14:36:39]SAM_PROTO_GetFieldsCounters [14:36:39]wFMCommunicate request_size=4 [14:36:39]MH_SAM_APDU [14:36:39]CAPDU: 80 13 00 00 [14:36:39]Write to MH i2c: E2 08 00 DD 8C 80 13 00 00 00 00 00 00 E5 [14:36:39]Write i2c OK [14:36:39]MH_I2C_Read... [14:36:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:36:39]Read from MH i2c: E2 [14:36:39]MH_I2C_Read... [14:36:39]Read from MH i2c: E2 62 00 [14:36:39]MH_I2C_Read... [14:36:39]Read from MH i2c: E2 62 00 DD 8C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 4D [14:36: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 9E 76 00 00 0E 04 04 00 72 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 [14:36:39]wFMCommunicate OK [14:36:39]SAM_PROTO_GetFieldsCounters done [14:36:39]requested_item shift.num is exist - process it [14:36:39]requested_item shift.opened is exist - process it [14:36:39]req_shift_opened [14:36:39]FM_GetShiftState [14:36:39]SAM_PROTO_GetShiftState [14:36:39]wFMCommunicate request_size=4 [14:36:39]MH_SAM_APDU [14:36:39]CAPDU: 80 13 01 00 [14:36:39]Write to MH i2c: E2 08 00 DE 8C 80 13 01 00 00 00 00 00 E7 [14:36:39]Write i2c OK [14:36:39]MH_I2C_Read... [14:36:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:36:39]Read from MH i2c: E2 [14:36:39]MH_I2C_Read... [14:36:39]Read from MH i2c: E2 0E 00 [14:36:39]MH_I2C_Read... [14:36:39]Read from MH i2c: E2 0E 00 DE 8C 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 CD [14:36:39]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [14:36:39]wFMCommunicate OK [14:36:39]SAM_PROTO_GetShiftState done [14:36:39]FM_GetShiftState done [14:36:39]req_shift_opened done [14:36:39]requested_item shift.open_date is exist - process it [14:36:39]req_shift_open_date [14:36:39]req_shift_open_date done [14:36:39]produce_requested_data done [14:36:39]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30366,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [14:36:39]process_action_free close_receipt [14:36:39]json_value_free [14:36:39]json_value_free done [14:36:39]process_json_proto returns [14:36:39]Send response to host [14:36:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30366,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [14:36:39]free response buf [14:36:39]execute_script done [14:36:39]execute_script returns [14:36:39]free content buf [14:36:39]Sock 7.Close socket [14:36:39]Sock 7.Thread stoped [14:36:39]accept exits with 9 [14:36:39]New connection [14:36:39]New thread 3067370852 created [14:36:39]Thread 3067514212 joined [14:36:39]Waiting for new connection... [14:36:39] Sock 9.Parse request [14:36:39]Sock 9.Check first char [14:36:39]Sock 9.First char is OK [14:36:39]request: POST /json_proto HTTP/1.0 [14:36:39]Method: POST [14:36:39]URL: /json_proto [14:36:39]Method is POST - this is cgi request [14:36:39]url: /json_proto [14:36:39]query_string will be loaded in cgi processing [14:36:39]execute_cgi json_proto POST (null) [14:36:39]execute_cgi path=json_proto method=POST [14:36:39]POST find Content-Length [14:36:39]Host: 172.17.51.3:8080 [14:36:39]Content-Length: 674 [14:36:39]Content-Type: application/json [14:36:39] [14:36:39]POST finish read [14:36:39]Found Content-Length = 674 [14:36:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342760", "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:36:39]execute_script... [14:36: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)342760", "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:36:39]POST & json_proto [14:36:39]process_json_proto [14:36:39]json parsed OK: [14:36:39]protocol is kg_v1.0 [14:36:39]action value=close_receipt [14:36:39]process_action close_receipt [14:36:39]cmd_close_receipt [14:36:39]MH_GetDate [14:36:39]Write to MH i2c: F0 00 00 DF 8C 5A [14:36:39]Write i2c OK [14:36:39]MH_I2C_Read... [14:36:39]Read from MH i2c: F0 [14:36:39]MH_I2C_Read... [14:36:39]Read from MH i2c: F0 09 00 [14:36:39]MH_I2C_Read... [14:36:39]Read from MH i2c: F0 09 00 DF 8C 00 81 15 15 67 04 C1 95 66 35 [14:36:39]GetLastDocTimeStamp 1729435005 [14:36:39]current date 1729435009 [14:36:39]FM_GetShiftState [14:36:39]SAM_PROTO_GetShiftState [14:36:39]wFMCommunicate request_size=4 [14:36:39]MH_SAM_APDU [14:36:39]CAPDU: 80 13 01 00 [14:36:39]Write to MH i2c: E2 08 00 E0 8C 80 13 01 00 00 00 00 00 E9 [14:36:39]Write i2c OK [14:36:39]MH_I2C_Read... [14:36:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:36:39]Read from MH i2c: E2 [14:36:39]MH_I2C_Read... [14:36:39]Read from MH i2c: E2 0E 00 [14:36:39]MH_I2C_Read... [14:36:39]Read from MH i2c: E2 0E 00 E0 8C 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 CF [14:36:39]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [14:36:39]wFMCommunicate OK [14:36:39]SAM_PROTO_GetShiftState done [14:36:39]FM_GetShiftState done [14:36:39]opened in 1729384718 [14:36:39]opened+sec_in_day 1729471118 [14:36:39]quantity*price = 50063 [14:36:39]sum+1 = 50064 [14:36:39]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 СНО: Общий режим Чек 149 20.10.2024 14:36 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30367 ФПД: 155153767273997 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T143649&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30367&fm=155153767273997&tin=02508201610067®Number=0000000000186857&sum=50000 [14:36:41]StoreToDocumentArchive [14:36:41]shift 114 fd 30367 [14:36:41]save to /storage/0114/doc_00030367 [14:36:41]save last doc name /storage/0114/doc_00030367 to /storage/kkm_last_doc_name [14:36:41]save OK [14:36:41]Clear old archive folders... [14:36:41]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:36:41]tlvbuf is B6FE1230 [14:36:41]SAM_PROTO_ClearQueue [14:36:41]wFMCommunicate request_size=4 [14:36:41]MH_SAM_APDU [14:36:41]CAPDU: 80 09 00 00 [14:36:41]Write to MH i2c: E2 08 00 ED 8C 80 09 00 00 00 00 00 00 EB [14:36:41]Write i2c OK [14:36:41]MH_I2C_Read... [14:36:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:36:41]Read from MH i2c: E2 [14:36:41]MH_I2C_Read... [14:36:41]Read from MH i2c: E2 03 00 [14:36:41]MH_I2C_Read... [14:36:41]Read from MH i2c: E2 03 00 ED 8C 00 90 00 ED [14:36:41]RAPDU: 90 00 [14:36:41]wFMCommunicate OK [14:36:41]SAM_PROTO_ClearQueue done [14:36:41]KKMCreateOFDPacket [14:36:41]OFDProtocolAddRootSTLVToBuf [14:36:41]FM_MakeSignedData [14:36:41]FM_MakeSignedData [14:36:41]SAM_PROTO_SignData [14:36:41]wFMCommunicate request_size=4 [14:36:41]MH_SAM_APDU [14:36:41]CAPDU: 80 0D 01 02 [14:36:41]Write to MH i2c: E2 08 00 EE 8C 80 0D 01 02 00 00 00 00 F3 [14:36:41]Write i2c OK [14:36:41]MH_I2C_Read... [14:36:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:36:41]Read from MH i2c: E2 [14:36:41]MH_I2C_Read... [14:36:41]Read from MH i2c: E2 03 00 [14:36:41]MH_I2C_Read... [14:36:41]Read from MH i2c: E2 03 00 EE 8C 00 90 00 EE [14:36:41]RAPDU: 90 00 [14:36:41]wFMCommunicate OK [14:36:41]wFMCommunicate request_size=255 [14:36:41]MH_SAM_APDU [14:36:41]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 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 95 00 00 00 F4 03 04 00 81 15 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 8D 1C 8D 2F [14:36:41]Write to MH i2c: E2 02 01 EF 8C 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 95 00 00 00 F4 03 04 00 81 15 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 8D 1C 8D 2F 00 00 95 [14:36:41]Write i2c OK [14:36:41]MH_I2C_Read... [14:36:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:36:41]Read from MH i2c: E2 [14:36:41]MH_I2C_Read... [14:36:41]Read from MH i2c: E2 03 00 [14:36:41]MH_I2C_Read... [14:36:41]Read from MH i2c: E2 03 00 EF 8C 00 90 00 EF [14:36:41]RAPDU: 90 00 [14:36:41]wFMCommunicate OK [14:36:41]wFMCommunicate request_size=7 [14:36:41]MH_SAM_APDU [14:36:41]CAPDU: 80 0D 02 02 02 16 0D [14:36:41]Write to MH i2c: E2 0A 00 F0 8C 80 0D 02 02 02 00 16 0D 00 00 1D [14:36:41]Write i2c OK [14:36:41]MH_I2C_Read... [14:36:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:36:41]Read from MH i2c: E2 [14:36:41]MH_I2C_Read... [14:36:41]Read from MH i2c: E2 03 00 [14:36:41]MH_I2C_Read... [14:36:41]Read from MH i2c: E2 03 00 F0 8C 00 90 00 F0 [14:36:41]RAPDU: 90 00 [14:36:41]wFMCommunicate OK [14:36:41]wFMCommunicate request_size=4 [14:36:41]MH_SAM_APDU [14:36:41]CAPDU: 80 0D 03 02 [14:36:41]Write to MH i2c: E2 08 00 F1 8C 80 0D 03 02 00 00 00 00 F8 [14:36:41]Write i2c OK [14:36:41]MH_I2C_Read... [14:36:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:36:41]Read from MH i2c: E2 [14:36:41]MH_I2C_Read... [14:36:41]Read from MH i2c: E2 0B 00 [14:36:41]MH_I2C_Read... [14:36:41]Read from MH i2c: E2 0B 00 F1 8C 00 20 26 BA D6 0A 57 CB 01 90 00 FC [14:36:41]RAPDU: 20 26 BA D6 0A 57 CB 01 90 00 [14:36:41]wFMCommunicate OK [14:36:41]SAM_PROTO_SignData done [14:36:41]FM_MakeSignedData done [14:36:41]CreateOFDProtocolMessage [14:36:41]wFMCommunicate request_size=4 [14:36:41]MH_SAM_APDU [14:36:41]CAPDU: 80 11 00 00 [14:36:41]Write to MH i2c: E2 08 00 F2 8C 80 11 00 00 00 00 00 00 F8 [14:36:41]Write i2c OK [14:36:41]MH_I2C_Read... [14:36:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:36:41]Read from MH i2c: E2 [14:36:41]MH_I2C_Read... [14:36:41]Read from MH i2c: E2 17 00 [14:36:41]MH_I2C_Read... [14:36:41]Read from MH i2c: E2 17 00 F2 8C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 46 [14:36:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [14:36:41]wFMCommunicate OK [14:36:41]CreateOFDProtocolMessage done [14:36:41]OFDSenderStorePacket 30367 [14:36:41]StoreOFDPacket docnum=30367 [14:36: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 0C 01 00 00 D5 43 04 01 C5 AE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 95 00 00 00 F4 03 04 00 81 15 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 8D 1C 8D 2F 16 0D 20 26 BA D6 0A 57 CB 01 [14:36:41]CheckFolder [14:36:41]dirname=/storage/ofd_packets [14:36:41]CheckFolder done [14:36:41]ProducePacketName [14:36:41]name=ofd_packets/00030367 [14:36:41]NVStorageSaveData ofd_packets/00030367 [14:36:41]File name is /storage/ofd_packets/00030367 [14:36:41]Write 298 bytes [14:36:41]NVStorageSaveData done [14:36:41]OFDSenderStorePacket done [14:36:41]KKMCreateOFDPacket done [14:36:41]NVStorageSaveData kkm_last_timestamp [14:36:41]File name is /storage/kkm_last_timestamp [14:36:41]Write 4 bytes [14:36:41]NVStorageSaveData done [14:36:41]ExternCall_PrintAddStr [14:36:41]wPrintStart [14:36:41]Write to MH i2c: 01 00 00 F3 8C 7F [14:36:41]Write i2c OK [14:36:41]MH_I2C_Read... [14:36:41]Read from MH i2c: 01 [14:36:41]MH_I2C_Read... [14:36:41]Read from MH i2c: 01 07 00 [14:36:41]MH_I2C_Read... [14:36:41]Read from MH i2c: 01 07 00 F3 8C 00 00 00 00 00 FF 0F 94 [14:36:41]RasterBufferAndPrint [14:36:41]line Счет N : (1)342760 [14:36:41]line ИНН: 02508201610067 [14:36:41]line Контрольно-Кассовый Чек [14:36:41]line ПРОДАЖА [14:36:41]line ТРК (МРК, ГНК) : 34 [14:36:41]line Товар: 2710194210 [14:36:41]line ДТ-К-2 [14:36:41]line 6.570 * 76.20 [14:36:41]line = 500.63 [14:36:41]line НДС 12% НСП 1% [14:36:41]line > о реализуемом товаре [14:36:41]line ОКРУГЛЕНИЕ: -0.63 [14:36:41]line ИТОГО: 500.00 [14:36:41]line Внесено: 500.00 [14:36:41]line СДАЧА: 0.00 [14:36:41]line НСП 1% : 4.43 [14:36:41]line НДС 12% : 53.16 [14:36:41]line Наличными: 500.00 [14:36:41]line Безнал.: 0.00 [14:36:41]line Место: АЗС № 78 "Партнер Нефть" [14:36:41]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [14:36:41]line СНО: Общий режим [14:36:41]line Чек 149 20.10.2024 14:36 [14:36:41]line Смена: 114 ФФД: 1.0 [14:36:41]line ЗНМ: 0300000137 [14:36:41]line РНМ: 0000000000186857 [14:36:41]line Версия ККМ: v1.0 [14:36:41]line ФМ: 0000000002094219 [14:36:41]line ФД: 30367 [14:36:41]line ФПД: 155153767273997 [14:36:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T143649&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30367&fm=155153767273997&tin=02508201610067®Number=0000000000186857&sum=50000 [14:36:41]written 0, free lines is 4095 [14:36:41]OFD Sender: Processing packet 30367 [packets to send 10, broken 9] [14:36:41]ProducePacketName [14:36:41]name=ofd_packets/00030367 [14:36:41]OFD Sender: To server: pG, [14:36:41]CommunicateWithHost lk.salyk.kg:30040 [14:36:41]ConnectInit lk.salyk.kg [14:36:41]Connected sock=10 [14:36: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 D5 43 04 01 C5 AE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 95 00 00 00 F4 03 04 00 81 15 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 8D 1C 8D 2F 16 0D 20 26 BA D6 0A 57 CB 01 [14:36: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 67 62 47 00 3E 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 9F 76 00 00 F4 03 04 00 05 C0 14 67 B6 04 01 00 00 ED CF 0E 1F A9 E9 24 98 [14:36:42]CommunicateWithHost err = 0 [14:36:42]CheckOFDResponse [14:36:42]1017 (14) - 77093643461234 [14:36:42]1041 (16) - 0000000002094219 [14:36:42]1040 (4) - 30367 [14:36:42]1012 (4) - 20.10.2024 08:32 [14:36:42]1206 (1) - 0 [14:36:42]OFD Sender: Remove packet 30367 [14:36:42]ProducePacketName [14:36:42]name=ofd_packets/00030367 [14:36:42]NVStorageDeleteData [14:36:42]Write to MH i2c: 01 00 00 1E 8D AB [14:36:42]Write i2c OK [14:36:42]MH_I2C_Read... [14:36:42]Read from MH i2c: 01 [14:36:42]MH_I2C_Read... [14:36:42]Read from MH i2c: 01 07 00 [14:36:42]MH_I2C_Read... [14:36:42]Read from MH i2c: 01 07 00 1E 8D 00 00 00 00 00 F0 0C AE [14:36:42]RasterBufferAndPrint [14:36:42]line [14:36:42]line [14:36:42]line [14:36:42]line [14:36:42]line [14:36:42]written 0, free lines is 3327 [14:36:42]MH_Cut [14:36:42]Write to MH i2c: D1 01 00 25 8D 01 84 [14:36:42]Write i2c OK [14:36:42]MH_I2C_Read... [14:36:42]Read from MH i2c: D1 [14:36:42]MH_I2C_Read... [14:36:42]Read from MH i2c: D1 01 00 [14:36:42]MH_I2C_Read... [14:36:42]Read from MH i2c: D1 01 00 25 8D 00 83 [14:36:42]Write to MH i2c: 01 00 00 26 8D B3 [14:36:42]Write i2c OK [14:36:42]MH_I2C_Read... [14:36:42]OFD Sender: No OFD packet to send [14:36:42]*** Cut start [14:36:42]*** Partial cut [14:36:42]*** CUTSNS_PIN = 1 [14:36:42]*** CUTSNS_PIN = 0 [14:36:43]*** Brake cut motor [14:36:43]Read from MH i2c: 01 [14:36:43]MH_I2C_Read... [14:36:43]*** Stop cut motor [14:36:43]*** Cut end [14:36:43]Read from MH i2c: 01 07 00 [14:36:43]MH_I2C_Read... [14:36:43]Read from MH i2c: 01 07 00 26 8D 00 00 00 00 00 FF 0F C8 [14:36:43]process_action close_receipt done [14:36:43]requested_data is exist [14:36:43]produce_requested_data [14:36:43]requested_item fm.sn is exist - process it [14:36:43]wFMCommunicate request_size=4 [14:36:43]MH_SAM_APDU [14:36:43]CAPDU: 80 11 00 00 [14:36:43]Write to MH i2c: E2 08 00 27 8D 80 11 00 00 00 00 00 00 2E [14:36:43]Write i2c OK [14:36:43]MH_I2C_Read... [14:36:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:36:43]Read from MH i2c: E2 [14:36:43]MH_I2C_Read... [14:36:43]Read from MH i2c: E2 17 00 [14:36:43]MH_I2C_Read... [14:36:43]Read from MH i2c: E2 17 00 27 8D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 7C [14:36:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [14:36:43]wFMCommunicate OK [14:36:43]requested_item fd.num is exist - process it [14:36:43]SAM_PROTO_GetFieldsCounters [14:36:43]wFMCommunicate request_size=4 [14:36:43]MH_SAM_APDU [14:36:43]CAPDU: 80 13 00 00 [14:36:43]Write to MH i2c: E2 08 00 28 8D 80 13 00 00 00 00 00 00 31 [14:36:43]Write i2c OK [14:36:43]MH_I2C_Read... [14:36:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:36:43]Read from MH i2c: E2 [14:36:43]MH_I2C_Read... [14:36:43]Read from MH i2c: E2 62 00 [14:36:43]MH_I2C_Read... [14:36:43]Read from MH i2c: E2 62 00 28 8D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 9D [14:36: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 9F 76 00 00 0E 04 04 00 72 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 [14:36:43]wFMCommunicate OK [14:36:43]SAM_PROTO_GetFieldsCounters done [14:36:43]requested_item shift.num is exist - process it [14:36:43]requested_item shift.opened is exist - process it [14:36:43]req_shift_opened [14:36:43]FM_GetShiftState [14:36:43]SAM_PROTO_GetShiftState [14:36:43]wFMCommunicate request_size=4 [14:36:43]MH_SAM_APDU [14:36:43]CAPDU: 80 13 01 00 [14:36:43]Write to MH i2c: E2 08 00 29 8D 80 13 01 00 00 00 00 00 33 [14:36:43]Write i2c OK [14:36:43]MH_I2C_Read... [14:36:43]Read from MH i2c: E2 [14:36:43]MH_I2C_Read... [14:36:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:36:43]Read from MH i2c: E2 0E 00 [14:36:43]MH_I2C_Read... [14:36:43]Read from MH i2c: E2 0E 00 29 8D 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 19 [14:36:43]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [14:36:43]wFMCommunicate OK [14:36:43]SAM_PROTO_GetShiftState done [14:36:43]FM_GetShiftState done [14:36:43]req_shift_opened done [14:36:43]requested_item shift.open_date is exist - process it [14:36:43]req_shift_open_date [14:36:43]req_shift_open_date done [14:36:43]produce_requested_data done [14:36:43]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30367,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [14:36:43]process_action_free close_receipt [14:36:43]json_value_free [14:36:43]json_value_free done [14:36:43]process_json_proto returns [14:36:43]Send response to host [14:36:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30367,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [14:36:43]free response buf [14:36:43]execute_script done [14:36:43]execute_script returns [14:36:43]free content buf [14:36:43]Sock 9.Close socket [14:36:43]Sock 9.Thread stoped [14:36:47]OFD Sender: No OFD packet to send [14:36:52]OFD Sender: No OFD packet to send [14:36:57]OFD Sender: No OFD packet to send [14:37:02]OFD Sender: No OFD packet to send [14:37:07]OFD Sender: No OFD packet to send [14:37:12]OFD Sender: No OFD packet to send [14:37:17]OFD Sender: No OFD packet to send [14:37:22]OFD Sender: No OFD packet to send [14:37:27]OFD Sender: No OFD packet to send [14:37:32]OFD Sender: No OFD packet to send [14:37:37]OFD Sender: No OFD packet to send [14:37:42]OFD Sender: No OFD packet to send [14:37:47]OFD Sender: No OFD packet to send [14:37:52]OFD Sender: No OFD packet to send [14:37:57]OFD Sender: No OFD packet to send [14:38:02]OFD Sender: No OFD packet to send [14:38:07]OFD Sender: No OFD packet to send [14:38:12]OFD Sender: No OFD packet to send [14:38:17]OFD Sender: No OFD packet to send [14:38:22]OFD Sender: No OFD packet to send [14:38:27]OFD Sender: No OFD packet to send [14:38:32]OFD Sender: No OFD packet to send [14:38:37]OFD Sender: No OFD packet to send [14:38:42]OFD Sender: No OFD packet to send [14:38:47]OFD Sender: No OFD packet to send [14:38:52]OFD Sender: No OFD packet to send [14:38:57]OFD Sender: No OFD packet to send [14:39:02]OFD Sender: No OFD packet to send [14:39:07]OFD Sender: No OFD packet to send [14:39:12]OFD Sender: No OFD packet to send [14:39:17]OFD Sender: No OFD packet to send [14:39:22]OFD Sender: No OFD packet to send [14:39:27]OFD Sender: No OFD packet to send [14:39:32]OFD Sender: No OFD packet to send [14:39:37]OFD Sender: No OFD packet to send [14:39:42]OFD Sender: No OFD packet to send [14:39:47]OFD Sender: No OFD packet to send [14:39:52]OFD Sender: No OFD packet to send [14:39:57]OFD Sender: No OFD packet to send [14:40:02]OFD Sender: No OFD packet to send [14:40:07]OFD Sender: No OFD packet to send [14:40:12]OFD Sender: No OFD packet to send [14:40:17]OFD Sender: No OFD packet to send [14:40:22]OFD Sender: No OFD packet to send [14:40:27]OFD Sender: No OFD packet to send [14:40:32]OFD Sender: No OFD packet to send [14:40:37]OFD Sender: No OFD packet to send [14:40:42]OFD Sender: No OFD packet to send [14:40:47]OFD Sender: No OFD packet to send [14:40:52]OFD Sender: No OFD packet to send [14:40:57]OFD Sender: No OFD packet to send [14:41:02]OFD Sender: No OFD packet to send [14:41:04]accept exits with 7 [14:41:04]New connection [14:41:04]New thread 3067514212 created [14:41:04]Thread 3067370852 joined [14:41:04]Waiting for new connection... [14:41:04] Sock 7.Parse request [14:41:04]Sock 7.Check first char [14:41:04]Sock 7.First char is OK [14:41:04]request: POST /json_proto HTTP/1.0 [14:41:04]Method: POST [14:41:04]URL: /json_proto [14:41:04]Method is POST - this is cgi request [14:41:04]url: /json_proto [14:41:04]query_string will be loaded in cgi processing [14:41:04]execute_cgi json_proto POST (null) [14:41:04]execute_cgi path=json_proto method=POST [14:41:04]POST find Content-Length [14:41:04]Host: 172.17.51.3:8080 [14:41:04]Content-Length: 678 [14:41:04]Content-Type: application/json [14:41:04] [14:41:04]POST finish read [14:41:04]Found Content-Length = 678 [14:41:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342761", "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:41:04]execute_script... [14:41: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)342761", "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:41:04]POST & json_proto [14:41:04]process_json_proto [14:41:04]json parsed OK: [14:41:04]protocol is kg_v1.0 [14:41:04]action value=close_receipt [14:41:04]process_action close_receipt [14:41:04]cmd_close_receipt [14:41:04]MH_GetDate [14:41:04]Write to MH i2c: F0 00 00 2A 8D A6 [14:41:04]Write i2c OK [14:41:04]MH_I2C_Read... [14:41:04]Read from MH i2c: F0 [14:41:04]MH_I2C_Read... [14:41:04]Read from MH i2c: F0 09 00 [14:41:04]MH_I2C_Read... [14:41:04]Read from MH i2c: F0 09 00 2A 8D 00 8A 16 15 67 04 C1 95 66 8B [14:41:04]GetLastDocTimeStamp 1729435009 [14:41:04]current date 1729435274 [14:41:04]FM_GetShiftState [14:41:04]SAM_PROTO_GetShiftState [14:41:04]wFMCommunicate request_size=4 [14:41:04]MH_SAM_APDU [14:41:04]CAPDU: 80 13 01 00 [14:41:04]Write to MH i2c: E2 08 00 2B 8D 80 13 01 00 00 00 00 00 35 [14:41:04]Write i2c OK [14:41:04]MH_I2C_Read... [14:41:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:41:04]Read from MH i2c: E2 [14:41:04]MH_I2C_Read... [14:41:04]Read from MH i2c: E2 0E 00 [14:41:04]MH_I2C_Read... [14:41:04]Read from MH i2c: E2 0E 00 2B 8D 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 1B [14:41:04]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [14:41:04]wFMCommunicate OK [14:41:04]SAM_PROTO_GetShiftState done [14:41:04]FM_GetShiftState done [14:41:04]opened in 1729384718 [14:41:04]opened+sec_in_day 1729471118 [14:41:04]quantity*price = 70044 [14:41:04]sum+1 = 70045 [14:41:04]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 СНО: Общий режим Чек 150 20.10.2024 14:41 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30368 ФПД: 94671714554944 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T144114&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30368&fm=94671714554944&tin=02508201610067®Number=0000000000186857&sum=70000 [14:41:05]StoreToDocumentArchive [14:41:05]shift 114 fd 30368 [14:41:05]save to /storage/0114/doc_00030368 [14:41:05]save last doc name /storage/0114/doc_00030368 to /storage/kkm_last_doc_name [14:41:05]save OK [14:41:05]Clear old archive folders... [14:41:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:41:05]tlvbuf is 00A79380 [14:41:05]SAM_PROTO_ClearQueue [14:41:05]wFMCommunicate request_size=4 [14:41:05]MH_SAM_APDU [14:41:05]CAPDU: 80 09 00 00 [14:41:05]Write to MH i2c: E2 08 00 38 8D 80 09 00 00 00 00 00 00 37 [14:41:05]Write i2c OK [14:41:05]MH_I2C_Read... [14:41:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:41:05]Read from MH i2c: E2 [14:41:05]MH_I2C_Read... [14:41:05]Read from MH i2c: E2 03 00 [14:41:05]MH_I2C_Read... [14:41:05]Read from MH i2c: E2 03 00 38 8D 00 90 00 39 [14:41:05]RAPDU: 90 00 [14:41:05]wFMCommunicate OK [14:41:05]SAM_PROTO_ClearQueue done [14:41:05]KKMCreateOFDPacket [14:41:05]OFDProtocolAddRootSTLVToBuf [14:41:05]FM_MakeSignedData [14:41:05]FM_MakeSignedData [14:41:05]SAM_PROTO_SignData [14:41:05]wFMCommunicate request_size=4 [14:41:05]MH_SAM_APDU [14:41:05]CAPDU: 80 0D 01 02 [14:41:05]Write to MH i2c: E2 08 00 39 8D 80 0D 01 02 00 00 00 00 3F [14:41:05]Write i2c OK [14:41:05]MH_I2C_Read... [14:41:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:41:05]Read from MH i2c: E2 [14:41:05]MH_I2C_Read... [14:41:05]Read from MH i2c: E2 03 00 [14:41:05]MH_I2C_Read... [14:41:05]Read from MH i2c: E2 03 00 39 8D 00 90 00 3A [14:41:05]RAPDU: 90 00 [14:41:05]wFMCommunicate OK [14:41:05]wFMCommunicate request_size=255 [14:41:05]MH_SAM_APDU [14:41: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 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 96 00 00 00 F4 03 04 00 8A 16 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 56 [14:41:05]Write to MH i2c: E2 02 01 3A 8D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 96 00 00 00 F4 03 04 00 8A 16 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 56 00 00 70 [14:41:05]Write i2c OK [14:41:05]MH_I2C_Read... [14:41:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:41:06]Read from MH i2c: E2 [14:41:06]MH_I2C_Read... [14:41:06]Read from MH i2c: E2 03 00 [14:41:06]MH_I2C_Read... [14:41:06]Read from MH i2c: E2 03 00 3A 8D 00 90 00 3B [14:41:06]RAPDU: 90 00 [14:41:06]wFMCommunicate OK [14:41:06]wFMCommunicate request_size=10 [14:41:06]MH_SAM_APDU [14:41:06]CAPDU: 80 0D 02 02 05 1A 79 EA 94 40 [14:41:06]Write to MH i2c: E2 0D 00 3B 8D 80 0D 02 02 05 00 1A 79 EA 94 40 00 00 9D [14:41:06]Write i2c OK [14:41:06]MH_I2C_Read... [14:41:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:41:06]Read from MH i2c: E2 [14:41:06]MH_I2C_Read... [14:41:06]Read from MH i2c: E2 03 00 [14:41:06]MH_I2C_Read... [14:41:06]Read from MH i2c: E2 03 00 3B 8D 00 90 00 3C [14:41:06]RAPDU: 90 00 [14:41:06]wFMCommunicate OK [14:41:06]wFMCommunicate request_size=4 [14:41:06]MH_SAM_APDU [14:41:06]CAPDU: 80 0D 03 02 [14:41:06]Write to MH i2c: E2 08 00 3C 8D 80 0D 03 02 00 00 00 00 44 [14:41:06]Write i2c OK [14:41:06]MH_I2C_Read... [14:41:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:41:06]Read from MH i2c: E2 [14:41:06]MH_I2C_Read... [14:41:06]Read from MH i2c: E2 0B 00 [14:41:06]MH_I2C_Read... [14:41:06]Read from MH i2c: E2 0B 00 3C 8D 00 3B D7 B3 13 45 26 98 A2 90 00 C2 [14:41:06]RAPDU: 3B D7 B3 13 45 26 98 A2 90 00 [14:41:06]wFMCommunicate OK [14:41:06]SAM_PROTO_SignData done [14:41:06]FM_MakeSignedData done [14:41:06]CreateOFDProtocolMessage [14:41:06]wFMCommunicate request_size=4 [14:41:06]MH_SAM_APDU [14:41:06]CAPDU: 80 11 00 00 [14:41:06]Write to MH i2c: E2 08 00 3D 8D 80 11 00 00 00 00 00 00 44 [14:41:06]Write i2c OK [14:41:06]MH_I2C_Read... [14:41:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:41:06]Read from MH i2c: E2 [14:41:06]MH_I2C_Read... [14:41:06]Read from MH i2c: E2 17 00 [14:41:06]MH_I2C_Read... [14:41:06]Read from MH i2c: E2 17 00 3D 8D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 92 [14:41:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [14:41:06]wFMCommunicate OK [14:41:06]CreateOFDProtocolMessage done [14:41:06]OFDSenderStorePacket 30368 [14:41:06]StoreOFDPacket docnum=30368 [14:41: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 D9 32 07 01 DA 35 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 96 00 00 00 F4 03 04 00 8A 16 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 56 1A 79 EA 94 40 3B D7 B3 13 45 26 98 A2 [14:41:06]CheckFolder [14:41:06]dirname=/storage/ofd_packets [14:41:06]CheckFolder done [14:41:06]ProducePacketName [14:41:06]name=ofd_packets/00030368 [14:41:06]NVStorageSaveData ofd_packets/00030368 [14:41:06]File name is /storage/ofd_packets/00030368 [14:41:06]Write 301 bytes [14:41:06]NVStorageSaveData done [14:41:06]OFDSenderStorePacket done [14:41:06]KKMCreateOFDPacket done [14:41:06]NVStorageSaveData kkm_last_timestamp [14:41:06]File name is /storage/kkm_last_timestamp [14:41:06]Write 4 bytes [14:41:06]NVStorageSaveData done [14:41:06]ExternCall_PrintAddStr [14:41:06]wPrintStart [14:41:06]Write to MH i2c: 01 00 00 3E 8D CB [14:41:06]Write i2c OK [14:41:06]MH_I2C_Read... [14:41:06]Read from MH i2c: 01 [14:41:06]MH_I2C_Read... [14:41:06]Read from MH i2c: 01 07 00 [14:41:06]MH_I2C_Read... [14:41:06]Read from MH i2c: 01 07 00 3E 8D 00 00 00 00 00 FF 0F E0 [14:41:06]RasterBufferAndPrint [14:41:06]line Счет N : (1)342761 [14:41:06]line ИНН: 02508201610067 [14:41:06]line Контрольно-Кассовый Чек [14:41:06]line ПРОДАЖА [14:41:06]line ТРК (МРК, ГНК) : 53 [14:41:06]line Товар: 2710124130 [14:41:06]line Аи-92-К-2 [14:41:06]line 10.470 * 66.90 [14:41:06]line = 700.44 [14:41:06]line НДС 12% НСП 1% [14:41:06]line > о реализуемом товаре [14:41:06]line ОКРУГЛЕНИЕ: -0.44 [14:41:06]line ИТОГО: 700.00 [14:41:06]line Внесено: 700.00 [14:41:06]line СДАЧА: 0.00 [14:41:06]line НСП 1% : 6.20 [14:41:06]line НДС 12% : 74.38 [14:41:06]line Наличными: 700.00 [14:41:06]line Безнал.: 0.00 [14:41:06]line Место: АЗС № 78 "Партнер Нефть" [14:41:06]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [14:41:06]line СНО: Общий режим [14:41:06]line Чек 150 20.10.2024 14:41 [14:41:06]line Смена: 114 ФФД: 1.0 [14:41:06]line ЗНМ: 0300000137 [14:41:06]line РНМ: 0000000000186857 [14:41:06]line Версия ККМ: v1.0 [14:41:06]line ФМ: 0000000002094219 [14:41:06]line ФД: 30368 [14:41:06]line ФПД: 94671714554944 [14:41:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T144114&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30368&fm=94671714554944&tin=02508201610067®Number=0000000000186857&sum=70000 [14:41:06]OFD Sender: Processing packet 30368 [packets to send 10, broken 9] [14:41:06]ProducePacketName [14:41:06]name=ofd_packets/00030368 [14:41:06]OFD Sender: To server: pG, [14:41:06]CommunicateWithHost lk.salyk.kg:30040 [14:41:06]ConnectInit lk.salyk.kg [14:41:06]written 0, free lines is 4095 [14:41:06]Connected sock=10 [14:41: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 D9 32 07 01 DA 35 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 96 00 00 00 F4 03 04 00 8A 16 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 56 1A 79 EA 94 40 3B D7 B3 13 45 26 98 A2 [14:41: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 04 70 47 00 87 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 A0 76 00 00 F4 03 04 00 0E C1 14 67 B6 04 01 00 00 05 92 0D B5 45 C4 46 82 [14:41:06]CommunicateWithHost err = 0 [14:41:06]CheckOFDResponse [14:41:06]1017 (14) - 77093643461234 [14:41:06]1041 (16) - 0000000002094219 [14:41:06]1040 (4) - 30368 [14:41:06]1012 (4) - 20.10.2024 08:36 [14:41:06]1206 (1) - 0 [14:41:06]OFD Sender: Remove packet 30368 [14:41:06]ProducePacketName [14:41:06]name=ofd_packets/00030368 [14:41:06]NVStorageDeleteData [14:41:07]Write to MH i2c: 01 00 00 69 8D F6 [14:41:07]Write i2c OK [14:41:07]MH_I2C_Read... [14:41:07]Read from MH i2c: 01 [14:41:07]MH_I2C_Read... [14:41:07]Read from MH i2c: 01 07 00 [14:41:07]MH_I2C_Read... [14:41:07]Read from MH i2c: 01 07 00 69 8D 00 00 00 00 00 F7 0C 00 [14:41:07]RasterBufferAndPrint [14:41:07]line [14:41:07]line [14:41:07]line [14:41:07]line [14:41:07]line [14:41:07]written 0, free lines is 3329 [14:41:07]MH_Cut [14:41:07]Write to MH i2c: D1 01 00 70 8D 01 CF [14:41:07]Write i2c OK [14:41:07]MH_I2C_Read... [14:41:07]Read from MH i2c: D1 [14:41:07]MH_I2C_Read... [14:41:07]Read from MH i2c: D1 01 00 [14:41:07]MH_I2C_Read... [14:41:07]Read from MH i2c: D1 01 00 70 8D 00 CE [14:41:07]Write to MH i2c: 01 00 00 71 8D FE [14:41:07]Write i2c OK [14:41:07]MH_I2C_Read... [14:41:07]OFD Sender: No OFD packet to send [14:41:07]*** Cut start [14:41:07]*** Partial cut [14:41:07]*** CUTSNS_PIN = 1 [14:41:07]*** CUTSNS_PIN = 0 [14:41:07]*** Brake cut motor [14:41:08]Read from MH i2c: 01 [14:41:08]MH_I2C_Read... [14:41:08]*** Stop cut motor [14:41:08]*** Cut end [14:41:08]Read from MH i2c: 01 07 00 [14:41:08]MH_I2C_Read... [14:41:08]Read from MH i2c: 01 07 00 71 8D 00 00 00 00 00 FF 0F 13 [14:41:08]process_action close_receipt done [14:41:08]requested_data is exist [14:41:08]produce_requested_data [14:41:08]requested_item fm.sn is exist - process it [14:41:08]wFMCommunicate request_size=4 [14:41:08]MH_SAM_APDU [14:41:08]CAPDU: 80 11 00 00 [14:41:08]Write to MH i2c: E2 08 00 72 8D 80 11 00 00 00 00 00 00 79 [14:41:08]Write i2c OK [14:41:08]MH_I2C_Read... [14:41:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:41:08]Read from MH i2c: E2 [14:41:08]MH_I2C_Read... [14:41:08]Read from MH i2c: E2 17 00 [14:41:08]MH_I2C_Read... [14:41:08]Read from MH i2c: E2 17 00 72 8D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 C7 [14:41:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [14:41:08]wFMCommunicate OK [14:41:08]requested_item fd.num is exist - process it [14:41:08]SAM_PROTO_GetFieldsCounters [14:41:08]wFMCommunicate request_size=4 [14:41:08]MH_SAM_APDU [14:41:08]CAPDU: 80 13 00 00 [14:41:08]Write to MH i2c: E2 08 00 73 8D 80 13 00 00 00 00 00 00 7C [14:41:08]Write i2c OK [14:41:08]MH_I2C_Read... [14:41:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:41:08]Read from MH i2c: E2 [14:41:08]MH_I2C_Read... [14:41:08]Read from MH i2c: E2 62 00 [14:41:08]MH_I2C_Read... [14:41:08]Read from MH i2c: E2 62 00 73 8D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 EC [14:41: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 A0 76 00 00 0E 04 04 00 72 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 [14:41:08]wFMCommunicate OK [14:41:08]SAM_PROTO_GetFieldsCounters done [14:41:08]requested_item shift.num is exist - process it [14:41:08]requested_item shift.opened is exist - process it [14:41:08]req_shift_opened [14:41:08]FM_GetShiftState [14:41:08]SAM_PROTO_GetShiftState [14:41:08]wFMCommunicate request_size=4 [14:41:08]MH_SAM_APDU [14:41:08]CAPDU: 80 13 01 00 [14:41:08]Write to MH i2c: E2 08 00 74 8D 80 13 01 00 00 00 00 00 7E [14:41:08]Write i2c OK [14:41:08]MH_I2C_Read... [14:41:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:41:08]Read from MH i2c: E2 [14:41:08]MH_I2C_Read... [14:41:08]Read from MH i2c: E2 0E 00 [14:41:08]MH_I2C_Read... [14:41:08]Read from MH i2c: E2 0E 00 74 8D 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 64 [14:41:08]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [14:41:08]wFMCommunicate OK [14:41:08]SAM_PROTO_GetShiftState done [14:41:08]FM_GetShiftState done [14:41:08]req_shift_opened done [14:41:08]requested_item shift.open_date is exist - process it [14:41:08]req_shift_open_date [14:41:08]req_shift_open_date done [14:41:08]produce_requested_data done [14:41:08]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30368,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [14:41:08]process_action_free close_receipt [14:41:08]json_value_free [14:41:08]json_value_free done [14:41:08]process_json_proto returns [14:41:08]Send response to host [14:41:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30368,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [14:41:08]free response buf [14:41:08]execute_script done [14:41:08]execute_script returns [14:41:08]free content buf [14:41:08]Sock 7.Close socket [14:41:08]Sock 7.Thread stoped [14:41:12]OFD Sender: No OFD packet to send [14:41:17]OFD Sender: No OFD packet to send [14:41:22]OFD Sender: No OFD packet to send [14:41:27]OFD Sender: No OFD packet to send [14:41:32]OFD Sender: No OFD packet to send [14:41:37]OFD Sender: No OFD packet to send [14:41:42]OFD Sender: No OFD packet to send [14:41:47]OFD Sender: No OFD packet to send [14:41:52]OFD Sender: No OFD packet to send [14:41:57]OFD Sender: No OFD packet to send [14:42:02]OFD Sender: No OFD packet to send [14:42:07]OFD Sender: No OFD packet to send [14:42:12]OFD Sender: No OFD packet to send [14:42:17]OFD Sender: No OFD packet to send [14:42:22]OFD Sender: No OFD packet to send [14:42:27]OFD Sender: No OFD packet to send [14:42:32]OFD Sender: No OFD packet to send [14:42:37]OFD Sender: No OFD packet to send [14:42:42]OFD Sender: No OFD packet to send [14:42:47]OFD Sender: No OFD packet to send [14:42:52]OFD Sender: No OFD packet to send [14:42:57]OFD Sender: No OFD packet to send [14:43:02]OFD Sender: No OFD packet to send [14:43:07]OFD Sender: No OFD packet to send [14:43:12]OFD Sender: No OFD packet to send [14:43:17]OFD Sender: No OFD packet to send [14:43:22]OFD Sender: No OFD packet to send [14:43:27]OFD Sender: No OFD packet to send [14:43:32]OFD Sender: No OFD packet to send [14:43:37]OFD Sender: No OFD packet to send [14:43:42]OFD Sender: No OFD packet to send [14:43:47]OFD Sender: No OFD packet to send [14:43:52]OFD Sender: No OFD packet to send [14:43:57]OFD Sender: No OFD packet to send [14:44:02]OFD Sender: No OFD packet to send [14:44:07]OFD Sender: No OFD packet to send [14:44:12]OFD Sender: No OFD packet to send [14:44:17]OFD Sender: No OFD packet to send [14:44:22]OFD Sender: No OFD packet to send [14:44:27]OFD Sender: No OFD packet to send [14:44:32]OFD Sender: No OFD packet to send [14:44:37]OFD Sender: No OFD packet to send [14:44:42]OFD Sender: No OFD packet to send [14:44:47]OFD Sender: No OFD packet to send [14:44:52]OFD Sender: No OFD packet to send [14:44:57]OFD Sender: No OFD packet to send [14:45:02]OFD Sender: No OFD packet to send [14:45:07]OFD Sender: No OFD packet to send [14:45:12]OFD Sender: No OFD packet to send [14:45:17]OFD Sender: No OFD packet to send [14:45:22]OFD Sender: No OFD packet to send [14:45:27]OFD Sender: No OFD packet to send [14:45:32]OFD Sender: No OFD packet to send [14:45:37]OFD Sender: No OFD packet to send [14:45:42]OFD Sender: No OFD packet to send [14:45:47]OFD Sender: No OFD packet to send [14:45:52]OFD Sender: No OFD packet to send [14:45:57]OFD Sender: No OFD packet to send [14:46:02]OFD Sender: No OFD packet to send [14:46:07]OFD Sender: No OFD packet to send [14:46:12]OFD Sender: No OFD packet to send [14:46:17]OFD Sender: No OFD packet to send [14:46:22]OFD Sender: No OFD packet to send [14:46:27]OFD Sender: No OFD packet to send [14:46:32]OFD Sender: No OFD packet to send [14:46:37]OFD Sender: No OFD packet to send [14:46:42]OFD Sender: No OFD packet to send [14:46:47]OFD Sender: No OFD packet to send [14:46:52]OFD Sender: No OFD packet to send [14:46:57]OFD Sender: No OFD packet to send [14:47:02]OFD Sender: No OFD packet to send [14:47:07]OFD Sender: No OFD packet to send [14:47:12]OFD Sender: No OFD packet to send [14:47:17]OFD Sender: No OFD packet to send [14:47:22]OFD Sender: No OFD packet to send [14:47:27]OFD Sender: No OFD packet to send [14:47:32]OFD Sender: No OFD packet to send [14:47:37]OFD Sender: No OFD packet to send [14:47:42]OFD Sender: No OFD packet to send [14:47:47]OFD Sender: No OFD packet to send [14:47:52]OFD Sender: No OFD packet to send [14:47:57]OFD Sender: No OFD packet to send [14:48:02]OFD Sender: No OFD packet to send [14:48:07]OFD Sender: No OFD packet to send [14:48:12]OFD Sender: No OFD packet to send [14:48:17]OFD Sender: No OFD packet to send [14:48:22]OFD Sender: No OFD packet to send [14:48:27]OFD Sender: No OFD packet to send [14:48:32]OFD Sender: No OFD packet to send [14:48:37]OFD Sender: No OFD packet to send [14:48:42]OFD Sender: No OFD packet to send [14:48:47]OFD Sender: No OFD packet to send [14:48:52]OFD Sender: No OFD packet to send [14:48:57]OFD Sender: No OFD packet to send [14:49:02]OFD Sender: No OFD packet to send [14:49:07]OFD Sender: No OFD packet to send [14:49:12]OFD Sender: No OFD packet to send [14:49:17]OFD Sender: No OFD packet to send [14:49:22]OFD Sender: No OFD packet to send [14:49:27]OFD Sender: No OFD packet to send [14:49:32]OFD Sender: No OFD packet to send [14:49:37]OFD Sender: No OFD packet to send [14:49:42]OFD Sender: No OFD packet to send [14:49:47]OFD Sender: No OFD packet to send [14:49:52]OFD Sender: No OFD packet to send [14:49:57]OFD Sender: No OFD packet to send [14:50:02]OFD Sender: No OFD packet to send [14:50:07]OFD Sender: No OFD packet to send [14:50:12]OFD Sender: No OFD packet to send [14:50:17]OFD Sender: No OFD packet to send [14:50:22]OFD Sender: No OFD packet to send [14:50:27]OFD Sender: No OFD packet to send [14:50:32]OFD Sender: No OFD packet to send [14:50:37]OFD Sender: No OFD packet to send [14:50:42]OFD Sender: No OFD packet to send [14:50:47]OFD Sender: No OFD packet to send [14:50:52]OFD Sender: No OFD packet to send [14:50:57]OFD Sender: No OFD packet to send [14:51:02]OFD Sender: No OFD packet to send [14:51:06]accept exits with 9 [14:51:06]New connection [14:51:06]New thread 3067370852 created [14:51:06]Thread 3067514212 joined [14:51:06]Waiting for new connection... [14:51:06] Sock 9.Parse request [14:51:06]Sock 9.Check first char [14:51:06]Sock 9.First char is OK [14:51:06]request: POST /json_proto HTTP/1.0 [14:51:06]Method: POST [14:51:06]URL: /json_proto [14:51:06]Method is POST - this is cgi request [14:51:06]url: /json_proto [14:51:06]query_string will be loaded in cgi processing [14:51:06]execute_cgi json_proto POST (null) [14:51:06]execute_cgi path=json_proto method=POST [14:51:06]POST find Content-Length [14:51:06]Host: 172.17.51.3:8080 [14:51:06]Content-Length: 679 [14:51:06]Content-Type: application/json [14:51:06] [14:51:06]POST finish read [14:51:06]Found Content-Length = 679 [14:51:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342762", "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:51:06]execute_script... [14:51: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)342762", "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:51:06]POST & json_proto [14:51:06]process_json_proto [14:51:06]json parsed OK: [14:51:06]protocol is kg_v1.0 [14:51:06]action value=close_receipt [14:51:06]process_action close_receipt [14:51:06]cmd_close_receipt [14:51:06]MH_GetDate [14:51:06]Write to MH i2c: F0 00 00 75 8D F1 [14:51:06]Write i2c OK [14:51:06]MH_I2C_Read... [14:51:06]Read from MH i2c: F0 [14:51:06]MH_I2C_Read... [14:51:06]Read from MH i2c: F0 09 00 [14:51:06]MH_I2C_Read... [14:51:06]Read from MH i2c: F0 09 00 75 8D 00 E4 18 15 67 04 C1 95 66 32 [14:51:06]GetLastDocTimeStamp 1729435274 [14:51:06]current date 1729435876 [14:51:06]FM_GetShiftState [14:51:06]SAM_PROTO_GetShiftState [14:51:06]wFMCommunicate request_size=4 [14:51:06]MH_SAM_APDU [14:51:06]CAPDU: 80 13 01 00 [14:51:06]Write to MH i2c: E2 08 00 76 8D 80 13 01 00 00 00 00 00 80 [14:51:06]Write i2c OK [14:51:06]MH_I2C_Read... [14:51:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:51:06]Read from MH i2c: E2 [14:51:06]MH_I2C_Read... [14:51:06]Read from MH i2c: E2 0E 00 [14:51:06]MH_I2C_Read... [14:51:06]Read from MH i2c: E2 0E 00 76 8D 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 66 [14:51:06]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [14:51:06]wFMCommunicate OK [14:51:06]SAM_PROTO_GetShiftState done [14:51:06]FM_GetShiftState done [14:51:06]opened in 1729384718 [14:51:06]opened+sec_in_day 1729471118 [14:51:06]quantity*price = 100050 [14:51:06]sum+1 = 100052 [14:51: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 СНО: Общий режим Чек 151 20.10.2024 14:51 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30369 ФПД: 95677115633116 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T145116&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30369&fm=95677115633116&tin=02508201610067®Number=0000000000186857&sum=100000 [14:51:07]StoreToDocumentArchive [14:51:07]shift 114 fd 30369 [14:51:07]save to /storage/0114/doc_00030369 [14:51:07]save last doc name /storage/0114/doc_00030369 to /storage/kkm_last_doc_name [14:51:07]save OK [14:51:07]Clear old archive folders... [14:51:07]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:51:07]tlvbuf is 00CF57E0 [14:51:07]SAM_PROTO_ClearQueue [14:51:07]wFMCommunicate request_size=4 [14:51:07]MH_SAM_APDU [14:51:07]CAPDU: 80 09 00 00 [14:51:07]Write to MH i2c: E2 08 00 83 8D 80 09 00 00 00 00 00 00 82 [14:51:07]Write i2c OK [14:51:07]MH_I2C_Read... [14:51:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:51:07]Read from MH i2c: E2 [14:51:07]MH_I2C_Read... [14:51:07]Read from MH i2c: E2 03 00 [14:51:07]MH_I2C_Read... [14:51:07]Read from MH i2c: E2 03 00 83 8D 00 90 00 84 [14:51:07]RAPDU: 90 00 [14:51:07]wFMCommunicate OK [14:51:07]SAM_PROTO_ClearQueue done [14:51:07]KKMCreateOFDPacket [14:51:07]OFDProtocolAddRootSTLVToBuf [14:51:07]FM_MakeSignedData [14:51:07]FM_MakeSignedData [14:51:07]SAM_PROTO_SignData [14:51:07]wFMCommunicate request_size=4 [14:51:07]MH_SAM_APDU [14:51:07]CAPDU: 80 0D 01 02 [14:51:07]Write to MH i2c: E2 08 00 84 8D 80 0D 01 02 00 00 00 00 8A [14:51:07]Write i2c OK [14:51:07]MH_I2C_Read... [14:51:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:51:07]Read from MH i2c: E2 [14:51:07]MH_I2C_Read... [14:51:07]Read from MH i2c: E2 03 00 [14:51:07]MH_I2C_Read... [14:51:07]Read from MH i2c: E2 03 00 84 8D 00 90 00 85 [14:51:07]RAPDU: 90 00 [14:51:07]wFMCommunicate OK [14:51:07]wFMCommunicate request_size=255 [14:51:07]MH_SAM_APDU [14:51:07]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 97 00 00 00 F4 03 04 00 E4 18 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 57 04 90 7D [14:51:07]Write to MH i2c: E2 02 01 85 8D 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 97 00 00 00 F4 03 04 00 E4 18 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 57 04 90 7D 00 00 11 [14:51:07]Write i2c OK [14:51:07]MH_I2C_Read... [14:51:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:51:07]Read from MH i2c: E2 [14:51:07]MH_I2C_Read... [14:51:07]Read from MH i2c: E2 03 00 [14:51:07]MH_I2C_Read... [14:51:07]Read from MH i2c: E2 03 00 85 8D 00 90 00 86 [14:51:07]RAPDU: 90 00 [14:51:07]wFMCommunicate OK [14:51:07]wFMCommunicate request_size=7 [14:51:07]MH_SAM_APDU [14:51:07]CAPDU: 80 0D 02 02 02 8D DC [14:51:07]Write to MH i2c: E2 0A 00 86 8D 80 0D 02 02 02 00 8D DC 00 00 FA [14:51:07]Write i2c OK [14:51:07]MH_I2C_Read... [14:51:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:51:07]Read from MH i2c: E2 [14:51:07]MH_I2C_Read... [14:51:07]Read from MH i2c: E2 03 00 [14:51:07]MH_I2C_Read... [14:51:07]Read from MH i2c: E2 03 00 86 8D 00 90 00 87 [14:51:07]RAPDU: 90 00 [14:51:07]wFMCommunicate OK [14:51:07]wFMCommunicate request_size=4 [14:51:07]MH_SAM_APDU [14:51:07]CAPDU: 80 0D 03 02 [14:51:07]Write to MH i2c: E2 08 00 87 8D 80 0D 03 02 00 00 00 00 8F [14:51:07]Write i2c OK [14:51:07]MH_I2C_Read... [14:51:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:51:07]Read from MH i2c: E2 [14:51:07]MH_I2C_Read... [14:51:07]Read from MH i2c: E2 0B 00 [14:51:07]MH_I2C_Read... [14:51:07]Read from MH i2c: E2 0B 00 87 8D 00 AC 50 AA 1B 13 16 C5 87 90 00 C6 [14:51:07]RAPDU: AC 50 AA 1B 13 16 C5 87 90 00 [14:51:07]wFMCommunicate OK [14:51:07]SAM_PROTO_SignData done [14:51:07]FM_MakeSignedData done [14:51:07]CreateOFDProtocolMessage [14:51:07]wFMCommunicate request_size=4 [14:51:07]MH_SAM_APDU [14:51:07]CAPDU: 80 11 00 00 [14:51:07]Write to MH i2c: E2 08 00 88 8D 80 11 00 00 00 00 00 00 8F [14:51:07]Write i2c OK [14:51:07]MH_I2C_Read... [14:51:07]OFD Sender: No OFD packet to send [14:51:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:51:07]Read from MH i2c: E2 [14:51:07]MH_I2C_Read... [14:51:07]Read from MH i2c: E2 17 00 [14:51:07]MH_I2C_Read... [14:51:07]Read from MH i2c: E2 17 00 88 8D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 DD [14: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 [14:51:07]wFMCommunicate OK [14:51:07]CreateOFDProtocolMessage done [14:51:07]OFDSenderStorePacket 30369 [14:51:07]StoreOFDPacket docnum=30369 [14:51: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 0C 01 00 00 FA D1 04 01 43 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 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 97 00 00 00 F4 03 04 00 E4 18 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 57 04 90 7D 8D DC AC 50 AA 1B 13 16 C5 87 [14:51:07]CheckFolder [14:51:07]dirname=/storage/ofd_packets [14:51:07]CheckFolder done [14:51:07]ProducePacketName [14:51:07]name=ofd_packets/00030369 [14:51:07]NVStorageSaveData ofd_packets/00030369 [14:51:07]File name is /storage/ofd_packets/00030369 [14:51:07]Write 298 bytes [14:51:07]NVStorageSaveData done [14:51:07]OFDSenderStorePacket done [14:51:07]KKMCreateOFDPacket done [14:51:07]NVStorageSaveData kkm_last_timestamp [14:51:07]File name is /storage/kkm_last_timestamp [14:51:07]Write 4 bytes [14:51:07]NVStorageSaveData done [14:51:07]ExternCall_PrintAddStr [14:51:07]wPrintStart [14:51:07]Write to MH i2c: 01 00 00 89 8D 16 [14:51:07]Write i2c OK [14:51:07]MH_I2C_Read... [14:51:07]Read from MH i2c: 01 [14:51:07]MH_I2C_Read... [14:51:07]Read from MH i2c: 01 07 00 [14:51:07]MH_I2C_Read... [14:51:07]Read from MH i2c: 01 07 00 89 8D 00 00 00 00 00 FF 0F 2B [14:51:07]RasterBufferAndPrint [14:51:07]line Счет N : (1)342762 [14:51:07]line ИНН: 02508201610067 [14:51:07]line Контрольно-Кассовый Чек [14:51:07]line ПРОДАЖА [14:51:07]line ТРК (МРК, ГНК) : 44 [14:51:07]line Товар: 2710194210 [14:51:07]line ДТ-К-2 [14:51:07]line 13.130 * 76.20 [14:51:07]line = 1000.51 [14:51:07]line НДС 12% НСП 1% [14:51:07]line > о реализуемом товаре [14:51:07]line ОКРУГЛЕНИЕ: -0.51 [14:51:07]line ИТОГО: 1000.00 [14:51:07]line Внесено: 1000.00 [14:51:07]line СДАЧА: 0.00 [14:51:07]line НСП 1% : 8.85 [14:51:07]line НДС 12% : 106.25 [14:51:07]line Наличными: 1000.00 [14:51:07]line Безнал.: 0.00 [14:51:07]line Место: АЗС № 78 "Партнер Нефть" [14:51:08]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [14:51:08]line СНО: Общий режим [14:51:08]line Чек 151 20.10.2024 14:51 [14:51:08]line Смена: 114 ФФД: 1.0 [14:51:08]line ЗНМ: 0300000137 [14:51:08]line РНМ: 0000000000186857 [14:51:08]line Версия ККМ: v1.0 [14:51:08]line ФМ: 0000000002094219 [14:51:08]line ФД: 30369 [14:51:08]line ФПД: 95677115633116 [14:51:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T145116&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30369&fm=95677115633116&tin=02508201610067®Number=0000000000186857&sum=100000 [14:51:08]OFD Sender: Processing packet 30369 [packets to send 10, broken 9] [14:51:08]ProducePacketName [14:51:08]name=ofd_packets/00030369 [14:51:08]OFD Sender: To server: pG, [14:51:08]CommunicateWithHost lk.salyk.kg:30040 [14:51:08]ConnectInit lk.salyk.kg [14:51:08]written 0, free lines is 4095 [14:51:08]Connected sock=10 [14:51: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 0C 01 00 00 FA D1 04 01 43 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 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 97 00 00 00 F4 03 04 00 E4 18 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 57 04 90 7D 8D DC AC 50 AA 1B 13 16 C5 87 [14:51: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 57 67 47 00 7C 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 A1 76 00 00 F4 03 04 00 67 C3 14 67 B6 04 01 00 00 C8 EA 58 75 EE F5 18 88 [14:51:08]CommunicateWithHost err = 0 [14:51:08]CheckOFDResponse [14:51:08]1017 (14) - 77093643461234 [14:51:08]1041 (16) - 0000000002094219 [14:51:08]1040 (4) - 30369 [14:51:08]1012 (4) - 20.10.2024 08:46 [14:51:08]1206 (1) - 0 [14:51:08]OFD Sender: Remove packet 30369 [14:51:08]ProducePacketName [14:51:08]name=ofd_packets/00030369 [14:51:08]NVStorageDeleteData [14:51:08]Write to MH i2c: 01 00 00 B4 8D 41 [14:51:08]Write i2c OK [14:51:08]MH_I2C_Read... [14:51:08]Read from MH i2c: 01 [14:51:08]MH_I2C_Read... [14:51:08]Read from MH i2c: 01 07 00 [14:51:08]MH_I2C_Read... [14:51:08]Read from MH i2c: 01 07 00 B4 8D 00 00 00 00 00 E0 0C 34 [14:51:08]RasterBufferAndPrint [14:51:08]line [14:51:08]line [14:51:08]line [14:51:08]line [14:51:08]line [14:51:08]written 0, free lines is 3302 [14:51:08]MH_Cut [14:51:08]Write to MH i2c: D1 01 00 BB 8D 01 1A [14:51:08]Write i2c OK [14:51:08]MH_I2C_Read... [14:51:08]Read from MH i2c: D1 [14:51:08]MH_I2C_Read... [14:51:08]Read from MH i2c: D1 01 00 [14:51:08]MH_I2C_Read... [14:51:08]Read from MH i2c: D1 01 00 BB 8D 00 19 [14:51:08]Write to MH i2c: 01 00 00 BC 8D 49 [14:51:08]Write i2c OK [14:51:08]MH_I2C_Read... [14:51:09]OFD Sender: No OFD packet to send [14:51:09]*** Cut start [14:51:09]*** Partial cut [14:51:09]*** CUTSNS_PIN = 1 [14:51:09]*** CUTSNS_PIN = 0 [14:51:09]*** Brake cut motor [14:51:09]Read from MH i2c: 01 [14:51:09]MH_I2C_Read... [14:51:09]*** Stop cut motor [14:51:09]*** Cut end [14:51:09]Read from MH i2c: 01 07 00 [14:51:09]MH_I2C_Read... [14:51:09]Read from MH i2c: 01 07 00 BC 8D 00 00 00 00 00 FF 0F 5E [14:51:09]process_action close_receipt done [14:51:09]requested_data is exist [14:51:09]produce_requested_data [14:51:09]requested_item fm.sn is exist - process it [14:51:09]wFMCommunicate request_size=4 [14:51:09]MH_SAM_APDU [14:51:09]CAPDU: 80 11 00 00 [14:51:09]Write to MH i2c: E2 08 00 BD 8D 80 11 00 00 00 00 00 00 C4 [14:51:09]Write i2c OK [14:51:09]MH_I2C_Read... [14:51:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:51:09]Read from MH i2c: E2 [14:51:09]MH_I2C_Read... [14:51:09]Read from MH i2c: E2 17 00 [14:51:09]MH_I2C_Read... [14:51:09]Read from MH i2c: E2 17 00 BD 8D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 12 [14:51: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:51:09]wFMCommunicate OK [14:51:09]requested_item fd.num is exist - process it [14:51:09]SAM_PROTO_GetFieldsCounters [14:51:09]wFMCommunicate request_size=4 [14:51:09]MH_SAM_APDU [14:51:09]CAPDU: 80 13 00 00 [14:51:09]Write to MH i2c: E2 08 00 BE 8D 80 13 00 00 00 00 00 00 C7 [14:51:09]Write i2c OK [14:51:09]MH_I2C_Read... [14:51:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:51:10]Read from MH i2c: E2 [14:51:10]MH_I2C_Read... [14:51:10]Read from MH i2c: E2 62 00 [14:51:10]MH_I2C_Read... [14:51:10]Read from MH i2c: E2 62 00 BE 8D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 3B [14:51: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 A1 76 00 00 0E 04 04 00 72 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 [14:51:10]wFMCommunicate OK [14:51:10]SAM_PROTO_GetFieldsCounters done [14:51:10]requested_item shift.num is exist - process it [14:51:10]requested_item shift.opened is exist - process it [14:51:10]req_shift_opened [14:51:10]FM_GetShiftState [14:51:10]SAM_PROTO_GetShiftState [14:51:10]wFMCommunicate request_size=4 [14:51:10]MH_SAM_APDU [14:51:10]CAPDU: 80 13 01 00 [14:51:10]Write to MH i2c: E2 08 00 BF 8D 80 13 01 00 00 00 00 00 C9 [14:51:10]Write i2c OK [14:51:10]MH_I2C_Read... [14:51:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:51:10]Read from MH i2c: E2 [14:51:10]MH_I2C_Read... [14:51:10]Read from MH i2c: E2 0E 00 [14:51:10]MH_I2C_Read... [14:51:10]Read from MH i2c: E2 0E 00 BF 8D 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 AF [14:51:10]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [14:51:10]wFMCommunicate OK [14:51:10]SAM_PROTO_GetShiftState done [14:51:10]FM_GetShiftState done [14:51:10]req_shift_opened done [14:51:10]requested_item shift.open_date is exist - process it [14:51:10]req_shift_open_date [14:51:10]req_shift_open_date done [14:51:10]produce_requested_data done [14:51:10]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30369,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [14:51:10]process_action_free close_receipt [14:51:10]json_value_free [14:51:10]json_value_free done [14:51:10]process_json_proto returns [14:51:10]Send response to host [14:51:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30369,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [14:51:10]free response buf [14:51:10]execute_script done [14:51:10]execute_script returns [14:51:10]free content buf [14:51:10]Sock 9.Close socket [14:51:10]Sock 9.Thread stoped [14:51:14]OFD Sender: No OFD packet to send [14:51:19]OFD Sender: No OFD packet to send [14:51:24]OFD Sender: No OFD packet to send [14:51:29]OFD Sender: No OFD packet to send [14:51:34]OFD Sender: No OFD packet to send [14:51:39]OFD Sender: No OFD packet to send [14:51:44]OFD Sender: No OFD packet to send [14:51:49]OFD Sender: No OFD packet to send [14:51:54]OFD Sender: No OFD packet to send [14:51:59]OFD Sender: No OFD packet to send [14:52:04]OFD Sender: No OFD packet to send [14:52:09]OFD Sender: No OFD packet to send [14:52:14]OFD Sender: No OFD packet to send [14:52:19]OFD Sender: No OFD packet to send [14:52:24]OFD Sender: No OFD packet to send [14:52:29]OFD Sender: No OFD packet to send [14:52:34]OFD Sender: No OFD packet to send [14:52:39]OFD Sender: No OFD packet to send [14:52:44]OFD Sender: No OFD packet to send [14:52:49]OFD Sender: No OFD packet to send [14:52:54]OFD Sender: No OFD packet to send [14:52:59]OFD Sender: No OFD packet to send [14:53:04]OFD Sender: No OFD packet to send [14:53:09]OFD Sender: No OFD packet to send [14:53:14]OFD Sender: No OFD packet to send [14:53:19]OFD Sender: No OFD packet to send [14:53:24]OFD Sender: No OFD packet to send [14:53:29]OFD Sender: No OFD packet to send [14:53:34]OFD Sender: No OFD packet to send [14:53:39]OFD Sender: No OFD packet to send [14:53:44]OFD Sender: No OFD packet to send [14:53:49]OFD Sender: No OFD packet to send [14:53:54]OFD Sender: No OFD packet to send [14:53:59]OFD Sender: No OFD packet to send [14:54:04]OFD Sender: No OFD packet to send [14:54:09]OFD Sender: No OFD packet to send [14:54:14]OFD Sender: No OFD packet to send [14:54:19]OFD Sender: No OFD packet to send [14:54:24]OFD Sender: No OFD packet to send [14:54:29]OFD Sender: No OFD packet to send [14:54:34]OFD Sender: No OFD packet to send [14:54:39]OFD Sender: No OFD packet to send [14:54:42]accept exits with 7 [14:54:42]New connection [14:54:42]New thread 3067514212 created [14:54:42]Thread 3067370852 joined [14:54:42]Waiting for new connection... [14:54:42] Sock 7.Parse request [14:54:42]Sock 7.Check first char [14:54:42]Sock 7.First char is OK [14:54:42]request: POST /json_proto HTTP/1.0 [14:54:42]Method: POST [14:54:42]URL: /json_proto [14:54:42]Method is POST - this is cgi request [14:54:42]url: /json_proto [14:54:42]query_string will be loaded in cgi processing [14:54:42]execute_cgi json_proto POST (null) [14:54:42]execute_cgi path=json_proto method=POST [14:54:42]POST find Content-Length [14:54:42]Host: 172.17.51.3:8080 [14:54:42]Content-Length: 688 [14:54:42]Content-Type: application/json [14:54:42] [14:54:42]POST finish read [14:54:42]Found Content-Length = 688 [14:54:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342763", "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" ] } } [14:54:42]execute_script... [14:54: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)342763", "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" ] } } [14:54:42]POST & json_proto [14:54:42]process_json_proto [14:54:42]json parsed OK: [14:54:42]protocol is kg_v1.0 [14:54:42]action value=close_receipt [14:54:42]process_action close_receipt [14:54:42]cmd_close_receipt [14:54:42]MH_GetDate [14:54:42]Write to MH i2c: F0 00 00 C0 8D 3C [14:54:42]Write i2c OK [14:54:42]MH_I2C_Read... [14:54:42]Read from MH i2c: F0 [14:54:42]MH_I2C_Read... [14:54:42]Read from MH i2c: F0 09 00 [14:54:42]MH_I2C_Read... [14:54:42]Read from MH i2c: F0 09 00 C0 8D 00 BC 19 15 67 04 C1 95 66 56 [14:54:42]GetLastDocTimeStamp 1729435876 [14:54:42]current date 1729436092 [14:54:42]FM_GetShiftState [14:54:42]SAM_PROTO_GetShiftState [14:54:42]wFMCommunicate request_size=4 [14:54:42]MH_SAM_APDU [14:54:42]CAPDU: 80 13 01 00 [14:54:42]Write to MH i2c: E2 08 00 C1 8D 80 13 01 00 00 00 00 00 CB [14:54:42]Write i2c OK [14:54:42]MH_I2C_Read... [14:54:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:54:42]Read from MH i2c: E2 [14:54:42]MH_I2C_Read... [14:54:42]Read from MH i2c: E2 0E 00 [14:54:42]MH_I2C_Read... [14:54:42]Read from MH i2c: E2 0E 00 C1 8D 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 B1 [14:54:42]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [14:54:42]wFMCommunicate OK [14:54:42]SAM_PROTO_GetShiftState done [14:54:42]FM_GetShiftState done [14:54:42]opened in 1729384718 [14:54:42]opened+sec_in_day 1729471118 [14:54:42]quantity*price = 150076 [14:54:42]sum+1 = 150078 [14:54:42]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 СНО: Общий режим Чек 152 20.10.2024 14:54 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30370 ФПД: 92394907189260 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T145452&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30370&fm=92394907189260&tin=02508201610067®Number=0000000000186857&sum=150000 [14:54:43]StoreToDocumentArchive [14:54:43]shift 114 fd 30370 [14:54:43]save to /storage/0114/doc_00030370 [14:54:43]save last doc name /storage/0114/doc_00030370 to /storage/kkm_last_doc_name [14:54:43]save OK [14:54:43]Clear old archive folders... [14:54:43]ProcessDocumentItem done err = 0, tmpTLVsize=257 [14:54:43]tlvbuf is 00C17B30 [14:54:43]SAM_PROTO_ClearQueue [14:54:43]wFMCommunicate request_size=4 [14:54:43]MH_SAM_APDU [14:54:43]CAPDU: 80 09 00 00 [14:54:43]Write to MH i2c: E2 08 00 CE 8D 80 09 00 00 00 00 00 00 CD [14:54:43]Write i2c OK [14:54:43]MH_I2C_Read... [14:54:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:54:43]Read from MH i2c: E2 [14:54:43]MH_I2C_Read... [14:54:43]Read from MH i2c: E2 03 00 [14:54:43]MH_I2C_Read... [14:54:43]Read from MH i2c: E2 03 00 CE 8D 00 90 00 CF [14:54:43]RAPDU: 90 00 [14:54:43]wFMCommunicate OK [14:54:43]SAM_PROTO_ClearQueue done [14:54:43]KKMCreateOFDPacket [14:54:43]OFDProtocolAddRootSTLVToBuf [14:54:43]FM_MakeSignedData [14:54:43]FM_MakeSignedData [14:54:43]SAM_PROTO_SignData [14:54:43]wFMCommunicate request_size=4 [14:54:43]MH_SAM_APDU [14:54:43]CAPDU: 80 0D 01 02 [14:54:43]Write to MH i2c: E2 08 00 CF 8D 80 0D 01 02 00 00 00 00 D5 [14:54:43]Write i2c OK [14:54:43]MH_I2C_Read... [14:54:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:54:44]Read from MH i2c: E2 [14:54:44]MH_I2C_Read... [14:54:44]Read from MH i2c: E2 03 00 [14:54:44]MH_I2C_Read... [14:54:44]Read from MH i2c: E2 03 00 CF 8D 00 90 00 D0 [14:54:44]RAPDU: 90 00 [14:54:44]wFMCommunicate OK [14:54:44]wFMCommunicate request_size=255 [14:54:44]MH_SAM_APDU [14:54: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 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 98 00 00 00 F4 03 04 00 BC 19 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 [14:54:44]Write to MH i2c: E2 02 01 D0 8D 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 98 00 00 00 F4 03 04 00 BC 19 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 00 F4 [14:54:44]Write i2c OK [14:54:44]MH_I2C_Read... [14:54:44]OFD Sender: No OFD packet to send [14:54:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:54:44]Read from MH i2c: E2 [14:54:44]MH_I2C_Read... [14:54:44]Read from MH i2c: E2 03 00 [14:54:44]MH_I2C_Read... [14:54:44]Read from MH i2c: E2 03 00 D0 8D 00 90 00 D1 [14:54:44]RAPDU: 90 00 [14:54:44]wFMCommunicate OK [14:54:44]wFMCommunicate request_size=16 [14:54:44]MH_SAM_APDU [14:54:44]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 54 08 5D 9F 40 0C [14:54:44]Write to MH i2c: E2 13 00 D1 8D 80 0D 02 02 0B 00 00 35 04 06 00 54 08 5D 9F 40 0C 00 00 D1 [14:54:44]Write i2c OK [14:54:44]MH_I2C_Read... [14:54:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:54:44]Read from MH i2c: E2 [14:54:44]MH_I2C_Read... [14:54:44]Read from MH i2c: E2 03 00 [14:54:44]MH_I2C_Read... [14:54:44]Read from MH i2c: E2 03 00 D1 8D 00 90 00 D2 [14:54:44]RAPDU: 90 00 [14:54:44]wFMCommunicate OK [14:54:44]wFMCommunicate request_size=4 [14:54:44]MH_SAM_APDU [14:54:44]CAPDU: 80 0D 03 02 [14:54:44]Write to MH i2c: E2 08 00 D2 8D 80 0D 03 02 00 00 00 00 DA [14:54:44]Write i2c OK [14:54:44]MH_I2C_Read... [14:54:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:54:44]Read from MH i2c: E2 [14:54:44]MH_I2C_Read... [14:54:44]Read from MH i2c: E2 0B 00 [14:54:44]MH_I2C_Read... [14:54:44]Read from MH i2c: E2 0B 00 D2 8D 00 15 0F B6 88 FF 89 0F BC 90 00 90 [14:54:44]RAPDU: 15 0F B6 88 FF 89 0F BC 90 00 [14:54:44]wFMCommunicate OK [14:54:44]SAM_PROTO_SignData done [14:54:44]FM_MakeSignedData done [14:54:44]CreateOFDProtocolMessage [14:54:44]wFMCommunicate request_size=4 [14:54:44]MH_SAM_APDU [14:54:44]CAPDU: 80 11 00 00 [14:54:44]Write to MH i2c: E2 08 00 D3 8D 80 11 00 00 00 00 00 00 DA [14:54:44]Write i2c OK [14:54:44]MH_I2C_Read... [14:54:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:54:44]Read from MH i2c: E2 [14:54:44]MH_I2C_Read... [14:54:44]Read from MH i2c: E2 17 00 [14:54:44]MH_I2C_Read... [14:54:44]Read from MH i2c: E2 17 00 D3 8D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 28 [14:54:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [14:54:44]wFMCommunicate OK [14:54:44]CreateOFDProtocolMessage done [14:54:44]OFDSenderStorePacket 30370 [14:54:44]StoreOFDPacket docnum=30370 [14:54: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 7F 78 0D 01 AA 63 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 98 00 00 00 F4 03 04 00 BC 19 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 54 08 5D 9F 40 0C 15 0F B6 88 FF 89 0F BC [14:54:44]CheckFolder [14:54:44]dirname=/storage/ofd_packets [14:54:44]CheckFolder done [14:54:44]ProducePacketName [14:54:44]name=ofd_packets/00030370 [14:54:44]NVStorageSaveData ofd_packets/00030370 [14:54:44]File name is /storage/ofd_packets/00030370 [14:54:44]Write 307 bytes [14:54:44]NVStorageSaveData done [14:54:44]OFDSenderStorePacket done [14:54:44]KKMCreateOFDPacket done [14:54:44]NVStorageSaveData kkm_last_timestamp [14:54:44]File name is /storage/kkm_last_timestamp [14:54:44]Write 4 bytes [14:54:44]NVStorageSaveData done [14:54:44]ExternCall_PrintAddStr [14:54:44]wPrintStart [14:54:44]Write to MH i2c: 01 00 00 D4 8D 61 [14:54:44]Write i2c OK [14:54:44]MH_I2C_Read... [14:54:44]Read from MH i2c: 01 [14:54:44]MH_I2C_Read... [14:54:44]Read from MH i2c: 01 07 00 [14:54:44]MH_I2C_Read... [14:54:44]Read from MH i2c: 01 07 00 D4 8D 00 00 00 00 00 FF 0F 76 [14:54:44]RasterBufferAndPrint [14:54:44]line Счет N : (1)342763 [14:54:44]line ИНН: 02508201610067 [14:54:44]line Контрольно-Кассовый Чек [14:54:44]line ПРОДАЖА [14:54:44]line ТРК (МРК, ГНК) : 51 [14:54:44]line Товар: 2710194210 [14:54:44]line D-ENERGY Дт-К-2 [14:54:44]line 19.440 * 77.20 [14:54:44]line = 1500.77 [14:54:44]line НДС 12% НСП 1% [14:54:44]line > о реализуемом товаре [14:54:44]line ОКРУГЛЕНИЕ: -0.77 [14:54:44]line ИТОГО: 1500.00 [14:54:44]line Внесено: 1500.00 [14:54:44]line СДАЧА: 0.00 [14:54:44]line НСП 1% : 13.28 [14:54:44]line НДС 12% : 159.37 [14:54:44]line Наличными: 1500.00 [14:54:44]line Безнал.: 0.00 [14:54:44]line Место: АЗС № 78 "Партнер Нефть" [14:54:44]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [14:54:44]line СНО: Общий режим [14:54:44]line Чек 152 20.10.2024 14:54 [14:54:44]line Смена: 114 ФФД: 1.0 [14:54:44]line ЗНМ: 0300000137 [14:54:44]line РНМ: 0000000000186857 [14:54:44]line Версия ККМ: v1.0 [14:54:44]line ФМ: 0000000002094219 [14:54:44]line ФД: 30370 [14:54:44]line ФПД: 92394907189260 [14:54:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T145452&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30370&fm=92394907189260&tin=02508201610067®Number=0000000000186857&sum=150000 [14:54:44]OFD Sender: Processing packet 30370 [packets to send 10, broken 9] [14:54:44]ProducePacketName [14:54:44]name=ofd_packets/00030370 [14:54:44]OFD Sender: To server: pG, [14:54:44]CommunicateWithHost lk.salyk.kg:30040 [14:54:44]ConnectInit lk.salyk.kg [14:54:44]written 0, free lines is 4095 [14:54:44]Connected sock=10 [14:54: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 7F 78 0D 01 AA 63 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 98 00 00 00 F4 03 04 00 BC 19 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 54 08 5D 9F 40 0C 15 0F B6 88 FF 89 0F BC [14:54: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 F1 13 47 00 07 57 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 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 76 00 00 F4 03 04 00 40 C4 14 67 B6 04 01 00 00 D5 9C FD 9D 76 1D 37 1D [14:54:45]CommunicateWithHost err = 0 [14:54:45]CheckOFDResponse [14:54:45]1017 (14) - 77093643461234 [14:54:45]1041 (16) - 0000000002094219 [14:54:45]1040 (4) - 30370 [14:54:45]1012 (4) - 20.10.2024 08:50 [14:54:45]1206 (1) - 0 [14:54:45]OFD Sender: Remove packet 30370 [14:54:45]ProducePacketName [14:54:45]name=ofd_packets/00030370 [14:54:45]NVStorageDeleteData [14:54:45]Write to MH i2c: 01 00 00 FF 8D 8C [14:54:45]Write i2c OK [14:54:45]MH_I2C_Read... [14:54:45]Read from MH i2c: 01 [14:54:45]MH_I2C_Read... [14:54:45]Read from MH i2c: 01 07 00 [14:54:45]MH_I2C_Read... [14:54:45]Read from MH i2c: 01 07 00 FF 8D 00 00 00 00 00 EB 0C 8A [14:54:45]RasterBufferAndPrint [14:54:45]line [14:54:45]line [14:54:45]line [14:54:45]line [14:54:45]line [14:54:45]written 0, free lines is 3313 [14:54:45]MH_Cut [14:54:45]Write to MH i2c: D1 01 00 06 8E 01 66 [14:54:45]Write i2c OK [14:54:45]MH_I2C_Read... [14:54:45]Read from MH i2c: D1 [14:54:45]MH_I2C_Read... [14:54:45]Read from MH i2c: D1 01 00 [14:54:45]MH_I2C_Read... [14:54:45]Read from MH i2c: D1 01 00 06 8E 00 65 [14:54:45]Write to MH i2c: 01 00 00 07 8E 95 [14:54:45]Write i2c OK [14:54:45]MH_I2C_Read... [14:54:45]OFD Sender: No OFD packet to send [14:54:45]*** Cut start [14:54:45]*** Partial cut [14:54:45]*** CUTSNS_PIN = 1 [14:54:45]*** CUTSNS_PIN = 0 [14:54:46]*** Brake cut motor [14:54:46]Read from MH i2c: 01 [14:54:46]MH_I2C_Read... [14:54:46]*** Stop cut motor [14:54:46]*** Cut end [14:54:46]Read from MH i2c: 01 07 00 [14:54:46]MH_I2C_Read... [14:54:46]Read from MH i2c: 01 07 00 07 8E 00 00 00 00 00 FF 0F AA [14:54:46]process_action close_receipt done [14:54:46]requested_data is exist [14:54:46]produce_requested_data [14:54:46]requested_item fm.sn is exist - process it [14:54:46]wFMCommunicate request_size=4 [14:54:46]MH_SAM_APDU [14:54:46]CAPDU: 80 11 00 00 [14:54:46]Write to MH i2c: E2 08 00 08 8E 80 11 00 00 00 00 00 00 10 [14:54:46]Write i2c OK [14:54:46]MH_I2C_Read... [14:54:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:54:46]Read from MH i2c: E2 [14:54:46]MH_I2C_Read... [14:54:46]Read from MH i2c: E2 17 00 [14:54:46]MH_I2C_Read... [14:54:46]Read from MH i2c: E2 17 00 08 8E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 5E [14:54:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [14:54:46]wFMCommunicate OK [14:54:46]requested_item fd.num is exist - process it [14:54:46]SAM_PROTO_GetFieldsCounters [14:54:46]wFMCommunicate request_size=4 [14:54:46]MH_SAM_APDU [14:54:46]CAPDU: 80 13 00 00 [14:54:46]Write to MH i2c: E2 08 00 09 8E 80 13 00 00 00 00 00 00 13 [14:54:46]Write i2c OK [14:54:46]MH_I2C_Read... [14:54:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:54:46]Read from MH i2c: E2 [14:54:46]MH_I2C_Read... [14:54:46]Read from MH i2c: E2 62 00 [14:54:46]MH_I2C_Read... [14:54:46]Read from MH i2c: E2 62 00 09 8E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 8B [14:54: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 A2 76 00 00 0E 04 04 00 72 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 [14:54:46]wFMCommunicate OK [14:54:46]SAM_PROTO_GetFieldsCounters done [14:54:46]requested_item shift.num is exist - process it [14:54:46]requested_item shift.opened is exist - process it [14:54:46]req_shift_opened [14:54:46]FM_GetShiftState [14:54:46]SAM_PROTO_GetShiftState [14:54:46]wFMCommunicate request_size=4 [14:54:46]MH_SAM_APDU [14:54:46]CAPDU: 80 13 01 00 [14:54:46]Write to MH i2c: E2 08 00 0A 8E 80 13 01 00 00 00 00 00 15 [14:54:46]Write i2c OK [14:54:46]MH_I2C_Read... [14:54:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:54:46]Read from MH i2c: E2 [14:54:46]MH_I2C_Read... [14:54:46]Read from MH i2c: E2 0E 00 [14:54:46]MH_I2C_Read... [14:54:46]Read from MH i2c: E2 0E 00 0A 8E 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 FB [14:54:46]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [14:54:46]wFMCommunicate OK [14:54:46]SAM_PROTO_GetShiftState done [14:54:46]FM_GetShiftState done [14:54:46]req_shift_opened done [14:54:46]requested_item shift.open_date is exist - process it [14:54:46]req_shift_open_date [14:54:46]req_shift_open_date done [14:54:46]produce_requested_data done [14:54:46]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30370,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [14:54:46]process_action_free close_receipt [14:54:46]json_value_free [14:54:46]json_value_free done [14:54:46]process_json_proto returns [14:54:46]Send response to host [14:54:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30370,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [14:54:46]free response buf [14:54:46]execute_script done [14:54:46]execute_script returns [14:54:46]free content buf [14:54:46]Sock 7.Close socket [14:54:46]Sock 7.Thread stoped [14:54:50]OFD Sender: No OFD packet to send [14:54:55]OFD Sender: No OFD packet to send [14:55:00]OFD Sender: No OFD packet to send [14:55:05]OFD Sender: No OFD packet to send [14:55:10]OFD Sender: No OFD packet to send [14:55:15]OFD Sender: No OFD packet to send [14:55:20]OFD Sender: No OFD packet to send [14:55:25]OFD Sender: No OFD packet to send [14:55:30]OFD Sender: No OFD packet to send [14:55:35]OFD Sender: No OFD packet to send [14:55:40]OFD Sender: No OFD packet to send [14:55:45]OFD Sender: No OFD packet to send [14:55:50]OFD Sender: No OFD packet to send [14:55:55]OFD Sender: No OFD packet to send [14:56:00]OFD Sender: No OFD packet to send [14:56:05]OFD Sender: No OFD packet to send [14:56:10]OFD Sender: No OFD packet to send [14:56:15]OFD Sender: No OFD packet to send [14:56:20]OFD Sender: No OFD packet to send [14:56:25]OFD Sender: No OFD packet to send [14:56:30]OFD Sender: No OFD packet to send [14:56:35]OFD Sender: No OFD packet to send [14:56:40]OFD Sender: No OFD packet to send [14:56:45]OFD Sender: No OFD packet to send [14:56:50]OFD Sender: No OFD packet to send [14:56:55]OFD Sender: No OFD packet to send [14:57:00]OFD Sender: No OFD packet to send [14:57:05]OFD Sender: No OFD packet to send [14:57:10]OFD Sender: No OFD packet to send [14:57:15]OFD Sender: No OFD packet to send [14:57:20]OFD Sender: No OFD packet to send [14:57:25]OFD Sender: No OFD packet to send [14:57:30]OFD Sender: No OFD packet to send [14:57:35]OFD Sender: No OFD packet to send [14:57:40]OFD Sender: No OFD packet to send [14:57:45]OFD Sender: No OFD packet to send [14:57:50]OFD Sender: No OFD packet to send [14:57:55]OFD Sender: No OFD packet to send [14:57:58]accept exits with 9 [14:57:58]New connection [14:57:58]New thread 3067370852 created [14:57:58]Thread 3067514212 joined [14:57:58]Waiting for new connection... [14:57:58] Sock 9.Parse request [14:57:58]Sock 9.Check first char [14:57:58]Sock 9.First char is OK [14:57:58]request: POST /json_proto HTTP/1.0 [14:57:58]Method: POST [14:57:58]URL: /json_proto [14:57:58]Method is POST - this is cgi request [14:57:58]url: /json_proto [14:57:58]query_string will be loaded in cgi processing [14:57:58]execute_cgi json_proto POST (null) [14:57:58]execute_cgi path=json_proto method=POST [14:57:58]POST find Content-Length [14:57:58]Host: 172.17.51.3:8080 [14:57:58]Content-Length: 682 [14:57:58]Content-Type: application/json [14:57:58] [14:57:58]POST finish read [14:57:58]Found Content-Length = 682 [14:57:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342764", "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" ] } } [14:57:58]execute_script... [14:57: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)342764", "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" ] } } [14:57:58]POST & json_proto [14:57:58]process_json_proto [14:57:58]json parsed OK: [14:57:58]protocol is kg_v1.0 [14:57:58]action value=close_receipt [14:57:58]process_action close_receipt [14:57:58]cmd_close_receipt [14:57:58]MH_GetDate [14:57:58]Write to MH i2c: F0 00 00 0B 8E 88 [14:57:58]Write i2c OK [14:57:58]MH_I2C_Read... [14:57:58]Read from MH i2c: F0 [14:57:58]MH_I2C_Read... [14:57:58]Read from MH i2c: F0 09 00 [14:57:58]MH_I2C_Read... [14:57:58]Read from MH i2c: F0 09 00 0B 8E 00 80 1A 15 67 04 C1 95 66 67 [14:57:58]GetLastDocTimeStamp 1729436092 [14:57:58]current date 1729436288 [14:57:58]FM_GetShiftState [14:57:58]SAM_PROTO_GetShiftState [14:57:58]wFMCommunicate request_size=4 [14:57:58]MH_SAM_APDU [14:57:58]CAPDU: 80 13 01 00 [14:57:58]Write to MH i2c: E2 08 00 0C 8E 80 13 01 00 00 00 00 00 17 [14:57:58]Write i2c OK [14:57:58]MH_I2C_Read... [14:57:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:57:59]Read from MH i2c: E2 [14:57:59]MH_I2C_Read... [14:57:59]Read from MH i2c: E2 0E 00 [14:57:59]MH_I2C_Read... [14:57:59]Read from MH i2c: E2 0E 00 0C 8E 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 FD [14:57:59]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [14:57:59]wFMCommunicate OK [14:57:59]SAM_PROTO_GetShiftState done [14:57:59]FM_GetShiftState done [14:57:59]opened in 1729384718 [14:57:59]opened+sec_in_day 1729471118 [14:57:59]quantity*price = 100021 [14:57:59]sum+1 = 100023 [14:57:59]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 СНО: Общий режим Чек 153 20.10.2024 14:58 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30371 ФПД: 201972864328228 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T145808&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30371&fm=201972864328228&tin=02508201610067®Number=0000000000186857&sum=100000 [14:58:00]StoreToDocumentArchive [14:58:00]shift 114 fd 30371 [14:58:00]save to /storage/0114/doc_00030371 [14:58:00]save last doc name /storage/0114/doc_00030371 to /storage/kkm_last_doc_name [14:58:00]save OK [14:58:00]Clear old archive folders... [14:58:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:58:00]tlvbuf is 00AC4100 [14:58:00]SAM_PROTO_ClearQueue [14:58:00]wFMCommunicate request_size=4 [14:58:00]MH_SAM_APDU [14:58:00]CAPDU: 80 09 00 00 [14:58:00]Write to MH i2c: E2 08 00 19 8E 80 09 00 00 00 00 00 00 19 [14:58:00]Write i2c OK [14:58:00]MH_I2C_Read... [14:58:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:58:00]Read from MH i2c: E2 [14:58:00]MH_I2C_Read... [14:58:00]Read from MH i2c: E2 03 00 [14:58:00]MH_I2C_Read... [14:58:00]Read from MH i2c: E2 03 00 19 8E 00 90 00 1B [14:58:00]RAPDU: 90 00 [14:58:00]wFMCommunicate OK [14:58:00]SAM_PROTO_ClearQueue done [14:58:00]KKMCreateOFDPacket [14:58:00]OFDProtocolAddRootSTLVToBuf [14:58:00]FM_MakeSignedData [14:58:00]FM_MakeSignedData [14:58:00]SAM_PROTO_SignData [14:58:00]wFMCommunicate request_size=4 [14:58:00]MH_SAM_APDU [14:58:00]CAPDU: 80 0D 01 02 [14:58:00]Write to MH i2c: E2 08 00 1A 8E 80 0D 01 02 00 00 00 00 21 [14:58:00]Write i2c OK [14:58:00]MH_I2C_Read... [14:58:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:58:00]Read from MH i2c: E2 [14:58:00]MH_I2C_Read... [14:58:00]Read from MH i2c: E2 03 00 [14:58:00]MH_I2C_Read... [14:58:00]Read from MH i2c: E2 03 00 1A 8E 00 90 00 1C [14:58:00]RAPDU: 90 00 [14:58:00]wFMCommunicate OK [14:58:00]wFMCommunicate request_size=255 [14:58:00]MH_SAM_APDU [14:58:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 80 1A 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 B7 [14:58:00]Write to MH i2c: E2 02 01 1B 8E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 80 1A 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 B7 00 00 C1 [14:58:00]Write i2c OK [14:58:00]MH_I2C_Read... [14:58:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:58:00]Read from MH i2c: E2 [14:58:00]MH_I2C_Read... [14:58:00]Read from MH i2c: E2 03 00 [14:58:00]MH_I2C_Read... [14:58:00]Read from MH i2c: E2 03 00 1B 8E 00 90 00 1D [14:58:00]RAPDU: 90 00 [14:58:00]wFMCommunicate OK [14:58:00]wFMCommunicate request_size=10 [14:58:00]MH_SAM_APDU [14:58:00]CAPDU: 80 0D 02 02 05 B1 78 D5 22 24 [14:58:00]Write to MH i2c: E2 0D 00 1C 8E 80 0D 02 02 05 00 B1 78 D5 22 24 00 00 72 [14:58:00]Write i2c OK [14:58:00]MH_I2C_Read... [14:58:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:58:00]Read from MH i2c: E2 [14:58:00]MH_I2C_Read... [14:58:00]Read from MH i2c: E2 03 00 [14:58:00]MH_I2C_Read... [14:58:00]Read from MH i2c: E2 03 00 1C 8E 00 90 00 1E [14:58:00]RAPDU: 90 00 [14:58:00]wFMCommunicate OK [14:58:00]wFMCommunicate request_size=4 [14:58:00]MH_SAM_APDU [14:58:00]CAPDU: 80 0D 03 02 [14:58:00]Write to MH i2c: E2 08 00 1D 8E 80 0D 03 02 00 00 00 00 26 [14:58:00]Write i2c OK [14:58:00]MH_I2C_Read... [14:58:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:58:00]Read from MH i2c: E2 [14:58:00]MH_I2C_Read... [14:58:00]Read from MH i2c: E2 0B 00 [14:58:00]MH_I2C_Read... [14:58:00]Read from MH i2c: E2 0B 00 1D 8E 00 6F C8 15 0C 70 44 18 FC 90 00 47 [14:58:00]RAPDU: 6F C8 15 0C 70 44 18 FC 90 00 [14:58:00]wFMCommunicate OK [14:58:00]SAM_PROTO_SignData done [14:58:00]FM_MakeSignedData done [14:58:00]CreateOFDProtocolMessage [14:58:00]wFMCommunicate request_size=4 [14:58:00]MH_SAM_APDU [14:58:00]CAPDU: 80 11 00 00 [14:58:00]Write to MH i2c: E2 08 00 1E 8E 80 11 00 00 00 00 00 00 26 [14:58:00]Write i2c OK [14:58:00]MH_I2C_Read... [14:58:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:58:00]Read from MH i2c: E2 [14:58:00]MH_I2C_Read... [14:58:00]Read from MH i2c: E2 17 00 [14:58:00]MH_I2C_Read... [14:58:00]Read from MH i2c: E2 17 00 1E 8E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 74 [14:58:00]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:00]wFMCommunicate OK [14:58:00]CreateOFDProtocolMessage done [14:58:00]OFDSenderStorePacket 30371 [14:58:00]StoreOFDPacket docnum=30371 [14:58: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 90 4D 07 01 26 24 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 80 1A 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 B7 B1 78 D5 22 24 6F C8 15 0C 70 44 18 FC [14:58:00]CheckFolder [14:58:00]dirname=/storage/ofd_packets [14:58:00]CheckFolder done [14:58:00]ProducePacketName [14:58:00]name=ofd_packets/00030371 [14:58:00]NVStorageSaveData ofd_packets/00030371 [14:58:00]File name is /storage/ofd_packets/00030371 [14:58:00]Write 301 bytes [14:58:00]NVStorageSaveData done [14:58:00]OFDSenderStorePacket done [14:58:00]KKMCreateOFDPacket done [14:58:00]NVStorageSaveData kkm_last_timestamp [14:58:00]File name is /storage/kkm_last_timestamp [14:58:00]Write 4 bytes [14:58:00]NVStorageSaveData done [14:58:00]ExternCall_PrintAddStr [14:58:00]wPrintStart [14:58:00]Write to MH i2c: 01 00 00 1F 8E AD [14:58:00]Write i2c OK [14:58:00]MH_I2C_Read... [14:58:00]Read from MH i2c: 01 [14:58:00]MH_I2C_Read... [14:58:00]Read from MH i2c: 01 07 00 [14:58:00]MH_I2C_Read... [14:58:00]Read from MH i2c: 01 07 00 1F 8E 00 00 00 00 00 FF 0F C2 [14:58:00]RasterBufferAndPrint [14:58:00]line Счет N : (1)342764 [14:58:00]line ИНН: 02508201610067 [14:58:00]line Контрольно-Кассовый Чек [14:58:00]line ПРОДАЖА [14:58:00]line ТРК (МРК, ГНК) : 52 [14:58:00]line Товар: 2710124500 [14:58:00]line Аи-95-К-3 [14:58:00]line 13.480 * 74.20 [14:58:00]line = 1000.22 [14:58:00]line НДС 12% НСП 1% [14:58:00]line > о реализуемом товаре [14:58:00]line ОКРУГЛЕНИЕ: -0.22 [14:58:00]line ИТОГО: 1000.00 [14:58:00]line Внесено: 1000.00 [14:58:00]line СДАЧА: 0.00 [14:58:00]line НСП 1% : 8.85 [14:58:00]line НДС 12% : 106.22 [14:58:00]line Наличными: 1000.00 [14:58:00]line Безнал.: 0.00 [14:58:00]line Место: АЗС № 78 "Партнер Нефть" [14:58:00]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [14:58:00]line СНО: Общий режим [14:58:00]line Чек 153 20.10.2024 14:58 [14:58:00]line Смена: 114 ФФД: 1.0 [14:58:00]line ЗНМ: 0300000137 [14:58:00]line РНМ: 0000000000186857 [14:58:00]line Версия ККМ: v1.0 [14:58:00]line ФМ: 0000000002094219 [14:58:00]line ФД: 30371 [14:58:00]line ФПД: 201972864328228 [14:58:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T145808&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30371&fm=201972864328228&tin=02508201610067®Number=0000000000186857&sum=100000 [14:58:00]OFD Sender: Processing packet 30371 [packets to send 10, broken 9] [14:58:00]ProducePacketName [14:58:00]name=ofd_packets/00030371 [14:58:00]OFD Sender: To server: pG, [14:58:00]CommunicateWithHost lk.salyk.kg:30040 [14:58:00]ConnectInit lk.salyk.kg [14:58:00]written 0, free lines is 4095 [14:58:01]Connected sock=10 [14:58: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 90 4D 07 01 26 24 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 80 1A 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 B7 B1 78 D5 22 24 6F C8 15 0C 70 44 18 FC [14:58: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 E6 62 47 00 11 C7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 A3 76 00 00 F4 03 04 00 04 C5 14 67 B6 04 01 00 00 60 69 EA 5D AF FF 82 A0 [14:58:01]CommunicateWithHost err = 0 [14:58:01]CheckOFDResponse [14:58:01]1017 (14) - 77093643461234 [14:58:01]1041 (16) - 0000000002094219 [14:58:01]1040 (4) - 30371 [14:58:01]1012 (4) - 20.10.2024 08:53 [14:58:01]1206 (1) - 0 [14:58:01]OFD Sender: Remove packet 30371 [14:58:01]ProducePacketName [14:58:01]name=ofd_packets/00030371 [14:58:01]NVStorageDeleteData [14:58:01]Write to MH i2c: 01 00 00 4A 8E D8 [14:58:01]Write i2c OK [14:58:01]MH_I2C_Read... [14:58:01]Read from MH i2c: 01 [14:58:01]MH_I2C_Read... [14:58:01]Read from MH i2c: 01 07 00 [14:58:01]MH_I2C_Read... [14:58:01]Read from MH i2c: 01 07 00 4A 8E 00 00 00 00 00 F3 0C DE [14:58:01]RasterBufferAndPrint [14:58:01]line [14:58:01]line [14:58:01]line [14:58:01]line [14:58:01]line [14:58:01]written 0, free lines is 3321 [14:58:01]MH_Cut [14:58:01]Write to MH i2c: D1 01 00 51 8E 01 B1 [14:58:01]Write i2c OK [14:58:01]MH_I2C_Read... [14:58:01]Read from MH i2c: D1 [14:58:01]MH_I2C_Read... [14:58:01]Read from MH i2c: D1 01 00 [14:58:01]MH_I2C_Read... [14:58:01]Read from MH i2c: D1 01 00 51 8E 00 B0 [14:58:01]Write to MH i2c: 01 00 00 52 8E E0 [14:58:01]Write i2c OK [14:58:01]MH_I2C_Read... [14:58:01]OFD Sender: No OFD packet to send [14:58:02]*** Cut start [14:58:02]*** Partial cut [14:58:02]*** CUTSNS_PIN = 1 [14:58:02]*** CUTSNS_PIN = 0 [14:58:02]*** Brake cut motor [14:58:02]Read from MH i2c: 01 [14:58:02]MH_I2C_Read... [14:58:02]*** Stop cut motor [14:58:02]*** Cut end [14:58:02]Read from MH i2c: 01 07 00 [14:58:02]MH_I2C_Read... [14:58:02]Read from MH i2c: 01 07 00 52 8E 00 00 00 00 00 FF 0F F5 [14:58:02]process_action close_receipt done [14:58:02]requested_data is exist [14:58:02]produce_requested_data [14:58:02]requested_item fm.sn is exist - process it [14:58:02]wFMCommunicate request_size=4 [14:58:02]MH_SAM_APDU [14:58:02]CAPDU: 80 11 00 00 [14:58:02]Write to MH i2c: E2 08 00 53 8E 80 11 00 00 00 00 00 00 5B [14:58:02]Write i2c OK [14:58:02]MH_I2C_Read... [14:58:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:58:02]Read from MH i2c: E2 [14:58:02]MH_I2C_Read... [14:58:02]Read from MH i2c: E2 17 00 [14:58:02]MH_I2C_Read... [14:58:02]Read from MH i2c: E2 17 00 53 8E 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:58:02]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:02]wFMCommunicate OK [14:58:02]requested_item fd.num is exist - process it [14:58:02]SAM_PROTO_GetFieldsCounters [14:58:02]wFMCommunicate request_size=4 [14:58:02]MH_SAM_APDU [14:58:02]CAPDU: 80 13 00 00 [14:58:02]Write to MH i2c: E2 08 00 54 8E 80 13 00 00 00 00 00 00 5E [14:58:02]Write i2c OK [14:58:02]MH_I2C_Read... [14:58:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:58:02]Read from MH i2c: E2 [14:58:02]MH_I2C_Read... [14:58:02]Read from MH i2c: E2 62 00 [14:58:02]MH_I2C_Read... [14:58:02]Read from MH i2c: E2 62 00 54 8E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 DA [14:58: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 A3 76 00 00 0E 04 04 00 72 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 [14:58:02]wFMCommunicate OK [14:58:02]SAM_PROTO_GetFieldsCounters done [14:58:02]requested_item shift.num is exist - process it [14:58:02]requested_item shift.opened is exist - process it [14:58:02]req_shift_opened [14:58:02]FM_GetShiftState [14:58:02]SAM_PROTO_GetShiftState [14:58:02]wFMCommunicate request_size=4 [14:58:02]MH_SAM_APDU [14:58:02]CAPDU: 80 13 01 00 [14:58:02]Write to MH i2c: E2 08 00 55 8E 80 13 01 00 00 00 00 00 60 [14:58:02]Write i2c OK [14:58:02]MH_I2C_Read... [14:58:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:58:02]Read from MH i2c: E2 [14:58:02]MH_I2C_Read... [14:58:02]Read from MH i2c: E2 0E 00 [14:58:02]MH_I2C_Read... [14:58:02]Read from MH i2c: E2 0E 00 55 8E 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 46 [14:58:02]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [14:58:02]wFMCommunicate OK [14:58:02]SAM_PROTO_GetShiftState done [14:58:02]FM_GetShiftState done [14:58:02]req_shift_opened done [14:58:02]requested_item shift.open_date is exist - process it [14:58:02]req_shift_open_date [14:58:02]req_shift_open_date done [14:58:02]produce_requested_data done [14:58:02]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30371,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [14:58:02]process_action_free close_receipt [14:58:02]json_value_free [14:58:02]json_value_free done [14:58:02]process_json_proto returns [14:58:02]Send response to host [14:58:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30371,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [14:58:02]free response buf [14:58:02]execute_script done [14:58:02]execute_script returns [14:58:02]free content buf [14:58:02]Sock 9.Close socket [14:58:02]Sock 9.Thread stoped [14:58:06]OFD Sender: No OFD packet to send [14:58:11]OFD Sender: No OFD packet to send [14:58:16]OFD Sender: No OFD packet to send [14:58:21]OFD Sender: No OFD packet to send [14:58:26]OFD Sender: No OFD packet to send [14:58:31]OFD Sender: No OFD packet to send [14:58:36]OFD Sender: No OFD packet to send [14:58:41]OFD Sender: No OFD packet to send [14:58:46]OFD Sender: No OFD packet to send [14:58:51]OFD Sender: No OFD packet to send [14:58:56]OFD Sender: No OFD packet to send [14:59:00]accept exits with 7 [14:59:00]New connection [14:59:00]New thread 3067514212 created [14:59:00]Thread 3067370852 joined [14:59:00]Waiting for new connection... [14:59:00] Sock 7.Parse request [14:59:00]Sock 7.Check first char [14:59:00]Sock 7.First char is OK [14:59:00]request: POST /json_proto HTTP/1.0 [14:59:00]Method: POST [14:59:00]URL: /json_proto [14:59:00]Method is POST - this is cgi request [14:59:00]url: /json_proto [14:59:00]query_string will be loaded in cgi processing [14:59:00]execute_cgi json_proto POST (null) [14:59:00]execute_cgi path=json_proto method=POST [14:59:00]POST find Content-Length [14:59:00]Host: 172.17.51.3:8080 [14:59:00]Content-Length: 677 [14:59:00]Content-Type: application/json [14:59:00] [14:59:00]POST finish read [14:59:00]Found Content-Length = 677 [14:59:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342765", "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:59:00]execute_script... [14:59:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342765", "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:59:00]POST & json_proto [14:59:00]process_json_proto [14:59:00]json parsed OK: [14:59:00]protocol is kg_v1.0 [14:59:00]action value=close_receipt [14:59:00]process_action close_receipt [14:59:00]cmd_close_receipt [14:59:00]MH_GetDate [14:59:00]Write to MH i2c: F0 00 00 56 8E D3 [14:59:00]Write i2c OK [14:59:00]MH_I2C_Read... [14:59:00]Read from MH i2c: F0 [14:59:00]MH_I2C_Read... [14:59:00]Read from MH i2c: F0 09 00 [14:59:00]MH_I2C_Read... [14:59:00]Read from MH i2c: F0 09 00 56 8E 00 BE 1A 15 67 04 C1 95 66 F0 [14:59:00]GetLastDocTimeStamp 1729436288 [14:59:00]current date 1729436350 [14:59:00]FM_GetShiftState [14:59:00]SAM_PROTO_GetShiftState [14:59:00]wFMCommunicate request_size=4 [14:59:00]MH_SAM_APDU [14:59:00]CAPDU: 80 13 01 00 [14:59:00]Write to MH i2c: E2 08 00 57 8E 80 13 01 00 00 00 00 00 62 [14:59:00]Write i2c OK [14:59:00]MH_I2C_Read... [14:59:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:59:00]Read from MH i2c: E2 [14:59:00]MH_I2C_Read... [14:59:00]Read from MH i2c: E2 0E 00 [14:59:00]MH_I2C_Read... [14:59:00]Read from MH i2c: E2 0E 00 57 8E 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 48 [14:59:00]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [14:59:00]wFMCommunicate OK [14:59:00]SAM_PROTO_GetShiftState done [14:59:00]FM_GetShiftState done [14:59:00]opened in 1729384718 [14:59:00]opened+sec_in_day 1729471118 [14:59:00]quantity*price = 40006 [14:59:00]sum+1 = 40007 [14:59:00]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 СНО: Общий режим Чек 154 20.10.2024 14:59 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30372 ФПД: 74958249812970 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T145910&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30372&fm=74958249812970&tin=02508201610067®Number=0000000000186857&sum=40000 [14:59:01]StoreToDocumentArchive [14:59:01]shift 114 fd 30372 [14:59:01]save to /storage/0114/doc_00030372 [14:59:01]save last doc name /storage/0114/doc_00030372 to /storage/kkm_last_doc_name [14:59:01]save OK [14:59:01]Clear old archive folders... [14:59:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:59:01]tlvbuf is 00ABC560 [14:59:01]SAM_PROTO_ClearQueue [14:59:01]wFMCommunicate request_size=4 [14:59:01]MH_SAM_APDU [14:59:01]CAPDU: 80 09 00 00 [14:59:01]Write to MH i2c: E2 08 00 64 8E 80 09 00 00 00 00 00 00 64 [14:59:01]Write i2c OK [14:59:01]MH_I2C_Read... [14:59:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:59:01]Read from MH i2c: E2 [14:59:01]MH_I2C_Read... [14:59:01]Read from MH i2c: E2 03 00 [14:59:01]MH_I2C_Read... [14:59:01]Read from MH i2c: E2 03 00 64 8E 00 90 00 66 [14:59:01]RAPDU: 90 00 [14:59:01]wFMCommunicate OK [14:59:01]SAM_PROTO_ClearQueue done [14:59:01]KKMCreateOFDPacket [14:59:01]OFDProtocolAddRootSTLVToBuf [14:59:01]FM_MakeSignedData [14:59:01]FM_MakeSignedData [14:59:01]SAM_PROTO_SignData [14:59:01]wFMCommunicate request_size=4 [14:59:01]MH_SAM_APDU [14:59:01]CAPDU: 80 0D 01 02 [14:59:01]Write to MH i2c: E2 08 00 65 8E 80 0D 01 02 00 00 00 00 6C [14:59:01]Write i2c OK [14:59:01]MH_I2C_Read... [14:59:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:59:01]Read from MH i2c: E2 [14:59:01]MH_I2C_Read... [14:59:01]Read from MH i2c: E2 03 00 [14:59:01]MH_I2C_Read... [14:59:01]Read from MH i2c: E2 03 00 65 8E 00 90 00 67 [14:59:01]RAPDU: 90 00 [14:59:01]wFMCommunicate OK [14:59:01]wFMCommunicate request_size=255 [14:59:01]MH_SAM_APDU [14:59:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 9A 00 00 00 F4 03 04 00 BE 1A 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 44 [14:59:01]Write to MH i2c: E2 02 01 66 8E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 9A 00 00 00 F4 03 04 00 BE 1A 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 44 00 00 8A [14:59:01]Write i2c OK [14:59:01]MH_I2C_Read... [14:59:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:59:01]Read from MH i2c: E2 [14:59:01]MH_I2C_Read... [14:59:01]Read from MH i2c: E2 03 00 [14:59:01]MH_I2C_Read... [14:59:01]Read from MH i2c: E2 03 00 66 8E 00 90 00 68 [14:59:01]RAPDU: 90 00 [14:59:01]wFMCommunicate OK [14:59:01]wFMCommunicate request_size=10 [14:59:01]MH_SAM_APDU [14:59:01]CAPDU: 80 0D 02 02 05 2C 93 DA 63 EA [14:59:01]Write to MH i2c: E2 0D 00 67 8E 80 0D 02 02 05 00 2C 93 DA 63 EA 00 00 5F [14:59:01]Write i2c OK [14:59:01]MH_I2C_Read... [14:59:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:59:01]Read from MH i2c: E2 [14:59:01]MH_I2C_Read... [14:59:01]Read from MH i2c: E2 03 00 [14:59:01]MH_I2C_Read... [14:59:01]Read from MH i2c: E2 03 00 67 8E 00 90 00 69 [14:59:01]RAPDU: 90 00 [14:59:01]wFMCommunicate OK [14:59:01]wFMCommunicate request_size=4 [14:59:01]MH_SAM_APDU [14:59:01]CAPDU: 80 0D 03 02 [14:59:01]Write to MH i2c: E2 08 00 68 8E 80 0D 03 02 00 00 00 00 71 [14:59:01]Write i2c OK [14:59:01]MH_I2C_Read... [14:59:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:59:01]Read from MH i2c: E2 [14:59:01]MH_I2C_Read... [14:59:01]Read from MH i2c: E2 0B 00 [14:59:01]MH_I2C_Read... [14:59:01]Read from MH i2c: E2 0B 00 68 8E 00 E4 D3 DA 6A 8D A8 4C 54 90 00 42 [14:59:01]RAPDU: E4 D3 DA 6A 8D A8 4C 54 90 00 [14:59:01]wFMCommunicate OK [14:59:01]SAM_PROTO_SignData done [14:59:01]FM_MakeSignedData done [14:59:01]CreateOFDProtocolMessage [14:59:01]wFMCommunicate request_size=4 [14:59:01]MH_SAM_APDU [14:59:01]CAPDU: 80 11 00 00 [14:59:01]Write to MH i2c: E2 08 00 69 8E 80 11 00 00 00 00 00 00 71 [14:59:01]Write i2c OK [14:59:01]MH_I2C_Read... [14:59:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:59:01]Read from MH i2c: E2 [14:59:01]MH_I2C_Read... [14:59:01]Read from MH i2c: E2 17 00 [14:59:01]MH_I2C_Read... [14:59:01]Read from MH i2c: E2 17 00 69 8E 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:59:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [14:59:01]wFMCommunicate OK [14:59:01]CreateOFDProtocolMessage done [14:59:01]OFDSenderStorePacket 30372 [14:59:01]StoreOFDPacket docnum=30372 [14:59: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 B4 A0 07 01 A6 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 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 9A 00 00 00 F4 03 04 00 BE 1A 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 44 2C 93 DA 63 EA E4 D3 DA 6A 8D A8 4C 54 [14:59:01]CheckFolder [14:59:01]dirname=/storage/ofd_packets [14:59:01]CheckFolder done [14:59:01]ProducePacketName [14:59:01]name=ofd_packets/00030372 [14:59:01]NVStorageSaveData ofd_packets/00030372 [14:59:01]File name is /storage/ofd_packets/00030372 [14:59:01]Write 301 bytes [14:59:01]NVStorageSaveData done [14:59:01]OFDSenderStorePacket done [14:59:01]KKMCreateOFDPacket done [14:59:01]NVStorageSaveData kkm_last_timestamp [14:59:01]File name is /storage/kkm_last_timestamp [14:59:01]OFD Sender: Processing packet 30372 [packets to send 10, broken 9] [14:59:01]ProducePacketName [14:59:01]name=ofd_packets/00030372 [14:59:01]OFD Sender: To server: pG, [14:59:01]CommunicateWithHost lk.salyk.kg:30040 [14:59:01]ConnectInit lk.salyk.kg [14:59:01]Write 4 bytes [14:59:01]NVStorageSaveData done [14:59:01]ExternCall_PrintAddStr [14:59:01]wPrintStart [14:59:01]Write to MH i2c: 01 00 00 6A 8E F8 [14:59:01]Write i2c OK [14:59:01]MH_I2C_Read... [14:59:01]Read from MH i2c: 01 [14:59:01]MH_I2C_Read... [14:59:01]Read from MH i2c: 01 07 00 [14:59:01]MH_I2C_Read... [14:59:01]Read from MH i2c: 01 07 00 6A 8E 00 00 00 00 00 FF 0F 0D [14:59:01]RasterBufferAndPrint [14:59:01]line Счет N : (1)342765 [14:59:01]line ИНН: 02508201610067 [14:59:01]line Контрольно-Кассовый Чек [14:59:01]line ПРОДАЖА [14:59:01]line ТРК (МРК, ГНК) : 33 [14:59:01]line Товар: 2710124130 [14:59:01]line Аи-92-К-2 [14:59:01]line 5.980 * 66.90 [14:59:01]line = 400.06 [14:59:01]line НДС 12% НСП 1% [14:59:01]line > о реализуемом товаре [14:59:01]line ОКРУГЛЕНИЕ: -0.06 [14:59:01]line ИТОГО: 400.00 [14:59:01]line Внесено: 400.00 [14:59:01]line СДАЧА: 0.00 [14:59:01]line НСП 1% : 3.54 [14:59:01]line НДС 12% : 42.48 [14:59:01]line Наличными: 400.00 [14:59:01]line Безнал.: 0.00 [14:59:01]line Место: АЗС № 78 "Партнер Нефть" [14:59:01]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [14:59:01]line СНО: Общий режим [14:59:01]line Чек 154 20.10.2024 14:59 [14:59:01]line Смена: 114 ФФД: 1.0 [14:59:01]line ЗНМ: 0300000137 [14:59:02]line РНМ: 0000000000186857 [14:59:02]line Версия ККМ: v1.0 [14:59:02]line ФМ: 0000000002094219 [14:59:02]line ФД: 30372 [14:59:02]line ФПД: 74958249812970 [14:59:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T145910&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30372&fm=74958249812970&tin=02508201610067®Number=0000000000186857&sum=40000 [14:59:02]Connected sock=11 [14:59: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 B4 A0 07 01 A6 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 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 9A 00 00 00 F4 03 04 00 BE 1A 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 44 2C 93 DA 63 EA E4 D3 DA 6A 8D A8 4C 54 [14:59:02]written 0, free lines is 4095 [14:59: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 62 DA 47 00 E9 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 A4 76 00 00 F4 03 04 00 41 C5 14 67 B6 04 01 00 00 02 41 8C 51 37 9D 79 E4 [14:59:02]CommunicateWithHost err = 0 [14:59:02]CheckOFDResponse [14:59:02]1017 (14) - 77093643461234 [14:59:02]1041 (16) - 0000000002094219 [14:59:02]1040 (4) - 30372 [14:59:02]1012 (4) - 20.10.2024 08:54 [14:59:02]1206 (1) - 0 [14:59:02]OFD Sender: Remove packet 30372 [14:59:02]ProducePacketName [14:59:02]name=ofd_packets/00030372 [14:59:02]NVStorageDeleteData [14:59:02]Write to MH i2c: 01 00 00 95 8E 23 [14:59:02]Write i2c OK [14:59:02]MH_I2C_Read... [14:59:02]Read from MH i2c: 01 [14:59:02]MH_I2C_Read... [14:59:02]Read from MH i2c: 01 07 00 [14:59:02]MH_I2C_Read... [14:59:02]Read from MH i2c: 01 07 00 95 8E 00 00 00 00 00 E4 0C 1A [14:59:02]RasterBufferAndPrint [14:59:02]line [14:59:02]line [14:59:02]line [14:59:02]line [14:59:02]line [14:59:02]written 0, free lines is 3306 [14:59:02]MH_Cut [14:59:02]Write to MH i2c: D1 01 00 9C 8E 01 FC [14:59:02]Write i2c OK [14:59:02]MH_I2C_Read... [14:59:02]Read from MH i2c: D1 [14:59:02]MH_I2C_Read... [14:59:02]Read from MH i2c: D1 01 00 [14:59:02]MH_I2C_Read... [14:59:02]Read from MH i2c: D1 01 00 9C 8E 00 FB [14:59:02]Write to MH i2c: 01 00 00 9D 8E 2B [14:59:02]Write i2c OK [14:59:02]MH_I2C_Read... [14:59:02]OFD Sender: No OFD packet to send [14:59:03]*** Cut start [14:59:03]*** Partial cut [14:59:03]*** CUTSNS_PIN = 1 [14:59:03]*** CUTSNS_PIN = 0 [14:59:03]*** Brake cut motor [14:59:03]Read from MH i2c: 01 [14:59:03]MH_I2C_Read... [14:59:03]*** Stop cut motor [14:59:03]*** Cut end [14:59:03]Read from MH i2c: 01 07 00 [14:59:03]MH_I2C_Read... [14:59:03]Read from MH i2c: 01 07 00 9D 8E 00 00 00 00 00 FF 0F 40 [14:59:03]process_action close_receipt done [14:59:03]requested_data is exist [14:59:03]produce_requested_data [14:59:03]requested_item fm.sn is exist - process it [14:59:03]wFMCommunicate request_size=4 [14:59:03]MH_SAM_APDU [14:59:03]CAPDU: 80 11 00 00 [14:59:03]Write to MH i2c: E2 08 00 9E 8E 80 11 00 00 00 00 00 00 A6 [14:59:03]Write i2c OK [14:59:03]MH_I2C_Read... [14:59:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:59:04]Read from MH i2c: E2 [14:59:04]MH_I2C_Read... [14:59:04]Read from MH i2c: E2 17 00 [14:59:04]MH_I2C_Read... [14:59:04]Read from MH i2c: E2 17 00 9E 8E 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:59:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [14:59:04]wFMCommunicate OK [14:59:04]requested_item fd.num is exist - process it [14:59:04]SAM_PROTO_GetFieldsCounters [14:59:04]wFMCommunicate request_size=4 [14:59:04]MH_SAM_APDU [14:59:04]CAPDU: 80 13 00 00 [14:59:04]Write to MH i2c: E2 08 00 9F 8E 80 13 00 00 00 00 00 00 A9 [14:59:04]Write i2c OK [14:59:04]MH_I2C_Read... [14:59:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:59:04]Read from MH i2c: E2 [14:59:04]MH_I2C_Read... [14:59:04]Read from MH i2c: E2 62 00 [14:59:04]MH_I2C_Read... [14:59:04]Read from MH i2c: E2 62 00 9F 8E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 29 [14:59: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 A4 76 00 00 0E 04 04 00 72 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 [14:59:04]wFMCommunicate OK [14:59:04]SAM_PROTO_GetFieldsCounters done [14:59:04]requested_item shift.num is exist - process it [14:59:04]requested_item shift.opened is exist - process it [14:59:04]req_shift_opened [14:59:04]FM_GetShiftState [14:59:04]SAM_PROTO_GetShiftState [14:59:04]wFMCommunicate request_size=4 [14:59:04]MH_SAM_APDU [14:59:04]CAPDU: 80 13 01 00 [14:59:04]Write to MH i2c: E2 08 00 A0 8E 80 13 01 00 00 00 00 00 AB [14:59:04]Write i2c OK [14:59:04]MH_I2C_Read... [14:59:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:59:04]Read from MH i2c: E2 [14:59:04]MH_I2C_Read... [14:59:04]Read from MH i2c: E2 0E 00 [14:59:04]MH_I2C_Read... [14:59:04]Read from MH i2c: E2 0E 00 A0 8E 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 91 [14:59:04]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [14:59:04]wFMCommunicate OK [14:59:04]SAM_PROTO_GetShiftState done [14:59:04]FM_GetShiftState done [14:59:04]req_shift_opened done [14:59:04]requested_item shift.open_date is exist - process it [14:59:04]req_shift_open_date [14:59:04]req_shift_open_date done [14:59:04]produce_requested_data done [14:59:04]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30372,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [14:59:04]process_action_free close_receipt [14:59:04]json_value_free [14:59:04]json_value_free done [14:59:04]process_json_proto returns [14:59:04]Send response to host [14:59:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30372,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [14:59:04]free response buf [14:59:04]execute_script done [14:59:04]execute_script returns [14:59:04]free content buf [14:59:04]Sock 7.Close socket [14:59:04]Sock 7.Thread stoped [14:59:07]OFD Sender: No OFD packet to send [14:59:12]OFD Sender: No OFD packet to send [14:59:17]OFD Sender: No OFD packet to send [14:59:22]OFD Sender: No OFD packet to send [14:59:27]OFD Sender: No OFD packet to send [14:59:32]OFD Sender: No OFD packet to send [14:59:37]OFD Sender: No OFD packet to send [14:59:42]OFD Sender: No OFD packet to send [14:59:47]OFD Sender: No OFD packet to send [14:59:52]OFD Sender: No OFD packet to send [14:59:57]OFD Sender: No OFD packet to send [15:00:02]OFD Sender: No OFD packet to send [15:00:07]OFD Sender: No OFD packet to send [15:00:12]OFD Sender: No OFD packet to send [15:00:17]OFD Sender: No OFD packet to send [15:00:22]OFD Sender: No OFD packet to send [15:00:27]OFD Sender: No OFD packet to send [15:00:32]OFD Sender: No OFD packet to send [15:00:37]OFD Sender: No OFD packet to send [15:00:42]OFD Sender: No OFD packet to send [15:00:47]OFD Sender: No OFD packet to send [15:00:52]OFD Sender: No OFD packet to send [15:00:57]OFD Sender: No OFD packet to send [15:01:03]OFD Sender: No OFD packet to send [15:01:08]OFD Sender: No OFD packet to send [15:01:13]OFD Sender: No OFD packet to send [15:01:15]accept exits with 9 [15:01:15]New connection [15:01:15]New thread 3067370852 created [15:01:15]Thread 3067514212 joined [15:01:15]Waiting for new connection... [15:01:15] Sock 9.Parse request [15:01:15]Sock 9.Check first char [15:01:15]Sock 9.First char is OK [15:01:15]request: POST /json_proto HTTP/1.0 [15:01:15]Method: POST [15:01:15]URL: /json_proto [15:01:15]Method is POST - this is cgi request [15:01:15]url: /json_proto [15:01:15]query_string will be loaded in cgi processing [15:01:15]execute_cgi json_proto POST (null) [15:01:15]execute_cgi path=json_proto method=POST [15:01:15]POST find Content-Length [15:01:15]Host: 172.17.51.3:8080 [15:01:15]Content-Length: 677 [15:01:15]Content-Type: application/json [15:01:15] [15:01:15]POST finish read [15:01:15]Found Content-Length = 677 [15:01:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342767", "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:01:15]execute_script... [15:01: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)342767", "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:01:15]POST & json_proto [15:01:15]process_json_proto [15:01:15]json parsed OK: [15:01:15]protocol is kg_v1.0 [15:01:15]action value=close_receipt [15:01:15]process_action close_receipt [15:01:15]cmd_close_receipt [15:01:15]MH_GetDate [15:01:15]Write to MH i2c: F0 00 00 A1 8E 1E [15:01:15]Write i2c OK [15:01:15]MH_I2C_Read... [15:01:15]Read from MH i2c: F0 [15:01:15]MH_I2C_Read... [15:01:15]Read from MH i2c: F0 09 00 [15:01:15]MH_I2C_Read... [15:01:15]Read from MH i2c: F0 09 00 A1 8E 00 45 1B 15 67 04 C1 95 66 C3 [15:01:15]GetLastDocTimeStamp 1729436350 [15:01:15]current date 1729436485 [15:01:15]FM_GetShiftState [15:01:15]SAM_PROTO_GetShiftState [15:01:15]wFMCommunicate request_size=4 [15:01:15]MH_SAM_APDU [15:01:15]CAPDU: 80 13 01 00 [15:01:15]Write to MH i2c: E2 08 00 A2 8E 80 13 01 00 00 00 00 00 AD [15:01:15]Write i2c OK [15:01:15]MH_I2C_Read... [15:01:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:01:15]Read from MH i2c: E2 [15:01:15]MH_I2C_Read... [15:01:15]Read from MH i2c: E2 0E 00 [15:01:15]MH_I2C_Read... [15:01:15]Read from MH i2c: E2 0E 00 A2 8E 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 93 [15:01:15]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [15:01:15]wFMCommunicate OK [15:01:15]SAM_PROTO_GetShiftState done [15:01:15]FM_GetShiftState done [15:01:15]opened in 1729384718 [15:01:15]opened+sec_in_day 1729471118 [15:01:15]quantity*price = 40006 [15:01:15]sum+1 = 40007 [15:01:15]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 20.10.2024 15:01 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30373 ФПД: 147771265283857 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T150125&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30373&fm=147771265283857&tin=02508201610067®Number=0000000000186857&sum=40000 [15:01:17]StoreToDocumentArchive [15:01:17]shift 114 fd 30373 [15:01:17]save to /storage/0114/doc_00030373 [15:01:17]save last doc name /storage/0114/doc_00030373 to /storage/kkm_last_doc_name [15:01:17]save OK [15:01:17]Clear old archive folders... [15:01:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:01:17]tlvbuf is 00B23F50 [15:01:17]SAM_PROTO_ClearQueue [15:01:17]wFMCommunicate request_size=4 [15:01:17]MH_SAM_APDU [15:01:17]CAPDU: 80 09 00 00 [15:01:17]Write to MH i2c: E2 08 00 AF 8E 80 09 00 00 00 00 00 00 AF [15:01:17]Write i2c OK [15:01:17]MH_I2C_Read... [15:01:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:01:17]Read from MH i2c: E2 [15:01:17]MH_I2C_Read... [15:01:17]Read from MH i2c: E2 03 00 [15:01:17]MH_I2C_Read... [15:01:17]Read from MH i2c: E2 03 00 AF 8E 00 90 00 B1 [15:01:17]RAPDU: 90 00 [15:01:17]wFMCommunicate OK [15:01:17]SAM_PROTO_ClearQueue done [15:01:17]KKMCreateOFDPacket [15:01:17]OFDProtocolAddRootSTLVToBuf [15:01:17]FM_MakeSignedData [15:01:17]FM_MakeSignedData [15:01:17]SAM_PROTO_SignData [15:01:17]wFMCommunicate request_size=4 [15:01:17]MH_SAM_APDU [15:01:17]CAPDU: 80 0D 01 02 [15:01:17]Write to MH i2c: E2 08 00 B0 8E 80 0D 01 02 00 00 00 00 B7 [15:01:17]Write i2c OK [15:01:17]MH_I2C_Read... [15:01:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:01:17]Read from MH i2c: E2 [15:01:17]MH_I2C_Read... [15:01:17]Read from MH i2c: E2 03 00 [15:01:17]MH_I2C_Read... [15:01:17]Read from MH i2c: E2 03 00 B0 8E 00 90 00 B2 [15:01:17]RAPDU: 90 00 [15:01:17]wFMCommunicate OK [15:01:17]wFMCommunicate request_size=255 [15:01:17]MH_SAM_APDU [15:01: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 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 45 1B 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 86 [15:01:17]Write to MH i2c: E2 02 01 B1 8E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 45 1B 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 86 00 00 A1 [15:01:17]Write i2c OK [15:01:17]MH_I2C_Read... [15:01:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:01:17]Read from MH i2c: E2 [15:01:17]MH_I2C_Read... [15:01:17]Read from MH i2c: E2 03 00 [15:01:17]MH_I2C_Read... [15:01:17]Read from MH i2c: E2 03 00 B1 8E 00 90 00 B3 [15:01:17]RAPDU: 90 00 [15:01:17]wFMCommunicate OK [15:01:17]wFMCommunicate request_size=10 [15:01:17]MH_SAM_APDU [15:01:17]CAPDU: 80 0D 02 02 05 65 AD C6 77 11 [15:01:17]Write to MH i2c: E2 0D 00 B2 8E 80 0D 02 02 05 00 65 AD C6 77 11 00 00 24 [15:01:17]Write i2c OK [15:01:17]MH_I2C_Read... [15:01:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:01:17]Read from MH i2c: E2 [15:01:17]MH_I2C_Read... [15:01:17]Read from MH i2c: E2 03 00 [15:01:17]MH_I2C_Read... [15:01:17]Read from MH i2c: E2 03 00 B2 8E 00 90 00 B4 [15:01:17]RAPDU: 90 00 [15:01:17]wFMCommunicate OK [15:01:17]wFMCommunicate request_size=4 [15:01:17]MH_SAM_APDU [15:01:17]CAPDU: 80 0D 03 02 [15:01:17]Write to MH i2c: E2 08 00 B3 8E 80 0D 03 02 00 00 00 00 BC [15:01:17]Write i2c OK [15:01:17]MH_I2C_Read... [15:01:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:01:17]Read from MH i2c: E2 [15:01:17]MH_I2C_Read... [15:01:17]Read from MH i2c: E2 0B 00 [15:01:17]MH_I2C_Read... [15:01:17]Read from MH i2c: E2 0B 00 B3 8E 00 FD DF 23 8F FB 56 B8 E7 90 00 3B [15:01:17]RAPDU: FD DF 23 8F FB 56 B8 E7 90 00 [15:01:17]wFMCommunicate OK [15:01:17]SAM_PROTO_SignData done [15:01:17]FM_MakeSignedData done [15:01:17]CreateOFDProtocolMessage [15:01:17]wFMCommunicate request_size=4 [15:01:17]MH_SAM_APDU [15:01:17]CAPDU: 80 11 00 00 [15:01:17]Write to MH i2c: E2 08 00 B4 8E 80 11 00 00 00 00 00 00 BC [15:01:17]Write i2c OK [15:01:17]MH_I2C_Read... [15:01:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:01:17]Read from MH i2c: E2 [15:01:17]MH_I2C_Read... [15:01:17]Read from MH i2c: E2 17 00 [15:01:17]MH_I2C_Read... [15:01:17]Read from MH i2c: E2 17 00 B4 8E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 0A [15:01:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [15:01:17]wFMCommunicate OK [15:01:17]CreateOFDProtocolMessage done [15:01:17]OFDSenderStorePacket 30373 [15:01:17]StoreOFDPacket docnum=30373 [15:01: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 F4 C2 07 01 AA 75 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 45 1B 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 86 65 AD C6 77 11 FD DF 23 8F FB 56 B8 E7 [15:01:17]CheckFolder [15:01:17]dirname=/storage/ofd_packets [15:01:17]CheckFolder done [15:01:17]ProducePacketName [15:01:17]name=ofd_packets/00030373 [15:01:17]NVStorageSaveData ofd_packets/00030373 [15:01:17]File name is /storage/ofd_packets/00030373 [15:01:17]Write 301 bytes [15:01:17]NVStorageSaveData done [15:01:17]OFDSenderStorePacket done [15:01:17]KKMCreateOFDPacket done [15:01:17]NVStorageSaveData kkm_last_timestamp [15:01:17]File name is /storage/kkm_last_timestamp [15:01:17]Write 4 bytes [15:01:17]NVStorageSaveData done [15:01:17]ExternCall_PrintAddStr [15:01:17]wPrintStart [15:01:17]Write to MH i2c: 01 00 00 B5 8E 43 [15:01:17]Write i2c OK [15:01:17]MH_I2C_Read... [15:01:17]Read from MH i2c: 01 [15:01:17]MH_I2C_Read... [15:01:17]Read from MH i2c: 01 07 00 [15:01:17]MH_I2C_Read... [15:01:17]Read from MH i2c: 01 07 00 B5 8E 00 00 00 00 00 FF 0F 58 [15:01:17]RasterBufferAndPrint [15:01:17]line Счет N : (1)342767 [15:01:17]line ИНН: 02508201610067 [15:01:17]line Контрольно-Кассовый Чек [15:01:17]line ПРОДАЖА [15:01:17]line ТРК (МРК, ГНК) : 43 [15:01:17]line Товар: 2710124130 [15:01:17]line Аи-92-К-2 [15:01:17]line 5.980 * 66.90 [15:01:17]line = 400.06 [15:01:17]line НДС 12% НСП 1% [15:01:17]line > о реализуемом товаре [15:01:17]line ОКРУГЛЕНИЕ: -0.06 [15:01:17]line ИТОГО: 400.00 [15:01:17]line Внесено: 400.00 [15:01:17]line СДАЧА: 0.00 [15:01:17]line НСП 1% : 3.54 [15:01:17]line НДС 12% : 42.48 [15:01:17]line Наличными: 400.00 [15:01:17]line Безнал.: 0.00 [15:01:17]line Место: АЗС № 78 "Партнер Нефть" [15:01:17]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [15:01:17]line СНО: Общий режим [15:01:17]line Чек 155 20.10.2024 15:01 [15:01:17]line Смена: 114 ФФД: 1.0 [15:01:17]line ЗНМ: 0300000137 [15:01:17]line РНМ: 0000000000186857 [15:01:17]line Версия ККМ: v1.0 [15:01:17]line ФМ: 0000000002094219 [15:01:17]line ФД: 30373 [15:01:17]line ФПД: 147771265283857 [15:01:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T150125&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30373&fm=147771265283857&tin=02508201610067®Number=0000000000186857&sum=40000 [15:01:17]OFD Sender: Processing packet 30373 [packets to send 10, broken 9] [15:01:17]ProducePacketName [15:01:17]name=ofd_packets/00030373 [15:01:17]OFD Sender: To server: pG, [15:01:17]CommunicateWithHost lk.salyk.kg:30040 [15:01:17]ConnectInit lk.salyk.kg [15:01:17]written 0, free lines is 4095 [15:01:17]Connected sock=7 [15:01: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 F4 C2 07 01 AA 75 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 45 1B 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 86 65 AD C6 77 11 FD DF 23 8F FB 56 B8 E7 [15:01: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 9A AA 47 00 4B 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 A5 76 00 00 F4 03 04 00 C9 C5 14 67 B6 04 01 00 00 A9 41 68 26 5E BE B6 77 [15:01:18]CommunicateWithHost err = 0 [15:01:18]CheckOFDResponse [15:01:18]1017 (14) - 77093643461234 [15:01:18]1041 (16) - 0000000002094219 [15:01:18]1040 (4) - 30373 [15:01:18]1012 (4) - 20.10.2024 08:56 [15:01:18]1206 (1) - 0 [15:01:18]OFD Sender: Remove packet 30373 [15:01:18]ProducePacketName [15:01:18]name=ofd_packets/00030373 [15:01:18]NVStorageDeleteData [15:01:18]Write to MH i2c: 01 00 00 E0 8E 6E [15:01:18]Write i2c OK [15:01:18]MH_I2C_Read... [15:01:18]Read from MH i2c: 01 [15:01:18]MH_I2C_Read... [15:01:18]Read from MH i2c: 01 07 00 [15:01:18]MH_I2C_Read... [15:01:18]Read from MH i2c: 01 07 00 E0 8E 00 00 00 00 00 EE 0C 6F [15:01:18]RasterBufferAndPrint [15:01:18]line [15:01:18]line [15:01:18]line [15:01:18]line [15:01:18]line [15:01:18]written 0, free lines is 3319 [15:01:18]MH_Cut [15:01:18]Write to MH i2c: D1 01 00 E7 8E 01 47 [15:01:18]Write i2c OK [15:01:18]MH_I2C_Read... [15:01:18]Read from MH i2c: D1 [15:01:18]MH_I2C_Read... [15:01:18]Read from MH i2c: D1 01 00 [15:01:18]MH_I2C_Read... [15:01:18]Read from MH i2c: D1 01 00 E7 8E 00 46 [15:01:18]Write to MH i2c: 01 00 00 E8 8E 76 [15:01:18]Write i2c OK [15:01:18]MH_I2C_Read... [15:01:18]OFD Sender: No OFD packet to send [15:01:19]*** Cut start [15:01:19]*** Partial cut [15:01:19]*** CUTSNS_PIN = 1 [15:01:19]*** CUTSNS_PIN = 0 [15:01:19]*** Brake cut motor [15:01:19]Read from MH i2c: 01 [15:01:19]MH_I2C_Read... [15:01:19]*** Stop cut motor [15:01:19]*** Cut end [15:01:19]Read from MH i2c: 01 07 00 [15:01:19]MH_I2C_Read... [15:01:19]Read from MH i2c: 01 07 00 E8 8E 00 00 00 00 00 FF 0F 8B [15:01:19]process_action close_receipt done [15:01:19]requested_data is exist [15:01:19]produce_requested_data [15:01:19]requested_item fm.sn is exist - process it [15:01:19]wFMCommunicate request_size=4 [15:01:19]MH_SAM_APDU [15:01:19]CAPDU: 80 11 00 00 [15:01:19]Write to MH i2c: E2 08 00 E9 8E 80 11 00 00 00 00 00 00 F1 [15:01:19]Write i2c OK [15:01:19]MH_I2C_Read... [15:01:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:01:19]Read from MH i2c: E2 [15:01:19]MH_I2C_Read... [15:01:19]Read from MH i2c: E2 17 00 [15:01:19]MH_I2C_Read... [15:01:19]Read from MH i2c: E2 17 00 E9 8E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 3F [15:01:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [15:01:19]wFMCommunicate OK [15:01:19]requested_item fd.num is exist - process it [15:01:19]SAM_PROTO_GetFieldsCounters [15:01:19]wFMCommunicate request_size=4 [15:01:19]MH_SAM_APDU [15:01:19]CAPDU: 80 13 00 00 [15:01:19]Write to MH i2c: E2 08 00 EA 8E 80 13 00 00 00 00 00 00 F4 [15:01:19]Write i2c OK [15:01:19]MH_I2C_Read... [15:01:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:01:19]Read from MH i2c: E2 [15:01:19]MH_I2C_Read... [15:01:19]Read from MH i2c: E2 62 00 [15:01:19]MH_I2C_Read... [15:01:19]Read from MH i2c: E2 62 00 EA 8E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 78 [15:01: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 A5 76 00 00 0E 04 04 00 72 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:01:19]wFMCommunicate OK [15:01:19]SAM_PROTO_GetFieldsCounters done [15:01:19]requested_item shift.num is exist - process it [15:01:19]requested_item shift.opened is exist - process it [15:01:19]req_shift_opened [15:01:19]FM_GetShiftState [15:01:19]SAM_PROTO_GetShiftState [15:01:19]wFMCommunicate request_size=4 [15:01:19]MH_SAM_APDU [15:01:19]CAPDU: 80 13 01 00 [15:01:19]Write to MH i2c: E2 08 00 EB 8E 80 13 01 00 00 00 00 00 F6 [15:01:19]Write i2c OK [15:01:19]MH_I2C_Read... [15:01:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:01:19]Read from MH i2c: E2 [15:01:19]MH_I2C_Read... [15:01:19]Read from MH i2c: E2 0E 00 [15:01:19]MH_I2C_Read... [15:01:19]Read from MH i2c: E2 0E 00 EB 8E 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 DC [15:01:19]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [15:01:19]wFMCommunicate OK [15:01:19]SAM_PROTO_GetShiftState done [15:01:19]FM_GetShiftState done [15:01:19]req_shift_opened done [15:01:19]requested_item shift.open_date is exist - process it [15:01:19]req_shift_open_date [15:01:19]req_shift_open_date done [15:01:19]produce_requested_data done [15:01:19]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30373,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [15:01:19]process_action_free close_receipt [15:01:19]json_value_free [15:01:19]json_value_free done [15:01:19]process_json_proto returns [15:01:19]Send response to host [15:01:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30373,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [15:01:19]free response buf [15:01:19]execute_script done [15:01:19]execute_script returns [15:01:19]free content buf [15:01:19]Sock 9.Close socket [15:01:19]Sock 9.Thread stoped [15:01:23]OFD Sender: No OFD packet to send [15:01:28]OFD Sender: No OFD packet to send [15:01:33]OFD Sender: No OFD packet to send [15:01:38]OFD Sender: No OFD packet to send [15:01:43]OFD Sender: No OFD packet to send [15:01:48]OFD Sender: No OFD packet to send [15:01:53]OFD Sender: No OFD packet to send [15:01:58]OFD Sender: No OFD packet to send [15:02:03]OFD Sender: No OFD packet to send [15:02:08]OFD Sender: No OFD packet to send [15:02:13]OFD Sender: No OFD packet to send [15:02:18]OFD Sender: No OFD packet to send [15:02:23]OFD Sender: No OFD packet to send [15:02:25]accept exits with 10 [15:02:25]New connection [15:02:25]New thread 3067514212 created [15:02:25]Thread 3067370852 joined [15:02:25]Waiting for new connection... [15:02:25] Sock 10.Parse request [15:02:25]Sock 10.Check first char [15:02:25]Sock 10.First char is OK [15:02:25]request: POST /json_proto HTTP/1.0 [15:02:25]Method: POST [15:02:25]URL: /json_proto [15:02:25]Method is POST - this is cgi request [15:02:25]url: /json_proto [15:02:25]query_string will be loaded in cgi processing [15:02:25]execute_cgi json_proto POST (null) [15:02:25]execute_cgi path=json_proto method=POST [15:02:25]POST find Content-Length [15:02:25]Host: 172.17.51.3:8080 [15:02:25]Content-Length: 677 [15:02:25]Content-Type: application/json [15:02:25] [15:02:25]POST finish read [15:02:25]Found Content-Length = 677 [15:02:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342766", "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:02:25]execute_script... [15:02:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342766", "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:02:25]POST & json_proto [15:02:25]process_json_proto [15:02:25]json parsed OK: [15:02:25]protocol is kg_v1.0 [15:02:25]action value=close_receipt [15:02:25]process_action close_receipt [15:02:25]cmd_close_receipt [15:02:25]MH_GetDate [15:02:25]Write to MH i2c: F0 00 00 EC 8E 69 [15:02:25]Write i2c OK [15:02:25]MH_I2C_Read... [15:02:25]Read from MH i2c: F0 [15:02:25]MH_I2C_Read... [15:02:25]Read from MH i2c: F0 09 00 [15:02:25]MH_I2C_Read... [15:02:25]Read from MH i2c: F0 09 00 EC 8E 00 8B 1B 15 67 04 C1 95 66 54 [15:02:25]GetLastDocTimeStamp 1729436485 [15:02:25]current date 1729436555 [15:02:25]FM_GetShiftState [15:02:25]SAM_PROTO_GetShiftState [15:02:25]wFMCommunicate request_size=4 [15:02:25]MH_SAM_APDU [15:02:25]CAPDU: 80 13 01 00 [15:02:25]Write to MH i2c: E2 08 00 ED 8E 80 13 01 00 00 00 00 00 F8 [15:02:25]Write i2c OK [15:02:25]MH_I2C_Read... [15:02:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:02:25]Read from MH i2c: E2 [15:02:25]MH_I2C_Read... [15:02:25]Read from MH i2c: E2 0E 00 [15:02:25]MH_I2C_Read... [15:02:25]Read from MH i2c: E2 0E 00 ED 8E 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 DE [15:02:25]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [15:02:25]wFMCommunicate OK [15:02:25]SAM_PROTO_GetShiftState done [15:02:25]FM_GetShiftState done [15:02:25]opened in 1729384718 [15:02:25]opened+sec_in_day 1729471118 [15:02:25]quantity*price = 50041 [15:02:25]sum+1 = 50042 [15:02: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 СНО: Общий режим Чек 156 20.10.2024 15:02 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30374 ФПД: 239991027715660 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T150235&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30374&fm=239991027715660&tin=02508201610067®Number=0000000000186857&sum=50000 [15:02:26]StoreToDocumentArchive [15:02:26]shift 114 fd 30374 [15:02:26]save to /storage/0114/doc_00030374 [15:02:26]save last doc name /storage/0114/doc_00030374 to /storage/kkm_last_doc_name [15:02:26]save OK [15:02:26]Clear old archive folders... [15:02:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:02:26]tlvbuf is 00BEBDD0 [15:02:26]SAM_PROTO_ClearQueue [15:02:26]wFMCommunicate request_size=4 [15:02:26]MH_SAM_APDU [15:02:26]CAPDU: 80 09 00 00 [15:02:26]Write to MH i2c: E2 08 00 FA 8E 80 09 00 00 00 00 00 00 FA [15:02:26]Write i2c OK [15:02:26]MH_I2C_Read... [15:02:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:02:26]Read from MH i2c: E2 [15:02:26]MH_I2C_Read... [15:02:26]Read from MH i2c: E2 03 00 [15:02:26]MH_I2C_Read... [15:02:26]Read from MH i2c: E2 03 00 FA 8E 00 90 00 FC [15:02:26]RAPDU: 90 00 [15:02:26]wFMCommunicate OK [15:02:26]SAM_PROTO_ClearQueue done [15:02:26]KKMCreateOFDPacket [15:02:26]OFDProtocolAddRootSTLVToBuf [15:02:26]FM_MakeSignedData [15:02:26]FM_MakeSignedData [15:02:26]SAM_PROTO_SignData [15:02:26]wFMCommunicate request_size=4 [15:02:26]MH_SAM_APDU [15:02:26]CAPDU: 80 0D 01 02 [15:02:26]Write to MH i2c: E2 08 00 FB 8E 80 0D 01 02 00 00 00 00 02 [15:02:26]Write i2c OK [15:02:26]MH_I2C_Read... [15:02:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:02:26]Read from MH i2c: E2 [15:02:26]MH_I2C_Read... [15:02:26]Read from MH i2c: E2 03 00 [15:02:26]MH_I2C_Read... [15:02:26]Read from MH i2c: E2 03 00 FB 8E 00 90 00 FD [15:02:26]RAPDU: 90 00 [15:02:26]wFMCommunicate OK [15:02:26]wFMCommunicate request_size=255 [15:02:26]MH_SAM_APDU [15:02:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 9C 00 00 00 F4 03 04 00 8B 1B 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 DA [15:02:26]Write to MH i2c: E2 02 01 FC 8E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 9C 00 00 00 F4 03 04 00 8B 1B 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 DA 00 00 B9 [15:02:26]Write i2c OK [15:02:26]MH_I2C_Read... [15:02:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:02:26]Read from MH i2c: E2 [15:02:26]MH_I2C_Read... [15:02:26]Read from MH i2c: E2 03 00 [15:02:26]MH_I2C_Read... [15:02:26]Read from MH i2c: E2 03 00 FC 8E 00 90 00 FE [15:02:26]RAPDU: 90 00 [15:02:26]wFMCommunicate OK [15:02:26]wFMCommunicate request_size=10 [15:02:26]MH_SAM_APDU [15:02:26]CAPDU: 80 0D 02 02 05 45 43 F4 CE 4C [15:02:26]Write to MH i2c: E2 0D 00 FD 8E 80 0D 02 02 05 00 45 43 F4 CE 4C 00 00 A5 [15:02:26]Write i2c OK [15:02:26]MH_I2C_Read... [15:02:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:02:26]Read from MH i2c: E2 [15:02:26]MH_I2C_Read... [15:02:26]Read from MH i2c: E2 03 00 [15:02:26]MH_I2C_Read... [15:02:26]Read from MH i2c: E2 03 00 FD 8E 00 90 00 FF [15:02:26]RAPDU: 90 00 [15:02:26]wFMCommunicate OK [15:02:26]wFMCommunicate request_size=4 [15:02:26]MH_SAM_APDU [15:02:26]CAPDU: 80 0D 03 02 [15:02:26]Write to MH i2c: E2 08 00 FE 8E 80 0D 03 02 00 00 00 00 07 [15:02:26]Write i2c OK [15:02:26]MH_I2C_Read... [15:02:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:02:26]Read from MH i2c: E2 [15:02:26]MH_I2C_Read... [15:02:26]Read from MH i2c: E2 0B 00 [15:02:26]MH_I2C_Read... [15:02:26]Read from MH i2c: E2 0B 00 FE 8E 00 47 A5 CE FB 50 88 0F 30 90 00 D4 [15:02:26]RAPDU: 47 A5 CE FB 50 88 0F 30 90 00 [15:02:26]wFMCommunicate OK [15:02:26]SAM_PROTO_SignData done [15:02:26]FM_MakeSignedData done [15:02:26]CreateOFDProtocolMessage [15:02:26]wFMCommunicate request_size=4 [15:02:26]MH_SAM_APDU [15:02:26]CAPDU: 80 11 00 00 [15:02:26]Write to MH i2c: E2 08 00 FF 8E 80 11 00 00 00 00 00 00 07 [15:02:26]Write i2c OK [15:02:26]MH_I2C_Read... [15:02:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:02:26]Read from MH i2c: E2 [15:02:26]MH_I2C_Read... [15:02:26]Read from MH i2c: E2 17 00 [15:02:26]MH_I2C_Read... [15:02:26]Read from MH i2c: E2 17 00 FF 8E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 55 [15:02:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [15:02:26]wFMCommunicate OK [15:02:26]CreateOFDProtocolMessage done [15:02:26]OFDSenderStorePacket 30374 [15:02:26]StoreOFDPacket docnum=30374 [15:02: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 26 57 07 01 A1 66 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 9C 00 00 00 F4 03 04 00 8B 1B 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 DA 45 43 F4 CE 4C 47 A5 CE FB 50 88 0F 30 [15:02:26]CheckFolder [15:02:26]dirname=/storage/ofd_packets [15:02:26]CheckFolder done [15:02:26]ProducePacketName [15:02:26]name=ofd_packets/00030374 [15:02:26]NVStorageSaveData ofd_packets/00030374 [15:02:26]File name is /storage/ofd_packets/00030374 [15:02:26]Write 301 bytes [15:02:26]NVStorageSaveData done [15:02:26]OFDSenderStorePacket done [15:02:26]KKMCreateOFDPacket done [15:02:26]NVStorageSaveData kkm_last_timestamp [15:02:26]File name is /storage/kkm_last_timestamp [15:02:26]Write 4 bytes [15:02:26]NVStorageSaveData done [15:02:26]ExternCall_PrintAddStr [15:02:26]wPrintStart [15:02:26]Write to MH i2c: 01 00 00 00 8F 8F [15:02:26]Write i2c OK [15:02:26]MH_I2C_Read... [15:02:26]Read from MH i2c: 01 [15:02:26]MH_I2C_Read... [15:02:26]Read from MH i2c: 01 07 00 [15:02:26]MH_I2C_Read... [15:02:26]Read from MH i2c: 01 07 00 00 8F 00 00 00 00 00 FF 0F A4 [15:02:26]RasterBufferAndPrint [15:02:26]line Счет N : (1)342766 [15:02:26]line ИНН: 02508201610067 [15:02:26]line Контрольно-Кассовый Чек [15:02:26]line ПРОДАЖА [15:02:26]line ТРК (МРК, ГНК) : 63 [15:02:26]line Товар: 2710124130 [15:02:26]line Аи-92-К-2 [15:02:26]line 7.480 * 66.90 [15:02:26]line = 500.41 [15:02:26]line НДС 12% НСП 1% [15:02:26]line > о реализуемом товаре [15:02:26]line ОКРУГЛЕНИЕ: -0.41 [15:02:26]line ИТОГО: 500.00 [15:02:26]line Внесено: 500.00 [15:02:26]line СДАЧА: 0.00 [15:02:26]line НСП 1% : 4.43 [15:02:26]line НДС 12% : 53.14 [15:02:26]line Наличными: 500.00 [15:02:26]line Безнал.: 0.00 [15:02:26]line Место: АЗС № 78 "Партнер Нефть" [15:02:26]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [15:02:26]line СНО: Общий режим [15:02:26]line Чек 156 20.10.2024 15:02 [15:02:26]line Смена: 114 ФФД: 1.0 [15:02:26]line ЗНМ: 0300000137 [15:02:26]line РНМ: 0000000000186857 [15:02:26]line Версия ККМ: v1.0 [15:02:26]line ФМ: 0000000002094219 [15:02:26]line ФД: 30374 [15:02:26]line ФПД: 239991027715660 [15:02:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T150235&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30374&fm=239991027715660&tin=02508201610067®Number=0000000000186857&sum=50000 [15:02:27]OFD Sender: Processing packet 30374 [packets to send 10, broken 9] [15:02:27]ProducePacketName [15:02:27]name=ofd_packets/00030374 [15:02:27]OFD Sender: To server: pG, [15:02:27]CommunicateWithHost lk.salyk.kg:30040 [15:02:27]ConnectInit lk.salyk.kg [15:02:27]written 0, free lines is 4095 [15:02:27]Connected sock=9 [15:02: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 26 57 07 01 A1 66 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 9C 00 00 00 F4 03 04 00 8B 1B 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 DA 45 43 F4 CE 4C 47 A5 CE FB 50 88 0F 30 [15:02: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 93 FA 47 00 82 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 A6 76 00 00 F4 03 04 00 0E C6 14 67 B6 04 01 00 00 36 0E 3B E5 E7 BC 41 35 [15:02:27]CommunicateWithHost err = 0 [15:02:27]CheckOFDResponse [15:02:27]1017 (14) - 77093643461234 [15:02:27]1041 (16) - 0000000002094219 [15:02:27]1040 (4) - 30374 [15:02:27]1012 (4) - 20.10.2024 08:57 [15:02:27]1206 (1) - 0 [15:02:27]OFD Sender: Remove packet 30374 [15:02:27]ProducePacketName [15:02:27]name=ofd_packets/00030374 [15:02:27]NVStorageDeleteData [15:02:27]Write to MH i2c: 01 00 00 2B 8F BA [15:02:27]Write i2c OK [15:02:27]MH_I2C_Read... [15:02:27]Read from MH i2c: 01 [15:02:27]MH_I2C_Read... [15:02:27]Read from MH i2c: 01 07 00 [15:02:27]MH_I2C_Read... [15:02:27]Read from MH i2c: 01 07 00 2B 8F 00 00 00 00 00 ED 0C BA [15:02:27]RasterBufferAndPrint [15:02:27]line [15:02:27]line [15:02:27]line [15:02:27]line [15:02:27]line [15:02:27]written 0, free lines is 3315 [15:02:27]MH_Cut [15:02:27]Write to MH i2c: D1 01 00 32 8F 01 93 [15:02:27]Write i2c OK [15:02:27]MH_I2C_Read... [15:02:27]Read from MH i2c: D1 [15:02:27]MH_I2C_Read... [15:02:27]Read from MH i2c: D1 01 00 [15:02:27]MH_I2C_Read... [15:02:27]Read from MH i2c: D1 01 00 32 8F 00 92 [15:02:27]Write to MH i2c: 01 00 00 33 8F C2 [15:02:27]Write i2c OK [15:02:27]MH_I2C_Read... [15:02:27]OFD Sender: No OFD packet to send [15:02:28]*** Cut start [15:02:28]*** Partial cut [15:02:28]*** CUTSNS_PIN = 1 [15:02:28]*** CUTSNS_PIN = 0 [15:02:28]*** Brake cut motor [15:02:28]Read from MH i2c: 01 [15:02:28]MH_I2C_Read... [15:02:28]*** Stop cut motor [15:02:28]*** Cut end [15:02:28]Read from MH i2c: 01 07 00 [15:02:28]MH_I2C_Read... [15:02:28]Read from MH i2c: 01 07 00 33 8F 00 00 00 00 00 FF 0F D7 [15:02:28]process_action close_receipt done [15:02:28]requested_data is exist [15:02:28]produce_requested_data [15:02:28]requested_item fm.sn is exist - process it [15:02:28]wFMCommunicate request_size=4 [15:02:28]MH_SAM_APDU [15:02:28]CAPDU: 80 11 00 00 [15:02:28]Write to MH i2c: E2 08 00 34 8F 80 11 00 00 00 00 00 00 3D [15:02:28]Write i2c OK [15:02:28]MH_I2C_Read... [15:02:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:02:28]Read from MH i2c: E2 [15:02:28]MH_I2C_Read... [15:02:28]Read from MH i2c: E2 17 00 [15:02:28]MH_I2C_Read... [15:02:28]Read from MH i2c: E2 17 00 34 8F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 8B [15:02:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [15:02:28]wFMCommunicate OK [15:02:28]requested_item fd.num is exist - process it [15:02:28]SAM_PROTO_GetFieldsCounters [15:02:28]wFMCommunicate request_size=4 [15:02:28]MH_SAM_APDU [15:02:28]CAPDU: 80 13 00 00 [15:02:28]Write to MH i2c: E2 08 00 35 8F 80 13 00 00 00 00 00 00 40 [15:02:28]Write i2c OK [15:02:28]MH_I2C_Read... [15:02:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:02:29]Read from MH i2c: E2 [15:02:29]MH_I2C_Read... [15:02:29]Read from MH i2c: E2 62 00 [15:02:29]MH_I2C_Read... [15:02:29]Read from MH i2c: E2 62 00 35 8F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 C8 [15:02: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 A6 76 00 00 0E 04 04 00 72 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:02:29]wFMCommunicate OK [15:02:29]SAM_PROTO_GetFieldsCounters done [15:02:29]requested_item shift.num is exist - process it [15:02:29]requested_item shift.opened is exist - process it [15:02:29]req_shift_opened [15:02:29]FM_GetShiftState [15:02:29]SAM_PROTO_GetShiftState [15:02:29]wFMCommunicate request_size=4 [15:02:29]MH_SAM_APDU [15:02:29]CAPDU: 80 13 01 00 [15:02:29]Write to MH i2c: E2 08 00 36 8F 80 13 01 00 00 00 00 00 42 [15:02:29]Write i2c OK [15:02:29]MH_I2C_Read... [15:02:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:02:29]Read from MH i2c: E2 [15:02:29]MH_I2C_Read... [15:02:29]Read from MH i2c: E2 0E 00 [15:02:29]MH_I2C_Read... [15:02:29]Read from MH i2c: E2 0E 00 36 8F 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 28 [15:02:29]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [15:02:29]wFMCommunicate OK [15:02:29]SAM_PROTO_GetShiftState done [15:02:29]FM_GetShiftState done [15:02:29]req_shift_opened done [15:02:29]requested_item shift.open_date is exist - process it [15:02:29]req_shift_open_date [15:02:29]req_shift_open_date done [15:02:29]produce_requested_data done [15:02:29]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30374,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [15:02:29]process_action_free close_receipt [15:02:29]json_value_free [15:02:29]json_value_free done [15:02:29]process_json_proto returns [15:02:29]Send response to host [15:02:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30374,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [15:02:29]free response buf [15:02:29]execute_script done [15:02:29]execute_script returns [15:02:29]free content buf [15:02:29]Sock 10.Close socket [15:02:29]Sock 10.Thread stoped [15:02:32]OFD Sender: No OFD packet to send [15:02:37]OFD Sender: No OFD packet to send [15:02:42]OFD Sender: No OFD packet to send [15:02:48]OFD Sender: No OFD packet to send [15:02:53]OFD Sender: No OFD packet to send [15:02:58]OFD Sender: No OFD packet to send [15:03:03]OFD Sender: No OFD packet to send [15:03:08]OFD Sender: No OFD packet to send [15:03:13]OFD Sender: No OFD packet to send [15:03:18]OFD Sender: No OFD packet to send [15:03:23]OFD Sender: No OFD packet to send [15:03:28]OFD Sender: No OFD packet to send [15:03:33]OFD Sender: No OFD packet to send [15:03:38]OFD Sender: No OFD packet to send [15:03:43]OFD Sender: No OFD packet to send [15:03:48]OFD Sender: No OFD packet to send [15:03:53]OFD Sender: No OFD packet to send [15:03:58]OFD Sender: No OFD packet to send [15:04:03]OFD Sender: No OFD packet to send [15:04:08]OFD Sender: No OFD packet to send [15:04:13]OFD Sender: No OFD packet to send [15:04:18]OFD Sender: No OFD packet to send [15:04:23]OFD Sender: No OFD packet to send [15:04:28]OFD Sender: No OFD packet to send [15:04:33]OFD Sender: No OFD packet to send [15:04:38]OFD Sender: No OFD packet to send [15:04:43]OFD Sender: No OFD packet to send [15:04:48]OFD Sender: No OFD packet to send [15:04:53]OFD Sender: No OFD packet to send [15:04:58]OFD Sender: No OFD packet to send [15:05:03]OFD Sender: No OFD packet to send [15:05:08]OFD Sender: No OFD packet to send [15:05:13]OFD Sender: No OFD packet to send [15:05:18]OFD Sender: No OFD packet to send [15:05:23]OFD Sender: No OFD packet to send [15:05:28]OFD Sender: No OFD packet to send [15:05:33]OFD Sender: No OFD packet to send [15:05:38]OFD Sender: No OFD packet to send [15:05:43]OFD Sender: No OFD packet to send [15:05:48]OFD Sender: No OFD packet to send [15:05:53]OFD Sender: No OFD packet to send [15:05:58]OFD Sender: No OFD packet to send [15:06:03]OFD Sender: No OFD packet to send [15:06:08]OFD Sender: No OFD packet to send [15:06:13]OFD Sender: No OFD packet to send [15:06:18]OFD Sender: No OFD packet to send [15:06:23]OFD Sender: No OFD packet to send [15:06:28]OFD Sender: No OFD packet to send [15:06:33]OFD Sender: No OFD packet to send [15:06:38]OFD Sender: No OFD packet to send [15:06:43]OFD Sender: No OFD packet to send [15:06:48]OFD Sender: No OFD packet to send [15:06:53]OFD Sender: No OFD packet to send [15:06:58]OFD Sender: No OFD packet to send [15:07:03]OFD Sender: No OFD packet to send [15:07:08]OFD Sender: No OFD packet to send [15:07:13]OFD Sender: No OFD packet to send [15:07:18]OFD Sender: No OFD packet to send [15:07:23]OFD Sender: No OFD packet to send [15:07:28]OFD Sender: No OFD packet to send [15:07:33]OFD Sender: No OFD packet to send [15:07:38]OFD Sender: No OFD packet to send [15:07:43]OFD Sender: No OFD packet to send [15:07:48]OFD Sender: No OFD packet to send [15:07:53]OFD Sender: No OFD packet to send [15:07:58]OFD Sender: No OFD packet to send [15:08:03]OFD Sender: No OFD packet to send [15:08:08]OFD Sender: No OFD packet to send [15:08:13]OFD Sender: No OFD packet to send [15:08:18]OFD Sender: No OFD packet to send [15:08:23]OFD Sender: No OFD packet to send [15:08:28]OFD Sender: No OFD packet to send [15:08:33]OFD Sender: No OFD packet to send [15:08:38]OFD Sender: No OFD packet to send [15:08:43]OFD Sender: No OFD packet to send [15:08:48]OFD Sender: No OFD packet to send [15:08:53]OFD Sender: No OFD packet to send [15:08:58]OFD Sender: No OFD packet to send [15:09:03]OFD Sender: No OFD packet to send [15:09:08]OFD Sender: No OFD packet to send [15:09:13]OFD Sender: No OFD packet to send [15:09:18]OFD Sender: No OFD packet to send [15:09:23]OFD Sender: No OFD packet to send [15:09:28]OFD Sender: No OFD packet to send [15:09:33]OFD Sender: No OFD packet to send [15:09:38]OFD Sender: No OFD packet to send [15:09:43]OFD Sender: No OFD packet to send [15:09:48]OFD Sender: No OFD packet to send [15:09:53]OFD Sender: No OFD packet to send [15:09:58]OFD Sender: No OFD packet to send [15:10:03]OFD Sender: No OFD packet to send [15:10:08]OFD Sender: No OFD packet to send [15:10:13]OFD Sender: No OFD packet to send [15:10:18]OFD Sender: No OFD packet to send [15:10:23]OFD Sender: No OFD packet to send [15:10:28]OFD Sender: No OFD packet to send [15:10:33]OFD Sender: No OFD packet to send [15:10:38]OFD Sender: No OFD packet to send [15:10:43]OFD Sender: No OFD packet to send [15:10:48]OFD Sender: No OFD packet to send [15:10:50]accept exits with 7 [15:10:50]New connection [15:10:50]New thread 3067370852 created [15:10:50]Thread 3067514212 joined [15:10:50]Waiting for new connection... [15:10:50] Sock 7.Parse request [15:10:50]Sock 7.Check first char [15:10:50]Sock 7.First char is OK [15:10:50]request: POST /json_proto HTTP/1.0 [15:10:50]Method: POST [15:10:50]URL: /json_proto [15:10:50]Method is POST - this is cgi request [15:10:50]url: /json_proto [15:10:50]query_string will be loaded in cgi processing [15:10:50]execute_cgi json_proto POST (null) [15:10:50]execute_cgi path=json_proto method=POST [15:10:50]POST find Content-Length [15:10:50]Host: 172.17.51.3:8080 [15:10:50]Content-Length: 677 [15:10:50]Content-Type: application/json [15:10:50] [15:10:50]POST finish read [15:10:50]Found Content-Length = 677 [15:10:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342768", "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:10:50]execute_script... [15:10: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)342768", "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:10:50]POST & json_proto [15:10:50]process_json_proto [15:10:50]json parsed OK: [15:10:50]protocol is kg_v1.0 [15:10:50]action value=close_receipt [15:10:50]process_action close_receipt [15:10:50]cmd_close_receipt [15:10:50]MH_GetDate [15:10:50]Write to MH i2c: F0 00 00 37 8F B5 [15:10:50]Write i2c OK [15:10:50]MH_I2C_Read... [15:10:50]Read from MH i2c: F0 [15:10:50]MH_I2C_Read... [15:10:50]Read from MH i2c: F0 09 00 [15:10:50]MH_I2C_Read... [15:10:50]Read from MH i2c: F0 09 00 37 8F 00 84 1D 15 67 04 C1 95 66 9B [15:10:50]GetLastDocTimeStamp 1729436555 [15:10:50]current date 1729437060 [15:10:50]FM_GetShiftState [15:10:50]SAM_PROTO_GetShiftState [15:10:50]wFMCommunicate request_size=4 [15:10:50]MH_SAM_APDU [15:10:50]CAPDU: 80 13 01 00 [15:10:50]Write to MH i2c: E2 08 00 38 8F 80 13 01 00 00 00 00 00 44 [15:10:50]Write i2c OK [15:10:50]MH_I2C_Read... [15:10:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:10:50]Read from MH i2c: E2 [15:10:50]MH_I2C_Read... [15:10:50]Read from MH i2c: E2 0E 00 [15:10:50]MH_I2C_Read... [15:10:50]Read from MH i2c: E2 0E 00 38 8F 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 2A [15:10:50]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [15:10:50]wFMCommunicate OK [15:10:50]SAM_PROTO_GetShiftState done [15:10:50]FM_GetShiftState done [15:10:50]opened in 1729384718 [15:10:50]opened+sec_in_day 1729471118 [15:10:50]quantity*price = 20003 [15:10:50]sum+1 = 20004 [15:10:50]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 СНО: Общий режим Чек 157 20.10.2024 15:11 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30375 ФПД: 246425158543236 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T151100&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30375&fm=246425158543236&tin=02508201610067®Number=0000000000186857&sum=20000 [15:10:51]StoreToDocumentArchive [15:10:51]shift 114 fd 30375 [15:10:51]save to /storage/0114/doc_00030375 [15:10:51]save last doc name /storage/0114/doc_00030375 to /storage/kkm_last_doc_name [15:10:51]save OK [15:10:51]Clear old archive folders... [15:10:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:10:52]tlvbuf is 00AB78D0 [15:10:52]SAM_PROTO_ClearQueue [15:10:52]wFMCommunicate request_size=4 [15:10:52]MH_SAM_APDU [15:10:52]CAPDU: 80 09 00 00 [15:10:52]Write to MH i2c: E2 08 00 45 8F 80 09 00 00 00 00 00 00 46 [15:10:52]Write i2c OK [15:10:52]MH_I2C_Read... [15:10:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:10:52]Read from MH i2c: E2 [15:10:52]MH_I2C_Read... [15:10:52]Read from MH i2c: E2 03 00 [15:10:52]MH_I2C_Read... [15:10:52]Read from MH i2c: E2 03 00 45 8F 00 90 00 48 [15:10:52]RAPDU: 90 00 [15:10:52]wFMCommunicate OK [15:10:52]SAM_PROTO_ClearQueue done [15:10:52]KKMCreateOFDPacket [15:10:52]OFDProtocolAddRootSTLVToBuf [15:10:52]FM_MakeSignedData [15:10:52]FM_MakeSignedData [15:10:52]SAM_PROTO_SignData [15:10:52]wFMCommunicate request_size=4 [15:10:52]MH_SAM_APDU [15:10:52]CAPDU: 80 0D 01 02 [15:10:52]Write to MH i2c: E2 08 00 46 8F 80 0D 01 02 00 00 00 00 4E [15:10:52]Write i2c OK [15:10:52]MH_I2C_Read... [15:10:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:10:52]Read from MH i2c: E2 [15:10:52]MH_I2C_Read... [15:10:52]Read from MH i2c: E2 03 00 [15:10:52]MH_I2C_Read... [15:10:52]Read from MH i2c: E2 03 00 46 8F 00 90 00 49 [15:10:52]RAPDU: 90 00 [15:10:52]wFMCommunicate OK [15:10:52]wFMCommunicate request_size=255 [15:10:52]MH_SAM_APDU [15: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 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 9D 00 00 00 F4 03 04 00 84 1D 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 E0 [15:10:52]Write to MH i2c: E2 02 01 47 8F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 9D 00 00 00 F4 03 04 00 84 1D 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 E0 00 00 CA [15:10:52]Write i2c OK [15:10:52]MH_I2C_Read... [15:10:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:10:52]Read from MH i2c: E2 [15:10:52]MH_I2C_Read... [15:10:52]Read from MH i2c: E2 03 00 [15:10:52]MH_I2C_Read... [15:10:52]Read from MH i2c: E2 03 00 47 8F 00 90 00 4A [15:10:52]RAPDU: 90 00 [15:10:52]wFMCommunicate OK [15:10:52]wFMCommunicate request_size=10 [15:10:52]MH_SAM_APDU [15:10:52]CAPDU: 80 0D 02 02 05 1F 54 09 E7 84 [15:10:52]Write to MH i2c: E2 0D 00 48 8F 80 0D 02 02 05 00 1F 54 09 E7 84 00 00 42 [15:10:52]Write i2c OK [15:10:52]MH_I2C_Read... [15:10:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:10:52]Read from MH i2c: E2 [15:10:52]MH_I2C_Read... [15:10:52]Read from MH i2c: E2 03 00 [15:10:52]MH_I2C_Read... [15:10:52]Read from MH i2c: E2 03 00 48 8F 00 90 00 4B [15:10:52]RAPDU: 90 00 [15:10:52]wFMCommunicate OK [15:10:52]wFMCommunicate request_size=4 [15:10:52]MH_SAM_APDU [15:10:52]CAPDU: 80 0D 03 02 [15:10:52]Write to MH i2c: E2 08 00 49 8F 80 0D 03 02 00 00 00 00 53 [15:10:52]Write i2c OK [15:10:52]MH_I2C_Read... [15:10:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:10:52]Read from MH i2c: E2 [15:10:52]MH_I2C_Read... [15:10:52]Read from MH i2c: E2 0B 00 [15:10:52]MH_I2C_Read... [15:10:52]Read from MH i2c: E2 0B 00 49 8F 00 9B 5F 3A 7F EE 95 0C BF 90 00 55 [15:10:52]RAPDU: 9B 5F 3A 7F EE 95 0C BF 90 00 [15:10:52]wFMCommunicate OK [15:10:52]SAM_PROTO_SignData done [15:10:52]FM_MakeSignedData done [15:10:52]CreateOFDProtocolMessage [15:10:52]wFMCommunicate request_size=4 [15:10:52]MH_SAM_APDU [15:10:52]CAPDU: 80 11 00 00 [15:10:52]Write to MH i2c: E2 08 00 4A 8F 80 11 00 00 00 00 00 00 53 [15:10:52]Write i2c OK [15:10:52]MH_I2C_Read... [15:10:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:10:52]Read from MH i2c: E2 [15:10:52]MH_I2C_Read... [15:10:52]Read from MH i2c: E2 17 00 [15:10:52]MH_I2C_Read... [15:10:52]Read from MH i2c: E2 17 00 4A 8F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 A1 [15:10: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:10:52]wFMCommunicate OK [15:10:52]CreateOFDProtocolMessage done [15:10:52]OFDSenderStorePacket 30375 [15:10:52]StoreOFDPacket docnum=30375 [15:10: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 DF 51 07 01 73 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 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 9D 00 00 00 F4 03 04 00 84 1D 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 E0 1F 54 09 E7 84 9B 5F 3A 7F EE 95 0C BF [15:10:52]CheckFolder [15:10:52]dirname=/storage/ofd_packets [15:10:52]CheckFolder done [15:10:52]ProducePacketName [15:10:52]name=ofd_packets/00030375 [15:10:52]NVStorageSaveData ofd_packets/00030375 [15:10:52]File name is /storage/ofd_packets/00030375 [15:10:52]Write 301 bytes [15:10:52]NVStorageSaveData done [15:10:52]OFDSenderStorePacket done [15:10:52]KKMCreateOFDPacket done [15:10:52]NVStorageSaveData kkm_last_timestamp [15:10:52]File name is /storage/kkm_last_timestamp [15:10:52]Write 4 bytes [15:10:52]NVStorageSaveData done [15:10:52]ExternCall_PrintAddStr [15:10:52]wPrintStart [15:10:52]Write to MH i2c: 01 00 00 4B 8F DA [15:10:52]Write i2c OK [15:10:52]MH_I2C_Read... [15:10:52]Read from MH i2c: 01 [15:10:52]MH_I2C_Read... [15:10:52]Read from MH i2c: 01 07 00 [15:10:52]MH_I2C_Read... [15:10:52]Read from MH i2c: 01 07 00 4B 8F 00 00 00 00 00 FF 0F EF [15:10:52]RasterBufferAndPrint [15:10:52]line Счет N : (1)342768 [15:10:52]line ИНН: 02508201610067 [15:10:52]line Контрольно-Кассовый Чек [15:10:52]line ПРОДАЖА [15:10:52]line ТРК (МРК, ГНК) : 53 [15:10:52]line Товар: 2710124130 [15:10:52]line Аи-92-К-2 [15:10:52]line 2.990 * 66.90 [15:10:52]line = 200.03 [15:10:52]line НДС 12% НСП 1% [15:10:52]line > о реализуемом товаре [15:10:52]line ОКРУГЛЕНИЕ: -0.03 [15:10:52]line ИТОГО: 200.00 [15:10:52]line Внесено: 200.00 [15:10:52]line СДАЧА: 0.00 [15:10:52]line НСП 1% : 1.77 [15:10:52]line НДС 12% : 21.24 [15:10:52]line Наличными: 200.00 [15:10:52]line Безнал.: 0.00 [15:10:52]line Место: АЗС № 78 "Партнер Нефть" [15:10:52]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [15:10:52]line СНО: Общий режим [15:10:52]line Чек 157 20.10.2024 15:11 [15:10:52]line Смена: 114 ФФД: 1.0 [15:10:52]line ЗНМ: 0300000137 [15:10:52]line РНМ: 0000000000186857 [15:10:52]line Версия ККМ: v1.0 [15:10:52]line ФМ: 0000000002094219 [15:10:52]line ФД: 30375 [15:10:52]line ФПД: 246425158543236 [15:10:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T151100&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30375&fm=246425158543236&tin=02508201610067®Number=0000000000186857&sum=20000 [15:10:52]OFD Sender: Processing packet 30375 [packets to send 10, broken 9] [15:10:52]ProducePacketName [15:10:52]name=ofd_packets/00030375 [15:10:52]OFD Sender: To server: pG, [15:10:52]CommunicateWithHost lk.salyk.kg:30040 [15:10:52]ConnectInit lk.salyk.kg [15:10:52]written 0, free lines is 4095 [15:10:52]Connected sock=10 [15:10: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 DF 51 07 01 73 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 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 9D 00 00 00 F4 03 04 00 84 1D 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 E0 1F 54 09 E7 84 9B 5F 3A 7F EE 95 0C BF [15: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 69 88 47 00 06 64 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 A7 76 00 00 F4 03 04 00 08 C8 14 67 B6 04 01 00 00 C2 C8 83 5A C6 16 A4 0D [15:10:53]CommunicateWithHost err = 0 [15:10:53]CheckOFDResponse [15:10:53]1017 (14) - 77093643461234 [15:10:53]1041 (16) - 0000000002094219 [15:10:53]1040 (4) - 30375 [15:10:53]1012 (4) - 20.10.2024 09:06 [15:10:53]1206 (1) - 0 [15:10:53]OFD Sender: Remove packet 30375 [15:10:53]ProducePacketName [15:10:53]name=ofd_packets/00030375 [15:10:53]NVStorageDeleteData [15:10:53]Write to MH i2c: 01 00 00 76 8F 05 [15:10:53]Write i2c OK [15:10:53]MH_I2C_Read... [15:10:53]Read from MH i2c: 01 [15:10:53]MH_I2C_Read... [15:10:53]Read from MH i2c: 01 07 00 [15:10:53]MH_I2C_Read... [15:10:53]Read from MH i2c: 01 07 00 76 8F 00 00 00 00 00 E0 0C F8 [15:10:53]RasterBufferAndPrint [15:10:53]line [15:10:53]line [15:10:53]line [15:10:53]line [15:10:53]line [15:10:53]written 0, free lines is 3302 [15:10:53]MH_Cut [15:10:53]Write to MH i2c: D1 01 00 7D 8F 01 DE [15:10:53]Write i2c OK [15:10:53]MH_I2C_Read... [15:10:53]Read from MH i2c: D1 [15:10:53]MH_I2C_Read... [15:10:53]Read from MH i2c: D1 01 00 [15:10:53]MH_I2C_Read... [15:10:53]Read from MH i2c: D1 01 00 7D 8F 00 DD [15:10:53]Write to MH i2c: 01 00 00 7E 8F 0D [15:10:53]Write i2c OK [15:10:53]MH_I2C_Read... [15:10:53]OFD Sender: No OFD packet to send [15:10:54]*** Cut start [15:10:54]*** Partial cut [15:10:54]*** CUTSNS_PIN = 1 [15:10:54]*** CUTSNS_PIN = 0 [15:10:54]*** Brake cut motor [15:10:54]Read from MH i2c: 01 [15:10:54]MH_I2C_Read... [15:10:54]*** Stop cut motor [15:10:54]*** Cut end [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 7E 8F 00 00 00 00 00 FF 0F 22 [15:10:54]process_action close_receipt done [15:10:54]requested_data is exist [15:10:54]produce_requested_data [15:10:54]requested_item fm.sn is exist - process it [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 7F 8F 80 11 00 00 00 00 00 00 88 [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 7F 8F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 D6 [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]requested_item fd.num is exist - process it [15:10:54]SAM_PROTO_GetFieldsCounters [15:10:54]wFMCommunicate request_size=4 [15:10:54]MH_SAM_APDU [15:10:54]CAPDU: 80 13 00 00 [15:10:54]Write to MH i2c: E2 08 00 80 8F 80 13 00 00 00 00 00 00 8B [15:10:54]Write i2c OK [15:10:54]MH_I2C_Read... [15:10:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:10:54]Read from MH i2c: E2 [15:10:54]MH_I2C_Read... [15:10:54]Read from MH i2c: E2 62 00 [15:10:54]MH_I2C_Read... [15:10:54]Read from MH i2c: E2 62 00 80 8F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 17 [15:10: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 A7 76 00 00 0E 04 04 00 72 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:10:54]wFMCommunicate OK [15:10:54]SAM_PROTO_GetFieldsCounters done [15:10:54]requested_item shift.num is exist - process it [15:10:54]requested_item shift.opened is exist - process it [15:10:54]req_shift_opened [15:10:54]FM_GetShiftState [15:10:54]SAM_PROTO_GetShiftState [15:10:54]wFMCommunicate request_size=4 [15:10:54]MH_SAM_APDU [15:10:54]CAPDU: 80 13 01 00 [15:10:54]Write to MH i2c: E2 08 00 81 8F 80 13 01 00 00 00 00 00 8D [15:10:54]Write i2c OK [15:10:54]MH_I2C_Read... [15:10:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:10:54]Read from MH i2c: E2 [15:10:54]MH_I2C_Read... [15:10:54]Read from MH i2c: E2 0E 00 [15:10:54]MH_I2C_Read... [15:10:54]Read from MH i2c: E2 0E 00 81 8F 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 73 [15:10:54]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [15:10:54]wFMCommunicate OK [15:10:54]SAM_PROTO_GetShiftState done [15:10:54]FM_GetShiftState done [15:10:54]req_shift_opened done [15:10:54]requested_item shift.open_date is exist - process it [15:10:54]req_shift_open_date [15:10:54]req_shift_open_date done [15:10:54]produce_requested_data done [15:10:54]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30375,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [15:10:54]process_action_free close_receipt [15:10:54]json_value_free [15:10:54]json_value_free done [15:10:54]process_json_proto returns [15:10:54]Send response to host [15:10:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30375,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [15:10:54]free response buf [15:10:54]execute_script done [15:10:54]execute_script returns [15:10:54]free content buf [15:10:54]Sock 7.Close socket [15:10:54]Sock 7.Thread stoped [15:10:58]OFD Sender: No OFD packet to send [15:11:03]OFD Sender: No OFD packet to send [15:11:08]OFD Sender: No OFD packet to send [15:11:13]OFD Sender: No OFD packet to send [15:11:18]OFD Sender: No OFD packet to send [15:11:23]OFD Sender: No OFD packet to send [15:11:28]OFD Sender: No OFD packet to send [15:11:33]OFD Sender: No OFD packet to send [15:11:38]OFD Sender: No OFD packet to send [15:11:43]OFD Sender: No OFD packet to send [15:11:48]OFD Sender: No OFD packet to send [15:11:53]OFD Sender: No OFD packet to send [15:11:58]OFD Sender: No OFD packet to send [15:12:03]OFD Sender: No OFD packet to send [15:12:08]OFD Sender: No OFD packet to send [15:12:13]OFD Sender: No OFD packet to send [15:12:18]OFD Sender: No OFD packet to send [15:12:23]OFD Sender: No OFD packet to send [15:12:28]OFD Sender: No OFD packet to send [15:12:33]OFD Sender: No OFD packet to send [15:12:38]OFD Sender: No OFD packet to send [15:12:43]OFD Sender: No OFD packet to send [15:12:48]OFD Sender: No OFD packet to send [15:12:53]OFD Sender: No OFD packet to send [15:12:58]OFD Sender: No OFD packet to send [15:13:03]OFD Sender: No OFD packet to send [15:13:08]OFD Sender: No OFD packet to send [15:13:13]OFD Sender: No OFD packet to send [15:13:18]OFD Sender: No OFD packet to send [15:13:23]OFD Sender: No OFD packet to send [15:13:28]OFD Sender: No OFD packet to send [15:13:33]OFD Sender: No OFD packet to send [15:13:38]OFD Sender: No OFD packet to send [15:13:43]OFD Sender: No OFD packet to send [15:13:48]OFD Sender: No OFD packet to send [15:13:53]OFD Sender: No OFD packet to send [15:13:58]OFD Sender: No OFD packet to send [15:14:03]OFD Sender: No OFD packet to send [15:14:08]OFD Sender: No OFD packet to send [15:14:13]OFD Sender: No OFD packet to send [15:14:18]OFD Sender: No OFD packet to send [15:14:23]OFD Sender: No OFD packet to send [15:14:28]OFD Sender: No OFD packet to send [15:14:33]OFD Sender: No OFD packet to send [15:14:38]OFD Sender: No OFD packet to send [15:14:43]OFD Sender: No OFD packet to send [15:14:48]OFD Sender: No OFD packet to send [15:14:53]OFD Sender: No OFD packet to send [15:14:58]OFD Sender: No OFD packet to send [15:15:03]OFD Sender: No OFD packet to send [15:15:08]OFD Sender: No OFD packet to send [15:15:13]OFD Sender: No OFD packet to send [15:15:18]OFD Sender: No OFD packet to send [15:15:23]OFD Sender: No OFD packet to send [15:15:28]OFD Sender: No OFD packet to send [15:15:33]OFD Sender: No OFD packet to send [15:15:38]OFD Sender: No OFD packet to send [15:15:43]OFD Sender: No OFD packet to send [15:15:48]OFD Sender: No OFD packet to send [15:15:53]OFD Sender: No OFD packet to send [15:15:58]OFD Sender: No OFD packet to send [15:16:03]OFD Sender: No OFD packet to send [15:16:08]OFD Sender: No OFD packet to send [15:16:13]OFD Sender: No OFD packet to send [15:16:18]OFD Sender: No OFD packet to send [15:16:23]OFD Sender: No OFD packet to send [15:16:28]OFD Sender: No OFD packet to send [15:16:33]OFD Sender: No OFD packet to send [15:16:38]OFD Sender: No OFD packet to send [15:16:43]OFD Sender: No OFD packet to send [15:16:48]OFD Sender: No OFD packet to send [15:16:53]OFD Sender: No OFD packet to send [15:16:58]OFD Sender: No OFD packet to send [15:17:03]OFD Sender: No OFD packet to send [15:17:08]OFD Sender: No OFD packet to send [15:17:13]OFD Sender: No OFD packet to send [15:17:18]OFD Sender: No OFD packet to send [15:17:24]OFD Sender: No OFD packet to send [15:17:29]OFD Sender: No OFD packet to send [15:17:34]OFD Sender: No OFD packet to send [15:17:39]OFD Sender: No OFD packet to send [15:17:44]OFD Sender: No OFD packet to send [15:17:49]OFD Sender: No OFD packet to send [15:17:54]OFD Sender: No OFD packet to send [15:17:59]OFD Sender: No OFD packet to send [15:18:04]OFD Sender: No OFD packet to send [15:18:09]OFD Sender: No OFD packet to send [15:18:14]OFD Sender: No OFD packet to send [15:18:19]OFD Sender: No OFD packet to send [15:18:24]OFD Sender: No OFD packet to send [15:18:29]OFD Sender: No OFD packet to send [15:18:34]OFD Sender: No OFD packet to send [15:18:39]OFD Sender: No OFD packet to send [15:18:44]OFD Sender: No OFD packet to send [15:18:49]OFD Sender: No OFD packet to send [15:18:54]OFD Sender: No OFD packet to send [15:18:59]OFD Sender: No OFD packet to send [15:19:04]OFD Sender: No OFD packet to send [15:19:09]OFD Sender: No OFD packet to send [15:19:14]OFD Sender: No OFD packet to send [15:19:19]OFD Sender: No OFD packet to send [15:19:24]OFD Sender: No OFD packet to send [15:19:29]OFD Sender: No OFD packet to send [15:19:34]OFD Sender: No OFD packet to send [15:19:39]OFD Sender: No OFD packet to send [15:19:44]OFD Sender: No OFD packet to send [15:19:49]OFD Sender: No OFD packet to send [15:19:54]OFD Sender: No OFD packet to send [15:19:59]OFD Sender: No OFD packet to send [15:20:04]OFD Sender: No OFD packet to send [15:20:09]OFD Sender: No OFD packet to send [15:20:14]OFD Sender: No OFD packet to send [15:20:19]OFD Sender: No OFD packet to send [15:20:24]OFD Sender: No OFD packet to send [15:20:29]OFD Sender: No OFD packet to send [15:20:34]OFD Sender: No OFD packet to send [15:20:39]OFD Sender: No OFD packet to send [15:20:44]OFD Sender: No OFD packet to send [15:20:49]OFD Sender: No OFD packet to send [15:20:54]OFD Sender: No OFD packet to send [15:20:59]OFD Sender: No OFD packet to send [15:21:04]OFD Sender: No OFD packet to send [15:21:09]OFD Sender: No OFD packet to send [15:21:14]OFD Sender: No OFD packet to send [15:21:19]OFD Sender: No OFD packet to send [15:21:24]OFD Sender: No OFD packet to send [15:21:29]OFD Sender: No OFD packet to send [15:21:34]OFD Sender: No OFD packet to send [15:21:39]OFD Sender: No OFD packet to send [15:21:44]OFD Sender: No OFD packet to send [15:21:49]OFD Sender: No OFD packet to send [15:21:54]OFD Sender: No OFD packet to send [15:21:59]OFD Sender: No OFD packet to send [15:22:04]OFD Sender: No OFD packet to send [15:22:06]accept exits with 9 [15:22:06]New connection [15:22:06]New thread 3067514212 created [15:22:06]Thread 3067370852 joined [15:22:06]Waiting for new connection... [15:22:06] Sock 9.Parse request [15:22:06]Sock 9.Check first char [15:22:06]Sock 9.First char is OK [15:22:06]request: POST /json_proto HTTP/1.0 [15:22:06]Method: POST [15:22:06]URL: /json_proto [15:22:06]Method is POST - this is cgi request [15:22:06]url: /json_proto [15:22:06]query_string will be loaded in cgi processing [15:22:06]execute_cgi json_proto POST (null) [15:22:06]execute_cgi path=json_proto method=POST [15:22:06]POST find Content-Length [15:22:06]Host: 172.17.51.3:8080 [15:22:06]Content-Length: 679 [15:22:06]Content-Type: application/json [15:22:06] [15:22:06]POST finish read [15:22:06]Found Content-Length = 679 [15:22:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342769", "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" ] } } [15:22:06]execute_script... [15:22: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)342769", "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" ] } } [15:22:06]POST & json_proto [15:22:06]process_json_proto [15:22:06]json parsed OK: [15:22:06]protocol is kg_v1.0 [15:22:06]action value=close_receipt [15:22:06]process_action close_receipt [15:22:06]cmd_close_receipt [15:22:06]MH_GetDate [15:22:06]Write to MH i2c: F0 00 00 82 8F 00 [15:22:06]Write i2c OK [15:22:06]MH_I2C_Read... [15:22:06]Read from MH i2c: F0 [15:22:06]MH_I2C_Read... [15:22:06]Read from MH i2c: F0 09 00 [15:22:06]MH_I2C_Read... [15:22:06]Read from MH i2c: F0 09 00 82 8F 00 28 20 15 67 04 C1 95 66 8D [15:22:06]GetLastDocTimeStamp 1729437060 [15:22:06]current date 1729437736 [15:22:06]FM_GetShiftState [15:22:06]SAM_PROTO_GetShiftState [15:22:06]wFMCommunicate request_size=4 [15:22:06]MH_SAM_APDU [15:22:06]CAPDU: 80 13 01 00 [15:22:06]Write to MH i2c: E2 08 00 83 8F 80 13 01 00 00 00 00 00 8F [15:22:06]Write i2c OK [15:22:06]MH_I2C_Read... [15:22:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:22:06]Read from MH i2c: E2 [15:22:06]MH_I2C_Read... [15:22:06]Read from MH i2c: E2 0E 00 [15:22:06]MH_I2C_Read... [15:22:06]Read from MH i2c: E2 0E 00 83 8F 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 75 [15:22:06]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [15:22:06]wFMCommunicate OK [15:22:06]SAM_PROTO_GetShiftState done [15:22:06]FM_GetShiftState done [15:22:06]opened in 1729384718 [15:22:06]opened+sec_in_day 1729471118 [15:22:06]quantity*price = 200025 [15:22:06]sum+1 = 200026 [15:22:06]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 СНО: Общий режим Чек 158 20.10.2024 15:22 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30376 ФПД: 76301745274076 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T152216&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30376&fm=76301745274076&tin=02508201610067®Number=0000000000186857&sum=200000 [15:22:07]StoreToDocumentArchive [15:22:07]shift 114 fd 30376 [15:22:07]save to /storage/0114/doc_00030376 [15:22:07]save last doc name /storage/0114/doc_00030376 to /storage/kkm_last_doc_name [15:22:07]save OK [15:22:07]Clear old archive folders... [15:22:07]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:22:07]tlvbuf is 00CB7640 [15:22:07]SAM_PROTO_ClearQueue [15:22:07]wFMCommunicate request_size=4 [15:22:07]MH_SAM_APDU [15:22:07]CAPDU: 80 09 00 00 [15:22:07]Write to MH i2c: E2 08 00 90 8F 80 09 00 00 00 00 00 00 91 [15:22:07]Write i2c OK [15:22:07]MH_I2C_Read... [15:22:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:22:08]Read from MH i2c: E2 [15:22:08]MH_I2C_Read... [15:22:08]Read from MH i2c: E2 03 00 [15:22:08]MH_I2C_Read... [15:22:08]Read from MH i2c: E2 03 00 90 8F 00 90 00 93 [15:22:08]RAPDU: 90 00 [15:22:08]wFMCommunicate OK [15:22:08]SAM_PROTO_ClearQueue done [15:22:08]KKMCreateOFDPacket [15:22:08]OFDProtocolAddRootSTLVToBuf [15:22:08]FM_MakeSignedData [15:22:08]FM_MakeSignedData [15:22:08]SAM_PROTO_SignData [15:22:08]wFMCommunicate request_size=4 [15:22:08]MH_SAM_APDU [15:22:08]CAPDU: 80 0D 01 02 [15:22:08]Write to MH i2c: E2 08 00 91 8F 80 0D 01 02 00 00 00 00 99 [15:22:08]Write i2c OK [15:22:08]MH_I2C_Read... [15:22:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:22:08]Read from MH i2c: E2 [15:22:08]MH_I2C_Read... [15:22:08]Read from MH i2c: E2 03 00 [15:22:08]MH_I2C_Read... [15:22:08]Read from MH i2c: E2 03 00 91 8F 00 90 00 94 [15:22:08]RAPDU: 90 00 [15:22:08]wFMCommunicate OK [15:22:08]wFMCommunicate request_size=255 [15:22:08]MH_SAM_APDU [15:22: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 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 9E 00 00 00 F4 03 04 00 28 20 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 45 65 62 6C [15:22:08]Write to MH i2c: E2 02 01 92 8F 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 9E 00 00 00 F4 03 04 00 28 20 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 45 65 62 6C 00 00 78 [15:22:08]Write i2c OK [15:22:08]MH_I2C_Read... [15:22:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:22:08]Read from MH i2c: E2 [15:22:08]MH_I2C_Read... [15:22:08]Read from MH i2c: E2 03 00 [15:22:08]MH_I2C_Read... [15:22:08]Read from MH i2c: E2 03 00 92 8F 00 90 00 95 [15:22:08]RAPDU: 90 00 [15:22:08]wFMCommunicate OK [15:22:08]wFMCommunicate request_size=7 [15:22:08]MH_SAM_APDU [15:22:08]CAPDU: 80 0D 02 02 02 3C DC [15:22:08]Write to MH i2c: E2 0A 00 93 8F 80 0D 02 02 02 00 3C DC 00 00 B8 [15:22:08]Write i2c OK [15:22:08]MH_I2C_Read... [15:22:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:22:08]Read from MH i2c: E2 [15:22:08]MH_I2C_Read... [15:22:08]Read from MH i2c: E2 03 00 [15:22:08]MH_I2C_Read... [15:22:08]Read from MH i2c: E2 03 00 93 8F 00 90 00 96 [15:22:08]RAPDU: 90 00 [15:22:08]wFMCommunicate OK [15:22:08]wFMCommunicate request_size=4 [15:22:08]MH_SAM_APDU [15:22:08]CAPDU: 80 0D 03 02 [15:22:08]Write to MH i2c: E2 08 00 94 8F 80 0D 03 02 00 00 00 00 9E [15:22:08]Write i2c OK [15:22:08]MH_I2C_Read... [15:22:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:22:08]Read from MH i2c: E2 [15:22:08]MH_I2C_Read... [15:22:08]Read from MH i2c: E2 0B 00 [15:22:08]MH_I2C_Read... [15:22:08]Read from MH i2c: E2 0B 00 94 8F 00 C1 3B 8E FD 57 D6 9B E5 90 00 D3 [15:22:08]RAPDU: C1 3B 8E FD 57 D6 9B E5 90 00 [15:22:08]wFMCommunicate OK [15:22:08]SAM_PROTO_SignData done [15:22:08]FM_MakeSignedData done [15:22:08]CreateOFDProtocolMessage [15:22:08]wFMCommunicate request_size=4 [15:22:08]MH_SAM_APDU [15:22:08]CAPDU: 80 11 00 00 [15:22:08]Write to MH i2c: E2 08 00 95 8F 80 11 00 00 00 00 00 00 9E [15:22:08]Write i2c OK [15:22:08]MH_I2C_Read... [15:22:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:22:08]Read from MH i2c: E2 [15:22:08]MH_I2C_Read... [15:22:08]Read from MH i2c: E2 17 00 [15:22:08]MH_I2C_Read... [15:22:08]Read from MH i2c: E2 17 00 95 8F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 EC [15: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 [15:22:08]wFMCommunicate OK [15:22:08]CreateOFDProtocolMessage done [15:22:08]OFDSenderStorePacket 30376 [15:22:08]StoreOFDPacket docnum=30376 [15:22: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 0C 01 00 00 C1 23 04 01 1F 19 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 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 9E 00 00 00 F4 03 04 00 28 20 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 45 65 62 6C 3C DC C1 3B 8E FD 57 D6 9B E5 [15:22:08]CheckFolder [15:22:08]dirname=/storage/ofd_packets [15:22:08]CheckFolder done [15:22:08]ProducePacketName [15:22:08]name=ofd_packets/00030376 [15:22:08]NVStorageSaveData ofd_packets/00030376 [15:22:08]File name is /storage/ofd_packets/00030376 [15:22:08]Write 298 bytes [15:22:08]NVStorageSaveData done [15:22:08]OFDSenderStorePacket done [15:22:08]KKMCreateOFDPacket done [15:22:08]NVStorageSaveData kkm_last_timestamp [15:22:08]File name is /storage/kkm_last_timestamp [15:22:08]Write 4 bytes [15:22:08]NVStorageSaveData done [15:22:08]ExternCall_PrintAddStr [15:22:08]wPrintStart [15:22:08]Write to MH i2c: 01 00 00 96 8F 25 [15:22:08]Write i2c OK [15:22:08]MH_I2C_Read... [15:22:08]Read from MH i2c: 01 [15:22:08]MH_I2C_Read... [15:22:08]Read from MH i2c: 01 07 00 [15:22:08]MH_I2C_Read... [15:22:08]Read from MH i2c: 01 07 00 96 8F 00 00 00 00 00 FF 0F 3A [15:22:08]RasterBufferAndPrint [15:22:08]line Счет N : (1)342769 [15:22:08]line ИНН: 02508201610067 [15:22:08]line Контрольно-Кассовый Чек [15:22:08]line ПРОДАЖА [15:22:08]line ТРК (МРК, ГНК) : 44 [15:22:08]line Товар: 2710194210 [15:22:08]line ДТ-К-2 [15:22:08]line 26.250 * 76.20 [15:22:08]line = 2000.25 [15:22:08]line НДС 12% НСП 1% [15:22:08]line > о реализуемом товаре [15:22:08]line ОКРУГЛЕНИЕ: -0.25 [15:22:08]line ИТОГО: 2000.00 [15:22:08]line Внесено: 2000.00 [15:22:08]line СДАЧА: 0.00 [15:22:08]line НСП 1% : 17.70 [15:22:08]line НДС 12% : 212.42 [15:22:08]line Наличными: 2000.00 [15:22:08]line Безнал.: 0.00 [15:22:08]line Место: АЗС № 78 "Партнер Нефть" [15:22:08]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [15:22:08]line СНО: Общий режим [15:22:08]line Чек 158 20.10.2024 15:22 [15:22:08]line Смена: 114 ФФД: 1.0 [15:22:08]line ЗНМ: 0300000137 [15:22:08]line РНМ: 0000000000186857 [15:22:08]line Версия ККМ: v1.0 [15:22:08]line ФМ: 0000000002094219 [15:22:08]line ФД: 30376 [15:22:08]line ФПД: 76301745274076 [15:22:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T152216&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30376&fm=76301745274076&tin=02508201610067®Number=0000000000186857&sum=200000 [15:22:08]OFD Sender: Processing packet 30376 [packets to send 10, broken 9] [15:22:08]ProducePacketName [15:22:08]name=ofd_packets/00030376 [15:22:08]OFD Sender: To server: pG, [15:22:08]CommunicateWithHost lk.salyk.kg:30040 [15:22:08]ConnectInit lk.salyk.kg [15:22:08]written 0, free lines is 4095 [15:22:08]Connected sock=7 [15:22: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 0C 01 00 00 C1 23 04 01 1F 19 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 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 9E 00 00 00 F4 03 04 00 28 20 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 45 65 62 6C 3C DC C1 3B 8E FD 57 D6 9B E5 [15:22: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 2E A6 47 00 CD B9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 A8 76 00 00 F4 03 04 00 AC CA 14 67 B6 04 01 00 00 1F 4E 80 18 75 57 B2 76 [15:22:09]CommunicateWithHost err = 0 [15:22:09]CheckOFDResponse [15:22:09]1017 (14) - 77093643461234 [15:22:09]1041 (16) - 0000000002094219 [15:22:09]1040 (4) - 30376 [15:22:09]1012 (4) - 20.10.2024 09:17 [15:22:09]1206 (1) - 0 [15:22:09]OFD Sender: Remove packet 30376 [15:22:09]ProducePacketName [15:22:09]name=ofd_packets/00030376 [15:22:09]NVStorageDeleteData [15:22:09]Write to MH i2c: 01 00 00 C1 8F 50 [15:22:09]Write i2c OK [15:22:09]MH_I2C_Read... [15:22:09]Read from MH i2c: 01 [15:22:09]MH_I2C_Read... [15:22:09]Read from MH i2c: 01 07 00 [15:22:09]MH_I2C_Read... [15:22:09]Read from MH i2c: 01 07 00 C1 8F 00 00 00 00 00 E9 0C 4C [15:22:09]RasterBufferAndPrint [15:22:09]line [15:22:09]line [15:22:09]line [15:22:09]line [15:22:09]line [15:22:09]written 0, free lines is 3312 [15:22:09]MH_Cut [15:22:09]Write to MH i2c: D1 01 00 C8 8F 01 29 [15:22:09]Write i2c OK [15:22:09]MH_I2C_Read... [15:22:09]Read from MH i2c: D1 [15:22:09]MH_I2C_Read... [15:22:09]Read from MH i2c: D1 01 00 [15:22:09]MH_I2C_Read... [15:22:09]Read from MH i2c: D1 01 00 C8 8F 00 28 [15:22:09]Write to MH i2c: 01 00 00 C9 8F 58 [15:22:09]Write i2c OK [15:22:09]MH_I2C_Read... [15:22:09]OFD Sender: No OFD packet to send [15:22:09]*** Cut start [15:22:09]*** Partial cut [15:22:09]*** CUTSNS_PIN = 1 [15:22:09]*** CUTSNS_PIN = 0 [15:22:10]*** Brake cut motor [15:22:10]Read from MH i2c: 01 [15:22:10]MH_I2C_Read... [15:22:10]*** Stop cut motor [15:22:10]*** Cut end [15:22:10]Read from MH i2c: 01 07 00 [15:22:10]MH_I2C_Read... [15:22:10]Read from MH i2c: 01 07 00 C9 8F 00 00 00 00 00 FF 0F 6D [15:22:10]process_action close_receipt done [15:22:10]requested_data is exist [15:22:10]produce_requested_data [15:22:10]requested_item fm.sn is exist - process it [15:22:10]wFMCommunicate request_size=4 [15:22:10]MH_SAM_APDU [15:22:10]CAPDU: 80 11 00 00 [15:22:10]Write to MH i2c: E2 08 00 CA 8F 80 11 00 00 00 00 00 00 D3 [15:22:10]Write i2c OK [15:22:10]MH_I2C_Read... [15:22:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:22:10]Read from MH i2c: E2 [15:22:10]MH_I2C_Read... [15:22:10]Read from MH i2c: E2 17 00 [15:22:10]MH_I2C_Read... [15:22:10]Read from MH i2c: E2 17 00 CA 8F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 21 [15:22:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [15:22:10]wFMCommunicate OK [15:22:10]requested_item fd.num is exist - process it [15:22:10]SAM_PROTO_GetFieldsCounters [15:22:10]wFMCommunicate request_size=4 [15:22:10]MH_SAM_APDU [15:22:10]CAPDU: 80 13 00 00 [15:22:10]Write to MH i2c: E2 08 00 CB 8F 80 13 00 00 00 00 00 00 D6 [15:22:10]Write i2c OK [15:22:10]MH_I2C_Read... [15:22:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:22:10]Read from MH i2c: E2 [15:22:10]MH_I2C_Read... [15:22:10]Read from MH i2c: E2 62 00 [15:22:10]MH_I2C_Read... [15:22:10]Read from MH i2c: E2 62 00 CB 8F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 66 [15:22: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 A8 76 00 00 0E 04 04 00 72 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 [15:22:10]wFMCommunicate OK [15:22:10]SAM_PROTO_GetFieldsCounters done [15:22:10]requested_item shift.num is exist - process it [15:22:10]requested_item shift.opened is exist - process it [15:22:10]req_shift_opened [15:22:10]FM_GetShiftState [15:22:10]SAM_PROTO_GetShiftState [15:22:10]wFMCommunicate request_size=4 [15:22:10]MH_SAM_APDU [15:22:10]CAPDU: 80 13 01 00 [15:22:10]Write to MH i2c: E2 08 00 CC 8F 80 13 01 00 00 00 00 00 D8 [15:22:10]Write i2c OK [15:22:10]MH_I2C_Read... [15:22:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:22:10]Read from MH i2c: E2 [15:22:10]MH_I2C_Read... [15:22:10]Read from MH i2c: E2 0E 00 [15:22:10]MH_I2C_Read... [15:22:10]Read from MH i2c: E2 0E 00 CC 8F 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 BE [15:22:10]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [15:22:10]wFMCommunicate OK [15:22:10]SAM_PROTO_GetShiftState done [15:22:10]FM_GetShiftState done [15:22:10]req_shift_opened done [15:22:10]requested_item shift.open_date is exist - process it [15:22:10]req_shift_open_date [15:22:10]req_shift_open_date done [15:22:10]produce_requested_data done [15:22:10]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30376,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [15:22:10]process_action_free close_receipt [15:22:10]json_value_free [15:22:10]json_value_free done [15:22:10]process_json_proto returns [15:22:10]Send response to host [15:22:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30376,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [15:22:10]free response buf [15:22:10]execute_script done [15:22:10]execute_script returns [15:22:10]free content buf [15:22:10]Sock 9.Close socket [15:22:10]Sock 9.Thread stoped [15:22:14]OFD Sender: No OFD packet to send [15:22:19]OFD Sender: No OFD packet to send [15:22:23]accept exits with 10 [15:22:23]New connection [15:22:23]New thread 3067370852 created [15:22:23]Thread 3067514212 joined [15:22:23]Waiting for new connection... [15:22:23] Sock 10.Parse request [15:22:23]Sock 10.Check first char [15:22:23]Sock 10.First char is OK [15:22:23]request: POST /json_proto HTTP/1.0 [15:22:23]Method: POST [15:22:23]URL: /json_proto [15:22:23]Method is POST - this is cgi request [15:22:23]url: /json_proto [15:22:23]query_string will be loaded in cgi processing [15:22:23]execute_cgi json_proto POST (null) [15:22:23]execute_cgi path=json_proto method=POST [15:22:23]POST find Content-Length [15:22:23]Host: 172.17.51.3:8080 [15:22:23]Content-Length: 679 [15:22:23]Content-Type: application/json [15:22:23] [15:22:23]POST finish read [15:22:23]Found Content-Length = 679 [15:22:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342770", "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" ] } } [15:22:23]execute_script... [15:22: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)342770", "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" ] } } [15:22:23]POST & json_proto [15:22:23]process_json_proto [15:22:23]json parsed OK: [15:22:23]protocol is kg_v1.0 [15:22:23]action value=close_receipt [15:22:23]process_action close_receipt [15:22:23]cmd_close_receipt [15:22:23]MH_GetDate [15:22:23]Write to MH i2c: F0 00 00 CD 8F 4B [15:22:23]Write i2c OK [15:22:23]MH_I2C_Read... [15:22:23]Read from MH i2c: F0 [15:22:23]MH_I2C_Read... [15:22:23]Read from MH i2c: F0 09 00 [15:22:23]MH_I2C_Read... [15:22:23]Read from MH i2c: F0 09 00 CD 8F 00 39 20 15 67 04 C1 95 66 E9 [15:22:23]GetLastDocTimeStamp 1729437736 [15:22:23]current date 1729437753 [15:22:23]FM_GetShiftState [15:22:23]SAM_PROTO_GetShiftState [15:22:23]wFMCommunicate request_size=4 [15:22:23]MH_SAM_APDU [15:22:23]CAPDU: 80 13 01 00 [15:22:23]Write to MH i2c: E2 08 00 CE 8F 80 13 01 00 00 00 00 00 DA [15:22:23]Write i2c OK [15:22:23]MH_I2C_Read... [15:22:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:22:23]Read from MH i2c: E2 [15:22:23]MH_I2C_Read... [15:22:23]Read from MH i2c: E2 0E 00 [15:22:23]MH_I2C_Read... [15:22:23]Read from MH i2c: E2 0E 00 CE 8F 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 C0 [15:22:23]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [15:22:23]wFMCommunicate OK [15:22:23]SAM_PROTO_GetShiftState done [15:22:23]FM_GetShiftState done [15:22:23]opened in 1729384718 [15:22:23]opened+sec_in_day 1729471118 [15:22:23]quantity*price = 100050 [15:22:23]sum+1 = 100052 [15:22:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 159 20.10.2024 15:22 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30377 ФПД: 60653374113227 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T152233&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30377&fm=60653374113227&tin=02508201610067®Number=0000000000186857&sum=100000 [15:22:24]StoreToDocumentArchive [15:22:24]shift 114 fd 30377 [15:22:24]save to /storage/0114/doc_00030377 [15:22:24]save last doc name /storage/0114/doc_00030377 to /storage/kkm_last_doc_name [15:22:24]save OK [15:22:24]Clear old archive folders... [15:22:24]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:22:24]tlvbuf is 00AA0390 [15:22:24]SAM_PROTO_ClearQueue [15:22:24]wFMCommunicate request_size=4 [15:22:24]MH_SAM_APDU [15:22:24]CAPDU: 80 09 00 00 [15:22:24]Write to MH i2c: E2 08 00 DB 8F 80 09 00 00 00 00 00 00 DC [15:22:24]Write i2c OK [15:22:24]MH_I2C_Read... [15:22:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:22:25]Read from MH i2c: E2 [15:22:25]MH_I2C_Read... [15:22:25]Read from MH i2c: E2 03 00 [15:22:25]MH_I2C_Read... [15:22:25]Read from MH i2c: E2 03 00 DB 8F 00 90 00 DE [15:22:25]RAPDU: 90 00 [15:22:25]wFMCommunicate OK [15:22:25]SAM_PROTO_ClearQueue done [15:22:25]KKMCreateOFDPacket [15:22:25]OFDProtocolAddRootSTLVToBuf [15:22:25]FM_MakeSignedData [15:22:25]FM_MakeSignedData [15:22:25]SAM_PROTO_SignData [15:22:25]wFMCommunicate request_size=4 [15:22:25]MH_SAM_APDU [15:22:25]CAPDU: 80 0D 01 02 [15:22:25]Write to MH i2c: E2 08 00 DC 8F 80 0D 01 02 00 00 00 00 E4 [15:22:25]Write i2c OK [15:22:25]MH_I2C_Read... [15:22:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:22:25]Read from MH i2c: E2 [15:22:25]MH_I2C_Read... [15:22:25]Read from MH i2c: E2 03 00 [15:22:25]MH_I2C_Read... [15:22:25]Read from MH i2c: E2 03 00 DC 8F 00 90 00 DF [15:22:25]RAPDU: 90 00 [15:22:25]wFMCommunicate OK [15:22:25]wFMCommunicate request_size=255 [15:22:25]MH_SAM_APDU [15:22:25]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 9F 00 00 00 F4 03 04 00 39 20 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 37 29 F6 D1 [15:22:25]Write to MH i2c: E2 02 01 DD 8F 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 9F 00 00 00 F4 03 04 00 39 20 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 37 29 F6 D1 00 00 97 [15:22:25]Write i2c OK [15:22:25]MH_I2C_Read... [15:22:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:22:25]Read from MH i2c: E2 [15:22:25]MH_I2C_Read... [15:22:25]Read from MH i2c: E2 03 00 [15:22:25]MH_I2C_Read... [15:22:25]Read from MH i2c: E2 03 00 DD 8F 00 90 00 E0 [15:22:25]RAPDU: 90 00 [15:22:25]wFMCommunicate OK [15:22:25]wFMCommunicate request_size=7 [15:22:25]MH_SAM_APDU [15:22:25]CAPDU: 80 0D 02 02 02 85 CB [15:22:25]Write to MH i2c: E2 0A 00 DE 8F 80 0D 02 02 02 00 85 CB 00 00 3B [15:22:25]Write i2c OK [15:22:25]MH_I2C_Read... [15:22:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:22:25]Read from MH i2c: E2 [15:22:25]MH_I2C_Read... [15:22:25]Read from MH i2c: E2 03 00 [15:22:25]MH_I2C_Read... [15:22:25]Read from MH i2c: E2 03 00 DE 8F 00 90 00 E1 [15:22:25]RAPDU: 90 00 [15:22:25]wFMCommunicate OK [15:22:25]wFMCommunicate request_size=4 [15:22:25]MH_SAM_APDU [15:22:25]CAPDU: 80 0D 03 02 [15:22:25]Write to MH i2c: E2 08 00 DF 8F 80 0D 03 02 00 00 00 00 E9 [15:22:25]Write i2c OK [15:22:25]MH_I2C_Read... [15:22:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:22:25]Read from MH i2c: E2 [15:22:25]MH_I2C_Read... [15:22:25]Read from MH i2c: E2 0B 00 [15:22:25]MH_I2C_Read... [15:22:25]Read from MH i2c: E2 0B 00 DF 8F 00 12 99 1E 2F 1D F7 B2 61 90 00 09 [15:22:25]RAPDU: 12 99 1E 2F 1D F7 B2 61 90 00 [15:22:25]wFMCommunicate OK [15:22:25]SAM_PROTO_SignData done [15:22:25]FM_MakeSignedData done [15:22:25]CreateOFDProtocolMessage [15:22:25]wFMCommunicate request_size=4 [15:22:25]MH_SAM_APDU [15:22:25]CAPDU: 80 11 00 00 [15:22:25]Write to MH i2c: E2 08 00 E0 8F 80 11 00 00 00 00 00 00 E9 [15:22:25]Write i2c OK [15:22:25]MH_I2C_Read... [15:22:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:22:25]Read from MH i2c: E2 [15:22:25]MH_I2C_Read... [15:22:25]Read from MH i2c: E2 17 00 [15:22:25]MH_I2C_Read... [15:22:25]Read from MH i2c: E2 17 00 E0 8F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 37 [15:22:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [15:22:25]wFMCommunicate OK [15:22:25]CreateOFDProtocolMessage done [15:22:25]OFDSenderStorePacket 30377 [15:22:25]StoreOFDPacket docnum=30377 [15:22: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 0C 01 00 00 1F BC 04 01 6E 71 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 9F 00 00 00 F4 03 04 00 39 20 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 37 29 F6 D1 85 CB 12 99 1E 2F 1D F7 B2 61 [15:22:25]CheckFolder [15:22:25]dirname=/storage/ofd_packets [15:22:25]CheckFolder done [15:22:25]ProducePacketName [15:22:25]name=ofd_packets/00030377 [15:22:25]NVStorageSaveData ofd_packets/00030377 [15:22:25]File name is /storage/ofd_packets/00030377 [15:22:25]Write 298 bytes [15:22:25]NVStorageSaveData done [15:22:25]OFDSenderStorePacket done [15:22:25]KKMCreateOFDPacket done [15:22:25]NVStorageSaveData kkm_last_timestamp [15:22:25]File name is /storage/kkm_last_timestamp [15:22:25]Write 4 bytes [15:22:25]NVStorageSaveData done [15:22:25]ExternCall_PrintAddStr [15:22:25]wPrintStart [15:22:25]Write to MH i2c: 01 00 00 E1 8F 70 [15:22:25]Write i2c OK [15:22:25]MH_I2C_Read... [15:22:25]Read from MH i2c: 01 [15:22:25]MH_I2C_Read... [15:22:25]Read from MH i2c: 01 07 00 [15:22:25]MH_I2C_Read... [15:22:25]Read from MH i2c: 01 07 00 E1 8F 00 00 00 00 00 FF 0F 85 [15:22:25]RasterBufferAndPrint [15:22:25]line Счет N : (1)342770 [15:22:25]line ИНН: 02508201610067 [15:22:25]line Контрольно-Кассовый Чек [15:22:25]line ПРОДАЖА [15:22:25]line ТРК (МРК, ГНК) : 34 [15:22:25]line Товар: 2710194210 [15:22:25]line ДТ-К-2 [15:22:25]line 13.130 * 76.20 [15:22:25]line = 1000.51 [15:22:25]line НДС 12% НСП 1% [15:22:25]line > о реализуемом товаре [15:22:25]line ОКРУГЛЕНИЕ: -0.51 [15:22:25]line ИТОГО: 1000.00 [15:22:25]line Внесено: 1000.00 [15:22:25]line СДАЧА: 0.00 [15:22:25]line НСП 1% : 8.85 [15:22:25]line НДС 12% : 106.25 [15:22:25]line Наличными: 1000.00 [15:22:25]line Безнал.: 0.00 [15:22:25]line Место: АЗС № 78 "Партнер Нефть" [15:22:25]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [15:22:25]line СНО: Общий режим [15:22:25]line Чек 159 20.10.2024 15:22 [15:22:25]line Смена: 114 ФФД: 1.0 [15:22:25]line ЗНМ: 0300000137 [15:22:25]line РНМ: 0000000000186857 [15:22:25]line Версия ККМ: v1.0 [15:22:25]line ФМ: 0000000002094219 [15:22:25]line ФД: 30377 [15:22:25]line ФПД: 60653374113227 [15:22:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T152233&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30377&fm=60653374113227&tin=02508201610067®Number=0000000000186857&sum=100000 [15:22:25]OFD Sender: Processing packet 30377 [packets to send 10, broken 9] [15:22:25]ProducePacketName [15:22:25]name=ofd_packets/00030377 [15:22:25]OFD Sender: To server: pG, [15:22:25]CommunicateWithHost lk.salyk.kg:30040 [15:22:25]ConnectInit lk.salyk.kg [15:22:25]written 0, free lines is 4095 [15:22:25]Connected sock=9 [15:22: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 0C 01 00 00 1F BC 04 01 6E 71 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 9F 00 00 00 F4 03 04 00 39 20 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 37 29 F6 D1 85 CB 12 99 1E 2F 1D F7 B2 61 [15:22: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 66 81 47 00 17 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 A9 76 00 00 F4 03 04 00 BD CA 14 67 B6 04 01 00 00 97 EC 7E 71 7F C4 88 4C [15:22:26]CommunicateWithHost err = 0 [15:22:26]CheckOFDResponse [15:22:26]1017 (14) - 77093643461234 [15:22:26]1041 (16) - 0000000002094219 [15:22:26]1040 (4) - 30377 [15:22:26]1012 (4) - 20.10.2024 09:17 [15:22:26]1206 (1) - 0 [15:22:26]OFD Sender: Remove packet 30377 [15:22:26]ProducePacketName [15:22:26]name=ofd_packets/00030377 [15:22:26]NVStorageDeleteData [15:22:26]Write to MH i2c: 01 00 00 0C 90 9C [15:22:26]Write i2c OK [15:22:26]MH_I2C_Read... [15:22:26]Read from MH i2c: 01 [15:22:26]MH_I2C_Read... [15:22:26]Read from MH i2c: 01 07 00 [15:22:26]MH_I2C_Read... [15:22:26]Read from MH i2c: 01 07 00 0C 90 00 00 00 00 00 EB 0C 9A [15:22:26]RasterBufferAndPrint [15:22:26]line [15:22:26]line [15:22:26]line [15:22:26]line [15:22:26]line [15:22:26]written 0, free lines is 3313 [15:22:26]MH_Cut [15:22:26]Write to MH i2c: D1 01 00 13 90 01 75 [15:22:26]Write i2c OK [15:22:26]MH_I2C_Read... [15:22:26]Read from MH i2c: D1 [15:22:26]MH_I2C_Read... [15:22:26]Read from MH i2c: D1 01 00 [15:22:26]MH_I2C_Read... [15:22:26]Read from MH i2c: D1 01 00 13 90 00 74 [15:22:26]Write to MH i2c: 01 00 00 14 90 A4 [15:22:26]Write i2c OK [15:22:26]MH_I2C_Read... [15:22:26]OFD Sender: No OFD packet to send [15:22:26]*** Cut start [15:22:26]*** Partial cut [15:22:26]*** CUTSNS_PIN = 1 [15:22:27]*** CUTSNS_PIN = 0 [15:22:27]*** Brake cut motor [15:22:27]Read from MH i2c: 01 [15:22:27]MH_I2C_Read... [15:22:27]*** Stop cut motor [15:22:27]*** Cut end [15:22:27]Read from MH i2c: 01 07 00 [15:22:27]MH_I2C_Read... [15:22:27]Read from MH i2c: 01 07 00 14 90 00 00 00 00 00 FF 0F B9 [15:22:27]process_action close_receipt done [15:22:27]requested_data is exist [15:22:27]produce_requested_data [15:22:27]requested_item fm.sn is exist - process it [15:22:27]wFMCommunicate request_size=4 [15:22:27]MH_SAM_APDU [15:22:27]CAPDU: 80 11 00 00 [15:22:27]Write to MH i2c: E2 08 00 15 90 80 11 00 00 00 00 00 00 1F [15:22:27]Write i2c OK [15:22:27]MH_I2C_Read... [15:22:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:22:27]Read from MH i2c: E2 [15:22:27]MH_I2C_Read... [15:22:27]Read from MH i2c: E2 17 00 [15:22:27]MH_I2C_Read... [15:22:27]Read from MH i2c: E2 17 00 15 90 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 6D [15:22:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [15:22:27]wFMCommunicate OK [15:22:27]requested_item fd.num is exist - process it [15:22:27]SAM_PROTO_GetFieldsCounters [15:22:27]wFMCommunicate request_size=4 [15:22:27]MH_SAM_APDU [15:22:27]CAPDU: 80 13 00 00 [15:22:27]Write to MH i2c: E2 08 00 16 90 80 13 00 00 00 00 00 00 22 [15:22:27]Write i2c OK [15:22:27]MH_I2C_Read... [15:22:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:22:27]Read from MH i2c: E2 [15:22:27]MH_I2C_Read... [15:22:27]Read from MH i2c: E2 62 00 [15:22:27]MH_I2C_Read... [15:22:27]Read from MH i2c: E2 62 00 16 90 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 B6 [15:22: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 A9 76 00 00 0E 04 04 00 72 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 [15:22:27]wFMCommunicate OK [15:22:27]SAM_PROTO_GetFieldsCounters done [15:22:27]requested_item shift.num is exist - process it [15:22:27]requested_item shift.opened is exist - process it [15:22:27]req_shift_opened [15:22:27]FM_GetShiftState [15:22:27]SAM_PROTO_GetShiftState [15:22:27]wFMCommunicate request_size=4 [15:22:27]MH_SAM_APDU [15:22:27]CAPDU: 80 13 01 00 [15:22:27]Write to MH i2c: E2 08 00 17 90 80 13 01 00 00 00 00 00 24 [15:22:27]Write i2c OK [15:22:27]MH_I2C_Read... [15:22:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:22:27]Read from MH i2c: E2 [15:22:27]MH_I2C_Read... [15:22:27]Read from MH i2c: E2 0E 00 [15:22:27]MH_I2C_Read... [15:22:27]Read from MH i2c: E2 0E 00 17 90 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 0A [15:22:27]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [15:22:27]wFMCommunicate OK [15:22:27]SAM_PROTO_GetShiftState done [15:22:27]FM_GetShiftState done [15:22:27]req_shift_opened done [15:22:27]requested_item shift.open_date is exist - process it [15:22:27]req_shift_open_date [15:22:27]req_shift_open_date done [15:22:27]produce_requested_data done [15:22:27]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30377,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [15:22:27]process_action_free close_receipt [15:22:27]json_value_free [15:22:27]json_value_free done [15:22:27]process_json_proto returns [15:22:27]Send response to host [15:22:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30377,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [15:22:27]free response buf [15:22:27]execute_script done [15:22:27]execute_script returns [15:22:27]free content buf [15:22:27]Sock 10.Close socket [15:22:27]Sock 10.Thread stoped [15:22:31]OFD Sender: No OFD packet to send [15:22:32]accept exits with 7 [15:22:32]New connection [15:22:32]New thread 3067514212 created [15:22:32]Thread 3067370852 joined [15:22:32]Waiting for new connection... [15:22:32] Sock 7.Parse request [15:22:32]Sock 7.Check first char [15:22:32]Sock 7.First char is OK [15:22:32]request: POST /json_proto HTTP/1.0 [15:22:32]Method: POST [15:22:32]URL: /json_proto [15:22:32]Method is POST - this is cgi request [15:22:32]url: /json_proto [15:22:32]query_string will be loaded in cgi processing [15:22:32]execute_cgi json_proto POST (null) [15:22:32]execute_cgi path=json_proto method=POST [15:22:32]POST find Content-Length [15:22:32]Host: 172.17.51.3:8080 [15:22:32]Content-Length: 674 [15:22:32]Content-Type: application/json [15:22:32] [15:22:32]POST finish read [15:22:32]Found Content-Length = 674 [15:22:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342771", "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.250, "sum" : 400.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:22:32]execute_script... [15:22: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)342771", "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.250, "sum" : 400.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:22:32]POST & json_proto [15:22:32]process_json_proto [15:22:32]json parsed OK: [15:22:32]protocol is kg_v1.0 [15:22:32]action value=close_receipt [15:22:32]process_action close_receipt [15:22:32]cmd_close_receipt [15:22:32]MH_GetDate [15:22:32]Write to MH i2c: F0 00 00 18 90 97 [15:22:32]Write i2c OK [15:22:32]MH_I2C_Read... [15:22:32]Read from MH i2c: F0 [15:22:32]MH_I2C_Read... [15:22:32]Read from MH i2c: F0 09 00 [15:22:32]MH_I2C_Read... [15:22:32]Read from MH i2c: F0 09 00 18 90 00 42 20 15 67 04 C1 95 66 3E [15:22:32]GetLastDocTimeStamp 1729437753 [15:22:32]current date 1729437762 [15:22:32]FM_GetShiftState [15:22:32]SAM_PROTO_GetShiftState [15:22:32]wFMCommunicate request_size=4 [15:22:32]MH_SAM_APDU [15:22:32]CAPDU: 80 13 01 00 [15:22:32]Write to MH i2c: E2 08 00 19 90 80 13 01 00 00 00 00 00 26 [15:22:32]Write i2c OK [15:22:32]MH_I2C_Read... [15:22:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:22:32]Read from MH i2c: E2 [15:22:32]MH_I2C_Read... [15:22:32]Read from MH i2c: E2 0E 00 [15:22:32]MH_I2C_Read... [15:22:32]Read from MH i2c: E2 0E 00 19 90 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 0C [15:22:32]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [15:22:32]wFMCommunicate OK [15:22:32]SAM_PROTO_GetShiftState done [15:22:32]FM_GetShiftState done [15:22:32]opened in 1729384718 [15:22:32]opened+sec_in_day 1729471118 [15:22:32]quantity*price = 40005 [15:22:32]sum+1 = 40006 [15:22:32]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 СНО: Общий режим Чек 160 20.10.2024 15:22 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30378 ФПД: 132695203465229 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T152242&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30378&fm=132695203465229&tin=02508201610067®Number=0000000000186857&sum=40000 [15:22:34]StoreToDocumentArchive [15:22:34]shift 114 fd 30378 [15:22:34]save to /storage/0114/doc_00030378 [15:22:34]save last doc name /storage/0114/doc_00030378 to /storage/kkm_last_doc_name [15:22:34]save OK [15:22:34]Clear old archive folders... [15:22:34]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:22:34]tlvbuf is 00AD0A60 [15:22:34]SAM_PROTO_ClearQueue [15:22:34]wFMCommunicate request_size=4 [15:22:34]MH_SAM_APDU [15:22:34]CAPDU: 80 09 00 00 [15:22:34]Write to MH i2c: E2 08 00 26 90 80 09 00 00 00 00 00 00 28 [15:22:34]Write i2c OK [15:22:34]MH_I2C_Read... [15:22:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:22:34]Read from MH i2c: E2 [15:22:34]MH_I2C_Read... [15:22:34]Read from MH i2c: E2 03 00 [15:22:34]MH_I2C_Read... [15:22:34]Read from MH i2c: E2 03 00 26 90 00 90 00 2A [15:22:34]RAPDU: 90 00 [15:22:34]wFMCommunicate OK [15:22:34]SAM_PROTO_ClearQueue done [15:22:34]KKMCreateOFDPacket [15:22:34]OFDProtocolAddRootSTLVToBuf [15:22:34]FM_MakeSignedData [15:22:34]FM_MakeSignedData [15:22:34]SAM_PROTO_SignData [15:22:34]wFMCommunicate request_size=4 [15:22:34]MH_SAM_APDU [15:22:34]CAPDU: 80 0D 01 02 [15:22:34]Write to MH i2c: E2 08 00 27 90 80 0D 01 02 00 00 00 00 30 [15:22:34]Write i2c OK [15:22:34]MH_I2C_Read... [15:22:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:22:34]Read from MH i2c: E2 [15:22:34]MH_I2C_Read... [15:22:34]Read from MH i2c: E2 03 00 [15:22:34]MH_I2C_Read... [15:22:34]Read from MH i2c: E2 03 00 27 90 00 90 00 2B [15:22:34]RAPDU: 90 00 [15:22:34]wFMCommunicate OK [15:22:34]wFMCommunicate request_size=255 [15:22:34]MH_SAM_APDU [15:22: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 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 A0 00 00 00 F4 03 04 00 42 20 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 78 AF 82 77 [15:22:34]Write to MH i2c: E2 02 01 28 90 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 A0 00 00 00 F4 03 04 00 42 20 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 78 AF 82 77 00 00 DA [15:22:34]Write i2c OK [15:22:34]MH_I2C_Read... [15:22:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:22:34]Read from MH i2c: E2 [15:22:34]MH_I2C_Read... [15:22:34]Read from MH i2c: E2 03 00 [15:22:34]MH_I2C_Read... [15:22:34]Read from MH i2c: E2 03 00 28 90 00 90 00 2C [15:22:34]RAPDU: 90 00 [15:22:34]wFMCommunicate OK [15:22:34]wFMCommunicate request_size=7 [15:22:34]MH_SAM_APDU [15:22:34]CAPDU: 80 0D 02 02 02 48 0D [15:22:34]Write to MH i2c: E2 0A 00 29 90 80 0D 02 02 02 00 48 0D 00 00 8C [15:22:34]Write i2c OK [15:22:34]MH_I2C_Read... [15:22:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:22:34]Read from MH i2c: E2 [15:22:34]MH_I2C_Read... [15:22:34]Read from MH i2c: E2 03 00 [15:22:34]MH_I2C_Read... [15:22:34]Read from MH i2c: E2 03 00 29 90 00 90 00 2D [15:22:34]RAPDU: 90 00 [15:22:34]wFMCommunicate OK [15:22:34]wFMCommunicate request_size=4 [15:22:34]MH_SAM_APDU [15:22:34]CAPDU: 80 0D 03 02 [15:22:34]Write to MH i2c: E2 08 00 2A 90 80 0D 03 02 00 00 00 00 35 [15:22:34]Write i2c OK [15:22:34]MH_I2C_Read... [15:22:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:22:34]Read from MH i2c: E2 [15:22:34]MH_I2C_Read... [15:22:34]Read from MH i2c: E2 0B 00 [15:22:34]MH_I2C_Read... [15:22:34]Read from MH i2c: E2 0B 00 2A 90 00 14 E3 AC E7 71 D7 8B 42 90 00 D5 [15:22:34]RAPDU: 14 E3 AC E7 71 D7 8B 42 90 00 [15:22:34]wFMCommunicate OK [15:22:34]SAM_PROTO_SignData done [15:22:34]FM_MakeSignedData done [15:22:34]CreateOFDProtocolMessage [15:22:34]wFMCommunicate request_size=4 [15:22:34]MH_SAM_APDU [15:22:34]CAPDU: 80 11 00 00 [15:22:34]Write to MH i2c: E2 08 00 2B 90 80 11 00 00 00 00 00 00 35 [15:22:34]Write i2c OK [15:22:34]MH_I2C_Read... [15:22:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:22:34]Read from MH i2c: E2 [15:22:34]MH_I2C_Read... [15:22:34]Read from MH i2c: E2 17 00 [15:22:34]MH_I2C_Read... [15:22:34]Read from MH i2c: E2 17 00 2B 90 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 83 [15:22: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:22:34]wFMCommunicate OK [15:22:34]CreateOFDProtocolMessage done [15:22:34]OFDSenderStorePacket 30378 [15:22:34]StoreOFDPacket docnum=30378 [15:22: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 D2 12 04 01 40 71 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 A0 00 00 00 F4 03 04 00 42 20 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 78 AF 82 77 48 0D 14 E3 AC E7 71 D7 8B 42 [15:22:34]CheckFolder [15:22:34]dirname=/storage/ofd_packets [15:22:34]CheckFolder done [15:22:34]ProducePacketName [15:22:34]name=ofd_packets/00030378 [15:22:34]NVStorageSaveData ofd_packets/00030378 [15:22:34]File name is /storage/ofd_packets/00030378 [15:22:34]Write 298 bytes [15:22:34]NVStorageSaveData done [15:22:34]OFDSenderStorePacket done [15:22:34]KKMCreateOFDPacket done [15:22:34]NVStorageSaveData kkm_last_timestamp [15:22:34]File name is /storage/kkm_last_timestamp [15:22:34]Write 4 bytes [15:22:34]NVStorageSaveData done [15:22:34]ExternCall_PrintAddStr [15:22:34]wPrintStart [15:22:34]Write to MH i2c: 01 00 00 2C 90 BC [15:22:34]Write i2c OK [15:22:34]MH_I2C_Read... [15:22:34]Read from MH i2c: 01 [15:22:34]MH_I2C_Read... [15:22:34]Read from MH i2c: 01 07 00 [15:22:34]MH_I2C_Read... [15:22:34]Read from MH i2c: 01 07 00 2C 90 00 00 00 00 00 FF 0F D1 [15:22:34]RasterBufferAndPrint [15:22:34]line Счет N : (1)342771 [15:22:34]line ИНН: 02508201610067 [15:22:34]line Контрольно-Кассовый Чек [15:22:34]line ПРОДАЖА [15:22:34]line ТРК (МРК, ГНК) : 54 [15:22:34]line Товар: 2710194210 [15:22:34]line ДТ-К-2 [15:22:34]line 5.250 * 76.20 [15:22:34]line = 400.05 [15:22:34]line НДС 12% НСП 1% [15:22:34]line > о реализуемом товаре [15:22:34]line ОКРУГЛЕНИЕ: -0.05 [15:22:34]line ИТОГО: 400.00 [15:22:34]line Внесено: 400.00 [15:22:34]line СДАЧА: 0.00 [15:22:34]line НСП 1% : 3.54 [15:22:34]line НДС 12% : 42.48 [15:22:34]line Наличными: 400.00 [15:22:34]line Безнал.: 0.00 [15:22:34]line Место: АЗС № 78 "Партнер Нефть" [15:22:34]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [15:22:34]line СНО: Общий режим [15:22:34]line Чек 160 20.10.2024 15:22 [15:22:34]line Смена: 114 ФФД: 1.0 [15:22:34]line ЗНМ: 0300000137 [15:22:34]line РНМ: 0000000000186857 [15:22:34]line Версия ККМ: v1.0 [15:22:34]line ФМ: 0000000002094219 [15:22:34]line ФД: 30378 [15:22:34]line ФПД: 132695203465229 [15:22:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T152242&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30378&fm=132695203465229&tin=02508201610067®Number=0000000000186857&sum=40000 [15:22:34]written 0, free lines is 4095 [15:22:34]OFD Sender: Processing packet 30378 [packets to send 10, broken 9] [15:22:34]ProducePacketName [15:22:34]name=ofd_packets/00030378 [15:22:34]OFD Sender: To server: pG, [15:22:34]CommunicateWithHost lk.salyk.kg:30040 [15:22:34]ConnectInit lk.salyk.kg [15:22:34]Connected sock=10 [15:22: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 D2 12 04 01 40 71 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 A0 00 00 00 F4 03 04 00 42 20 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 78 AF 82 77 48 0D 14 E3 AC E7 71 D7 8B 42 [15:22: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 56 9F 47 00 B4 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 AA 76 00 00 F4 03 04 00 C6 CA 14 67 B6 04 01 00 00 FF B3 4F E4 DD 37 5C 9D [15:22:34]CommunicateWithHost err = 0 [15:22:34]CheckOFDResponse [15:22:34]1017 (14) - 77093643461234 [15:22:34]1041 (16) - 0000000002094219 [15:22:34]1040 (4) - 30378 [15:22:34]1012 (4) - 20.10.2024 09:17 [15:22:34]1206 (1) - 0 [15:22:34]OFD Sender: Remove packet 30378 [15:22:34]ProducePacketName [15:22:34]name=ofd_packets/00030378 [15:22:34]NVStorageDeleteData [15:22:35]Write to MH i2c: 01 00 00 57 90 E7 [15:22:35]Write i2c OK [15:22:35]MH_I2C_Read... [15:22:35]Read from MH i2c: 01 [15:22:35]MH_I2C_Read... [15:22:35]Read from MH i2c: 01 07 00 [15:22:35]MH_I2C_Read... [15:22:35]Read from MH i2c: 01 07 00 57 90 00 00 00 00 00 EE 0C E8 [15:22:35]RasterBufferAndPrint [15:22:35]line [15:22:35]line [15:22:35]line [15:22:35]line [15:22:35]line [15:22:35]written 0, free lines is 3322 [15:22:35]MH_Cut [15:22:35]Write to MH i2c: D1 01 00 5E 90 01 C0 [15:22:35]Write i2c OK [15:22:35]MH_I2C_Read... [15:22:35]Read from MH i2c: D1 [15:22:35]MH_I2C_Read... [15:22:35]Read from MH i2c: D1 01 00 [15:22:35]MH_I2C_Read... [15:22:35]Read from MH i2c: D1 01 00 5E 90 00 BF [15:22:35]Write to MH i2c: 01 00 00 5F 90 EF [15:22:35]Write i2c OK [15:22:35]MH_I2C_Read... [15:22:35]OFD Sender: No OFD packet to send [15:22:35]*** Cut start [15:22:35]*** Partial cut [15:22:35]*** CUTSNS_PIN = 1 [15:22:35]*** CUTSNS_PIN = 0 [15:22:35]*** Brake cut motor [15:22:36]Read from MH i2c: 01 [15:22:36]MH_I2C_Read... [15:22:36]*** Stop cut motor [15:22:36]*** Cut end [15:22:36]Read from MH i2c: 01 07 00 [15:22:36]MH_I2C_Read... [15:22:36]Read from MH i2c: 01 07 00 5F 90 00 00 00 00 00 FF 0F 04 [15:22:36]process_action close_receipt done [15:22:36]requested_data is exist [15:22:36]produce_requested_data [15:22:36]requested_item fm.sn is exist - process it [15:22:36]wFMCommunicate request_size=4 [15:22:36]MH_SAM_APDU [15:22:36]CAPDU: 80 11 00 00 [15:22:36]Write to MH i2c: E2 08 00 60 90 80 11 00 00 00 00 00 00 6A [15:22:36]Write i2c OK [15:22:36]MH_I2C_Read... [15:22:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:22:36]Read from MH i2c: E2 [15:22:36]MH_I2C_Read... [15:22:36]Read from MH i2c: E2 17 00 [15:22:36]MH_I2C_Read... [15:22:36]Read from MH i2c: E2 17 00 60 90 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 B8 [15:22: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:22:36]wFMCommunicate OK [15:22:36]requested_item fd.num is exist - process it [15:22:36]SAM_PROTO_GetFieldsCounters [15:22:36]wFMCommunicate request_size=4 [15:22:36]MH_SAM_APDU [15:22:36]CAPDU: 80 13 00 00 [15:22:36]Write to MH i2c: E2 08 00 61 90 80 13 00 00 00 00 00 00 6D [15:22:36]Write i2c OK [15:22:36]MH_I2C_Read... [15:22:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:22:36]Read from MH i2c: E2 [15:22:36]MH_I2C_Read... [15:22:36]Read from MH i2c: E2 62 00 [15:22:36]MH_I2C_Read... [15:22:36]Read from MH i2c: E2 62 00 61 90 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 05 [15:22: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 AA 76 00 00 0E 04 04 00 72 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 [15:22:36]wFMCommunicate OK [15:22:36]SAM_PROTO_GetFieldsCounters done [15:22:36]requested_item shift.num is exist - process it [15:22:36]requested_item shift.opened is exist - process it [15:22:36]req_shift_opened [15:22:36]FM_GetShiftState [15:22:36]SAM_PROTO_GetShiftState [15:22:36]wFMCommunicate request_size=4 [15:22:36]MH_SAM_APDU [15:22:36]CAPDU: 80 13 01 00 [15:22:36]Write to MH i2c: E2 08 00 62 90 80 13 01 00 00 00 00 00 6F [15:22:36]Write i2c OK [15:22:36]MH_I2C_Read... [15:22:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:22:36]Read from MH i2c: E2 [15:22:36]MH_I2C_Read... [15:22:36]Read from MH i2c: E2 0E 00 [15:22:36]MH_I2C_Read... [15:22:36]Read from MH i2c: E2 0E 00 62 90 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 55 [15:22:36]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [15:22:36]wFMCommunicate OK [15:22:36]SAM_PROTO_GetShiftState done [15:22:36]FM_GetShiftState done [15:22:36]req_shift_opened done [15:22:36]requested_item shift.open_date is exist - process it [15:22:36]req_shift_open_date [15:22:36]req_shift_open_date done [15:22:36]produce_requested_data done [15:22:36]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30378,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [15:22:36]process_action_free close_receipt [15:22:36]json_value_free [15:22:36]json_value_free done [15:22:36]process_json_proto returns [15:22:36]Send response to host [15:22:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30378,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [15:22:36]free response buf [15:22:36]execute_script done [15:22:36]execute_script returns [15:22:36]free content buf [15:22:36]Sock 7.Close socket [15:22:36]Sock 7.Thread stoped [15:22:40]OFD Sender: No OFD packet to send [15:22:45]OFD Sender: No OFD packet to send [15:22:50]OFD Sender: No OFD packet to send [15:22:55]OFD Sender: No OFD packet to send [15:23:00]OFD Sender: No OFD packet to send [15:23:05]OFD Sender: No OFD packet to send [15:23:10]OFD Sender: No OFD packet to send [15:23:15]OFD Sender: No OFD packet to send [15:23:20]OFD Sender: No OFD packet to send [15:23:25]OFD Sender: No OFD packet to send [15:23:30]OFD Sender: No OFD packet to send [15:23:35]OFD Sender: No OFD packet to send [15:23:40]OFD Sender: No OFD packet to send [15:23:45]OFD Sender: No OFD packet to send [15:23:50]OFD Sender: No OFD packet to send [15:23:55]OFD Sender: No OFD packet to send [15:24:00]OFD Sender: No OFD packet to send [15:24:05]OFD Sender: No OFD packet to send [15:24:10]OFD Sender: No OFD packet to send [15:24:15]OFD Sender: No OFD packet to send [15:24:20]OFD Sender: No OFD packet to send [15:24:25]OFD Sender: No OFD packet to send [15:24:30]OFD Sender: No OFD packet to send [15:24:35]OFD Sender: No OFD packet to send [15:24:39]accept exits with 9 [15:24:39]New connection [15:24:39]New thread 3067370852 created [15:24:39]Thread 3067514212 joined [15:24:39]Waiting for new connection... [15:24:39] Sock 9.Parse request [15:24:39]Sock 9.Check first char [15:24:39]Sock 9.First char is OK [15:24:39]request: POST /json_proto HTTP/1.0 [15:24:39]Method: POST [15:24:39]URL: /json_proto [15:24:39]Method is POST - this is cgi request [15:24:39]url: /json_proto [15:24:39]query_string will be loaded in cgi processing [15:24:39]execute_cgi json_proto POST (null) [15:24:39]execute_cgi path=json_proto method=POST [15:24:39]POST find Content-Length [15:24:39]Host: 172.17.51.3:8080 [15:24:39]Content-Length: 688 [15:24:39]Content-Type: application/json [15:24:39] [15:24:39]POST finish read [15:24:39]Found Content-Length = 688 [15:24:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342774", "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:24:39]execute_script... [15:24: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)342774", "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:24:39]POST & json_proto [15:24:39]process_json_proto [15:24:39]json parsed OK: [15:24:39]protocol is kg_v1.0 [15:24:39]action value=close_receipt [15:24:39]process_action close_receipt [15:24:39]cmd_close_receipt [15:24:39]MH_GetDate [15:24:39]Write to MH i2c: F0 00 00 63 90 E2 [15:24:39]Write i2c OK [15:24:39]MH_I2C_Read... [15:24:39]Read from MH i2c: F0 [15:24:39]MH_I2C_Read... [15:24:39]Read from MH i2c: F0 09 00 [15:24:39]MH_I2C_Read... [15:24:39]Read from MH i2c: F0 09 00 63 90 00 C1 20 15 67 04 C1 95 66 08 [15:24:39]GetLastDocTimeStamp 1729437762 [15:24:39]current date 1729437889 [15:24:39]FM_GetShiftState [15:24:39]SAM_PROTO_GetShiftState [15:24:39]wFMCommunicate request_size=4 [15:24:39]MH_SAM_APDU [15:24:39]CAPDU: 80 13 01 00 [15:24:39]Write to MH i2c: E2 08 00 64 90 80 13 01 00 00 00 00 00 71 [15:24:39]Write i2c OK [15:24:39]MH_I2C_Read... [15:24:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:24:39]Read from MH i2c: E2 [15:24:39]MH_I2C_Read... [15:24:39]Read from MH i2c: E2 0E 00 [15:24:39]MH_I2C_Read... [15:24:39]Read from MH i2c: E2 0E 00 64 90 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 57 [15:24:39]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [15:24:39]wFMCommunicate OK [15:24:39]SAM_PROTO_GetShiftState done [15:24:39]FM_GetShiftState done [15:24:39]opened in 1729384718 [15:24:39]opened+sec_in_day 1729471118 [15:24:39]quantity*price = 100051 [15:24:39]sum+1 = 100052 [15:24:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 161 20.10.2024 15:24 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30379 ФПД: 64061746276221 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T152449&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30379&fm=64061746276221&tin=02508201610067®Number=0000000000186857&sum=100000 [15:24:41]StoreToDocumentArchive [15:24:41]shift 114 fd 30379 [15:24:41]save to /storage/0114/doc_00030379 [15:24:41]save last doc name /storage/0114/doc_00030379 to /storage/kkm_last_doc_name [15:24:41]save OK [15:24:41]Clear old archive folders... [15:24:41]ProcessDocumentItem done err = 0, tmpTLVsize=257 [15:24:41]tlvbuf is 00B06E70 [15:24:41]SAM_PROTO_ClearQueue [15:24:41]wFMCommunicate request_size=4 [15:24:41]MH_SAM_APDU [15:24:41]CAPDU: 80 09 00 00 [15:24:41]Write to MH i2c: E2 08 00 71 90 80 09 00 00 00 00 00 00 73 [15:24:41]Write i2c OK [15:24:41]MH_I2C_Read... [15:24:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:24:41]Read from MH i2c: E2 [15:24:41]MH_I2C_Read... [15:24:41]Read from MH i2c: E2 03 00 [15:24:41]MH_I2C_Read... [15:24:41]Read from MH i2c: E2 03 00 71 90 00 90 00 75 [15:24:41]RAPDU: 90 00 [15:24:41]wFMCommunicate OK [15:24:41]SAM_PROTO_ClearQueue done [15:24:41]KKMCreateOFDPacket [15:24:41]OFDProtocolAddRootSTLVToBuf [15:24:41]FM_MakeSignedData [15:24:41]FM_MakeSignedData [15:24:41]SAM_PROTO_SignData [15:24:41]wFMCommunicate request_size=4 [15:24:41]MH_SAM_APDU [15:24:41]CAPDU: 80 0D 01 02 [15:24:41]Write to MH i2c: E2 08 00 72 90 80 0D 01 02 00 00 00 00 7B [15:24:41]Write i2c OK [15:24:41]MH_I2C_Read... [15:24:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:24:41]Read from MH i2c: E2 [15:24:41]MH_I2C_Read... [15:24:41]Read from MH i2c: E2 03 00 [15:24:41]MH_I2C_Read... [15:24:41]Read from MH i2c: E2 03 00 72 90 00 90 00 76 [15:24:41]RAPDU: 90 00 [15:24:41]wFMCommunicate OK [15:24:41]wFMCommunicate request_size=255 [15:24:41]MH_SAM_APDU [15:24:41]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 A1 00 00 00 F4 03 04 00 C1 20 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 [15:24:41]Write to MH i2c: E2 02 01 73 90 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 A1 00 00 00 F4 03 04 00 C1 20 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 00 66 [15:24:41]Write i2c OK [15:24:41]MH_I2C_Read... [15:24:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:24:41]Read from MH i2c: E2 [15:24:41]MH_I2C_Read... [15:24:41]Read from MH i2c: E2 03 00 [15:24:41]MH_I2C_Read... [15:24:41]Read from MH i2c: E2 03 00 73 90 00 90 00 77 [15:24:41]RAPDU: 90 00 [15:24:41]wFMCommunicate OK [15:24:41]wFMCommunicate request_size=16 [15:24:41]MH_SAM_APDU [15:24:41]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 3A 43 89 A1 67 7D [15:24:41]Write to MH i2c: E2 13 00 74 90 80 0D 02 02 0B 00 00 35 04 06 00 3A 43 89 A1 67 7D 00 00 5E [15:24:41]Write i2c OK [15:24:41]MH_I2C_Read... [15:24:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:24:41]Read from MH i2c: E2 [15:24:41]MH_I2C_Read... [15:24:41]Read from MH i2c: E2 03 00 [15:24:41]MH_I2C_Read... [15:24:41]Read from MH i2c: E2 03 00 74 90 00 90 00 78 [15:24:41]RAPDU: 90 00 [15:24:41]wFMCommunicate OK [15:24:41]wFMCommunicate request_size=4 [15:24:41]MH_SAM_APDU [15:24:41]CAPDU: 80 0D 03 02 [15:24:41]Write to MH i2c: E2 08 00 75 90 80 0D 03 02 00 00 00 00 80 [15:24:41]Write i2c OK [15:24:41]MH_I2C_Read... [15:24:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:24:41]Read from MH i2c: E2 [15:24:41]MH_I2C_Read... [15:24:41]Read from MH i2c: E2 0B 00 [15:24:41]MH_I2C_Read... [15:24:41]Read from MH i2c: E2 0B 00 75 90 00 45 C8 F6 BC 20 A5 3B 17 90 00 57 [15:24:41]RAPDU: 45 C8 F6 BC 20 A5 3B 17 90 00 [15:24:41]wFMCommunicate OK [15:24:41]SAM_PROTO_SignData done [15:24:41]FM_MakeSignedData done [15:24:41]CreateOFDProtocolMessage [15:24:41]wFMCommunicate request_size=4 [15:24:41]MH_SAM_APDU [15:24:41]CAPDU: 80 11 00 00 [15:24:41]Write to MH i2c: E2 08 00 76 90 80 11 00 00 00 00 00 00 80 [15:24:41]Write i2c OK [15:24:41]MH_I2C_Read... [15:24:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:24:41]Read from MH i2c: E2 [15:24:41]MH_I2C_Read... [15:24:41]Read from MH i2c: E2 17 00 [15:24:41]MH_I2C_Read... [15:24:41]Read from MH i2c: E2 17 00 76 90 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 CE [15:24: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:24:41]wFMCommunicate OK [15:24:41]CreateOFDProtocolMessage done [15:24:41]OFDSenderStorePacket 30379 [15:24:41]StoreOFDPacket docnum=30379 [15:24: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 15 01 00 00 C7 A9 0D 01 59 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 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 A1 00 00 00 F4 03 04 00 C1 20 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 3A 43 89 A1 67 7D 45 C8 F6 BC 20 A5 3B 17 [15:24:41]CheckFolder [15:24:41]dirname=/storage/ofd_packets [15:24:41]CheckFolder done [15:24:41]ProducePacketName [15:24:41]name=ofd_packets/00030379 [15:24:41]NVStorageSaveData ofd_packets/00030379 [15:24:41]File name is /storage/ofd_packets/00030379 [15:24:41]Write 307 bytes [15:24:41]NVStorageSaveData done [15:24:41]OFDSenderStorePacket done [15:24:41]KKMCreateOFDPacket done [15:24:41]NVStorageSaveData kkm_last_timestamp [15:24:41]File name is /storage/kkm_last_timestamp [15:24:41]Write 4 bytes [15:24:41]NVStorageSaveData done [15:24:41]ExternCall_PrintAddStr [15:24:41]wPrintStart [15:24:41]Write to MH i2c: 01 00 00 77 90 07 [15:24:41]Write i2c OK [15:24:41]MH_I2C_Read... [15:24:41]Read from MH i2c: 01 [15:24:41]MH_I2C_Read... [15:24:41]Read from MH i2c: 01 07 00 [15:24:41]MH_I2C_Read... [15:24:41]Read from MH i2c: 01 07 00 77 90 00 00 00 00 00 FF 0F 1C [15:24:41]RasterBufferAndPrint [15:24:41]line Счет N : (1)342774 [15:24:41]line ИНН: 02508201610067 [15:24:41]line Контрольно-Кассовый Чек [15:24:41]line ПРОДАЖА [15:24:41]line ТРК (МРК, ГНК) : 51 [15:24:41]line Товар: 2710194210 [15:24:41]line D-ENERGY Дт-К-2 [15:24:41]line 12.960 * 77.20 [15:24:41]line = 1000.51 [15:24:41]line НДС 12% НСП 1% [15:24:41]line > о реализуемом товаре [15:24:41]line ОКРУГЛЕНИЕ: -0.51 [15:24:41]line ИТОГО: 1000.00 [15:24:41]line Внесено: 1000.00 [15:24:41]line СДАЧА: 0.00 [15:24:41]line НСП 1% : 8.85 [15:24:41]line НДС 12% : 106.25 [15:24:41]line Наличными: 1000.00 [15:24:41]line Безнал.: 0.00 [15:24:41]line Место: АЗС № 78 "Партнер Нефть" [15:24:41]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [15:24:41]line СНО: Общий режим [15:24:41]line Чек 161 20.10.2024 15:24 [15:24:41]line Смена: 114 ФФД: 1.0 [15:24:41]line ЗНМ: 0300000137 [15:24:41]line РНМ: 0000000000186857 [15:24:41]line Версия ККМ: v1.0 [15:24:41]line ФМ: 0000000002094219 [15:24:41]line ФД: 30379 [15:24:41]line ФПД: 64061746276221 [15:24:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T152449&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30379&fm=64061746276221&tin=02508201610067®Number=0000000000186857&sum=100000 [15:24:41]OFD Sender: Processing packet 30379 [packets to send 10, broken 9] [15:24:41]ProducePacketName [15:24:41]name=ofd_packets/00030379 [15:24:41]OFD Sender: To server: pG, [15:24:41]CommunicateWithHost lk.salyk.kg:30040 [15:24:41]ConnectInit lk.salyk.kg [15:24:41]written 0, free lines is 4095 [15:24:42]Connected sock=10 [15:24: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 15 01 00 00 C7 A9 0D 01 59 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 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 A1 00 00 00 F4 03 04 00 C1 20 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 3A 43 89 A1 67 7D 45 C8 F6 BC 20 A5 3B 17 [15:24: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 B7 F6 47 00 DA 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 AB 76 00 00 F4 03 04 00 45 CB 14 67 B6 04 01 00 00 F1 94 0E 16 DB 59 20 63 [15:24:42]CommunicateWithHost err = 0 [15:24:42]CheckOFDResponse [15:24:42]1017 (14) - 77093643461234 [15:24:42]1041 (16) - 0000000002094219 [15:24:42]1040 (4) - 30379 [15:24:42]1012 (4) - 20.10.2024 09:20 [15:24:42]1206 (1) - 0 [15:24:42]OFD Sender: Remove packet 30379 [15:24:42]ProducePacketName [15:24:42]name=ofd_packets/00030379 [15:24:42]NVStorageDeleteData [15:24:42]Write to MH i2c: 01 00 00 A2 90 32 [15:24:42]Write i2c OK [15:24:42]MH_I2C_Read... [15:24:42]Read from MH i2c: 01 [15:24:42]MH_I2C_Read... [15:24:42]Read from MH i2c: 01 07 00 [15:24:42]MH_I2C_Read... [15:24:42]Read from MH i2c: 01 07 00 A2 90 00 00 00 00 00 EC 0C 31 [15:24:42]RasterBufferAndPrint [15:24:42]line [15:24:42]line [15:24:42]line [15:24:42]line [15:24:42]line [15:24:42]written 0, free lines is 3314 [15:24:42]MH_Cut [15:24:42]Write to MH i2c: D1 01 00 A9 90 01 0B [15:24:42]Write i2c OK [15:24:42]MH_I2C_Read... [15:24:42]Read from MH i2c: D1 [15:24:42]MH_I2C_Read... [15:24:42]Read from MH i2c: D1 01 00 [15:24:42]MH_I2C_Read... [15:24:42]Read from MH i2c: D1 01 00 A9 90 00 0A [15:24:42]Write to MH i2c: 01 00 00 AA 90 3A [15:24:42]Write i2c OK [15:24:42]MH_I2C_Read... [15:24:42]OFD Sender: No OFD packet to send [15:24:43]*** Cut start [15:24:43]*** Partial cut [15:24:43]*** CUTSNS_PIN = 1 [15:24:43]*** CUTSNS_PIN = 0 [15:24:43]*** Brake cut motor [15:24:43]Read from MH i2c: 01 [15:24:43]MH_I2C_Read... [15:24:43]*** Stop cut motor [15:24:43]*** Cut end [15:24:43]Read from MH i2c: 01 07 00 [15:24:43]MH_I2C_Read... [15:24:43]Read from MH i2c: 01 07 00 AA 90 00 00 00 00 00 FF 0F 4F [15:24:43]process_action close_receipt done [15:24:43]requested_data is exist [15:24:43]produce_requested_data [15:24:43]requested_item fm.sn is exist - process it [15:24:43]wFMCommunicate request_size=4 [15:24:43]MH_SAM_APDU [15:24:43]CAPDU: 80 11 00 00 [15:24:43]Write to MH i2c: E2 08 00 AB 90 80 11 00 00 00 00 00 00 B5 [15:24:43]Write i2c OK [15:24:43]MH_I2C_Read... [15:24:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:24:43]Read from MH i2c: E2 [15:24:43]MH_I2C_Read... [15:24:43]Read from MH i2c: E2 17 00 [15:24:43]MH_I2C_Read... [15:24:43]Read from MH i2c: E2 17 00 AB 90 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 03 [15:24:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [15:24:43]wFMCommunicate OK [15:24:43]requested_item fd.num is exist - process it [15:24:43]SAM_PROTO_GetFieldsCounters [15:24:43]wFMCommunicate request_size=4 [15:24:43]MH_SAM_APDU [15:24:43]CAPDU: 80 13 00 00 [15:24:43]Write to MH i2c: E2 08 00 AC 90 80 13 00 00 00 00 00 00 B8 [15:24:43]Write i2c OK [15:24:43]MH_I2C_Read... [15:24:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:24:43]Read from MH i2c: E2 [15:24:43]MH_I2C_Read... [15:24:43]Read from MH i2c: E2 62 00 [15:24:43]MH_I2C_Read... [15:24:43]Read from MH i2c: E2 62 00 AC 90 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 54 [15:24: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 AB 76 00 00 0E 04 04 00 72 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 [15:24:43]wFMCommunicate OK [15:24:43]SAM_PROTO_GetFieldsCounters done [15:24:43]requested_item shift.num is exist - process it [15:24:43]requested_item shift.opened is exist - process it [15:24:43]req_shift_opened [15:24:43]FM_GetShiftState [15:24:43]SAM_PROTO_GetShiftState [15:24:43]wFMCommunicate request_size=4 [15:24:43]MH_SAM_APDU [15:24:43]CAPDU: 80 13 01 00 [15:24:43]Write to MH i2c: E2 08 00 AD 90 80 13 01 00 00 00 00 00 BA [15:24:43]Write i2c OK [15:24:43]MH_I2C_Read... [15:24:43]Read from MH i2c: E2 [15:24:43]MH_I2C_Read... [15:24:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:24:43]Read from MH i2c: E2 0E 00 [15:24:43]MH_I2C_Read... [15:24:43]Read from MH i2c: E2 0E 00 AD 90 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 A0 [15:24:43]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [15:24:43]wFMCommunicate OK [15:24:43]SAM_PROTO_GetShiftState done [15:24:43]FM_GetShiftState done [15:24:43]req_shift_opened done [15:24:43]requested_item shift.open_date is exist - process it [15:24:43]req_shift_open_date [15:24:43]req_shift_open_date done [15:24:43]produce_requested_data done [15:24:43]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30379,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [15:24:43]process_action_free close_receipt [15:24:43]json_value_free [15:24:43]json_value_free done [15:24:43]process_json_proto returns [15:24:43]Send response to host [15:24:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30379,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [15:24:43]free response buf [15:24:43]execute_script done [15:24:43]execute_script returns [15:24:43]free content buf [15:24:43]Sock 9.Close socket [15:24:43]Sock 9.Thread stoped [15:24:47]OFD Sender: No OFD packet to send [15:24:52]OFD Sender: No OFD packet to send [15:24:57]OFD Sender: No OFD packet to send [15:25:02]OFD Sender: No OFD packet to send [15:25:07]OFD Sender: No OFD packet to send [15:25:12]OFD Sender: No OFD packet to send [15:25:17]OFD Sender: No OFD packet to send [15:25:22]OFD Sender: No OFD packet to send [15:25:27]OFD Sender: No OFD packet to send [15:25:32]OFD Sender: No OFD packet to send [15:25:37]OFD Sender: No OFD packet to send [15:25:42]OFD Sender: No OFD packet to send [15:25:47]OFD Sender: No OFD packet to send [15:25:52]OFD Sender: No OFD packet to send [15:25:57]OFD Sender: No OFD packet to send [15:26:02]OFD Sender: No OFD packet to send [15:26:07]OFD Sender: No OFD packet to send [15:26:12]OFD Sender: No OFD packet to send [15:26:17]OFD Sender: No OFD packet to send [15:26:22]OFD Sender: No OFD packet to send [15:26:27]OFD Sender: No OFD packet to send [15:26:32]OFD Sender: No OFD packet to send [15:26:37]OFD Sender: No OFD packet to send [15:26:39]accept exits with 7 [15:26:39]New connection [15:26:39]New thread 3067514212 created [15:26:39]Thread 3067370852 joined [15:26:39]Waiting for new connection... [15:26:39] Sock 7.Parse request [15:26:39]Sock 7.Check first char [15:26:39]Sock 7.First char is OK [15:26:39]request: POST /json_proto HTTP/1.0 [15:26:39]Method: POST [15:26:39]URL: /json_proto [15:26:39]Method is POST - this is cgi request [15:26:39]url: /json_proto [15:26:39]query_string will be loaded in cgi processing [15:26:39]execute_cgi json_proto POST (null) [15:26:39]execute_cgi path=json_proto method=POST [15:26:39]POST find Content-Length [15:26:39]Host: 172.17.51.3:8080 [15:26:39]Content-Length: 677 [15:26:39]Content-Type: application/json [15:26:39] [15:26:39]POST finish read [15:26:39]Found Content-Length = 677 [15:26:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342775", "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" ] } } [15:26:39]execute_script... [15:26:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342775", "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" ] } } [15:26:39]POST & json_proto [15:26:39]process_json_proto [15:26:39]json parsed OK: [15:26:39]protocol is kg_v1.0 [15:26:39]action value=close_receipt [15:26:39]process_action close_receipt [15:26:39]cmd_close_receipt [15:26:39]MH_GetDate [15:26:39]Write to MH i2c: F0 00 00 AE 90 2D [15:26:39]Write i2c OK [15:26:39]MH_I2C_Read... [15:26:39]Read from MH i2c: F0 [15:26:39]MH_I2C_Read... [15:26:39]Read from MH i2c: F0 09 00 [15:26:39]MH_I2C_Read... [15:26:39]Read from MH i2c: F0 09 00 AE 90 00 39 21 15 67 04 C1 95 66 CC [15:26:39]GetLastDocTimeStamp 1729437889 [15:26:39]current date 1729438009 [15:26:39]FM_GetShiftState [15:26:39]SAM_PROTO_GetShiftState [15:26:39]wFMCommunicate request_size=4 [15:26:39]MH_SAM_APDU [15:26:39]CAPDU: 80 13 01 00 [15:26:39]Write to MH i2c: E2 08 00 AF 90 80 13 01 00 00 00 00 00 BC [15:26:39]Write i2c OK [15:26:39]MH_I2C_Read... [15:26:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:26:39]Read from MH i2c: E2 [15:26:39]MH_I2C_Read... [15:26:39]Read from MH i2c: E2 0E 00 [15:26:39]MH_I2C_Read... [15:26:39]Read from MH i2c: E2 0E 00 AF 90 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 A2 [15:26:39]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [15:26:39]wFMCommunicate OK [15:26:39]SAM_PROTO_GetShiftState done [15:26:39]FM_GetShiftState done [15:26:39]opened in 1729384718 [15:26:39]opened+sec_in_day 1729471118 [15:26:39]quantity*price = 60009 [15:26:39]sum+1 = 60010 [15:26:39]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 СНО: Общий режим Чек 162 20.10.2024 15:26 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30380 ФПД: 32366860315995 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T152649&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30380&fm=32366860315995&tin=02508201610067®Number=0000000000186857&sum=60000 [15:26:40]StoreToDocumentArchive [15:26:40]shift 114 fd 30380 [15:26:40]save to /storage/0114/doc_00030380 [15:26:40]save last doc name /storage/0114/doc_00030380 to /storage/kkm_last_doc_name [15:26:40]save OK [15:26:40]Clear old archive folders... [15:26:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:26:40]tlvbuf is 00DBE2E0 [15:26:40]SAM_PROTO_ClearQueue [15:26:40]wFMCommunicate request_size=4 [15:26:40]MH_SAM_APDU [15:26:40]CAPDU: 80 09 00 00 [15:26:40]Write to MH i2c: E2 08 00 BC 90 80 09 00 00 00 00 00 00 BE [15:26:40]Write i2c OK [15:26:40]MH_I2C_Read... [15:26:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:26:40]Read from MH i2c: E2 [15:26:40]MH_I2C_Read... [15:26:40]Read from MH i2c: E2 03 00 [15:26:40]MH_I2C_Read... [15:26:40]Read from MH i2c: E2 03 00 BC 90 00 90 00 C0 [15:26:40]RAPDU: 90 00 [15:26:40]wFMCommunicate OK [15:26:40]SAM_PROTO_ClearQueue done [15:26:40]KKMCreateOFDPacket [15:26:40]OFDProtocolAddRootSTLVToBuf [15:26:40]FM_MakeSignedData [15:26:40]FM_MakeSignedData [15:26:40]SAM_PROTO_SignData [15:26:40]wFMCommunicate request_size=4 [15:26:40]MH_SAM_APDU [15:26:40]CAPDU: 80 0D 01 02 [15:26:40]Write to MH i2c: E2 08 00 BD 90 80 0D 01 02 00 00 00 00 C6 [15:26:40]Write i2c OK [15:26:40]MH_I2C_Read... [15:26:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:26:40]Read from MH i2c: E2 [15:26:40]MH_I2C_Read... [15:26:40]Read from MH i2c: E2 03 00 [15:26:40]MH_I2C_Read... [15:26:40]Read from MH i2c: E2 03 00 BD 90 00 90 00 C1 [15:26:40]RAPDU: 90 00 [15:26:40]wFMCommunicate OK [15:26:40]wFMCommunicate request_size=255 [15:26:40]MH_SAM_APDU [15:26: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 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 A2 00 00 00 F4 03 04 00 39 21 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 1D [15:26:40]Write to MH i2c: E2 02 01 BE 90 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 A2 00 00 00 F4 03 04 00 39 21 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 1D 00 00 5D [15:26:40]Write i2c OK [15:26:40]MH_I2C_Read... [15:26:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:26:40]Read from MH i2c: E2 [15:26:40]MH_I2C_Read... [15:26:40]Read from MH i2c: E2 03 00 [15:26:40]MH_I2C_Read... [15:26:40]Read from MH i2c: E2 03 00 BE 90 00 90 00 C2 [15:26:40]RAPDU: 90 00 [15:26:40]wFMCommunicate OK [15:26:40]wFMCommunicate request_size=10 [15:26:40]MH_SAM_APDU [15:26:40]CAPDU: 80 0D 02 02 05 6F FF 36 2D 5B [15:26:40]Write to MH i2c: E2 0D 00 BF 90 80 0D 02 02 05 00 6F FF 36 2D 5B 00 00 FF [15:26:40]Write i2c OK [15:26:40]MH_I2C_Read... [15:26:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:26:40]Read from MH i2c: E2 [15:26:40]MH_I2C_Read... [15:26:40]Read from MH i2c: E2 03 00 [15:26:40]MH_I2C_Read... [15:26:40]Read from MH i2c: E2 03 00 BF 90 00 90 00 C3 [15:26:40]RAPDU: 90 00 [15:26:40]wFMCommunicate OK [15:26:40]wFMCommunicate request_size=4 [15:26:40]MH_SAM_APDU [15:26:40]CAPDU: 80 0D 03 02 [15:26:40]Write to MH i2c: E2 08 00 C0 90 80 0D 03 02 00 00 00 00 CB [15:26:40]Write i2c OK [15:26:40]MH_I2C_Read... [15:26:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:26:40]Read from MH i2c: E2 [15:26:40]MH_I2C_Read... [15:26:40]Read from MH i2c: E2 0B 00 [15:26:40]MH_I2C_Read... [15:26:40]Read from MH i2c: E2 0B 00 C0 90 00 92 16 C9 BA EF AA DB 3A 90 00 A5 [15:26:40]RAPDU: 92 16 C9 BA EF AA DB 3A 90 00 [15:26:40]wFMCommunicate OK [15:26:40]SAM_PROTO_SignData done [15:26:40]FM_MakeSignedData done [15:26:40]CreateOFDProtocolMessage [15:26:40]wFMCommunicate request_size=4 [15:26:40]MH_SAM_APDU [15:26:40]CAPDU: 80 11 00 00 [15:26:40]Write to MH i2c: E2 08 00 C1 90 80 11 00 00 00 00 00 00 CB [15:26:40]Write i2c OK [15:26:40]MH_I2C_Read... [15:26:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:26:40]Read from MH i2c: E2 [15:26:40]MH_I2C_Read... [15:26:40]Read from MH i2c: E2 17 00 [15:26:40]MH_I2C_Read... [15:26:40]Read from MH i2c: E2 17 00 C1 90 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 19 [15:26:40]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:40]wFMCommunicate OK [15:26:40]CreateOFDProtocolMessage done [15:26:40]OFDSenderStorePacket 30380 [15:26:40]StoreOFDPacket docnum=30380 [15:26: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 49 16 07 01 6E 7F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 A2 00 00 00 F4 03 04 00 39 21 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 1D 6F FF 36 2D 5B 92 16 C9 BA EF AA DB 3A [15:26:40]CheckFolder [15:26:40]dirname=/storage/ofd_packets [15:26:40]CheckFolder done [15:26:40]ProducePacketName [15:26:40]name=ofd_packets/00030380 [15:26:40]NVStorageSaveData ofd_packets/00030380 [15:26:40]File name is /storage/ofd_packets/00030380 [15:26:40]Write 301 bytes [15:26:40]NVStorageSaveData done [15:26:40]OFDSenderStorePacket done [15:26:40]KKMCreateOFDPacket done [15:26:40]NVStorageSaveData kkm_last_timestamp [15:26:40]File name is /storage/kkm_last_timestamp [15:26:40]Write 4 bytes [15:26:40]NVStorageSaveData done [15:26:40]ExternCall_PrintAddStr [15:26:40]wPrintStart [15:26:40]Write to MH i2c: 01 00 00 C2 90 52 [15:26:40]Write i2c OK [15:26:40]MH_I2C_Read... [15:26:40]Read from MH i2c: 01 [15:26:40]MH_I2C_Read... [15:26:40]Read from MH i2c: 01 07 00 [15:26:40]MH_I2C_Read... [15:26:40]Read from MH i2c: 01 07 00 C2 90 00 00 00 00 00 FF 0F 67 [15:26:40]RasterBufferAndPrint [15:26:40]line Счет N : (1)342775 [15:26:40]line ИНН: 02508201610067 [15:26:40]line Контрольно-Кассовый Чек [15:26:40]line ПРОДАЖА [15:26:40]line ТРК (МРК, ГНК) : 33 [15:26:40]line Товар: 2710124130 [15:26:40]line Аи-92-К-2 [15:26:40]line 8.970 * 66.90 [15:26:40]line = 600.09 [15:26:40]line НДС 12% НСП 1% [15:26:40]line > о реализуемом товаре [15:26:40]line ОКРУГЛЕНИЕ: -0.09 [15:26:40]line ИТОГО: 600.00 [15:26:40]line Внесено: 600.00 [15:26:40]line СДАЧА: 0.00 [15:26:40]line НСП 1% : 5.31 [15:26:40]line НДС 12% : 63.73 [15:26:40]line Наличными: 600.00 [15:26:40]line Безнал.: 0.00 [15:26:40]line Место: АЗС № 78 "Партнер Нефть" [15:26:40]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [15:26:40]line СНО: Общий режим [15:26:40]line Чек 162 20.10.2024 15:26 [15:26:40]line Смена: 114 ФФД: 1.0 [15:26:40]line ЗНМ: 0300000137 [15:26:40]line РНМ: 0000000000186857 [15:26:40]line Версия ККМ: v1.0 [15:26:40]line ФМ: 0000000002094219 [15:26:40]line ФД: 30380 [15:26:40]line ФПД: 32366860315995 [15:26:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T152649&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30380&fm=32366860315995&tin=02508201610067®Number=0000000000186857&sum=60000 [15:26:41]OFD Sender: Processing packet 30380 [packets to send 10, broken 9] [15:26:41]ProducePacketName [15:26:41]name=ofd_packets/00030380 [15:26:41]OFD Sender: To server: pG, [15:26:41]CommunicateWithHost lk.salyk.kg:30040 [15:26:41]ConnectInit lk.salyk.kg [15:26:41]written 0, free lines is 4095 [15:26:41]Connected sock=10 [15:26: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 49 16 07 01 6E 7F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 A2 00 00 00 F4 03 04 00 39 21 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 1D 6F FF 36 2D 5B 92 16 C9 BA EF AA DB 3A [15:26: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 EA 0B 47 00 19 3F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 AC 76 00 00 F4 03 04 00 BC CB 14 67 B6 04 01 00 00 A0 E6 B8 25 F4 FA 3F DE [15:26:41]CommunicateWithHost err = 0 [15:26:41]CheckOFDResponse [15:26:41]1017 (14) - 77093643461234 [15:26:41]1041 (16) - 0000000002094219 [15:26:41]1040 (4) - 30380 [15:26:41]1012 (4) - 20.10.2024 09:22 [15:26:41]1206 (1) - 0 [15:26:41]OFD Sender: Remove packet 30380 [15:26:41]ProducePacketName [15:26:41]name=ofd_packets/00030380 [15:26:41]NVStorageDeleteData [15:26:41]Write to MH i2c: 01 00 00 ED 90 7D [15:26:41]Write i2c OK [15:26:41]MH_I2C_Read... [15:26:41]Read from MH i2c: 01 [15:26:41]MH_I2C_Read... [15:26:41]Read from MH i2c: 01 07 00 [15:26:41]MH_I2C_Read... [15:26:41]Read from MH i2c: 01 07 00 ED 90 00 00 00 00 00 06 0D 97 [15:26:41]RasterBufferAndPrint [15:26:41]line [15:26:41]line [15:26:41]line [15:26:41]line [15:26:41]line [15:26:41]written 0, free lines is 3340 [15:26:41]MH_Cut [15:26:41]Write to MH i2c: D1 01 00 F4 90 01 56 [15:26:41]Write i2c OK [15:26:41]MH_I2C_Read... [15:26:41]Read from MH i2c: D1 [15:26:41]MH_I2C_Read... [15:26:41]Read from MH i2c: D1 01 00 [15:26:41]MH_I2C_Read... [15:26:41]Read from MH i2c: D1 01 00 F4 90 00 55 [15:26:41]Write to MH i2c: 01 00 00 F5 90 85 [15:26:41]Write i2c OK [15:26:41]MH_I2C_Read... [15:26:42]OFD Sender: No OFD packet to send [15:26:42]*** Cut start [15:26:42]*** Partial cut [15:26:42]*** CUTSNS_PIN = 1 [15:26:42]*** CUTSNS_PIN = 0 [15:26:42]*** Brake cut motor [15:26:42]Read from MH i2c: 01 [15:26:42]MH_I2C_Read... [15:26:42]*** Stop cut motor [15:26:42]*** Cut end [15:26:42]Read from MH i2c: 01 07 00 [15:26:42]MH_I2C_Read... [15:26:42]Read from MH i2c: 01 07 00 F5 90 00 00 00 00 00 FF 0F 9A [15:26:42]process_action close_receipt done [15:26:42]requested_data is exist [15:26:42]produce_requested_data [15:26:42]requested_item fm.sn is exist - process it [15:26:42]wFMCommunicate request_size=4 [15:26:42]MH_SAM_APDU [15:26:42]CAPDU: 80 11 00 00 [15:26:42]Write to MH i2c: E2 08 00 F6 90 80 11 00 00 00 00 00 00 00 [15:26:42]Write i2c OK [15:26:42]MH_I2C_Read... [15:26:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:26:42]Read from MH i2c: E2 [15:26:42]MH_I2C_Read... [15:26:42]Read from MH i2c: E2 17 00 [15:26:42]MH_I2C_Read... [15:26:42]Read from MH i2c: E2 17 00 F6 90 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 4E [15:26: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:26:42]wFMCommunicate OK [15:26:42]requested_item fd.num is exist - process it [15:26:42]SAM_PROTO_GetFieldsCounters [15:26:42]wFMCommunicate request_size=4 [15:26:42]MH_SAM_APDU [15:26:42]CAPDU: 80 13 00 00 [15:26:42]Write to MH i2c: E2 08 00 F7 90 80 13 00 00 00 00 00 00 03 [15:26:42]Write i2c OK [15:26:42]MH_I2C_Read... [15:26:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:26:43]Read from MH i2c: E2 [15:26:43]MH_I2C_Read... [15:26:43]Read from MH i2c: E2 62 00 [15:26:43]MH_I2C_Read... [15:26:43]Read from MH i2c: E2 62 00 F7 90 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 A3 [15:26: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 AC 76 00 00 0E 04 04 00 72 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 [15:26:43]wFMCommunicate OK [15:26:43]SAM_PROTO_GetFieldsCounters done [15:26:43]requested_item shift.num is exist - process it [15:26:43]requested_item shift.opened is exist - process it [15:26:43]req_shift_opened [15:26:43]FM_GetShiftState [15:26:43]SAM_PROTO_GetShiftState [15:26:43]wFMCommunicate request_size=4 [15:26:43]MH_SAM_APDU [15:26:43]CAPDU: 80 13 01 00 [15:26:43]Write to MH i2c: E2 08 00 F8 90 80 13 01 00 00 00 00 00 05 [15:26:43]Write i2c OK [15:26:43]MH_I2C_Read... [15:26:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:26:43]Read from MH i2c: E2 [15:26:43]MH_I2C_Read... [15:26:43]Read from MH i2c: E2 0E 00 [15:26:43]MH_I2C_Read... [15:26:43]Read from MH i2c: E2 0E 00 F8 90 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 EB [15:26:43]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [15:26:43]wFMCommunicate OK [15:26:43]SAM_PROTO_GetShiftState done [15:26:43]FM_GetShiftState done [15:26:43]req_shift_opened done [15:26:43]requested_item shift.open_date is exist - process it [15:26:43]req_shift_open_date [15:26:43]req_shift_open_date done [15:26:43]produce_requested_data done [15:26:43]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30380,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [15:26:43]process_action_free close_receipt [15:26:43]json_value_free [15:26:43]json_value_free done [15:26:43]process_json_proto returns [15:26:43]Send response to host [15:26:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30380,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [15:26:43]free response buf [15:26:43]execute_script done [15:26:43]execute_script returns [15:26:43]free content buf [15:26:43]Sock 7.Close socket [15:26:43]Sock 7.Thread stoped [15:26:47]OFD Sender: No OFD packet to send [15:26:52]OFD Sender: No OFD packet to send [15:26:57]OFD Sender: No OFD packet to send [15:27:02]OFD Sender: No OFD packet to send [15:27:07]OFD Sender: No OFD packet to send [15:27:12]OFD Sender: No OFD packet to send [15:27:17]OFD Sender: No OFD packet to send [15:27:22]OFD Sender: No OFD packet to send [15:27:27]OFD Sender: No OFD packet to send [15:27:32]OFD Sender: No OFD packet to send [15:27:37]OFD Sender: No OFD packet to send [15:27:42]OFD Sender: No OFD packet to send [15:27:47]OFD Sender: No OFD packet to send [15:27:52]OFD Sender: No OFD packet to send [15:27:57]OFD Sender: No OFD packet to send [15:28:02]OFD Sender: No OFD packet to send [15:28:07]OFD Sender: No OFD packet to send [15:28:12]OFD Sender: No OFD packet to send [15:28:17]OFD Sender: No OFD packet to send [15:28:22]OFD Sender: No OFD packet to send [15:28:27]OFD Sender: No OFD packet to send [15:28:32]OFD Sender: No OFD packet to send [15:28:37]OFD Sender: No OFD packet to send [15:28:42]OFD Sender: No OFD packet to send [15:28:47]OFD Sender: No OFD packet to send [15:28:52]OFD Sender: No OFD packet to send [15:28:57]OFD Sender: No OFD packet to send [15:29:02]OFD Sender: No OFD packet to send [15:29:07]OFD Sender: No OFD packet to send [15:29:12]OFD Sender: No OFD packet to send [15:29:17]OFD Sender: No OFD packet to send [15:29:22]OFD Sender: No OFD packet to send [15:29:27]OFD Sender: No OFD packet to send [15:29:32]OFD Sender: No OFD packet to send [15:29:37]OFD Sender: No OFD packet to send [15:29:42]OFD Sender: No OFD packet to send [15:29:47]OFD Sender: No OFD packet to send [15:29:52]OFD Sender: No OFD packet to send [15:29:57]OFD Sender: No OFD packet to send [15:30:02]OFD Sender: No OFD packet to send [15:30:07]OFD Sender: No OFD packet to send [15:30:12]OFD Sender: No OFD packet to send [15:30:17]OFD Sender: No OFD packet to send [15:30:22]OFD Sender: No OFD packet to send [15:30:27]OFD Sender: No OFD packet to send [15:30:32]OFD Sender: No OFD packet to send [15:30:37]OFD Sender: No OFD packet to send [15:30:42]OFD Sender: No OFD packet to send [15:30:47]OFD Sender: No OFD packet to send [15:30:52]OFD Sender: No OFD packet to send [15:30:57]OFD Sender: No OFD packet to send [15:31:02]OFD Sender: No OFD packet to send [15:31:07]OFD Sender: No OFD packet to send [15:31:12]OFD Sender: No OFD packet to send [15:31:17]OFD Sender: No OFD packet to send [15:31:22]OFD Sender: No OFD packet to send [15:31:27]OFD Sender: No OFD packet to send [15:31:32]OFD Sender: No OFD packet to send [15:31:37]OFD Sender: No OFD packet to send [15:31:42]OFD Sender: No OFD packet to send [15:31:47]OFD Sender: No OFD packet to send [15:31:52]OFD Sender: No OFD packet to send [15:31:57]OFD Sender: No OFD packet to send [15:31:57]accept exits with 9 [15:31:57]New connection [15:31:57]New thread 3067370852 created [15:31:57]Thread 3067514212 joined [15:31:57]Waiting for new connection... [15:31:57] Sock 9.Parse request [15:31:57]Sock 9.Check first char [15:31:57]Sock 9.First char is OK [15:31:57]request: POST /json_proto HTTP/1.0 [15:31:57]Method: POST [15:31:57]URL: /json_proto [15:31:57]Method is POST - this is cgi request [15:31:57]url: /json_proto [15:31:57]query_string will be loaded in cgi processing [15:31:57]execute_cgi json_proto POST (null) [15:31:57]execute_cgi path=json_proto method=POST [15:31:57]POST find Content-Length [15:31:57]Host: 172.17.51.3:8080 [15:31:57]Content-Length: 677 [15:31:57]Content-Type: application/json [15:31:57] [15:31:57]POST finish read [15:31:57]Found Content-Length = 677 [15:31:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342776", "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:31:57]execute_script... [15:31: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)342776", "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:31:57]POST & json_proto [15:31:57]process_json_proto [15:31:57]json parsed OK: [15:31:57]protocol is kg_v1.0 [15:31:57]action value=close_receipt [15:31:57]process_action close_receipt [15:31:57]cmd_close_receipt [15:31:57]MH_GetDate [15:31:57]Write to MH i2c: F0 00 00 F9 90 78 [15:31:57]Write i2c OK [15:31:57]MH_I2C_Read... [15:31:57]Read from MH i2c: F0 [15:31:57]MH_I2C_Read... [15:31:57]Read from MH i2c: F0 09 00 [15:31:57]MH_I2C_Read... [15:31:57]Read from MH i2c: F0 09 00 F9 90 00 77 22 15 67 04 C1 95 66 56 [15:31:57]GetLastDocTimeStamp 1729438009 [15:31:57]current date 1729438327 [15:31:57]FM_GetShiftState [15:31:57]SAM_PROTO_GetShiftState [15:31:57]wFMCommunicate request_size=4 [15:31:57]MH_SAM_APDU [15:31:57]CAPDU: 80 13 01 00 [15:31:57]Write to MH i2c: E2 08 00 FA 90 80 13 01 00 00 00 00 00 07 [15:31:57]Write i2c OK [15:31:57]MH_I2C_Read... [15:31:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:31:57]Read from MH i2c: E2 [15:31:57]MH_I2C_Read... [15:31:57]Read from MH i2c: E2 0E 00 [15:31:57]MH_I2C_Read... [15:31:57]Read from MH i2c: E2 0E 00 FA 90 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 ED [15:31:57]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [15:31:57]wFMCommunicate OK [15:31:57]SAM_PROTO_GetShiftState done [15:31:57]FM_GetShiftState done [15:31:57]opened in 1729384718 [15:31:57]opened+sec_in_day 1729471118 [15:31:57]quantity*price = 50041 [15:31:57]sum+1 = 50042 [15:31: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 СНО: Общий режим Чек 163 20.10.2024 15:32 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30381 ФПД: 119612978217623 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T153207&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30381&fm=119612978217623&tin=02508201610067®Number=0000000000186857&sum=50000 [15:31:58]StoreToDocumentArchive [15:31:58]shift 114 fd 30381 [15:31:58]save to /storage/0114/doc_00030381 [15:31:58]save last doc name /storage/0114/doc_00030381 to /storage/kkm_last_doc_name [15:31:58]save OK [15:31:58]Clear old archive folders... [15:31:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:31:58]tlvbuf is 00AB9E60 [15:31:58]SAM_PROTO_ClearQueue [15:31:58]wFMCommunicate request_size=4 [15:31:58]MH_SAM_APDU [15:31:58]CAPDU: 80 09 00 00 [15:31:58]Write to MH i2c: E2 08 00 07 91 80 09 00 00 00 00 00 00 0A [15:31:58]Write i2c OK [15:31:58]MH_I2C_Read... [15:31:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:31:58]Read from MH i2c: E2 [15:31:58]MH_I2C_Read... [15:31:58]Read from MH i2c: E2 03 00 [15:31:58]MH_I2C_Read... [15:31:58]Read from MH i2c: E2 03 00 07 91 00 90 00 0C [15:31:58]RAPDU: 90 00 [15:31:58]wFMCommunicate OK [15:31:58]SAM_PROTO_ClearQueue done [15:31:58]KKMCreateOFDPacket [15:31:58]OFDProtocolAddRootSTLVToBuf [15:31:58]FM_MakeSignedData [15:31:58]FM_MakeSignedData [15:31:58]SAM_PROTO_SignData [15:31:58]wFMCommunicate request_size=4 [15:31:58]MH_SAM_APDU [15:31:58]CAPDU: 80 0D 01 02 [15:31:58]Write to MH i2c: E2 08 00 08 91 80 0D 01 02 00 00 00 00 12 [15:31:58]Write i2c OK [15:31:58]MH_I2C_Read... [15:31:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:31:58]Read from MH i2c: E2 [15:31:58]MH_I2C_Read... [15:31:58]Read from MH i2c: E2 03 00 [15:31:58]MH_I2C_Read... [15:31:58]Read from MH i2c: E2 03 00 08 91 00 90 00 0D [15:31:58]RAPDU: 90 00 [15:31:58]wFMCommunicate OK [15:31:58]wFMCommunicate request_size=255 [15:31:58]MH_SAM_APDU [15:31: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 A3 00 00 00 F4 03 04 00 77 22 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 6C [15:31:58]Write to MH i2c: E2 02 01 09 91 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 A3 00 00 00 F4 03 04 00 77 22 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 6C 00 00 5C [15:31:58]Write i2c OK [15:31:58]MH_I2C_Read... [15:31:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:31:58]Read from MH i2c: E2 [15:31:58]MH_I2C_Read... [15:31:58]Read from MH i2c: E2 03 00 [15:31:58]MH_I2C_Read... [15:31:58]Read from MH i2c: E2 03 00 09 91 00 90 00 0E [15:31:58]RAPDU: 90 00 [15:31:58]wFMCommunicate OK [15:31:58]wFMCommunicate request_size=10 [15:31:58]MH_SAM_APDU [15:31:58]CAPDU: 80 0D 02 02 05 C9 91 13 C2 97 [15:31:58]Write to MH i2c: E2 0D 00 0A 91 80 0D 02 02 05 00 C9 91 13 C2 97 00 00 E5 [15:31:58]Write i2c OK [15:31:58]MH_I2C_Read... [15:31:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:31:58]Read from MH i2c: E2 [15:31:58]MH_I2C_Read... [15:31:58]Read from MH i2c: E2 03 00 [15:31:58]MH_I2C_Read... [15:31:58]Read from MH i2c: E2 03 00 0A 91 00 90 00 0F [15:31:58]RAPDU: 90 00 [15:31:58]wFMCommunicate OK [15:31:58]wFMCommunicate request_size=4 [15:31:58]MH_SAM_APDU [15:31:58]CAPDU: 80 0D 03 02 [15:31:58]Write to MH i2c: E2 08 00 0B 91 80 0D 03 02 00 00 00 00 17 [15:31:58]Write i2c OK [15:31:58]MH_I2C_Read... [15:31:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:31:58]Read from MH i2c: E2 [15:31:58]MH_I2C_Read... [15:31:58]Read from MH i2c: E2 0B 00 [15:31:58]MH_I2C_Read... [15:31:58]Read from MH i2c: E2 0B 00 0B 91 00 97 08 1E BD 30 AF BF B6 90 00 E6 [15:31:58]RAPDU: 97 08 1E BD 30 AF BF B6 90 00 [15:31:58]wFMCommunicate OK [15:31:58]SAM_PROTO_SignData done [15:31:58]FM_MakeSignedData done [15:31:58]CreateOFDProtocolMessage [15:31:58]wFMCommunicate request_size=4 [15:31:58]MH_SAM_APDU [15:31:58]CAPDU: 80 11 00 00 [15:31:58]Write to MH i2c: E2 08 00 0C 91 80 11 00 00 00 00 00 00 17 [15:31:58]Write i2c OK [15:31:58]MH_I2C_Read... [15:31:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:31:59]Read from MH i2c: E2 [15:31:59]MH_I2C_Read... [15:31:59]Read from MH i2c: E2 17 00 [15:31:59]MH_I2C_Read... [15:31:59]Read from MH i2c: E2 17 00 0C 91 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:31:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [15:31:59]wFMCommunicate OK [15:31:59]CreateOFDProtocolMessage done [15:31:59]OFDSenderStorePacket 30381 [15:31:59]StoreOFDPacket docnum=30381 [15:31: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 EE 78 07 01 D2 96 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 A3 00 00 00 F4 03 04 00 77 22 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 6C C9 91 13 C2 97 97 08 1E BD 30 AF BF B6 [15:31:59]CheckFolder [15:31:59]dirname=/storage/ofd_packets [15:31:59]CheckFolder done [15:31:59]ProducePacketName [15:31:59]name=ofd_packets/00030381 [15:31:59]NVStorageSaveData ofd_packets/00030381 [15:31:59]File name is /storage/ofd_packets/00030381 [15:31:59]Write 301 bytes [15:31:59]NVStorageSaveData done [15:31:59]OFDSenderStorePacket done [15:31:59]KKMCreateOFDPacket done [15:31:59]NVStorageSaveData kkm_last_timestamp [15:31:59]File name is /storage/kkm_last_timestamp [15:31:59]Write 4 bytes [15:31:59]NVStorageSaveData done [15:31:59]ExternCall_PrintAddStr [15:31:59]wPrintStart [15:31:59]Write to MH i2c: 01 00 00 0D 91 9E [15:31:59]Write i2c OK [15:31:59]MH_I2C_Read... [15:31:59]Read from MH i2c: 01 [15:31:59]MH_I2C_Read... [15:31:59]Read from MH i2c: 01 07 00 [15:31:59]MH_I2C_Read... [15:31:59]Read from MH i2c: 01 07 00 0D 91 00 00 00 00 00 FF 0F B3 [15:31:59]RasterBufferAndPrint [15:31:59]line Счет N : (1)342776 [15:31:59]line ИНН: 02508201610067 [15:31:59]line Контрольно-Кассовый Чек [15:31:59]line ПРОДАЖА [15:31:59]line ТРК (МРК, ГНК) : 63 [15:31:59]line Товар: 2710124130 [15:31:59]line Аи-92-К-2 [15:31:59]line 7.480 * 66.90 [15:31:59]line = 500.41 [15:31:59]line НДС 12% НСП 1% [15:31:59]line > о реализуемом товаре [15:31:59]line ОКРУГЛЕНИЕ: -0.41 [15:31:59]line ИТОГО: 500.00 [15:31:59]line Внесено: 500.00 [15:31:59]line СДАЧА: 0.00 [15:31:59]line НСП 1% : 4.43 [15:31:59]line НДС 12% : 53.14 [15:31:59]line Наличными: 500.00 [15:31:59]line Безнал.: 0.00 [15:31:59]line Место: АЗС № 78 "Партнер Нефть" [15:31:59]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [15:31:59]line СНО: Общий режим [15:31:59]line Чек 163 20.10.2024 15:32 [15:31:59]line Смена: 114 ФФД: 1.0 [15:31:59]line ЗНМ: 0300000137 [15:31:59]line РНМ: 0000000000186857 [15:31:59]line Версия ККМ: v1.0 [15:31:59]line ФМ: 0000000002094219 [15:31:59]line ФД: 30381 [15:31:59]line ФПД: 119612978217623 [15:31:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T153207&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30381&fm=119612978217623&tin=02508201610067®Number=0000000000186857&sum=50000 [15:31:59]OFD Sender: Processing packet 30381 [packets to send 10, broken 9] [15:31:59]ProducePacketName [15:31:59]name=ofd_packets/00030381 [15:31:59]OFD Sender: To server: pG, [15:31:59]CommunicateWithHost lk.salyk.kg:30040 [15:31:59]ConnectInit lk.salyk.kg [15:31:59]written 0, free lines is 4095 [15:31:59]Connected sock=10 [15:31: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 EE 78 07 01 D2 96 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 A3 00 00 00 F4 03 04 00 77 22 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 6C C9 91 13 C2 97 97 08 1E BD 30 AF BF B6 [15:31: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 D8 5F 47 00 1E 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 AD 76 00 00 F4 03 04 00 FA CC 14 67 B6 04 01 00 00 AB D7 EF 3E 37 D6 4B 60 [15:31:59]CommunicateWithHost err = 0 [15:31:59]CheckOFDResponse [15:31:59]1017 (14) - 77093643461234 [15:31:59]1041 (16) - 0000000002094219 [15:31:59]1040 (4) - 30381 [15:31:59]1012 (4) - 20.10.2024 09:27 [15:31:59]1206 (1) - 0 [15:31:59]OFD Sender: Remove packet 30381 [15:31:59]ProducePacketName [15:31:59]name=ofd_packets/00030381 [15:31:59]NVStorageDeleteData [15:31:59]Write to MH i2c: 01 00 00 38 91 C9 [15:31:59]Write i2c OK [15:31:59]MH_I2C_Read... [15:31:59]Read from MH i2c: 01 [15:31:59]MH_I2C_Read... [15:31:59]Read from MH i2c: 01 07 00 [15:31:59]MH_I2C_Read... [15:31:59]Read from MH i2c: 01 07 00 38 91 00 00 00 00 00 F6 0C D2 [15:31:59]RasterBufferAndPrint [15:31:59]line [15:31:59]line [15:31:59]line [15:31:59]line [15:31:59]line [15:31:59]written 0, free lines is 3328 [15:31:59]MH_Cut [15:31:59]Write to MH i2c: D1 01 00 3F 91 01 A2 [15:31:59]Write i2c OK [15:31:59]MH_I2C_Read... [15:31:59]Read from MH i2c: D1 [15:31:59]MH_I2C_Read... [15:31:59]Read from MH i2c: D1 01 00 [15:31:59]MH_I2C_Read... [15:31:59]Read from MH i2c: D1 01 00 3F 91 00 A1 [15:31:59]Write to MH i2c: 01 00 00 40 91 D1 [15:31:59]Write i2c OK [15:31:59]MH_I2C_Read... [15:32:00]OFD Sender: No OFD packet to send [15:32:00]*** Cut start [15:32:00]*** Partial cut [15:32:00]*** CUTSNS_PIN = 1 [15:32:00]*** CUTSNS_PIN = 0 [15:32:00]*** Brake cut motor [15:32:01]Read from MH i2c: 01 [15:32:01]MH_I2C_Read... [15:32:01]*** Stop cut motor [15:32:01]*** Cut end [15:32:01]Read from MH i2c: 01 07 00 [15:32:01]MH_I2C_Read... [15:32:01]Read from MH i2c: 01 07 00 40 91 00 00 00 00 00 FF 0F E6 [15:32:01]process_action close_receipt done [15:32:01]requested_data is exist [15:32:01]produce_requested_data [15:32:01]requested_item fm.sn is exist - process it [15:32:01]wFMCommunicate request_size=4 [15:32:01]MH_SAM_APDU [15:32:01]CAPDU: 80 11 00 00 [15:32:01]Write to MH i2c: E2 08 00 41 91 80 11 00 00 00 00 00 00 4C [15:32:01]Write i2c OK [15:32:01]MH_I2C_Read... [15:32:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:32:01]Read from MH i2c: E2 [15:32:01]MH_I2C_Read... [15:32:01]Read from MH i2c: E2 17 00 [15:32:01]MH_I2C_Read... [15:32:01]Read from MH i2c: E2 17 00 41 91 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 9A [15:32: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:32:01]wFMCommunicate OK [15:32:01]requested_item fd.num is exist - process it [15:32:01]SAM_PROTO_GetFieldsCounters [15:32:01]wFMCommunicate request_size=4 [15:32:01]MH_SAM_APDU [15:32:01]CAPDU: 80 13 00 00 [15:32:01]Write to MH i2c: E2 08 00 42 91 80 13 00 00 00 00 00 00 4F [15:32:01]Write i2c OK [15:32:01]MH_I2C_Read... [15:32:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:32:01]Read from MH i2c: E2 [15:32:01]MH_I2C_Read... [15:32:01]Read from MH i2c: E2 62 00 [15:32:01]MH_I2C_Read... [15:32:01]Read from MH i2c: E2 62 00 42 91 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 F3 [15:32: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 AD 76 00 00 0E 04 04 00 72 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 [15:32:01]wFMCommunicate OK [15:32:01]SAM_PROTO_GetFieldsCounters done [15:32:01]requested_item shift.num is exist - process it [15:32:01]requested_item shift.opened is exist - process it [15:32:01]req_shift_opened [15:32:01]FM_GetShiftState [15:32:01]SAM_PROTO_GetShiftState [15:32:01]wFMCommunicate request_size=4 [15:32:01]MH_SAM_APDU [15:32:01]CAPDU: 80 13 01 00 [15:32:01]Write to MH i2c: E2 08 00 43 91 80 13 01 00 00 00 00 00 51 [15:32:01]Write i2c OK [15:32:01]MH_I2C_Read... [15:32:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:32:01]Read from MH i2c: E2 [15:32:01]MH_I2C_Read... [15:32:01]Read from MH i2c: E2 0E 00 [15:32:01]MH_I2C_Read... [15:32:01]Read from MH i2c: E2 0E 00 43 91 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 37 [15:32:01]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [15:32:01]wFMCommunicate OK [15:32:01]SAM_PROTO_GetShiftState done [15:32:01]FM_GetShiftState done [15:32:01]req_shift_opened done [15:32:01]requested_item shift.open_date is exist - process it [15:32:01]req_shift_open_date [15:32:01]req_shift_open_date done [15:32:01]produce_requested_data done [15:32:01]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30381,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [15:32:01]process_action_free close_receipt [15:32:01]json_value_free [15:32:01]json_value_free done [15:32:01]process_json_proto returns [15:32:01]Send response to host [15:32:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30381,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [15:32:01]free response buf [15:32:01]execute_script done [15:32:01]execute_script returns [15:32:01]free content buf [15:32:01]Sock 9.Close socket [15:32:01]Sock 9.Thread stoped [15:32:05]OFD Sender: No OFD packet to send [15:32:10]OFD Sender: No OFD packet to send [15:32:15]OFD Sender: No OFD packet to send [15:32:19]accept exits with 7 [15:32:19]New connection [15:32:19]New thread 3067514212 created [15:32:19]Thread 3067370852 joined [15:32:19]Waiting for new connection... [15:32:19] Sock 7.Parse request [15:32:19]Sock 7.Check first char [15:32:19]Sock 7.First char is OK [15:32:19]request: POST /json_proto HTTP/1.0 [15:32:19]Method: POST [15:32:19]URL: /json_proto [15:32:19]Method is POST - this is cgi request [15:32:19]url: /json_proto [15:32:19]query_string will be loaded in cgi processing [15:32:19]execute_cgi json_proto POST (null) [15:32:19]execute_cgi path=json_proto method=POST [15:32:19]POST find Content-Length [15:32:19]Host: 172.17.51.3:8080 [15:32:19]Content-Length: 677 [15:32:19]Content-Type: application/json [15:32:19] [15:32:19]POST finish read [15:32:19]Found Content-Length = 677 [15:32:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342777", "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" ] } } [15:32:19]execute_script... [15: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)342777", "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" ] } } [15:32:19]POST & json_proto [15:32:19]process_json_proto [15:32:19]json parsed OK: [15:32:19]protocol is kg_v1.0 [15:32:19]action value=close_receipt [15:32:19]process_action close_receipt [15:32:19]cmd_close_receipt [15:32:19]MH_GetDate [15:32:19]Write to MH i2c: F0 00 00 44 91 C4 [15:32:19]Write i2c OK [15:32:19]MH_I2C_Read... [15:32:19]Read from MH i2c: F0 [15:32:19]MH_I2C_Read... [15:32:19]Read from MH i2c: F0 09 00 [15:32:19]MH_I2C_Read... [15:32:19]Read from MH i2c: F0 09 00 44 91 00 8D 22 15 67 04 C1 95 66 B8 [15:32:19]GetLastDocTimeStamp 1729438327 [15:32:19]current date 1729438349 [15:32:19]FM_GetShiftState [15:32:19]SAM_PROTO_GetShiftState [15:32:19]wFMCommunicate request_size=4 [15:32:19]MH_SAM_APDU [15:32:19]CAPDU: 80 13 01 00 [15:32:19]Write to MH i2c: E2 08 00 45 91 80 13 01 00 00 00 00 00 53 [15:32:19]Write i2c OK [15:32:19]MH_I2C_Read... [15:32:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:32:19]Read from MH i2c: E2 [15:32:19]MH_I2C_Read... [15:32:19]Read from MH i2c: E2 0E 00 [15:32:19]MH_I2C_Read... [15:32:19]Read from MH i2c: E2 0E 00 45 91 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 39 [15:32:19]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [15:32:19]wFMCommunicate OK [15:32:19]SAM_PROTO_GetShiftState done [15:32:19]FM_GetShiftState done [15:32:19]opened in 1729384718 [15:32:19]opened+sec_in_day 1729471118 [15:32:19]quantity*price = 60009 [15:32:19]sum+1 = 60010 [15:32:19]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 СНО: Общий режим Чек 164 20.10.2024 15:32 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30382 ФПД: 56331353005441 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T153229&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30382&fm=56331353005441&tin=02508201610067®Number=0000000000186857&sum=60000 [15:32:20]StoreToDocumentArchive [15:32:20]shift 114 fd 30382 [15:32:20]save to /storage/0114/doc_00030382 [15:32:20]save last doc name /storage/0114/doc_00030382 to /storage/kkm_last_doc_name [15:32:20]save OK [15:32:20]Clear old archive folders... [15:32:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:32:20]tlvbuf is 00B85DE0 [15:32:20]SAM_PROTO_ClearQueue [15:32:20]wFMCommunicate request_size=4 [15:32:20]MH_SAM_APDU [15:32:20]CAPDU: 80 09 00 00 [15:32:20]Write to MH i2c: E2 08 00 52 91 80 09 00 00 00 00 00 00 55 [15:32:20]Write i2c OK [15:32:20]MH_I2C_Read... [15:32:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:32:20]Read from MH i2c: E2 [15:32:20]MH_I2C_Read... [15:32:20]Read from MH i2c: E2 03 00 [15:32:20]MH_I2C_Read... [15:32:20]Read from MH i2c: E2 03 00 52 91 00 90 00 57 [15:32:20]RAPDU: 90 00 [15:32:20]wFMCommunicate OK [15:32:20]SAM_PROTO_ClearQueue done [15:32:20]KKMCreateOFDPacket [15:32:20]OFDProtocolAddRootSTLVToBuf [15:32:20]FM_MakeSignedData [15:32:20]FM_MakeSignedData [15:32:20]SAM_PROTO_SignData [15:32:20]wFMCommunicate request_size=4 [15:32:20]MH_SAM_APDU [15:32:20]CAPDU: 80 0D 01 02 [15:32:20]Write to MH i2c: E2 08 00 53 91 80 0D 01 02 00 00 00 00 5D [15:32:20]Write i2c OK [15:32:20]MH_I2C_Read... [15:32:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:32:20]Read from MH i2c: E2 [15:32:20]MH_I2C_Read... [15:32:20]Read from MH i2c: E2 03 00 [15:32:20]MH_I2C_Read... [15:32:20]Read from MH i2c: E2 03 00 53 91 00 90 00 58 [15:32:20]RAPDU: 90 00 [15:32:20]wFMCommunicate OK [15:32:20]wFMCommunicate request_size=255 [15:32:20]MH_SAM_APDU [15:32:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 A4 00 00 00 F4 03 04 00 8D 22 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 33 [15:32:20]Write to MH i2c: E2 02 01 54 91 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 A4 00 00 00 F4 03 04 00 8D 22 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 33 00 00 63 [15:32:20]Write i2c OK [15:32:20]MH_I2C_Read... [15:32:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:32:21]Read from MH i2c: E2 [15:32:21]MH_I2C_Read... [15:32:21]Read from MH i2c: E2 03 00 [15:32:21]MH_I2C_Read... [15:32:21]Read from MH i2c: E2 03 00 54 91 00 90 00 59 [15:32:21]RAPDU: 90 00 [15:32:21]wFMCommunicate OK [15:32:21]wFMCommunicate request_size=10 [15:32:21]MH_SAM_APDU [15:32:21]CAPDU: 80 0D 02 02 05 3B AA 49 1D 81 [15:32:21]Write to MH i2c: E2 0D 00 55 91 80 0D 02 02 05 00 3B AA 49 1D 81 00 00 36 [15:32:21]Write i2c OK [15:32:21]MH_I2C_Read... [15:32:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:32:21]Read from MH i2c: E2 [15:32:21]MH_I2C_Read... [15:32:21]Read from MH i2c: E2 03 00 [15:32:21]MH_I2C_Read... [15:32:21]Read from MH i2c: E2 03 00 55 91 00 90 00 5A [15:32:21]RAPDU: 90 00 [15:32:21]wFMCommunicate OK [15:32:21]wFMCommunicate request_size=4 [15:32:21]MH_SAM_APDU [15:32:21]CAPDU: 80 0D 03 02 [15:32:21]Write to MH i2c: E2 08 00 56 91 80 0D 03 02 00 00 00 00 62 [15:32:21]Write i2c OK [15:32:21]MH_I2C_Read... [15:32:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:32:21]Read from MH i2c: E2 [15:32:21]MH_I2C_Read... [15:32:21]Read from MH i2c: E2 0B 00 [15:32:21]MH_I2C_Read... [15:32:21]Read from MH i2c: E2 0B 00 56 91 00 BB D6 FC DB A1 FC 52 C2 90 00 7C [15:32:21]RAPDU: BB D6 FC DB A1 FC 52 C2 90 00 [15:32:21]wFMCommunicate OK [15:32:21]SAM_PROTO_SignData done [15:32:21]FM_MakeSignedData done [15:32:21]CreateOFDProtocolMessage [15:32:21]wFMCommunicate request_size=4 [15:32:21]MH_SAM_APDU [15:32:21]CAPDU: 80 11 00 00 [15:32:21]Write to MH i2c: E2 08 00 57 91 80 11 00 00 00 00 00 00 62 [15:32:21]Write i2c OK [15:32:21]MH_I2C_Read... [15:32:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:32:21]Read from MH i2c: E2 [15:32:21]MH_I2C_Read... [15:32:21]Read from MH i2c: E2 17 00 [15:32:21]MH_I2C_Read... [15:32:21]Read from MH i2c: E2 17 00 57 91 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 B0 [15: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 [15:32:21]wFMCommunicate OK [15:32:21]CreateOFDProtocolMessage done [15:32:21]OFDSenderStorePacket 30382 [15:32:21]StoreOFDPacket docnum=30382 [15: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 E1 FA 07 01 1F 29 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 A4 00 00 00 F4 03 04 00 8D 22 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 33 3B AA 49 1D 81 BB D6 FC DB A1 FC 52 C2 [15:32:21]CheckFolder [15:32:21]dirname=/storage/ofd_packets [15:32:21]CheckFolder done [15:32:21]ProducePacketName [15:32:21]name=ofd_packets/00030382 [15:32:21]NVStorageSaveData ofd_packets/00030382 [15:32:21]File name is /storage/ofd_packets/00030382 [15:32:21]Write 301 bytes [15:32:21]NVStorageSaveData done [15:32:21]OFDSenderStorePacket done [15:32:21]KKMCreateOFDPacket done [15:32:21]NVStorageSaveData kkm_last_timestamp [15:32:21]File name is /storage/kkm_last_timestamp [15:32:21]Write 4 bytes [15:32:21]NVStorageSaveData done [15:32:21]ExternCall_PrintAddStr [15:32:21]wPrintStart [15:32:21]Write to MH i2c: 01 00 00 58 91 E9 [15:32:21]Write i2c OK [15:32:21]MH_I2C_Read... [15:32:21]Read from MH i2c: 01 [15:32:21]MH_I2C_Read... [15:32:21]Read from MH i2c: 01 07 00 [15:32:21]MH_I2C_Read... [15:32:21]Read from MH i2c: 01 07 00 58 91 00 00 00 00 00 FF 0F FE [15:32:21]RasterBufferAndPrint [15:32:21]line Счет N : (1)342777 [15:32:21]line ИНН: 02508201610067 [15:32:21]line Контрольно-Кассовый Чек [15:32:21]line ПРОДАЖА [15:32:21]line ТРК (МРК, ГНК) : 33 [15:32:21]line Товар: 2710124130 [15:32:21]line Аи-92-К-2 [15:32:21]line 8.970 * 66.90 [15:32:21]line = 600.09 [15:32:21]line НДС 12% НСП 1% [15:32:21]line > о реализуемом товаре [15:32:21]line ОКРУГЛЕНИЕ: -0.09 [15:32:21]line ИТОГО: 600.00 [15:32:21]line Внесено: 600.00 [15:32:21]line СДАЧА: 0.00 [15:32:21]line НСП 1% : 5.31 [15:32:21]line НДС 12% : 63.73 [15:32:21]line Наличными: 600.00 [15:32:21]line Безнал.: 0.00 [15:32:21]line Место: АЗС № 78 "Партнер Нефть" [15:32:21]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [15:32:21]line СНО: Общий режим [15:32:21]line Чек 164 20.10.2024 15:32 [15:32:21]line Смена: 114 ФФД: 1.0 [15:32:21]line ЗНМ: 0300000137 [15:32:21]line РНМ: 0000000000186857 [15:32:21]line Версия ККМ: v1.0 [15:32:21]line ФМ: 0000000002094219 [15:32:21]line ФД: 30382 [15:32:21]line ФПД: 56331353005441 [15:32:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T153229&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30382&fm=56331353005441&tin=02508201610067®Number=0000000000186857&sum=60000 [15:32:21]OFD Sender: Processing packet 30382 [packets to send 10, broken 9] [15:32:21]ProducePacketName [15:32:21]name=ofd_packets/00030382 [15:32:21]OFD Sender: To server: pG, [15:32:21]CommunicateWithHost lk.salyk.kg:30040 [15:32:21]ConnectInit lk.salyk.kg [15:32:21]written 0, free lines is 4095 [15:32:21]Connected sock=10 [15:32: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 E1 FA 07 01 1F 29 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 A4 00 00 00 F4 03 04 00 8D 22 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 33 3B AA 49 1D 81 BB D6 FC DB A1 FC 52 C2 [15:32: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 E6 BC 47 00 39 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 AE 76 00 00 F4 03 04 00 11 CD 14 67 B6 04 01 00 00 81 98 2B 29 16 C1 F2 B8 [15:32:21]CommunicateWithHost err = 0 [15:32:21]CheckOFDResponse [15:32:21]1017 (14) - 77093643461234 [15:32:21]1041 (16) - 0000000002094219 [15:32:21]1040 (4) - 30382 [15:32:21]1012 (4) - 20.10.2024 09:27 [15:32:21]1206 (1) - 0 [15:32:21]OFD Sender: Remove packet 30382 [15:32:21]ProducePacketName [15:32:21]name=ofd_packets/00030382 [15:32:21]NVStorageDeleteData [15:32:22]Write to MH i2c: 01 00 00 83 91 14 [15:32:22]Write i2c OK [15:32:22]MH_I2C_Read... [15:32:22]Read from MH i2c: 01 [15:32:22]MH_I2C_Read... [15:32:22]Read from MH i2c: 01 07 00 [15:32:22]MH_I2C_Read... [15:32:22]Read from MH i2c: 01 07 00 83 91 00 00 00 00 00 F3 0C 1A [15:32:22]RasterBufferAndPrint [15:32:22]line [15:32:22]line [15:32:22]line [15:32:22]line [15:32:22]line [15:32:22]written 0, free lines is 3321 [15:32:22]MH_Cut [15:32:22]Write to MH i2c: D1 01 00 8A 91 01 ED [15:32:22]Write i2c OK [15:32:22]MH_I2C_Read... [15:32:22]Read from MH i2c: D1 [15:32:22]MH_I2C_Read... [15:32:22]Read from MH i2c: D1 01 00 [15:32:22]MH_I2C_Read... [15:32:22]Read from MH i2c: D1 01 00 8A 91 00 EC [15:32:22]Write to MH i2c: 01 00 00 8B 91 1C [15:32:22]Write i2c OK [15:32:22]MH_I2C_Read... [15:32:22]OFD Sender: No OFD packet to send [15:32:22]*** Cut start [15:32:22]*** Partial cut [15:32:22]*** CUTSNS_PIN = 1 [15:32:22]*** CUTSNS_PIN = 0 [15:32:22]*** Brake cut motor [15:32:23]Read from MH i2c: 01 [15:32:23]MH_I2C_Read... [15:32:23]*** Stop cut motor [15:32:23]*** Cut end [15:32:23]Read from MH i2c: 01 07 00 [15:32:23]MH_I2C_Read... [15:32:23]Read from MH i2c: 01 07 00 8B 91 00 00 00 00 00 FF 0F 31 [15:32:23]process_action close_receipt done [15:32:23]requested_data is exist [15:32:23]produce_requested_data [15:32:23]requested_item fm.sn is exist - process it [15:32:23]wFMCommunicate request_size=4 [15:32:23]MH_SAM_APDU [15:32:23]CAPDU: 80 11 00 00 [15:32:23]Write to MH i2c: E2 08 00 8C 91 80 11 00 00 00 00 00 00 97 [15:32:23]Write i2c OK [15:32:23]MH_I2C_Read... [15:32:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:32:23]Read from MH i2c: E2 [15:32:23]MH_I2C_Read... [15:32:23]Read from MH i2c: E2 17 00 [15:32:23]MH_I2C_Read... [15:32:23]Read from MH i2c: E2 17 00 8C 91 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 E5 [15: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 [15:32:23]wFMCommunicate OK [15:32:23]requested_item fd.num is exist - process it [15:32:23]SAM_PROTO_GetFieldsCounters [15:32:23]wFMCommunicate request_size=4 [15:32:23]MH_SAM_APDU [15:32:23]CAPDU: 80 13 00 00 [15:32:23]Write to MH i2c: E2 08 00 8D 91 80 13 00 00 00 00 00 00 9A [15:32:23]Write i2c OK [15:32:23]MH_I2C_Read... [15:32:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:32:23]Read from MH i2c: E2 [15:32:23]MH_I2C_Read... [15:32:23]Read from MH i2c: E2 62 00 [15:32:23]MH_I2C_Read... [15:32:23]Read from MH i2c: E2 62 00 8D 91 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 42 [15: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 AE 76 00 00 0E 04 04 00 72 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 [15:32:23]wFMCommunicate OK [15:32:23]SAM_PROTO_GetFieldsCounters done [15:32:23]requested_item shift.num is exist - process it [15:32:23]requested_item shift.opened is exist - process it [15:32:23]req_shift_opened [15:32:23]FM_GetShiftState [15:32:23]SAM_PROTO_GetShiftState [15:32:23]wFMCommunicate request_size=4 [15:32:23]MH_SAM_APDU [15:32:23]CAPDU: 80 13 01 00 [15:32:23]Write to MH i2c: E2 08 00 8E 91 80 13 01 00 00 00 00 00 9C [15:32:23]Write i2c OK [15:32:23]MH_I2C_Read... [15:32:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:32:23]Read from MH i2c: E2 [15:32:23]MH_I2C_Read... [15:32:23]Read from MH i2c: E2 0E 00 [15:32:23]MH_I2C_Read... [15:32:23]Read from MH i2c: E2 0E 00 8E 91 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 82 [15:32:23]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [15:32:23]wFMCommunicate OK [15:32:23]SAM_PROTO_GetShiftState done [15:32:23]FM_GetShiftState done [15:32:23]req_shift_opened done [15:32:23]requested_item shift.open_date is exist - process it [15:32:23]req_shift_open_date [15:32:23]req_shift_open_date done [15:32:23]produce_requested_data done [15:32:23]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30382,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [15:32:23]process_action_free close_receipt [15:32:23]json_value_free [15:32:23]json_value_free done [15:32:23]process_json_proto returns [15:32:23]Send response to host [15:32:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30382,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [15:32:23]free response buf [15:32:23]execute_script done [15:32:23]execute_script returns [15:32:23]free content buf [15:32:23]Sock 7.Close socket [15:32:23]Sock 7.Thread stoped [15:32:27]OFD Sender: No OFD packet to send [15:32:32]OFD Sender: No OFD packet to send [15:32:37]OFD Sender: No OFD packet to send [15:32:42]OFD Sender: No OFD packet to send [15:32:47]OFD Sender: No OFD packet to send [15:32:52]OFD Sender: No OFD packet to send [15:32:57]OFD Sender: No OFD packet to send [15:33:02]OFD Sender: No OFD packet to send [15:33:07]OFD Sender: No OFD packet to send [15:33:12]OFD Sender: No OFD packet to send [15:33:17]OFD Sender: No OFD packet to send [15:33:22]OFD Sender: No OFD packet to send [15:33:27]OFD Sender: No OFD packet to send [15:33:32]OFD Sender: No OFD packet to send [15:33:37]OFD Sender: No OFD packet to send [15:33:42]OFD Sender: No OFD packet to send [15:33:47]OFD Sender: No OFD packet to send [15:33:52]OFD Sender: No OFD packet to send [15:33:57]OFD Sender: No OFD packet to send [15:34:02]OFD Sender: No OFD packet to send [15:34:07]OFD Sender: No OFD packet to send [15:34:12]OFD Sender: No OFD packet to send [15:34:17]OFD Sender: No OFD packet to send [15:34:22]OFD Sender: No OFD packet to send [15:34:27]OFD Sender: No OFD packet to send [15:34:32]OFD Sender: No OFD packet to send [15:34:37]OFD Sender: No OFD packet to send [15:34:42]OFD Sender: No OFD packet to send [15:34:47]OFD Sender: No OFD packet to send [15:34:52]OFD Sender: No OFD packet to send [15:34:57]OFD Sender: No OFD packet to send [15:35:02]OFD Sender: No OFD packet to send [15:35:07]OFD Sender: No OFD packet to send [15:35:12]OFD Sender: No OFD packet to send [15:35:17]OFD Sender: No OFD packet to send [15:35:22]OFD Sender: No OFD packet to send [15:35:27]OFD Sender: No OFD packet to send [15:35:32]OFD Sender: No OFD packet to send [15:35:37]OFD Sender: No OFD packet to send [15:35:42]OFD Sender: No OFD packet to send [15:35:47]OFD Sender: No OFD packet to send [15:35:52]OFD Sender: No OFD packet to send [15:35:57]OFD Sender: No OFD packet to send [15:36:02]OFD Sender: No OFD packet to send [15:36:07]OFD Sender: No OFD packet to send [15:36:12]OFD Sender: No OFD packet to send [15:36:17]OFD Sender: No OFD packet to send [15:36:22]OFD Sender: No OFD packet to send [15:36:27]OFD Sender: No OFD packet to send [15:36:32]OFD Sender: No OFD packet to send [15:36:37]OFD Sender: No OFD packet to send [15:36:42]OFD Sender: No OFD packet to send [15:36:47]OFD Sender: No OFD packet to send [15:36:52]OFD Sender: No OFD packet to send [15:36:57]OFD Sender: No OFD packet to send [15:37:02]OFD Sender: No OFD packet to send [15:37:07]OFD Sender: No OFD packet to send [15:37:12]OFD Sender: No OFD packet to send [15:37:17]OFD Sender: No OFD packet to send [15:37:22]OFD Sender: No OFD packet to send [15:37:27]OFD Sender: No OFD packet to send [15:37:32]OFD Sender: No OFD packet to send [15:37:37]OFD Sender: No OFD packet to send [15:37:42]OFD Sender: No OFD packet to send [15:37:47]OFD Sender: No OFD packet to send [15:37:52]OFD Sender: No OFD packet to send [15:37:57]OFD Sender: No OFD packet to send [15:38:02]int [15:38:02]Write to MH i2c: 01 00 00 8F 91 20 [15:38:02]*** FLAG_PRN_PAP1 set [15:38:02]Write i2c OK [15:38:02]MH_I2C_Read... [15:38:02]Read from MH i2c: 01 [15:38:02]MH_I2C_Read... [15:38:02]Read from MH i2c: 01 07 00 [15:38:02]MH_I2C_Read... [15:38:02]Read from MH i2c: 01 07 00 8F 91 00 01 00 00 00 FF 0F 36 [15:38:02]state=0 [15:38:02]No paper [15:38:02]int [15:38:02]Write to MH i2c: 01 00 00 90 91 21 [15:38:02]*** FLAG_PRN_PAP2 set [15:38:02]Write i2c OK [15:38:02]MH_I2C_Read... [15:38:02]Read from MH i2c: 01 [15:38:02]MH_I2C_Read... [15:38:02]Read from MH i2c: 01 07 00 [15:38:02]MH_I2C_Read... [15:38:02]Read from MH i2c: 01 07 00 90 91 00 03 00 00 00 FF 0F 39 [15:38:02]state=0 [15:38:02]No paper [15:38:02]Cover opened [15:38:02]OFD Sender: No OFD packet to send [15:38:07]Write to MH i2c: 01 00 00 91 91 22 [15:38:07]Write i2c OK [15:38:07]MH_I2C_Read... [15:38:07]Read from MH i2c: 01 [15:38:07]MH_I2C_Read... [15:38:07]Read from MH i2c: 01 07 00 [15:38:07]MH_I2C_Read... [15:38:07]Read from MH i2c: 01 07 00 91 91 00 03 00 00 00 FF 0F 3A [15:38:07]state=3 [15:38:07]No paper [15:38:07]Cover opened [15:38:07]OFD Sender: No OFD packet to send [15:38:12]Write to MH i2c: 01 00 00 92 91 23 [15:38:12]Write i2c OK [15:38:12]MH_I2C_Read... [15:38:12]Read from MH i2c: 01 [15:38:12]MH_I2C_Read... [15:38:12]Read from MH i2c: 01 07 00 [15:38:12]MH_I2C_Read... [15:38:12]Read from MH i2c: 01 07 00 92 91 00 03 00 00 00 FF 0F 3B [15:38:12]state=3 [15:38:12]No paper [15:38:12]Cover opened [15:38:12]OFD Sender: No OFD packet to send [15:38:17]Write to MH i2c: 01 00 00 93 91 24 [15:38:17]Write i2c OK [15:38:17]MH_I2C_Read... [15:38:17]Read from MH i2c: 01 [15:38:17]MH_I2C_Read... [15:38:17]Read from MH i2c: 01 07 00 [15:38:17]MH_I2C_Read... [15:38:17]Read from MH i2c: 01 07 00 93 91 00 03 00 00 00 FF 0F 3C [15:38:17]state=3 [15:38:17]No paper [15:38:17]Cover opened [15:38:17]OFD Sender: No OFD packet to send [15:38:22]Write to MH i2c: 01 00 00 94 91 25 [15:38:22]Write i2c OK [15:38:22]MH_I2C_Read... [15:38:22]Read from MH i2c: 01 [15:38:22]MH_I2C_Read... [15:38:22]Read from MH i2c: 01 07 00 [15:38:22]MH_I2C_Read... [15:38:22]Read from MH i2c: 01 07 00 94 91 00 03 00 00 00 FF 0F 3D [15:38:22]state=3 [15:38:22]No paper [15:38:22]Cover opened [15:38:22]OFD Sender: No OFD packet to send [15:38:26]int [15:38:26]Write to MH i2c: 01 00 00 95 91 26 [15:38:26]*** FLAG_PRN_PAP1 reset [15:38:26]*** FLAG_PRN_PAP2 reset [15:38:26]Write i2c OK [15:38:26]MH_I2C_Read... [15:38:26]Read from MH i2c: 01 [15:38:26]MH_I2C_Read... [15:38:26]Read from MH i2c: 01 07 00 [15:38:26]MH_I2C_Read... [15:38:26]Read from MH i2c: 01 07 00 95 91 00 00 00 00 00 FF 0F 3B [15:38:26]state=3 [15:38:26]Cover closed [15:38:27]OFD Sender: No OFD packet to send [15:38:28]accept exits with 9 [15:38:28]New connection [15:38:28]New thread 3067370852 created [15:38:28]Thread 3067514212 joined [15:38:28]Waiting for new connection... [15:38:28] Sock 9.Parse request [15:38:28]Sock 9.Check first char [15:38:28]Sock 9.First char is OK [15:38:28]request: POST /json_proto HTTP/1.0 [15:38:28]Method: POST [15:38:28]URL: /json_proto [15:38:28]Method is POST - this is cgi request [15:38:28]url: /json_proto [15:38:28]query_string will be loaded in cgi processing [15:38:28]execute_cgi json_proto POST (null) [15:38:28]execute_cgi path=json_proto method=POST [15:38:28]POST find Content-Length [15:38:28]Host: 172.17.51.3:8080 [15:38:28]Content-Length: 215 [15:38:28]Content-Type: application/json [15:38:28] [15:38:28]POST finish read [15:38:28]Found Content-Length = 215 [15:38: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" ] } } [15:38:28]execute_script... [15:38: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" ] } } [15:38:28]POST & json_proto [15:38:28]process_json_proto [15:38:28]json parsed OK: [15:38:28]protocol is kg_v1.0 [15:38:28]action value=get_value [15:38:28]process_action get_value [15:38:28]cmd_get_value [15:38:28]process_action get_value done [15:38:28]requested_data is exist [15:38:28]produce_requested_data [15:38:28]requested_item kkm.sn is exist - process it [15:38:28]requested_item kkm.ver is exist - process it [15:38:28]requested_item fm.sn is exist - process it [15:38:28]wFMCommunicate request_size=4 [15:38:28]MH_SAM_APDU [15:38:28]CAPDU: 80 11 00 00 [15:38:28]Write to MH i2c: E2 08 00 96 91 80 11 00 00 00 00 00 00 A1 [15:38:28]Write i2c OK [15:38:28]MH_I2C_Read... [15:38:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:38:28]Read from MH i2c: E2 [15:38:28]MH_I2C_Read... [15:38:28]Read from MH i2c: E2 17 00 [15:38:28]MH_I2C_Read... [15:38:28]Read from MH i2c: E2 17 00 96 91 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 EF [15:38:28]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:28]wFMCommunicate OK [15:38:28]requested_item fd.num is exist - process it [15:38:28]SAM_PROTO_GetFieldsCounters [15:38:28]wFMCommunicate request_size=4 [15:38:28]MH_SAM_APDU [15:38:28]CAPDU: 80 13 00 00 [15:38:28]Write to MH i2c: E2 08 00 97 91 80 13 00 00 00 00 00 00 A4 [15:38:28]Write i2c OK [15:38:28]MH_I2C_Read... [15:38:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:38:28]Read from MH i2c: E2 [15:38:28]MH_I2C_Read... [15:38:28]Read from MH i2c: E2 62 00 [15:38:28]MH_I2C_Read... [15:38:28]Read from MH i2c: E2 62 00 97 91 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 4C [15:38: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 AE 76 00 00 0E 04 04 00 72 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 [15:38:28]wFMCommunicate OK [15:38:28]SAM_PROTO_GetFieldsCounters done [15:38:28]requested_item shift.num is exist - process it [15:38:28]requested_item shift.opened is exist - process it [15:38:28]req_shift_opened [15:38:28]FM_GetShiftState [15:38:28]SAM_PROTO_GetShiftState [15:38:28]wFMCommunicate request_size=4 [15:38:28]MH_SAM_APDU [15:38:28]CAPDU: 80 13 01 00 [15:38:28]Write to MH i2c: E2 08 00 98 91 80 13 01 00 00 00 00 00 A6 [15:38:28]Write i2c OK [15:38:28]MH_I2C_Read... [15:38:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:38:28]Read from MH i2c: E2 [15:38:28]MH_I2C_Read... [15:38:28]Read from MH i2c: E2 0E 00 [15:38:28]MH_I2C_Read... [15:38:28]Read from MH i2c: E2 0E 00 98 91 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 8C [15:38:28]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [15:38:28]wFMCommunicate OK [15:38:28]SAM_PROTO_GetShiftState done [15:38:28]FM_GetShiftState done [15:38:28]req_shift_opened done [15:38:28]requested_item shift.open_date is exist - process it [15:38:28]req_shift_open_date [15:38:28]req_shift_open_date done [15:38:28]produce_requested_data done [15:38:28]produce_requested_data return {"kkm.sn":"0300000137","kkm.ver":"v1.0","fm.sn":"0000000002094219","fd.num":30382,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [15:38:28]process_action_free get_value [15:38:28]json_value_free [15:38:28]json_value_free done [15:38:28]process_json_proto returns [15:38:28]Send response to host [15:38:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000137","kkm.ver":"v1.0","fm.sn":"0000000002094219","fd.num":30382,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [15:38:28]free response buf [15:38:28]execute_script done [15:38:28]execute_script returns [15:38:28]free content buf [15:38:28]Sock 9.Close socket [15:38:28]Sock 9.Thread stoped [15:38:28]accept exits with 7 [15:38:28]New connection [15:38:28]New thread 3067514212 created [15:38:28]Thread 3067370852 joined [15:38:28]Waiting for new connection... [15:38:28] Sock 7.Parse request [15:38:28]Sock 7.Check first char [15:38:28]Sock 7.First char is OK [15:38:28]request: POST /json_proto HTTP/1.0 [15:38:28]Method: POST [15:38:28]URL: /json_proto [15:38:28]Method is POST - this is cgi request [15:38:28]url: /json_proto [15:38:28]query_string will be loaded in cgi processing [15:38:28]execute_cgi json_proto POST (null) [15:38:28]execute_cgi path=json_proto method=POST [15:38:28]POST find Content-Length [15:38:28]Host: 172.17.51.3:8080 [15:38:28]Content-Length: 331 [15:38:28]Content-Type: application/json [15:38:28] [15:38:28]POST finish read [15:38:28]Found Content-Length = 331 [15:38: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" ] } } [15:38:28]execute_script... [15:38:29]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" ] } } [15:38:29]POST & json_proto [15:38:29]process_json_proto [15:38:29]json parsed OK: [15:38:29]protocol is kg_v1.0 [15:38:29]action value=get_value [15:38:29]process_action get_value [15:38:29]cmd_get_value [15:38:29]process_action get_value done [15:38:29]requested_data is exist [15:38:29]produce_requested_data [15:38:29]requested_item fm.sale.total is exist - process it [15:38:29]SAM_PROTO_GetFMData [15:38:29]wFMCommunicate request_size=4 [15:38:29]MH_SAM_APDU [15:38:29]CAPDU: 80 13 03 00 [15:38:29]Write to MH i2c: E2 08 00 99 91 80 13 03 00 00 00 00 00 A9 [15:38:29]Write i2c OK [15:38:29]MH_I2C_Read... [15:38:29]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [15:38:29]Read from MH i2c: E2 [15:38:29]MH_I2C_Read... [15:38:29]Read from MH i2c: E2 FD 00 [15:38:29]MH_I2C_Read... [15:38:29]Read from MH i2c: E2 FD 00 99 91 00 BF 04 85 04 BB 04 6E 04 04 00 CA 75 00 00 69 04 A1 00 6F 04 04 00 BB 75 00 00 B1 04 04 00 0B 34 2C A3 70 04 04 00 38 D1 B9 82 72 04 04 00 D3 62 72 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 53 3B 55 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 F7 C2 71 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 DD [15:38:29]RAPDU: BF 04 85 04 BB 04 6E 04 04 00 CA 75 00 00 69 04 A1 00 6F 04 04 00 BB 75 00 00 B1 04 04 00 0B 34 2C A3 70 04 04 00 38 D1 B9 82 72 04 04 00 D3 62 72 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 53 3B 55 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 F7 C2 71 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 [15:38:29]wFMCommunicate OK [15:38:29]wFMCommunicate request_size=4 [15:38:29]MH_SAM_APDU [15:38:29]CAPDU: 80 17 00 00 [15:38:29]Write to MH i2c: E2 08 00 9A 91 80 17 00 00 00 00 00 00 AB [15:38:29]Write i2c OK [15:38:29]MH_I2C_Read... [15:38:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:38:30]Read from MH i2c: E2 [15:38:30]MH_I2C_Read... [15:38:30]Read from MH i2c: E2 FD 00 [15:38:30]MH_I2C_Read... [15:38:30]Read from MH i2c: E2 FD 00 9A 91 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 7C [15:38:30]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 [15:38:30]wFMCommunicate OK [15:38:30]wFMCommunicate request_size=4 [15:38:30]MH_SAM_APDU [15:38:30]CAPDU: 80 17 00 00 [15:38:30]Write to MH i2c: E2 08 00 9B 91 80 17 00 00 00 00 00 00 AC [15:38:30]Write i2c OK [15:38:30]MH_I2C_Read... [15:38:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:38:30]Read from MH i2c: E2 [15:38:30]MH_I2C_Read... [15:38:30]Read from MH i2c: E2 FD 00 [15:38:30]MH_I2C_Read... [15:38:30]Read from MH i2c: E2 FD 00 9B 91 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 50 [15:38:30]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 [15:38:30]wFMCommunicate OK [15:38:30]wFMCommunicate request_size=4 [15:38:30]MH_SAM_APDU [15:38:30]CAPDU: 80 17 00 00 [15:38:30]Write to MH i2c: E2 08 00 9C 91 80 17 00 00 00 00 00 00 AD [15:38:30]Write i2c OK [15:38:30]MH_I2C_Read... [15:38:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:38:30]Read from MH i2c: E2 [15:38:30]MH_I2C_Read... [15:38:30]Read from MH i2c: E2 FD 00 [15:38:30]MH_I2C_Read... [15:38:30]Read from MH i2c: E2 FD 00 9C 91 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 27 [15:38:30]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 [15:38:30]wFMCommunicate OK [15:38:30]wFMCommunicate request_size=4 [15:38:30]MH_SAM_APDU [15:38:30]CAPDU: 80 17 00 00 [15:38:30]Write to MH i2c: E2 08 00 9D 91 80 17 00 00 00 00 00 00 AE [15:38:30]Write i2c OK [15:38:30]MH_I2C_Read... [15:38:30]Read from MH i2c: E2 [15:38:30]MH_I2C_Read... [15:38:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 217! [15:38:30]Read from MH i2c: E2 DC 00 [15:38:30]MH_I2C_Read... [15:38:30]Read from MH i2c: E2 DC 00 9D 91 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 92 [15:38: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 [15:38:30]wFMCommunicate OK [15:38:30]SAM_PROTO_GetFMData done [15:38:30]requested_item fm.sale_refund.total is exist - process it [15:38:30]requested_item fm.buy.total is exist - process it [15:38:30]requested_item shift.sale.total is exist - process it [15:38:30]SAM_PROTO_GetShiftData [15:38:30]wFMCommunicate request_size=4 [15:38:30]MH_SAM_APDU [15:38:30]CAPDU: 80 13 02 00 [15:38:30]Write to MH i2c: E2 08 00 9E 91 80 13 02 00 00 00 00 00 AD [15:38:30]Write i2c OK [15:38:30]MH_I2C_Read... [15:38:31]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [15:38:31]Read from MH i2c: E2 [15:38:31]MH_I2C_Read... [15:38:31]Read from MH i2c: E2 FD 00 [15:38:31]MH_I2C_Read... [15:38:31]Read from MH i2c: E2 FD 00 9E 91 00 AF 04 AA 04 AB 04 6E 04 04 00 A4 00 00 00 69 04 9C 00 6F 04 04 00 A4 00 00 00 B1 04 03 00 95 CA CF 70 04 03 00 74 B4 BD 72 04 03 00 21 16 12 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 C7 12 16 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 E1 D6 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 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 C8 [15:38:31]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 A4 00 00 00 69 04 9C 00 6F 04 04 00 A4 00 00 00 B1 04 03 00 95 CA CF 70 04 03 00 74 B4 BD 72 04 03 00 21 16 12 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 C7 12 16 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 E1 D6 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 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 [15:38:31]wFMCommunicate OK [15:38:31]wFMCommunicate request_size=4 [15:38:31]MH_SAM_APDU [15:38:31]CAPDU: 80 17 00 00 [15:38:31]Write to MH i2c: E2 08 00 9F 91 80 17 00 00 00 00 00 00 B0 [15:38:31]Write i2c OK [15:38:31]MH_I2C_Read... [15:38:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:38:31]Read from MH i2c: E2 [15:38:31]MH_I2C_Read... [15:38:31]Read from MH i2c: E2 FD 00 [15:38:31]MH_I2C_Read... [15:38:31]Read from MH i2c: E2 FD 00 9F 91 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 C9 [15:38:31]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [15:38:31]wFMCommunicate OK [15:38:31]wFMCommunicate request_size=4 [15:38:31]MH_SAM_APDU [15:38:31]CAPDU: 80 17 00 00 [15:38:31]Write to MH i2c: E2 08 00 A0 91 80 17 00 00 00 00 00 00 B1 [15:38:31]Write i2c OK [15:38:31]MH_I2C_Read... [15:38:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:38:31]Read from MH i2c: E2 [15:38:31]MH_I2C_Read... [15:38:31]Read from MH i2c: E2 FD 00 [15:38:31]MH_I2C_Read... [15:38:31]Read from MH i2c: E2 FD 00 A0 91 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 65 [15:38:31]RAPDU: 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [15:38:31]wFMCommunicate OK [15:38:31]wFMCommunicate request_size=4 [15:38:31]MH_SAM_APDU [15:38:31]CAPDU: 80 17 00 00 [15:38:31]Write to MH i2c: E2 08 00 A1 91 80 17 00 00 00 00 00 00 B2 [15:38:31]Write i2c OK [15:38:31]MH_I2C_Read... [15:38:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:38:32]Read from MH i2c: E2 [15:38:32]MH_I2C_Read... [15:38:32]Read from MH i2c: E2 FD 00 [15:38:32]MH_I2C_Read... [15:38:32]Read from MH i2c: E2 FD 00 A1 91 00 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 90 00 30 [15:38:32]RAPDU: 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 90 00 [15:38:32]wFMCommunicate OK [15:38:32]wFMCommunicate request_size=4 [15:38:32]MH_SAM_APDU [15:38:32]CAPDU: 80 17 00 00 [15:38:32]Write to MH i2c: E2 08 00 A2 91 80 17 00 00 00 00 00 00 B3 [15:38:32]Write i2c OK [15:38:32]MH_I2C_Read... [15:38:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [15:38:32]Read from MH i2c: E2 [15:38:32]MH_I2C_Read... [15:38:32]Read from MH i2c: E2 CC 00 [15:38:32]MH_I2C_Read... [15:38:32]Read from MH i2c: E2 CC 00 A2 91 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 94 [15:38:32]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [15:38:32]wFMCommunicate OK [15:38:32]SAM_PROTO_GetShiftData done [15:38:32]requested_item shift.sale.total_cash is exist - process it [15:38:32]requested_item shift.sale_refund.total is exist - process it [15:38:32]requested_item shift.sale_refund.total_cash is exist - process it [15:38:32]requested_item shift.buy.total is exist - process it [15:38:32]requested_item shift.buy.total_cash is exist - process it [15:38:32]produce_requested_data done [15:38:32]produce_requested_data return {"fm.sale.total":27375831.15,"fm.sale_refund.total":54066.00,"fm.buy.total":0.00,"shift.sale.total":136178.13,"shift.sale.total_cash":124325.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} [15:38:32]process_action_free get_value [15:38:32]json_value_free [15:38:32]json_value_free done [15:38:32]process_json_proto returns [15:38:32]Send response to host [15:38:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":27375831.15,"fm.sale_refund.total":54066.00,"fm.buy.total":0.00,"shift.sale.total":136178.13,"shift.sale.total_cash":124325.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}}} [15:38:32]free response buf [15:38:32]execute_script done [15:38:32]execute_script returns [15:38:32]free content buf [15:38:32]Sock 7.Close socket [15:38:32]Sock 7.Thread stoped [15:38:32]OFD Sender: No OFD packet to send [15:38:37]OFD Sender: No OFD packet to send [15:38:42]OFD Sender: No OFD packet to send [15:38:47]OFD Sender: No OFD packet to send [15:38:52]OFD Sender: No OFD packet to send [15:38:57]OFD Sender: No OFD packet to send [15:39:02]OFD Sender: No OFD packet to send [15:39:07]OFD Sender: No OFD packet to send [15:39:12]OFD Sender: No OFD packet to send [15:39:17]OFD Sender: No OFD packet to send [15:39:22]OFD Sender: No OFD packet to send [15:39:27]OFD Sender: No OFD packet to send [15:39:32]OFD Sender: No OFD packet to send [15:39:37]OFD Sender: No OFD packet to send [15:39:42]OFD Sender: No OFD packet to send [15:39:47]OFD Sender: No OFD packet to send [15:39:52]OFD Sender: No OFD packet to send [15:39:57]OFD Sender: No OFD packet to send [15:40:02]OFD Sender: No OFD packet to send [15:40:07]OFD Sender: No OFD packet to send [15:40:12]OFD Sender: No OFD packet to send [15:40:17]OFD Sender: No OFD packet to send [15:40:22]OFD Sender: No OFD packet to send [15:40:27]OFD Sender: No OFD packet to send [15:40:32]OFD Sender: No OFD packet to send [15:40:37]OFD Sender: No OFD packet to send [15:40:42]OFD Sender: No OFD packet to send [15:40:44]accept exits with 9 [15:40:44]New connection [15:40:44]New thread 3067370852 created [15:40:44]Thread 3067514212 joined [15:40:44]Waiting for new connection... [15:40:44] Sock 9.Parse request [15:40:44]Sock 9.Check first char [15:40:44]Sock 9.First char is OK [15:40:44]request: POST /json_proto HTTP/1.0 [15:40:44]Method: POST [15:40:44]URL: /json_proto [15:40:44]Method is POST - this is cgi request [15:40:44]url: /json_proto [15:40:44]query_string will be loaded in cgi processing [15:40:44]execute_cgi json_proto POST (null) [15:40:44]execute_cgi path=json_proto method=POST [15:40:44]POST find Content-Length [15:40:44]Host: 172.17.51.3:8080 [15:40:44]Content-Length: 682 [15:40:44]Content-Type: application/json [15:40:44] [15:40:44]POST finish read [15:40:44]Found Content-Length = 682 [15:40:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342778", "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" ] } } [15:40:44]execute_script... [15:40: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)342778", "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" ] } } [15:40:44]POST & json_proto [15:40:44]process_json_proto [15:40:44]json parsed OK: [15:40:44]protocol is kg_v1.0 [15:40:44]action value=close_receipt [15:40:44]process_action close_receipt [15:40:44]cmd_close_receipt [15:40:44]MH_GetDate [15:40:44]Write to MH i2c: F0 00 00 A3 91 23 [15:40:44]Write i2c OK [15:40:44]MH_I2C_Read... [15:40:44]Read from MH i2c: F0 [15:40:44]MH_I2C_Read... [15:40:44]Read from MH i2c: F0 09 00 [15:40:44]MH_I2C_Read... [15:40:44]Read from MH i2c: F0 09 00 A3 91 00 86 24 15 67 04 C1 95 66 12 [15:40:44]GetLastDocTimeStamp 1729438349 [15:40:44]current date 1729438854 [15:40:44]FM_GetShiftState [15:40:44]SAM_PROTO_GetShiftState [15:40:44]wFMCommunicate request_size=4 [15:40:44]MH_SAM_APDU [15:40:44]CAPDU: 80 13 01 00 [15:40:44]Write to MH i2c: E2 08 00 A4 91 80 13 01 00 00 00 00 00 B2 [15:40:44]Write i2c OK [15:40:44]MH_I2C_Read... [15:40:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:40:44]Read from MH i2c: E2 [15:40:44]MH_I2C_Read... [15:40:44]Read from MH i2c: E2 0E 00 [15:40:44]MH_I2C_Read... [15:40:44]Read from MH i2c: E2 0E 00 A4 91 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 98 [15:40:44]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [15:40:44]wFMCommunicate OK [15:40:44]SAM_PROTO_GetShiftState done [15:40:44]FM_GetShiftState done [15:40:44]opened in 1729384718 [15:40:44]opened+sec_in_day 1729471118 [15:40:44]quantity*price = 100015 [15:40:44]sum+1 = 100017 [15:40:44]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 СНО: Общий режим Чек 165 20.10.2024 15:40 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30383 ФПД: 55490368772074 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T154054&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30383&fm=55490368772074&tin=02508201610067®Number=0000000000186857&sum=100000 [15:40:45]StoreToDocumentArchive [15:40:45]shift 114 fd 30383 [15:40:45]save to /storage/0114/doc_00030383 [15:40:45]save last doc name /storage/0114/doc_00030383 to /storage/kkm_last_doc_name [15:40:45]save OK [15:40:45]Clear old archive folders... [15:40:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:40:45]tlvbuf is 00AD6330 [15:40:45]SAM_PROTO_ClearQueue [15:40:45]wFMCommunicate request_size=4 [15:40:45]MH_SAM_APDU [15:40:45]CAPDU: 80 09 00 00 [15:40:45]Write to MH i2c: E2 08 00 B1 91 80 09 00 00 00 00 00 00 B4 [15:40:45]Write i2c OK [15:40:45]MH_I2C_Read... [15:40:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:40:45]Read from MH i2c: E2 [15:40:45]MH_I2C_Read... [15:40:45]Read from MH i2c: E2 03 00 [15:40:45]MH_I2C_Read... [15:40:45]Read from MH i2c: E2 03 00 B1 91 00 90 00 B6 [15:40:45]RAPDU: 90 00 [15:40:45]wFMCommunicate OK [15:40:45]SAM_PROTO_ClearQueue done [15:40:45]KKMCreateOFDPacket [15:40:45]OFDProtocolAddRootSTLVToBuf [15:40:45]FM_MakeSignedData [15:40:45]FM_MakeSignedData [15:40:45]SAM_PROTO_SignData [15:40:45]wFMCommunicate request_size=4 [15:40:45]MH_SAM_APDU [15:40:45]CAPDU: 80 0D 01 02 [15:40:45]Write to MH i2c: E2 08 00 B2 91 80 0D 01 02 00 00 00 00 BC [15:40:45]Write i2c OK [15:40:45]MH_I2C_Read... [15:40:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:40:45]Read from MH i2c: E2 [15:40:45]MH_I2C_Read... [15:40:45]Read from MH i2c: E2 03 00 [15:40:45]MH_I2C_Read... [15:40:45]Read from MH i2c: E2 03 00 B2 91 00 90 00 B7 [15:40:45]RAPDU: 90 00 [15:40:45]wFMCommunicate OK [15:40:45]wFMCommunicate request_size=255 [15:40:45]MH_SAM_APDU [15:40: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 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 A5 00 00 00 F4 03 04 00 86 24 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 32 [15:40:45]Write to MH i2c: E2 02 01 B3 91 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 A5 00 00 00 F4 03 04 00 86 24 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 32 00 00 DB [15:40:45]Write i2c OK [15:40:45]MH_I2C_Read... [15:40:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:40:45]Read from MH i2c: E2 [15:40:45]MH_I2C_Read... [15:40:45]Read from MH i2c: E2 03 00 [15:40:45]MH_I2C_Read... [15:40:45]Read from MH i2c: E2 03 00 B3 91 00 90 00 B8 [15:40:45]RAPDU: 90 00 [15:40:45]wFMCommunicate OK [15:40:45]wFMCommunicate request_size=10 [15:40:45]MH_SAM_APDU [15:40:45]CAPDU: 80 0D 02 02 05 77 DB B8 17 EA [15:40:45]Write to MH i2c: E2 0D 00 B4 91 80 0D 02 02 05 00 77 DB B8 17 EA 00 00 D4 [15:40:45]Write i2c OK [15:40:45]MH_I2C_Read... [15:40:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:40:45]Read from MH i2c: E2 [15:40:45]MH_I2C_Read... [15:40:45]Read from MH i2c: E2 03 00 [15:40:45]MH_I2C_Read... [15:40:45]Read from MH i2c: E2 03 00 B4 91 00 90 00 B9 [15:40:45]RAPDU: 90 00 [15:40:45]wFMCommunicate OK [15:40:45]wFMCommunicate request_size=4 [15:40:45]MH_SAM_APDU [15:40:45]CAPDU: 80 0D 03 02 [15:40:45]Write to MH i2c: E2 08 00 B5 91 80 0D 03 02 00 00 00 00 C1 [15:40:45]Write i2c OK [15:40:45]MH_I2C_Read... [15:40:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:40:45]Read from MH i2c: E2 [15:40:45]MH_I2C_Read... [15:40:45]Read from MH i2c: E2 0B 00 [15:40:45]MH_I2C_Read... [15:40:45]Read from MH i2c: E2 0B 00 B5 91 00 93 F4 56 10 FB A8 48 B1 90 00 4B [15:40:45]RAPDU: 93 F4 56 10 FB A8 48 B1 90 00 [15:40:45]wFMCommunicate OK [15:40:45]SAM_PROTO_SignData done [15:40:45]FM_MakeSignedData done [15:40:45]CreateOFDProtocolMessage [15:40:45]wFMCommunicate request_size=4 [15:40:45]MH_SAM_APDU [15:40:45]CAPDU: 80 11 00 00 [15:40:45]Write to MH i2c: E2 08 00 B6 91 80 11 00 00 00 00 00 00 C1 [15:40:45]Write i2c OK [15:40:45]MH_I2C_Read... [15:40:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:40:46]Read from MH i2c: E2 [15:40:46]MH_I2C_Read... [15:40:46]Read from MH i2c: E2 17 00 [15:40:46]MH_I2C_Read... [15:40:46]Read from MH i2c: E2 17 00 B6 91 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 0F [15: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 [15:40:46]wFMCommunicate OK [15:40:46]CreateOFDProtocolMessage done [15:40:46]OFDSenderStorePacket 30383 [15:40:46]StoreOFDPacket docnum=30383 [15:40: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 C2 EA 07 01 4E F1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 A5 00 00 00 F4 03 04 00 86 24 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 32 77 DB B8 17 EA 93 F4 56 10 FB A8 48 B1 [15:40:46]CheckFolder [15:40:46]dirname=/storage/ofd_packets [15:40:46]CheckFolder done [15:40:46]ProducePacketName [15:40:46]name=ofd_packets/00030383 [15:40:46]NVStorageSaveData ofd_packets/00030383 [15:40:46]File name is /storage/ofd_packets/00030383 [15:40:46]Write 301 bytes [15:40:46]NVStorageSaveData done [15:40:46]OFDSenderStorePacket done [15:40:46]KKMCreateOFDPacket done [15:40:46]NVStorageSaveData kkm_last_timestamp [15:40:46]File name is /storage/kkm_last_timestamp [15:40:46]Write 4 bytes [15:40:46]NVStorageSaveData done [15:40:46]ExternCall_PrintAddStr [15:40:46]wPrintStart [15:40:46]Write to MH i2c: 01 00 00 B7 91 48 [15:40:46]Write i2c OK [15:40:46]MH_I2C_Read... [15:40:46]Read from MH i2c: 01 [15:40:46]MH_I2C_Read... [15:40:46]Read from MH i2c: 01 07 00 [15:40:46]MH_I2C_Read... [15:40:46]Read from MH i2c: 01 07 00 B7 91 00 00 00 00 00 FF 0F 5D [15:40:46]RasterBufferAndPrint [15:40:46]line Счет N : (1)342778 [15:40:46]line ИНН: 02508201610067 [15:40:46]line Контрольно-Кассовый Чек [15:40:46]line ПРОДАЖА [15:40:46]line ТРК (МРК, ГНК) : 53 [15:40:46]line Товар: 2710124130 [15:40:46]line Аи-92-К-2 [15:40:46]line 14.950 * 66.90 [15:40:46]line = 1000.16 [15:40:46]line НДС 12% НСП 1% [15:40:46]line > о реализуемом товаре [15:40:46]line ОКРУГЛЕНИЕ: -0.16 [15:40:46]line ИТОГО: 1000.00 [15:40:46]line Внесено: 1000.00 [15:40:46]line СДАЧА: 0.00 [15:40:46]line НСП 1% : 8.85 [15:40:46]line НДС 12% : 106.21 [15:40:46]line Наличными: 1000.00 [15:40:46]line Безнал.: 0.00 [15:40:46]line Место: АЗС № 78 "Партнер Нефть" [15:40:46]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [15:40:46]line СНО: Общий режим [15:40:46]line Чек 165 20.10.2024 15:40 [15:40:46]line Смена: 114 ФФД: 1.0 [15:40:46]line ЗНМ: 0300000137 [15:40:46]line РНМ: 0000000000186857 [15:40:46]line Версия ККМ: v1.0 [15:40:46]line ФМ: 0000000002094219 [15:40:46]line ФД: 30383 [15:40:46]line ФПД: 55490368772074 [15:40:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T154054&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30383&fm=55490368772074&tin=02508201610067®Number=0000000000186857&sum=100000 [15:40:46]OFD Sender: Processing packet 30383 [packets to send 10, broken 9] [15:40:46]ProducePacketName [15:40:46]name=ofd_packets/00030383 [15:40:46]OFD Sender: To server: pG, [15:40:46]CommunicateWithHost lk.salyk.kg:30040 [15:40:46]ConnectInit lk.salyk.kg [15:40:46]written 0, free lines is 4095 [15:40:46]Connected sock=10 [15:40: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 C2 EA 07 01 4E F1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 A5 00 00 00 F4 03 04 00 86 24 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 32 77 DB B8 17 EA 93 F4 56 10 FB A8 48 B1 [15:40: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 87 1D 47 00 FF 0F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 AF 76 00 00 F4 03 04 00 09 CF 14 67 B6 04 01 00 00 CA 85 5D AC 7A 6B 1E A5 [15:40:46]CommunicateWithHost err = 0 [15:40:46]CheckOFDResponse [15:40:46]1017 (14) - 77093643461234 [15:40:46]1041 (16) - 0000000002094219 [15:40:46]1040 (4) - 30383 [15:40:46]1012 (4) - 20.10.2024 09:36 [15:40:46]1206 (1) - 0 [15:40:46]OFD Sender: Remove packet 30383 [15:40:46]ProducePacketName [15:40:46]name=ofd_packets/00030383 [15:40:46]NVStorageDeleteData [15:40:46]Write to MH i2c: 01 00 00 E2 91 73 [15:40:46]Write i2c OK [15:40:46]MH_I2C_Read... [15:40:46]Read from MH i2c: 01 [15:40:46]MH_I2C_Read... [15:40:46]Read from MH i2c: 01 07 00 [15:40:46]MH_I2C_Read... [15:40:46]Read from MH i2c: 01 07 00 E2 91 00 00 00 00 00 F2 0C 78 [15:40:46]RasterBufferAndPrint [15:40:46]line [15:40:46]line [15:40:46]line [15:40:46]line [15:40:46]line [15:40:46]written 0, free lines is 3320 [15:40:46]MH_Cut [15:40:46]Write to MH i2c: D1 01 00 E9 91 01 4C [15:40:46]Write i2c OK [15:40:46]MH_I2C_Read... [15:40:46]Read from MH i2c: D1 [15:40:46]MH_I2C_Read... [15:40:46]Read from MH i2c: D1 01 00 [15:40:46]MH_I2C_Read... [15:40:46]Read from MH i2c: D1 01 00 E9 91 00 4B [15:40:46]Write to MH i2c: 01 00 00 EA 91 7B [15:40:46]Write i2c OK [15:40:46]MH_I2C_Read... [15:40:47]OFD Sender: No OFD packet to send [15:40:47]*** Cut start [15:40:47]*** Partial cut [15:40:47]*** CUTSNS_PIN = 1 [15:40:47]*** CUTSNS_PIN = 0 [15:40:47]*** Brake cut motor [15:40:48]Read from MH i2c: 01 [15:40:48]MH_I2C_Read... [15:40:48]*** Stop cut motor [15:40:48]*** Cut end [15:40:48]Read from MH i2c: 01 07 00 [15:40:48]MH_I2C_Read... [15:40:48]Read from MH i2c: 01 07 00 EA 91 00 00 00 00 00 FF 0F 90 [15:40:48]process_action close_receipt done [15:40:48]requested_data is exist [15:40:48]produce_requested_data [15:40:48]requested_item fm.sn is exist - process it [15:40:48]wFMCommunicate request_size=4 [15:40:48]MH_SAM_APDU [15:40:48]CAPDU: 80 11 00 00 [15:40:48]Write to MH i2c: E2 08 00 EB 91 80 11 00 00 00 00 00 00 F6 [15:40:48]Write i2c OK [15:40:48]MH_I2C_Read... [15:40:48]Read from MH i2c: E2 [15:40:48]MH_I2C_Read... [15:40:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:40:48]Read from MH i2c: E2 17 00 [15:40:48]MH_I2C_Read... [15:40:48]Read from MH i2c: E2 17 00 EB 91 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 44 [15:40: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:40:48]wFMCommunicate OK [15:40:48]requested_item fd.num is exist - process it [15:40:48]SAM_PROTO_GetFieldsCounters [15:40:48]wFMCommunicate request_size=4 [15:40:48]MH_SAM_APDU [15:40:48]CAPDU: 80 13 00 00 [15:40:48]Write to MH i2c: E2 08 00 EC 91 80 13 00 00 00 00 00 00 F9 [15:40:48]Write i2c OK [15:40:48]MH_I2C_Read... [15:40:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:40:48]Read from MH i2c: E2 [15:40:48]MH_I2C_Read... [15:40:48]Read from MH i2c: E2 62 00 [15:40:48]MH_I2C_Read... [15:40:48]Read from MH i2c: E2 62 00 EC 91 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 A5 [15:40: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 AF 76 00 00 0E 04 04 00 72 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 [15:40:48]wFMCommunicate OK [15:40:48]SAM_PROTO_GetFieldsCounters done [15:40:48]requested_item shift.num is exist - process it [15:40:48]requested_item shift.opened is exist - process it [15:40:48]req_shift_opened [15:40:48]FM_GetShiftState [15:40:48]SAM_PROTO_GetShiftState [15:40:48]wFMCommunicate request_size=4 [15:40:48]MH_SAM_APDU [15:40:48]CAPDU: 80 13 01 00 [15:40:48]Write to MH i2c: E2 08 00 ED 91 80 13 01 00 00 00 00 00 FB [15:40:48]Write i2c OK [15:40:48]MH_I2C_Read... [15:40:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:40:48]Read from MH i2c: E2 [15:40:48]MH_I2C_Read... [15:40:48]Read from MH i2c: E2 0E 00 [15:40:48]MH_I2C_Read... [15:40:48]Read from MH i2c: E2 0E 00 ED 91 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 E1 [15:40:48]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [15:40:48]wFMCommunicate OK [15:40:48]SAM_PROTO_GetShiftState done [15:40:48]FM_GetShiftState done [15:40:48]req_shift_opened done [15:40:48]requested_item shift.open_date is exist - process it [15:40:48]req_shift_open_date [15:40:48]req_shift_open_date done [15:40:48]produce_requested_data done [15:40:48]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30383,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [15:40:48]process_action_free close_receipt [15:40:48]json_value_free [15:40:48]json_value_free done [15:40:48]process_json_proto returns [15:40:48]Send response to host [15:40:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30383,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [15:40:48]free response buf [15:40:48]execute_script done [15:40:48]execute_script returns [15:40:48]free content buf [15:40:48]Sock 9.Close socket [15:40:48]Sock 9.Thread stoped [15:40:52]OFD Sender: No OFD packet to send [15:40:57]OFD Sender: No OFD packet to send [15:41:02]OFD Sender: No OFD packet to send [15:41:07]OFD Sender: No OFD packet to send [15:41:12]OFD Sender: No OFD packet to send [15:41:17]OFD Sender: No OFD packet to send [15:41:22]OFD Sender: No OFD packet to send [15:41:27]OFD Sender: No OFD packet to send [15:41:32]OFD Sender: No OFD packet to send [15:41:37]OFD Sender: No OFD packet to send [15:41:42]OFD Sender: No OFD packet to send [15:41:47]OFD Sender: No OFD packet to send [15:41:52]OFD Sender: No OFD packet to send [15:41:57]OFD Sender: No OFD packet to send [15:42:02]OFD Sender: No OFD packet to send [15:42:07]OFD Sender: No OFD packet to send [15:42:12]OFD Sender: No OFD packet to send [15:42:17]OFD Sender: No OFD packet to send [15:42:22]OFD Sender: No OFD packet to send [15:42:27]OFD Sender: No OFD packet to send [15:42:32]OFD Sender: No OFD packet to send [15:42:37]OFD Sender: No OFD packet to send [15:42:42]OFD Sender: No OFD packet to send [15:42:47]OFD Sender: No OFD packet to send [15:42:52]OFD Sender: No OFD packet to send [15:42:57]OFD Sender: No OFD packet to send [15:43:02]OFD Sender: No OFD packet to send [15:43:07]OFD Sender: No OFD packet to send [15:43:12]OFD Sender: No OFD packet to send [15:43:17]OFD Sender: No OFD packet to send [15:43:22]OFD Sender: No OFD packet to send [15:43:27]OFD Sender: No OFD packet to send [15:43:32]OFD Sender: No OFD packet to send [15:43:37]OFD Sender: No OFD packet to send [15:43:42]OFD Sender: No OFD packet to send [15:43:47]OFD Sender: No OFD packet to send [15:43:52]OFD Sender: No OFD packet to send [15:43:57]OFD Sender: No OFD packet to send [15:44:02]OFD Sender: No OFD packet to send [15:44:07]OFD Sender: No OFD packet to send [15:44:12]OFD Sender: No OFD packet to send [15:44:17]OFD Sender: No OFD packet to send [15:44:22]OFD Sender: No OFD packet to send [15:44:27]OFD Sender: No OFD packet to send [15:44:29]accept exits with 7 [15:44:29]New connection [15:44:29]New thread 3067514212 created [15:44:29]Thread 3067370852 joined [15:44:29]Waiting for new connection... [15:44:29] Sock 7.Parse request [15:44:29]Sock 7.Check first char [15:44:29]Sock 7.First char is OK [15:44:29]request: POST /json_proto HTTP/1.0 [15:44:29]Method: POST [15:44:29]URL: /json_proto [15:44:29]Method is POST - this is cgi request [15:44:29]url: /json_proto [15:44:29]query_string will be loaded in cgi processing [15:44:29]execute_cgi json_proto POST (null) [15:44:29]execute_cgi path=json_proto method=POST [15:44:29]POST find Content-Length [15:44:29]Host: 172.17.51.3:8080 [15:44:29]Content-Length: 682 [15:44:29]Content-Type: application/json [15:44:29] [15:44:29]POST finish read [15:44:29]Found Content-Length = 682 [15:44:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342779", "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" : 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" ] } } [15:44:29]execute_script... [15:44:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342779", "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" : 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" ] } } [15:44:29]POST & json_proto [15:44:29]process_json_proto [15:44:29]json parsed OK: [15:44:29]protocol is kg_v1.0 [15:44:29]action value=close_receipt [15:44:29]process_action close_receipt [15:44:29]cmd_close_receipt [15:44:29]MH_GetDate [15:44:29]Write to MH i2c: F0 00 00 EE 91 6E [15:44:29]Write i2c OK [15:44:29]MH_I2C_Read... [15:44:29]Read from MH i2c: F0 [15:44:29]MH_I2C_Read... [15:44:29]Read from MH i2c: F0 09 00 [15:44:29]MH_I2C_Read... [15:44:29]Read from MH i2c: F0 09 00 EE 91 00 67 25 15 67 04 C1 95 66 3F [15:44:29]GetLastDocTimeStamp 1729438854 [15:44:29]current date 1729439079 [15:44:29]FM_GetShiftState [15:44:29]SAM_PROTO_GetShiftState [15:44:29]wFMCommunicate request_size=4 [15:44:29]MH_SAM_APDU [15:44:29]CAPDU: 80 13 01 00 [15:44:29]Write to MH i2c: E2 08 00 EF 91 80 13 01 00 00 00 00 00 FD [15:44:29]Write i2c OK [15:44:29]MH_I2C_Read... [15:44:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:44:29]Read from MH i2c: E2 [15:44:29]MH_I2C_Read... [15:44:29]Read from MH i2c: E2 0E 00 [15:44:29]MH_I2C_Read... [15:44:29]Read from MH i2c: E2 0E 00 EF 91 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 E3 [15:44:29]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [15:44:29]wFMCommunicate OK [15:44:29]SAM_PROTO_GetShiftState done [15:44:29]FM_GetShiftState done [15:44:29]opened in 1729384718 [15:44:29]opened+sec_in_day 1729471118 [15:44:29]quantity*price = 300064 [15:44:29]sum+1 = 300066 [15:44:29]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 СНО: Общий режим Чек 166 20.10.2024 15:44 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30384 ФПД: 141399944986120 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T154439&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30384&fm=141399944986120&tin=02508201610067®Number=0000000000186857&sum=300000 [15:44:30]StoreToDocumentArchive [15:44:30]shift 114 fd 30384 [15:44:30]save to /storage/0114/doc_00030384 [15:44:30]save last doc name /storage/0114/doc_00030384 to /storage/kkm_last_doc_name [15:44:30]save OK [15:44:30]Clear old archive folders... [15:44:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:44:30]tlvbuf is 00B26140 [15:44:30]SAM_PROTO_ClearQueue [15:44:30]wFMCommunicate request_size=4 [15:44:30]MH_SAM_APDU [15:44:30]CAPDU: 80 09 00 00 [15:44:30]Write to MH i2c: E2 08 00 FC 91 80 09 00 00 00 00 00 00 FF [15:44:30]Write i2c OK [15:44:30]MH_I2C_Read... [15:44:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:44:30]Read from MH i2c: E2 [15:44:30]MH_I2C_Read... [15:44:30]Read from MH i2c: E2 03 00 [15:44:30]MH_I2C_Read... [15:44:30]Read from MH i2c: E2 03 00 FC 91 00 90 00 01 [15:44:30]RAPDU: 90 00 [15:44:30]wFMCommunicate OK [15:44:30]SAM_PROTO_ClearQueue done [15:44:30]KKMCreateOFDPacket [15:44:30]OFDProtocolAddRootSTLVToBuf [15:44:30]FM_MakeSignedData [15:44:30]FM_MakeSignedData [15:44:30]SAM_PROTO_SignData [15:44:30]wFMCommunicate request_size=4 [15:44:30]MH_SAM_APDU [15:44:30]CAPDU: 80 0D 01 02 [15:44:30]Write to MH i2c: E2 08 00 FD 91 80 0D 01 02 00 00 00 00 07 [15:44:30]Write i2c OK [15:44:30]MH_I2C_Read... [15:44:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:44:30]Read from MH i2c: E2 [15:44:30]MH_I2C_Read... [15:44:30]Read from MH i2c: E2 03 00 [15:44:30]MH_I2C_Read... [15:44:30]Read from MH i2c: E2 03 00 FD 91 00 90 00 02 [15:44:30]RAPDU: 90 00 [15:44:30]wFMCommunicate OK [15:44:30]wFMCommunicate request_size=255 [15:44:30]MH_SAM_APDU [15:44:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 A6 00 00 00 F4 03 04 00 67 25 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 80 [15:44:30]Write to MH i2c: E2 02 01 FE 91 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 A6 00 00 00 F4 03 04 00 67 25 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 80 00 00 90 [15:44:30]Write i2c OK [15:44:30]MH_I2C_Read... [15:44:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:44:30]Read from MH i2c: E2 [15:44:30]MH_I2C_Read... [15:44:30]Read from MH i2c: E2 03 00 [15:44:30]MH_I2C_Read... [15:44:30]Read from MH i2c: E2 03 00 FE 91 00 90 00 03 [15:44:30]RAPDU: 90 00 [15:44:30]wFMCommunicate OK [15:44:30]wFMCommunicate request_size=10 [15:44:30]MH_SAM_APDU [15:44:30]CAPDU: 80 0D 02 02 05 9A 3D 7D FE 08 [15:44:30]Write to MH i2c: E2 0D 00 FF 91 80 0D 02 02 05 00 9A 3D 7D FE 08 00 00 6E [15:44:30]Write i2c OK [15:44:30]MH_I2C_Read... [15:44:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:44:30]Read from MH i2c: E2 [15:44:30]MH_I2C_Read... [15:44:30]Read from MH i2c: E2 03 00 [15:44:30]MH_I2C_Read... [15:44:30]Read from MH i2c: E2 03 00 FF 91 00 90 00 04 [15:44:30]RAPDU: 90 00 [15:44:30]wFMCommunicate OK [15:44:30]wFMCommunicate request_size=4 [15:44:30]MH_SAM_APDU [15:44:30]CAPDU: 80 0D 03 02 [15:44:30]Write to MH i2c: E2 08 00 00 92 80 0D 03 02 00 00 00 00 0D [15:44:30]Write i2c OK [15:44:30]MH_I2C_Read... [15:44:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:44:30]Read from MH i2c: E2 [15:44:30]MH_I2C_Read... [15:44:30]Read from MH i2c: E2 0B 00 [15:44:30]MH_I2C_Read... [15:44:30]Read from MH i2c: E2 0B 00 00 92 00 03 5E 24 7F 41 12 97 D0 90 00 CC [15:44:30]RAPDU: 03 5E 24 7F 41 12 97 D0 90 00 [15:44:30]wFMCommunicate OK [15:44:30]SAM_PROTO_SignData done [15:44:30]FM_MakeSignedData done [15:44:30]CreateOFDProtocolMessage [15:44:30]wFMCommunicate request_size=4 [15:44:30]MH_SAM_APDU [15:44:30]CAPDU: 80 11 00 00 [15:44:30]Write to MH i2c: E2 08 00 01 92 80 11 00 00 00 00 00 00 0D [15:44:30]Write i2c OK [15:44:30]MH_I2C_Read... [15:44:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:44:30]Read from MH i2c: E2 [15:44:30]MH_I2C_Read... [15:44:30]Read from MH i2c: E2 17 00 [15:44:30]MH_I2C_Read... [15:44:30]Read from MH i2c: E2 17 00 01 92 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 5B [15:44: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:44:30]wFMCommunicate OK [15:44:30]CreateOFDProtocolMessage done [15:44:30]OFDSenderStorePacket 30384 [15:44:30]StoreOFDPacket docnum=30384 [15:44: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 A6 5F 07 01 D8 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 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 A6 00 00 00 F4 03 04 00 67 25 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 80 9A 3D 7D FE 08 03 5E 24 7F 41 12 97 D0 [15:44:30]CheckFolder [15:44:30]dirname=/storage/ofd_packets [15:44:30]CheckFolder done [15:44:30]ProducePacketName [15:44:30]name=ofd_packets/00030384 [15:44:30]NVStorageSaveData ofd_packets/00030384 [15:44:30]File name is /storage/ofd_packets/00030384 [15:44:30]Write 301 bytes [15:44:30]NVStorageSaveData done [15:44:30]OFDSenderStorePacket done [15:44:30]KKMCreateOFDPacket done [15:44:30]NVStorageSaveData kkm_last_timestamp [15:44:30]File name is /storage/kkm_last_timestamp [15:44:30]Write 4 bytes [15:44:30]NVStorageSaveData done [15:44:30]ExternCall_PrintAddStr [15:44:30]wPrintStart [15:44:30]Write to MH i2c: 01 00 00 02 92 94 [15:44:30]Write i2c OK [15:44:30]MH_I2C_Read... [15:44:30]Read from MH i2c: 01 [15:44:30]MH_I2C_Read... [15:44:30]Read from MH i2c: 01 07 00 [15:44:30]MH_I2C_Read... [15:44:30]Read from MH i2c: 01 07 00 02 92 00 00 00 00 00 FF 0F A9 [15:44:30]RasterBufferAndPrint [15:44:30]line Счет N : (1)342779 [15:44:30]line ИНН: 02508201610067 [15:44:30]line Контрольно-Кассовый Чек [15:44:30]line ПРОДАЖА [15:44:30]line ТРК (МРК, ГНК) : 32 [15:44:30]line Товар: 2710124500 [15:44:30]line Аи-95-К-3 [15:44:30]line 40.440 * 74.20 [15:44:30]line = 3000.65 [15:44:30]line НДС 12% НСП 1% [15:44:30]line > о реализуемом товаре [15:44:30]line ОКРУГЛЕНИЕ: -0.65 [15:44:30]line ИТОГО: 3000.00 [15:44:30]line Внесено: 3000.00 [15:44:30]line СДАЧА: 0.00 [15:44:30]line НСП 1% : 26.55 [15:44:30]line НДС 12% : 318.65 [15:44:30]line Наличными: 3000.00 [15:44:30]line Безнал.: 0.00 [15:44:30]line Место: АЗС № 78 "Партнер Нефть" [15:44:30]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [15:44:30]line СНО: Общий режим [15:44:30]line Чек 166 20.10.2024 15:44 [15:44:30]line Смена: 114 ФФД: 1.0 [15:44:30]line ЗНМ: 0300000137 [15:44:30]line РНМ: 0000000000186857 [15:44:30]line Версия ККМ: v1.0 [15:44:30]line ФМ: 0000000002094219 [15:44:30]line ФД: 30384 [15:44:30]line ФПД: 141399944986120 [15:44:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T154439&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30384&fm=141399944986120&tin=02508201610067®Number=0000000000186857&sum=300000 [15:44:31]OFD Sender: Processing packet 30384 [packets to send 10, broken 9] [15:44:31]ProducePacketName [15:44:31]name=ofd_packets/00030384 [15:44:31]OFD Sender: To server: pG, [15:44:31]CommunicateWithHost lk.salyk.kg:30040 [15:44:31]ConnectInit lk.salyk.kg [15:44:31]written 0, free lines is 4095 [15:44:31]Connected sock=10 [15:44:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 A6 5F 07 01 D8 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 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 A6 00 00 00 F4 03 04 00 67 25 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 80 9A 3D 7D FE 08 03 5E 24 7F 41 12 97 D0 [15:44: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 8E 1E 47 00 76 10 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 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 76 00 00 F4 03 04 00 EA CF 14 67 B6 04 01 00 00 7C FF 0A 30 71 72 91 03 [15:44:31]CommunicateWithHost err = 0 [15:44:31]CheckOFDResponse [15:44:31]1017 (14) - 77093643461234 [15:44:31]1041 (16) - 0000000002094219 [15:44:31]1040 (4) - 30384 [15:44:31]1012 (4) - 20.10.2024 09:39 [15:44:31]1206 (1) - 0 [15:44:31]OFD Sender: Remove packet 30384 [15:44:31]ProducePacketName [15:44:31]name=ofd_packets/00030384 [15:44:31]NVStorageDeleteData [15:44:31]Write to MH i2c: 01 00 00 2D 92 BF [15:44:31]Write i2c OK [15:44:31]MH_I2C_Read... [15:44:31]Read from MH i2c: 01 [15:44:31]MH_I2C_Read... [15:44:31]Read from MH i2c: 01 07 00 [15:44:31]MH_I2C_Read... [15:44:31]Read from MH i2c: 01 07 00 2D 92 00 00 00 00 00 02 0D D5 [15:44:31]RasterBufferAndPrint [15:44:31]line [15:44:31]line [15:44:31]line [15:44:31]line [15:44:31]line [15:44:31]written 0, free lines is 3339 [15:44:31]MH_Cut [15:44:31]Write to MH i2c: D1 01 00 34 92 01 98 [15:44:31]Write i2c OK [15:44:31]MH_I2C_Read... [15:44:31]Read from MH i2c: D1 [15:44:31]MH_I2C_Read... [15:44:31]Read from MH i2c: D1 01 00 [15:44:31]MH_I2C_Read... [15:44:31]Read from MH i2c: D1 01 00 34 92 00 97 [15:44:31]Write to MH i2c: 01 00 00 35 92 C7 [15:44:31]Write i2c OK [15:44:31]MH_I2C_Read... [15:44:32]OFD Sender: No OFD packet to send [15:44:32]*** Cut start [15:44:32]*** Partial cut [15:44:32]*** CUTSNS_PIN = 1 [15:44:32]*** CUTSNS_PIN = 0 [15:44:32]*** Brake cut motor [15:44:33]Read from MH i2c: 01 [15:44:33]MH_I2C_Read... [15:44:33]*** Stop cut motor [15:44:33]*** Cut end [15:44:33]Read from MH i2c: 01 07 00 [15:44:33]MH_I2C_Read... [15:44:33]Read from MH i2c: 01 07 00 35 92 00 00 00 00 00 FF 0F DC [15:44:33]process_action close_receipt done [15:44:33]requested_data is exist [15:44:33]produce_requested_data [15:44:33]requested_item fm.sn is exist - process it [15:44:33]wFMCommunicate request_size=4 [15:44:33]MH_SAM_APDU [15:44:33]CAPDU: 80 11 00 00 [15:44:33]Write to MH i2c: E2 08 00 36 92 80 11 00 00 00 00 00 00 42 [15:44:33]Write i2c OK [15:44:33]MH_I2C_Read... [15:44:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:44:33]Read from MH i2c: E2 [15:44:33]MH_I2C_Read... [15:44:33]Read from MH i2c: E2 17 00 [15:44:33]MH_I2C_Read... [15:44:33]Read from MH i2c: E2 17 00 36 92 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 90 [15:44: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:44:33]wFMCommunicate OK [15:44:33]requested_item fd.num is exist - process it [15:44:33]SAM_PROTO_GetFieldsCounters [15:44:33]wFMCommunicate request_size=4 [15:44:33]MH_SAM_APDU [15:44:33]CAPDU: 80 13 00 00 [15:44:33]Write to MH i2c: E2 08 00 37 92 80 13 00 00 00 00 00 00 45 [15:44:33]Write i2c OK [15:44:33]MH_I2C_Read... [15:44:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:44:33]Read from MH i2c: E2 [15:44:33]MH_I2C_Read... [15:44:33]Read from MH i2c: E2 62 00 [15:44:33]MH_I2C_Read... [15:44:33]Read from MH i2c: E2 62 00 37 92 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 F5 [15:44: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 B0 76 00 00 0E 04 04 00 72 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 [15:44:33]wFMCommunicate OK [15:44:33]SAM_PROTO_GetFieldsCounters done [15:44:33]requested_item shift.num is exist - process it [15:44:33]requested_item shift.opened is exist - process it [15:44:33]req_shift_opened [15:44:33]FM_GetShiftState [15:44:33]SAM_PROTO_GetShiftState [15:44:33]wFMCommunicate request_size=4 [15:44:33]MH_SAM_APDU [15:44:33]CAPDU: 80 13 01 00 [15:44:33]Write to MH i2c: E2 08 00 38 92 80 13 01 00 00 00 00 00 47 [15:44:33]Write i2c OK [15:44:33]MH_I2C_Read... [15:44:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:44:33]Read from MH i2c: E2 [15:44:33]MH_I2C_Read... [15:44:33]Read from MH i2c: E2 0E 00 [15:44:33]MH_I2C_Read... [15:44:33]Read from MH i2c: E2 0E 00 38 92 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 2D [15:44:33]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [15:44:33]wFMCommunicate OK [15:44:33]SAM_PROTO_GetShiftState done [15:44:33]FM_GetShiftState done [15:44:33]req_shift_opened done [15:44:33]requested_item shift.open_date is exist - process it [15:44:33]req_shift_open_date [15:44:33]req_shift_open_date done [15:44:33]produce_requested_data done [15:44:33]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30384,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [15:44:33]process_action_free close_receipt [15:44:33]json_value_free [15:44:33]json_value_free done [15:44:33]process_json_proto returns [15:44:33]Send response to host [15:44:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30384,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [15:44:33]free response buf [15:44:33]execute_script done [15:44:33]execute_script returns [15:44:33]free content buf [15:44:33]Sock 7.Close socket [15:44:33]Sock 7.Thread stoped [15:44:37]OFD Sender: No OFD packet to send [15:44:42]OFD Sender: No OFD packet to send [15:44:47]OFD Sender: No OFD packet to send [15:44:52]OFD Sender: No OFD packet to send [15:44:57]OFD Sender: No OFD packet to send [15:45:02]OFD Sender: No OFD packet to send [15:45:07]OFD Sender: No OFD packet to send [15:45:12]OFD Sender: No OFD packet to send [15:45:17]OFD Sender: No OFD packet to send [15:45:22]OFD Sender: No OFD packet to send [15:45:27]OFD Sender: No OFD packet to send [15:45:32]OFD Sender: No OFD packet to send [15:45:37]OFD Sender: No OFD packet to send [15:45:42]OFD Sender: No OFD packet to send [15:45:47]OFD Sender: No OFD packet to send [15:45:52]OFD Sender: No OFD packet to send [15:45:57]OFD Sender: No OFD packet to send [15:46:02]OFD Sender: No OFD packet to send [15:46:07]OFD Sender: No OFD packet to send [15:46:12]OFD Sender: No OFD packet to send [15:46:17]OFD Sender: No OFD packet to send [15:46:22]OFD Sender: No OFD packet to send [15:46:27]OFD Sender: No OFD packet to send [15:46:32]OFD Sender: No OFD packet to send [15:46:37]OFD Sender: No OFD packet to send [15:46:42]OFD Sender: No OFD packet to send [15:46:47]OFD Sender: No OFD packet to send [15:46:52]OFD Sender: No OFD packet to send [15:46:57]OFD Sender: No OFD packet to send [15:47:02]OFD Sender: No OFD packet to send [15:47:07]OFD Sender: No OFD packet to send [15:47:12]OFD Sender: No OFD packet to send [15:47:17]OFD Sender: No OFD packet to send [15:47:22]OFD Sender: No OFD packet to send [15:47:27]OFD Sender: No OFD packet to send [15:47:32]OFD Sender: No OFD packet to send [15:47:37]OFD Sender: No OFD packet to send [15:47:42]OFD Sender: No OFD packet to send [15:47:47]OFD Sender: No OFD packet to send [15:47:52]OFD Sender: No OFD packet to send [15:47:57]OFD Sender: No OFD packet to send [15:48:02]OFD Sender: No OFD packet to send [15:48:07]OFD Sender: No OFD packet to send [15:48:11]accept exits with 9 [15:48:11]New connection [15:48:11]New thread 3067370852 created [15:48:11]Thread 3067514212 joined [15:48:11]Waiting for new connection... [15:48:11] Sock 9.Parse request [15:48:11]Sock 9.Check first char [15:48:11]Sock 9.First char is OK [15:48:11]request: POST /json_proto HTTP/1.0 [15:48:11]Method: POST [15:48:11]URL: /json_proto [15:48:11]Method is POST - this is cgi request [15:48:11]url: /json_proto [15:48:11]query_string will be loaded in cgi processing [15:48:11]execute_cgi json_proto POST (null) [15:48:11]execute_cgi path=json_proto method=POST [15:48:11]POST find Content-Length [15:48:11]Host: 172.17.51.3:8080 [15:48:11]Content-Length: 677 [15:48:11]Content-Type: application/json [15:48:11] [15:48:11]POST finish read [15:48:11]Found Content-Length = 677 [15:48:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342780", "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:48:11]execute_script... [15: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)342780", "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:48:11]POST & json_proto [15:48:11]process_json_proto [15:48:11]json parsed OK: [15:48:11]protocol is kg_v1.0 [15:48:11]action value=close_receipt [15:48:11]process_action close_receipt [15:48:11]cmd_close_receipt [15:48:11]MH_GetDate [15:48:11]Write to MH i2c: F0 00 00 39 92 BA [15:48:11]Write i2c OK [15:48:11]MH_I2C_Read... [15:48:11]Read from MH i2c: F0 [15:48:11]MH_I2C_Read... [15:48:11]Read from MH i2c: F0 09 00 [15:48:11]MH_I2C_Read... [15:48:11]Read from MH i2c: F0 09 00 39 92 00 45 26 15 67 04 C1 95 66 6A [15:48:11]GetLastDocTimeStamp 1729439079 [15:48:11]current date 1729439301 [15:48:11]FM_GetShiftState [15:48:11]SAM_PROTO_GetShiftState [15:48:11]wFMCommunicate request_size=4 [15:48:11]MH_SAM_APDU [15:48:11]CAPDU: 80 13 01 00 [15:48:11]Write to MH i2c: E2 08 00 3A 92 80 13 01 00 00 00 00 00 49 [15:48:11]Write i2c OK [15:48:11]MH_I2C_Read... [15:48:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:48:11]Read from MH i2c: E2 [15:48:11]MH_I2C_Read... [15:48:11]Read from MH i2c: E2 0E 00 [15:48:11]MH_I2C_Read... [15:48:11]Read from MH i2c: E2 0E 00 3A 92 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 2F [15:48:11]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [15:48:11]wFMCommunicate OK [15:48:11]SAM_PROTO_GetShiftState done [15:48:11]FM_GetShiftState done [15:48:11]opened in 1729384718 [15:48:11]opened+sec_in_day 1729471118 [15:48:11]quantity*price = 50041 [15:48:11]sum+1 = 50042 [15:48: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 СНО: Общий режим Чек 167 20.10.2024 15:48 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30385 ФПД: 226509096582718 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T154821&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30385&fm=226509096582718&tin=02508201610067®Number=0000000000186857&sum=50000 [15:48:12]StoreToDocumentArchive [15:48:12]shift 114 fd 30385 [15:48:12]save to /storage/0114/doc_00030385 [15:48:12]save last doc name /storage/0114/doc_00030385 to /storage/kkm_last_doc_name [15:48:12]save OK [15:48:12]Clear old archive folders... [15:48:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:48:12]tlvbuf is 00CDFBA0 [15:48:12]SAM_PROTO_ClearQueue [15:48:12]wFMCommunicate request_size=4 [15:48:12]MH_SAM_APDU [15:48:12]CAPDU: 80 09 00 00 [15:48:12]Write to MH i2c: E2 08 00 47 92 80 09 00 00 00 00 00 00 4B [15:48:12]Write i2c OK [15:48:12]MH_I2C_Read... [15:48:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:48:12]Read from MH i2c: E2 [15:48:12]MH_I2C_Read... [15:48:12]Read from MH i2c: E2 03 00 [15:48:12]MH_I2C_Read... [15:48:12]Read from MH i2c: E2 03 00 47 92 00 90 00 4D [15:48:12]RAPDU: 90 00 [15:48:12]wFMCommunicate OK [15:48:12]SAM_PROTO_ClearQueue done [15:48:12]KKMCreateOFDPacket [15:48:12]OFDProtocolAddRootSTLVToBuf [15:48:12]FM_MakeSignedData [15:48:12]FM_MakeSignedData [15:48:12]SAM_PROTO_SignData [15:48:12]wFMCommunicate request_size=4 [15:48:12]MH_SAM_APDU [15:48:12]CAPDU: 80 0D 01 02 [15:48:12]Write to MH i2c: E2 08 00 48 92 80 0D 01 02 00 00 00 00 53 [15:48:12]Write i2c OK [15:48:12]MH_I2C_Read... [15:48:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:48:12]Read from MH i2c: E2 [15:48:12]MH_I2C_Read... [15:48:12]Read from MH i2c: E2 03 00 [15:48:12]MH_I2C_Read... [15:48:12]Read from MH i2c: E2 03 00 48 92 00 90 00 4E [15:48:12]RAPDU: 90 00 [15:48:12]wFMCommunicate OK [15:48:12]wFMCommunicate request_size=255 [15:48:12]MH_SAM_APDU [15: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 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 A7 00 00 00 F4 03 04 00 45 26 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 CE [15:48:12]Write to MH i2c: E2 02 01 49 92 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 A7 00 00 00 F4 03 04 00 45 26 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 CE 00 00 D9 [15:48:12]Write i2c OK [15:48:12]MH_I2C_Read... [15:48:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:48:12]Read from MH i2c: E2 [15:48:12]MH_I2C_Read... [15:48:12]Read from MH i2c: E2 03 00 [15:48:12]MH_I2C_Read... [15:48:12]Read from MH i2c: E2 03 00 49 92 00 90 00 4F [15:48:12]RAPDU: 90 00 [15:48:12]wFMCommunicate OK [15:48:12]wFMCommunicate request_size=10 [15:48:12]MH_SAM_APDU [15:48:12]CAPDU: 80 0D 02 02 05 02 42 3D 7E 3E [15:48:12]Write to MH i2c: E2 0D 00 4A 92 80 0D 02 02 05 00 02 42 3D 7E 3E 00 00 9D [15:48:12]Write i2c OK [15:48:12]MH_I2C_Read... [15:48:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:48:12]Read from MH i2c: E2 [15:48:12]MH_I2C_Read... [15:48:12]Read from MH i2c: E2 03 00 [15:48:12]MH_I2C_Read... [15:48:12]Read from MH i2c: E2 03 00 4A 92 00 90 00 50 [15:48:12]RAPDU: 90 00 [15:48:12]wFMCommunicate OK [15:48:12]wFMCommunicate request_size=4 [15:48:12]MH_SAM_APDU [15:48:12]CAPDU: 80 0D 03 02 [15:48:12]Write to MH i2c: E2 08 00 4B 92 80 0D 03 02 00 00 00 00 58 [15:48:12]Write i2c OK [15:48:12]MH_I2C_Read... [15:48:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:48:12]Read from MH i2c: E2 [15:48:12]MH_I2C_Read... [15:48:12]Read from MH i2c: E2 0B 00 [15:48:12]MH_I2C_Read... [15:48:12]Read from MH i2c: E2 0B 00 4B 92 00 D5 BA 98 0C FC A9 6D 58 90 00 F6 [15:48:12]RAPDU: D5 BA 98 0C FC A9 6D 58 90 00 [15:48:12]wFMCommunicate OK [15:48:12]SAM_PROTO_SignData done [15:48:12]FM_MakeSignedData done [15:48:12]CreateOFDProtocolMessage [15:48:12]wFMCommunicate request_size=4 [15:48:12]MH_SAM_APDU [15:48:12]CAPDU: 80 11 00 00 [15:48:12]Write to MH i2c: E2 08 00 4C 92 80 11 00 00 00 00 00 00 58 [15:48:12]Write i2c OK [15:48:12]MH_I2C_Read... [15:48:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:48:12]Read from MH i2c: E2 [15:48:12]MH_I2C_Read... [15:48:12]Read from MH i2c: E2 17 00 [15:48:12]MH_I2C_Read... [15:48:12]Read from MH i2c: E2 17 00 4C 92 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 A6 [15: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 [15:48:12]wFMCommunicate OK [15:48:12]CreateOFDProtocolMessage done [15:48:12]OFDSenderStorePacket 30385 [15:48:12]StoreOFDPacket docnum=30385 [15: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 1A F1 07 01 DF 1B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 A7 00 00 00 F4 03 04 00 45 26 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 CE 02 42 3D 7E 3E D5 BA 98 0C FC A9 6D 58 [15:48:12]CheckFolder [15:48:12]dirname=/storage/ofd_packets [15:48:12]CheckFolder done [15:48:12]ProducePacketName [15:48:12]name=ofd_packets/00030385 [15:48:12]NVStorageSaveData ofd_packets/00030385 [15:48:12]File name is /storage/ofd_packets/00030385 [15:48:12]Write 301 bytes [15:48:12]NVStorageSaveData done [15:48:12]OFDSenderStorePacket done [15:48:12]KKMCreateOFDPacket done [15:48:12]NVStorageSaveData kkm_last_timestamp [15:48:12]File name is /storage/kkm_last_timestamp [15:48:12]Write 4 bytes [15:48:12]NVStorageSaveData done [15:48:12]ExternCall_PrintAddStr [15:48:12]wPrintStart [15:48:12]Write to MH i2c: 01 00 00 4D 92 DF [15:48:12]Write i2c OK [15:48:12]MH_I2C_Read... [15:48:12]Read from MH i2c: 01 [15:48:12]MH_I2C_Read... [15:48:12]Read from MH i2c: 01 07 00 [15:48:12]MH_I2C_Read... [15:48:12]Read from MH i2c: 01 07 00 4D 92 00 00 00 00 00 FF 0F F4 [15:48:12]RasterBufferAndPrint [15:48:12]line Счет N : (1)342780 [15:48:12]line ИНН: 02508201610067 [15:48:12]line Контрольно-Кассовый Чек [15:48:12]line ПРОДАЖА [15:48:12]line ТРК (МРК, ГНК) : 53 [15:48:12]line Товар: 2710124130 [15:48:12]line Аи-92-К-2 [15:48:12]line 7.480 * 66.90 [15:48:12]line = 500.41 [15:48:12]line НДС 12% НСП 1% [15:48:12]line > о реализуемом товаре [15:48:12]line ОКРУГЛЕНИЕ: -0.41 [15:48:12]line ИТОГО: 500.00 [15:48:12]line Внесено: 500.00 [15:48:12]line СДАЧА: 0.00 [15:48:12]line НСП 1% : 4.43 [15:48:12]line НДС 12% : 53.14 [15:48:12]line Наличными: 500.00 [15:48:12]line Безнал.: 0.00 [15:48:12]line Место: АЗС № 78 "Партнер Нефть" [15:48:12]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [15:48:12]line СНО: Общий режим [15:48:12]line Чек 167 20.10.2024 15:48 [15:48:12]line Смена: 114 ФФД: 1.0 [15:48:12]line ЗНМ: 0300000137 [15:48:12]line РНМ: 0000000000186857 [15:48:12]line Версия ККМ: v1.0 [15:48:12]line ФМ: 0000000002094219 [15:48:12]line ФД: 30385 [15:48:12]line ФПД: 226509096582718 [15:48:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T154821&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30385&fm=226509096582718&tin=02508201610067®Number=0000000000186857&sum=50000 [15:48:13]OFD Sender: Processing packet 30385 [packets to send 10, broken 9] [15:48:13]ProducePacketName [15:48:13]name=ofd_packets/00030385 [15:48:13]OFD Sender: To server: pG, [15:48:13]CommunicateWithHost lk.salyk.kg:30040 [15:48:13]ConnectInit lk.salyk.kg [15:48:13]written 0, free lines is 4095 [15:48:13]Connected sock=10 [15: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 1A F1 07 01 DF 1B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 A7 00 00 00 F4 03 04 00 45 26 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 CE 02 42 3D 7E 3E D5 BA 98 0C FC A9 6D 58 [15: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 AE B3 47 00 B9 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 B1 76 00 00 F4 03 04 00 C8 D0 14 67 B6 04 01 00 00 0F 18 90 BB DB 46 28 37 [15:48:13]CommunicateWithHost err = 0 [15:48:13]CheckOFDResponse [15:48:13]1017 (14) - 77093643461234 [15:48:13]1041 (16) - 0000000002094219 [15:48:13]1040 (4) - 30385 [15:48:13]1012 (4) - 20.10.2024 09:43 [15:48:13]1206 (1) - 0 [15:48:13]OFD Sender: Remove packet 30385 [15:48:13]ProducePacketName [15:48:13]name=ofd_packets/00030385 [15:48:13]NVStorageDeleteData [15:48:13]Write to MH i2c: 01 00 00 78 92 0A [15:48:13]Write i2c OK [15:48:13]MH_I2C_Read... [15:48:13]Read from MH i2c: 01 [15:48:13]MH_I2C_Read... [15:48:13]Read from MH i2c: 01 07 00 [15:48:13]MH_I2C_Read... [15:48:13]Read from MH i2c: 01 07 00 78 92 00 00 00 00 00 FB 0C 18 [15:48:13]RasterBufferAndPrint [15:48:13]line [15:48:13]line [15:48:13]line [15:48:13]line [15:48:13]line [15:48:13]written 0, free lines is 3333 [15:48:13]MH_Cut [15:48:13]Write to MH i2c: D1 01 00 7F 92 01 E3 [15:48:13]Write i2c OK [15:48:13]MH_I2C_Read... [15:48:13]Read from MH i2c: D1 [15:48:13]MH_I2C_Read... [15:48:13]Read from MH i2c: D1 01 00 [15:48:13]MH_I2C_Read... [15:48:13]Read from MH i2c: D1 01 00 7F 92 00 E2 [15:48:13]Write to MH i2c: 01 00 00 80 92 12 [15:48:13]Write i2c OK [15:48:13]MH_I2C_Read... [15:48:14]OFD Sender: No OFD packet to send [15:48:14]*** Cut start [15:48:14]*** Partial cut [15:48:14]*** CUTSNS_PIN = 1 [15:48:14]*** CUTSNS_PIN = 0 [15:48:14]*** Brake cut motor [15:48:14]Read from MH i2c: 01 [15:48:14]MH_I2C_Read... [15:48:14]*** Stop cut motor [15:48:15]*** Cut end [15:48:15]Read from MH i2c: 01 07 00 [15:48:15]MH_I2C_Read... [15:48:15]Read from MH i2c: 01 07 00 80 92 00 00 00 00 00 FF 0F 27 [15:48:15]process_action close_receipt done [15:48:15]requested_data is exist [15:48:15]produce_requested_data [15:48:15]requested_item fm.sn is exist - process it [15:48:15]wFMCommunicate request_size=4 [15:48:15]MH_SAM_APDU [15:48:15]CAPDU: 80 11 00 00 [15:48:15]Write to MH i2c: E2 08 00 81 92 80 11 00 00 00 00 00 00 8D [15:48:15]Write i2c OK [15:48:15]MH_I2C_Read... [15:48:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:48:15]Read from MH i2c: E2 [15:48:15]MH_I2C_Read... [15:48:15]Read from MH i2c: E2 17 00 [15:48:15]MH_I2C_Read... [15:48:15]Read from MH i2c: E2 17 00 81 92 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 DB [15: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 [15:48:15]wFMCommunicate OK [15:48:15]requested_item fd.num is exist - process it [15:48:15]SAM_PROTO_GetFieldsCounters [15:48:15]wFMCommunicate request_size=4 [15:48:15]MH_SAM_APDU [15:48:15]CAPDU: 80 13 00 00 [15:48:15]Write to MH i2c: E2 08 00 82 92 80 13 00 00 00 00 00 00 90 [15:48:15]Write i2c OK [15:48:15]MH_I2C_Read... [15:48:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:48:15]Read from MH i2c: E2 [15:48:15]MH_I2C_Read... [15:48:15]Read from MH i2c: E2 62 00 [15:48:15]MH_I2C_Read... [15:48:15]Read from MH i2c: E2 62 00 82 92 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 44 [15: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 B1 76 00 00 0E 04 04 00 72 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 [15:48:15]wFMCommunicate OK [15:48:15]SAM_PROTO_GetFieldsCounters done [15:48:15]requested_item shift.num is exist - process it [15:48:15]requested_item shift.opened is exist - process it [15:48:15]req_shift_opened [15:48:15]FM_GetShiftState [15:48:15]SAM_PROTO_GetShiftState [15:48:15]wFMCommunicate request_size=4 [15:48:15]MH_SAM_APDU [15:48:15]CAPDU: 80 13 01 00 [15:48:15]Write to MH i2c: E2 08 00 83 92 80 13 01 00 00 00 00 00 92 [15:48:15]Write i2c OK [15:48:15]MH_I2C_Read... [15:48:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:48:15]Read from MH i2c: E2 [15:48:15]MH_I2C_Read... [15:48:15]Read from MH i2c: E2 0E 00 [15:48:15]MH_I2C_Read... [15:48:15]Read from MH i2c: E2 0E 00 83 92 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 78 [15:48:15]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [15:48:15]wFMCommunicate OK [15:48:15]SAM_PROTO_GetShiftState done [15:48:15]FM_GetShiftState done [15:48:15]req_shift_opened done [15:48:15]requested_item shift.open_date is exist - process it [15:48:15]req_shift_open_date [15:48:15]req_shift_open_date done [15:48:15]produce_requested_data done [15:48:15]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30385,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [15:48:15]process_action_free close_receipt [15:48:15]json_value_free [15:48:15]json_value_free done [15:48:15]process_json_proto returns [15:48:15]Send response to host [15:48:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30385,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [15:48:15]free response buf [15:48:15]execute_script done [15:48:15]execute_script returns [15:48:15]free content buf [15:48:15]Sock 9.Close socket [15:48:15]Sock 9.Thread stoped [15:48:19]OFD Sender: No OFD packet to send [15:48:24]OFD Sender: No OFD packet to send [15:48:29]OFD Sender: No OFD packet to send [15:48:34]OFD Sender: No OFD packet to send [15:48:39]OFD Sender: No OFD packet to send [15:48:44]OFD Sender: No OFD packet to send [15:48:48]accept exits with 7 [15:48:48]New connection [15:48:48]New thread 3067514212 created [15:48:48]Thread 3067370852 joined [15:48:48]Waiting for new connection... [15:48:48] Sock 7.Parse request [15:48:48]Sock 7.Check first char [15:48:48]Sock 7.First char is OK [15:48:48]request: POST /json_proto HTTP/1.0 [15:48:48]Method: POST [15:48:48]URL: /json_proto [15:48:48]Method is POST - this is cgi request [15:48:48]url: /json_proto [15:48:48]query_string will be loaded in cgi processing [15:48:48]execute_cgi json_proto POST (null) [15:48:48]execute_cgi path=json_proto method=POST [15:48:48]POST find Content-Length [15:48:48]Host: 172.17.51.3:8080 [15:48:48]Content-Length: 679 [15:48:48]Content-Type: application/json [15:48:48] [15:48:48]POST finish read [15:48:48]Found Content-Length = 679 [15:48:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342781", "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" ] } } [15:48:48]execute_script... [15:48: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)342781", "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" ] } } [15:48:48]POST & json_proto [15:48:48]process_json_proto [15:48:48]json parsed OK: [15:48:48]protocol is kg_v1.0 [15:48:48]action value=close_receipt [15:48:48]process_action close_receipt [15:48:48]cmd_close_receipt [15:48:48]MH_GetDate [15:48:48]Write to MH i2c: F0 00 00 84 92 05 [15:48:48]Write i2c OK [15:48:48]MH_I2C_Read... [15:48:48]Read from MH i2c: F0 [15:48:48]MH_I2C_Read... [15:48:48]Read from MH i2c: F0 09 00 [15:48:48]MH_I2C_Read... [15:48:48]Read from MH i2c: F0 09 00 84 92 00 6A 26 15 67 04 C1 95 66 DA [15:48:48]GetLastDocTimeStamp 1729439301 [15:48:48]current date 1729439338 [15:48:48]FM_GetShiftState [15:48:48]SAM_PROTO_GetShiftState [15:48:48]wFMCommunicate request_size=4 [15:48:48]MH_SAM_APDU [15:48:48]CAPDU: 80 13 01 00 [15:48:48]Write to MH i2c: E2 08 00 85 92 80 13 01 00 00 00 00 00 94 [15:48:48]Write i2c OK [15:48:48]MH_I2C_Read... [15:48:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:48:48]Read from MH i2c: E2 [15:48:48]MH_I2C_Read... [15:48:48]Read from MH i2c: E2 0E 00 [15:48:48]MH_I2C_Read... [15:48:48]Read from MH i2c: E2 0E 00 85 92 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 7A [15:48:48]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [15:48:48]wFMCommunicate OK [15:48:48]SAM_PROTO_GetShiftState done [15:48:48]FM_GetShiftState done [15:48:48]opened in 1729384718 [15:48:48]opened+sec_in_day 1729471118 [15:48:48]quantity*price = 100050 [15:48:48]sum+1 = 100052 [15:48:48]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 СНО: Общий режим Чек 168 20.10.2024 15:48 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30386 ФПД: 194148541219347 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T154858&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30386&fm=194148541219347&tin=02508201610067®Number=0000000000186857&sum=100000 [15:48:49]StoreToDocumentArchive [15:48:49]shift 114 fd 30386 [15:48:49]save to /storage/0114/doc_00030386 [15:48:49]save last doc name /storage/0114/doc_00030386 to /storage/kkm_last_doc_name [15:48:49]save OK [15:48:49]Clear old archive folders... [15:48:49]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:48:49]tlvbuf is 00B072B0 [15:48:49]SAM_PROTO_ClearQueue [15:48:49]wFMCommunicate request_size=4 [15:48:49]MH_SAM_APDU [15:48:49]CAPDU: 80 09 00 00 [15:48:49]Write to MH i2c: E2 08 00 92 92 80 09 00 00 00 00 00 00 96 [15:48:49]Write i2c OK [15:48:49]MH_I2C_Read... [15:48:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:48:49]Read from MH i2c: E2 [15:48:49]MH_I2C_Read... [15:48:49]Read from MH i2c: E2 03 00 [15:48:49]MH_I2C_Read... [15:48:49]Read from MH i2c: E2 03 00 92 92 00 90 00 98 [15:48:49]RAPDU: 90 00 [15:48:49]wFMCommunicate OK [15:48:49]SAM_PROTO_ClearQueue done [15:48:49]KKMCreateOFDPacket [15:48:49]OFDProtocolAddRootSTLVToBuf [15:48:49]FM_MakeSignedData [15:48:49]FM_MakeSignedData [15:48:49]SAM_PROTO_SignData [15:48:49]wFMCommunicate request_size=4 [15:48:49]MH_SAM_APDU [15:48:49]CAPDU: 80 0D 01 02 [15:48:49]Write to MH i2c: E2 08 00 93 92 80 0D 01 02 00 00 00 00 9E [15:48:49]Write i2c OK [15:48:49]MH_I2C_Read... [15:48:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:48:49]Read from MH i2c: E2 [15:48:49]MH_I2C_Read... [15:48:49]Read from MH i2c: E2 03 00 [15:48:49]MH_I2C_Read... [15:48:49]Read from MH i2c: E2 03 00 93 92 00 90 00 99 [15:48:49]RAPDU: 90 00 [15:48:49]wFMCommunicate OK [15:48:49]wFMCommunicate request_size=255 [15:48:49]MH_SAM_APDU [15:48:49]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 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 A8 00 00 00 F4 03 04 00 6A 26 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 B0 93 BA D5 [15:48:49]Write to MH i2c: E2 02 01 94 92 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 A8 00 00 00 F4 03 04 00 6A 26 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 B0 93 BA D5 00 00 45 [15:48:49]Write i2c OK [15:48:49]MH_I2C_Read... [15:48:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:48:50]Read from MH i2c: E2 [15:48:50]MH_I2C_Read... [15:48:50]Read from MH i2c: E2 03 00 [15:48:50]MH_I2C_Read... [15:48:50]Read from MH i2c: E2 03 00 94 92 00 90 00 9A [15:48:50]RAPDU: 90 00 [15:48:50]wFMCommunicate OK [15:48:50]wFMCommunicate request_size=7 [15:48:50]MH_SAM_APDU [15:48:50]CAPDU: 80 0D 02 02 02 42 13 [15:48:50]Write to MH i2c: E2 0A 00 95 92 80 0D 02 02 02 00 42 13 00 00 FA [15:48:50]Write i2c OK [15:48:50]MH_I2C_Read... [15:48:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:48:50]Read from MH i2c: E2 [15:48:50]MH_I2C_Read... [15:48:50]Read from MH i2c: E2 03 00 [15:48:50]MH_I2C_Read... [15:48:50]Read from MH i2c: E2 03 00 95 92 00 90 00 9B [15:48:50]RAPDU: 90 00 [15:48:50]wFMCommunicate OK [15:48:50]wFMCommunicate request_size=4 [15:48:50]MH_SAM_APDU [15:48:50]CAPDU: 80 0D 03 02 [15:48:50]Write to MH i2c: E2 08 00 96 92 80 0D 03 02 00 00 00 00 A3 [15:48:50]Write i2c OK [15:48:50]MH_I2C_Read... [15:48:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:48:50]Read from MH i2c: E2 [15:48:50]MH_I2C_Read... [15:48:50]Read from MH i2c: E2 0B 00 [15:48:50]MH_I2C_Read... [15:48:50]Read from MH i2c: E2 0B 00 96 92 00 A1 D7 B3 C2 07 F0 50 7B 90 00 53 [15:48:50]RAPDU: A1 D7 B3 C2 07 F0 50 7B 90 00 [15:48:50]wFMCommunicate OK [15:48:50]SAM_PROTO_SignData done [15:48:50]FM_MakeSignedData done [15:48:50]CreateOFDProtocolMessage [15:48:50]wFMCommunicate request_size=4 [15:48:50]MH_SAM_APDU [15:48:50]CAPDU: 80 11 00 00 [15:48:50]Write to MH i2c: E2 08 00 97 92 80 11 00 00 00 00 00 00 A3 [15:48:50]Write i2c OK [15:48:50]MH_I2C_Read... [15:48:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:48:50]Read from MH i2c: E2 [15:48:50]MH_I2C_Read... [15:48:50]Read from MH i2c: E2 17 00 [15:48:50]MH_I2C_Read... [15:48:50]Read from MH i2c: E2 17 00 97 92 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 F1 [15:48: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:48:50]wFMCommunicate OK [15:48:50]CreateOFDProtocolMessage done [15:48:50]OFDSenderStorePacket 30386 [15:48:50]StoreOFDPacket docnum=30386 [15:48: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 0C 01 00 00 0F AC 04 01 26 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 A8 00 00 00 F4 03 04 00 6A 26 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 B0 93 BA D5 42 13 A1 D7 B3 C2 07 F0 50 7B [15:48:50]CheckFolder [15:48:50]dirname=/storage/ofd_packets [15:48:50]CheckFolder done [15:48:50]ProducePacketName [15:48:50]name=ofd_packets/00030386 [15:48:50]NVStorageSaveData ofd_packets/00030386 [15:48:50]File name is /storage/ofd_packets/00030386 [15:48:50]Write 298 bytes [15:48:50]NVStorageSaveData done [15:48:50]OFDSenderStorePacket done [15:48:50]KKMCreateOFDPacket done [15:48:50]NVStorageSaveData kkm_last_timestamp [15:48:50]File name is /storage/kkm_last_timestamp [15:48:50]Write 4 bytes [15:48:50]NVStorageSaveData done [15:48:50]ExternCall_PrintAddStr [15:48:50]wPrintStart [15:48:50]Write to MH i2c: 01 00 00 98 92 2A [15:48:50]Write i2c OK [15:48:50]MH_I2C_Read... [15:48:50]Read from MH i2c: 01 [15:48:50]MH_I2C_Read... [15:48:50]Read from MH i2c: 01 07 00 [15:48:50]MH_I2C_Read... [15:48:50]Read from MH i2c: 01 07 00 98 92 00 00 00 00 00 FF 0F 3F [15:48:50]RasterBufferAndPrint [15:48:50]line Счет N : (1)342781 [15:48:50]line ИНН: 02508201610067 [15:48:50]line Контрольно-Кассовый Чек [15:48:50]line ПРОДАЖА [15:48:50]line ТРК (МРК, ГНК) : 34 [15:48:50]line Товар: 2710194210 [15:48:50]line ДТ-К-2 [15:48:50]line 13.130 * 76.20 [15:48:50]line = 1000.51 [15:48:50]line НДС 12% НСП 1% [15:48:50]line > о реализуемом товаре [15:48:50]line ОКРУГЛЕНИЕ: -0.51 [15:48:50]line ИТОГО: 1000.00 [15:48:50]line Внесено: 1000.00 [15:48:50]line СДАЧА: 0.00 [15:48:50]line НСП 1% : 8.85 [15:48:50]line НДС 12% : 106.25 [15:48:50]line Наличными: 1000.00 [15:48:50]line Безнал.: 0.00 [15:48:50]line Место: АЗС № 78 "Партнер Нефть" [15:48:50]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [15:48:50]line СНО: Общий режим [15:48:50]line Чек 168 20.10.2024 15:48 [15:48:50]line Смена: 114 ФФД: 1.0 [15:48:50]line ЗНМ: 0300000137 [15:48:50]line РНМ: 0000000000186857 [15:48:50]line Версия ККМ: v1.0 [15:48:50]line ФМ: 0000000002094219 [15:48:50]line ФД: 30386 [15:48:50]line ФПД: 194148541219347 [15:48:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T154858&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30386&fm=194148541219347&tin=02508201610067®Number=0000000000186857&sum=100000 [15:48:50]OFD Sender: Processing packet 30386 [packets to send 10, broken 9] [15:48:50]ProducePacketName [15:48:50]name=ofd_packets/00030386 [15:48:50]OFD Sender: To server: pG, [15:48:50]CommunicateWithHost lk.salyk.kg:30040 [15:48:50]ConnectInit lk.salyk.kg [15:48:50]written 0, free lines is 4095 [15:48:50]Connected sock=10 [15:48: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 0C 01 00 00 0F AC 04 01 26 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 A8 00 00 00 F4 03 04 00 6A 26 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 B0 93 BA D5 42 13 A1 D7 B3 C2 07 F0 50 7B [15:48: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 F1 D6 47 00 ED 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 B2 76 00 00 F4 03 04 00 EE D0 14 67 B6 04 01 00 00 C8 55 1D 36 92 2E 93 8A [15:48:50]CommunicateWithHost err = 0 [15:48:50]CheckOFDResponse [15:48:50]1017 (14) - 77093643461234 [15:48:50]1041 (16) - 0000000002094219 [15:48:50]1040 (4) - 30386 [15:48:50]1012 (4) - 20.10.2024 09:44 [15:48:50]1206 (1) - 0 [15:48:50]OFD Sender: Remove packet 30386 [15:48:50]ProducePacketName [15:48:50]name=ofd_packets/00030386 [15:48:50]NVStorageDeleteData [15:48:51]Write to MH i2c: 01 00 00 C3 92 55 [15:48:51]Write i2c OK [15:48:51]MH_I2C_Read... [15:48:51]Read from MH i2c: 01 [15:48:51]MH_I2C_Read... [15:48:51]Read from MH i2c: 01 07 00 [15:48:51]MH_I2C_Read... [15:48:51]Read from MH i2c: 01 07 00 C3 92 00 00 00 00 00 F9 0C 61 [15:48:51]RasterBufferAndPrint [15:48:51]line [15:48:51]line [15:48:51]line [15:48:51]line [15:48:51]line [15:48:51]written 0, free lines is 3330 [15:48:51]MH_Cut [15:48:51]Write to MH i2c: D1 01 00 CA 92 01 2E [15:48:51]Write i2c OK [15:48:51]MH_I2C_Read... [15:48:51]Read from MH i2c: D1 [15:48:51]MH_I2C_Read... [15:48:51]Read from MH i2c: D1 01 00 [15:48:51]MH_I2C_Read... [15:48:51]Read from MH i2c: D1 01 00 CA 92 00 2D [15:48:51]Write to MH i2c: 01 00 00 CB 92 5D [15:48:51]Write i2c OK [15:48:51]MH_I2C_Read... [15:48:51]OFD Sender: No OFD packet to send [15:48:51]*** Cut start [15:48:51]*** Partial cut [15:48:51]*** CUTSNS_PIN = 1 [15:48:51]*** CUTSNS_PIN = 0 [15:48:52]*** Brake cut motor [15:48:52]Read from MH i2c: 01 [15:48:52]MH_I2C_Read... [15:48:52]*** Stop cut motor [15:48:52]*** Cut end [15:48:52]Read from MH i2c: 01 07 00 [15:48:52]MH_I2C_Read... [15:48:52]Read from MH i2c: 01 07 00 CB 92 00 00 00 00 00 FF 0F 72 [15:48:52]process_action close_receipt done [15:48:52]requested_data is exist [15:48:52]produce_requested_data [15:48:52]requested_item fm.sn is exist - process it [15:48:52]wFMCommunicate request_size=4 [15:48:52]MH_SAM_APDU [15:48:52]CAPDU: 80 11 00 00 [15:48:52]Write to MH i2c: E2 08 00 CC 92 80 11 00 00 00 00 00 00 D8 [15:48:52]Write i2c OK [15:48:52]MH_I2C_Read... [15:48:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:48:52]Read from MH i2c: E2 [15:48:52]MH_I2C_Read... [15:48:52]Read from MH i2c: E2 17 00 [15:48:52]MH_I2C_Read... [15:48:52]Read from MH i2c: E2 17 00 CC 92 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 26 [15:48: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:48:52]wFMCommunicate OK [15:48:52]requested_item fd.num is exist - process it [15:48:52]SAM_PROTO_GetFieldsCounters [15:48:52]wFMCommunicate request_size=4 [15:48:52]MH_SAM_APDU [15:48:52]CAPDU: 80 13 00 00 [15:48:52]Write to MH i2c: E2 08 00 CD 92 80 13 00 00 00 00 00 00 DB [15:48:52]Write i2c OK [15:48:52]MH_I2C_Read... [15:48:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:48:52]Read from MH i2c: E2 [15:48:52]MH_I2C_Read... [15:48:52]Read from MH i2c: E2 62 00 [15:48:52]MH_I2C_Read... [15:48:52]Read from MH i2c: E2 62 00 CD 92 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 93 [15:48: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 B2 76 00 00 0E 04 04 00 72 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 [15:48:52]wFMCommunicate OK [15:48:52]SAM_PROTO_GetFieldsCounters done [15:48:52]requested_item shift.num is exist - process it [15:48:52]requested_item shift.opened is exist - process it [15:48:52]req_shift_opened [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 CE 92 80 13 01 00 00 00 00 00 DD [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 CE 92 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 C3 [15:48:52]RAPDU: 09 00 01 0E 51 14 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]req_shift_opened done [15:48:52]requested_item shift.open_date is exist - process it [15:48:52]req_shift_open_date [15:48:52]req_shift_open_date done [15:48:52]produce_requested_data done [15:48:52]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30386,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [15:48:52]process_action_free close_receipt [15:48:52]json_value_free [15:48:52]json_value_free done [15:48:52]process_json_proto returns [15:48:52]Send response to host [15:48:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30386,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [15:48:52]free response buf [15:48:52]execute_script done [15:48:52]execute_script returns [15:48:52]free content buf [15:48:52]Sock 7.Close socket [15:48:52]Sock 7.Thread stoped [15:48:56]OFD Sender: No OFD packet to send [15:49:01]OFD Sender: No OFD packet to send [15:49:06]OFD Sender: No OFD packet to send [15:49:11]OFD Sender: No OFD packet to send [15:49:16]OFD Sender: No OFD packet to send [15:49:21]OFD Sender: No OFD packet to send [15:49:26]OFD Sender: No OFD packet to send [15:49:31]OFD Sender: No OFD packet to send [15:49:36]OFD Sender: No OFD packet to send [15:49:41]OFD Sender: No OFD packet to send [15:49:46]OFD Sender: No OFD packet to send [15:49:51]OFD Sender: No OFD packet to send [15:49:56]OFD Sender: No OFD packet to send [15:50:01]OFD Sender: No OFD packet to send [15:50:06]OFD Sender: No OFD packet to send [15:50:11]OFD Sender: No OFD packet to send [15:50:16]OFD Sender: No OFD packet to send [15:50:21]OFD Sender: No OFD packet to send [15:50:26]OFD Sender: No OFD packet to send [15:50:31]OFD Sender: No OFD packet to send [15:50:36]OFD Sender: No OFD packet to send [15:50:41]OFD Sender: No OFD packet to send [15:50:46]OFD Sender: No OFD packet to send [15:50:51]OFD Sender: No OFD packet to send [15:50:56]OFD Sender: No OFD packet to send [15:51:01]OFD Sender: No OFD packet to send [15:51:06]OFD Sender: No OFD packet to send [15:51:11]OFD Sender: No OFD packet to send [15:51:16]OFD Sender: No OFD packet to send [15:51:21]OFD Sender: No OFD packet to send [15:51:26]OFD Sender: No OFD packet to send [15:51:31]OFD Sender: No OFD packet to send [15:51:36]OFD Sender: No OFD packet to send [15:51:41]OFD Sender: No OFD packet to send [15:51:46]OFD Sender: No OFD packet to send [15:51:51]OFD Sender: No OFD packet to send [15:51:56]OFD Sender: No OFD packet to send [15:52:01]OFD Sender: No OFD packet to send [15:52:06]OFD Sender: No OFD packet to send [15:52:11]OFD Sender: No OFD packet to send [15:52:16]OFD Sender: No OFD packet to send [15:52:21]OFD Sender: No OFD packet to send [15:52:26]OFD Sender: No OFD packet to send [15:52:31]OFD Sender: No OFD packet to send [15:52:36]OFD Sender: No OFD packet to send [15:52:41]OFD Sender: No OFD packet to send [15:52:46]OFD Sender: No OFD packet to send [15:52:51]OFD Sender: No OFD packet to send [15:52:56]OFD Sender: No OFD packet to send [15:53:01]OFD Sender: No OFD packet to send [15:53:06]OFD Sender: No OFD packet to send [15:53:11]OFD Sender: No OFD packet to send [15:53:11]accept exits with 9 [15:53:11]New connection [15:53:11]New thread 3067370852 created [15:53:11]Thread 3067514212 joined [15:53:11]Waiting for new connection... [15:53:11] Sock 9.Parse request [15:53:11]Sock 9.Check first char [15:53:11]Sock 9.First char is OK [15:53:11]request: POST /json_proto HTTP/1.0 [15:53:11]Method: POST [15:53:11]URL: /json_proto [15:53:11]Method is POST - this is cgi request [15:53:11]url: /json_proto [15:53:11]query_string will be loaded in cgi processing [15:53:11]execute_cgi json_proto POST (null) [15:53:11]execute_cgi path=json_proto method=POST [15:53:11]POST find Content-Length [15:53:11]Host: 172.17.51.3:8080 [15:53:11]Content-Length: 674 [15:53:11]Content-Type: application/json [15:53:11] [15:53:11]POST finish read [15:53:11]Found Content-Length = 674 [15:53:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342782", "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" : 5.250, "sum" : 400.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:53:11]execute_script... [15:53: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)342782", "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" : 5.250, "sum" : 400.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:53:11]POST & json_proto [15:53:11]process_json_proto [15:53:11]json parsed OK: [15:53:11]protocol is kg_v1.0 [15:53:11]action value=close_receipt [15:53:11]process_action close_receipt [15:53:11]cmd_close_receipt [15:53:11]MH_GetDate [15:53:11]Write to MH i2c: F0 00 00 CF 92 50 [15:53:11]Write i2c OK [15:53:11]MH_I2C_Read... [15:53:11]Read from MH i2c: F0 [15:53:11]MH_I2C_Read... [15:53:11]Read from MH i2c: F0 09 00 [15:53:11]MH_I2C_Read... [15:53:11]Read from MH i2c: F0 09 00 CF 92 00 71 27 15 67 04 C1 95 66 2D [15:53:11]GetLastDocTimeStamp 1729439338 [15:53:11]current date 1729439601 [15:53:11]FM_GetShiftState [15:53:11]SAM_PROTO_GetShiftState [15:53:11]wFMCommunicate request_size=4 [15:53:11]MH_SAM_APDU [15:53:11]CAPDU: 80 13 01 00 [15:53:11]Write to MH i2c: E2 08 00 D0 92 80 13 01 00 00 00 00 00 DF [15:53:11]Write i2c OK [15:53:11]MH_I2C_Read... [15:53:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:53:11]Read from MH i2c: E2 [15:53:11]MH_I2C_Read... [15:53:11]Read from MH i2c: E2 0E 00 [15:53:11]MH_I2C_Read... [15:53:11]Read from MH i2c: E2 0E 00 D0 92 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 C5 [15:53:11]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [15:53:11]wFMCommunicate OK [15:53:11]SAM_PROTO_GetShiftState done [15:53:11]FM_GetShiftState done [15:53:11]opened in 1729384718 [15:53:11]opened+sec_in_day 1729471118 [15:53:11]quantity*price = 40005 [15:53:11]sum+1 = 40006 [15:53: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 СНО: Общий режим Чек 169 20.10.2024 15:53 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30387 ФПД: 105892846661240 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T155321&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30387&fm=105892846661240&tin=02508201610067®Number=0000000000186857&sum=40000 [15:53:12]StoreToDocumentArchive [15:53:12]shift 114 fd 30387 [15:53:12]save to /storage/0114/doc_00030387 [15:53:12]save last doc name /storage/0114/doc_00030387 to /storage/kkm_last_doc_name [15:53:12]save OK [15:53:12]Clear old archive folders... [15:53:12]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:53:12]tlvbuf is 00DBE050 [15:53:12]SAM_PROTO_ClearQueue [15:53:12]wFMCommunicate request_size=4 [15:53:12]MH_SAM_APDU [15:53:12]CAPDU: 80 09 00 00 [15:53:12]Write to MH i2c: E2 08 00 DD 92 80 09 00 00 00 00 00 00 E1 [15:53:12]Write i2c OK [15:53:12]MH_I2C_Read... [15:53:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:53:12]Read from MH i2c: E2 [15:53:12]MH_I2C_Read... [15:53:12]Read from MH i2c: E2 03 00 [15:53:12]MH_I2C_Read... [15:53:12]Read from MH i2c: E2 03 00 DD 92 00 90 00 E3 [15:53:12]RAPDU: 90 00 [15:53:12]wFMCommunicate OK [15:53:12]SAM_PROTO_ClearQueue done [15:53:12]KKMCreateOFDPacket [15:53:12]OFDProtocolAddRootSTLVToBuf [15:53:12]FM_MakeSignedData [15:53:12]FM_MakeSignedData [15:53:12]SAM_PROTO_SignData [15:53:12]wFMCommunicate request_size=4 [15:53:12]MH_SAM_APDU [15:53:12]CAPDU: 80 0D 01 02 [15:53:12]Write to MH i2c: E2 08 00 DE 92 80 0D 01 02 00 00 00 00 E9 [15:53:12]Write i2c OK [15:53:12]MH_I2C_Read... [15:53:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:53:12]Read from MH i2c: E2 [15:53:12]MH_I2C_Read... [15:53:12]Read from MH i2c: E2 03 00 [15:53:12]MH_I2C_Read... [15:53:12]Read from MH i2c: E2 03 00 DE 92 00 90 00 E4 [15:53:12]RAPDU: 90 00 [15:53:12]wFMCommunicate OK [15:53:12]wFMCommunicate request_size=255 [15:53:12]MH_SAM_APDU [15:53: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 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 A9 00 00 00 F4 03 04 00 71 27 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 60 4F 19 82 [15:53:12]Write to MH i2c: E2 02 01 DF 92 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 A9 00 00 00 F4 03 04 00 71 27 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 60 4F 19 82 00 00 05 [15:53:13]Write i2c OK [15:53:13]MH_I2C_Read... [15:53:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:53:13]Read from MH i2c: E2 [15:53:13]MH_I2C_Read... [15:53:13]Read from MH i2c: E2 03 00 [15:53:13]MH_I2C_Read... [15:53:13]Read from MH i2c: E2 03 00 DF 92 00 90 00 E5 [15:53:13]RAPDU: 90 00 [15:53:13]wFMCommunicate OK [15:53:13]wFMCommunicate request_size=7 [15:53:13]MH_SAM_APDU [15:53:13]CAPDU: 80 0D 02 02 02 6E 78 [15:53:13]Write to MH i2c: E2 0A 00 E0 92 80 0D 02 02 02 00 6E 78 00 00 D6 [15:53:13]Write i2c OK [15:53:13]MH_I2C_Read... [15:53:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:53:13]Read from MH i2c: E2 [15:53:13]MH_I2C_Read... [15:53:13]Read from MH i2c: E2 03 00 [15:53:13]MH_I2C_Read... [15:53:13]Read from MH i2c: E2 03 00 E0 92 00 90 00 E6 [15:53:13]RAPDU: 90 00 [15:53:13]wFMCommunicate OK [15:53:13]wFMCommunicate request_size=4 [15:53:13]MH_SAM_APDU [15:53:13]CAPDU: 80 0D 03 02 [15:53:13]Write to MH i2c: E2 08 00 E1 92 80 0D 03 02 00 00 00 00 EE [15:53:13]Write i2c OK [15:53:13]MH_I2C_Read... [15:53:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:53:13]Read from MH i2c: E2 [15:53:13]MH_I2C_Read... [15:53:13]Read from MH i2c: E2 0B 00 [15:53:13]MH_I2C_Read... [15:53:13]Read from MH i2c: E2 0B 00 E1 92 00 D6 C7 B6 96 0F B8 60 F9 90 00 F8 [15:53:13]RAPDU: D6 C7 B6 96 0F B8 60 F9 90 00 [15:53:13]wFMCommunicate OK [15:53:13]SAM_PROTO_SignData done [15:53:13]FM_MakeSignedData done [15:53:13]CreateOFDProtocolMessage [15:53:13]wFMCommunicate request_size=4 [15:53:13]MH_SAM_APDU [15:53:13]CAPDU: 80 11 00 00 [15:53:13]Write to MH i2c: E2 08 00 E2 92 80 11 00 00 00 00 00 00 EE [15:53:13]Write i2c OK [15:53:13]MH_I2C_Read... [15:53:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:53:13]Read from MH i2c: E2 [15:53:13]MH_I2C_Read... [15:53:13]Read from MH i2c: E2 17 00 [15:53:13]MH_I2C_Read... [15:53:13]Read from MH i2c: E2 17 00 E2 92 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 3C [15:53: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:53:13]wFMCommunicate OK [15:53:13]CreateOFDProtocolMessage done [15:53:13]OFDSenderStorePacket 30387 [15:53:13]StoreOFDPacket docnum=30387 [15:53: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 1E C0 04 01 52 FC 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 A9 00 00 00 F4 03 04 00 71 27 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 60 4F 19 82 6E 78 D6 C7 B6 96 0F B8 60 F9 [15:53:13]CheckFolder [15:53:13]dirname=/storage/ofd_packets [15:53:13]CheckFolder done [15:53:13]ProducePacketName [15:53:13]name=ofd_packets/00030387 [15:53:13]NVStorageSaveData ofd_packets/00030387 [15:53:13]File name is /storage/ofd_packets/00030387 [15:53:13]Write 298 bytes [15:53:13]NVStorageSaveData done [15:53:13]OFDSenderStorePacket done [15:53:13]KKMCreateOFDPacket done [15:53:13]NVStorageSaveData kkm_last_timestamp [15:53:13]File name is /storage/kkm_last_timestamp [15:53:13]Write 4 bytes [15:53:13]NVStorageSaveData done [15:53:13]ExternCall_PrintAddStr [15:53:13]wPrintStart [15:53:13]Write to MH i2c: 01 00 00 E3 92 75 [15:53:13]Write i2c OK [15:53:13]MH_I2C_Read... [15:53:13]Read from MH i2c: 01 [15:53:13]MH_I2C_Read... [15:53:13]Read from MH i2c: 01 07 00 [15:53:13]MH_I2C_Read... [15:53:13]Read from MH i2c: 01 07 00 E3 92 00 00 00 00 00 FF 0F 8A [15:53:13]RasterBufferAndPrint [15:53:13]line Счет N : (1)342782 [15:53:13]line ИНН: 02508201610067 [15:53:13]line Контрольно-Кассовый Чек [15:53:13]line ПРОДАЖА [15:53:13]line ТРК (МРК, ГНК) : 44 [15:53:13]line Товар: 2710194210 [15:53:13]line ДТ-К-2 [15:53:13]line 5.250 * 76.20 [15:53:13]line = 400.05 [15:53:13]line НДС 12% НСП 1% [15:53:13]line > о реализуемом товаре [15:53:13]line ОКРУГЛЕНИЕ: -0.05 [15:53:13]line ИТОГО: 400.00 [15:53:13]line Внесено: 400.00 [15:53:13]line СДАЧА: 0.00 [15:53:13]line НСП 1% : 3.54 [15:53:13]line НДС 12% : 42.48 [15:53:13]line Наличными: 400.00 [15:53:13]line Безнал.: 0.00 [15:53:13]line Место: АЗС № 78 "Партнер Нефть" [15:53:13]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [15:53:13]line СНО: Общий режим [15:53:13]line Чек 169 20.10.2024 15:53 [15:53:13]line Смена: 114 ФФД: 1.0 [15:53:13]line ЗНМ: 0300000137 [15:53:13]line РНМ: 0000000000186857 [15:53:13]line Версия ККМ: v1.0 [15:53:13]line ФМ: 0000000002094219 [15:53:13]line ФД: 30387 [15:53:13]line ФПД: 105892846661240 [15:53:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T155321&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30387&fm=105892846661240&tin=02508201610067®Number=0000000000186857&sum=40000 [15:53:13]OFD Sender: Processing packet 30387 [packets to send 10, broken 9] [15:53:13]ProducePacketName [15:53:13]name=ofd_packets/00030387 [15:53:13]OFD Sender: To server: pG, [15:53:13]CommunicateWithHost lk.salyk.kg:30040 [15:53:13]ConnectInit lk.salyk.kg [15:53:13]written 0, free lines is 4095 [15:53:13]Connected sock=10 [15:53: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 1E C0 04 01 52 FC 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 A9 00 00 00 F4 03 04 00 71 27 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 60 4F 19 82 6E 78 D6 C7 B6 96 0F B8 60 F9 [15:53: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 ED 82 47 00 70 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 B3 76 00 00 F4 03 04 00 F5 D1 14 67 B6 04 01 00 00 55 5E 1C 8A EC E5 78 13 [15:53:14]CommunicateWithHost err = 0 [15:53:14]CheckOFDResponse [15:53:14]1017 (14) - 77093643461234 [15:53:14]1041 (16) - 0000000002094219 [15:53:14]1040 (4) - 30387 [15:53:14]1012 (4) - 20.10.2024 09:48 [15:53:14]1206 (1) - 0 [15:53:14]OFD Sender: Remove packet 30387 [15:53:14]ProducePacketName [15:53:14]name=ofd_packets/00030387 [15:53:14]NVStorageDeleteData [15:53:14]Write to MH i2c: 01 00 00 0E 93 A1 [15:53:14]Write i2c OK [15:53:14]MH_I2C_Read... [15:53:14]Read from MH i2c: 01 [15:53:14]MH_I2C_Read... [15:53:14]Read from MH i2c: 01 07 00 [15:53:14]MH_I2C_Read... [15:53:14]Read from MH i2c: 01 07 00 0E 93 00 00 00 00 00 F8 0C AC [15:53:14]RasterBufferAndPrint [15:53:14]line [15:53:14]line [15:53:14]line [15:53:14]line [15:53:14]line [15:53:14]written 0, free lines is 3327 [15:53:14]MH_Cut [15:53:14]Write to MH i2c: D1 01 00 15 93 01 7A [15:53:14]Write i2c OK [15:53:14]MH_I2C_Read... [15:53:14]Read from MH i2c: D1 [15:53:14]MH_I2C_Read... [15:53:14]Read from MH i2c: D1 01 00 [15:53:14]MH_I2C_Read... [15:53:14]Read from MH i2c: D1 01 00 15 93 00 79 [15:53:14]Write to MH i2c: 01 00 00 16 93 A9 [15:53:14]Write i2c OK [15:53:14]MH_I2C_Read... [15:53:14]OFD Sender: No OFD packet to send [15:53:14]*** Cut start [15:53:14]*** Partial cut [15:53:14]*** CUTSNS_PIN = 1 [15:53:14]*** CUTSNS_PIN = 0 [15:53:15]*** Brake cut motor [15:53:15]Read from MH i2c: 01 [15:53:15]MH_I2C_Read... [15:53:15]*** Stop cut motor [15:53:15]*** Cut end [15:53:15]Read from MH i2c: 01 07 00 [15:53:15]MH_I2C_Read... [15:53:15]Read from MH i2c: 01 07 00 16 93 00 00 00 00 00 FF 0F BE [15:53:15]process_action close_receipt done [15:53:15]requested_data is exist [15:53:15]produce_requested_data [15:53:15]requested_item fm.sn is exist - process it [15:53:15]wFMCommunicate request_size=4 [15:53:15]MH_SAM_APDU [15:53:15]CAPDU: 80 11 00 00 [15:53:15]Write to MH i2c: E2 08 00 17 93 80 11 00 00 00 00 00 00 24 [15:53:15]Write i2c OK [15:53:15]MH_I2C_Read... [15:53:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:53:15]Read from MH i2c: E2 [15:53:15]MH_I2C_Read... [15:53:15]Read from MH i2c: E2 17 00 [15:53:15]MH_I2C_Read... [15:53:15]Read from MH i2c: E2 17 00 17 93 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:53:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [15:53:15]wFMCommunicate OK [15:53:15]requested_item fd.num is exist - process it [15:53:15]SAM_PROTO_GetFieldsCounters [15:53:15]wFMCommunicate request_size=4 [15:53:15]MH_SAM_APDU [15:53:15]CAPDU: 80 13 00 00 [15:53:15]Write to MH i2c: E2 08 00 18 93 80 13 00 00 00 00 00 00 27 [15:53:15]Write i2c OK [15:53:15]MH_I2C_Read... [15:53:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:53:15]Read from MH i2c: E2 [15:53:15]MH_I2C_Read... [15:53:15]Read from MH i2c: E2 62 00 [15:53:15]MH_I2C_Read... [15:53:15]Read from MH i2c: E2 62 00 18 93 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 E3 [15:53: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 B3 76 00 00 0E 04 04 00 72 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 [15:53:15]wFMCommunicate OK [15:53:15]SAM_PROTO_GetFieldsCounters done [15:53:15]requested_item shift.num is exist - process it [15:53:15]requested_item shift.opened is exist - process it [15:53:15]req_shift_opened [15:53:15]FM_GetShiftState [15:53:15]SAM_PROTO_GetShiftState [15:53:15]wFMCommunicate request_size=4 [15:53:15]MH_SAM_APDU [15:53:15]CAPDU: 80 13 01 00 [15:53:15]Write to MH i2c: E2 08 00 19 93 80 13 01 00 00 00 00 00 29 [15:53:15]Write i2c OK [15:53:15]MH_I2C_Read... [15:53:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:53:15]Read from MH i2c: E2 [15:53:15]MH_I2C_Read... [15:53:15]Read from MH i2c: E2 0E 00 [15:53:15]MH_I2C_Read... [15:53:15]Read from MH i2c: E2 0E 00 19 93 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 0F [15:53:15]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [15:53:15]wFMCommunicate OK [15:53:15]SAM_PROTO_GetShiftState done [15:53:15]FM_GetShiftState done [15:53:15]req_shift_opened done [15:53:15]requested_item shift.open_date is exist - process it [15:53:15]req_shift_open_date [15:53:15]req_shift_open_date done [15:53:15]produce_requested_data done [15:53:15]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30387,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [15:53:15]process_action_free close_receipt [15:53:15]json_value_free [15:53:15]json_value_free done [15:53:15]process_json_proto returns [15:53:15]Send response to host [15:53:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30387,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [15:53:15]free response buf [15:53:15]execute_script done [15:53:15]execute_script returns [15:53:15]free content buf [15:53:15]Sock 9.Close socket [15:53:15]Sock 9.Thread stoped [15:53:19]OFD Sender: No OFD packet to send [15:53:24]OFD Sender: No OFD packet to send [15:53:29]OFD Sender: No OFD packet to send [15:53:34]OFD Sender: No OFD packet to send [15:53:39]OFD Sender: No OFD packet to send [15:53:44]OFD Sender: No OFD packet to send [15:53:48]accept exits with 7 [15:53:48]New connection [15:53:48]New thread 3067514212 created [15:53:48]Thread 3067370852 joined [15:53:48]Waiting for new connection... [15:53:48] Sock 7.Parse request [15:53:48]Sock 7.Check first char [15:53:48]Sock 7.First char is OK [15:53:48]request: POST /json_proto HTTP/1.0 [15:53:48]Method: POST [15:53:48]URL: /json_proto [15:53:48]Method is POST - this is cgi request [15:53:48]url: /json_proto [15:53:48]query_string will be loaded in cgi processing [15:53:48]execute_cgi json_proto POST (null) [15:53:48]execute_cgi path=json_proto method=POST [15:53:48]POST find Content-Length [15:53:48]Host: 172.17.51.3:8080 [15:53:48]Content-Length: 682 [15:53:48]Content-Type: application/json [15:53:48] [15:53:48]POST finish read [15:53:48]Found Content-Length = 682 [15:53:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342783", "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" ] } } [15:53:48]execute_script... [15:53: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)342783", "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" ] } } [15:53:48]POST & json_proto [15:53:48]process_json_proto [15:53:48]json parsed OK: [15:53:48]protocol is kg_v1.0 [15:53:48]action value=close_receipt [15:53:48]process_action close_receipt [15:53:48]cmd_close_receipt [15:53:48]MH_GetDate [15:53:48]Write to MH i2c: F0 00 00 1A 93 9C [15:53:48]Write i2c OK [15:53:48]MH_I2C_Read... [15:53:48]Read from MH i2c: F0 [15:53:48]MH_I2C_Read... [15:53:48]Read from MH i2c: F0 09 00 [15:53:48]MH_I2C_Read... [15:53:48]Read from MH i2c: F0 09 00 1A 93 00 97 27 15 67 04 C1 95 66 9F [15:53:48]GetLastDocTimeStamp 1729439601 [15:53:48]current date 1729439639 [15:53:48]FM_GetShiftState [15:53:48]SAM_PROTO_GetShiftState [15:53:48]wFMCommunicate request_size=4 [15:53:48]MH_SAM_APDU [15:53:48]CAPDU: 80 13 01 00 [15:53:48]Write to MH i2c: E2 08 00 1B 93 80 13 01 00 00 00 00 00 2B [15:53:48]Write i2c OK [15:53:48]MH_I2C_Read... [15:53:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:53:48]Read from MH i2c: E2 [15:53:48]MH_I2C_Read... [15:53:48]Read from MH i2c: E2 0E 00 [15:53:48]MH_I2C_Read... [15:53:48]Read from MH i2c: E2 0E 00 1B 93 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 11 [15:53:48]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [15:53:48]wFMCommunicate OK [15:53:48]SAM_PROTO_GetShiftState done [15:53:48]FM_GetShiftState done [15:53:48]opened in 1729384718 [15:53:48]opened+sec_in_day 1729471118 [15:53:48]quantity*price = 100015 [15:53:48]sum+1 = 100017 [15:53:48]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 СНО: Общий режим Чек 170 20.10.2024 15:53 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30388 ФПД: 152275354938213 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T155359&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30388&fm=152275354938213&tin=02508201610067®Number=0000000000186857&sum=100000 [15:53:50]StoreToDocumentArchive [15:53:50]shift 114 fd 30388 [15:53:50]save to /storage/0114/doc_00030388 [15:53:50]save last doc name /storage/0114/doc_00030388 to /storage/kkm_last_doc_name [15:53:50]save OK [15:53:50]Clear old archive folders... [15:53:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:53:50]tlvbuf is 00CDFF20 [15:53:50]SAM_PROTO_ClearQueue [15:53:50]wFMCommunicate request_size=4 [15:53:50]MH_SAM_APDU [15:53:50]CAPDU: 80 09 00 00 [15:53:50]Write to MH i2c: E2 08 00 28 93 80 09 00 00 00 00 00 00 2D [15:53:50]Write i2c OK [15:53:50]MH_I2C_Read... [15:53:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:53:50]Read from MH i2c: E2 [15:53:50]MH_I2C_Read... [15:53:50]Read from MH i2c: E2 03 00 [15:53:50]MH_I2C_Read... [15:53:50]Read from MH i2c: E2 03 00 28 93 00 90 00 2F [15:53:50]RAPDU: 90 00 [15:53:50]wFMCommunicate OK [15:53:50]SAM_PROTO_ClearQueue done [15:53:50]KKMCreateOFDPacket [15:53:50]OFDProtocolAddRootSTLVToBuf [15:53:50]FM_MakeSignedData [15:53:50]FM_MakeSignedData [15:53:50]SAM_PROTO_SignData [15:53:50]wFMCommunicate request_size=4 [15:53:50]MH_SAM_APDU [15:53:50]CAPDU: 80 0D 01 02 [15:53:50]Write to MH i2c: E2 08 00 29 93 80 0D 01 02 00 00 00 00 35 [15:53:50]Write i2c OK [15:53:50]MH_I2C_Read... [15:53:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:53:50]Read from MH i2c: E2 [15:53:50]MH_I2C_Read... [15:53:50]Read from MH i2c: E2 03 00 [15:53:50]MH_I2C_Read... [15:53:50]Read from MH i2c: E2 03 00 29 93 00 90 00 30 [15:53:50]RAPDU: 90 00 [15:53:50]wFMCommunicate OK [15:53:50]wFMCommunicate request_size=255 [15:53:50]MH_SAM_APDU [15:53: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 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 AA 00 00 00 F4 03 04 00 97 27 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 8A [15:53:50]Write to MH i2c: E2 02 01 2A 93 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 AA 00 00 00 F4 03 04 00 97 27 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 8A 00 00 CA [15:53:50]Write i2c OK [15:53:50]MH_I2C_Read... [15:53:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:53:50]Read from MH i2c: E2 [15:53:50]MH_I2C_Read... [15:53:50]Read from MH i2c: E2 03 00 [15:53:50]MH_I2C_Read... [15:53:50]Read from MH i2c: E2 03 00 2A 93 00 90 00 31 [15:53:50]RAPDU: 90 00 [15:53:50]wFMCommunicate OK [15:53:50]wFMCommunicate request_size=10 [15:53:50]MH_SAM_APDU [15:53:50]CAPDU: 80 0D 02 02 05 7E 5E 70 6B 65 [15:53:50]Write to MH i2c: E2 0D 00 2B 93 80 0D 02 02 05 00 7E 5E 70 6B 65 00 00 5E [15:53:50]Write i2c OK [15:53:50]MH_I2C_Read... [15:53:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:53:50]Read from MH i2c: E2 [15:53:50]MH_I2C_Read... [15:53:50]Read from MH i2c: E2 03 00 [15:53:50]MH_I2C_Read... [15:53:50]Read from MH i2c: E2 03 00 2B 93 00 90 00 32 [15:53:50]RAPDU: 90 00 [15:53:50]wFMCommunicate OK [15:53:50]wFMCommunicate request_size=4 [15:53:50]MH_SAM_APDU [15:53:50]CAPDU: 80 0D 03 02 [15:53:50]Write to MH i2c: E2 08 00 2C 93 80 0D 03 02 00 00 00 00 3A [15:53:50]Write i2c OK [15:53:50]MH_I2C_Read... [15:53:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:53:50]Read from MH i2c: E2 [15:53:50]MH_I2C_Read... [15:53:50]Read from MH i2c: E2 0B 00 [15:53:50]MH_I2C_Read... [15:53:50]Read from MH i2c: E2 0B 00 2C 93 00 9A 05 A2 1B DF 04 68 70 90 00 52 [15:53:50]RAPDU: 9A 05 A2 1B DF 04 68 70 90 00 [15:53:50]wFMCommunicate OK [15:53:50]SAM_PROTO_SignData done [15:53:50]FM_MakeSignedData done [15:53:50]CreateOFDProtocolMessage [15:53:50]wFMCommunicate request_size=4 [15:53:50]MH_SAM_APDU [15:53:50]CAPDU: 80 11 00 00 [15:53:50]Write to MH i2c: E2 08 00 2D 93 80 11 00 00 00 00 00 00 3A [15:53:50]Write i2c OK [15:53:50]MH_I2C_Read... [15:53:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:53:50]Read from MH i2c: E2 [15:53:50]MH_I2C_Read... [15:53:50]Read from MH i2c: E2 17 00 [15:53:50]MH_I2C_Read... [15:53:50]Read from MH i2c: E2 17 00 2D 93 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 88 [15:53: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:53:50]wFMCommunicate OK [15:53:50]CreateOFDProtocolMessage done [15:53:50]OFDSenderStorePacket 30388 [15:53:50]StoreOFDPacket docnum=30388 [15:53: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 DF 45 07 01 8F 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 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 AA 00 00 00 F4 03 04 00 97 27 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 8A 7E 5E 70 6B 65 9A 05 A2 1B DF 04 68 70 [15:53:50]CheckFolder [15:53:50]dirname=/storage/ofd_packets [15:53:50]CheckFolder done [15:53:50]ProducePacketName [15:53:50]name=ofd_packets/00030388 [15:53:50]NVStorageSaveData ofd_packets/00030388 [15:53:50]File name is /storage/ofd_packets/00030388 [15:53:50]Write 301 bytes [15:53:50]NVStorageSaveData done [15:53:50]OFDSenderStorePacket done [15:53:50]KKMCreateOFDPacket done [15:53:50]NVStorageSaveData kkm_last_timestamp [15:53:50]File name is /storage/kkm_last_timestamp [15:53:50]Write 4 bytes [15:53:50]NVStorageSaveData done [15:53:50]ExternCall_PrintAddStr [15:53:50]wPrintStart [15:53:50]Write to MH i2c: 01 00 00 2E 93 C1 [15:53:50]Write i2c OK [15:53:50]MH_I2C_Read... [15:53:50]Read from MH i2c: 01 [15:53:50]MH_I2C_Read... [15:53:50]Read from MH i2c: 01 07 00 [15:53:50]MH_I2C_Read... [15:53:50]Read from MH i2c: 01 07 00 2E 93 00 00 00 00 00 FF 0F D6 [15:53:50]RasterBufferAndPrint [15:53:50]line Счет N : (1)342783 [15:53:50]line ИНН: 02508201610067 [15:53:50]line Контрольно-Кассовый Чек [15:53:50]line ПРОДАЖА [15:53:50]line ТРК (МРК, ГНК) : 63 [15:53:50]line Товар: 2710124130 [15:53:50]line Аи-92-К-2 [15:53:50]line 14.950 * 66.90 [15:53:50]line = 1000.16 [15:53:50]line НДС 12% НСП 1% [15:53:50]line > о реализуемом товаре [15:53:50]line ОКРУГЛЕНИЕ: -0.16 [15:53:50]line ИТОГО: 1000.00 [15:53:50]line Внесено: 1000.00 [15:53:50]line СДАЧА: 0.00 [15:53:50]line НСП 1% : 8.85 [15:53:50]line НДС 12% : 106.21 [15:53:50]line Наличными: 1000.00 [15:53:50]line Безнал.: 0.00 [15:53:50]line Место: АЗС № 78 "Партнер Нефть" [15:53:50]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [15:53:50]line СНО: Общий режим [15:53:50]line Чек 170 20.10.2024 15:53 [15:53:50]line Смена: 114 ФФД: 1.0 [15:53:50]line ЗНМ: 0300000137 [15:53:50]line РНМ: 0000000000186857 [15:53:50]line Версия ККМ: v1.0 [15:53:50]line ФМ: 0000000002094219 [15:53:50]line ФД: 30388 [15:53:50]line ФПД: 152275354938213 [15:53:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T155359&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30388&fm=152275354938213&tin=02508201610067®Number=0000000000186857&sum=100000 [15:53:50]OFD Sender: Processing packet 30388 [packets to send 10, broken 9] [15:53:50]ProducePacketName [15:53:50]name=ofd_packets/00030388 [15:53:50]OFD Sender: To server: pG, [15:53:50]CommunicateWithHost lk.salyk.kg:30040 [15:53:50]ConnectInit lk.salyk.kg [15:53:50]written 0, free lines is 4095 [15:53:51]Connected sock=10 [15:53: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 DF 45 07 01 8F 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 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 AA 00 00 00 F4 03 04 00 97 27 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 8A 7E 5E 70 6B 65 9A 05 A2 1B DF 04 68 70 [15:53: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 AD 94 47 00 8B 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 B4 76 00 00 F4 03 04 00 1A D2 14 67 B6 04 01 00 00 FE E4 3F CD C3 CA 97 C6 [15:53:51]CommunicateWithHost err = 0 [15:53:51]CheckOFDResponse [15:53:51]1017 (14) - 77093643461234 [15:53:51]1041 (16) - 0000000002094219 [15:53:51]1040 (4) - 30388 [15:53:51]1012 (4) - 20.10.2024 09:49 [15:53:51]1206 (1) - 0 [15:53:51]OFD Sender: Remove packet 30388 [15:53:51]ProducePacketName [15:53:51]name=ofd_packets/00030388 [15:53:51]NVStorageDeleteData [15:53:51]Write to MH i2c: 01 00 00 59 93 EC [15:53:51]Write i2c OK [15:53:51]MH_I2C_Read... [15:53:51]Read from MH i2c: 01 [15:53:51]MH_I2C_Read... [15:53:51]Read from MH i2c: 01 07 00 [15:53:51]MH_I2C_Read... [15:53:51]Read from MH i2c: 01 07 00 59 93 00 00 00 00 00 F1 0C F0 [15:53:51]RasterBufferAndPrint [15:53:51]line [15:53:51]line [15:53:51]line [15:53:51]line [15:53:51]line [15:53:51]written 0, free lines is 3319 [15:53:51]MH_Cut [15:53:51]Write to MH i2c: D1 01 00 60 93 01 C5 [15:53:51]Write i2c OK [15:53:51]MH_I2C_Read... [15:53:51]Read from MH i2c: D1 [15:53:51]MH_I2C_Read... [15:53:51]Read from MH i2c: D1 01 00 [15:53:51]MH_I2C_Read... [15:53:51]Read from MH i2c: D1 01 00 60 93 00 C4 [15:53:51]Write to MH i2c: 01 00 00 61 93 F4 [15:53:51]Write i2c OK [15:53:51]MH_I2C_Read... [15:53:51]OFD Sender: No OFD packet to send [15:53:52]*** Cut start [15:53:52]*** Partial cut [15:53:52]*** CUTSNS_PIN = 1 [15:53:52]*** CUTSNS_PIN = 0 [15:53:52]*** Brake cut motor [15:53:52]Read from MH i2c: 01 [15:53:52]MH_I2C_Read... [15:53:52]*** Stop cut motor [15:53:52]*** Cut end [15:53:52]Read from MH i2c: 01 07 00 [15:53:52]MH_I2C_Read... [15:53:52]Read from MH i2c: 01 07 00 61 93 00 00 00 00 00 FF 0F 09 [15:53:52]process_action close_receipt done [15:53:52]requested_data is exist [15:53:52]produce_requested_data [15:53:52]requested_item fm.sn is exist - process it [15:53:52]wFMCommunicate request_size=4 [15:53:52]MH_SAM_APDU [15:53:52]CAPDU: 80 11 00 00 [15:53:52]Write to MH i2c: E2 08 00 62 93 80 11 00 00 00 00 00 00 6F [15:53:52]Write i2c OK [15:53:52]MH_I2C_Read... [15:53:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:53:52]Read from MH i2c: E2 [15:53:52]MH_I2C_Read... [15:53:52]Read from MH i2c: E2 17 00 [15:53:52]MH_I2C_Read... [15:53:52]Read from MH i2c: E2 17 00 62 93 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:53: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:53:52]wFMCommunicate OK [15:53:52]requested_item fd.num is exist - process it [15:53:52]SAM_PROTO_GetFieldsCounters [15:53:52]wFMCommunicate request_size=4 [15:53:52]MH_SAM_APDU [15:53:52]CAPDU: 80 13 00 00 [15:53:52]Write to MH i2c: E2 08 00 63 93 80 13 00 00 00 00 00 00 72 [15:53:52]Write i2c OK [15:53:52]MH_I2C_Read... [15:53:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:53:52]Read from MH i2c: E2 [15:53:52]MH_I2C_Read... [15:53:52]Read from MH i2c: E2 62 00 [15:53:52]MH_I2C_Read... [15:53:52]Read from MH i2c: E2 62 00 63 93 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 32 [15:53: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 B4 76 00 00 0E 04 04 00 72 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 [15:53:52]wFMCommunicate OK [15:53:52]SAM_PROTO_GetFieldsCounters done [15:53:52]requested_item shift.num is exist - process it [15:53:52]requested_item shift.opened is exist - process it [15:53:52]req_shift_opened [15:53:52]FM_GetShiftState [15:53:52]SAM_PROTO_GetShiftState [15:53:52]wFMCommunicate request_size=4 [15:53:52]MH_SAM_APDU [15:53:52]CAPDU: 80 13 01 00 [15:53:52]Write to MH i2c: E2 08 00 64 93 80 13 01 00 00 00 00 00 74 [15:53:52]Write i2c OK [15:53:52]MH_I2C_Read... [15:53:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:53:52]Read from MH i2c: E2 [15:53:52]MH_I2C_Read... [15:53:52]Read from MH i2c: E2 0E 00 [15:53:52]MH_I2C_Read... [15:53:52]Read from MH i2c: E2 0E 00 64 93 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 5A [15:53:52]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [15:53:52]wFMCommunicate OK [15:53:52]SAM_PROTO_GetShiftState done [15:53:52]FM_GetShiftState done [15:53:52]req_shift_opened done [15:53:52]requested_item shift.open_date is exist - process it [15:53:52]req_shift_open_date [15:53:52]req_shift_open_date done [15:53:52]produce_requested_data done [15:53:52]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30388,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [15:53:52]process_action_free close_receipt [15:53:52]json_value_free [15:53:52]json_value_free done [15:53:52]process_json_proto returns [15:53:52]Send response to host [15:53:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30388,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [15:53:52]free response buf [15:53:52]execute_script done [15:53:52]execute_script returns [15:53:52]free content buf [15:53:52]Sock 7.Close socket [15:53:52]Sock 7.Thread stoped [15:53:56]OFD Sender: No OFD packet to send [15:54:01]OFD Sender: No OFD packet to send [15:54:06]OFD Sender: No OFD packet to send [15:54:11]OFD Sender: No OFD packet to send [15:54:16]OFD Sender: No OFD packet to send [15:54:21]OFD Sender: No OFD packet to send [15:54:26]OFD Sender: No OFD packet to send [15:54:31]OFD Sender: No OFD packet to send [15:54:36]OFD Sender: No OFD packet to send [15:54:41]OFD Sender: No OFD packet to send [15:54:46]OFD Sender: No OFD packet to send [15:54:51]OFD Sender: No OFD packet to send [15:54:56]OFD Sender: No OFD packet to send [15:55:01]OFD Sender: No OFD packet to send [15:55:06]OFD Sender: No OFD packet to send [15:55:11]OFD Sender: No OFD packet to send [15:55:16]OFD Sender: No OFD packet to send [15:55:21]OFD Sender: No OFD packet to send [15:55:26]OFD Sender: No OFD packet to send [15:55:31]OFD Sender: No OFD packet to send [15:55:36]OFD Sender: No OFD packet to send [15:55:41]OFD Sender: No OFD packet to send [15:55:46]OFD Sender: No OFD packet to send [15:55:51]OFD Sender: No OFD packet to send [15:55:56]OFD Sender: No OFD packet to send [15:56:01]OFD Sender: No OFD packet to send [15:56:06]OFD Sender: No OFD packet to send [15:56:11]OFD Sender: No OFD packet to send [15:56:16]OFD Sender: No OFD packet to send [15:56:21]OFD Sender: No OFD packet to send [15:56:26]OFD Sender: No OFD packet to send [15:56:31]OFD Sender: No OFD packet to send [15:56:36]OFD Sender: No OFD packet to send [15:56:41]OFD Sender: No OFD packet to send [15:56:46]OFD Sender: No OFD packet to send [15:56:51]OFD Sender: No OFD packet to send [15:56:56]OFD Sender: No OFD packet to send [15:57:01]OFD Sender: No OFD packet to send [15:57:06]OFD Sender: No OFD packet to send [15:57:11]OFD Sender: No OFD packet to send [15:57:16]OFD Sender: No OFD packet to send [15:57:21]OFD Sender: No OFD packet to send [15:57:26]OFD Sender: No OFD packet to send [15:57:31]OFD Sender: No OFD packet to send [15:57:36]OFD Sender: No OFD packet to send [15:57:41]OFD Sender: No OFD packet to send [15:57:46]OFD Sender: No OFD packet to send [15:57:51]OFD Sender: No OFD packet to send [15:57:56]OFD Sender: No OFD packet to send [15:58:01]OFD Sender: No OFD packet to send [15:58:06]OFD Sender: No OFD packet to send [15:58:11]OFD Sender: No OFD packet to send [15:58:16]OFD Sender: No OFD packet to send [15:58:21]OFD Sender: No OFD packet to send [15:58:26]OFD Sender: No OFD packet to send [15:58:31]OFD Sender: No OFD packet to send [15:58:36]OFD Sender: No OFD packet to send [15:58:41]OFD Sender: No OFD packet to send [15:58:46]OFD Sender: No OFD packet to send [15:58:51]OFD Sender: No OFD packet to send [15:58:56]OFD Sender: No OFD packet to send [15:59:01]OFD Sender: No OFD packet to send [15:59:06]OFD Sender: No OFD packet to send [15:59:11]OFD Sender: No OFD packet to send [15:59:15]accept exits with 9 [15:59:15]New connection [15:59:15]New thread 3067370852 created [15:59:15]Thread 3067514212 joined [15:59:15]Waiting for new connection... [15:59:15] Sock 9.Parse request [15:59:15]Sock 9.Check first char [15:59:15]Sock 9.First char is OK [15:59:15]request: POST /json_proto HTTP/1.0 [15:59:15]Method: POST [15:59:15]URL: /json_proto [15:59:15]Method is POST - this is cgi request [15:59:15]url: /json_proto [15:59:15]query_string will be loaded in cgi processing [15:59:15]execute_cgi json_proto POST (null) [15:59:15]execute_cgi path=json_proto method=POST [15:59:15]POST find Content-Length [15:59:15]Host: 172.17.51.3:8080 [15:59:15]Content-Length: 677 [15:59:15]Content-Type: application/json [15:59:15] [15:59:15]POST finish read [15:59:15]Found Content-Length = 677 [15:59:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342784", "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" ] } } [15:59:15]execute_script... [15:59:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342784", "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" ] } } [15:59:15]POST & json_proto [15:59:15]process_json_proto [15:59:15]json parsed OK: [15:59:15]protocol is kg_v1.0 [15:59:15]action value=close_receipt [15:59:15]process_action close_receipt [15:59:15]cmd_close_receipt [15:59:15]MH_GetDate [15:59:15]Write to MH i2c: F0 00 00 65 93 E7 [15:59:15]Write i2c OK [15:59:15]MH_I2C_Read... [15:59:15]Read from MH i2c: F0 [15:59:15]MH_I2C_Read... [15:59:15]Read from MH i2c: F0 09 00 [15:59:15]MH_I2C_Read... [15:59:15]Read from MH i2c: F0 09 00 65 93 00 DD 28 15 67 04 C1 95 66 31 [15:59:15]GetLastDocTimeStamp 1729439639 [15:59:15]current date 1729439965 [15:59:15]FM_GetShiftState [15:59:15]SAM_PROTO_GetShiftState [15:59:15]wFMCommunicate request_size=4 [15:59:15]MH_SAM_APDU [15:59:15]CAPDU: 80 13 01 00 [15:59:15]Write to MH i2c: E2 08 00 66 93 80 13 01 00 00 00 00 00 76 [15:59:15]Write i2c OK [15:59:15]MH_I2C_Read... [15:59:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:59:15]Read from MH i2c: E2 [15:59:15]MH_I2C_Read... [15:59:15]Read from MH i2c: E2 0E 00 [15:59:15]MH_I2C_Read... [15:59:15]Read from MH i2c: E2 0E 00 66 93 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 5C [15:59:15]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [15:59:15]wFMCommunicate OK [15:59:15]SAM_PROTO_GetShiftState done [15:59:15]FM_GetShiftState done [15:59:15]opened in 1729384718 [15:59:15]opened+sec_in_day 1729471118 [15:59:15]quantity*price = 20003 [15:59:15]sum+1 = 20004 [15:59:15]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 20.10.2024 15:59 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30389 ФПД: 257850523334110 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T155925&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30389&fm=257850523334110&tin=02508201610067®Number=0000000000186857&sum=20000 [15:59:16]StoreToDocumentArchive [15:59:16]shift 114 fd 30389 [15:59:16]save to /storage/0114/doc_00030389 [15:59:16]save last doc name /storage/0114/doc_00030389 to /storage/kkm_last_doc_name [15:59:16]save OK [15:59:16]Clear old archive folders... [15:59:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:59:16]tlvbuf is 00A8DCD0 [15:59:16]SAM_PROTO_ClearQueue [15:59:16]wFMCommunicate request_size=4 [15:59:16]MH_SAM_APDU [15:59:16]CAPDU: 80 09 00 00 [15:59:16]Write to MH i2c: E2 08 00 73 93 80 09 00 00 00 00 00 00 78 [15:59:16]Write i2c OK [15:59:16]MH_I2C_Read... [15:59:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:59:16]Read from MH i2c: E2 [15:59:16]MH_I2C_Read... [15:59:16]Read from MH i2c: E2 03 00 [15:59:16]MH_I2C_Read... [15:59:16]Read from MH i2c: E2 03 00 73 93 00 90 00 7A [15:59:16]RAPDU: 90 00 [15:59:16]wFMCommunicate OK [15:59:16]SAM_PROTO_ClearQueue done [15:59:16]KKMCreateOFDPacket [15:59:16]OFDProtocolAddRootSTLVToBuf [15:59:16]FM_MakeSignedData [15:59:16]FM_MakeSignedData [15:59:16]SAM_PROTO_SignData [15:59:16]wFMCommunicate request_size=4 [15:59:16]MH_SAM_APDU [15:59:16]CAPDU: 80 0D 01 02 [15:59:16]Write to MH i2c: E2 08 00 74 93 80 0D 01 02 00 00 00 00 80 [15:59:16]Write i2c OK [15:59:16]MH_I2C_Read... [15:59:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:59:16]Read from MH i2c: E2 [15:59:16]MH_I2C_Read... [15:59:16]Read from MH i2c: E2 03 00 [15:59:16]MH_I2C_Read... [15:59:16]Read from MH i2c: E2 03 00 74 93 00 90 00 7B [15:59:16]RAPDU: 90 00 [15:59:16]wFMCommunicate OK [15:59:16]wFMCommunicate request_size=255 [15:59:16]MH_SAM_APDU [15:59:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 DD 28 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 EA [15:59:16]Write to MH i2c: E2 02 01 75 93 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 DD 28 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 EA 00 00 86 [15:59:16]Write i2c OK [15:59:16]MH_I2C_Read... [15:59:17]OFD Sender: No OFD packet to send [15:59:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:59:17]Read from MH i2c: E2 [15:59:17]MH_I2C_Read... [15:59:17]Read from MH i2c: E2 03 00 [15:59:17]MH_I2C_Read... [15:59:17]Read from MH i2c: E2 03 00 75 93 00 90 00 7C [15:59:17]RAPDU: 90 00 [15:59:17]wFMCommunicate OK [15:59:17]wFMCommunicate request_size=10 [15:59:17]MH_SAM_APDU [15:59:17]CAPDU: 80 0D 02 02 05 83 80 D9 35 DE [15:59:17]Write to MH i2c: E2 0D 00 76 93 80 0D 02 02 05 00 83 80 D9 35 DE 00 00 7C [15:59:17]Write i2c OK [15:59:17]MH_I2C_Read... [15:59:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:59:17]Read from MH i2c: E2 [15:59:17]MH_I2C_Read... [15:59:17]Read from MH i2c: E2 03 00 [15:59:17]MH_I2C_Read... [15:59:17]Read from MH i2c: E2 03 00 76 93 00 90 00 7D [15:59:17]RAPDU: 90 00 [15:59:17]wFMCommunicate OK [15:59:17]wFMCommunicate request_size=4 [15:59:17]MH_SAM_APDU [15:59:17]CAPDU: 80 0D 03 02 [15:59:17]Write to MH i2c: E2 08 00 77 93 80 0D 03 02 00 00 00 00 85 [15:59:17]Write i2c OK [15:59:17]MH_I2C_Read... [15:59:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:59:17]Read from MH i2c: E2 [15:59:17]MH_I2C_Read... [15:59:17]Read from MH i2c: E2 0B 00 [15:59:17]MH_I2C_Read... [15:59:17]Read from MH i2c: E2 0B 00 77 93 00 34 6B F7 B9 28 CE 66 BB 90 00 EC [15:59:17]RAPDU: 34 6B F7 B9 28 CE 66 BB 90 00 [15:59:17]wFMCommunicate OK [15:59:17]SAM_PROTO_SignData done [15:59:17]FM_MakeSignedData done [15:59:17]CreateOFDProtocolMessage [15:59:17]wFMCommunicate request_size=4 [15:59:17]MH_SAM_APDU [15:59:17]CAPDU: 80 11 00 00 [15:59:17]Write to MH i2c: E2 08 00 78 93 80 11 00 00 00 00 00 00 85 [15:59:17]Write i2c OK [15:59:17]MH_I2C_Read... [15:59:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:59:17]Read from MH i2c: E2 [15:59:17]MH_I2C_Read... [15:59:17]Read from MH i2c: E2 17 00 [15:59:17]MH_I2C_Read... [15:59:17]Read from MH i2c: E2 17 00 78 93 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 D3 [15:59:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [15:59:17]wFMCommunicate OK [15:59:17]CreateOFDProtocolMessage done [15:59:17]OFDSenderStorePacket 30389 [15:59:17]StoreOFDPacket docnum=30389 [15:59: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 54 6B 07 01 DD 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 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 DD 28 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 EA 83 80 D9 35 DE 34 6B F7 B9 28 CE 66 BB [15:59:17]CheckFolder [15:59:17]dirname=/storage/ofd_packets [15:59:17]CheckFolder done [15:59:17]ProducePacketName [15:59:17]name=ofd_packets/00030389 [15:59:17]NVStorageSaveData ofd_packets/00030389 [15:59:17]File name is /storage/ofd_packets/00030389 [15:59:17]Write 301 bytes [15:59:17]NVStorageSaveData done [15:59:17]OFDSenderStorePacket done [15:59:17]KKMCreateOFDPacket done [15:59:17]NVStorageSaveData kkm_last_timestamp [15:59:17]File name is /storage/kkm_last_timestamp [15:59:17]Write 4 bytes [15:59:17]NVStorageSaveData done [15:59:17]ExternCall_PrintAddStr [15:59:17]wPrintStart [15:59:17]Write to MH i2c: 01 00 00 79 93 0C [15:59:17]Write i2c OK [15:59:17]MH_I2C_Read... [15:59:17]Read from MH i2c: 01 [15:59:17]MH_I2C_Read... [15:59:17]Read from MH i2c: 01 07 00 [15:59:17]MH_I2C_Read... [15:59:17]Read from MH i2c: 01 07 00 79 93 00 00 00 00 00 FF 0F 21 [15:59:17]RasterBufferAndPrint [15:59:17]line Счет N : (1)342784 [15:59:17]line ИНН: 02508201610067 [15:59:17]line Контрольно-Кассовый Чек [15:59:17]line ПРОДАЖА [15:59:17]line ТРК (МРК, ГНК) : 33 [15:59:17]line Товар: 2710124130 [15:59:17]line Аи-92-К-2 [15:59:17]line 2.990 * 66.90 [15:59:17]line = 200.03 [15:59:17]line НДС 12% НСП 1% [15:59:17]line > о реализуемом товаре [15:59:17]line ОКРУГЛЕНИЕ: -0.03 [15:59:17]line ИТОГО: 200.00 [15:59:17]line Внесено: 200.00 [15:59:17]line СДАЧА: 0.00 [15:59:17]line НСП 1% : 1.77 [15:59:17]line НДС 12% : 21.24 [15:59:17]line Наличными: 200.00 [15:59:17]line Безнал.: 0.00 [15:59:17]line Место: АЗС № 78 "Партнер Нефть" [15:59:17]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [15:59:17]line СНО: Общий режим [15:59:17]line Чек 171 20.10.2024 15:59 [15:59:17]line Смена: 114 ФФД: 1.0 [15:59:17]line ЗНМ: 0300000137 [15:59:17]line РНМ: 0000000000186857 [15:59:17]line Версия ККМ: v1.0 [15:59:17]line ФМ: 0000000002094219 [15:59:17]line ФД: 30389 [15:59:17]line ФПД: 257850523334110 [15:59:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T155925&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30389&fm=257850523334110&tin=02508201610067®Number=0000000000186857&sum=20000 [15:59:17]OFD Sender: Processing packet 30389 [packets to send 10, broken 9] [15:59:17]ProducePacketName [15:59:17]name=ofd_packets/00030389 [15:59:17]OFD Sender: To server: pG, [15:59:17]CommunicateWithHost lk.salyk.kg:30040 [15:59:17]ConnectInit lk.salyk.kg [15:59:17]written 0, free lines is 4095 [15:59:17]Connected sock=10 [15:59: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 54 6B 07 01 DD 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 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 DD 28 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 EA 83 80 D9 35 DE 34 6B F7 B9 28 CE 66 BB [15:59: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 1C A2 47 00 5D 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 B5 76 00 00 F4 03 04 00 61 D3 14 67 B6 04 01 00 00 90 54 38 54 45 4A A8 25 [15:59:17]CommunicateWithHost err = 0 [15:59:17]CheckOFDResponse [15:59:17]1017 (14) - 77093643461234 [15:59:17]1041 (16) - 0000000002094219 [15:59:17]1040 (4) - 30389 [15:59:17]1012 (4) - 20.10.2024 09:54 [15:59:17]1206 (1) - 0 [15:59:17]OFD Sender: Remove packet 30389 [15:59:17]ProducePacketName [15:59:17]name=ofd_packets/00030389 [15:59:17]NVStorageDeleteData [15:59:18]Write to MH i2c: 01 00 00 A4 93 37 [15:59:18]Write i2c OK [15:59:18]MH_I2C_Read... [15:59:18]Read from MH i2c: 01 [15:59:18]MH_I2C_Read... [15:59:18]Read from MH i2c: 01 07 00 [15:59:18]MH_I2C_Read... [15:59:18]Read from MH i2c: 01 07 00 A4 93 00 00 00 00 00 F3 0C 3D [15:59:18]RasterBufferAndPrint [15:59:18]line [15:59:18]line [15:59:18]line [15:59:18]line [15:59:18]line [15:59:18]written 0, free lines is 3322 [15:59:18]MH_Cut [15:59:18]Write to MH i2c: D1 01 00 AB 93 01 10 [15:59:18]Write i2c OK [15:59:18]MH_I2C_Read... [15:59:18]Read from MH i2c: D1 [15:59:18]MH_I2C_Read... [15:59:18]Read from MH i2c: D1 01 00 [15:59:18]MH_I2C_Read... [15:59:18]Read from MH i2c: D1 01 00 AB 93 00 0F [15:59:18]Write to MH i2c: 01 00 00 AC 93 3F [15:59:18]Write i2c OK [15:59:18]MH_I2C_Read... [15:59:18]OFD Sender: No OFD packet to send [15:59:18]*** Cut start [15:59:18]*** Partial cut [15:59:18]*** CUTSNS_PIN = 1 [15:59:18]*** CUTSNS_PIN = 0 [15:59:19]*** Brake cut motor [15:59:19]Read from MH i2c: 01 [15:59:19]MH_I2C_Read... [15:59:19]*** Stop cut motor [15:59:19]Read from MH i2c: 01 07 00 [15:59:19]MH_I2C_Read... [15:59:19]*** Cut end [15:59:19]Read from MH i2c: 01 07 00 AC 93 00 00 00 00 00 FF 0F 54 [15:59:19]process_action close_receipt done [15:59:19]requested_data is exist [15:59:19]produce_requested_data [15:59:19]requested_item fm.sn is exist - process it [15:59:19]wFMCommunicate request_size=4 [15:59:19]MH_SAM_APDU [15:59:19]CAPDU: 80 11 00 00 [15:59:19]Write to MH i2c: E2 08 00 AD 93 80 11 00 00 00 00 00 00 BA [15:59:19]Write i2c OK [15:59:19]MH_I2C_Read... [15:59:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:59:19]Read from MH i2c: E2 [15:59:19]MH_I2C_Read... [15:59:19]Read from MH i2c: E2 17 00 [15:59:19]MH_I2C_Read... [15:59:19]Read from MH i2c: E2 17 00 AD 93 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:59:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [15:59:19]wFMCommunicate OK [15:59:19]requested_item fd.num is exist - process it [15:59:19]SAM_PROTO_GetFieldsCounters [15:59:19]wFMCommunicate request_size=4 [15:59:19]MH_SAM_APDU [15:59:19]CAPDU: 80 13 00 00 [15:59:19]Write to MH i2c: E2 08 00 AE 93 80 13 00 00 00 00 00 00 BD [15:59:19]Write i2c OK [15:59:19]MH_I2C_Read... [15:59:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:59:19]Read from MH i2c: E2 [15:59:19]MH_I2C_Read... [15:59:19]Read from MH i2c: E2 62 00 [15:59:19]MH_I2C_Read... [15:59:19]Read from MH i2c: E2 62 00 AE 93 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 81 [15:59: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 B5 76 00 00 0E 04 04 00 72 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 [15:59:19]wFMCommunicate OK [15:59:19]SAM_PROTO_GetFieldsCounters done [15:59:19]requested_item shift.num is exist - process it [15:59:19]requested_item shift.opened is exist - process it [15:59:19]req_shift_opened [15:59:19]FM_GetShiftState [15:59:19]SAM_PROTO_GetShiftState [15:59:19]wFMCommunicate request_size=4 [15:59:19]MH_SAM_APDU [15:59:19]CAPDU: 80 13 01 00 [15:59:19]Write to MH i2c: E2 08 00 AF 93 80 13 01 00 00 00 00 00 BF [15:59:19]Write i2c OK [15:59:19]MH_I2C_Read... [15:59:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:59:19]Read from MH i2c: E2 [15:59:19]MH_I2C_Read... [15:59:19]Read from MH i2c: E2 0E 00 [15:59:19]MH_I2C_Read... [15:59:19]Read from MH i2c: E2 0E 00 AF 93 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 A5 [15:59:19]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [15:59:19]wFMCommunicate OK [15:59:19]SAM_PROTO_GetShiftState done [15:59:19]FM_GetShiftState done [15:59:19]req_shift_opened done [15:59:19]requested_item shift.open_date is exist - process it [15:59:19]req_shift_open_date [15:59:19]req_shift_open_date done [15:59:19]produce_requested_data done [15:59:19]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30389,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [15:59:19]process_action_free close_receipt [15:59:19]json_value_free [15:59:19]json_value_free done [15:59:19]process_json_proto returns [15:59:19]Send response to host [15:59:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30389,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [15:59:19]free response buf [15:59:19]execute_script done [15:59:19]execute_script returns [15:59:19]free content buf [15:59:19]Sock 9.Close socket [15:59:19]Sock 9.Thread stoped [15:59:23]OFD Sender: No OFD packet to send [15:59:28]OFD Sender: No OFD packet to send [15:59:33]OFD Sender: No OFD packet to send [15:59:38]OFD Sender: No OFD packet to send [15:59:43]OFD Sender: No OFD packet to send [15:59:48]OFD Sender: No OFD packet to send [15:59:53]OFD Sender: No OFD packet to send [15:59:58]OFD Sender: No OFD packet to send [16:00:03]OFD Sender: No OFD packet to send [16:00:08]OFD Sender: No OFD packet to send [16:00:13]OFD Sender: No OFD packet to send [16:00:18]OFD Sender: No OFD packet to send [16:00:23]OFD Sender: No OFD packet to send [16:00:28]OFD Sender: No OFD packet to send [16:00:33]OFD Sender: No OFD packet to send [16:00:38]OFD Sender: No OFD packet to send [16:00:43]OFD Sender: No OFD packet to send [16:00:48]OFD Sender: No OFD packet to send [16:00:53]OFD Sender: No OFD packet to send [16:00:58]OFD Sender: No OFD packet to send [16:01:03]OFD Sender: No OFD packet to send [16:01:08]OFD Sender: No OFD packet to send [16:01:13]OFD Sender: No OFD packet to send [16:01:18]OFD Sender: No OFD packet to send [16:01:23]OFD Sender: No OFD packet to send [16:01:28]OFD Sender: No OFD packet to send [16:01:33]OFD Sender: No OFD packet to send [16:01:38]OFD Sender: No OFD packet to send [16:01:43]OFD Sender: No OFD packet to send [16:01:48]OFD Sender: No OFD packet to send [16:01:53]OFD Sender: No OFD packet to send [16:01:58]OFD Sender: No OFD packet to send [16:02:03]OFD Sender: No OFD packet to send [16:02:08]OFD Sender: No OFD packet to send [16:02:13]OFD Sender: No OFD packet to send [16:02:18]OFD Sender: No OFD packet to send [16:02:23]OFD Sender: No OFD packet to send [16:02:28]OFD Sender: No OFD packet to send [16:02:33]OFD Sender: No OFD packet to send [16:02:38]OFD Sender: No OFD packet to send [16:02:42]accept exits with 7 [16:02:42]New connection [16:02:42]New thread 3067514212 created [16:02:42]Thread 3067370852 joined [16:02:42]Waiting for new connection... [16:02:42] Sock 7.Parse request [16:02:42]Sock 7.Check first char [16:02:42]Sock 7.First char is OK [16:02:42]request: POST /json_proto HTTP/1.0 [16:02:42]Method: POST [16:02:42]URL: /json_proto [16:02:42]Method is POST - this is cgi request [16:02:42]url: /json_proto [16:02:42]query_string will be loaded in cgi processing [16:02:42]execute_cgi json_proto POST (null) [16:02:42]execute_cgi path=json_proto method=POST [16:02:42]POST find Content-Length [16:02:42]Host: 172.17.51.3:8080 [16:02:42]Content-Length: 679 [16:02:42]Content-Type: application/json [16:02:42] [16:02:42]POST finish read [16:02:42]Found Content-Length = 679 [16:02:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342785", "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" : 43.310, "sum" : 3300.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3300.00, "total" : 3300.00, "payments": [ { "type": 0, "sum" : 3300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:02:42]execute_script... [16:02:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342785", "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" : 43.310, "sum" : 3300.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3300.00, "total" : 3300.00, "payments": [ { "type": 0, "sum" : 3300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:02:42]POST & json_proto [16:02:42]process_json_proto [16:02:42]json parsed OK: [16:02:42]protocol is kg_v1.0 [16:02:42]action value=close_receipt [16:02:42]process_action close_receipt [16:02:42]cmd_close_receipt [16:02:42]MH_GetDate [16:02:42]Write to MH i2c: F0 00 00 B0 93 32 [16:02:42]Write i2c OK [16:02:42]MH_I2C_Read... [16:02:42]Read from MH i2c: F0 [16:02:42]MH_I2C_Read... [16:02:42]Read from MH i2c: F0 09 00 [16:02:42]MH_I2C_Read... [16:02:42]Read from MH i2c: F0 09 00 B0 93 00 AC 29 15 67 04 C1 95 66 4C [16:02:42]GetLastDocTimeStamp 1729439965 [16:02:42]current date 1729440172 [16:02:42]FM_GetShiftState [16:02:42]SAM_PROTO_GetShiftState [16:02:42]wFMCommunicate request_size=4 [16:02:42]MH_SAM_APDU [16:02:42]CAPDU: 80 13 01 00 [16:02:42]Write to MH i2c: E2 08 00 B1 93 80 13 01 00 00 00 00 00 C1 [16:02:42]Write i2c OK [16:02:42]MH_I2C_Read... [16:02:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:02:42]Read from MH i2c: E2 [16:02:42]MH_I2C_Read... [16:02:42]Read from MH i2c: E2 0E 00 [16:02:42]MH_I2C_Read... [16:02:42]Read from MH i2c: E2 0E 00 B1 93 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 A7 [16:02:42]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [16:02:42]wFMCommunicate OK [16:02:42]SAM_PROTO_GetShiftState done [16:02:42]FM_GetShiftState done [16:02:42]opened in 1729384718 [16:02:42]opened+sec_in_day 1729471118 [16:02:42]quantity*price = 330022 [16:02:42]sum+1 = 330023 [16:02:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 3300.00 Внесено: 3300.00 СДАЧА: 0.00 НСП 1% : 29.20 НДС 12% : 350.47 Наличными: 3300.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 172 20.10.2024 16:02 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30390 ФПД: 273973308148273 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T160252&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30390&fm=273973308148273&tin=02508201610067®Number=0000000000186857&sum=330000 [16:02:43]StoreToDocumentArchive [16:02:43]shift 114 fd 30390 [16:02:43]save to /storage/0114/doc_00030390 [16:02:43]save last doc name /storage/0114/doc_00030390 to /storage/kkm_last_doc_name [16:02:43]save OK [16:02:43]Clear old archive folders... [16:02:43]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:02:43]tlvbuf is 00B380C0 [16:02:43]SAM_PROTO_ClearQueue [16:02:43]wFMCommunicate request_size=4 [16:02:43]MH_SAM_APDU [16:02:43]CAPDU: 80 09 00 00 [16:02:43]Write to MH i2c: E2 08 00 BE 93 80 09 00 00 00 00 00 00 C3 [16:02:43]Write i2c OK [16:02:43]MH_I2C_Read... [16:02:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:02:43]Read from MH i2c: E2 [16:02:43]MH_I2C_Read... [16:02:43]Read from MH i2c: E2 03 00 [16:02:43]MH_I2C_Read... [16:02:43]Read from MH i2c: E2 03 00 BE 93 00 90 00 C5 [16:02:43]RAPDU: 90 00 [16:02:43]wFMCommunicate OK [16:02:43]SAM_PROTO_ClearQueue done [16:02:43]KKMCreateOFDPacket [16:02:43]OFDProtocolAddRootSTLVToBuf [16:02:43]FM_MakeSignedData [16:02:43]FM_MakeSignedData [16:02:43]SAM_PROTO_SignData [16:02:43]wFMCommunicate request_size=4 [16:02:43]MH_SAM_APDU [16:02:43]CAPDU: 80 0D 01 02 [16:02:43]Write to MH i2c: E2 08 00 BF 93 80 0D 01 02 00 00 00 00 CB [16:02:43]Write i2c OK [16:02:43]MH_I2C_Read... [16:02:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:02:43]Read from MH i2c: E2 [16:02:43]MH_I2C_Read... [16:02:43]Read from MH i2c: E2 03 00 [16:02:43]MH_I2C_Read... [16:02:43]Read from MH i2c: E2 03 00 BF 93 00 90 00 C6 [16:02:43]RAPDU: 90 00 [16:02:43]wFMCommunicate OK [16:02:43]wFMCommunicate request_size=255 [16:02:43]MH_SAM_APDU [16:02:43]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 2E A9 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 26 09 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 09 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 68 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 88 00 00 00 00 07 04 06 00 10 09 05 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 AC 29 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 F9 2D 61 B5 [16:02:43]Write to MH i2c: E2 02 01 C0 93 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 2E A9 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 26 09 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 09 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 68 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 88 00 00 00 00 07 04 06 00 10 09 05 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 AC 29 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 F9 2D 61 B5 00 00 0B [16:02:43]Write i2c OK [16:02:43]MH_I2C_Read... [16:02:43]OFD Sender: No OFD packet to send [16:02:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:02:43]Read from MH i2c: E2 [16:02:43]MH_I2C_Read... [16:02:43]Read from MH i2c: E2 03 00 [16:02:43]MH_I2C_Read... [16:02:43]Read from MH i2c: E2 03 00 C0 93 00 90 00 C7 [16:02:43]RAPDU: 90 00 [16:02:43]wFMCommunicate OK [16:02:43]wFMCommunicate request_size=7 [16:02:43]MH_SAM_APDU [16:02:43]CAPDU: 80 0D 02 02 02 CA 31 [16:02:43]Write to MH i2c: E2 0A 00 C1 93 80 0D 02 02 02 00 CA 31 00 00 CD [16:02:43]Write i2c OK [16:02:43]MH_I2C_Read... [16:02:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:02:43]Read from MH i2c: E2 [16:02:43]MH_I2C_Read... [16:02:43]Read from MH i2c: E2 03 00 [16:02:43]MH_I2C_Read... [16:02:43]Read from MH i2c: E2 03 00 C1 93 00 90 00 C8 [16:02:43]RAPDU: 90 00 [16:02:43]wFMCommunicate OK [16:02:43]wFMCommunicate request_size=4 [16:02:43]MH_SAM_APDU [16:02:43]CAPDU: 80 0D 03 02 [16:02:43]Write to MH i2c: E2 08 00 C2 93 80 0D 03 02 00 00 00 00 D0 [16:02:43]Write i2c OK [16:02:43]MH_I2C_Read... [16:02:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:02:43]Read from MH i2c: E2 [16:02:43]MH_I2C_Read... [16:02:43]Read from MH i2c: E2 0B 00 [16:02:43]MH_I2C_Read... [16:02:43]Read from MH i2c: E2 0B 00 C2 93 00 E7 CD 34 2F 73 9E C6 95 90 00 54 [16:02:43]RAPDU: E7 CD 34 2F 73 9E C6 95 90 00 [16:02:43]wFMCommunicate OK [16:02:43]SAM_PROTO_SignData done [16:02:43]FM_MakeSignedData done [16:02:43]CreateOFDProtocolMessage [16:02:43]wFMCommunicate request_size=4 [16:02:43]MH_SAM_APDU [16:02:43]CAPDU: 80 11 00 00 [16:02:43]Write to MH i2c: E2 08 00 C3 93 80 11 00 00 00 00 00 00 D0 [16:02:43]Write i2c OK [16:02:43]MH_I2C_Read... [16:02:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:02:43]Read from MH i2c: E2 [16:02:43]MH_I2C_Read... [16:02:43]Read from MH i2c: E2 17 00 [16:02:43]MH_I2C_Read... [16:02:43]Read from MH i2c: E2 17 00 C3 93 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 1E [16:02: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:02:43]wFMCommunicate OK [16:02:43]CreateOFDProtocolMessage done [16:02:43]OFDSenderStorePacket 30390 [16:02:43]StoreOFDPacket docnum=30390 [16:02: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 7F F4 04 01 51 5E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 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 2E A9 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 26 09 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 09 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 68 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 88 00 00 00 00 07 04 06 00 10 09 05 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 AC 29 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 F9 2D 61 B5 CA 31 E7 CD 34 2F 73 9E C6 95 [16:02:43]CheckFolder [16:02:43]dirname=/storage/ofd_packets [16:02:43]CheckFolder done [16:02:43]ProducePacketName [16:02:43]name=ofd_packets/00030390 [16:02:43]NVStorageSaveData ofd_packets/00030390 [16:02:43]File name is /storage/ofd_packets/00030390 [16:02:43]Write 298 bytes [16:02:43]NVStorageSaveData done [16:02:43]OFDSenderStorePacket done [16:02:43]KKMCreateOFDPacket done [16:02:43]NVStorageSaveData kkm_last_timestamp [16:02:43]File name is /storage/kkm_last_timestamp [16:02:43]Write 4 bytes [16:02:43]NVStorageSaveData done [16:02:43]ExternCall_PrintAddStr [16:02:43]wPrintStart [16:02:43]Write to MH i2c: 01 00 00 C4 93 57 [16:02:43]Write i2c OK [16:02:43]MH_I2C_Read... [16:02:43]Read from MH i2c: 01 [16:02:43]MH_I2C_Read... [16:02:43]Read from MH i2c: 01 07 00 [16:02:43]MH_I2C_Read... [16:02:43]Read from MH i2c: 01 07 00 C4 93 00 00 00 00 00 FF 0F 6C [16:02:43]RasterBufferAndPrint [16:02:43]line Счет N : (1)342785 [16:02:43]line ИНН: 02508201610067 [16:02:43]line Контрольно-Кассовый Чек [16:02:43]line ПРОДАЖА [16:02:43]line ТРК (МРК, ГНК) : 34 [16:02:43]line Товар: 2710194210 [16:02:43]line ДТ-К-2 [16:02:43]line 43.310 * 76.20 [16:02:43]line = 3300.22 [16:02:43]line НДС 12% НСП 1% [16:02:43]line > о реализуемом товаре [16:02:43]line ОКРУГЛЕНИЕ: -0.22 [16:02:43]line ИТОГО: 3300.00 [16:02:43]line Внесено: 3300.00 [16:02:43]line СДАЧА: 0.00 [16:02:43]line НСП 1% : 29.20 [16:02:43]line НДС 12% : 350.47 [16:02:43]line Наличными: 3300.00 [16:02:43]line Безнал.: 0.00 [16:02:43]line Место: АЗС № 78 "Партнер Нефть" [16:02:43]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [16:02:43]line СНО: Общий режим [16:02:43]line Чек 172 20.10.2024 16:02 [16:02:43]line Смена: 114 ФФД: 1.0 [16:02:43]line ЗНМ: 0300000137 [16:02:43]line РНМ: 0000000000186857 [16:02:43]line Версия ККМ: v1.0 [16:02:43]line ФМ: 0000000002094219 [16:02:43]line ФД: 30390 [16:02:43]line ФПД: 273973308148273 [16:02:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T160252&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30390&fm=273973308148273&tin=02508201610067®Number=0000000000186857&sum=330000 [16:02:44]OFD Sender: Processing packet 30390 [packets to send 10, broken 9] [16:02:44]ProducePacketName [16:02:44]name=ofd_packets/00030390 [16:02:44]OFD Sender: To server: pG, [16:02:44]CommunicateWithHost lk.salyk.kg:30040 [16:02:44]ConnectInit lk.salyk.kg [16:02:44]written 0, free lines is 4095 [16:02:44]Connected sock=10 [16:02: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 7F F4 04 01 51 5E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 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 2E A9 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 26 09 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 09 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 68 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 88 00 00 00 00 07 04 06 00 10 09 05 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 AC 29 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 F9 2D 61 B5 CA 31 E7 CD 34 2F 73 9E C6 95 [16:02: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 C3 99 47 00 28 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 B6 76 00 00 F4 03 04 00 2F D4 14 67 B6 04 01 00 00 2D 86 44 CD EC 3E F5 79 [16:02:44]CommunicateWithHost err = 0 [16:02:44]CheckOFDResponse [16:02:44]1017 (14) - 77093643461234 [16:02:44]1041 (16) - 0000000002094219 [16:02:44]1040 (4) - 30390 [16:02:44]1012 (4) - 20.10.2024 09:58 [16:02:44]1206 (1) - 0 [16:02:44]OFD Sender: Remove packet 30390 [16:02:44]ProducePacketName [16:02:44]name=ofd_packets/00030390 [16:02:44]NVStorageDeleteData [16:02:44]Write to MH i2c: 01 00 00 EF 93 82 [16:02:44]Write i2c OK [16:02:44]MH_I2C_Read... [16:02:44]Read from MH i2c: 01 [16:02:44]MH_I2C_Read... [16:02:44]Read from MH i2c: 01 07 00 [16:02:44]MH_I2C_Read... [16:02:44]Read from MH i2c: 01 07 00 EF 93 00 00 00 00 00 F8 0C 8D [16:02:44]RasterBufferAndPrint [16:02:44]line [16:02:44]line [16:02:44]line [16:02:44]line [16:02:44]line [16:02:44]written 0, free lines is 3326 [16:02:44]MH_Cut [16:02:44]Write to MH i2c: D1 01 00 F6 93 01 5B [16:02:44]Write i2c OK [16:02:44]MH_I2C_Read... [16:02:44]Read from MH i2c: D1 [16:02:44]MH_I2C_Read... [16:02:44]Read from MH i2c: D1 01 00 [16:02:44]MH_I2C_Read... [16:02:44]Read from MH i2c: D1 01 00 F6 93 00 5A [16:02:44]Write to MH i2c: 01 00 00 F7 93 8A [16:02:44]Write i2c OK [16:02:44]MH_I2C_Read... [16:02:45]OFD Sender: No OFD packet to send [16:02:45]*** Cut start [16:02:45]*** Partial cut [16:02:45]*** CUTSNS_PIN = 1 [16:02:45]*** CUTSNS_PIN = 0 [16:02:45]*** Brake cut motor [16:02:45]Read from MH i2c: 01 [16:02:45]MH_I2C_Read... [16:02:45]*** Stop cut motor [16:02:45]*** Cut end [16:02:45]Read from MH i2c: 01 07 00 [16:02:45]MH_I2C_Read... [16:02:45]Read from MH i2c: 01 07 00 F7 93 00 00 00 00 00 FF 0F 9F [16:02:45]process_action close_receipt done [16:02:45]requested_data is exist [16:02:45]produce_requested_data [16:02:45]requested_item fm.sn is exist - process it [16:02:45]wFMCommunicate request_size=4 [16:02:45]MH_SAM_APDU [16:02:45]CAPDU: 80 11 00 00 [16:02:46]Write to MH i2c: E2 08 00 F8 93 80 11 00 00 00 00 00 00 05 [16:02:46]Write i2c OK [16:02:46]MH_I2C_Read... [16:02:46]Read from MH i2c: E2 [16:02:46]MH_I2C_Read... [16:02:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:02:46]Read from MH i2c: E2 17 00 [16:02:46]MH_I2C_Read... [16:02:46]Read from MH i2c: E2 17 00 F8 93 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:02: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:02:46]wFMCommunicate OK [16:02:46]requested_item fd.num is exist - process it [16:02:46]SAM_PROTO_GetFieldsCounters [16:02:46]wFMCommunicate request_size=4 [16:02:46]MH_SAM_APDU [16:02:46]CAPDU: 80 13 00 00 [16:02:46]Write to MH i2c: E2 08 00 F9 93 80 13 00 00 00 00 00 00 08 [16:02:46]Write i2c OK [16:02:46]MH_I2C_Read... [16:02:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:02:46]Read from MH i2c: E2 [16:02:46]MH_I2C_Read... [16:02:46]Read from MH i2c: E2 62 00 [16:02:46]MH_I2C_Read... [16:02:46]Read from MH i2c: E2 62 00 F9 93 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 D0 [16:02: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 B6 76 00 00 0E 04 04 00 72 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:02:46]wFMCommunicate OK [16:02:46]SAM_PROTO_GetFieldsCounters done [16:02:46]requested_item shift.num is exist - process it [16:02:46]requested_item shift.opened is exist - process it [16:02:46]req_shift_opened [16:02:46]FM_GetShiftState [16:02:46]SAM_PROTO_GetShiftState [16:02:46]wFMCommunicate request_size=4 [16:02:46]MH_SAM_APDU [16:02:46]CAPDU: 80 13 01 00 [16:02:46]Write to MH i2c: E2 08 00 FA 93 80 13 01 00 00 00 00 00 0A [16:02:46]Write i2c OK [16:02:46]MH_I2C_Read... [16:02:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:02:46]Read from MH i2c: E2 [16:02:46]MH_I2C_Read... [16:02:46]Read from MH i2c: E2 0E 00 [16:02:46]MH_I2C_Read... [16:02:46]Read from MH i2c: E2 0E 00 FA 93 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 F0 [16:02:46]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [16:02:46]wFMCommunicate OK [16:02:46]SAM_PROTO_GetShiftState done [16:02:46]FM_GetShiftState done [16:02:46]req_shift_opened done [16:02:46]requested_item shift.open_date is exist - process it [16:02:46]req_shift_open_date [16:02:46]req_shift_open_date done [16:02:46]produce_requested_data done [16:02:46]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30390,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [16:02:46]process_action_free close_receipt [16:02:46]json_value_free [16:02:46]json_value_free done [16:02:46]process_json_proto returns [16:02:46]Send response to host [16:02:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30390,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [16:02:46]free response buf [16:02:46]execute_script done [16:02:46]execute_script returns [16:02:46]free content buf [16:02:46]Sock 7.Close socket [16:02:46]Sock 7.Thread stoped [16:02:50]OFD Sender: No OFD packet to send [16:02:55]OFD Sender: No OFD packet to send [16:03:00]OFD Sender: No OFD packet to send [16:03:05]OFD Sender: No OFD packet to send [16:03:10]OFD Sender: No OFD packet to send [16:03:15]OFD Sender: No OFD packet to send [16:03:20]OFD Sender: No OFD packet to send [16:03:25]OFD Sender: No OFD packet to send [16:03:27]accept exits with 9 [16:03:27]New connection [16:03:27]New thread 3067370852 created [16:03:27]Thread 3067514212 joined [16:03:27]Waiting for new connection... [16:03:27] Sock 9.Parse request [16:03:27]Sock 9.Check first char [16:03:27]Sock 9.First char is OK [16:03:27]request: POST /json_proto HTTP/1.0 [16:03:27]Method: POST [16:03:27]URL: /json_proto [16:03:27]Method is POST - this is cgi request [16:03:27]url: /json_proto [16:03:27]query_string will be loaded in cgi processing [16:03:27]execute_cgi json_proto POST (null) [16:03:27]execute_cgi path=json_proto method=POST [16:03:27]POST find Content-Length [16:03:27]Host: 172.17.51.3:8080 [16:03:27]Content-Length: 751 [16:03:27]Content-Type: application/json [16:03:27] [16:03:27]POST finish read [16:03:27]Found Content-Length = 751 [16:03:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342786", "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" : 70.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\u000A30033718", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:03:27]execute_script... [16:03: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)342786", "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" : 70.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\u000A30033718", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:03:27]POST & json_proto [16:03:27]process_json_proto [16:03:27]json parsed OK: [16:03:27]protocol is kg_v1.0 [16:03:27]action value=close_receipt [16:03:27]process_action close_receipt [16:03:27]cmd_close_receipt [16:03:27]MH_GetDate [16:03:27]Write to MH i2c: F0 00 00 FB 93 7D [16:03:27]Write i2c OK [16:03:27]MH_I2C_Read... [16:03:27]Read from MH i2c: F0 [16:03:27]MH_I2C_Read... [16:03:27]Read from MH i2c: F0 09 00 [16:03:27]MH_I2C_Read... [16:03:27]Read from MH i2c: F0 09 00 FB 93 00 D9 29 15 67 04 C1 95 66 C4 [16:03:27]GetLastDocTimeStamp 1729440172 [16:03:27]current date 1729440217 [16:03:27]FM_GetShiftState [16:03:27]SAM_PROTO_GetShiftState [16:03:27]wFMCommunicate request_size=4 [16:03:27]MH_SAM_APDU [16:03:27]CAPDU: 80 13 01 00 [16:03:27]Write to MH i2c: E2 08 00 FC 93 80 13 01 00 00 00 00 00 0C [16:03:27]Write i2c OK [16:03:27]MH_I2C_Read... [16:03:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:03:27]Read from MH i2c: E2 [16:03:27]MH_I2C_Read... [16:03:27]Read from MH i2c: E2 0E 00 [16:03:27]MH_I2C_Read... [16:03:27]Read from MH i2c: E2 0E 00 FC 93 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 F2 [16:03:27]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [16:03:27]wFMCommunicate OK [16:03:27]SAM_PROTO_GetShiftState done [16:03:27]FM_GetShiftState done [16:03:27]opened in 1729384718 [16:03:27]opened+sec_in_day 1729471118 [16:03:27]quantity*price = 0 [16:03:27]sum+1 = 1 [16:03:27]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 173 20.10.2024 16:03 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30033718 ФМ: 0000000002094219 ФД: 30391 ФПД: 197443012818339 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T160337&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30391&fm=197443012818339&tin=02508201610067®Number=0000000000186857&sum=0 [16:03:28]StoreToDocumentArchive [16:03:28]shift 114 fd 30391 [16:03:28]save to /storage/0114/doc_00030391 [16:03:28]save last doc name /storage/0114/doc_00030391 to /storage/kkm_last_doc_name [16:03:28]save OK [16:03:28]Clear old archive folders... [16:03:28]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:03:28]tlvbuf is 00BD1BC0 [16:03:28]SAM_PROTO_ClearQueue [16:03:28]wFMCommunicate request_size=4 [16:03:28]MH_SAM_APDU [16:03:28]CAPDU: 80 09 00 00 [16:03:28]Write to MH i2c: E2 08 00 09 94 80 09 00 00 00 00 00 00 0F [16:03:28]Write i2c OK [16:03:28]MH_I2C_Read... [16:03:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:03:28]Read from MH i2c: E2 [16:03:28]MH_I2C_Read... [16:03:28]Read from MH i2c: E2 03 00 [16:03:28]MH_I2C_Read... [16:03:28]Read from MH i2c: E2 03 00 09 94 00 90 00 11 [16:03:28]RAPDU: 90 00 [16:03:28]wFMCommunicate OK [16:03:28]SAM_PROTO_ClearQueue done [16:03:28]KKMCreateOFDPacket [16:03:28]OFDProtocolAddRootSTLVToBuf [16:03:28]FM_MakeSignedData [16:03:28]FM_MakeSignedData [16:03:28]SAM_PROTO_SignData [16:03:28]wFMCommunicate request_size=4 [16:03:28]MH_SAM_APDU [16:03:28]CAPDU: 80 0D 01 02 [16:03:28]Write to MH i2c: E2 08 00 0A 94 80 0D 01 02 00 00 00 00 17 [16:03:28]Write i2c OK [16:03:28]MH_I2C_Read... [16:03:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:03:28]Read from MH i2c: E2 [16:03:28]MH_I2C_Read... [16:03:28]Read from MH i2c: E2 03 00 [16:03:28]MH_I2C_Read... [16:03:28]Read from MH i2c: E2 03 00 0A 94 00 90 00 12 [16:03:28]RAPDU: 90 00 [16:03:28]wFMCommunicate OK [16:03:28]wFMCommunicate request_size=255 [16:03:28]MH_SAM_APDU [16:03:28]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 70 11 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 AD 00 00 00 F4 03 04 00 D9 29 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 B3 92 C8 A4 [16:03:28]Write to MH i2c: E2 02 01 0B 94 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 70 11 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 AD 00 00 00 F4 03 04 00 D9 29 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 B3 92 C8 A4 00 00 73 [16:03:28]Write i2c OK [16:03:28]MH_I2C_Read... [16:03:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:03:29]Read from MH i2c: E2 [16:03:29]MH_I2C_Read... [16:03:29]Read from MH i2c: E2 03 00 [16:03:29]MH_I2C_Read... [16:03:29]Read from MH i2c: E2 03 00 0B 94 00 90 00 13 [16:03:29]RAPDU: 90 00 [16:03:29]wFMCommunicate OK [16:03:29]wFMCommunicate request_size=7 [16:03:29]MH_SAM_APDU [16:03:29]CAPDU: 80 0D 02 02 02 75 A3 [16:03:29]Write to MH i2c: E2 0A 00 0C 94 80 0D 02 02 02 00 75 A3 00 00 36 [16:03:29]Write i2c OK [16:03:29]MH_I2C_Read... [16:03:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:03:29]Read from MH i2c: E2 [16:03:29]MH_I2C_Read... [16:03:29]Read from MH i2c: E2 03 00 [16:03:29]MH_I2C_Read... [16:03:29]Read from MH i2c: E2 03 00 0C 94 00 90 00 14 [16:03:29]RAPDU: 90 00 [16:03:29]wFMCommunicate OK [16:03:29]wFMCommunicate request_size=4 [16:03:29]MH_SAM_APDU [16:03:29]CAPDU: 80 0D 03 02 [16:03:29]Write to MH i2c: E2 08 00 0D 94 80 0D 03 02 00 00 00 00 1C [16:03:29]Write i2c OK [16:03:29]MH_I2C_Read... [16:03:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:03:29]Read from MH i2c: E2 [16:03:29]MH_I2C_Read... [16:03:29]Read from MH i2c: E2 0B 00 [16:03:29]MH_I2C_Read... [16:03:29]Read from MH i2c: E2 0B 00 0D 94 00 58 C4 3C 9A 56 14 D3 FA 90 00 46 [16:03:29]RAPDU: 58 C4 3C 9A 56 14 D3 FA 90 00 [16:03:29]wFMCommunicate OK [16:03:29]SAM_PROTO_SignData done [16:03:29]FM_MakeSignedData done [16:03:29]CreateOFDProtocolMessage [16:03:29]wFMCommunicate request_size=4 [16:03:29]MH_SAM_APDU [16:03:29]CAPDU: 80 11 00 00 [16:03:29]Write to MH i2c: E2 08 00 0E 94 80 11 00 00 00 00 00 00 1C [16:03:29]Write i2c OK [16:03:29]MH_I2C_Read... [16:03:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:03:29]Read from MH i2c: E2 [16:03:29]MH_I2C_Read... [16:03:29]Read from MH i2c: E2 17 00 [16:03:29]MH_I2C_Read... [16:03:29]Read from MH i2c: E2 17 00 0E 94 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:03: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:03:29]wFMCommunicate OK [16:03:29]CreateOFDProtocolMessage done [16:03:29]OFDSenderStorePacket 30391 [16:03:29]StoreOFDPacket docnum=30391 [16:03: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 0C 01 00 00 D3 68 04 01 06 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 70 11 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 AD 00 00 00 F4 03 04 00 D9 29 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 B3 92 C8 A4 75 A3 58 C4 3C 9A 56 14 D3 FA [16:03:29]CheckFolder [16:03:29]dirname=/storage/ofd_packets [16:03:29]CheckFolder done [16:03:29]ProducePacketName [16:03:29]name=ofd_packets/00030391 [16:03:29]NVStorageSaveData ofd_packets/00030391 [16:03:29]File name is /storage/ofd_packets/00030391 [16:03:29]Write 298 bytes [16:03:29]NVStorageSaveData done [16:03:29]OFDSenderStorePacket done [16:03:29]KKMCreateOFDPacket done [16:03:29]NVStorageSaveData kkm_last_timestamp [16:03:29]File name is /storage/kkm_last_timestamp [16:03:29]Write 4 bytes [16:03:29]NVStorageSaveData done [16:03:29]ExternCall_PrintAddStr [16:03:29]wPrintStart [16:03:29]Write to MH i2c: 01 00 00 0F 94 A3 [16:03:29]Write i2c OK [16:03:29]MH_I2C_Read... [16:03:29]Read from MH i2c: 01 [16:03:29]MH_I2C_Read... [16:03:29]Read from MH i2c: 01 07 00 [16:03:29]MH_I2C_Read... [16:03:29]Read from MH i2c: 01 07 00 0F 94 00 00 00 00 00 FF 0F B8 [16:03:29]RasterBufferAndPrint [16:03:29]line Счет N : (1)342786 [16:03:29]line ИНН: 02508201610067 [16:03:29]line Контрольно-Кассовый Чек [16:03:29]line ПРОДАЖА [16:03:29]line ТРК (МРК, ГНК) : 64 [16:03:29]line Товар: 2710194210 [16:03:29]line ДТ-К-2 [16:03:29]line 70.000 * 0.00 [16:03:29]line = 0.00 [16:03:29]line НДС 12% НСП 1% [16:03:29]line > о реализуемом товаре [16:03:29]line ИТОГО: 0.00 [16:03:29]line НСП 1% : 0.00 [16:03:29]line НДС 12% : 0.00 [16:03:29]line Наличными: 0.00 [16:03:29]line Безнал.: 0.00 [16:03:29]line Место: АЗС № 78 "Партнер Нефть" [16:03:29]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [16:03:29]line СНО: Общий режим [16:03:29]line Чек 173 20.10.2024 16:03 [16:03:29]line Смена: 114 ФФД: 1.0 [16:03:29]line ЗНМ: 0300000137 [16:03:29]line РНМ: 0000000000186857 [16:03:29]line Версия ККМ: v1.0 [16:03:29]line Талоны: ТК ГПНА Online [16:03:29]line 30033718 [16:03:29]line ФМ: 0000000002094219 [16:03:29]line ФД: 30391 [16:03:29]line ФПД: 197443012818339 [16:03:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T160337&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30391&fm=197443012818339&tin=02508201610067®Number=0000000000186857&sum=0 [16:03:29]OFD Sender: Processing packet 30391 [packets to send 10, broken 9] [16:03:29]ProducePacketName [16:03:29]name=ofd_packets/00030391 [16:03:29]OFD Sender: To server: pG, [16:03:29]CommunicateWithHost lk.salyk.kg:30040 [16:03:29]ConnectInit lk.salyk.kg [16:03:29]written 0, free lines is 4095 [16:03:29]Connected sock=10 [16:03: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 0C 01 00 00 D3 68 04 01 06 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 70 11 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 AD 00 00 00 F4 03 04 00 D9 29 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 B3 92 C8 A4 75 A3 58 C4 3C 9A 56 14 D3 FA [16:03: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 F6 EE 47 00 9B 05 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 B7 76 00 00 F4 03 04 00 5D D4 14 67 B6 04 01 00 00 C7 C8 C0 3A 3C 97 34 56 [16:03:29]CommunicateWithHost err = 0 [16:03:29]CheckOFDResponse [16:03:29]1017 (14) - 77093643461234 [16:03:29]1041 (16) - 0000000002094219 [16:03:29]1040 (4) - 30391 [16:03:29]1012 (4) - 20.10.2024 09:58 [16:03:29]1206 (1) - 0 [16:03:29]OFD Sender: Remove packet 30391 [16:03:29]ProducePacketName [16:03:29]name=ofd_packets/00030391 [16:03:29]NVStorageDeleteData [16:03:30]Write to MH i2c: 01 00 00 39 94 CD [16:03:30]Write i2c OK [16:03:30]MH_I2C_Read... [16:03:30]Read from MH i2c: 01 [16:03:30]MH_I2C_Read... [16:03:30]Read from MH i2c: 01 07 00 [16:03:30]MH_I2C_Read... [16:03:30]Read from MH i2c: 01 07 00 39 94 00 00 00 00 00 07 0D E8 [16:03:30]RasterBufferAndPrint [16:03:30]line [16:03:30]line [16:03:30]line [16:03:30]line [16:03:30]line [16:03:30]written 0, free lines is 3342 [16:03:30]MH_Cut [16:03:30]Write to MH i2c: D1 01 00 40 94 01 A6 [16:03:30]Write i2c OK [16:03:30]MH_I2C_Read... [16:03:30]Read from MH i2c: D1 [16:03:30]MH_I2C_Read... [16:03:30]Read from MH i2c: D1 01 00 [16:03:30]MH_I2C_Read... [16:03:30]Read from MH i2c: D1 01 00 40 94 00 A5 [16:03:30]Write to MH i2c: 01 00 00 41 94 D5 [16:03:30]Write i2c OK [16:03:30]MH_I2C_Read... [16:03:30]OFD Sender: No OFD packet to send [16:03:30]*** Cut start [16:03:30]*** Partial cut [16:03:30]*** CUTSNS_PIN = 1 [16:03:30]*** CUTSNS_PIN = 0 [16:03:30]*** Brake cut motor [16:03:31]Read from MH i2c: 01 [16:03:31]MH_I2C_Read... [16:03:31]*** Stop cut motor [16:03:31]*** Cut end [16:03:31]Read from MH i2c: 01 07 00 [16:03:31]MH_I2C_Read... [16:03:31]Read from MH i2c: 01 07 00 41 94 00 00 00 00 00 FF 0F EA [16:03:31]process_action close_receipt done [16:03:31]requested_data is exist [16:03:31]produce_requested_data [16:03:31]requested_item fm.sn is exist - process it [16:03:31]wFMCommunicate request_size=4 [16:03:31]MH_SAM_APDU [16:03:31]CAPDU: 80 11 00 00 [16:03:31]Write to MH i2c: E2 08 00 42 94 80 11 00 00 00 00 00 00 50 [16:03:31]Write i2c OK [16:03:31]MH_I2C_Read... [16:03:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:03:31]Read from MH i2c: E2 [16:03:31]MH_I2C_Read... [16:03:31]Read from MH i2c: E2 17 00 [16:03:31]MH_I2C_Read... [16:03:31]Read from MH i2c: E2 17 00 42 94 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:03: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:03:31]wFMCommunicate OK [16:03:31]requested_item fd.num is exist - process it [16:03:31]SAM_PROTO_GetFieldsCounters [16:03:31]wFMCommunicate request_size=4 [16:03:31]MH_SAM_APDU [16:03:31]CAPDU: 80 13 00 00 [16:03:31]Write to MH i2c: E2 08 00 43 94 80 13 00 00 00 00 00 00 53 [16:03:31]Write i2c OK [16:03:31]MH_I2C_Read... [16:03:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:03:31]Read from MH i2c: E2 [16:03:31]MH_I2C_Read... [16:03:31]Read from MH i2c: E2 62 00 [16:03:31]MH_I2C_Read... [16:03:31]Read from MH i2c: E2 62 00 43 94 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 1F [16:03: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 B7 76 00 00 0E 04 04 00 72 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:03:31]wFMCommunicate OK [16:03:31]SAM_PROTO_GetFieldsCounters done [16:03:31]requested_item shift.num is exist - process it [16:03:31]requested_item shift.opened is exist - process it [16:03:31]req_shift_opened [16:03:31]FM_GetShiftState [16:03:31]SAM_PROTO_GetShiftState [16:03:31]wFMCommunicate request_size=4 [16:03:31]MH_SAM_APDU [16:03:31]CAPDU: 80 13 01 00 [16:03:31]Write to MH i2c: E2 08 00 44 94 80 13 01 00 00 00 00 00 55 [16:03:31]Write i2c OK [16:03:31]MH_I2C_Read... [16:03:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:03:31]Read from MH i2c: E2 [16:03:31]MH_I2C_Read... [16:03:31]Read from MH i2c: E2 0E 00 [16:03:31]MH_I2C_Read... [16:03:31]Read from MH i2c: E2 0E 00 44 94 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 3B [16:03:31]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [16:03:31]wFMCommunicate OK [16:03:31]SAM_PROTO_GetShiftState done [16:03:31]FM_GetShiftState done [16:03:31]req_shift_opened done [16:03:31]requested_item shift.open_date is exist - process it [16:03:31]req_shift_open_date [16:03:31]req_shift_open_date done [16:03:31]produce_requested_data done [16:03:31]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30391,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [16:03:31]process_action_free close_receipt [16:03:31]json_value_free [16:03:31]json_value_free done [16:03:31]process_json_proto returns [16:03:31]Send response to host [16:03:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30391,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [16:03:31]free response buf [16:03:31]execute_script done [16:03:31]execute_script returns [16:03:31]free content buf [16:03:31]Sock 9.Close socket [16:03:31]Sock 9.Thread stoped [16:03:35]OFD Sender: No OFD packet to send [16:03:40]OFD Sender: No OFD packet to send [16:03:45]OFD Sender: No OFD packet to send [16:03:50]OFD Sender: No OFD packet to send [16:03:55]OFD Sender: No OFD packet to send [16:04:00]OFD Sender: No OFD packet to send [16:04:05]OFD Sender: No OFD packet to send [16:04:10]OFD Sender: No OFD packet to send [16:04:15]OFD Sender: No OFD packet to send [16:04:20]OFD Sender: No OFD packet to send [16:04:25]OFD Sender: No OFD packet to send [16:04:30]OFD Sender: No OFD packet to send [16:04:35]OFD Sender: No OFD packet to send [16:04:40]OFD Sender: No OFD packet to send [16:04:45]OFD Sender: No OFD packet to send [16:04:50]OFD Sender: No OFD packet to send [16:04:55]OFD Sender: No OFD packet to send [16:05:00]OFD Sender: No OFD packet to send [16:05:05]OFD Sender: No OFD packet to send [16:05:10]OFD Sender: No OFD packet to send [16:05:15]OFD Sender: No OFD packet to send [16:05:20]OFD Sender: No OFD packet to send [16:05:25]OFD Sender: No OFD packet to send [16:05:30]OFD Sender: No OFD packet to send [16:05:35]OFD Sender: No OFD packet to send [16:05:40]OFD Sender: No OFD packet to send [16:05:45]OFD Sender: No OFD packet to send [16:05:50]OFD Sender: No OFD packet to send [16:05:51]accept exits with 7 [16:05:51]New connection [16:05:51]New thread 3067514212 created [16:05:51]Thread 3067370852 joined [16:05:51]Waiting for new connection... [16:05:51] Sock 7.Parse request [16:05:51]Sock 7.Check first char [16:05:51]Sock 7.First char is OK [16:05:51]request: POST /json_proto HTTP/1.0 [16:05:51]Method: POST [16:05:51]URL: /json_proto [16:05:51]Method is POST - this is cgi request [16:05:51]url: /json_proto [16:05:51]query_string will be loaded in cgi processing [16:05:51]execute_cgi json_proto POST (null) [16:05:51]execute_cgi path=json_proto method=POST [16:05:51]POST find Content-Length [16:05:51]Host: 172.17.51.3:8080 [16:05:51]Content-Length: 677 [16:05:51]Content-Type: application/json [16:05:51] [16:05:51]POST finish read [16:05:51]Found Content-Length = 677 [16:05:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342787", "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" ] } } [16:05:51]execute_script... [16:05: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)342787", "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" ] } } [16:05:51]POST & json_proto [16:05:51]process_json_proto [16:05:51]json parsed OK: [16:05:51]protocol is kg_v1.0 [16:05:51]action value=close_receipt [16:05:51]process_action close_receipt [16:05:51]cmd_close_receipt [16:05:51]MH_GetDate [16:05:51]Write to MH i2c: F0 00 00 45 94 C8 [16:05:51]Write i2c OK [16:05:51]MH_I2C_Read... [16:05:51]Read from MH i2c: F0 [16:05:51]MH_I2C_Read... [16:05:51]Read from MH i2c: F0 09 00 [16:05:51]MH_I2C_Read... [16:05:51]Read from MH i2c: F0 09 00 45 94 00 6A 2A 15 67 04 C1 95 66 A1 [16:05:51]GetLastDocTimeStamp 1729440217 [16:05:51]current date 1729440362 [16:05:51]FM_GetShiftState [16:05:51]SAM_PROTO_GetShiftState [16:05:51]wFMCommunicate request_size=4 [16:05:51]MH_SAM_APDU [16:05:51]CAPDU: 80 13 01 00 [16:05:51]Write to MH i2c: E2 08 00 46 94 80 13 01 00 00 00 00 00 57 [16:05:51]Write i2c OK [16:05:51]MH_I2C_Read... [16:05:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:05:51]Read from MH i2c: E2 [16:05:51]MH_I2C_Read... [16:05:51]Read from MH i2c: E2 0E 00 [16:05:51]MH_I2C_Read... [16:05:51]Read from MH i2c: E2 0E 00 46 94 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 3D [16:05:51]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [16:05:51]wFMCommunicate OK [16:05:51]SAM_PROTO_GetShiftState done [16:05:51]FM_GetShiftState done [16:05:51]opened in 1729384718 [16:05:51]opened+sec_in_day 1729471118 [16:05:51]quantity*price = 40006 [16:05:51]sum+1 = 40007 [16:05:51]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 СНО: Общий режим Чек 174 20.10.2024 16:06 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30392 ФПД: 84307579828775 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T160602&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30392&fm=84307579828775&tin=02508201610067®Number=0000000000186857&sum=40000 [16:05:53]StoreToDocumentArchive [16:05:53]shift 114 fd 30392 [16:05:53]save to /storage/0114/doc_00030392 [16:05:53]save last doc name /storage/0114/doc_00030392 to /storage/kkm_last_doc_name [16:05:53]save OK [16:05:53]Clear old archive folders... [16:05:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:05:53]tlvbuf is 00AD6090 [16:05:53]SAM_PROTO_ClearQueue [16:05:53]wFMCommunicate request_size=4 [16:05:53]MH_SAM_APDU [16:05:53]CAPDU: 80 09 00 00 [16:05:53]Write to MH i2c: E2 08 00 53 94 80 09 00 00 00 00 00 00 59 [16:05:53]Write i2c OK [16:05:53]MH_I2C_Read... [16:05:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:05:53]Read from MH i2c: E2 [16:05:53]MH_I2C_Read... [16:05:53]Read from MH i2c: E2 03 00 [16:05:53]MH_I2C_Read... [16:05:53]Read from MH i2c: E2 03 00 53 94 00 90 00 5B [16:05:53]RAPDU: 90 00 [16:05:53]wFMCommunicate OK [16:05:53]SAM_PROTO_ClearQueue done [16:05:53]KKMCreateOFDPacket [16:05:53]OFDProtocolAddRootSTLVToBuf [16:05:53]FM_MakeSignedData [16:05:53]FM_MakeSignedData [16:05:53]SAM_PROTO_SignData [16:05:53]wFMCommunicate request_size=4 [16:05:53]MH_SAM_APDU [16:05:53]CAPDU: 80 0D 01 02 [16:05:53]Write to MH i2c: E2 08 00 54 94 80 0D 01 02 00 00 00 00 61 [16:05:53]Write i2c OK [16:05:53]MH_I2C_Read... [16:05:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:05:53]Read from MH i2c: E2 [16:05:53]MH_I2C_Read... [16:05:53]Read from MH i2c: E2 03 00 [16:05:53]MH_I2C_Read... [16:05:53]Read from MH i2c: E2 03 00 54 94 00 90 00 5C [16:05:53]RAPDU: 90 00 [16:05:53]wFMCommunicate OK [16:05:53]wFMCommunicate request_size=255 [16:05:53]MH_SAM_APDU [16:05: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 AE 00 00 00 F4 03 04 00 6A 2A 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 4C [16:05:53]Write to MH i2c: E2 02 01 55 94 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 AE 00 00 00 F4 03 04 00 6A 2A 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 4C 00 00 6B [16:05:53]Write i2c OK [16:05:53]MH_I2C_Read... [16:05:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:05:53]Read from MH i2c: E2 [16:05:53]MH_I2C_Read... [16:05:53]Read from MH i2c: E2 03 00 [16:05:53]MH_I2C_Read... [16:05:53]Read from MH i2c: E2 03 00 55 94 00 90 00 5D [16:05:53]RAPDU: 90 00 [16:05:53]wFMCommunicate OK [16:05:53]wFMCommunicate request_size=10 [16:05:53]MH_SAM_APDU [16:05:53]CAPDU: 80 0D 02 02 05 AD 63 58 FA 27 [16:05:53]Write to MH i2c: E2 0D 00 56 94 80 0D 02 02 05 00 AD 63 58 FA 27 00 00 F7 [16:05:53]Write i2c OK [16:05:53]MH_I2C_Read... [16:05:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:05:53]Read from MH i2c: E2 [16:05:53]MH_I2C_Read... [16:05:53]Read from MH i2c: E2 03 00 [16:05:53]MH_I2C_Read... [16:05:53]Read from MH i2c: E2 03 00 56 94 00 90 00 5E [16:05:53]RAPDU: 90 00 [16:05:53]wFMCommunicate OK [16:05:53]wFMCommunicate request_size=4 [16:05:53]MH_SAM_APDU [16:05:53]CAPDU: 80 0D 03 02 [16:05:53]Write to MH i2c: E2 08 00 57 94 80 0D 03 02 00 00 00 00 66 [16:05:53]Write i2c OK [16:05:53]MH_I2C_Read... [16:05:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:05:53]Read from MH i2c: E2 [16:05:53]MH_I2C_Read... [16:05:53]Read from MH i2c: E2 0B 00 [16:05:53]MH_I2C_Read... [16:05:53]Read from MH i2c: E2 0B 00 57 94 00 EC 94 93 F7 DE 74 B0 A5 90 00 18 [16:05:53]RAPDU: EC 94 93 F7 DE 74 B0 A5 90 00 [16:05:53]wFMCommunicate OK [16:05:53]SAM_PROTO_SignData done [16:05:53]FM_MakeSignedData done [16:05:53]CreateOFDProtocolMessage [16:05:53]wFMCommunicate request_size=4 [16:05:53]MH_SAM_APDU [16:05:53]CAPDU: 80 11 00 00 [16:05:53]Write to MH i2c: E2 08 00 58 94 80 11 00 00 00 00 00 00 66 [16:05:53]Write i2c OK [16:05:53]MH_I2C_Read... [16:05:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:05:53]Read from MH i2c: E2 [16:05:53]MH_I2C_Read... [16:05:53]Read from MH i2c: E2 17 00 [16:05:53]MH_I2C_Read... [16:05:53]Read from MH i2c: E2 17 00 58 94 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 B4 [16: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 [16:05:53]wFMCommunicate OK [16:05:53]CreateOFDProtocolMessage done [16:05:53]OFDSenderStorePacket 30392 [16:05:53]StoreOFDPacket docnum=30392 [16:05: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 51 91 07 01 76 CF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 AE 00 00 00 F4 03 04 00 6A 2A 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 4C AD 63 58 FA 27 EC 94 93 F7 DE 74 B0 A5 [16:05:53]CheckFolder [16:05:53]dirname=/storage/ofd_packets [16:05:53]CheckFolder done [16:05:53]ProducePacketName [16:05:53]name=ofd_packets/00030392 [16:05:53]NVStorageSaveData ofd_packets/00030392 [16:05:53]File name is /storage/ofd_packets/00030392 [16:05:53]Write 301 bytes [16:05:53]NVStorageSaveData done [16:05:53]OFDSenderStorePacket done [16:05:53]KKMCreateOFDPacket done [16:05:53]NVStorageSaveData kkm_last_timestamp [16:05:53]File name is /storage/kkm_last_timestamp [16:05:53]Write 4 bytes [16:05:53]NVStorageSaveData done [16:05:53]ExternCall_PrintAddStr [16:05:53]wPrintStart [16:05:53]Write to MH i2c: 01 00 00 59 94 ED [16:05:53]Write i2c OK [16:05:53]MH_I2C_Read... [16:05:53]Read from MH i2c: 01 [16:05:53]MH_I2C_Read... [16:05:53]Read from MH i2c: 01 07 00 [16:05:53]MH_I2C_Read... [16:05:53]Read from MH i2c: 01 07 00 59 94 00 00 00 00 00 FF 0F 02 [16:05:53]RasterBufferAndPrint [16:05:53]line Счет N : (1)342787 [16:05:53]line ИНН: 02508201610067 [16:05:53]line Контрольно-Кассовый Чек [16:05:53]line ПРОДАЖА [16:05:53]line ТРК (МРК, ГНК) : 53 [16:05:53]line Товар: 2710124130 [16:05:53]line Аи-92-К-2 [16:05:53]line 5.980 * 66.90 [16:05:53]line = 400.06 [16:05:53]line НДС 12% НСП 1% [16:05:53]line > о реализуемом товаре [16:05:53]line ОКРУГЛЕНИЕ: -0.06 [16:05:53]line ИТОГО: 400.00 [16:05:53]line Внесено: 400.00 [16:05:53]line СДАЧА: 0.00 [16:05:53]line НСП 1% : 3.54 [16:05:53]line НДС 12% : 42.48 [16:05:53]line Наличными: 400.00 [16:05:53]line Безнал.: 0.00 [16:05:53]line Место: АЗС № 78 "Партнер Нефть" [16:05:53]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [16:05:53]line СНО: Общий режим [16:05:53]line Чек 174 20.10.2024 16:06 [16:05:53]line Смена: 114 ФФД: 1.0 [16:05:53]line ЗНМ: 0300000137 [16:05:53]line РНМ: 0000000000186857 [16:05:53]line Версия ККМ: v1.0 [16:05:53]line ФМ: 0000000002094219 [16:05:53]line ФД: 30392 [16:05:53]line ФПД: 84307579828775 [16:05:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T160602&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30392&fm=84307579828775&tin=02508201610067®Number=0000000000186857&sum=40000 [16:05:53]OFD Sender: Processing packet 30392 [packets to send 10, broken 9] [16:05:53]ProducePacketName [16:05:53]name=ofd_packets/00030392 [16:05:53]OFD Sender: To server: pG, [16:05:53]CommunicateWithHost lk.salyk.kg:30040 [16:05:53]ConnectInit lk.salyk.kg [16:05:53]written 0, free lines is 4095 [16:05:53]Connected sock=10 [16:05: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 51 91 07 01 76 CF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 AE 00 00 00 F4 03 04 00 6A 2A 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 4C AD 63 58 FA 27 EC 94 93 F7 DE 74 B0 A5 [16:05: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 08 47 00 CD 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 B8 76 00 00 F4 03 04 00 ED D4 14 67 B6 04 01 00 00 22 78 B0 C5 20 BE 60 D5 [16:05:54]CommunicateWithHost err = 0 [16:05:54]CheckOFDResponse [16:05:54]1017 (14) - 77093643461234 [16:05:54]1041 (16) - 0000000002094219 [16:05:54]1040 (4) - 30392 [16:05:54]1012 (4) - 20.10.2024 10:01 [16:05:54]1206 (1) - 0 [16:05:54]OFD Sender: Remove packet 30392 [16:05:54]ProducePacketName [16:05:54]name=ofd_packets/00030392 [16:05:54]NVStorageDeleteData [16:05:54]Write to MH i2c: 01 00 00 84 94 18 [16:05:54]Write i2c OK [16:05:54]MH_I2C_Read... [16:05:54]Read from MH i2c: 01 [16:05:54]MH_I2C_Read... [16:05:54]Read from MH i2c: 01 07 00 [16:05:54]MH_I2C_Read... [16:05:54]Read from MH i2c: 01 07 00 84 94 00 00 00 00 00 F5 0C 20 [16:05:54]RasterBufferAndPrint [16:05:54]line [16:05:54]line [16:05:54]line [16:05:54]line [16:05:54]line [16:05:54]written 0, free lines is 3323 [16:05:54]MH_Cut [16:05:54]Write to MH i2c: D1 01 00 8B 94 01 F1 [16:05:54]Write i2c OK [16:05:54]MH_I2C_Read... [16:05:54]Read from MH i2c: D1 [16:05:54]MH_I2C_Read... [16:05:54]Read from MH i2c: D1 01 00 [16:05:54]MH_I2C_Read... [16:05:54]Read from MH i2c: D1 01 00 8B 94 00 F0 [16:05:54]Write to MH i2c: 01 00 00 8C 94 20 [16:05:54]Write i2c OK [16:05:54]MH_I2C_Read... [16:05:54]OFD Sender: No OFD packet to send [16:05:54]*** Cut start [16:05:54]*** Partial cut [16:05:54]*** CUTSNS_PIN = 1 [16:05:55]*** CUTSNS_PIN = 0 [16:05:55]*** Brake cut motor [16:05:55]Read from MH i2c: 01 [16:05:55]MH_I2C_Read... [16:05:55]*** Stop cut motor [16:05:55]*** Cut end [16:05:55]Read from MH i2c: 01 07 00 [16:05:55]MH_I2C_Read... [16:05:55]Read from MH i2c: 01 07 00 8C 94 00 00 00 00 00 FF 0F 35 [16:05:55]process_action close_receipt done [16:05:55]requested_data is exist [16:05:55]produce_requested_data [16:05:55]requested_item fm.sn is exist - process it [16:05:55]wFMCommunicate request_size=4 [16:05:55]MH_SAM_APDU [16:05:55]CAPDU: 80 11 00 00 [16:05:55]Write to MH i2c: E2 08 00 8D 94 80 11 00 00 00 00 00 00 9B [16:05:55]Write i2c OK [16:05:55]MH_I2C_Read... [16:05:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:05:55]Read from MH i2c: E2 [16:05:55]MH_I2C_Read... [16:05:55]Read from MH i2c: E2 17 00 [16:05:55]MH_I2C_Read... [16:05:55]Read from MH i2c: E2 17 00 8D 94 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:05: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:05:55]wFMCommunicate OK [16:05:55]requested_item fd.num is exist - process it [16:05:55]SAM_PROTO_GetFieldsCounters [16:05:55]wFMCommunicate request_size=4 [16:05:55]MH_SAM_APDU [16:05:55]CAPDU: 80 13 00 00 [16:05:55]Write to MH i2c: E2 08 00 8E 94 80 13 00 00 00 00 00 00 9E [16:05:55]Write i2c OK [16:05:55]MH_I2C_Read... [16:05:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:05:55]Read from MH i2c: E2 [16:05:55]MH_I2C_Read... [16:05:55]Read from MH i2c: E2 62 00 [16:05:55]MH_I2C_Read... [16:05:55]Read from MH i2c: E2 62 00 8E 94 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 6E [16:05: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 B8 76 00 00 0E 04 04 00 72 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:05:55]wFMCommunicate OK [16:05:55]SAM_PROTO_GetFieldsCounters done [16:05:55]requested_item shift.num is exist - process it [16:05:55]requested_item shift.opened is exist - process it [16:05:55]req_shift_opened [16:05:55]FM_GetShiftState [16:05:55]SAM_PROTO_GetShiftState [16:05:55]wFMCommunicate request_size=4 [16:05:55]MH_SAM_APDU [16:05:55]CAPDU: 80 13 01 00 [16:05:55]Write to MH i2c: E2 08 00 8F 94 80 13 01 00 00 00 00 00 A0 [16:05:55]Write i2c OK [16:05:55]MH_I2C_Read... [16:05:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:05:55]Read from MH i2c: E2 [16:05:55]MH_I2C_Read... [16:05:55]Read from MH i2c: E2 0E 00 [16:05:55]MH_I2C_Read... [16:05:55]Read from MH i2c: E2 0E 00 8F 94 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 86 [16:05:55]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [16:05:55]wFMCommunicate OK [16:05:55]SAM_PROTO_GetShiftState done [16:05:55]FM_GetShiftState done [16:05:55]req_shift_opened done [16:05:55]requested_item shift.open_date is exist - process it [16:05:55]req_shift_open_date [16:05:55]req_shift_open_date done [16:05:55]produce_requested_data done [16:05:55]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30392,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [16:05:55]process_action_free close_receipt [16:05:55]json_value_free [16:05:55]json_value_free done [16:05:55]process_json_proto returns [16:05:55]Send response to host [16:05:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30392,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [16:05:55]free response buf [16:05:55]execute_script done [16:05:55]execute_script returns [16:05:55]free content buf [16:05:55]Sock 7.Close socket [16:05:55]Sock 7.Thread stoped [16:05:59]OFD Sender: No OFD packet to send [16:06:04]OFD Sender: No OFD packet to send [16:06:09]OFD Sender: No OFD packet to send [16:06:14]OFD Sender: No OFD packet to send [16:06:19]OFD Sender: No OFD packet to send [16:06:24]OFD Sender: No OFD packet to send [16:06:29]OFD Sender: No OFD packet to send [16:06:34]OFD Sender: No OFD packet to send [16:06:39]OFD Sender: No OFD packet to send [16:06:44]OFD Sender: No OFD packet to send [16:06:49]OFD Sender: No OFD packet to send [16:06:54]OFD Sender: No OFD packet to send [16:06:59]OFD Sender: No OFD packet to send [16:07:04]OFD Sender: No OFD packet to send [16:07:09]OFD Sender: No OFD packet to send [16:07:14]OFD Sender: No OFD packet to send [16:07:19]OFD Sender: No OFD packet to send [16:07:24]OFD Sender: No OFD packet to send [16:07:29]OFD Sender: No OFD packet to send [16:07:34]OFD Sender: No OFD packet to send [16:07:39]OFD Sender: No OFD packet to send [16:07:44]OFD Sender: No OFD packet to send [16:07:49]OFD Sender: No OFD packet to send [16:07:54]OFD Sender: No OFD packet to send [16:07:59]OFD Sender: No OFD packet to send [16:08:04]OFD Sender: No OFD packet to send [16:08:09]OFD Sender: No OFD packet to send [16:08:14]OFD Sender: No OFD packet to send [16:08:19]OFD Sender: No OFD packet to send [16:08:24]OFD Sender: No OFD packet to send [16:08:29]OFD Sender: No OFD packet to send [16:08:34]OFD Sender: No OFD packet to send [16:08:39]OFD Sender: No OFD packet to send [16:08:44]OFD Sender: No OFD packet to send [16:08:49]OFD Sender: No OFD packet to send [16:08:54]OFD Sender: No OFD packet to send [16:08:59]OFD Sender: No OFD packet to send [16:09:04]OFD Sender: No OFD packet to send [16:09:09]OFD Sender: No OFD packet to send [16:09:14]OFD Sender: No OFD packet to send [16:09:19]OFD Sender: No OFD packet to send [16:09:24]OFD Sender: No OFD packet to send [16:09:29]OFD Sender: No OFD packet to send [16:09:34]OFD Sender: No OFD packet to send [16:09:39]OFD Sender: No OFD packet to send [16:09:44]OFD Sender: No OFD packet to send [16:09:49]OFD Sender: No OFD packet to send [16:09:54]OFD Sender: No OFD packet to send [16:09:59]OFD Sender: No OFD packet to send [16:10:04]OFD Sender: No OFD packet to send [16:10:09]OFD Sender: No OFD packet to send [16:10:14]OFD Sender: No OFD packet to send [16:10:19]OFD Sender: No OFD packet to send [16:10:24]OFD Sender: No OFD packet to send [16:10:29]OFD Sender: No OFD packet to send [16:10:34]OFD Sender: No OFD packet to send [16:10:39]OFD Sender: No OFD packet to send [16:10:44]OFD Sender: No OFD packet to send [16:10:49]OFD Sender: No OFD packet to send [16:10:54]OFD Sender: No OFD packet to send [16:10:59]OFD Sender: No OFD packet to send [16:11:04]OFD Sender: No OFD packet to send [16:11:09]OFD Sender: No OFD packet to send [16:11:14]OFD Sender: No OFD packet to send [16:11:19]OFD Sender: No OFD packet to send [16:11:24]OFD Sender: No OFD packet to send [16:11:29]OFD Sender: No OFD packet to send [16:11:34]OFD Sender: No OFD packet to send [16:11:39]OFD Sender: No OFD packet to send [16:11:44]OFD Sender: No OFD packet to send [16:11:49]OFD Sender: No OFD packet to send [16:11:54]OFD Sender: No OFD packet to send [16:11:59]OFD Sender: No OFD packet to send [16:12:04]OFD Sender: No OFD packet to send [16:12:09]OFD Sender: No OFD packet to send [16:12:14]OFD Sender: No OFD packet to send [16:12:19]OFD Sender: No OFD packet to send [16:12:25]OFD Sender: No OFD packet to send [16:12:30]OFD Sender: No OFD packet to send [16:12:35]OFD Sender: No OFD packet to send [16:12:40]OFD Sender: No OFD packet to send [16:12:45]OFD Sender: No OFD packet to send [16:12:50]OFD Sender: No OFD packet to send [16:12:55]OFD Sender: No OFD packet to send [16:13:00]OFD Sender: No OFD packet to send [16:13:05]OFD Sender: No OFD packet to send [16:13:10]OFD Sender: No OFD packet to send [16:13:15]OFD Sender: No OFD packet to send [16:13:20]OFD Sender: No OFD packet to send [16:13:25]OFD Sender: No OFD packet to send [16:13:30]OFD Sender: No OFD packet to send [16:13:35]OFD Sender: No OFD packet to send [16:13:40]OFD Sender: No OFD packet to send [16:13:45]OFD Sender: No OFD packet to send [16:13:50]OFD Sender: No OFD packet to send [16:13:55]OFD Sender: No OFD packet to send [16:14:00]OFD Sender: No OFD packet to send [16:14:05]OFD Sender: No OFD packet to send [16:14:10]OFD Sender: No OFD packet to send [16:14:15]OFD Sender: No OFD packet to send [16:14:20]OFD Sender: No OFD packet to send [16:14:25]OFD Sender: No OFD packet to send [16:14:30]OFD Sender: No OFD packet to send [16:14:35]OFD Sender: No OFD packet to send [16:14:40]OFD Sender: No OFD packet to send [16:14:42]accept exits with 9 [16:14:42]New connection [16:14:42]New thread 3067370852 created [16:14:42]Thread 3067514212 joined [16:14:42]Waiting for new connection... [16:14:42] Sock 9.Parse request [16:14:42]Sock 9.Check first char [16:14:42]Sock 9.First char is OK [16:14:42]request: POST /json_proto HTTP/1.0 [16:14:42]Method: POST [16:14:42]URL: /json_proto [16:14:42]Method is POST - this is cgi request [16:14:42]url: /json_proto [16:14:42]query_string will be loaded in cgi processing [16:14:42]execute_cgi json_proto POST (null) [16:14:42]execute_cgi path=json_proto method=POST [16:14:42]POST find Content-Length [16:14:42]Host: 172.17.51.3:8080 [16:14:42]Content-Length: 674 [16:14:42]Content-Type: application/json [16:14:42] [16:14:42]POST finish read [16:14:42]Found Content-Length = 674 [16:14:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342788", "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.320, "sum" : 710.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 710.00, "total" : 710.00, "payments": [ { "type": 0, "sum" : 710.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:14:42]execute_script... [16:14:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342788", "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.320, "sum" : 710.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 710.00, "total" : 710.00, "payments": [ { "type": 0, "sum" : 710.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:14:42]POST & json_proto [16:14:42]process_json_proto [16:14:42]json parsed OK: [16:14:42]protocol is kg_v1.0 [16:14:42]action value=close_receipt [16:14:42]process_action close_receipt [16:14:42]cmd_close_receipt [16:14:42]MH_GetDate [16:14:42]Write to MH i2c: F0 00 00 90 94 13 [16:14:42]Write i2c OK [16:14:42]MH_I2C_Read... [16:14:42]Read from MH i2c: F0 [16:14:42]MH_I2C_Read... [16:14:42]Read from MH i2c: F0 09 00 [16:14:42]MH_I2C_Read... [16:14:42]Read from MH i2c: F0 09 00 90 94 00 7C 2C 15 67 04 C1 95 66 00 [16:14:42]GetLastDocTimeStamp 1729440362 [16:14:42]current date 1729440892 [16:14:42]FM_GetShiftState [16:14:42]SAM_PROTO_GetShiftState [16:14:42]wFMCommunicate request_size=4 [16:14:42]MH_SAM_APDU [16:14:42]CAPDU: 80 13 01 00 [16:14:42]Write to MH i2c: E2 08 00 91 94 80 13 01 00 00 00 00 00 A2 [16:14:42]Write i2c OK [16:14:42]MH_I2C_Read... [16:14:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:14:42]Read from MH i2c: E2 [16:14:42]MH_I2C_Read... [16:14:42]Read from MH i2c: E2 0E 00 [16:14:42]MH_I2C_Read... [16:14:42]Read from MH i2c: E2 0E 00 91 94 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 88 [16:14:42]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [16:14:42]wFMCommunicate OK [16:14:42]SAM_PROTO_GetShiftState done [16:14:42]FM_GetShiftState done [16:14:42]opened in 1729384718 [16:14:42]opened+sec_in_day 1729471118 [16:14:42]quantity*price = 71018 [16:14:42]sum+1 = 71019 [16:14:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.18 ИТОГО: 710.00 Внесено: 710.00 СДАЧА: 0.00 НСП 1% : 6.28 НДС 12% : 75.42 Наличными: 710.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 175 20.10.2024 16:14 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30393 ФПД: 98492529234680 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T161452&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30393&fm=98492529234680&tin=02508201610067®Number=0000000000186857&sum=71000 [16:14:43]StoreToDocumentArchive [16:14:43]shift 114 fd 30393 [16:14:43]save to /storage/0114/doc_00030393 [16:14:43]save last doc name /storage/0114/doc_00030393 to /storage/kkm_last_doc_name [16:14:43]save OK [16:14:43]Clear old archive folders... [16:14:43]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:14:43]tlvbuf is 00BEBE80 [16:14:43]SAM_PROTO_ClearQueue [16:14:43]wFMCommunicate request_size=4 [16:14:43]MH_SAM_APDU [16:14:43]CAPDU: 80 09 00 00 [16:14:43]Write to MH i2c: E2 08 00 9E 94 80 09 00 00 00 00 00 00 A4 [16:14:43]Write i2c OK [16:14:43]MH_I2C_Read... [16:14:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:14:43]Read from MH i2c: E2 [16:14:43]MH_I2C_Read... [16:14:43]Read from MH i2c: E2 03 00 [16:14:43]MH_I2C_Read... [16:14:43]Read from MH i2c: E2 03 00 9E 94 00 90 00 A6 [16:14:43]RAPDU: 90 00 [16:14:43]wFMCommunicate OK [16:14:43]SAM_PROTO_ClearQueue done [16:14:43]KKMCreateOFDPacket [16:14:43]OFDProtocolAddRootSTLVToBuf [16:14:43]FM_MakeSignedData [16:14:43]FM_MakeSignedData [16:14:43]SAM_PROTO_SignData [16:14:43]wFMCommunicate request_size=4 [16:14:43]MH_SAM_APDU [16:14:43]CAPDU: 80 0D 01 02 [16:14:43]Write to MH i2c: E2 08 00 9F 94 80 0D 01 02 00 00 00 00 AC [16:14:43]Write i2c OK [16:14:43]MH_I2C_Read... [16:14:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:14:43]Read from MH i2c: E2 [16:14:43]MH_I2C_Read... [16:14:43]Read from MH i2c: E2 03 00 [16:14:43]MH_I2C_Read... [16:14:43]Read from MH i2c: E2 03 00 9F 94 00 90 00 A7 [16:14:43]RAPDU: 90 00 [16:14:43]wFMCommunicate OK [16:14:43]wFMCommunicate request_size=255 [16:14:43]MH_SAM_APDU [16:14: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 68 24 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 6A 15 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 15 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 1D 00 00 00 00 07 04 06 00 58 15 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 7C 2C 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 59 94 14 37 [16:14:43]Write to MH i2c: E2 02 01 A0 94 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 68 24 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 6A 15 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 15 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 1D 00 00 00 00 07 04 06 00 58 15 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 7C 2C 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 59 94 14 37 00 00 89 [16:14:43]Write i2c OK [16:14:43]MH_I2C_Read... [16:14:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:14:44]Read from MH i2c: E2 [16:14:44]MH_I2C_Read... [16:14:44]Read from MH i2c: E2 03 00 [16:14:44]MH_I2C_Read... [16:14:44]Read from MH i2c: E2 03 00 A0 94 00 90 00 A8 [16:14:44]RAPDU: 90 00 [16:14:44]wFMCommunicate OK [16:14:44]wFMCommunicate request_size=7 [16:14:44]MH_SAM_APDU [16:14:44]CAPDU: 80 0D 02 02 02 D2 F8 [16:14:44]Write to MH i2c: E2 0A 00 A1 94 80 0D 02 02 02 00 D2 F8 00 00 7D [16:14:44]Write i2c OK [16:14:44]MH_I2C_Read... [16:14:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:14:44]Read from MH i2c: E2 [16:14:44]MH_I2C_Read... [16:14:44]Read from MH i2c: E2 03 00 [16:14:44]MH_I2C_Read... [16:14:44]Read from MH i2c: E2 03 00 A1 94 00 90 00 A9 [16:14:44]RAPDU: 90 00 [16:14:44]wFMCommunicate OK [16:14:44]wFMCommunicate request_size=4 [16:14:44]MH_SAM_APDU [16:14:44]CAPDU: 80 0D 03 02 [16:14:44]Write to MH i2c: E2 08 00 A2 94 80 0D 03 02 00 00 00 00 B1 [16:14:44]Write i2c OK [16:14:44]MH_I2C_Read... [16:14:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:14:44]Read from MH i2c: E2 [16:14:44]MH_I2C_Read... [16:14:44]Read from MH i2c: E2 0B 00 [16:14:44]MH_I2C_Read... [16:14:44]Read from MH i2c: E2 0B 00 A2 94 00 AD 64 47 80 04 7E 87 26 90 00 B9 [16:14:44]RAPDU: AD 64 47 80 04 7E 87 26 90 00 [16:14:44]wFMCommunicate OK [16:14:44]SAM_PROTO_SignData done [16:14:44]FM_MakeSignedData done [16:14:44]CreateOFDProtocolMessage [16:14:44]wFMCommunicate request_size=4 [16:14:44]MH_SAM_APDU [16:14:44]CAPDU: 80 11 00 00 [16:14:44]Write to MH i2c: E2 08 00 A3 94 80 11 00 00 00 00 00 00 B1 [16:14:44]Write i2c OK [16:14:44]MH_I2C_Read... [16:14:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:14:44]Read from MH i2c: E2 [16:14:44]MH_I2C_Read... [16:14:44]Read from MH i2c: E2 17 00 [16:14:44]MH_I2C_Read... [16:14:44]Read from MH i2c: E2 17 00 A3 94 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 FF [16:14:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [16:14:44]wFMCommunicate OK [16:14:44]CreateOFDProtocolMessage done [16:14:44]OFDSenderStorePacket 30393 [16:14:44]StoreOFDPacket docnum=30393 [16:14: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 6D 01 04 01 B2 46 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 68 24 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 6A 15 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 15 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 1D 00 00 00 00 07 04 06 00 58 15 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 7C 2C 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 59 94 14 37 D2 F8 AD 64 47 80 04 7E 87 26 [16:14:44]CheckFolder [16:14:44]dirname=/storage/ofd_packets [16:14:44]CheckFolder done [16:14:44]ProducePacketName [16:14:44]name=ofd_packets/00030393 [16:14:44]NVStorageSaveData ofd_packets/00030393 [16:14:44]File name is /storage/ofd_packets/00030393 [16:14:44]Write 298 bytes [16:14:44]NVStorageSaveData done [16:14:44]OFDSenderStorePacket done [16:14:44]KKMCreateOFDPacket done [16:14:44]NVStorageSaveData kkm_last_timestamp [16:14:44]File name is /storage/kkm_last_timestamp [16:14:44]Write 4 bytes [16:14:44]NVStorageSaveData done [16:14:44]ExternCall_PrintAddStr [16:14:44]wPrintStart [16:14:44]Write to MH i2c: 01 00 00 A4 94 38 [16:14:44]Write i2c OK [16:14:44]MH_I2C_Read... [16:14:44]Read from MH i2c: 01 [16:14:44]MH_I2C_Read... [16:14:44]Read from MH i2c: 01 07 00 [16:14:44]MH_I2C_Read... [16:14:44]Read from MH i2c: 01 07 00 A4 94 00 00 00 00 00 FF 0F 4D [16:14:44]RasterBufferAndPrint [16:14:44]line Счет N : (1)342788 [16:14:44]line ИНН: 02508201610067 [16:14:44]line Контрольно-Кассовый Чек [16:14:44]line ПРОДАЖА [16:14:44]line ТРК (МРК, ГНК) : 44 [16:14:44]line Товар: 2710194210 [16:14:44]line ДТ-К-2 [16:14:44]line 9.320 * 76.20 [16:14:44]line = 710.18 [16:14:44]line НДС 12% НСП 1% [16:14:44]line > о реализуемом товаре [16:14:44]line ОКРУГЛЕНИЕ: -0.18 [16:14:44]line ИТОГО: 710.00 [16:14:44]line Внесено: 710.00 [16:14:44]line СДАЧА: 0.00 [16:14:44]line НСП 1% : 6.28 [16:14:44]line НДС 12% : 75.42 [16:14:44]line Наличными: 710.00 [16:14:44]line Безнал.: 0.00 [16:14:44]line Место: АЗС № 78 "Партнер Нефть" [16:14:44]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [16:14:44]line СНО: Общий режим [16:14:44]line Чек 175 20.10.2024 16:14 [16:14:44]line Смена: 114 ФФД: 1.0 [16:14:44]line ЗНМ: 0300000137 [16:14:44]line РНМ: 0000000000186857 [16:14:44]line Версия ККМ: v1.0 [16:14:44]line ФМ: 0000000002094219 [16:14:44]line ФД: 30393 [16:14:44]line ФПД: 98492529234680 [16:14:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T161452&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30393&fm=98492529234680&tin=02508201610067®Number=0000000000186857&sum=71000 [16:14:44]OFD Sender: Processing packet 30393 [packets to send 10, broken 9] [16:14:44]ProducePacketName [16:14:44]name=ofd_packets/00030393 [16:14:44]OFD Sender: To server: pG, [16:14:44]CommunicateWithHost lk.salyk.kg:30040 [16:14:44]ConnectInit lk.salyk.kg [16:14:44]written 0, free lines is 4095 [16:14:44]Connected sock=10 [16:14: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 6D 01 04 01 B2 46 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 68 24 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 6A 15 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 15 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 1D 00 00 00 00 07 04 06 00 58 15 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 7C 2C 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 59 94 14 37 D2 F8 AD 64 47 80 04 7E 87 26 [16:14: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 75 3D 47 00 76 64 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 B9 76 00 00 F4 03 04 00 00 D7 14 67 B6 04 01 00 00 BF 72 BF E5 93 F1 D4 D3 [16:14:44]CommunicateWithHost err = 0 [16:14:44]CheckOFDResponse [16:14:44]1017 (14) - 77093643461234 [16:14:44]1041 (16) - 0000000002094219 [16:14:44]1040 (4) - 30393 [16:14:44]1012 (4) - 20.10.2024 10:10 [16:14:44]1206 (1) - 0 [16:14:44]OFD Sender: Remove packet 30393 [16:14:44]ProducePacketName [16:14:44]name=ofd_packets/00030393 [16:14:44]NVStorageDeleteData [16:14:44]Write to MH i2c: 01 00 00 CF 94 63 [16:14:44]Write i2c OK [16:14:44]MH_I2C_Read... [16:14:44]Read from MH i2c: 01 [16:14:44]MH_I2C_Read... [16:14:44]Read from MH i2c: 01 07 00 [16:14:44]MH_I2C_Read... [16:14:44]Read from MH i2c: 01 07 00 CF 94 00 00 00 00 00 F3 0C 69 [16:14:44]RasterBufferAndPrint [16:14:44]line [16:14:44]line [16:14:44]line [16:14:44]line [16:14:44]line [16:14:45]written 0, free lines is 3324 [16:14:45]MH_Cut [16:14:45]Write to MH i2c: D1 01 00 D6 94 01 3C [16:14:45]Write i2c OK [16:14:45]MH_I2C_Read... [16:14:45]Read from MH i2c: D1 [16:14:45]MH_I2C_Read... [16:14:45]Read from MH i2c: D1 01 00 [16:14:45]MH_I2C_Read... [16:14:45]Read from MH i2c: D1 01 00 D6 94 00 3B [16:14:45]Write to MH i2c: 01 00 00 D7 94 6B [16:14:45]Write i2c OK [16:14:45]MH_I2C_Read... [16:14:45]OFD Sender: No OFD packet to send [16:14:45]*** Cut start [16:14:45]*** Partial cut [16:14:45]*** CUTSNS_PIN = 1 [16:14:45]*** CUTSNS_PIN = 0 [16:14:45]*** Brake cut motor [16:14:46]Read from MH i2c: 01 [16:14:46]MH_I2C_Read... [16:14:46]*** Stop cut motor [16:14:46]*** Cut end [16:14:46]Read from MH i2c: 01 07 00 [16:14:46]MH_I2C_Read... [16:14:46]Read from MH i2c: 01 07 00 D7 94 00 00 00 00 00 FF 0F 80 [16:14:46]process_action close_receipt done [16:14:46]requested_data is exist [16:14:46]produce_requested_data [16:14:46]requested_item fm.sn is exist - process it [16:14:46]wFMCommunicate request_size=4 [16:14:46]MH_SAM_APDU [16:14:46]CAPDU: 80 11 00 00 [16:14:46]Write to MH i2c: E2 08 00 D8 94 80 11 00 00 00 00 00 00 E6 [16:14:46]Write i2c OK [16:14:46]MH_I2C_Read... [16:14:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:14:46]Read from MH i2c: E2 [16:14:46]MH_I2C_Read... [16:14:46]Read from MH i2c: E2 17 00 [16:14:46]MH_I2C_Read... [16:14:46]Read from MH i2c: E2 17 00 D8 94 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 34 [16:14: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:14:46]wFMCommunicate OK [16:14:46]requested_item fd.num is exist - process it [16:14:46]SAM_PROTO_GetFieldsCounters [16:14:46]wFMCommunicate request_size=4 [16:14:46]MH_SAM_APDU [16:14:46]CAPDU: 80 13 00 00 [16:14:46]Write to MH i2c: E2 08 00 D9 94 80 13 00 00 00 00 00 00 E9 [16:14:46]Write i2c OK [16:14:46]MH_I2C_Read... [16:14:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:14:46]Read from MH i2c: E2 [16:14:46]MH_I2C_Read... [16:14:46]Read from MH i2c: E2 62 00 [16:14:46]MH_I2C_Read... [16:14:46]Read from MH i2c: E2 62 00 D9 94 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 BD [16:14: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 B9 76 00 00 0E 04 04 00 72 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:14:46]wFMCommunicate OK [16:14:46]SAM_PROTO_GetFieldsCounters done [16:14:46]requested_item shift.num is exist - process it [16:14:46]requested_item shift.opened is exist - process it [16:14:46]req_shift_opened [16:14:46]FM_GetShiftState [16:14:46]SAM_PROTO_GetShiftState [16:14:46]wFMCommunicate request_size=4 [16:14:46]MH_SAM_APDU [16:14:46]CAPDU: 80 13 01 00 [16:14:46]Write to MH i2c: E2 08 00 DA 94 80 13 01 00 00 00 00 00 EB [16:14:46]Write i2c OK [16:14:46]MH_I2C_Read... [16:14:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:14:46]Read from MH i2c: E2 [16:14:46]MH_I2C_Read... [16:14:46]Read from MH i2c: E2 0E 00 [16:14:46]MH_I2C_Read... [16:14:46]Read from MH i2c: E2 0E 00 DA 94 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 D1 [16:14:46]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [16:14:46]wFMCommunicate OK [16:14:46]SAM_PROTO_GetShiftState done [16:14:46]FM_GetShiftState done [16:14:46]req_shift_opened done [16:14:46]requested_item shift.open_date is exist - process it [16:14:46]req_shift_open_date [16:14:46]req_shift_open_date done [16:14:46]produce_requested_data done [16:14:46]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30393,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [16:14:46]process_action_free close_receipt [16:14:46]json_value_free [16:14:46]json_value_free done [16:14:46]process_json_proto returns [16:14:46]Send response to host [16:14:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30393,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [16:14:46]free response buf [16:14:46]execute_script done [16:14:46]execute_script returns [16:14:46]free content buf [16:14:46]Sock 9.Close socket [16:14:46]Sock 9.Thread stoped [16:14:50]OFD Sender: No OFD packet to send [16:14:55]OFD Sender: No OFD packet to send [16:15:00]OFD Sender: No OFD packet to send [16:15:05]OFD Sender: No OFD packet to send [16:15:10]OFD Sender: No OFD packet to send [16:15:15]OFD Sender: No OFD packet to send [16:15:20]OFD Sender: No OFD packet to send [16:15:25]OFD Sender: No OFD packet to send [16:15:30]OFD Sender: No OFD packet to send [16:15:35]OFD Sender: No OFD packet to send [16:15:40]OFD Sender: No OFD packet to send [16:15:45]OFD Sender: No OFD packet to send [16:15:50]OFD Sender: No OFD packet to send [16:15:55]OFD Sender: No OFD packet to send [16:16:00]OFD Sender: No OFD packet to send [16:16:05]OFD Sender: No OFD packet to send [16:16:10]OFD Sender: No OFD packet to send [16:16:15]OFD Sender: No OFD packet to send [16:16:16]accept exits with 7 [16:16:16]New connection [16:16:16]New thread 3067514212 created [16:16:16]Thread 3067370852 joined [16:16:16]Waiting for new connection... [16:16:16] Sock 7.Parse request [16:16:16]Sock 7.Check first char [16:16:16]Sock 7.First char is OK [16:16:16]request: POST /json_proto HTTP/1.0 [16:16:16]Method: POST [16:16:16]URL: /json_proto [16:16:16]Method is POST - this is cgi request [16:16:16]url: /json_proto [16:16:16]query_string will be loaded in cgi processing [16:16:16]execute_cgi json_proto POST (null) [16:16:16]execute_cgi path=json_proto method=POST [16:16:16]POST find Content-Length [16:16:16]Host: 172.17.51.3:8080 [16:16:16]Content-Length: 677 [16:16:16]Content-Type: application/json [16:16:16] [16:16:16]POST finish read [16:16:16]Found Content-Length = 677 [16:16:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342789", "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" ] } } [16:16:16]execute_script... [16:16:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342789", "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" ] } } [16:16:16]POST & json_proto [16:16:16]process_json_proto [16:16:16]json parsed OK: [16:16:16]protocol is kg_v1.0 [16:16:16]action value=close_receipt [16:16:16]process_action close_receipt [16:16:16]cmd_close_receipt [16:16:16]MH_GetDate [16:16:16]Write to MH i2c: F0 00 00 DB 94 5E [16:16:16]Write i2c OK [16:16:16]MH_I2C_Read... [16:16:16]Read from MH i2c: F0 [16:16:16]MH_I2C_Read... [16:16:16]Read from MH i2c: F0 09 00 [16:16:16]MH_I2C_Read... [16:16:16]Read from MH i2c: F0 09 00 DB 94 00 DA 2C 15 67 04 C1 95 66 A9 [16:16:16]GetLastDocTimeStamp 1729440892 [16:16:16]current date 1729440986 [16:16:16]FM_GetShiftState [16:16:16]SAM_PROTO_GetShiftState [16:16:16]wFMCommunicate request_size=4 [16:16:16]MH_SAM_APDU [16:16:16]CAPDU: 80 13 01 00 [16:16:16]Write to MH i2c: E2 08 00 DC 94 80 13 01 00 00 00 00 00 ED [16:16:16]Write i2c OK [16:16:16]MH_I2C_Read... [16:16:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:16:16]Read from MH i2c: E2 [16:16:16]MH_I2C_Read... [16:16:16]Read from MH i2c: E2 0E 00 [16:16:16]MH_I2C_Read... [16:16:16]Read from MH i2c: E2 0E 00 DC 94 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 D3 [16:16:16]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [16:16:16]wFMCommunicate OK [16:16:16]SAM_PROTO_GetShiftState done [16:16:16]FM_GetShiftState done [16:16:16]opened in 1729384718 [16:16:16]opened+sec_in_day 1729471118 [16:16:16]quantity*price = 50041 [16:16:16]sum+1 = 50042 [16:16: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 СНО: Общий режим Чек 176 20.10.2024 16:16 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30394 ФПД: 98783221771104 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T161626&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30394&fm=98783221771104&tin=02508201610067®Number=0000000000186857&sum=50000 [16:16:17]StoreToDocumentArchive [16:16:17]shift 114 fd 30394 [16:16:17]save to /storage/0114/doc_00030394 [16:16:17]save last doc name /storage/0114/doc_00030394 to /storage/kkm_last_doc_name [16:16:17]save OK [16:16:17]Clear old archive folders... [16:16:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:16:17]tlvbuf is 00B3BAF0 [16:16:17]SAM_PROTO_ClearQueue [16:16:17]wFMCommunicate request_size=4 [16:16:17]MH_SAM_APDU [16:16:17]CAPDU: 80 09 00 00 [16:16:17]Write to MH i2c: E2 08 00 E9 94 80 09 00 00 00 00 00 00 EF [16:16:17]Write i2c OK [16:16:17]MH_I2C_Read... [16:16:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:16:17]Read from MH i2c: E2 [16:16:17]MH_I2C_Read... [16:16:17]Read from MH i2c: E2 03 00 [16:16:17]MH_I2C_Read... [16:16:17]Read from MH i2c: E2 03 00 E9 94 00 90 00 F1 [16:16:17]RAPDU: 90 00 [16:16:17]wFMCommunicate OK [16:16:17]SAM_PROTO_ClearQueue done [16:16:17]KKMCreateOFDPacket [16:16:17]OFDProtocolAddRootSTLVToBuf [16:16:17]FM_MakeSignedData [16:16:17]FM_MakeSignedData [16:16:17]SAM_PROTO_SignData [16:16:17]wFMCommunicate request_size=4 [16:16:17]MH_SAM_APDU [16:16:17]CAPDU: 80 0D 01 02 [16:16:17]Write to MH i2c: E2 08 00 EA 94 80 0D 01 02 00 00 00 00 F7 [16:16:17]Write i2c OK [16:16:17]MH_I2C_Read... [16:16:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:16:17]Read from MH i2c: E2 [16:16:17]MH_I2C_Read... [16:16:17]Read from MH i2c: E2 03 00 [16:16:17]MH_I2C_Read... [16:16:17]Read from MH i2c: E2 03 00 EA 94 00 90 00 F2 [16:16:17]RAPDU: 90 00 [16:16:17]wFMCommunicate OK [16:16:17]wFMCommunicate request_size=255 [16:16:17]MH_SAM_APDU [16:16:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 DA 2C 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 59 [16:16:17]Write to MH i2c: E2 02 01 EB 94 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 DA 2C 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 59 00 00 B5 [16:16:17]Write i2c OK [16:16:17]MH_I2C_Read... [16:16:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:16:17]Read from MH i2c: E2 [16:16:17]MH_I2C_Read... [16:16:17]Read from MH i2c: E2 03 00 [16:16:17]MH_I2C_Read... [16:16:17]Read from MH i2c: E2 03 00 EB 94 00 90 00 F3 [16:16:17]RAPDU: 90 00 [16:16:17]wFMCommunicate OK [16:16:17]wFMCommunicate request_size=10 [16:16:17]MH_SAM_APDU [16:16:17]CAPDU: 80 0D 02 02 05 D7 C2 D7 EB 60 [16:16:17]Write to MH i2c: E2 0D 00 EC 94 80 0D 02 02 05 00 D7 C2 D7 EB 60 00 00 BF [16:16:17]Write i2c OK [16:16:17]MH_I2C_Read... [16:16:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:16:17]Read from MH i2c: E2 [16:16:17]MH_I2C_Read... [16:16:17]Read from MH i2c: E2 03 00 [16:16:17]MH_I2C_Read... [16:16:17]Read from MH i2c: E2 03 00 EC 94 00 90 00 F4 [16:16:17]RAPDU: 90 00 [16:16:17]wFMCommunicate OK [16:16:17]wFMCommunicate request_size=4 [16:16:17]MH_SAM_APDU [16:16:17]CAPDU: 80 0D 03 02 [16:16:17]Write to MH i2c: E2 08 00 ED 94 80 0D 03 02 00 00 00 00 FC [16:16:17]Write i2c OK [16:16:17]MH_I2C_Read... [16:16:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:16:18]Read from MH i2c: E2 [16:16:18]MH_I2C_Read... [16:16:18]Read from MH i2c: E2 0B 00 [16:16:18]MH_I2C_Read... [16:16:18]Read from MH i2c: E2 0B 00 ED 94 00 F1 F4 55 04 DF 42 F5 85 90 00 D6 [16:16:18]RAPDU: F1 F4 55 04 DF 42 F5 85 90 00 [16:16:18]wFMCommunicate OK [16:16:18]SAM_PROTO_SignData done [16:16:18]FM_MakeSignedData done [16:16:18]CreateOFDProtocolMessage [16:16:18]wFMCommunicate request_size=4 [16:16:18]MH_SAM_APDU [16:16:18]CAPDU: 80 11 00 00 [16:16:18]Write to MH i2c: E2 08 00 EE 94 80 11 00 00 00 00 00 00 FC [16:16:18]Write i2c OK [16:16:18]MH_I2C_Read... [16:16:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:16:18]Read from MH i2c: E2 [16:16:18]MH_I2C_Read... [16:16:18]Read from MH i2c: E2 17 00 [16:16:18]MH_I2C_Read... [16:16:18]Read from MH i2c: E2 17 00 EE 94 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 4A [16:16: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:16:18]wFMCommunicate OK [16:16:18]CreateOFDProtocolMessage done [16:16:18]OFDSenderStorePacket 30394 [16:16:18]StoreOFDPacket docnum=30394 [16:16: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 60 41 07 01 61 7E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 DA 2C 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 59 D7 C2 D7 EB 60 F1 F4 55 04 DF 42 F5 85 [16:16:18]CheckFolder [16:16:18]dirname=/storage/ofd_packets [16:16:18]CheckFolder done [16:16:18]ProducePacketName [16:16:18]name=ofd_packets/00030394 [16:16:18]NVStorageSaveData ofd_packets/00030394 [16:16:18]File name is /storage/ofd_packets/00030394 [16:16:18]Write 301 bytes [16:16:18]NVStorageSaveData done [16:16:18]OFDSenderStorePacket done [16:16:18]KKMCreateOFDPacket done [16:16:18]NVStorageSaveData kkm_last_timestamp [16:16:18]File name is /storage/kkm_last_timestamp [16:16:18]Write 4 bytes [16:16:18]NVStorageSaveData done [16:16:18]ExternCall_PrintAddStr [16:16:18]wPrintStart [16:16:18]Write to MH i2c: 01 00 00 EF 94 83 [16:16:18]Write i2c OK [16:16:18]MH_I2C_Read... [16:16:18]Read from MH i2c: 01 [16:16:18]MH_I2C_Read... [16:16:18]Read from MH i2c: 01 07 00 [16:16:18]MH_I2C_Read... [16:16:18]Read from MH i2c: 01 07 00 EF 94 00 00 00 00 00 FF 0F 98 [16:16:18]RasterBufferAndPrint [16:16:18]line Счет N : (1)342789 [16:16:18]line ИНН: 02508201610067 [16:16:18]line Контрольно-Кассовый Чек [16:16:18]line ПРОДАЖА [16:16:18]line ТРК (МРК, ГНК) : 63 [16:16:18]line Товар: 2710124130 [16:16:18]line Аи-92-К-2 [16:16:18]line 7.480 * 66.90 [16:16:18]line = 500.41 [16:16:18]line НДС 12% НСП 1% [16:16:18]line > о реализуемом товаре [16:16:18]line ОКРУГЛЕНИЕ: -0.41 [16:16:18]line ИТОГО: 500.00 [16:16:18]line Внесено: 500.00 [16:16:18]line СДАЧА: 0.00 [16:16:18]line НСП 1% : 4.43 [16:16:18]line НДС 12% : 53.14 [16:16:18]line Наличными: 500.00 [16:16:18]line Безнал.: 0.00 [16:16:18]line Место: АЗС № 78 "Партнер Нефть" [16:16:18]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [16:16:18]line СНО: Общий режим [16:16:18]line Чек 176 20.10.2024 16:16 [16:16:18]line Смена: 114 ФФД: 1.0 [16:16:18]line ЗНМ: 0300000137 [16:16:18]line РНМ: 0000000000186857 [16:16:18]line Версия ККМ: v1.0 [16:16:18]line ФМ: 0000000002094219 [16:16:18]line ФД: 30394 [16:16:18]line ФПД: 98783221771104 [16:16:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T161626&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30394&fm=98783221771104&tin=02508201610067®Number=0000000000186857&sum=50000 [16:16:18]OFD Sender: Processing packet 30394 [packets to send 10, broken 9] [16:16:18]ProducePacketName [16:16:18]name=ofd_packets/00030394 [16:16:18]OFD Sender: To server: pG, [16:16:18]CommunicateWithHost lk.salyk.kg:30040 [16:16:18]ConnectInit lk.salyk.kg [16:16:18]written 0, free lines is 4095 [16:16:18]Connected sock=10 [16:16: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 60 41 07 01 61 7E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 DA 2C 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 59 D7 C2 D7 EB 60 F1 F4 55 04 DF 42 F5 85 [16:16: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 00 5C 47 00 5B 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 BA 76 00 00 F4 03 04 00 5E D7 14 67 B6 04 01 00 00 7A 60 5A DB 79 63 0F 1A [16:16:18]CommunicateWithHost err = 0 [16:16:18]CheckOFDResponse [16:16:18]1017 (14) - 77093643461234 [16:16:18]1041 (16) - 0000000002094219 [16:16:18]1040 (4) - 30394 [16:16:18]1012 (4) - 20.10.2024 10:11 [16:16:18]1206 (1) - 0 [16:16:18]OFD Sender: Remove packet 30394 [16:16:18]ProducePacketName [16:16:18]name=ofd_packets/00030394 [16:16:18]NVStorageDeleteData [16:16:18]Write to MH i2c: 01 00 00 1A 95 AF [16:16:18]Write i2c OK [16:16:18]MH_I2C_Read... [16:16:18]Read from MH i2c: 01 [16:16:18]MH_I2C_Read... [16:16:18]Read from MH i2c: 01 07 00 [16:16:18]MH_I2C_Read... [16:16:18]Read from MH i2c: 01 07 00 1A 95 00 00 00 00 00 F8 0C BA [16:16:18]RasterBufferAndPrint [16:16:18]line [16:16:18]line [16:16:18]line [16:16:18]line [16:16:18]line [16:16:18]written 0, free lines is 3326 [16:16:18]MH_Cut [16:16:18]Write to MH i2c: D1 01 00 21 95 01 88 [16:16:18]Write i2c OK [16:16:18]MH_I2C_Read... [16:16:18]Read from MH i2c: D1 [16:16:18]MH_I2C_Read... [16:16:18]Read from MH i2c: D1 01 00 [16:16:18]MH_I2C_Read... [16:16:18]Read from MH i2c: D1 01 00 21 95 00 87 [16:16:18]Write to MH i2c: 01 00 00 22 95 B7 [16:16:18]Write i2c OK [16:16:18]MH_I2C_Read... [16:16:19]OFD Sender: No OFD packet to send [16:16:19]*** Cut start [16:16:19]*** Partial cut [16:16:19]*** CUTSNS_PIN = 1 [16:16:19]*** CUTSNS_PIN = 0 [16:16:19]*** Brake cut motor [16:16:20]Read from MH i2c: 01 [16:16:20]MH_I2C_Read... [16:16:20]*** Stop cut motor [16:16:20]*** Cut end [16:16:20]Read from MH i2c: 01 07 00 [16:16:20]MH_I2C_Read... [16:16:20]Read from MH i2c: 01 07 00 22 95 00 00 00 00 00 FF 0F CC [16:16:20]process_action close_receipt done [16:16:20]requested_data is exist [16:16:20]produce_requested_data [16:16:20]requested_item fm.sn is exist - process it [16:16:20]wFMCommunicate request_size=4 [16:16:20]MH_SAM_APDU [16:16:20]CAPDU: 80 11 00 00 [16:16:20]Write to MH i2c: E2 08 00 23 95 80 11 00 00 00 00 00 00 32 [16:16:20]Write i2c OK [16:16:20]MH_I2C_Read... [16:16:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:16:20]Read from MH i2c: E2 [16:16:20]MH_I2C_Read... [16:16:20]Read from MH i2c: E2 17 00 [16:16:20]MH_I2C_Read... [16:16:20]Read from MH i2c: E2 17 00 23 95 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:16: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:16:20]wFMCommunicate OK [16:16:20]requested_item fd.num is exist - process it [16:16:20]SAM_PROTO_GetFieldsCounters [16:16:20]wFMCommunicate request_size=4 [16:16:20]MH_SAM_APDU [16:16:20]CAPDU: 80 13 00 00 [16:16:20]Write to MH i2c: E2 08 00 24 95 80 13 00 00 00 00 00 00 35 [16:16:20]Write i2c OK [16:16:20]MH_I2C_Read... [16:16:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:16:20]Read from MH i2c: E2 [16:16:20]MH_I2C_Read... [16:16:20]Read from MH i2c: E2 62 00 [16:16:20]MH_I2C_Read... [16:16:20]Read from MH i2c: E2 62 00 24 95 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 0D [16:16: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 BA 76 00 00 0E 04 04 00 72 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:16:20]wFMCommunicate OK [16:16:20]SAM_PROTO_GetFieldsCounters done [16:16:20]requested_item shift.num is exist - process it [16:16:20]requested_item shift.opened is exist - process it [16:16:20]req_shift_opened [16:16:20]FM_GetShiftState [16:16:20]SAM_PROTO_GetShiftState [16:16:20]wFMCommunicate request_size=4 [16:16:20]MH_SAM_APDU [16:16:20]CAPDU: 80 13 01 00 [16:16:20]Write to MH i2c: E2 08 00 25 95 80 13 01 00 00 00 00 00 37 [16:16:20]Write i2c OK [16:16:20]MH_I2C_Read... [16:16:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:16:20]Read from MH i2c: E2 [16:16:20]MH_I2C_Read... [16:16:20]Read from MH i2c: E2 0E 00 [16:16:20]MH_I2C_Read... [16:16:20]Read from MH i2c: E2 0E 00 25 95 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 1D [16:16:20]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [16:16:20]wFMCommunicate OK [16:16:20]SAM_PROTO_GetShiftState done [16:16:20]FM_GetShiftState done [16:16:20]req_shift_opened done [16:16:20]requested_item shift.open_date is exist - process it [16:16:20]req_shift_open_date [16:16:20]req_shift_open_date done [16:16:20]produce_requested_data done [16:16:20]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30394,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [16:16:20]process_action_free close_receipt [16:16:20]json_value_free [16:16:20]json_value_free done [16:16:20]process_json_proto returns [16:16:20]Send response to host [16:16:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30394,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [16:16:20]free response buf [16:16:20]execute_script done [16:16:20]execute_script returns [16:16:20]free content buf [16:16:20]Sock 7.Close socket [16:16:20]Sock 7.Thread stoped [16:16:24]OFD Sender: No OFD packet to send [16:16:29]OFD Sender: No OFD packet to send [16:16:34]OFD Sender: No OFD packet to send [16:16:39]OFD Sender: No OFD packet to send [16:16:44]OFD Sender: No OFD packet to send [16:16:49]OFD Sender: No OFD packet to send [16:16:53]accept exits with 9 [16:16:53]New connection [16:16:53]New thread 3067370852 created [16:16:53]Thread 3067514212 joined [16:16:53]Waiting for new connection... [16:16:53] Sock 9.Parse request [16:16:53]Sock 9.Check first char [16:16:53]Sock 9.First char is OK [16:16:53]request: POST /json_proto HTTP/1.0 [16:16:53]Method: POST [16:16:53]URL: /json_proto [16:16:53]Method is POST - this is cgi request [16:16:53]url: /json_proto [16:16:53]query_string will be loaded in cgi processing [16:16:53]execute_cgi json_proto POST (null) [16:16:53]execute_cgi path=json_proto method=POST [16:16:53]POST find Content-Length [16:16:53]Host: 172.17.51.3:8080 [16:16:53]Content-Length: 673 [16:16:53]Content-Type: application/json [16:16:53] [16:16:53]POST finish read [16:16:53]Found Content-Length = 673 [16:16:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342791", "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" : 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" ] } } [16:16:53]execute_script... [16:16:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342791", "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" : 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" ] } } [16:16:53]POST & json_proto [16:16:53]process_json_proto [16:16:53]json parsed OK: [16:16:53]protocol is kg_v1.0 [16:16:53]action value=close_receipt [16:16:53]process_action close_receipt [16:16:53]cmd_close_receipt [16:16:53]MH_GetDate [16:16:53]Write to MH i2c: F0 00 00 26 95 AA [16:16:53]Write i2c OK [16:16:53]MH_I2C_Read... [16:16:53]Read from MH i2c: F0 [16:16:53]MH_I2C_Read... [16:16:53]Read from MH i2c: F0 09 00 [16:16:53]MH_I2C_Read... [16:16:53]Read from MH i2c: F0 09 00 26 95 00 FF 2C 15 67 04 C1 95 66 1A [16:16:53]GetLastDocTimeStamp 1729440986 [16:16:53]current date 1729441023 [16:16:53]FM_GetShiftState [16:16:53]SAM_PROTO_GetShiftState [16:16:53]wFMCommunicate request_size=4 [16:16:53]MH_SAM_APDU [16:16:53]CAPDU: 80 13 01 00 [16:16:53]Write to MH i2c: E2 08 00 27 95 80 13 01 00 00 00 00 00 39 [16:16:53]Write i2c OK [16:16:53]MH_I2C_Read... [16:16:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:16:53]Read from MH i2c: E2 [16:16:53]MH_I2C_Read... [16:16:53]Read from MH i2c: E2 0E 00 [16:16:53]MH_I2C_Read... [16:16:53]Read from MH i2c: E2 0E 00 27 95 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 1F [16:16:53]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [16:16:53]wFMCommunicate OK [16:16:53]SAM_PROTO_GetShiftState done [16:16:53]FM_GetShiftState done [16:16:53]opened in 1729384718 [16:16:53]opened+sec_in_day 1729471118 [16:16:53]quantity*price = 7024 [16:16:53]sum+1 = 7026 [16:16:53]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 СНО: Общий режим Чек 177 20.10.2024 16:17 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30395 ФПД: 40807131092267 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T161704&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30395&fm=40807131092267&tin=02508201610067®Number=0000000000186857&sum=7000 [16:16:54]StoreToDocumentArchive [16:16:54]shift 114 fd 30395 [16:16:54]save to /storage/0114/doc_00030395 [16:16:54]save last doc name /storage/0114/doc_00030395 to /storage/kkm_last_doc_name [16:16:54]save OK [16:16:54]Clear old archive folders... [16:16:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:16:54]tlvbuf is 00A79700 [16:16:54]SAM_PROTO_ClearQueue [16:16:54]wFMCommunicate request_size=4 [16:16:54]MH_SAM_APDU [16:16:54]CAPDU: 80 09 00 00 [16:16:54]Write to MH i2c: E2 08 00 34 95 80 09 00 00 00 00 00 00 3B [16:16:54]Write i2c OK [16:16:54]MH_I2C_Read... [16:16:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:16:54]Read from MH i2c: E2 [16:16:54]MH_I2C_Read... [16:16:54]Read from MH i2c: E2 03 00 [16:16:54]MH_I2C_Read... [16:16:54]Read from MH i2c: E2 03 00 34 95 00 90 00 3D [16:16:54]RAPDU: 90 00 [16:16:54]wFMCommunicate OK [16:16:54]SAM_PROTO_ClearQueue done [16:16:54]KKMCreateOFDPacket [16:16:54]OFDProtocolAddRootSTLVToBuf [16:16:54]FM_MakeSignedData [16:16:54]FM_MakeSignedData [16:16:54]SAM_PROTO_SignData [16:16:54]wFMCommunicate request_size=4 [16:16:54]MH_SAM_APDU [16:16:54]CAPDU: 80 0D 01 02 [16:16:54]Write to MH i2c: E2 08 00 35 95 80 0D 01 02 00 00 00 00 43 [16:16:54]Write i2c OK [16:16:54]MH_I2C_Read... [16:16:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:16:55]Read from MH i2c: E2 [16:16:55]MH_I2C_Read... [16:16:55]Read from MH i2c: E2 03 00 [16:16:55]MH_I2C_Read... [16:16:55]Read from MH i2c: E2 03 00 35 95 00 90 00 3E [16:16:55]RAPDU: 90 00 [16:16:55]wFMCommunicate OK [16:16:55]wFMCommunicate request_size=255 [16:16:55]MH_SAM_APDU [16:16:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 B1 00 00 00 F4 03 04 00 00 2D 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 25 [16:16:55]Write to MH i2c: E2 02 01 36 95 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 B1 00 00 00 F4 03 04 00 00 2D 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 25 00 00 67 [16:16:55]Write i2c OK [16:16:55]MH_I2C_Read... [16:16:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:16:55]Read from MH i2c: E2 [16:16:55]MH_I2C_Read... [16:16:55]Read from MH i2c: E2 03 00 [16:16:55]MH_I2C_Read... [16:16:55]Read from MH i2c: E2 03 00 36 95 00 90 00 3F [16:16:55]RAPDU: 90 00 [16:16:55]wFMCommunicate OK [16:16:55]wFMCommunicate request_size=10 [16:16:55]MH_SAM_APDU [16:16:55]CAPDU: 80 0D 02 02 05 1D 26 8D 95 2B [16:16:55]Write to MH i2c: E2 0D 00 37 95 80 0D 02 02 05 00 1D 26 8D 95 2B 00 00 E0 [16:16:55]Write i2c OK [16:16:55]MH_I2C_Read... [16:16:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:16:55]Read from MH i2c: E2 [16:16:55]MH_I2C_Read... [16:16:55]Read from MH i2c: E2 03 00 [16:16:55]MH_I2C_Read... [16:16:55]Read from MH i2c: E2 03 00 37 95 00 90 00 40 [16:16:55]RAPDU: 90 00 [16:16:55]wFMCommunicate OK [16:16:55]wFMCommunicate request_size=4 [16:16:55]MH_SAM_APDU [16:16:55]CAPDU: 80 0D 03 02 [16:16:55]Write to MH i2c: E2 08 00 38 95 80 0D 03 02 00 00 00 00 48 [16:16:55]Write i2c OK [16:16:55]MH_I2C_Read... [16:16:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:16:55]Read from MH i2c: E2 [16:16:55]MH_I2C_Read... [16:16:55]Read from MH i2c: E2 0B 00 [16:16:55]MH_I2C_Read... [16:16:55]Read from MH i2c: E2 0B 00 38 95 00 A1 68 B3 04 73 32 67 AF 90 00 C4 [16:16:55]RAPDU: A1 68 B3 04 73 32 67 AF 90 00 [16:16:55]wFMCommunicate OK [16:16:55]SAM_PROTO_SignData done [16:16:55]FM_MakeSignedData done [16:16:55]CreateOFDProtocolMessage [16:16:55]wFMCommunicate request_size=4 [16:16:55]MH_SAM_APDU [16:16:55]CAPDU: 80 11 00 00 [16:16:55]Write to MH i2c: E2 08 00 39 95 80 11 00 00 00 00 00 00 48 [16:16:55]Write i2c OK [16:16:55]MH_I2C_Read... [16:16:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:16:55]Read from MH i2c: E2 [16:16:55]MH_I2C_Read... [16:16:55]Read from MH i2c: E2 17 00 [16:16:55]MH_I2C_Read... [16:16:55]Read from MH i2c: E2 17 00 39 95 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 96 [16:16: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:16:55]wFMCommunicate OK [16:16:55]CreateOFDProtocolMessage done [16:16:55]OFDSenderStorePacket 30395 [16:16:55]StoreOFDPacket docnum=30395 [16:16: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 76 EA 07 01 BE 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 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 B1 00 00 00 F4 03 04 00 00 2D 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 25 1D 26 8D 95 2B A1 68 B3 04 73 32 67 AF [16:16:55]CheckFolder [16:16:55]dirname=/storage/ofd_packets [16:16:55]CheckFolder done [16:16:55]ProducePacketName [16:16:55]name=ofd_packets/00030395 [16:16:55]NVStorageSaveData ofd_packets/00030395 [16:16:55]File name is /storage/ofd_packets/00030395 [16:16:55]Write 301 bytes [16:16:55]NVStorageSaveData done [16:16:55]OFDSenderStorePacket done [16:16:55]KKMCreateOFDPacket done [16:16:55]NVStorageSaveData kkm_last_timestamp [16:16:55]File name is /storage/kkm_last_timestamp [16:16:55]Write 4 bytes [16:16:55]NVStorageSaveData done [16:16:55]ExternCall_PrintAddStr [16:16:55]wPrintStart [16:16:55]Write to MH i2c: 01 00 00 3A 95 CF [16:16:55]Write i2c OK [16:16:55]MH_I2C_Read... [16:16:55]Read from MH i2c: 01 [16:16:55]MH_I2C_Read... [16:16:55]Read from MH i2c: 01 07 00 [16:16:55]MH_I2C_Read... [16:16:55]Read from MH i2c: 01 07 00 3A 95 00 00 00 00 00 FF 0F E4 [16:16:55]RasterBufferAndPrint [16:16:55]line Счет N : (1)342791 [16:16:55]line ИНН: 02508201610067 [16:16:55]line Контрольно-Кассовый Чек [16:16:55]line ПРОДАЖА [16:16:55]line ТРК (МРК, ГНК) : 43 [16:16:55]line Товар: 2710124130 [16:16:55]line Аи-92-К-2 [16:16:55]line 1.050 * 66.90 [16:16:55]line = 70.25 [16:16:55]line НДС 12% НСП 1% [16:16:55]line > о реализуемом товаре [16:16:55]line ОКРУГЛЕНИЕ: -0.25 [16:16:55]line ИТОГО: 70.00 [16:16:55]line Внесено: 70.00 [16:16:55]line СДАЧА: 0.00 [16:16:55]line НСП 1% : 0.62 [16:16:55]line НДС 12% : 7.46 [16:16:55]line Наличными: 70.00 [16:16:55]line Безнал.: 0.00 [16:16:55]line Место: АЗС № 78 "Партнер Нефть" [16:16:55]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [16:16:55]line СНО: Общий режим [16:16:55]line Чек 177 20.10.2024 16:17 [16:16:55]line Смена: 114 ФФД: 1.0 [16:16:55]line ЗНМ: 0300000137 [16:16:55]line РНМ: 0000000000186857 [16:16:55]line Версия ККМ: v1.0 [16:16:55]line ФМ: 0000000002094219 [16:16:55]line ФД: 30395 [16:16:55]line ФПД: 40807131092267 [16:16:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T161704&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30395&fm=40807131092267&tin=02508201610067®Number=0000000000186857&sum=7000 [16:16:55]OFD Sender: Processing packet 30395 [packets to send 10, broken 9] [16:16:55]ProducePacketName [16:16:55]name=ofd_packets/00030395 [16:16:55]OFD Sender: To server: pG, [16:16:55]CommunicateWithHost lk.salyk.kg:30040 [16:16:55]ConnectInit lk.salyk.kg [16:16:55]written 0, free lines is 4095 [16:16:55]Connected sock=7 [16:16: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 76 EA 07 01 BE 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 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 B1 00 00 00 F4 03 04 00 00 2D 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 25 1D 26 8D 95 2B A1 68 B3 04 73 32 67 AF [16:16: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 77 8E 47 00 6C 5B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 BB 76 00 00 F4 03 04 00 83 D7 14 67 B6 04 01 00 00 5C 89 13 C0 EC 27 51 30 [16:16:56]CommunicateWithHost err = 0 [16:16:56]CheckOFDResponse [16:16:56]1017 (14) - 77093643461234 [16:16:56]1041 (16) - 0000000002094219 [16:16:56]1040 (4) - 30395 [16:16:56]1012 (4) - 20.10.2024 10:12 [16:16:56]1206 (1) - 0 [16:16:56]OFD Sender: Remove packet 30395 [16:16:56]ProducePacketName [16:16:56]name=ofd_packets/00030395 [16:16:56]NVStorageDeleteData [16:16:56]Write to MH i2c: 01 00 00 65 95 FA [16:16:56]Write i2c OK [16:16:56]MH_I2C_Read... [16:16:56]Read from MH i2c: 01 [16:16:56]MH_I2C_Read... [16:16:56]Read from MH i2c: 01 07 00 [16:16:56]MH_I2C_Read... [16:16:56]Read from MH i2c: 01 07 00 65 95 00 00 00 00 00 E3 0C F0 [16:16:56]RasterBufferAndPrint [16:16:56]line [16:16:56]line [16:16:56]line [16:16:56]line [16:16:56]line [16:16:56]written 0, free lines is 3305 [16:16:56]MH_Cut [16:16:56]Write to MH i2c: D1 01 00 6C 95 01 D3 [16:16:56]Write i2c OK [16:16:56]MH_I2C_Read... [16:16:56]Read from MH i2c: D1 [16:16:56]MH_I2C_Read... [16:16:56]Read from MH i2c: D1 01 00 [16:16:56]MH_I2C_Read... [16:16:56]Read from MH i2c: D1 01 00 6C 95 00 D2 [16:16:56]Write to MH i2c: 01 00 00 6D 95 02 [16:16:56]Write i2c OK [16:16:56]MH_I2C_Read... [16:16:56]OFD Sender: No OFD packet to send [16:16:56]*** Cut start [16:16:56]*** Partial cut [16:16:56]*** CUTSNS_PIN = 1 [16:16:57]*** CUTSNS_PIN = 0 [16:16:57]*** Brake cut motor [16:16:57]Read from MH i2c: *** Stop cut motor [16:16:57]*** Cut end [16:16:57]01 [16:16:57]MH_I2C_Read... [16:16:57]Read from MH i2c: 01 07 00 [16:16:57]MH_I2C_Read... [16:16:57]Read from MH i2c: 01 07 00 6D 95 00 00 00 00 00 FF 0F 17 [16:16:57]process_action close_receipt done [16:16:57]requested_data is exist [16:16:57]produce_requested_data [16:16:57]requested_item fm.sn is exist - process it [16:16:57]wFMCommunicate request_size=4 [16:16:57]MH_SAM_APDU [16:16:57]CAPDU: 80 11 00 00 [16:16:57]Write to MH i2c: E2 08 00 6E 95 80 11 00 00 00 00 00 00 7D [16:16:57]Write i2c OK [16:16:57]MH_I2C_Read... [16:16:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:16:57]Read from MH i2c: E2 [16:16:57]MH_I2C_Read... [16:16:57]Read from MH i2c: E2 17 00 [16:16:57]MH_I2C_Read... [16:16:57]Read from MH i2c: E2 17 00 6E 95 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:16:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [16:16:57]wFMCommunicate OK [16:16:57]requested_item fd.num is exist - process it [16:16:57]SAM_PROTO_GetFieldsCounters [16:16:57]wFMCommunicate request_size=4 [16:16:57]MH_SAM_APDU [16:16:57]CAPDU: 80 13 00 00 [16:16:57]Write to MH i2c: E2 08 00 6F 95 80 13 00 00 00 00 00 00 80 [16:16:57]Write i2c OK [16:16:57]MH_I2C_Read... [16:16:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:16:57]Read from MH i2c: E2 [16:16:57]MH_I2C_Read... [16:16:57]Read from MH i2c: E2 62 00 [16:16:57]MH_I2C_Read... [16:16:57]Read from MH i2c: E2 62 00 6F 95 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 5C [16:16: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 BB 76 00 00 0E 04 04 00 72 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:16:57]wFMCommunicate OK [16:16:57]SAM_PROTO_GetFieldsCounters done [16:16:57]requested_item shift.num is exist - process it [16:16:57]requested_item shift.opened is exist - process it [16:16:57]req_shift_opened [16:16:57]FM_GetShiftState [16:16:57]SAM_PROTO_GetShiftState [16:16:57]wFMCommunicate request_size=4 [16:16:57]MH_SAM_APDU [16:16:57]CAPDU: 80 13 01 00 [16:16:57]Write to MH i2c: E2 08 00 70 95 80 13 01 00 00 00 00 00 82 [16:16:57]Write i2c OK [16:16:57]MH_I2C_Read... [16:16:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:16:57]Read from MH i2c: E2 [16:16:57]MH_I2C_Read... [16:16:57]Read from MH i2c: E2 0E 00 [16:16:57]MH_I2C_Read... [16:16:57]Read from MH i2c: E2 0E 00 70 95 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 68 [16:16:57]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [16:16:57]wFMCommunicate OK [16:16:57]SAM_PROTO_GetShiftState done [16:16:57]FM_GetShiftState done [16:16:57]req_shift_opened done [16:16:57]requested_item shift.open_date is exist - process it [16:16:57]req_shift_open_date [16:16:57]req_shift_open_date done [16:16:57]produce_requested_data done [16:16:57]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30395,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [16:16:57]process_action_free close_receipt [16:16:57]json_value_free [16:16:57]json_value_free done [16:16:57]process_json_proto returns [16:16:57]Send response to host [16:16:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30395,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [16:16:57]free response buf [16:16:57]execute_script done [16:16:57]execute_script returns [16:16:57]free content buf [16:16:57]Sock 9.Close socket [16:16:57]Sock 9.Thread stoped [16:17:01]OFD Sender: No OFD packet to send [16:17:06]OFD Sender: No OFD packet to send [16:17:11]OFD Sender: No OFD packet to send [16:17:16]OFD Sender: No OFD packet to send [16:17:21]OFD Sender: No OFD packet to send [16:17:26]OFD Sender: No OFD packet to send [16:17:31]OFD Sender: No OFD packet to send [16:17:35]accept exits with 10 [16:17:35]New connection [16:17:35]New thread 3067514212 created [16:17:35]Thread 3067370852 joined [16:17:35]Waiting for new connection... [16:17:35] Sock 10.Parse request [16:17:35]Sock 10.Check first char [16:17:35]Sock 10.First char is OK [16:17:35]request: POST /json_proto HTTP/1.0 [16:17:35]Method: POST [16:17:35]URL: /json_proto [16:17:35]Method is POST - this is cgi request [16:17:35]url: /json_proto [16:17:35]query_string will be loaded in cgi processing [16:17:35]execute_cgi json_proto POST (null) [16:17:35]execute_cgi path=json_proto method=POST [16:17:35]POST find Content-Length [16:17:35]Host: 172.17.51.3:8080 [16:17:35]Content-Length: 840 [16:17:35]Content-Type: application/json [16:17:35] [16:17:35]POST finish read [16:17:35]Found Content-Length = 840 [16:17:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342790", "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" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 3000.76 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:17:35]execute_script... [16: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)342790", "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" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 3000.76 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:17:35]POST & json_proto [16:17:35]process_json_proto [16:17:35]json parsed OK: [16:17:35]protocol is kg_v1.0 [16:17:35]action value=close_receipt [16:17:35]process_action close_receipt [16:17:35]cmd_close_receipt [16:17:35]MH_GetDate [16:17:35]Write to MH i2c: F0 00 00 71 95 F5 [16:17:35]Write i2c OK [16:17:35]MH_I2C_Read... [16:17:35]Read from MH i2c: F0 [16:17:35]MH_I2C_Read... [16:17:35]Read from MH i2c: F0 09 00 [16:17:35]MH_I2C_Read... [16:17:35]Read from MH i2c: F0 09 00 71 95 00 29 2D 15 67 04 C1 95 66 90 [16:17:35]GetLastDocTimeStamp 1729441024 [16:17:35]current date 1729441065 [16:17:35]FM_GetShiftState [16:17:35]SAM_PROTO_GetShiftState [16:17:35]wFMCommunicate request_size=4 [16:17:35]MH_SAM_APDU [16:17:35]CAPDU: 80 13 01 00 [16:17:35]Write to MH i2c: E2 08 00 72 95 80 13 01 00 00 00 00 00 84 [16:17:35]Write i2c OK [16:17:35]MH_I2C_Read... [16:17:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:17:35]Read from MH i2c: E2 [16:17:35]MH_I2C_Read... [16:17:35]Read from MH i2c: E2 0E 00 [16:17:35]MH_I2C_Read... [16:17:35]Read from MH i2c: E2 0E 00 72 95 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 6A [16:17:35]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [16:17:35]wFMCommunicate OK [16:17:35]SAM_PROTO_GetShiftState done [16:17:35]FM_GetShiftState done [16:17:35]opened in 1729384718 [16:17:35]opened+sec_in_day 1729471118 [16:17:35]quantity*price = 300075 [16:17:35]sum+1 = 300077 [16:17:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3000.76 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 0.00 Безнал.: 3000.76 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 178 20.10.2024 16:17 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Платежная система: АКБ Кыргызстан ФМ: 0000000002094219 ФД: 30396 ФПД: 41947086111306 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T161746&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30396&fm=41947086111306&tin=02508201610067®Number=0000000000186857&sum=300076 [16:17:36]StoreToDocumentArchive [16:17:36]shift 114 fd 30396 [16:17:36]save to /storage/0114/doc_00030396 [16:17:36]save last doc name /storage/0114/doc_00030396 to /storage/kkm_last_doc_name [16:17:36]save OK [16:17:36]Clear old archive folders... [16:17:36]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:17:36]tlvbuf is 00BC8EE0 [16:17:36]SAM_PROTO_ClearQueue [16:17:36]wFMCommunicate request_size=4 [16:17:36]MH_SAM_APDU [16:17:36]CAPDU: 80 09 00 00 [16:17:36]Write to MH i2c: E2 08 00 7F 95 80 09 00 00 00 00 00 00 86 [16:17:36]Write i2c OK [16:17:36]MH_I2C_Read... [16:17:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:17:36]Read from MH i2c: E2 [16:17:36]MH_I2C_Read... [16:17:36]Read from MH i2c: E2 03 00 [16:17:36]MH_I2C_Read... [16:17:36]Read from MH i2c: E2 03 00 7F 95 00 90 00 88 [16:17:36]RAPDU: 90 00 [16:17:36]wFMCommunicate OK [16:17:36]SAM_PROTO_ClearQueue done [16:17:36]KKMCreateOFDPacket [16:17:36]OFDProtocolAddRootSTLVToBuf [16:17:36]FM_MakeSignedData [16:17:36]FM_MakeSignedData [16:17:36]SAM_PROTO_SignData [16:17:36]wFMCommunicate request_size=4 [16:17:36]MH_SAM_APDU [16:17:36]CAPDU: 80 0D 01 02 [16:17:36]Write to MH i2c: E2 08 00 80 95 80 0D 01 02 00 00 00 00 8E [16:17:36]Write i2c OK [16:17:36]MH_I2C_Read... [16:17:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:17:37]Read from MH i2c: E2 [16:17:37]MH_I2C_Read... [16:17:37]Read from MH i2c: E2 03 00 [16:17:37]MH_I2C_Read... [16:17:37]Read from MH i2c: E2 03 00 80 95 00 90 00 89 [16:17:37]RAPDU: 90 00 [16:17:37]wFMCommunicate OK [16:17:37]wFMCommunicate request_size=255 [16:17:37]MH_SAM_APDU [16:17:37]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 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 2C 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 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 2A 2D 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 26 26 91 2A [16:17:37]Write to MH i2c: E2 02 01 81 95 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 2C 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 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 2A 2D 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 26 26 91 2A 00 00 16 [16:17:37]Write i2c OK [16:17:37]MH_I2C_Read... [16:17:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:17:37]Read from MH i2c: E2 [16:17:37]MH_I2C_Read... [16:17:37]Read from MH i2c: E2 03 00 [16:17:37]MH_I2C_Read... [16:17:37]Read from MH i2c: E2 03 00 81 95 00 90 00 8A [16:17:37]RAPDU: 90 00 [16:17:37]wFMCommunicate OK [16:17:37]wFMCommunicate request_size=7 [16:17:37]MH_SAM_APDU [16:17:37]CAPDU: 80 0D 02 02 02 C2 4A [16:17:37]Write to MH i2c: E2 0A 00 82 95 80 0D 02 02 02 00 C2 4A 00 00 A1 [16:17:37]Write i2c OK [16:17:37]MH_I2C_Read... [16:17:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:17:37]Read from MH i2c: E2 [16:17:37]MH_I2C_Read... [16:17:37]Read from MH i2c: E2 03 00 [16:17:37]MH_I2C_Read... [16:17:37]Read from MH i2c: E2 03 00 82 95 00 90 00 8B [16:17:37]RAPDU: 90 00 [16:17:37]wFMCommunicate OK [16:17:37]wFMCommunicate request_size=4 [16:17:37]MH_SAM_APDU [16:17:37]CAPDU: 80 0D 03 02 [16:17:37]Write to MH i2c: E2 08 00 83 95 80 0D 03 02 00 00 00 00 93 [16:17:37]Write i2c OK [16:17:37]MH_I2C_Read... [16:17:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:17:37]Read from MH i2c: E2 [16:17:37]MH_I2C_Read... [16:17:37]Read from MH i2c: E2 0B 00 [16:17:37]MH_I2C_Read... [16:17:37]Read from MH i2c: E2 0B 00 83 95 00 0A 67 75 C9 D8 28 70 AC 90 00 5F [16:17:37]RAPDU: 0A 67 75 C9 D8 28 70 AC 90 00 [16:17:37]wFMCommunicate OK [16:17:37]SAM_PROTO_SignData done [16:17:37]FM_MakeSignedData done [16:17:37]CreateOFDProtocolMessage [16:17:37]wFMCommunicate request_size=4 [16:17:37]MH_SAM_APDU [16:17:37]CAPDU: 80 11 00 00 [16:17:37]Write to MH i2c: E2 08 00 84 95 80 11 00 00 00 00 00 00 93 [16:17:37]Write i2c OK [16:17:37]MH_I2C_Read... [16:17:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:17:37]Read from MH i2c: E2 [16:17:37]MH_I2C_Read... [16:17:37]Read from MH i2c: E2 17 00 [16:17:37]MH_I2C_Read... [16:17:37]Read from MH i2c: E2 17 00 84 95 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 E1 [16: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 [16:17:37]wFMCommunicate OK [16:17:37]CreateOFDProtocolMessage done [16:17:37]OFDSenderStorePacket 30396 [16:17:37]StoreOFDPacket docnum=30396 [16: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 0C 01 00 00 04 2F 04 01 4A 93 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 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 2C 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 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 2A 2D 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 26 26 91 2A C2 4A 0A 67 75 C9 D8 28 70 AC [16:17:37]CheckFolder [16:17:37]dirname=/storage/ofd_packets [16:17:37]CheckFolder done [16:17:37]ProducePacketName [16:17:37]name=ofd_packets/00030396 [16:17:37]NVStorageSaveData ofd_packets/00030396 [16:17:37]File name is /storage/ofd_packets/00030396 [16:17:37]Write 298 bytes [16:17:37]NVStorageSaveData done [16:17:37]OFDSenderStorePacket done [16:17:37]KKMCreateOFDPacket done [16:17:37]NVStorageSaveData kkm_last_timestamp [16:17:37]File name is /storage/kkm_last_timestamp [16:17:37]Write 4 bytes [16:17:37]NVStorageSaveData done [16:17:37]ExternCall_PrintAddStr [16:17:37]wPrintStart [16:17:37]Write to MH i2c: 01 00 00 85 95 1A [16:17:37]Write i2c OK [16:17:37]MH_I2C_Read... [16:17:37]Read from MH i2c: 01 [16:17:37]MH_I2C_Read... [16:17:37]Read from MH i2c: 01 07 00 [16:17:37]MH_I2C_Read... [16:17:37]Read from MH i2c: 01 07 00 85 95 00 00 00 00 00 FF 0F 2F [16:17:37]RasterBufferAndPrint [16:17:37]line Счет N : (1)342790 [16:17:37]line ИНН: 02508201610067 [16:17:37]line Контрольно-Кассовый Чек [16:17:37]line ПРОДАЖА [16:17:37]line ТРК (МРК, ГНК) : 34 [16:17:37]line Товар: 2710194210 [16:17:37]line ДТ-К-2 [16:17:37]line 39.380 * 76.20 [16:17:37]line = 3000.76 [16:17:37]line НДС 12% НСП 1% [16:17:37]line > о реализуемом товаре [16:17:37]line ИТОГО: 3000.76 [16:17:37]line НСП 1% : 26.55 [16:17:37]line НДС 12% : 318.66 [16:17:37]line Наличными: 0.00 [16:17:37]line Безнал.: 3000.76 [16:17:37]line Место: АЗС № 78 "Партнер Нефть" [16:17:37]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [16:17:37]line СНО: Общий режим [16:17:37]line Чек 178 20.10.2024 16:17 [16:17:37]line Смена: 114 ФФД: 1.0 [16:17:37]line ЗНМ: 0300000137 [16:17:37]line РНМ: 0000000000186857 [16:17:37]line Версия ККМ: v1.0 [16:17:37]line Платежная система: АКБ Кыргызстан [16:17:37]line ФМ: 0000000002094219 [16:17:37]line ФД: 30396 [16:17:37]line ФПД: 41947086111306 [16:17:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T161746&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30396&fm=41947086111306&tin=02508201610067®Number=0000000000186857&sum=300076 [16:17:37]OFD Sender: Processing packet 30396 [packets to send 10, broken 9] [16:17:37]ProducePacketName [16:17:37]name=ofd_packets/00030396 [16:17:37]OFD Sender: To server: pG, [16:17:37]CommunicateWithHost lk.salyk.kg:30040 [16:17:37]ConnectInit lk.salyk.kg [16:17:37]written 0, free lines is 4095 [16:17:37]Connected sock=7 [16: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 0C 01 00 00 04 2F 04 01 4A 93 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 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 2C 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 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 2A 2D 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 26 26 91 2A C2 4A 0A 67 75 C9 D8 28 70 AC [16: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 05 C0 47 00 8B 2D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 BC 76 00 00 F4 03 04 00 AD D7 14 67 B6 04 01 00 00 D8 FA 3E 54 91 93 CE DB [16:17:38]CommunicateWithHost err = 0 [16:17:38]CheckOFDResponse [16:17:38]1017 (14) - 77093643461234 [16:17:38]1041 (16) - 0000000002094219 [16:17:38]1040 (4) - 30396 [16:17:38]1012 (4) - 20.10.2024 10:13 [16:17:38]1206 (1) - 0 [16:17:38]OFD Sender: Remove packet 30396 [16:17:38]ProducePacketName [16:17:38]name=ofd_packets/00030396 [16:17:38]NVStorageDeleteData [16:17:38]Write to MH i2c: 01 00 00 AF 95 44 [16:17:38]Write i2c OK [16:17:38]MH_I2C_Read... [16:17:38]Read from MH i2c: 01 [16:17:38]MH_I2C_Read... [16:17:38]Read from MH i2c: 01 07 00 [16:17:38]MH_I2C_Read... [16:17:38]Read from MH i2c: 01 07 00 AF 95 00 00 00 00 00 0B 0D 63 [16:17:38]RasterBufferAndPrint [16:17:38]line [16:17:38]line [16:17:38]line [16:17:38]line [16:17:38]line [16:17:38]written 0, free lines is 3348 [16:17:38]MH_Cut [16:17:38]Write to MH i2c: D1 01 00 B6 95 01 1D [16:17:38]Write i2c OK [16:17:38]MH_I2C_Read... [16:17:38]Read from MH i2c: D1 [16:17:38]MH_I2C_Read... [16:17:38]Read from MH i2c: D1 01 00 [16:17:38]MH_I2C_Read... [16:17:38]Read from MH i2c: D1 01 00 B6 95 00 1C [16:17:38]Write to MH i2c: 01 00 00 B7 95 4C [16:17:38]Write i2c OK [16:17:38]MH_I2C_Read... [16:17:38]OFD Sender: No OFD packet to send [16:17:38]*** Cut start [16:17:38]*** Partial cut [16:17:38]*** CUTSNS_PIN = 1 [16:17:38]*** CUTSNS_PIN = 0 [16:17:39]*** Brake cut motor [16:17:39]Read from MH i2c: 01 [16:17:39]MH_I2C_Read... [16:17:39]*** Stop cut motor [16:17:39]*** Cut end [16:17:39]Read from MH i2c: 01 07 00 [16:17:39]MH_I2C_Read... [16:17:39]Read from MH i2c: 01 07 00 B7 95 00 00 00 00 00 FF 0F 61 [16:17:39]process_action close_receipt done [16:17:39]requested_data is exist [16:17:39]produce_requested_data [16:17:39]requested_item fm.sn is exist - process it [16:17:39]wFMCommunicate request_size=4 [16:17:39]MH_SAM_APDU [16:17:39]CAPDU: 80 11 00 00 [16:17:39]Write to MH i2c: E2 08 00 B8 95 80 11 00 00 00 00 00 00 C7 [16:17:39]Write i2c OK [16:17:39]MH_I2C_Read... [16:17:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:17:39]Read from MH i2c: E2 [16:17:39]MH_I2C_Read... [16:17:39]Read from MH i2c: E2 17 00 [16:17:39]MH_I2C_Read... [16:17:39]Read from MH i2c: E2 17 00 B8 95 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 15 [16: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 [16:17:39]wFMCommunicate OK [16:17:39]requested_item fd.num is exist - process it [16:17:39]SAM_PROTO_GetFieldsCounters [16:17:39]wFMCommunicate request_size=4 [16:17:39]MH_SAM_APDU [16:17:39]CAPDU: 80 13 00 00 [16:17:39]Write to MH i2c: E2 08 00 B9 95 80 13 00 00 00 00 00 00 CA [16:17:39]Write i2c OK [16:17:39]MH_I2C_Read... [16:17:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:17:39]Read from MH i2c: E2 [16:17:39]MH_I2C_Read... [16:17:39]Read from MH i2c: E2 62 00 [16:17:39]MH_I2C_Read... [16:17:39]Read from MH i2c: E2 62 00 B9 95 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 AA [16: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 BC 76 00 00 0E 04 04 00 72 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 [16:17:39]wFMCommunicate OK [16:17:39]SAM_PROTO_GetFieldsCounters done [16:17:39]requested_item shift.num is exist - process it [16:17:39]requested_item shift.opened is exist - process it [16:17:39]req_shift_opened [16:17:39]FM_GetShiftState [16:17:39]SAM_PROTO_GetShiftState [16:17:39]wFMCommunicate request_size=4 [16:17:39]MH_SAM_APDU [16:17:39]CAPDU: 80 13 01 00 [16:17:39]Write to MH i2c: E2 08 00 BA 95 80 13 01 00 00 00 00 00 CC [16:17:39]Write i2c OK [16:17:39]MH_I2C_Read... [16:17:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:17:39]Read from MH i2c: E2 [16:17:39]MH_I2C_Read... [16:17:39]Read from MH i2c: E2 0E 00 [16:17:39]MH_I2C_Read... [16:17:39]Read from MH i2c: E2 0E 00 BA 95 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 B2 [16:17:39]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [16:17:39]wFMCommunicate OK [16:17:39]SAM_PROTO_GetShiftState done [16:17:39]FM_GetShiftState done [16:17:39]req_shift_opened done [16:17:39]requested_item shift.open_date is exist - process it [16:17:39]req_shift_open_date [16:17:39]req_shift_open_date done [16:17:39]produce_requested_data done [16:17:39]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30396,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [16:17:39]process_action_free close_receipt [16:17:39]json_value_free [16:17:39]json_value_free done [16:17:39]process_json_proto returns [16:17:39]Send response to host [16:17:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30396,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [16:17:39]free response buf [16:17:39]execute_script done [16:17:39]execute_script returns [16:17:39]free content buf [16:17:39]Sock 10.Close socket [16:17:39]Sock 10.Thread stoped [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]accept exits with 9 [16:19:13]New connection [16:19:13]New thread 3067370852 created [16:19:13]Thread 3067514212 joined [16:19:13]Waiting for new connection... [16:19:13] Sock 9.Parse request [16:19:13]Sock 9.Check first char [16:19:13]Sock 9.First char is OK [16:19:13]request: POST /json_proto HTTP/1.0 [16:19:13]Method: POST [16:19:13]URL: /json_proto [16:19:13]Method is POST - this is cgi request [16:19:13]url: /json_proto [16:19:13]query_string will be loaded in cgi processing [16:19:13]execute_cgi json_proto POST (null) [16:19:13]execute_cgi path=json_proto method=POST [16:19:13]POST find Content-Length [16:19:13]Host: 172.17.51.3:8080 [16:19:13]Content-Length: 688 [16:19:13]Content-Type: application/json [16:19:13] [16:19:13]POST finish read [16:19:13]Found Content-Length = 688 [16:19:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342792", "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" ] } } [16:19:13]execute_script... [16: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)342792", "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" ] } } [16:19:13]POST & json_proto [16:19:13]process_json_proto [16:19:13]json parsed OK: [16:19:13]protocol is kg_v1.0 [16:19:13]action value=close_receipt [16:19:13]process_action close_receipt [16:19:13]cmd_close_receipt [16:19:13]MH_GetDate [16:19:13]Write to MH i2c: F0 00 00 BB 95 3F [16:19:13]Write i2c OK [16:19:13]MH_I2C_Read... [16:19:13]Read from MH i2c: F0 [16:19:13]MH_I2C_Read... [16:19:13]Read from MH i2c: F0 09 00 [16:19:13]MH_I2C_Read... [16:19:13]Read from MH i2c: F0 09 00 BB 95 00 8B 2D 15 67 04 C1 95 66 3C [16:19:13]GetLastDocTimeStamp 1729441066 [16:19:13]current date 1729441163 [16:19:13]FM_GetShiftState [16:19:13]SAM_PROTO_GetShiftState [16:19:13]wFMCommunicate request_size=4 [16:19:13]MH_SAM_APDU [16:19:13]CAPDU: 80 13 01 00 [16:19:13]Write to MH i2c: E2 08 00 BC 95 80 13 01 00 00 00 00 00 CE [16:19:13]Write i2c OK [16:19:13]MH_I2C_Read... [16:19:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:19:13]Read from MH i2c: E2 [16:19:13]MH_I2C_Read... [16:19:13]Read from MH i2c: E2 0E 00 [16:19:13]MH_I2C_Read... [16:19:13]Read from MH i2c: E2 0E 00 BC 95 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 B4 [16:19:13]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [16:19:13]wFMCommunicate OK [16:19:13]SAM_PROTO_GetShiftState done [16:19:13]FM_GetShiftState done [16:19:13]opened in 1729384718 [16:19:13]opened+sec_in_day 1729471118 [16:19:13]quantity*price = 200025 [16:19:13]sum+1 = 200026 [16:19:13]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 СНО: Общий режим Чек 179 20.10.2024 16:19 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30397 ФПД: 142381918184090 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T161923&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30397&fm=142381918184090&tin=02508201610067®Number=0000000000186857&sum=200000 [16:19:14]StoreToDocumentArchive [16:19:14]shift 114 fd 30397 [16:19:14]save to /storage/0114/doc_00030397 [16:19:14]save last doc name /storage/0114/doc_00030397 to /storage/kkm_last_doc_name [16:19:14]save OK [16:19:14]Clear old archive folders... [16:19:14]ProcessDocumentItem done err = 0, tmpTLVsize=257 [16:19:14]tlvbuf is 00DF62A0 [16:19:14]SAM_PROTO_ClearQueue [16:19:14]wFMCommunicate request_size=4 [16:19:14]MH_SAM_APDU [16:19:14]CAPDU: 80 09 00 00 [16:19:14]Write to MH i2c: E2 08 00 C9 95 80 09 00 00 00 00 00 00 D0 [16:19:14]Write i2c OK [16:19:14]MH_I2C_Read... [16:19:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:19:14]Read from MH i2c: E2 [16:19:14]MH_I2C_Read... [16:19:14]Read from MH i2c: E2 03 00 [16:19:14]MH_I2C_Read... [16:19:14]Read from MH i2c: E2 03 00 C9 95 00 90 00 D2 [16:19:14]RAPDU: 90 00 [16:19:14]wFMCommunicate OK [16:19:14]SAM_PROTO_ClearQueue done [16:19:14]KKMCreateOFDPacket [16:19:14]OFDProtocolAddRootSTLVToBuf [16:19:14]FM_MakeSignedData [16:19:14]FM_MakeSignedData [16:19:14]SAM_PROTO_SignData [16:19:14]wFMCommunicate request_size=4 [16:19:14]MH_SAM_APDU [16:19:14]CAPDU: 80 0D 01 02 [16:19:14]Write to MH i2c: E2 08 00 CA 95 80 0D 01 02 00 00 00 00 D8 [16:19:14]Write i2c OK [16:19:14]MH_I2C_Read... [16:19:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:19:14]Read from MH i2c: E2 [16:19:14]MH_I2C_Read... [16:19:14]Read from MH i2c: E2 03 00 [16:19:14]MH_I2C_Read... [16:19:14]Read from MH i2c: E2 03 00 CA 95 00 90 00 D3 [16:19:14]RAPDU: 90 00 [16:19:14]wFMCommunicate OK [16:19:14]wFMCommunicate request_size=255 [16:19:14]MH_SAM_APDU [16:19:14]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 B3 00 00 00 F4 03 04 00 8B 2D 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 [16:19:14]Write to MH i2c: E2 02 01 CB 95 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 B3 00 00 00 F4 03 04 00 8B 2D 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 00 02 [16:19:14]Write i2c OK [16:19:14]MH_I2C_Read... [16:19:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:19:15]Read from MH i2c: E2 [16:19:15]MH_I2C_Read... [16:19:15]Read from MH i2c: E2 03 00 [16:19:15]MH_I2C_Read... [16:19:15]Read from MH i2c: E2 03 00 CB 95 00 90 00 D4 [16:19:15]RAPDU: 90 00 [16:19:15]wFMCommunicate OK [16:19:15]wFMCommunicate request_size=16 [16:19:15]MH_SAM_APDU [16:19:15]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 81 7E DF A7 E2 9A [16:19:15]Write to MH i2c: E2 13 00 CC 95 80 0D 02 02 0B 00 00 35 04 06 00 81 7E DF A7 E2 9A 00 00 31 [16:19:15]Write i2c OK [16:19:15]MH_I2C_Read... [16:19:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:19:15]Read from MH i2c: E2 [16:19:15]MH_I2C_Read... [16:19:15]Read from MH i2c: E2 03 00 [16:19:15]MH_I2C_Read... [16:19:15]Read from MH i2c: E2 03 00 CC 95 00 90 00 D5 [16:19:15]RAPDU: 90 00 [16:19:15]wFMCommunicate OK [16:19:15]wFMCommunicate request_size=4 [16:19:15]MH_SAM_APDU [16:19:15]CAPDU: 80 0D 03 02 [16:19:15]Write to MH i2c: E2 08 00 CD 95 80 0D 03 02 00 00 00 00 DD [16:19:15]Write i2c OK [16:19:15]MH_I2C_Read... [16:19:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:19:15]Read from MH i2c: E2 [16:19:15]MH_I2C_Read... [16:19:15]Read from MH i2c: E2 0B 00 [16:19:15]MH_I2C_Read... [16:19:15]Read from MH i2c: E2 0B 00 CD 95 00 58 E9 23 F6 46 F2 B2 22 90 00 44 [16:19:15]RAPDU: 58 E9 23 F6 46 F2 B2 22 90 00 [16:19:15]wFMCommunicate OK [16:19:15]SAM_PROTO_SignData done [16:19:15]FM_MakeSignedData done [16:19:15]CreateOFDProtocolMessage [16:19:15]wFMCommunicate request_size=4 [16:19:15]MH_SAM_APDU [16:19:15]CAPDU: 80 11 00 00 [16:19:15]Write to MH i2c: E2 08 00 CE 95 80 11 00 00 00 00 00 00 DD [16:19:15]Write i2c OK [16:19:15]MH_I2C_Read... [16:19:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:19:15]Read from MH i2c: E2 [16:19:15]MH_I2C_Read... [16:19:15]Read from MH i2c: E2 17 00 [16:19:15]MH_I2C_Read... [16:19:15]Read from MH i2c: E2 17 00 CE 95 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 2B [16: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 [16:19:15]wFMCommunicate OK [16:19:15]CreateOFDProtocolMessage done [16:19:15]OFDSenderStorePacket 30397 [16:19:15]StoreOFDPacket docnum=30397 [16: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 15 01 00 00 85 E8 0D 01 23 44 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 B3 00 00 00 F4 03 04 00 8B 2D 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 81 7E DF A7 E2 9A 58 E9 23 F6 46 F2 B2 22 [16:19:15]CheckFolder [16:19:15]dirname=/storage/ofd_packets [16:19:15]CheckFolder done [16:19:15]ProducePacketName [16:19:15]name=ofd_packets/00030397 [16:19:15]NVStorageSaveData ofd_packets/00030397 [16:19:15]File name is /storage/ofd_packets/00030397 [16:19:15]Write 307 bytes [16:19:15]NVStorageSaveData done [16:19:15]OFDSenderStorePacket done [16:19:15]KKMCreateOFDPacket done [16:19:15]NVStorageSaveData kkm_last_timestamp [16:19:15]File name is /storage/kkm_last_timestamp [16:19:15]Write 4 bytes [16:19:15]NVStorageSaveData done [16:19:15]ExternCall_PrintAddStr [16:19:15]wPrintStart [16:19:15]Write to MH i2c: 01 00 00 CF 95 64 [16:19:15]Write i2c OK [16:19:15]MH_I2C_Read... [16:19:15]Read from MH i2c: 01 [16:19:15]MH_I2C_Read... [16:19:15]Read from MH i2c: 01 07 00 [16:19:15]MH_I2C_Read... [16:19:15]Read from MH i2c: 01 07 00 CF 95 00 00 00 00 00 FF 0F 79 [16:19:15]RasterBufferAndPrint [16:19:15]line Счет N : (1)342792 [16:19:15]line ИНН: 02508201610067 [16:19:15]line Контрольно-Кассовый Чек [16:19:15]line ПРОДАЖА [16:19:15]line ТРК (МРК, ГНК) : 61 [16:19:15]line Товар: 2710194210 [16:19:15]line D-ENERGY Дт-К-2 [16:19:15]line 25.910 * 77.20 [16:19:15]line = 2000.25 [16:19:15]line НДС 12% НСП 1% [16:19:15]line > о реализуемом товаре [16:19:15]line ОКРУГЛЕНИЕ: -0.25 [16:19:15]line ИТОГО: 2000.00 [16:19:15]line Внесено: 2000.00 [16:19:15]line СДАЧА: 0.00 [16:19:15]line НСП 1% : 17.70 [16:19:15]line НДС 12% : 212.42 [16:19:15]line Наличными: 2000.00 [16:19:15]line Безнал.: 0.00 [16:19:15]line Место: АЗС № 78 "Партнер Нефть" [16:19:15]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [16:19:15]line СНО: Общий режим [16:19:15]line Чек 179 20.10.2024 16:19 [16:19:15]line Смена: 114 ФФД: 1.0 [16:19:15]line ЗНМ: 0300000137 [16:19:15]line РНМ: 0000000000186857 [16:19:15]line Версия ККМ: v1.0 [16:19:15]line ФМ: 0000000002094219 [16:19:15]line ФД: 30397 [16:19:15]line ФПД: 142381918184090 [16:19:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T161923&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30397&fm=142381918184090&tin=02508201610067®Number=0000000000186857&sum=200000 [16:19:15]OFD Sender: Processing packet 30397 [packets to send 10, broken 9] [16:19:15]ProducePacketName [16:19:15]name=ofd_packets/00030397 [16:19:15]OFD Sender: To server: pG, [16:19:15]CommunicateWithHost lk.salyk.kg:30040 [16:19:15]ConnectInit lk.salyk.kg [16:19:15]written 0, free lines is 4095 [16:19:15]Connected sock=10 [16: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 15 01 00 00 85 E8 0D 01 23 44 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 B3 00 00 00 F4 03 04 00 8B 2D 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 81 7E DF A7 E2 9A 58 E9 23 F6 46 F2 B2 22 [16: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 49 E0 47 00 46 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 BD 76 00 00 F4 03 04 00 0F D8 14 67 B6 04 01 00 00 9F 89 07 EE 4E C5 20 55 [16:19:15]CommunicateWithHost err = 0 [16:19:15]CheckOFDResponse [16:19:15]1017 (14) - 77093643461234 [16:19:15]1041 (16) - 0000000002094219 [16:19:15]1040 (4) - 30397 [16:19:15]1012 (4) - 20.10.2024 10:14 [16:19:15]1206 (1) - 0 [16:19:15]OFD Sender: Remove packet 30397 [16:19:15]ProducePacketName [16:19:15]name=ofd_packets/00030397 [16:19:15]NVStorageDeleteData [16:19:16]Write to MH i2c: 01 00 00 FA 95 8F [16:19:16]Write i2c OK [16:19:16]MH_I2C_Read... [16:19:16]Read from MH i2c: 01 [16:19:16]MH_I2C_Read... [16:19:16]Read from MH i2c: 01 07 00 [16:19:16]MH_I2C_Read... [16:19:16]Read from MH i2c: 01 07 00 FA 95 00 00 00 00 00 FB 0C 9D [16:19:16]RasterBufferAndPrint [16:19:16]line [16:19:16]line [16:19:16]line [16:19:16]line [16:19:16]line [16:19:16]written 0, free lines is 3329 [16:19:16]MH_Cut [16:19:16]Write to MH i2c: D1 01 00 01 96 01 69 [16:19:16]Write i2c OK [16:19:16]MH_I2C_Read... [16:19:16]Read from MH i2c: D1 [16:19:16]MH_I2C_Read... [16:19:16]Read from MH i2c: D1 01 00 [16:19:16]MH_I2C_Read... [16:19:16]Read from MH i2c: D1 01 00 01 96 00 68 [16:19:16]Write to MH i2c: 01 00 00 02 96 98 [16:19:16]Write i2c OK [16:19:16]MH_I2C_Read... [16:19:16]OFD Sender: No OFD packet to send [16:19:16]*** Cut start [16:19:16]*** Partial cut [16:19:16]*** CUTSNS_PIN = 1 [16:19:16]*** CUTSNS_PIN = 0 [16:19:17]*** Brake cut motor [16:19:17]Read from MH i2c: 01 [16:19:17]MH_I2C_Read... [16:19:17]*** Stop cut motor [16:19:17]*** Cut end [16:19:17]Read from MH i2c: 01 07 00 [16:19:17]MH_I2C_Read... [16:19:17]Read from MH i2c: 01 07 00 02 96 00 00 00 00 00 FF 0F AD [16:19:17]process_action close_receipt done [16:19:17]requested_data is exist [16:19:17]produce_requested_data [16:19:17]requested_item fm.sn is exist - process it [16:19:17]wFMCommunicate request_size=4 [16:19:17]MH_SAM_APDU [16:19:17]CAPDU: 80 11 00 00 [16:19:17]Write to MH i2c: E2 08 00 03 96 80 11 00 00 00 00 00 00 13 [16:19:17]Write i2c OK [16:19:17]MH_I2C_Read... [16:19:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:19:17]Read from MH i2c: E2 [16:19:17]MH_I2C_Read... [16:19:17]Read from MH i2c: E2 17 00 [16:19:17]MH_I2C_Read... [16:19:17]Read from MH i2c: E2 17 00 03 96 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 61 [16: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 [16:19:17]wFMCommunicate OK [16:19:17]requested_item fd.num is exist - process it [16:19:17]SAM_PROTO_GetFieldsCounters [16:19:17]wFMCommunicate request_size=4 [16:19:17]MH_SAM_APDU [16:19:17]CAPDU: 80 13 00 00 [16:19:17]Write to MH i2c: E2 08 00 04 96 80 13 00 00 00 00 00 00 16 [16:19:17]Write i2c OK [16:19:17]MH_I2C_Read... [16:19:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:19:17]Read from MH i2c: E2 [16:19:17]MH_I2C_Read... [16:19:17]Read from MH i2c: E2 62 00 [16:19:17]MH_I2C_Read... [16:19:17]Read from MH i2c: E2 62 00 04 96 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 FA [16: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 BD 76 00 00 0E 04 04 00 72 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 [16:19:17]wFMCommunicate OK [16:19:17]SAM_PROTO_GetFieldsCounters done [16:19:17]requested_item shift.num is exist - process it [16:19:17]requested_item shift.opened is exist - process it [16:19:17]req_shift_opened [16:19:17]FM_GetShiftState [16:19:17]SAM_PROTO_GetShiftState [16:19:17]wFMCommunicate request_size=4 [16:19:17]MH_SAM_APDU [16:19:17]CAPDU: 80 13 01 00 [16:19:17]Write to MH i2c: E2 08 00 05 96 80 13 01 00 00 00 00 00 18 [16:19:17]Write i2c OK [16:19:17]MH_I2C_Read... [16:19:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:19:17]Read from MH i2c: E2 [16:19:17]MH_I2C_Read... [16:19:17]Read from MH i2c: E2 0E 00 [16:19:17]MH_I2C_Read... [16:19:17]Read from MH i2c: E2 0E 00 05 96 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 FE [16:19:17]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [16:19:17]wFMCommunicate OK [16:19:17]SAM_PROTO_GetShiftState done [16:19:17]FM_GetShiftState done [16:19:17]req_shift_opened done [16:19:17]requested_item shift.open_date is exist - process it [16:19:17]req_shift_open_date [16:19:17]req_shift_open_date done [16:19:17]produce_requested_data done [16:19:17]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30397,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [16:19:17]process_action_free close_receipt [16:19:17]json_value_free [16:19:17]json_value_free done [16:19:17]process_json_proto returns [16:19:17]Send response to host [16:19:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30397,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [16:19:17]free response buf [16:19:17]execute_script done [16:19:17]execute_script returns [16:19:17]free content buf [16:19:17]Sock 9.Close socket [16:19:17]Sock 9.Thread stoped [16:19:21]OFD Sender: No OFD packet to send [16:19:26]OFD Sender: No OFD packet to send [16:19:31]OFD Sender: No OFD packet to send [16:19:36]OFD Sender: No OFD packet to send [16:19:37]accept exits with 7 [16:19:37]New connection [16:19:37]New thread 3067514212 created [16:19:37]Thread 3067370852 joined [16:19:37]Waiting for new connection... [16:19:37] Sock 7.Parse request [16:19:37]Sock 7.Check first char [16:19:37]Sock 7.First char is OK [16:19:37]request: POST /json_proto HTTP/1.0 [16:19:37]Method: POST [16:19:37]URL: /json_proto [16:19:37]Method is POST - this is cgi request [16:19:37]url: /json_proto [16:19:37]query_string will be loaded in cgi processing [16:19:37]execute_cgi json_proto POST (null) [16:19:37]execute_cgi path=json_proto method=POST [16:19:37]POST find Content-Length [16:19:37]Host: 172.17.51.3:8080 [16:19:37]Content-Length: 677 [16:19:37]Content-Type: application/json [16:19:37] [16:19:37]POST finish read [16:19:37]Found Content-Length = 677 [16:19:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342793", "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.180, "sum" : 480.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 480.00, "total" : 480.00, "payments": [ { "type": 0, "sum" : 480.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:19:37]execute_script... [16:19: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)342793", "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.180, "sum" : 480.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 480.00, "total" : 480.00, "payments": [ { "type": 0, "sum" : 480.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:19:37]POST & json_proto [16:19:37]process_json_proto [16:19:37]json parsed OK: [16:19:37]protocol is kg_v1.0 [16:19:37]action value=close_receipt [16:19:37]process_action close_receipt [16:19:37]cmd_close_receipt [16:19:37]MH_GetDate [16:19:37]Write to MH i2c: F0 00 00 06 96 8B [16:19:37]Write i2c OK [16:19:37]MH_I2C_Read... [16:19:37]Read from MH i2c: F0 [16:19:37]MH_I2C_Read... [16:19:37]Read from MH i2c: F0 09 00 [16:19:37]MH_I2C_Read... [16:19:37]Read from MH i2c: F0 09 00 06 96 00 A3 2D 15 67 04 C1 95 66 A0 [16:19:37]GetLastDocTimeStamp 1729441163 [16:19:37]current date 1729441187 [16:19:37]FM_GetShiftState [16:19:37]SAM_PROTO_GetShiftState [16:19:37]wFMCommunicate request_size=4 [16:19:37]MH_SAM_APDU [16:19:37]CAPDU: 80 13 01 00 [16:19:37]Write to MH i2c: E2 08 00 07 96 80 13 01 00 00 00 00 00 1A [16:19:37]Write i2c OK [16:19:37]MH_I2C_Read... [16:19:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:19:37]Read from MH i2c: E2 [16:19:37]MH_I2C_Read... [16:19:37]Read from MH i2c: E2 0E 00 [16:19:37]MH_I2C_Read... [16:19:37]Read from MH i2c: E2 0E 00 07 96 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 00 [16:19:37]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [16:19:37]wFMCommunicate OK [16:19:37]SAM_PROTO_GetShiftState done [16:19:37]FM_GetShiftState done [16:19:37]opened in 1729384718 [16:19:37]opened+sec_in_day 1729471118 [16:19:37]quantity*price = 48034 [16:19:37]sum+1 = 48035 [16:19:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.34 ИТОГО: 480.00 Внесено: 480.00 СДАЧА: 0.00 НСП 1% : 4.25 НДС 12% : 51.01 Наличными: 480.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 180 20.10.2024 16:19 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30398 ФПД: 188150119674646 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T161947&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30398&fm=188150119674646&tin=02508201610067®Number=0000000000186857&sum=48000 [16:19:38]StoreToDocumentArchive [16:19:38]shift 114 fd 30398 [16:19:38]save to /storage/0114/doc_00030398 [16:19:38]save last doc name /storage/0114/doc_00030398 to /storage/kkm_last_doc_name [16:19:38]save OK [16:19:38]Clear old archive folders... [16:19:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:19:38]tlvbuf is 00CDFD50 [16:19:38]SAM_PROTO_ClearQueue [16:19:38]wFMCommunicate request_size=4 [16:19:38]MH_SAM_APDU [16:19:38]CAPDU: 80 09 00 00 [16:19:38]Write to MH i2c: E2 08 00 14 96 80 09 00 00 00 00 00 00 1C [16:19:38]Write i2c OK [16:19:38]MH_I2C_Read... [16:19:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:19:38]Read from MH i2c: E2 [16:19:38]MH_I2C_Read... [16:19:38]Read from MH i2c: E2 03 00 [16:19:38]MH_I2C_Read... [16:19:38]Read from MH i2c: E2 03 00 14 96 00 90 00 1E [16:19:38]RAPDU: 90 00 [16:19:38]wFMCommunicate OK [16:19:38]SAM_PROTO_ClearQueue done [16:19:38]KKMCreateOFDPacket [16:19:38]OFDProtocolAddRootSTLVToBuf [16:19:38]FM_MakeSignedData [16:19:38]FM_MakeSignedData [16:19:38]SAM_PROTO_SignData [16:19:38]wFMCommunicate request_size=4 [16:19:38]MH_SAM_APDU [16:19:38]CAPDU: 80 0D 01 02 [16:19:38]Write to MH i2c: E2 08 00 15 96 80 0D 01 02 00 00 00 00 24 [16:19:38]Write i2c OK [16:19:38]MH_I2C_Read... [16:19:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:19:38]Read from MH i2c: E2 [16:19:38]MH_I2C_Read... [16:19:38]Read from MH i2c: E2 03 00 [16:19:38]MH_I2C_Read... [16:19:38]Read from MH i2c: E2 03 00 15 96 00 90 00 1F [16:19:38]RAPDU: 90 00 [16:19:38]wFMCommunicate OK [16:19:38]wFMCommunicate request_size=255 [16:19:38]MH_SAM_APDU [16:19: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 0C 1C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A2 BB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 BB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A9 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 ED 13 00 00 00 00 07 04 06 00 80 BB 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 A3 2D 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 AB [16:19:38]Write to MH i2c: E2 02 01 16 96 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 0C 1C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A2 BB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 BB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A9 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 ED 13 00 00 00 00 07 04 06 00 80 BB 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 A3 2D 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 AB 00 00 62 [16:19:38]Write i2c OK [16:19:38]MH_I2C_Read... [16:19:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:19:38]Read from MH i2c: E2 [16:19:38]MH_I2C_Read... [16:19:38]Read from MH i2c: E2 03 00 [16:19:38]MH_I2C_Read... [16:19:38]Read from MH i2c: E2 03 00 16 96 00 90 00 20 [16:19:38]RAPDU: 90 00 [16:19:38]wFMCommunicate OK [16:19:38]wFMCommunicate request_size=10 [16:19:38]MH_SAM_APDU [16:19:38]CAPDU: 80 0D 02 02 05 1F 1D 0C 33 16 [16:19:38]Write to MH i2c: E2 0D 00 17 96 80 0D 02 02 05 00 1F 1D 0C 33 16 00 00 C2 [16:19:38]Write i2c OK [16:19:38]MH_I2C_Read... [16:19:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:19:38]Read from MH i2c: E2 [16:19:38]MH_I2C_Read... [16:19:38]Read from MH i2c: E2 03 00 [16:19:38]MH_I2C_Read... [16:19:38]Read from MH i2c: E2 03 00 17 96 00 90 00 21 [16:19:38]RAPDU: 90 00 [16:19:38]wFMCommunicate OK [16:19:38]wFMCommunicate request_size=4 [16:19:38]MH_SAM_APDU [16:19:38]CAPDU: 80 0D 03 02 [16:19:38]Write to MH i2c: E2 08 00 18 96 80 0D 03 02 00 00 00 00 29 [16:19:38]Write i2c OK [16:19:38]MH_I2C_Read... [16:19:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:19:38]Read from MH i2c: E2 [16:19:38]MH_I2C_Read... [16:19:38]Read from MH i2c: E2 0B 00 [16:19:38]MH_I2C_Read... [16:19:38]Read from MH i2c: E2 0B 00 18 96 00 E5 80 D0 5D 7E 57 96 F5 90 00 1C [16:19:38]RAPDU: E5 80 D0 5D 7E 57 96 F5 90 00 [16:19:38]wFMCommunicate OK [16:19:38]SAM_PROTO_SignData done [16:19:38]FM_MakeSignedData done [16:19:38]CreateOFDProtocolMessage [16:19:38]wFMCommunicate request_size=4 [16:19:38]MH_SAM_APDU [16:19:38]CAPDU: 80 11 00 00 [16:19:38]Write to MH i2c: E2 08 00 19 96 80 11 00 00 00 00 00 00 29 [16:19:38]Write i2c OK [16:19:38]MH_I2C_Read... [16:19:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:19:38]Read from MH i2c: E2 [16:19:38]MH_I2C_Read... [16:19:38]Read from MH i2c: E2 17 00 [16:19:38]MH_I2C_Read... [16:19:38]Read from MH i2c: E2 17 00 19 96 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 77 [16:19:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [16:19:38]wFMCommunicate OK [16:19:38]CreateOFDProtocolMessage done [16:19:38]OFDSenderStorePacket 30398 [16:19:38]StoreOFDPacket docnum=30398 [16:19: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 66 EB 07 01 8B AD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 0C 1C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A2 BB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 BB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A9 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 ED 13 00 00 00 00 07 04 06 00 80 BB 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 A3 2D 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 AB 1F 1D 0C 33 16 E5 80 D0 5D 7E 57 96 F5 [16:19:38]CheckFolder [16:19:38]dirname=/storage/ofd_packets [16:19:38]CheckFolder done [16:19:38]ProducePacketName [16:19:38]name=ofd_packets/00030398 [16:19:38]NVStorageSaveData ofd_packets/00030398 [16:19:38]File name is /storage/ofd_packets/00030398 [16:19:38]Write 301 bytes [16:19:38]NVStorageSaveData done [16:19:38]OFDSenderStorePacket done [16:19:38]KKMCreateOFDPacket done [16:19:38]NVStorageSaveData kkm_last_timestamp [16:19:38]File name is /storage/kkm_last_timestamp [16:19:38]Write 4 bytes [16:19:38]NVStorageSaveData done [16:19:38]ExternCall_PrintAddStr [16:19:38]wPrintStart [16:19:38]Write to MH i2c: 01 00 00 1A 96 B0 [16:19:38]Write i2c OK [16:19:38]MH_I2C_Read... [16:19:38]Read from MH i2c: 01 [16:19:38]MH_I2C_Read... [16:19:38]Read from MH i2c: 01 07 00 [16:19:38]MH_I2C_Read... [16:19:38]Read from MH i2c: 01 07 00 1A 96 00 00 00 00 00 FF 0F C5 [16:19:38]RasterBufferAndPrint [16:19:38]line Счет N : (1)342793 [16:19:38]line ИНН: 02508201610067 [16:19:38]line Контрольно-Кассовый Чек [16:19:38]line ПРОДАЖА [16:19:38]line ТРК (МРК, ГНК) : 43 [16:19:38]line Товар: 2710124130 [16:19:38]line Аи-92-К-2 [16:19:38]line 7.180 * 66.90 [16:19:38]line = 480.34 [16:19:38]line НДС 12% НСП 1% [16:19:38]line > о реализуемом товаре [16:19:38]line ОКРУГЛЕНИЕ: -0.34 [16:19:38]line ИТОГО: 480.00 [16:19:38]line Внесено: 480.00 [16:19:38]line СДАЧА: 0.00 [16:19:38]line НСП 1% : 4.25 [16:19:38]line НДС 12% : 51.01 [16:19:38]line Наличными: 480.00 [16:19:38]line Безнал.: 0.00 [16:19:38]line Место: АЗС № 78 "Партнер Нефть" [16:19:38]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [16:19:38]line СНО: Общий режим [16:19:38]line Чек 180 20.10.2024 16:19 [16:19:38]line Смена: 114 ФФД: 1.0 [16:19:38]line ЗНМ: 0300000137 [16:19:38]line РНМ: 0000000000186857 [16:19:38]line Версия ККМ: v1.0 [16:19:38]line ФМ: 0000000002094219 [16:19:38]line ФД: 30398 [16:19:38]line ФПД: 188150119674646 [16:19:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T161947&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30398&fm=188150119674646&tin=02508201610067®Number=0000000000186857&sum=48000 [16:19:39]OFD Sender: Processing packet 30398 [packets to send 10, broken 9] [16:19:39]ProducePacketName [16:19:39]name=ofd_packets/00030398 [16:19:39]OFD Sender: To server: pG, [16:19:39]CommunicateWithHost lk.salyk.kg:30040 [16:19:39]ConnectInit lk.salyk.kg [16:19:39]written 0, free lines is 4095 [16:19:39]Connected sock=10 [16:19: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 66 EB 07 01 8B AD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 0C 1C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A2 BB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 BB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A9 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 ED 13 00 00 00 00 07 04 06 00 80 BB 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 A3 2D 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 AB 1F 1D 0C 33 16 E5 80 D0 5D 7E 57 96 F5 [16:19: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 1B 63 47 00 D3 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 BE 76 00 00 F4 03 04 00 26 D8 14 67 B6 04 01 00 00 5E 37 FB 6D 78 7D 46 6E [16:19:39]CommunicateWithHost err = 0 [16:19:39]CheckOFDResponse [16:19:39]1017 (14) - 77093643461234 [16:19:39]1041 (16) - 0000000002094219 [16:19:39]1040 (4) - 30398 [16:19:39]1012 (4) - 20.10.2024 10:15 [16:19:39]1206 (1) - 0 [16:19:39]OFD Sender: Remove packet 30398 [16:19:39]ProducePacketName [16:19:39]name=ofd_packets/00030398 [16:19:39]NVStorageDeleteData [16:19:39]Write to MH i2c: 01 00 00 45 96 DB [16:19:39]Write i2c OK [16:19:39]MH_I2C_Read... [16:19:39]Read from MH i2c: 01 [16:19:39]MH_I2C_Read... [16:19:39]Read from MH i2c: 01 07 00 [16:19:39]MH_I2C_Read... [16:19:39]Read from MH i2c: 01 07 00 45 96 00 00 00 00 00 F1 0C DF [16:19:39]RasterBufferAndPrint [16:19:39]line [16:19:39]line [16:19:39]line [16:19:39]line [16:19:39]line [16:19:39]written 0, free lines is 3319 [16:19:39]MH_Cut [16:19:39]Write to MH i2c: D1 01 00 4C 96 01 B4 [16:19:39]Write i2c OK [16:19:39]MH_I2C_Read... [16:19:39]Read from MH i2c: D1 [16:19:39]MH_I2C_Read... [16:19:39]Read from MH i2c: D1 01 00 [16:19:39]MH_I2C_Read... [16:19:39]Read from MH i2c: D1 01 00 4C 96 00 B3 [16:19:39]Write to MH i2c: 01 00 00 4D 96 E3 [16:19:39]Write i2c OK [16:19:39]MH_I2C_Read... [16:19:39]OFD Sender: No OFD packet to send [16:19:40]*** Cut start [16:19:40]*** Partial cut [16:19:40]*** CUTSNS_PIN = 1 [16:19:40]*** CUTSNS_PIN = 0 [16:19:40]*** Brake cut motor [16:19:40]Read from MH i2c: 01 [16:19:40]MH_I2C_Read... [16:19:40]*** Stop cut motor [16:19:40]*** Cut end [16:19:40]Read from MH i2c: 01 07 00 [16:19:40]MH_I2C_Read... [16:19:40]Read from MH i2c: 01 07 00 4D 96 00 00 00 00 00 FF 0F F8 [16:19:40]process_action close_receipt done [16:19:40]requested_data is exist [16:19:40]produce_requested_data [16:19:40]requested_item fm.sn is exist - process it [16:19:40]wFMCommunicate request_size=4 [16:19:40]MH_SAM_APDU [16:19:40]CAPDU: 80 11 00 00 [16:19:40]Write to MH i2c: E2 08 00 4E 96 80 11 00 00 00 00 00 00 5E [16:19:40]Write i2c OK [16:19:40]MH_I2C_Read... [16:19:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:19:40]Read from MH i2c: E2 [16:19:40]MH_I2C_Read... [16:19:40]Read from MH i2c: E2 17 00 [16:19:40]MH_I2C_Read... [16:19:40]Read from MH i2c: E2 17 00 4E 96 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 AC [16:19:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [16:19:40]wFMCommunicate OK [16:19:40]requested_item fd.num is exist - process it [16:19:40]SAM_PROTO_GetFieldsCounters [16:19:40]wFMCommunicate request_size=4 [16:19:40]MH_SAM_APDU [16:19:40]CAPDU: 80 13 00 00 [16:19:40]Write to MH i2c: E2 08 00 4F 96 80 13 00 00 00 00 00 00 61 [16:19:40]Write i2c OK [16:19:40]MH_I2C_Read... [16:19:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:19:41]Read from MH i2c: E2 [16:19:41]MH_I2C_Read... [16:19:41]Read from MH i2c: E2 62 00 [16:19:41]MH_I2C_Read... [16:19:41]Read from MH i2c: E2 62 00 4F 96 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 49 [16:19: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 BE 76 00 00 0E 04 04 00 72 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 [16:19:41]wFMCommunicate OK [16:19:41]SAM_PROTO_GetFieldsCounters done [16:19:41]requested_item shift.num is exist - process it [16:19:41]requested_item shift.opened is exist - process it [16:19:41]req_shift_opened [16:19:41]FM_GetShiftState [16:19:41]SAM_PROTO_GetShiftState [16:19:41]wFMCommunicate request_size=4 [16:19:41]MH_SAM_APDU [16:19:41]CAPDU: 80 13 01 00 [16:19:41]Write to MH i2c: E2 08 00 50 96 80 13 01 00 00 00 00 00 63 [16:19:41]Write i2c OK [16:19:41]MH_I2C_Read... [16:19:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:19:41]Read from MH i2c: E2 [16:19:41]MH_I2C_Read... [16:19:41]Read from MH i2c: E2 0E 00 [16:19:41]MH_I2C_Read... [16:19:41]Read from MH i2c: E2 0E 00 50 96 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 49 [16:19:41]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [16:19:41]wFMCommunicate OK [16:19:41]SAM_PROTO_GetShiftState done [16:19:41]FM_GetShiftState done [16:19:41]req_shift_opened done [16:19:41]requested_item shift.open_date is exist - process it [16:19:41]req_shift_open_date [16:19:41]req_shift_open_date done [16:19:41]produce_requested_data done [16:19:41]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30398,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [16:19:41]process_action_free close_receipt [16:19:41]json_value_free [16:19:41]json_value_free done [16:19:41]process_json_proto returns [16:19:41]Send response to host [16:19:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30398,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [16:19:41]free response buf [16:19:41]execute_script done [16:19:41]execute_script returns [16:19:41]free content buf [16:19:41]Sock 7.Close socket [16:19:41]Sock 7.Thread stoped [16:19:44]OFD Sender: No OFD packet to send [16:19:49]OFD Sender: No OFD packet to send [16:19:54]OFD Sender: No OFD packet to send [16:19:59]OFD Sender: No OFD packet to send [16:20:04]OFD Sender: No OFD packet to send [16:20:09]OFD Sender: No OFD packet to send [16:20:14]OFD Sender: No OFD packet to send [16:20:19]OFD Sender: No OFD packet to send [16:20:24]OFD Sender: No OFD packet to send [16:20:30]OFD Sender: No OFD packet to send [16:20:35]OFD Sender: No OFD packet to send [16:20:40]OFD Sender: No OFD packet to send [16:20:45]OFD Sender: No OFD packet to send [16:20:50]OFD Sender: No OFD packet to send [16:20:55]OFD Sender: No OFD packet to send [16:21:00]OFD Sender: No OFD packet to send [16:21:05]OFD Sender: No OFD packet to send [16:21:10]OFD Sender: No OFD packet to send [16:21:15]OFD Sender: No OFD packet to send [16:21:20]OFD Sender: No OFD packet to send [16:21:25]OFD Sender: No OFD packet to send [16:21:30]OFD Sender: No OFD packet to send [16:21:35]OFD Sender: No OFD packet to send [16:21:40]OFD Sender: No OFD packet to send [16:21:45]OFD Sender: No OFD packet to send [16:21:50]OFD Sender: No OFD packet to send [16:21:55]OFD Sender: No OFD packet to send [16:22:00]OFD Sender: No OFD packet to send [16:22:05]OFD Sender: No OFD packet to send [16:22:10]OFD Sender: No OFD packet to send [16:22:15]OFD Sender: No OFD packet to send [16:22:20]OFD Sender: No OFD packet to send [16:22:25]OFD Sender: No OFD packet to send [16:22:30]OFD Sender: No OFD packet to send [16:22:35]OFD Sender: No OFD packet to send [16:22:40]OFD Sender: No OFD packet to send [16:22:45]OFD Sender: No OFD packet to send [16:22:50]OFD Sender: No OFD packet to send [16:22:55]OFD Sender: No OFD packet to send [16:23:00]OFD Sender: No OFD packet to send [16:23:05]OFD Sender: No OFD packet to send [16:23:10]OFD Sender: No OFD packet to send [16:23:15]OFD Sender: No OFD packet to send [16:23:20]OFD Sender: No OFD packet to send [16:23:25]OFD Sender: No OFD packet to send [16:23:30]OFD Sender: No OFD packet to send [16:23:35]OFD Sender: No OFD packet to send [16:23:40]OFD Sender: No OFD packet to send [16:23:45]OFD Sender: No OFD packet to send [16:23:50]OFD Sender: No OFD packet to send [16:23:55]OFD Sender: No OFD packet to send [16:24:00]OFD Sender: No OFD packet to send [16:24:05]OFD Sender: No OFD packet to send [16:24:10]OFD Sender: No OFD packet to send [16:24:15]OFD Sender: No OFD packet to send [16:24:20]OFD Sender: No OFD packet to send [16:24:25]OFD Sender: No OFD packet to send [16:24:30]OFD Sender: No OFD packet to send [16:24:35]OFD Sender: No OFD packet to send [16:24:40]OFD Sender: No OFD packet to send [16:24:45]OFD Sender: No OFD packet to send [16:24:50]OFD Sender: No OFD packet to send [16:24:55]OFD Sender: No OFD packet to send [16:25:00]OFD Sender: No OFD packet to send [16:25:05]OFD Sender: No OFD packet to send [16:25:10]OFD Sender: No OFD packet to send [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:45]OFD Sender: No OFD packet to send [16:26:50]OFD Sender: No OFD packet to send [16:26:55]OFD Sender: No OFD packet to send [16:27:00]OFD Sender: No OFD packet to send [16:27:05]OFD Sender: No OFD packet to send [16:27:10]OFD Sender: No OFD packet to send [16:27:15]OFD Sender: No OFD packet to send [16:27:20]OFD Sender: No OFD packet to send [16:27:25]OFD Sender: No OFD packet to send [16:27:30]OFD Sender: No OFD packet to send [16:27:35]OFD Sender: No OFD packet to send [16:27:40]OFD Sender: No OFD packet to send [16:27:45]OFD Sender: No OFD packet to send [16:27:50]OFD Sender: No OFD packet to send [16:27:55]OFD Sender: No OFD packet to send [16:28:00]OFD Sender: No OFD packet to send [16:28:05]OFD Sender: No OFD packet to send [16:28:10]OFD Sender: No OFD packet to send [16:28:15]OFD Sender: No OFD packet to send [16:28:20]OFD Sender: No OFD packet to send [16:28:25]OFD Sender: No OFD packet to send [16:28:30]OFD Sender: No OFD packet to send [16:28:35]OFD Sender: No OFD packet to send [16:28:40]OFD Sender: No OFD packet to send [16:28:45]OFD Sender: No OFD packet to send [16:28:50]OFD Sender: No OFD packet to send [16:28:55]OFD Sender: No OFD packet to send [16:29:00]OFD Sender: No OFD packet to send [16:29:05]OFD Sender: No OFD packet to send [16:29:10]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:35]OFD Sender: No OFD packet to send [16:33:40]OFD Sender: No OFD packet to send [16:33:45]OFD Sender: No OFD packet to send [16:33:50]OFD Sender: No OFD packet to send [16:33:55]OFD Sender: No OFD packet to send [16:34:00]OFD Sender: No OFD packet to send [16:34:05]OFD Sender: No OFD packet to send [16:34:10]OFD Sender: No OFD packet to send [16:34:15]OFD Sender: No OFD packet to send [16:34:20]OFD Sender: No OFD packet to send [16:34:23]accept exits with 9 [16:34:23]New connection [16:34:23]New thread 3067370852 created [16:34:23]Thread 3067514212 joined [16:34:23]Waiting for new connection... [16:34:23] Sock 9.Parse request [16:34:23]Sock 9.Check first char [16:34:23]Sock 9.First char is OK [16:34:23]request: POST /json_proto HTTP/1.0 [16:34:23]Method: POST [16:34:23]URL: /json_proto [16:34:23]Method is POST - this is cgi request [16:34:23]url: /json_proto [16:34:23]query_string will be loaded in cgi processing [16:34:23]execute_cgi json_proto POST (null) [16:34:23]execute_cgi path=json_proto method=POST [16:34:23]POST find Content-Length [16:34:23]Host: 172.17.51.3:8080 [16:34:23]Content-Length: 677 [16:34:23]Content-Type: application/json [16:34:23] [16:34:23]POST finish read [16:34:23]Found Content-Length = 677 [16:34:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342794", "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:34:23]execute_script... [16:34:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342794", "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:34:23]POST & json_proto [16:34:23]process_json_proto [16:34:23]json parsed OK: [16:34:23]protocol is kg_v1.0 [16:34:23]action value=close_receipt [16:34:23]process_action close_receipt [16:34:23]cmd_close_receipt [16:34:23]MH_GetDate [16:34:23]Write to MH i2c: F0 00 00 51 96 D6 [16:34:23]Write i2c OK [16:34:23]MH_I2C_Read... [16:34:23]Read from MH i2c: F0 [16:34:23]MH_I2C_Read... [16:34:23]Read from MH i2c: F0 09 00 [16:34:23]MH_I2C_Read... [16:34:23]Read from MH i2c: F0 09 00 51 96 00 19 31 15 67 04 C1 95 66 65 [16:34:23]GetLastDocTimeStamp 1729441187 [16:34:23]current date 1729442073 [16:34:23]FM_GetShiftState [16:34:23]SAM_PROTO_GetShiftState [16:34:23]wFMCommunicate request_size=4 [16:34:23]MH_SAM_APDU [16:34:23]CAPDU: 80 13 01 00 [16:34:23]Write to MH i2c: E2 08 00 52 96 80 13 01 00 00 00 00 00 65 [16:34:23]Write i2c OK [16:34:23]MH_I2C_Read... [16:34:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:34:23]Read from MH i2c: E2 [16:34:23]MH_I2C_Read... [16:34:23]Read from MH i2c: E2 0E 00 [16:34:23]MH_I2C_Read... [16:34:23]Read from MH i2c: E2 0E 00 52 96 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 4B [16:34:23]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [16:34:23]wFMCommunicate OK [16:34:23]SAM_PROTO_GetShiftState done [16:34:23]FM_GetShiftState done [16:34:23]opened in 1729384718 [16:34:23]opened+sec_in_day 1729471118 [16:34:23]quantity*price = 50041 [16:34:23]sum+1 = 50042 [16:34:23]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 СНО: Общий режим Чек 181 20.10.2024 16:34 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30399 ФПД: 167145059667328 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T163433&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30399&fm=167145059667328&tin=02508201610067®Number=0000000000186857&sum=50000 [16:34:24]StoreToDocumentArchive [16:34:24]shift 114 fd 30399 [16:34:24]save to /storage/0114/doc_00030399 [16:34:24]save last doc name /storage/0114/doc_00030399 to /storage/kkm_last_doc_name [16:34:24]save OK [16:34:24]Clear old archive folders... [16:34:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:34:24]tlvbuf is 00DF6210 [16:34:24]SAM_PROTO_ClearQueue [16:34:24]wFMCommunicate request_size=4 [16:34:24]MH_SAM_APDU [16:34:24]CAPDU: 80 09 00 00 [16:34:24]Write to MH i2c: E2 08 00 5F 96 80 09 00 00 00 00 00 00 67 [16:34:24]Write i2c OK [16:34:24]MH_I2C_Read... [16:34:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:34:24]Read from MH i2c: E2 [16:34:24]MH_I2C_Read... [16:34:24]Read from MH i2c: E2 03 00 [16:34:24]MH_I2C_Read... [16:34:24]Read from MH i2c: E2 03 00 5F 96 00 90 00 69 [16:34:24]RAPDU: 90 00 [16:34:24]wFMCommunicate OK [16:34:24]SAM_PROTO_ClearQueue done [16:34:24]KKMCreateOFDPacket [16:34:24]OFDProtocolAddRootSTLVToBuf [16:34:24]FM_MakeSignedData [16:34:24]FM_MakeSignedData [16:34:24]SAM_PROTO_SignData [16:34:24]wFMCommunicate request_size=4 [16:34:24]MH_SAM_APDU [16:34:24]CAPDU: 80 0D 01 02 [16:34:24]Write to MH i2c: E2 08 00 60 96 80 0D 01 02 00 00 00 00 6F [16:34:24]Write i2c OK [16:34:24]MH_I2C_Read... [16:34:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:34:24]Read from MH i2c: E2 [16:34:24]MH_I2C_Read... [16:34:24]Read from MH i2c: E2 03 00 [16:34:24]MH_I2C_Read... [16:34:24]Read from MH i2c: E2 03 00 60 96 00 90 00 6A [16:34:24]RAPDU: 90 00 [16:34:24]wFMCommunicate OK [16:34:24]wFMCommunicate request_size=255 [16:34:24]MH_SAM_APDU [16:34: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 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 B5 00 00 00 F4 03 04 00 19 31 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 98 [16:34:24]Write to MH i2c: E2 02 01 61 96 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 B5 00 00 00 F4 03 04 00 19 31 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 98 00 00 BA [16:34:24]Write i2c OK [16:34:24]MH_I2C_Read... [16:34:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:34:25]Read from MH i2c: E2 [16:34:25]MH_I2C_Read... [16:34:25]Read from MH i2c: E2 03 00 [16:34:25]MH_I2C_Read... [16:34:25]Read from MH i2c: E2 03 00 61 96 00 90 00 6B [16:34:25]RAPDU: 90 00 [16:34:25]wFMCommunicate OK [16:34:25]wFMCommunicate request_size=10 [16:34:25]MH_SAM_APDU [16:34:25]CAPDU: 80 0D 02 02 05 04 7D E8 4D 80 [16:34:25]Write to MH i2c: E2 0D 00 62 96 80 0D 02 02 05 00 04 7D E8 4D 80 00 00 B2 [16:34:25]Write i2c OK [16:34:25]MH_I2C_Read... [16:34:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:34:25]Read from MH i2c: E2 [16:34:25]MH_I2C_Read... [16:34:25]Read from MH i2c: E2 03 00 [16:34:25]MH_I2C_Read... [16:34:25]Read from MH i2c: E2 03 00 62 96 00 90 00 6C [16:34:25]RAPDU: 90 00 [16:34:25]wFMCommunicate OK [16:34:25]wFMCommunicate request_size=4 [16:34:25]MH_SAM_APDU [16:34:25]CAPDU: 80 0D 03 02 [16:34:25]Write to MH i2c: E2 08 00 63 96 80 0D 03 02 00 00 00 00 74 [16:34:25]Write i2c OK [16:34:25]MH_I2C_Read... [16:34:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:34:25]Read from MH i2c: E2 [16:34:25]MH_I2C_Read... [16:34:25]Read from MH i2c: E2 0B 00 [16:34:25]MH_I2C_Read... [16:34:25]Read from MH i2c: E2 0B 00 63 96 00 42 CB FC F8 7B ED CC 9B 90 00 45 [16:34:25]RAPDU: 42 CB FC F8 7B ED CC 9B 90 00 [16:34:25]wFMCommunicate OK [16:34:25]SAM_PROTO_SignData done [16:34:25]FM_MakeSignedData done [16:34:25]CreateOFDProtocolMessage [16:34:25]wFMCommunicate request_size=4 [16:34:25]MH_SAM_APDU [16:34:25]CAPDU: 80 11 00 00 [16:34:25]Write to MH i2c: E2 08 00 64 96 80 11 00 00 00 00 00 00 74 [16:34:25]Write i2c OK [16:34:25]MH_I2C_Read... [16:34:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:34:25]Read from MH i2c: E2 [16:34:25]MH_I2C_Read... [16:34:25]Read from MH i2c: E2 17 00 [16:34:25]MH_I2C_Read... [16:34:25]Read from MH i2c: E2 17 00 64 96 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 C2 [16:34: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:34:25]wFMCommunicate OK [16:34:25]CreateOFDProtocolMessage done [16:34:25]OFDSenderStorePacket 30399 [16:34:25]StoreOFDPacket docnum=30399 [16:34: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 7B F5 07 01 EE 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 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 B5 00 00 00 F4 03 04 00 19 31 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 98 04 7D E8 4D 80 42 CB FC F8 7B ED CC 9B [16:34:25]CheckFolder [16:34:25]dirname=/storage/ofd_packets [16:34:25]CheckFolder done [16:34:25]ProducePacketName [16:34:25]name=ofd_packets/00030399 [16:34:25]NVStorageSaveData ofd_packets/00030399 [16:34:25]File name is /storage/ofd_packets/00030399 [16:34:25]Write 301 bytes [16:34:25]NVStorageSaveData done [16:34:25]OFDSenderStorePacket done [16:34:25]KKMCreateOFDPacket done [16:34:25]NVStorageSaveData kkm_last_timestamp [16:34:25]File name is /storage/kkm_last_timestamp [16:34:25]Write 4 bytes [16:34:25]NVStorageSaveData done [16:34:25]ExternCall_PrintAddStr [16:34:25]wPrintStart [16:34:25]Write to MH i2c: 01 00 00 65 96 FB [16:34:25]Write i2c OK [16:34:25]MH_I2C_Read... [16:34:25]Read from MH i2c: 01 [16:34:25]MH_I2C_Read... [16:34:25]Read from MH i2c: 01 07 00 [16:34:25]MH_I2C_Read... [16:34:25]Read from MH i2c: 01 07 00 65 96 00 00 00 00 00 FF 0F 10 [16:34:25]RasterBufferAndPrint [16:34:25]line Счет N : (1)342794 [16:34:25]line ИНН: 02508201610067 [16:34:25]line Контрольно-Кассовый Чек [16:34:25]line ПРОДАЖА [16:34:25]line ТРК (МРК, ГНК) : 53 [16:34:25]line Товар: 2710124130 [16:34:25]line Аи-92-К-2 [16:34:25]line 7.480 * 66.90 [16:34:25]line = 500.41 [16:34:25]line НДС 12% НСП 1% [16:34:25]line > о реализуемом товаре [16:34:25]line ОКРУГЛЕНИЕ: -0.41 [16:34:25]line ИТОГО: 500.00 [16:34:25]line Внесено: 500.00 [16:34:25]line СДАЧА: 0.00 [16:34:25]line НСП 1% : 4.43 [16:34:25]line НДС 12% : 53.14 [16:34:25]line Наличными: 500.00 [16:34:25]line Безнал.: 0.00 [16:34:25]line Место: АЗС № 78 "Партнер Нефть" [16:34:25]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [16:34:25]line СНО: Общий режим [16:34:25]line Чек 181 20.10.2024 16:34 [16:34:25]line Смена: 114 ФФД: 1.0 [16:34:25]line ЗНМ: 0300000137 [16:34:25]line РНМ: 0000000000186857 [16:34:25]line Версия ККМ: v1.0 [16:34:25]line ФМ: 0000000002094219 [16:34:25]line ФД: 30399 [16:34:25]line ФПД: 167145059667328 [16:34:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T163433&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30399&fm=167145059667328&tin=02508201610067®Number=0000000000186857&sum=50000 [16:34:25]OFD Sender: Processing packet 30399 [packets to send 10, broken 9] [16:34:25]ProducePacketName [16:34:25]name=ofd_packets/00030399 [16:34:25]OFD Sender: To server: pG, [16:34:25]CommunicateWithHost lk.salyk.kg:30040 [16:34:25]ConnectInit lk.salyk.kg [16:34:25]written 0, free lines is 4095 [16:34:25]Connected sock=10 [16:34: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 7B F5 07 01 EE 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 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 B5 00 00 00 F4 03 04 00 19 31 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 98 04 7D E8 4D 80 42 CB FC F8 7B ED CC 9B [16:34: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 1D EB 47 00 CC 99 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 BF 76 00 00 F4 03 04 00 9D DB 14 67 B6 04 01 00 00 6B B6 E2 FB 17 30 94 05 [16:34:25]CommunicateWithHost err = 0 [16:34:25]CheckOFDResponse [16:34:25]1017 (14) - 77093643461234 [16:34:25]1041 (16) - 0000000002094219 [16:34:25]1040 (4) - 30399 [16:34:25]1012 (4) - 20.10.2024 10:29 [16:34:25]1206 (1) - 0 [16:34:25]OFD Sender: Remove packet 30399 [16:34:25]ProducePacketName [16:34:25]name=ofd_packets/00030399 [16:34:25]NVStorageDeleteData [16:34:25]Write to MH i2c: 01 00 00 90 96 26 [16:34:25]Write i2c OK [16:34:25]MH_I2C_Read... [16:34:25]Read from MH i2c: 01 [16:34:25]MH_I2C_Read... [16:34:25]Read from MH i2c: 01 07 00 [16:34:25]MH_I2C_Read... [16:34:25]Read from MH i2c: 01 07 00 90 96 00 00 00 00 00 F9 0C 32 [16:34:25]RasterBufferAndPrint [16:34:25]line [16:34:25]line [16:34:25]line [16:34:25]line [16:34:25]line [16:34:25]written 0, free lines is 3327 [16:34:26]MH_Cut [16:34:26]Write to MH i2c: D1 01 00 97 96 01 FF [16:34:26]Write i2c OK [16:34:26]MH_I2C_Read... [16:34:26]Read from MH i2c: D1 [16:34:26]MH_I2C_Read... [16:34:26]Read from MH i2c: D1 01 00 [16:34:26]MH_I2C_Read... [16:34:26]Read from MH i2c: D1 01 00 97 96 00 FE [16:34:26]Write to MH i2c: 01 00 00 98 96 2E [16:34:26]Write i2c OK [16:34:26]MH_I2C_Read... [16:34:26]OFD Sender: No OFD packet to send [16:34:26]*** Cut start [16:34:26]*** Partial cut [16:34:26]*** CUTSNS_PIN = 1 [16:34:26]*** CUTSNS_PIN = 0 [16:34:26]*** Brake cut motor [16:34:27]Read from MH i2c: 01 [16:34:27]MH_I2C_Read... [16:34:27]*** Stop cut motor [16:34:27]*** Cut end [16:34:27]Read from MH i2c: 01 07 00 [16:34:27]MH_I2C_Read... [16:34:27]Read from MH i2c: 01 07 00 98 96 00 00 00 00 00 FF 0F 43 [16:34:27]process_action close_receipt done [16:34:27]requested_data is exist [16:34:27]produce_requested_data [16:34:27]requested_item fm.sn is exist - process it [16:34:27]wFMCommunicate request_size=4 [16:34:27]MH_SAM_APDU [16:34:27]CAPDU: 80 11 00 00 [16:34:27]Write to MH i2c: E2 08 00 99 96 80 11 00 00 00 00 00 00 A9 [16:34:27]Write i2c OK [16:34:27]MH_I2C_Read... [16:34:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:34:27]Read from MH i2c: E2 [16:34:27]MH_I2C_Read... [16:34:27]Read from MH i2c: E2 17 00 [16:34:27]MH_I2C_Read... [16:34:27]Read from MH i2c: E2 17 00 99 96 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 F7 [16:34: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:34:27]wFMCommunicate OK [16:34:27]requested_item fd.num is exist - process it [16:34:27]SAM_PROTO_GetFieldsCounters [16:34:27]wFMCommunicate request_size=4 [16:34:27]MH_SAM_APDU [16:34:27]CAPDU: 80 13 00 00 [16:34:27]Write to MH i2c: E2 08 00 9A 96 80 13 00 00 00 00 00 00 AC [16:34:27]Write i2c OK [16:34:27]MH_I2C_Read... [16:34:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:34:27]Read from MH i2c: E2 [16:34:27]MH_I2C_Read... [16:34:27]Read from MH i2c: E2 62 00 [16:34:27]MH_I2C_Read... [16:34:27]Read from MH i2c: E2 62 00 9A 96 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 98 [16:34: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 BF 76 00 00 0E 04 04 00 72 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 [16:34:27]wFMCommunicate OK [16:34:27]SAM_PROTO_GetFieldsCounters done [16:34:27]requested_item shift.num is exist - process it [16:34:27]requested_item shift.opened is exist - process it [16:34:27]req_shift_opened [16:34:27]FM_GetShiftState [16:34:27]SAM_PROTO_GetShiftState [16:34:27]wFMCommunicate request_size=4 [16:34:27]MH_SAM_APDU [16:34:27]CAPDU: 80 13 01 00 [16:34:27]Write to MH i2c: E2 08 00 9B 96 80 13 01 00 00 00 00 00 AE [16:34:27]Write i2c OK [16:34:27]MH_I2C_Read... [16:34:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:34:27]Read from MH i2c: E2 [16:34:27]MH_I2C_Read... [16:34:27]Read from MH i2c: E2 0E 00 [16:34:27]MH_I2C_Read... [16:34:27]Read from MH i2c: E2 0E 00 9B 96 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 94 [16:34:27]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [16:34:27]wFMCommunicate OK [16:34:27]SAM_PROTO_GetShiftState done [16:34:27]FM_GetShiftState done [16:34:27]req_shift_opened done [16:34:27]requested_item shift.open_date is exist - process it [16:34:27]req_shift_open_date [16:34:27]req_shift_open_date done [16:34:27]produce_requested_data done [16:34:27]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30399,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [16:34:27]process_action_free close_receipt [16:34:27]json_value_free [16:34:27]json_value_free done [16:34:27]process_json_proto returns [16:34:27]Send response to host [16:34:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30399,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [16:34:27]free response buf [16:34:27]execute_script done [16:34:27]execute_script returns [16:34:27]free content buf [16:34:27]Sock 9.Close socket [16:34:27]Sock 9.Thread stoped [16:34:31]OFD Sender: No OFD packet to send [16:34:36]OFD Sender: No OFD packet to send [16:34:41]OFD Sender: No OFD packet to send [16:34:46]OFD Sender: No OFD packet to send [16:34:51]OFD Sender: No OFD packet to send [16:34:56]OFD Sender: No OFD packet to send [16:35:01]OFD Sender: No OFD packet to send [16:35:03]accept exits with 7 [16:35:03]New connection [16:35:03]New thread 3067514212 created [16:35:03]Thread 3067370852 joined [16:35:03]Waiting for new connection... [16:35:03] Sock 7.Parse request [16:35:03]Sock 7.Check first char [16:35:03]Sock 7.First char is OK [16:35:03]request: POST /json_proto HTTP/1.0 [16:35:03]Method: POST [16:35:03]URL: /json_proto [16:35:03]Method is POST - this is cgi request [16:35:03]url: /json_proto [16:35:03]query_string will be loaded in cgi processing [16:35:03]execute_cgi json_proto POST (null) [16:35:03]execute_cgi path=json_proto method=POST [16:35:03]POST find Content-Length [16:35:03]Host: 172.17.51.3:8080 [16:35:03]Content-Length: 677 [16:35:03]Content-Type: application/json [16:35:03] [16:35:03]POST finish read [16:35:03]Found Content-Length = 677 [16:35:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342795", "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" ] } } [16:35:03]execute_script... [16: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)342795", "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" ] } } [16:35:03]POST & json_proto [16:35:03]process_json_proto [16:35:03]json parsed OK: [16:35:03]protocol is kg_v1.0 [16:35:03]action value=close_receipt [16:35:03]process_action close_receipt [16:35:03]cmd_close_receipt [16:35:03]MH_GetDate [16:35:03]Write to MH i2c: F0 00 00 9C 96 21 [16:35:03]Write i2c OK [16:35:03]MH_I2C_Read... [16:35:03]Read from MH i2c: F0 [16:35:03]MH_I2C_Read... [16:35:03]Read from MH i2c: F0 09 00 [16:35:03]MH_I2C_Read... [16:35:03]Read from MH i2c: F0 09 00 9C 96 00 41 31 15 67 04 C1 95 66 D8 [16:35:03]GetLastDocTimeStamp 1729442073 [16:35:03]current date 1729442113 [16:35:03]FM_GetShiftState [16:35:03]SAM_PROTO_GetShiftState [16:35:03]wFMCommunicate request_size=4 [16:35:03]MH_SAM_APDU [16:35:03]CAPDU: 80 13 01 00 [16:35:03]Write to MH i2c: E2 08 00 9D 96 80 13 01 00 00 00 00 00 B0 [16:35:03]Write i2c OK [16:35:03]MH_I2C_Read... [16:35:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:35:03]Read from MH i2c: E2 [16:35:03]MH_I2C_Read... [16:35:03]Read from MH i2c: E2 0E 00 [16:35:03]MH_I2C_Read... [16:35:03]Read from MH i2c: E2 0E 00 9D 96 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 96 [16:35:03]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [16:35:03]wFMCommunicate OK [16:35:03]SAM_PROTO_GetShiftState done [16:35:03]FM_GetShiftState done [16:35:03]opened in 1729384718 [16:35:03]opened+sec_in_day 1729471118 [16:35:03]quantity*price = 40006 [16:35:03]sum+1 = 40007 [16:35: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 СНО: Общий режим Чек 182 20.10.2024 16:35 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30400 ФПД: 199657914972837 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T163513&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30400&fm=199657914972837&tin=02508201610067®Number=0000000000186857&sum=40000 [16:35:04]StoreToDocumentArchive [16:35:04]shift 114 fd 30400 [16:35:04]save to /storage/0114/doc_00030400 [16:35:04]save last doc name /storage/0114/doc_00030400 to /storage/kkm_last_doc_name [16:35:04]save OK [16:35:04]Clear old archive folders... [16:35:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:35:04]tlvbuf is 00BEBD90 [16:35:04]SAM_PROTO_ClearQueue [16:35:04]wFMCommunicate request_size=4 [16:35:04]MH_SAM_APDU [16:35:04]CAPDU: 80 09 00 00 [16:35:04]Write to MH i2c: E2 08 00 AA 96 80 09 00 00 00 00 00 00 B2 [16:35:04]Write i2c OK [16:35:04]MH_I2C_Read... [16:35:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:35:04]Read from MH i2c: E2 [16:35:04]MH_I2C_Read... [16:35:04]Read from MH i2c: E2 03 00 [16:35:04]MH_I2C_Read... [16:35:04]Read from MH i2c: E2 03 00 AA 96 00 90 00 B4 [16:35:04]RAPDU: 90 00 [16:35:04]wFMCommunicate OK [16:35:04]SAM_PROTO_ClearQueue done [16:35:04]KKMCreateOFDPacket [16:35:04]OFDProtocolAddRootSTLVToBuf [16:35:04]FM_MakeSignedData [16:35:04]FM_MakeSignedData [16:35:04]SAM_PROTO_SignData [16:35:04]wFMCommunicate request_size=4 [16:35:04]MH_SAM_APDU [16:35:04]CAPDU: 80 0D 01 02 [16:35:04]Write to MH i2c: E2 08 00 AB 96 80 0D 01 02 00 00 00 00 BA [16:35:04]Write i2c OK [16:35:04]MH_I2C_Read... [16:35:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:35:04]Read from MH i2c: E2 [16:35:04]MH_I2C_Read... [16:35:04]Read from MH i2c: E2 03 00 [16:35:04]MH_I2C_Read... [16:35:04]Read from MH i2c: E2 03 00 AB 96 00 90 00 B5 [16:35:04]RAPDU: 90 00 [16:35:04]wFMCommunicate OK [16:35:04]wFMCommunicate request_size=255 [16:35:04]MH_SAM_APDU [16: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 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 B6 00 00 00 F4 03 04 00 41 31 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 B5 [16:35:04]Write to MH i2c: E2 02 01 AC 96 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 B6 00 00 00 F4 03 04 00 41 31 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 B5 00 00 1B [16:35:04]Write i2c OK [16:35:04]MH_I2C_Read... [16:35:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:35:05]Read from MH i2c: E2 [16:35:05]MH_I2C_Read... [16:35:05]Read from MH i2c: E2 03 00 [16:35:05]MH_I2C_Read... [16:35:05]Read from MH i2c: E2 03 00 AC 96 00 90 00 B6 [16:35:05]RAPDU: 90 00 [16:35:05]wFMCommunicate OK [16:35:05]wFMCommunicate request_size=10 [16:35:05]MH_SAM_APDU [16:35:05]CAPDU: 80 0D 02 02 05 96 7B 19 3A A5 [16:35:05]Write to MH i2c: E2 0D 00 AD 96 80 0D 02 02 05 00 96 7B 19 3A A5 00 00 D0 [16:35:05]Write i2c OK [16:35:05]MH_I2C_Read... [16:35:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:35:05]Read from MH i2c: E2 [16:35:05]MH_I2C_Read... [16:35:05]Read from MH i2c: E2 03 00 [16:35:05]MH_I2C_Read... [16:35:05]Read from MH i2c: E2 03 00 AD 96 00 90 00 B7 [16:35:05]RAPDU: 90 00 [16:35:05]wFMCommunicate OK [16:35:05]wFMCommunicate request_size=4 [16:35:05]MH_SAM_APDU [16:35:05]CAPDU: 80 0D 03 02 [16:35:05]Write to MH i2c: E2 08 00 AE 96 80 0D 03 02 00 00 00 00 BF [16:35:05]Write i2c OK [16:35:05]MH_I2C_Read... [16:35:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:35:05]Read from MH i2c: E2 [16:35:05]MH_I2C_Read... [16:35:05]Read from MH i2c: E2 0B 00 [16:35:05]MH_I2C_Read... [16:35:05]Read from MH i2c: E2 0B 00 AE 96 00 55 9D 03 01 16 56 A8 1C 90 00 E6 [16:35:05]RAPDU: 55 9D 03 01 16 56 A8 1C 90 00 [16:35:05]wFMCommunicate OK [16:35:05]SAM_PROTO_SignData done [16:35:05]FM_MakeSignedData done [16:35:05]CreateOFDProtocolMessage [16:35:05]wFMCommunicate request_size=4 [16:35:05]MH_SAM_APDU [16:35:05]CAPDU: 80 11 00 00 [16:35:05]Write to MH i2c: E2 08 00 AF 96 80 11 00 00 00 00 00 00 BF [16:35:05]Write i2c OK [16:35:05]MH_I2C_Read... [16:35:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:35:05]Read from MH i2c: E2 [16:35:05]MH_I2C_Read... [16:35:05]Read from MH i2c: E2 17 00 [16:35:05]MH_I2C_Read... [16:35:05]Read from MH i2c: E2 17 00 AF 96 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 0D [16: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 [16:35:05]wFMCommunicate OK [16:35:05]CreateOFDProtocolMessage done [16:35:05]OFDSenderStorePacket 30400 [16:35:05]StoreOFDPacket docnum=30400 [16: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 6E 62 07 01 6B 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 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 B6 00 00 00 F4 03 04 00 41 31 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 B5 96 7B 19 3A A5 55 9D 03 01 16 56 A8 1C [16:35:05]CheckFolder [16:35:05]dirname=/storage/ofd_packets [16:35:05]CheckFolder done [16:35:05]ProducePacketName [16:35:05]name=ofd_packets/00030400 [16:35:05]NVStorageSaveData ofd_packets/00030400 [16:35:05]File name is /storage/ofd_packets/00030400 [16:35:05]Write 301 bytes [16:35:05]NVStorageSaveData done [16:35:05]OFDSenderStorePacket done [16:35:05]KKMCreateOFDPacket done [16:35:05]NVStorageSaveData kkm_last_timestamp [16:35:05]File name is /storage/kkm_last_timestamp [16:35:05]Write 4 bytes [16:35:05]NVStorageSaveData done [16:35:05]ExternCall_PrintAddStr [16:35:05]wPrintStart [16:35:05]Write to MH i2c: 01 00 00 B0 96 46 [16:35:05]Write i2c OK [16:35:05]MH_I2C_Read... [16:35:05]Read from MH i2c: 01 [16:35:05]MH_I2C_Read... [16:35:05]Read from MH i2c: 01 07 00 [16:35:05]MH_I2C_Read... [16:35:05]Read from MH i2c: 01 07 00 B0 96 00 00 00 00 00 FF 0F 5B [16:35:05]RasterBufferAndPrint [16:35:05]line Счет N : (1)342795 [16:35:05]line ИНН: 02508201610067 [16:35:05]line Контрольно-Кассовый Чек [16:35:05]line ПРОДАЖА [16:35:05]line ТРК (МРК, ГНК) : 63 [16:35:05]line Товар: 2710124130 [16:35:05]line Аи-92-К-2 [16:35:05]line 5.980 * 66.90 [16:35:05]line = 400.06 [16:35:05]line НДС 12% НСП 1% [16:35:05]line > о реализуемом товаре [16:35:05]line ОКРУГЛЕНИЕ: -0.06 [16:35:05]line ИТОГО: 400.00 [16:35:05]line Внесено: 400.00 [16:35:05]line СДАЧА: 0.00 [16:35:05]line НСП 1% : 3.54 [16:35:05]line НДС 12% : 42.48 [16:35:05]line Наличными: 400.00 [16:35:05]line Безнал.: 0.00 [16:35:05]line Место: АЗС № 78 "Партнер Нефть" [16:35:05]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [16:35:05]line СНО: Общий режим [16:35:05]line Чек 182 20.10.2024 16:35 [16:35:05]line Смена: 114 ФФД: 1.0 [16:35:05]line ЗНМ: 0300000137 [16:35:05]line РНМ: 0000000000186857 [16:35:05]line Версия ККМ: v1.0 [16:35:05]line ФМ: 0000000002094219 [16:35:05]line ФД: 30400 [16:35:05]line ФПД: 199657914972837 [16:35:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T163513&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30400&fm=199657914972837&tin=02508201610067®Number=0000000000186857&sum=40000 [16:35:05]written 0, free lines is 4095 [16:35:05]OFD Sender: Processing packet 30400 [packets to send 10, broken 9] [16:35:05]ProducePacketName [16:35:05]name=ofd_packets/00030400 [16:35:05]OFD Sender: To server: pG, [16:35:05]CommunicateWithHost lk.salyk.kg:30040 [16:35:05]ConnectInit lk.salyk.kg [16:35:05]Connected sock=10 [16: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 6E 62 07 01 6B 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 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 B6 00 00 00 F4 03 04 00 41 31 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 B5 96 7B 19 3A A5 55 9D 03 01 16 56 A8 1C [16: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 69 21 47 00 4A 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 C0 76 00 00 F4 03 04 00 C5 DB 14 67 B6 04 01 00 00 67 17 D7 C1 B1 E5 D1 65 [16:35:05]CommunicateWithHost err = 0 [16:35:05]CheckOFDResponse [16:35:05]1017 (14) - 77093643461234 [16:35:05]1041 (16) - 0000000002094219 [16:35:05]1040 (4) - 30400 [16:35:05]1012 (4) - 20.10.2024 10:30 [16:35:05]1206 (1) - 0 [16:35:05]OFD Sender: Remove packet 30400 [16:35:05]ProducePacketName [16:35:05]name=ofd_packets/00030400 [16:35:05]NVStorageDeleteData [16:35:05]Write to MH i2c: 01 00 00 DB 96 71 [16:35:05]Write i2c OK [16:35:05]MH_I2C_Read... [16:35:05]Read from MH i2c: 01 [16:35:05]MH_I2C_Read... [16:35:05]Read from MH i2c: 01 07 00 [16:35:05]MH_I2C_Read... [16:35:05]Read from MH i2c: 01 07 00 DB 96 00 00 00 00 00 F6 0C 7A [16:35:05]RasterBufferAndPrint [16:35:05]line [16:35:05]line [16:35:05]line [16:35:05]line [16:35:05]line [16:35:05]written 0, free lines is 3324 [16:35:05]MH_Cut [16:35:05]Write to MH i2c: D1 01 00 E2 96 01 4A [16:35:05]Write i2c OK [16:35:05]MH_I2C_Read... [16:35:05]Read from MH i2c: D1 [16:35:05]MH_I2C_Read... [16:35:05]Read from MH i2c: D1 01 00 [16:35:05]MH_I2C_Read... [16:35:05]Read from MH i2c: D1 01 00 E2 96 00 49 [16:35:05]Write to MH i2c: 01 00 00 E3 96 79 [16:35:05]Write i2c OK [16:35:05]MH_I2C_Read... [16:35:06]OFD Sender: No OFD packet to send [16:35:06]*** Cut start [16:35:06]*** Partial cut [16:35:06]*** CUTSNS_PIN = 1 [16:35:06]*** CUTSNS_PIN = 0 [16:35:06]*** Brake cut motor [16:35:07]Read from MH i2c: 01 [16:35:07]MH_I2C_Read... [16:35:07]*** Stop cut motor [16:35:07]*** Cut end [16:35:07]Read from MH i2c: 01 07 00 [16:35:07]MH_I2C_Read... [16:35:07]Read from MH i2c: 01 07 00 E3 96 00 00 00 00 00 FF 0F 8E [16:35:07]process_action close_receipt done [16:35:07]requested_data is exist [16:35:07]produce_requested_data [16:35:07]requested_item fm.sn is exist - process it [16:35:07]wFMCommunicate request_size=4 [16:35:07]MH_SAM_APDU [16:35:07]CAPDU: 80 11 00 00 [16:35:07]Write to MH i2c: E2 08 00 E4 96 80 11 00 00 00 00 00 00 F4 [16:35:07]Write i2c OK [16:35:07]MH_I2C_Read... [16:35:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:35:07]Read from MH i2c: E2 [16:35:07]MH_I2C_Read... [16:35:07]Read from MH i2c: E2 17 00 [16:35:07]MH_I2C_Read... [16:35:07]Read from MH i2c: E2 17 00 E4 96 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 42 [16: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 [16:35:07]wFMCommunicate OK [16:35:07]requested_item fd.num is exist - process it [16:35:07]SAM_PROTO_GetFieldsCounters [16:35:07]wFMCommunicate request_size=4 [16:35:07]MH_SAM_APDU [16:35:07]CAPDU: 80 13 00 00 [16:35:07]Write to MH i2c: E2 08 00 E5 96 80 13 00 00 00 00 00 00 F7 [16:35:07]Write i2c OK [16:35:07]MH_I2C_Read... [16:35:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:35:07]Read from MH i2c: E2 [16:35:07]MH_I2C_Read... [16:35:07]Read from MH i2c: E2 62 00 [16:35:07]MH_I2C_Read... [16:35:07]Read from MH i2c: E2 62 00 E5 96 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 E7 [16: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 C0 76 00 00 0E 04 04 00 72 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 [16:35:07]wFMCommunicate OK [16:35:07]SAM_PROTO_GetFieldsCounters done [16:35:07]requested_item shift.num is exist - process it [16:35:07]requested_item shift.opened is exist - process it [16:35:07]req_shift_opened [16:35:07]FM_GetShiftState [16:35:07]SAM_PROTO_GetShiftState [16:35:07]wFMCommunicate request_size=4 [16:35:07]MH_SAM_APDU [16:35:07]CAPDU: 80 13 01 00 [16:35:07]Write to MH i2c: E2 08 00 E6 96 80 13 01 00 00 00 00 00 F9 [16:35:07]Write i2c OK [16:35:07]MH_I2C_Read... [16:35:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:35:07]Read from MH i2c: E2 [16:35:07]MH_I2C_Read... [16:35:07]Read from MH i2c: E2 0E 00 [16:35:07]MH_I2C_Read... [16:35:07]Read from MH i2c: E2 0E 00 E6 96 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 DF [16:35:07]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [16:35:07]wFMCommunicate OK [16:35:07]SAM_PROTO_GetShiftState done [16:35:07]FM_GetShiftState done [16:35:07]req_shift_opened done [16:35:07]requested_item shift.open_date is exist - process it [16:35:07]req_shift_open_date [16:35:07]req_shift_open_date done [16:35:07]produce_requested_data done [16:35:07]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30400,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [16:35:07]process_action_free close_receipt [16:35:07]json_value_free [16:35:07]json_value_free done [16:35:07]process_json_proto returns [16:35:07]Send response to host [16:35:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30400,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [16:35:07]free response buf [16:35:07]execute_script done [16:35:07]execute_script returns [16:35:07]free content buf [16:35:07]Sock 7.Close socket [16:35:07]Sock 7.Thread stoped [16:35:08]accept exits with 9 [16:35:08]New connection [16:35:08]New thread 3067370852 created [16:35:08]Thread 3067514212 joined [16:35:08]Waiting for new connection... [16:35:08] Sock 9.Parse request [16:35:08]Sock 9.Check first char [16:35:08]Sock 9.First char is OK [16:35:08]request: POST /json_proto HTTP/1.0 [16:35:08]Method: POST [16:35:08]URL: /json_proto [16:35:08]Method is POST - this is cgi request [16:35:08]url: /json_proto [16:35:08]query_string will be loaded in cgi processing [16:35:08]execute_cgi json_proto POST (null) [16:35:08]execute_cgi path=json_proto method=POST [16:35:08]POST find Content-Length [16:35:08]Host: 172.17.51.3:8080 [16:35:08]Content-Length: 677 [16:35:08]Content-Type: application/json [16:35:08] [16:35:08]POST finish read [16:35:08]Found Content-Length = 677 [16:35:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342796", "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:35:08]execute_script... [16:35:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342796", "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:35:08]POST & json_proto [16:35:08]process_json_proto [16:35:08]json parsed OK: [16:35:08]protocol is kg_v1.0 [16:35:08]action value=close_receipt [16:35:08]process_action close_receipt [16:35:08]cmd_close_receipt [16:35:08]MH_GetDate [16:35:08]Write to MH i2c: F0 00 00 E7 96 6C [16:35:08]Write i2c OK [16:35:08]MH_I2C_Read... [16:35:08]Read from MH i2c: F0 [16:35:08]MH_I2C_Read... [16:35:08]Read from MH i2c: F0 09 00 [16:35:08]MH_I2C_Read... [16:35:08]Read from MH i2c: F0 09 00 E7 96 00 46 31 15 67 04 C1 95 66 28 [16:35:08]GetLastDocTimeStamp 1729442113 [16:35:08]current date 1729442118 [16:35:08]FM_GetShiftState [16:35:08]SAM_PROTO_GetShiftState [16:35:08]wFMCommunicate request_size=4 [16:35:08]MH_SAM_APDU [16:35:08]CAPDU: 80 13 01 00 [16:35:08]Write to MH i2c: E2 08 00 E8 96 80 13 01 00 00 00 00 00 FB [16:35:08]Write i2c OK [16:35:08]MH_I2C_Read... [16:35:08]Read from MH i2c: E2 [16:35:08]MH_I2C_Read... [16:35:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:35:08]Read from MH i2c: E2 0E 00 [16:35:08]MH_I2C_Read... [16:35:08]Read from MH i2c: E2 0E 00 E8 96 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 E1 [16:35:08]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [16:35:08]wFMCommunicate OK [16:35:08]SAM_PROTO_GetShiftState done [16:35:08]FM_GetShiftState done [16:35:08]opened in 1729384718 [16:35:08]opened+sec_in_day 1729471118 [16:35:08]quantity*price = 50041 [16:35:08]sum+1 = 50042 [16:35:08]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 СНО: Общий режим Чек 183 20.10.2024 16:35 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30401 ФПД: 54344936158088 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T163518&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30401&fm=54344936158088&tin=02508201610067®Number=0000000000186857&sum=50000 [16:35:09]StoreToDocumentArchive [16:35:09]shift 114 fd 30401 [16:35:09]save to /storage/0114/doc_00030401 [16:35:09]save last doc name /storage/0114/doc_00030401 to /storage/kkm_last_doc_name [16:35:09]save OK [16:35:09]Clear old archive folders... [16:35:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:35:09]tlvbuf is 00B6CD50 [16:35:09]SAM_PROTO_ClearQueue [16:35:09]wFMCommunicate request_size=4 [16:35:09]MH_SAM_APDU [16:35:09]CAPDU: 80 09 00 00 [16:35:09]Write to MH i2c: E2 08 00 F5 96 80 09 00 00 00 00 00 00 FD [16:35:09]Write i2c OK [16:35:09]MH_I2C_Read... [16:35:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:35:09]Read from MH i2c: E2 [16:35:09]MH_I2C_Read... [16:35:09]Read from MH i2c: E2 03 00 [16:35:09]MH_I2C_Read... [16:35:09]Read from MH i2c: E2 03 00 F5 96 00 90 00 FF [16:35:09]RAPDU: 90 00 [16:35:09]wFMCommunicate OK [16:35:09]SAM_PROTO_ClearQueue done [16:35:09]KKMCreateOFDPacket [16:35:09]OFDProtocolAddRootSTLVToBuf [16:35:09]FM_MakeSignedData [16:35:09]FM_MakeSignedData [16:35:09]SAM_PROTO_SignData [16:35:09]wFMCommunicate request_size=4 [16:35:09]MH_SAM_APDU [16:35:09]CAPDU: 80 0D 01 02 [16:35:09]Write to MH i2c: E2 08 00 F6 96 80 0D 01 02 00 00 00 00 05 [16:35:09]Write i2c OK [16:35:09]MH_I2C_Read... [16:35:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:35:09]Read from MH i2c: E2 [16:35:09]MH_I2C_Read... [16:35:09]Read from MH i2c: E2 03 00 [16:35:09]MH_I2C_Read... [16:35:09]Read from MH i2c: E2 03 00 F6 96 00 90 00 00 [16:35:09]RAPDU: 90 00 [16:35:09]wFMCommunicate OK [16:35:09]wFMCommunicate request_size=255 [16:35:09]MH_SAM_APDU [16:35:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 B7 00 00 00 F4 03 04 00 46 31 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 31 [16:35:09]Write to MH i2c: E2 02 01 F7 96 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 B7 00 00 00 F4 03 04 00 46 31 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 31 00 00 1A [16:35:09]Write i2c OK [16:35:09]MH_I2C_Read... [16:35:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:35:09]Read from MH i2c: E2 [16:35:09]MH_I2C_Read... [16:35:09]Read from MH i2c: E2 03 00 [16:35:09]MH_I2C_Read... [16:35:09]Read from MH i2c: E2 03 00 F7 96 00 90 00 01 [16:35:09]RAPDU: 90 00 [16:35:09]wFMCommunicate OK [16:35:09]wFMCommunicate request_size=10 [16:35:09]MH_SAM_APDU [16:35:09]CAPDU: 80 0D 02 02 05 6D 2A 9D 73 88 [16:35:09]Write to MH i2c: E2 0D 00 F8 96 80 0D 02 02 05 00 6D 2A 9D 73 88 00 00 41 [16:35:09]Write i2c OK [16:35:09]MH_I2C_Read... [16:35:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:35:10]Read from MH i2c: E2 [16:35:10]MH_I2C_Read... [16:35:10]Read from MH i2c: E2 03 00 [16:35:10]MH_I2C_Read... [16:35:10]Read from MH i2c: E2 03 00 F8 96 00 90 00 02 [16:35:10]RAPDU: 90 00 [16:35:10]wFMCommunicate OK [16:35:10]wFMCommunicate request_size=4 [16:35:10]MH_SAM_APDU [16:35:10]CAPDU: 80 0D 03 02 [16:35:10]Write to MH i2c: E2 08 00 F9 96 80 0D 03 02 00 00 00 00 0A [16:35:10]Write i2c OK [16:35:10]MH_I2C_Read... [16:35:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:35:10]Read from MH i2c: E2 [16:35:10]MH_I2C_Read... [16:35:10]Read from MH i2c: E2 0B 00 [16:35:10]MH_I2C_Read... [16:35:10]Read from MH i2c: E2 0B 00 F9 96 00 B7 B4 F8 ED EC 43 1A 56 90 00 FA [16:35:10]RAPDU: B7 B4 F8 ED EC 43 1A 56 90 00 [16:35:10]wFMCommunicate OK [16:35:10]SAM_PROTO_SignData done [16:35:10]FM_MakeSignedData done [16:35:10]CreateOFDProtocolMessage [16:35:10]wFMCommunicate request_size=4 [16:35:10]MH_SAM_APDU [16:35:10]CAPDU: 80 11 00 00 [16:35:10]Write to MH i2c: E2 08 00 FA 96 80 11 00 00 00 00 00 00 0A [16:35:10]Write i2c OK [16:35:10]MH_I2C_Read... [16:35:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:35:10]Read from MH i2c: E2 [16:35:10]MH_I2C_Read... [16:35:10]Read from MH i2c: E2 17 00 [16:35:10]MH_I2C_Read... [16:35:10]Read from MH i2c: E2 17 00 FA 96 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 58 [16:35:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [16:35:10]wFMCommunicate OK [16:35:10]CreateOFDProtocolMessage done [16:35:10]OFDSenderStorePacket 30401 [16:35:10]StoreOFDPacket docnum=30401 [16:35: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 0A 69 07 01 94 00 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 B7 00 00 00 F4 03 04 00 46 31 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 31 6D 2A 9D 73 88 B7 B4 F8 ED EC 43 1A 56 [16:35:10]CheckFolder [16:35:10]dirname=/storage/ofd_packets [16:35:10]CheckFolder done [16:35:10]ProducePacketName [16:35:10]name=ofd_packets/00030401 [16:35:10]NVStorageSaveData ofd_packets/00030401 [16:35:10]File name is /storage/ofd_packets/00030401 [16:35:10]Write 301 bytes [16:35:10]NVStorageSaveData done [16:35:10]OFDSenderStorePacket done [16:35:10]KKMCreateOFDPacket done [16:35:10]NVStorageSaveData kkm_last_timestamp [16:35:10]File name is /storage/kkm_last_timestamp [16:35:10]Write 4 bytes [16:35:10]NVStorageSaveData done [16:35:10]ExternCall_PrintAddStr [16:35:10]wPrintStart [16:35:10]Write to MH i2c: 01 00 00 FB 96 91 [16:35:10]Write i2c OK [16:35:10]MH_I2C_Read... [16:35:10]Read from MH i2c: 01 [16:35:10]MH_I2C_Read... [16:35:10]Read from MH i2c: 01 07 00 [16:35:10]MH_I2C_Read... [16:35:10]Read from MH i2c: 01 07 00 FB 96 00 00 00 00 00 FF 0F A6 [16:35:10]RasterBufferAndPrint [16:35:10]line Счет N : (1)342796 [16:35:10]line ИНН: 02508201610067 [16:35:10]line Контрольно-Кассовый Чек [16:35:10]line ПРОДАЖА [16:35:10]line ТРК (МРК, ГНК) : 33 [16:35:10]line Товар: 2710124130 [16:35:10]line Аи-92-К-2 [16:35:10]line 7.480 * 66.90 [16:35:10]line = 500.41 [16:35:10]line НДС 12% НСП 1% [16:35:10]line > о реализуемом товаре [16:35:10]line ОКРУГЛЕНИЕ: -0.41 [16:35:10]line ИТОГО: 500.00 [16:35:10]line Внесено: 500.00 [16:35:10]line СДАЧА: 0.00 [16:35:10]line НСП 1% : 4.43 [16:35:10]line НДС 12% : 53.14 [16:35:10]line Наличными: 500.00 [16:35:10]line Безнал.: 0.00 [16:35:10]line Место: АЗС № 78 "Партнер Нефть" [16:35:10]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [16:35:10]line СНО: Общий режим [16:35:10]line Чек 183 20.10.2024 16:35 [16:35:10]line Смена: 114 ФФД: 1.0 [16:35:10]line ЗНМ: 0300000137 [16:35:10]line РНМ: 0000000000186857 [16:35:10]line Версия ККМ: v1.0 [16:35:10]line ФМ: 0000000002094219 [16:35:10]line ФД: 30401 [16:35:10]line ФПД: 54344936158088 [16:35:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T163518&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30401&fm=54344936158088&tin=02508201610067®Number=0000000000186857&sum=50000 [16:35:10]written 0, free lines is 4095 [16:35:10]OFD Sender: Processing packet 30401 [packets to send 10, broken 9] [16:35:10]ProducePacketName [16:35:10]name=ofd_packets/00030401 [16:35:10]OFD Sender: To server: pG, [16:35:10]CommunicateWithHost lk.salyk.kg:30040 [16:35:10]ConnectInit lk.salyk.kg [16:35:10]Connected sock=10 [16:35: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 0A 69 07 01 94 00 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 B7 00 00 00 F4 03 04 00 46 31 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 31 6D 2A 9D 73 88 B7 B4 F8 ED EC 43 1A 56 [16:35: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 7C 01 47 00 19 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 C1 76 00 00 F4 03 04 00 C9 DB 14 67 B6 04 01 00 00 46 9D 98 02 F9 11 C2 62 [16:35:10]CommunicateWithHost err = 0 [16:35:10]CheckOFDResponse [16:35:10]1017 (14) - 77093643461234 [16:35:10]1041 (16) - 0000000002094219 [16:35:10]1040 (4) - 30401 [16:35:10]1012 (4) - 20.10.2024 10:30 [16:35:10]1206 (1) - 0 [16:35:10]OFD Sender: Remove packet 30401 [16:35:10]ProducePacketName [16:35:10]name=ofd_packets/00030401 [16:35:10]NVStorageDeleteData [16:35:10]Write to MH i2c: 01 00 00 26 97 BD [16:35:10]Write i2c OK [16:35:10]MH_I2C_Read... [16:35:10]Read from MH i2c: 01 [16:35:10]MH_I2C_Read... [16:35:10]Read from MH i2c: 01 07 00 [16:35:10]MH_I2C_Read... [16:35:10]Read from MH i2c: 01 07 00 26 97 00 00 00 00 00 FE 0C CE [16:35:10]RasterBufferAndPrint [16:35:10]line [16:35:10]line [16:35:10]line [16:35:10]line [16:35:10]line [16:35:10]written 0, free lines is 3341 [16:35:10]MH_Cut [16:35:10]Write to MH i2c: D1 01 00 2D 97 01 96 [16:35:10]Write i2c OK [16:35:10]MH_I2C_Read... [16:35:10]Read from MH i2c: D1 [16:35:10]MH_I2C_Read... [16:35:10]Read from MH i2c: D1 01 00 [16:35:10]MH_I2C_Read... [16:35:10]Read from MH i2c: D1 01 00 2D 97 00 95 [16:35:10]Write to MH i2c: 01 00 00 2E 97 C5 [16:35:10]Write i2c OK [16:35:10]MH_I2C_Read... [16:35:11]OFD Sender: No OFD packet to send [16:35:11]*** Cut start [16:35:11]*** Partial cut [16:35:11]*** CUTSNS_PIN = 1 [16:35:11]*** CUTSNS_PIN = 0 [16:35:11]*** Brake cut motor [16:35:11]Read from MH i2c: 01 [16:35:11]MH_I2C_Read... [16:35:11]*** Stop cut motor [16:35:11]*** Cut end [16:35:11]Read from MH i2c: 01 07 00 [16:35:11]MH_I2C_Read... [16:35:11]Read from MH i2c: 01 07 00 2E 97 00 00 00 00 00 FF 0F DA [16:35:11]process_action close_receipt done [16:35:11]requested_data is exist [16:35:11]produce_requested_data [16:35:11]requested_item fm.sn is exist - process it [16:35:11]wFMCommunicate request_size=4 [16:35:11]MH_SAM_APDU [16:35:11]CAPDU: 80 11 00 00 [16:35:11]Write to MH i2c: E2 08 00 2F 97 80 11 00 00 00 00 00 00 40 [16:35:11]Write i2c OK [16:35:11]MH_I2C_Read... [16:35:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:35:11]Read from MH i2c: E2 [16:35:11]MH_I2C_Read... [16:35:11]Read from MH i2c: E2 17 00 [16:35:11]MH_I2C_Read... [16:35:11]Read from MH i2c: E2 17 00 2F 97 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:35: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:35:11]wFMCommunicate OK [16:35:11]requested_item fd.num is exist - process it [16:35:11]SAM_PROTO_GetFieldsCounters [16:35:11]wFMCommunicate request_size=4 [16:35:11]MH_SAM_APDU [16:35:11]CAPDU: 80 13 00 00 [16:35:11]Write to MH i2c: E2 08 00 30 97 80 13 00 00 00 00 00 00 43 [16:35:11]Write i2c OK [16:35:11]MH_I2C_Read... [16:35:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:35:12]Read from MH i2c: E2 [16:35:12]MH_I2C_Read... [16:35:12]Read from MH i2c: E2 62 00 [16:35:12]MH_I2C_Read... [16:35:12]Read from MH i2c: E2 62 00 30 97 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 37 [16:35: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 C1 76 00 00 0E 04 04 00 72 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 [16:35:12]wFMCommunicate OK [16:35:12]SAM_PROTO_GetFieldsCounters done [16:35:12]requested_item shift.num is exist - process it [16:35:12]requested_item shift.opened is exist - process it [16:35:12]req_shift_opened [16:35:12]FM_GetShiftState [16:35:12]SAM_PROTO_GetShiftState [16:35:12]wFMCommunicate request_size=4 [16:35:12]MH_SAM_APDU [16:35:12]CAPDU: 80 13 01 00 [16:35:12]Write to MH i2c: E2 08 00 31 97 80 13 01 00 00 00 00 00 45 [16:35:12]Write i2c OK [16:35:12]MH_I2C_Read... [16:35:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:35:12]Read from MH i2c: E2 [16:35:12]MH_I2C_Read... [16:35:12]Read from MH i2c: E2 0E 00 [16:35:12]MH_I2C_Read... [16:35:12]Read from MH i2c: E2 0E 00 31 97 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 2B [16:35:12]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [16:35:12]wFMCommunicate OK [16:35:12]SAM_PROTO_GetShiftState done [16:35:12]FM_GetShiftState done [16:35:12]req_shift_opened done [16:35:12]requested_item shift.open_date is exist - process it [16:35:12]req_shift_open_date [16:35:12]req_shift_open_date done [16:35:12]produce_requested_data done [16:35:12]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30401,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [16:35:12]process_action_free close_receipt [16:35:12]json_value_free [16:35:12]json_value_free done [16:35:12]process_json_proto returns [16:35:12]Send response to host [16:35:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30401,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [16:35:12]free response buf [16:35:12]execute_script done [16:35:12]execute_script returns [16:35:12]free content buf [16:35:12]Sock 9.Close socket [16:35:12]Sock 9.Thread stoped [16:35:16]OFD Sender: No OFD packet to send [16:35:21]OFD Sender: No OFD packet to send [16:35:26]OFD Sender: No OFD packet to send [16:35:31]OFD Sender: No OFD packet to send [16:35:36]OFD Sender: No OFD packet to send [16:35:41]OFD Sender: No OFD packet to send [16:35:46]OFD Sender: No OFD packet to send [16:35:51]OFD Sender: No OFD packet to send [16:35:56]OFD Sender: No OFD packet to send [16:36:01]OFD Sender: No OFD packet to send [16:36:06]OFD Sender: No OFD packet to send [16:36:11]OFD Sender: No OFD packet to send [16:36:16]OFD Sender: No OFD packet to send [16:36:21]OFD Sender: No OFD packet to send [16:36:26]OFD Sender: No OFD packet to send [16:36:31]OFD Sender: No OFD packet to send [16:36:36]OFD Sender: No OFD packet to send [16:36:41]OFD Sender: No OFD packet to send [16:36:46]OFD Sender: No OFD packet to send [16:36:51]OFD Sender: No OFD packet to send [16:36:56]OFD Sender: No OFD packet to send [16:36:56]accept exits with 7 [16:36:56]New connection [16:36:56]New thread 3067514212 created [16:36:56]Thread 3067370852 joined [16:36:56]Waiting for new connection... [16:36:56] Sock 7.Parse request [16:36:56]Sock 7.Check first char [16:36:56]Sock 7.First char is OK [16:36:56]request: POST /json_proto HTTP/1.0 [16:36:56]Method: POST [16:36:56]URL: /json_proto [16:36:56]Method is POST - this is cgi request [16:36:56]url: /json_proto [16:36:56]query_string will be loaded in cgi processing [16:36:56]execute_cgi json_proto POST (null) [16:36:56]execute_cgi path=json_proto method=POST [16:36:56]POST find Content-Length [16:36:56]Host: 172.17.51.3:8080 [16:36:56]Content-Length: 677 [16:36:56]Content-Type: application/json [16:36:56] [16:36:56]POST finish read [16:36:56]Found Content-Length = 677 [16:36:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342797", "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:36:56]execute_script... [16:36: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)342797", "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:36:56]POST & json_proto [16:36:56]process_json_proto [16:36:56]json parsed OK: [16:36:56]protocol is kg_v1.0 [16:36:56]action value=close_receipt [16:36:56]process_action close_receipt [16:36:56]cmd_close_receipt [16:36:56]MH_GetDate [16:36:56]Write to MH i2c: F0 00 00 32 97 B8 [16:36:56]Write i2c OK [16:36:56]MH_I2C_Read... [16:36:56]Read from MH i2c: F0 [16:36:56]MH_I2C_Read... [16:36:56]Read from MH i2c: F0 09 00 [16:36:56]MH_I2C_Read... [16:36:56]Read from MH i2c: F0 09 00 32 97 00 B2 31 15 67 04 C1 95 66 E0 [16:36:56]GetLastDocTimeStamp 1729442118 [16:36:56]current date 1729442226 [16:36:56]FM_GetShiftState [16:36:56]SAM_PROTO_GetShiftState [16:36:56]wFMCommunicate request_size=4 [16:36:56]MH_SAM_APDU [16:36:56]CAPDU: 80 13 01 00 [16:36:56]Write to MH i2c: E2 08 00 33 97 80 13 01 00 00 00 00 00 47 [16:36:56]Write i2c OK [16:36:56]MH_I2C_Read... [16:36:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:36:56]Read from MH i2c: E2 [16:36:56]MH_I2C_Read... [16:36:56]Read from MH i2c: E2 0E 00 [16:36:56]MH_I2C_Read... [16:36:56]Read from MH i2c: E2 0E 00 33 97 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 2D [16:36:56]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [16:36:56]wFMCommunicate OK [16:36:56]SAM_PROTO_GetShiftState done [16:36:56]FM_GetShiftState done [16:36:56]opened in 1729384718 [16:36:56]opened+sec_in_day 1729471118 [16:36:56]quantity*price = 50041 [16:36:56]sum+1 = 50042 [16:36:56]Check (price>sum+1) || (price+1 о реализуемом товаре [16:59:03]line ОКРУГЛЕНИЕ: -0.41 [16:59:03]line ИТОГО: 500.00 [16:59:03]line Внесено: 500.00 [16:59:03]line СДАЧА: 0.00 [16:59:03]line НСП 1% : 4.43 [16:59:03]line НДС 12% : 53.14 [16:59:03]line Наличными: 500.00 [16:59:03]line Безнал.: 0.00 [16:59:03]line Место: АЗС № 78 "Партнер Нефть" [16:59:04]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [16:59:04]line СНО: Общий режим [16:59:04]line Чек 184 20.10.2024 16:37 [16:59:04]line Смена: 114 ФФД: 1.0 [16:59:04]line ЗНМ: 0300000137 [16:59:04]line РНМ: 0000000000186857 [16:59:04]line Версия ККМ: v1.0 [16:59:04]line ФМ: 0000000002094219 [16:59:04]line ФД: 30402 [16:59:04]line ФПД: 153934297685584 [16:59:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T163706&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30402&fm=153934297685584&tin=02508201610067®Number=0000000000186857&sum=50000 [16:59:04]written 0, free lines is 4095 [16:59:04]Write to MH i2c: 01 00 00 48 00 48 [16:59:04]Write i2c OK [16:59:04]MH_I2C_Read... [16:59:04]Read from MH i2c: 01 [16:59:04]MH_I2C_Read... [16:59:04]Read from MH i2c: 01 07 00 [16:59:04]MH_I2C_Read... [16:59:04]Read from MH i2c: 01 07 00 48 00 00 00 00 00 00 F2 0C 4D [16:59:04]RasterBufferAndPrint [16:59:04]line [16:59:04]line [16:59:04]line [16:59:04]line [16:59:04]line [16:59:04]written 0, free lines is 3332 [16:59:04]MH_Cut [16:59:04]Write to MH i2c: D1 01 00 4F 00 01 21 [16:59:04]Write i2c OK [16:59:04]MH_I2C_Read... [16:59:04]Read from MH i2c: D1 [16:59:04]MH_I2C_Read... [16:59:04]Read from MH i2c: D1 01 00 [16:59:04]MH_I2C_Read... [16:59:04]Read from MH i2c: D1 01 00 4F 00 00 20 [16:59:04]Write to MH i2c: 01 00 00 50 00 50 [16:59:04]Write i2c OK [16:59:04]MH_I2C_Read... [16:59:05]*** Cut start [16:59:05]*** Partial cut [16:59:05]*** CUTSNS_PIN = 1 [16:59:05]*** CUTSNS_PIN = 0 [16:59:05]*** Brake cut motor [16:59:05]Read from MH i2c: 01 [16:59:05]*** Stop cut motor [16:59:05]MH_I2C_Read... [16:59:05]*** Cut end [16:59:05]Read from MH i2c: 01 07 00 [16:59:05]MH_I2C_Read... [16:59:05]Read from MH i2c: 01 07 00 50 00 00 00 00 00 00 FF 0F 65 [16:59:05]process_action print_doc done [16:59:05]requested_data is exist [16:59:05]produce_requested_data [16:59:05]produce_requested_data return (null) [16:59:05]process_action_free print_doc [16:59:05]json_value_free [16:59:05]json_value_free done [16:59:05]process_json_proto returns [16:59:05]Send response to host [16:59:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK"}} [16:59:05]free response buf [16:59:05]execute_script done [16:59:05]execute_script returns [16:59:05]free content buf [16:59:05]Sock 9.Close socket [16:59:05]Sock 9.Thread stoped [16:59:07]OFD Sender: No OFD packet to send [16:59:12]OFD Sender: No OFD packet to send [16:59:17]OFD Sender: No OFD packet to send [16:59:22]OFD Sender: No OFD packet to send [16:59:27]OFD Sender: No OFD packet to send [16:59:32]OFD Sender: No OFD packet to send [16:59:37]OFD Sender: No OFD packet to send [16:59:42]OFD Sender: No OFD packet to send [16:59:47]OFD Sender: No OFD packet to send [16:59:52]OFD Sender: No OFD packet to send [16:59:57]OFD Sender: No OFD packet to send [17:00:02]OFD Sender: No OFD packet to send [17:00:07]OFD Sender: No OFD packet to send [17:00:12]OFD Sender: No OFD packet to send [17:00:17]OFD Sender: No OFD packet to send [17:00:22]OFD Sender: No OFD packet to send [17:00:27]OFD Sender: No OFD packet to send [17:00:32]OFD Sender: No OFD packet to send [17:00:37]OFD Sender: No OFD packet to send [17:00:42]OFD Sender: No OFD packet to send [17:00:47]OFD Sender: No OFD packet to send [17:00:52]OFD Sender: No OFD packet to send [17:00:57]OFD Sender: No OFD packet to send [17:00:57]accept exits with 6 [17:00:57]New connection [17:00:57]New thread 3067346276 created [17:00:57]Thread 3067489636 joined [17:00:57]Waiting for new connection... [17:00:57] Sock 6.Parse request [17:00:57]Sock 6.Check first char [17:00:57]Sock 6.First char is OK [17:00:57]request: POST /json_proto HTTP/1.0 [17:00:57]Method: POST [17:00:57]URL: /json_proto [17:00:57]Method is POST - this is cgi request [17:00:57]url: /json_proto [17:00:57]query_string will be loaded in cgi processing [17:00:57]execute_cgi json_proto POST (null) [17:00:57]execute_cgi path=json_proto method=POST [17:00:57]POST find Content-Length [17:00:57]Host: 172.17.51.3:8080 [17:00:57]Content-Length: 682 [17:00:57]Content-Type: application/json [17:00:57] [17:00:57]POST finish read [17:00:57]Found Content-Length = 682 [17:00:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342802", "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" : 27.970, "sum" : 1871.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 1871.00, "payments": [ { "type": 0, "sum" : 1871.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:00:57]execute_script... [17:00:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342802", "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" : 27.970, "sum" : 1871.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 1871.00, "payments": [ { "type": 0, "sum" : 1871.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:00:57]POST & json_proto [17:00:57]process_json_proto [17:00:57]json parsed OK: [17:00:57]protocol is kg_v1.0 [17:00:57]action value=close_receipt [17:00:57]process_action close_receipt [17:00:57]cmd_close_receipt [17:00:57]MH_GetDate [17:00:57]Write to MH i2c: F0 00 00 51 00 40 [17:00:57]Write i2c OK [17:00:57]MH_I2C_Read... [17:00:57]Read from MH i2c: F0 [17:00:57]MH_I2C_Read... [17:00:57]Read from MH i2c: F0 09 00 [17:00:57]MH_I2C_Read... [17:00:57]Read from MH i2c: F0 09 00 51 00 00 49 37 15 67 04 C1 95 66 05 [17:00:57]GetLastDocTimeStamp 1729442226 [17:00:57]current date 1729443657 [17:00:57]FM_GetShiftState [17:00:57]SAM_PROTO_GetShiftState [17:00:57]wFMCommunicate request_size=4 [17:00:57]MH_SAM_APDU [17:00:57]CAPDU: 80 13 01 00 [17:00:57]Write to MH i2c: E2 08 00 52 00 80 13 01 00 00 00 00 00 CF [17:00:57]Write i2c OK [17:00:57]MH_I2C_Read... [17:00:57]Read from MH i2c: E2 [17:00:57]MH_I2C_Read... [17:00:57]Read from MH i2c: E2 0E 00 [17:00:57]MH_I2C_Read... [17:00:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:00:57]Read from MH i2c: E2 0E 00 52 00 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 B5 [17:00:57]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [17:00:57]wFMCommunicate OK [17:00:57]SAM_PROTO_GetShiftState done [17:00:57]FM_GetShiftState done [17:00:57]opened in 1729384718 [17:00:57]opened+sec_in_day 1729471118 [17:00:57]quantity*price = 187119 [17:00:57]sum+1 = 187120 [17:00:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1871.00 Внесено: 2000.00 СДАЧА: 129.00 НСП 1% : 16.56 НДС 12% : 198.71 Наличными: 1871.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 185 20.10.2024 17:00 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30403 ФПД: 118713113175675 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T170058&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30403&fm=118713113175675&tin=02508201610067®Number=0000000000186857&sum=187100 [17:00:59]StoreToDocumentArchive [17:00:59]shift 114 fd 30403 [17:00:59]save to /storage/0114/doc_00030403 [17:00:59]save last doc name /storage/0114/doc_00030403 to /storage/kkm_last_doc_name [17:00:59]save OK [17:00:59]Clear old archive folders... [17:00:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:00:59]tlvbuf is 01DB63A0 [17:00:59]SAM_PROTO_ClearQueue [17:00:59]wFMCommunicate request_size=4 [17:00:59]MH_SAM_APDU [17:00:59]CAPDU: 80 09 00 00 [17:00:59]Write to MH i2c: E2 08 00 5F 00 80 09 00 00 00 00 00 00 D1 [17:00:59]Write i2c OK [17:00:59]MH_I2C_Read... [17:00:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:00:59]Read from MH i2c: E2 [17:00:59]MH_I2C_Read... [17:00:59]Read from MH i2c: E2 03 00 [17:00:59]MH_I2C_Read... [17:00:59]Read from MH i2c: E2 03 00 5F 00 00 90 00 D3 [17:00:59]RAPDU: 90 00 [17:00:59]wFMCommunicate OK [17:00:59]SAM_PROTO_ClearQueue done [17:00:59]KKMCreateOFDPacket [17:00:59]OFDProtocolAddRootSTLVToBuf [17:00:59]FM_MakeSignedData [17:00:59]FM_MakeSignedData [17:00:59]SAM_PROTO_SignData [17:00:59]wFMCommunicate request_size=4 [17:00:59]MH_SAM_APDU [17:00:59]CAPDU: 80 0D 01 02 [17:00:59]Write to MH i2c: E2 08 00 60 00 80 0D 01 02 00 00 00 00 D9 [17:00:59]Write i2c OK [17:00:59]MH_I2C_Read... [17:00:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:00:59]Read from MH i2c: E2 [17:00:59]MH_I2C_Read... [17:00:59]Read from MH i2c: E2 03 00 [17:00:59]MH_I2C_Read... [17:00:59]Read from MH i2c: E2 03 00 60 00 00 90 00 D4 [17:00:59]RAPDU: 90 00 [17:00:59]wFMCommunicate OK [17:00:59]wFMCommunicate request_size=255 [17:00:59]MH_SAM_APDU [17:00:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 42 6D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 EF DA 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC DA 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 78 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 4D 00 00 00 00 07 04 06 00 DC DA 02 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 4A 37 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 6B [17:00:59]Write to MH i2c: E2 02 01 61 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 42 6D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 EF DA 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC DA 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 78 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 4D 00 00 00 00 07 04 06 00 DC DA 02 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 4A 37 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 6B 00 00 41 [17:00:59]Write i2c OK [17:00:59]MH_I2C_Read... [17:00:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:00:59]Read from MH i2c: E2 [17:00:59]MH_I2C_Read... [17:00:59]Read from MH i2c: E2 03 00 [17:00:59]MH_I2C_Read... [17:00:59]Read from MH i2c: E2 03 00 61 00 00 90 00 D5 [17:00:59]RAPDU: 90 00 [17:00:59]wFMCommunicate OK [17:00:59]wFMCommunicate request_size=10 [17:00:59]MH_SAM_APDU [17:00:59]CAPDU: 80 0D 02 02 05 F8 0C F0 E6 7B [17:00:59]Write to MH i2c: E2 0D 00 62 00 80 0D 02 02 05 00 F8 0C F0 E6 7B 00 00 3B [17:00:59]Write i2c OK [17:00:59]MH_I2C_Read... [17:00:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:00:59]Read from MH i2c: E2 [17:00:59]MH_I2C_Read... [17:00:59]Read from MH i2c: E2 03 00 [17:00:59]MH_I2C_Read... [17:00:59]Read from MH i2c: E2 03 00 62 00 00 90 00 D6 [17:00:59]RAPDU: 90 00 [17:00:59]wFMCommunicate OK [17:00:59]wFMCommunicate request_size=4 [17:00:59]MH_SAM_APDU [17:00:59]CAPDU: 80 0D 03 02 [17:00:59]Write to MH i2c: E2 08 00 63 00 80 0D 03 02 00 00 00 00 DE [17:00:59]Write i2c OK [17:00:59]MH_I2C_Read... [17:00:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:00:59]Read from MH i2c: E2 [17:00:59]MH_I2C_Read... [17:00:59]Read from MH i2c: E2 0B 00 [17:00:59]MH_I2C_Read... [17:00:59]Read from MH i2c: E2 0B 00 63 00 00 B8 13 8D F0 BB 5F 0D 54 90 00 A2 [17:00:59]RAPDU: B8 13 8D F0 BB 5F 0D 54 90 00 [17:00:59]wFMCommunicate OK [17:00:59]SAM_PROTO_SignData done [17:00:59]FM_MakeSignedData done [17:00:59]CreateOFDProtocolMessage [17:00:59]wFMCommunicate request_size=4 [17:00:59]MH_SAM_APDU [17:00:59]CAPDU: 80 11 00 00 [17:00:59]Write to MH i2c: E2 08 00 64 00 80 11 00 00 00 00 00 00 DE [17:00:59]Write i2c OK [17:00:59]MH_I2C_Read... [17:00:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:00:59]Read from MH i2c: E2 [17:00:59]MH_I2C_Read... [17:00:59]Read from MH i2c: E2 17 00 [17:00:59]MH_I2C_Read... [17:00:59]Read from MH i2c: E2 17 00 64 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 2C [17:00: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:00:59]wFMCommunicate OK [17:00:59]CreateOFDProtocolMessage done [17:00:59]OFDSenderStorePacket 30403 [17:00:59]StoreOFDPacket docnum=30403 [17:00: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 16 C1 07 01 D4 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 42 6D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 EF DA 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC DA 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 78 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 4D 00 00 00 00 07 04 06 00 DC DA 02 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 4A 37 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 6B F8 0C F0 E6 7B B8 13 8D F0 BB 5F 0D 54 [17:00:59]CheckFolder [17:00:59]dirname=/storage/ofd_packets [17:00:59]CheckFolder done [17:00:59]ProducePacketName [17:00:59]name=ofd_packets/00030403 [17:00:59]NVStorageSaveData ofd_packets/00030403 [17:00:59]File name is /storage/ofd_packets/00030403 [17:00:59]Write 301 bytes [17:00:59]NVStorageSaveData done [17:00:59]OFDSenderStorePacket done [17:00:59]KKMCreateOFDPacket done [17:00:59]NVStorageSaveData kkm_last_timestamp [17:00:59]File name is /storage/kkm_last_timestamp [17:00:59]Write 4 bytes [17:00:59]NVStorageSaveData done [17:00:59]ExternCall_PrintAddStr [17:00:59]wPrintStart [17:00:59]Write to MH i2c: 01 00 00 65 00 65 [17:00:59]Write i2c OK [17:00:59]MH_I2C_Read... [17:00:59]Read from MH i2c: 01 [17:00:59]MH_I2C_Read... [17:00:59]Read from MH i2c: 01 07 00 [17:00:59]MH_I2C_Read... [17:00:59]Read from MH i2c: 01 07 00 65 00 00 00 00 00 00 FF 0F 7A [17:00:59]RasterBufferAndPrint [17:00:59]line Счет N : (1)342802 [17:00:59]line ИНН: 02508201610067 [17:00:59]line Контрольно-Кассовый Чек [17:00:59]line ПРОДАЖА [17:00:59]line ТРК (МРК, ГНК) : 53 [17:00:59]line Товар: 2710124130 [17:00:59]line Аи-92-К-2 [17:00:59]line 27.970 * 66.90 [17:00:59]line = 1871.19 [17:00:59]line НДС 12% НСП 1% [17:00:59]line > о реализуемом товаре [17:00:59]line ОКРУГЛЕНИЕ: -0.19 [17:00:59]line ИТОГО: 1871.00 [17:00:59]line Внесено: 2000.00 [17:00:59]line СДАЧА: 129.00 [17:00:59]line НСП 1% : 16.56 [17:00:59]line НДС 12% : 198.71 [17:00:59]line Наличными: 1871.00 [17:00:59]line Безнал.: 0.00 [17:00:59]line Место: АЗС № 78 "Партнер Нефть" [17:00:59]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [17:00:59]line СНО: Общий режим [17:00:59]line Чек 185 20.10.2024 17:00 [17:00:59]line Смена: 114 ФФД: 1.0 [17:00:59]line ЗНМ: 0300000137 [17:00:59]line РНМ: 0000000000186857 [17:00:59]line Версия ККМ: v1.0 [17:00:59]line ФМ: 0000000002094219 [17:00:59]line ФД: 30403 [17:00:59]line ФПД: 118713113175675 [17:00:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T170058&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30403&fm=118713113175675&tin=02508201610067®Number=0000000000186857&sum=187100 [17:00:59]OFD Sender: Processing packet 30403 [packets to send 10, broken 9] [17:00:59]ProducePacketName [17:00:59]name=ofd_packets/00030403 [17:00:59]OFD Sender: To server: pG, [17:00:59]CommunicateWithHost lk.salyk.kg:30040 [17:00:59]ConnectInit lk.salyk.kg [17:00:59]written 0, free lines is 4095 [17:00:59]Connected sock=10 [17:00: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 16 C1 07 01 D4 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 42 6D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 EF DA 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC DA 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 78 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 4D 00 00 00 00 07 04 06 00 DC DA 02 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 4A 37 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 6B F8 0C F0 E6 7B B8 13 8D F0 BB 5F 0D 54 [17:01: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 E7 5F 47 00 33 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 C3 76 00 00 F4 03 04 00 CD E1 14 67 B6 04 01 00 00 BF 64 89 73 9E E6 A7 B6 [17:01:00]CommunicateWithHost err = 0 [17:01:00]CheckOFDResponse [17:01:00]1017 (14) - 77093643461234 [17:01:00]1041 (16) - 0000000002094219 [17:01:00]1040 (4) - 30403 [17:01:00]1012 (4) - 20.10.2024 10:56 [17:01:00]1206 (1) - 0 [17:01:00]OFD Sender: Remove packet 30403 [17:01:00]ProducePacketName [17:01:00]name=ofd_packets/00030403 [17:01:00]NVStorageDeleteData [17:01:00]Write to MH i2c: 01 00 00 90 00 90 [17:01:00]Write i2c OK [17:01:00]MH_I2C_Read... [17:01:00]Read from MH i2c: 01 [17:01:00]MH_I2C_Read... [17:01:00]Read from MH i2c: 01 07 00 [17:01:00]MH_I2C_Read... [17:01:00]Read from MH i2c: 01 07 00 90 00 00 00 00 00 00 F5 0C 98 [17:01:00]RasterBufferAndPrint [17:01:00]line [17:01:00]line [17:01:00]line [17:01:00]line [17:01:00]line [17:01:00]written 0, free lines is 3323 [17:01:00]MH_Cut [17:01:00]Write to MH i2c: D1 01 00 97 00 01 69 [17:01:00]Write i2c OK [17:01:00]MH_I2C_Read... [17:01:00]Read from MH i2c: D1 [17:01:00]MH_I2C_Read... [17:01:00]Read from MH i2c: D1 01 00 [17:01:00]MH_I2C_Read... [17:01:00]Read from MH i2c: D1 01 00 97 00 00 68 [17:01:00]Write to MH i2c: 01 00 00 98 00 98 [17:01:00]Write i2c OK [17:01:00]MH_I2C_Read... [17:01:00]OFD Sender: No OFD packet to send [17:01:01]*** Cut start [17:01:01]*** Partial cut [17:01:01]*** CUTSNS_PIN = 1 [17:01:01]*** CUTSNS_PIN = 0 [17:01:01]*** Brake cut motor [17:01:01]Read from MH i2c: 01 [17:01:01]MH_I2C_Read... [17:01:01]*** Stop cut motor [17:01:01]*** Cut end [17:01:01]Read from MH i2c: 01 07 00 [17:01:01]MH_I2C_Read... [17:01:01]Read from MH i2c: 01 07 00 98 00 00 00 00 00 00 FF 0F AD [17:01:01]process_action close_receipt done [17:01:01]requested_data is exist [17:01:01]produce_requested_data [17:01:01]requested_item fm.sn is exist - process it [17:01:01]wFMCommunicate request_size=4 [17:01:01]MH_SAM_APDU [17:01:01]CAPDU: 80 11 00 00 [17:01:01]Write to MH i2c: E2 08 00 99 00 80 11 00 00 00 00 00 00 13 [17:01:01]Write i2c OK [17:01:01]MH_I2C_Read... [17:01:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:01:01]Read from MH i2c: E2 [17:01:01]MH_I2C_Read... [17:01:01]Read from MH i2c: E2 17 00 [17:01:01]MH_I2C_Read... [17:01:01]Read from MH i2c: E2 17 00 99 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 61 [17:01: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:01:01]wFMCommunicate OK [17:01:01]requested_item fd.num is exist - process it [17:01:01]SAM_PROTO_GetFieldsCounters [17:01:01]wFMCommunicate request_size=4 [17:01:01]MH_SAM_APDU [17:01:01]CAPDU: 80 13 00 00 [17:01:01]Write to MH i2c: E2 08 00 9A 00 80 13 00 00 00 00 00 00 16 [17:01:01]Write i2c OK [17:01:01]MH_I2C_Read... [17:01:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:01:01]Read from MH i2c: E2 [17:01:01]MH_I2C_Read... [17:01:01]Read from MH i2c: E2 62 00 [17:01:01]MH_I2C_Read... [17:01:01]Read from MH i2c: E2 62 00 9A 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 12 [17:01: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 C3 76 00 00 0E 04 04 00 72 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:01:01]wFMCommunicate OK [17:01:01]SAM_PROTO_GetFieldsCounters done [17:01:01]requested_item shift.num is exist - process it [17:01:01]requested_item shift.opened is exist - process it [17:01:01]req_shift_opened [17:01:01]FM_GetShiftState [17:01:01]SAM_PROTO_GetShiftState [17:01:01]wFMCommunicate request_size=4 [17:01:01]MH_SAM_APDU [17:01:01]CAPDU: 80 13 01 00 [17:01:01]Write to MH i2c: E2 08 00 9B 00 80 13 01 00 00 00 00 00 18 [17:01:01]Write i2c OK [17:01:01]MH_I2C_Read... [17:01:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:01:01]Read from MH i2c: E2 [17:01:01]MH_I2C_Read... [17:01:01]Read from MH i2c: E2 0E 00 [17:01:01]MH_I2C_Read... [17:01:01]Read from MH i2c: E2 0E 00 9B 00 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 FE [17:01:01]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [17:01:01]wFMCommunicate OK [17:01:01]SAM_PROTO_GetShiftState done [17:01:01]FM_GetShiftState done [17:01:01]req_shift_opened done [17:01:01]requested_item shift.open_date is exist - process it [17:01:01]req_shift_open_date [17:01:01]req_shift_open_date done [17:01:01]produce_requested_data done [17:01:01]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30403,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [17:01:01]process_action_free close_receipt [17:01:01]json_value_free [17:01:01]json_value_free done [17:01:01]process_json_proto returns [17:01:01]Send response to host [17:01:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30403,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [17:01:01]free response buf [17:01:01]execute_script done [17:01:01]execute_script returns [17:01:01]free content buf [17:01:01]Sock 6.Close socket [17:01:01]Sock 6.Thread stoped [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:30]accept exits with 9 [17:01:30]New connection [17:01:30]New thread 3067489636 created [17:01:30]Thread 3067346276 joined [17:01:30]Waiting for new connection... [17:01:30] Sock 9.Parse request [17:01:30]Sock 9.Check first char [17:01:30]Sock 9.First char is OK [17:01:30]request: POST /json_proto HTTP/1.0 [17:01:30]Method: POST [17:01:30]URL: /json_proto [17:01:30]Method is POST - this is cgi request [17:01:30]url: /json_proto [17:01:30]query_string will be loaded in cgi processing [17:01:30]execute_cgi json_proto POST (null) [17:01:30]execute_cgi path=json_proto method=POST [17:01:30]POST find Content-Length [17:01:30]Host: 172.17.51.3:8080 [17:01:30]Content-Length: 840 [17:01:30]Content-Type: application/json [17:01:30] [17:01:30]POST finish read [17:01:30]Found Content-Length = 840 [17:01:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342803", "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 }]} ], "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" ] } } [17:01:30]execute_script... [17:01: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)342803", "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 }]} ], "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" ] } } [17:01:30]POST & json_proto [17:01:30]process_json_proto [17:01:30]json parsed OK: [17:01:30]protocol is kg_v1.0 [17:01:30]action value=close_receipt [17:01:30]process_action close_receipt [17:01:30]cmd_close_receipt [17:01:30]MH_GetDate [17:01:30]Write to MH i2c: F0 00 00 9C 00 8B [17:01:30]Write i2c OK [17:01:30]MH_I2C_Read... [17:01:30]Read from MH i2c: F0 [17:01:30]MH_I2C_Read... [17:01:30]Read from MH i2c: F0 09 00 [17:01:30]MH_I2C_Read... [17:01:30]Read from MH i2c: F0 09 00 9C 00 00 6A 37 15 67 04 C1 95 66 71 [17:01:30]GetLastDocTimeStamp 1729443658 [17:01:30]current date 1729443690 [17:01:30]FM_GetShiftState [17:01:30]SAM_PROTO_GetShiftState [17:01:30]wFMCommunicate request_size=4 [17:01:30]MH_SAM_APDU [17:01:30]CAPDU: 80 13 01 00 [17:01:30]Write to MH i2c: E2 08 00 9D 00 80 13 01 00 00 00 00 00 1A [17:01:30]Write i2c OK [17:01:30]MH_I2C_Read... [17:01:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:01:30]Read from MH i2c: E2 [17:01:30]MH_I2C_Read... [17:01:30]Read from MH i2c: E2 0E 00 [17:01:30]MH_I2C_Read... [17:01:30]Read from MH i2c: E2 0E 00 9D 00 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 00 [17:01:30]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [17:01:30]wFMCommunicate OK [17:01:30]SAM_PROTO_GetShiftState done [17:01:30]FM_GetShiftState done [17:01:30]opened in 1729384718 [17:01:30]opened+sec_in_day 1729471118 [17:01:30]quantity*price = 50041 [17:01:30]sum+1 = 50042 [17:01:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 186 20.10.2024 17:01 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Платежная система: АКБ Кыргызстан ФМ: 0000000002094219 ФД: 30404 ФПД: 158446485124510 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T170130&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30404&fm=158446485124510&tin=02508201610067®Number=0000000000186857&sum=50041 [17:01:32]StoreToDocumentArchive [17:01:32]shift 114 fd 30404 [17:01:32]save to /storage/0114/doc_00030404 [17:01:32]save last doc name /storage/0114/doc_00030404 to /storage/kkm_last_doc_name [17:01:32]save OK [17:01:32]Clear old archive folders... [17:01:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:01:32]tlvbuf is 01E10390 [17:01:32]SAM_PROTO_ClearQueue [17:01:32]wFMCommunicate request_size=4 [17:01:32]MH_SAM_APDU [17:01:32]CAPDU: 80 09 00 00 [17:01:32]Write to MH i2c: E2 08 00 AA 00 80 09 00 00 00 00 00 00 1C [17:01:32]Write i2c OK [17:01:32]MH_I2C_Read... [17:01:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:01:32]Read from MH i2c: E2 [17:01:32]MH_I2C_Read... [17:01:32]Read from MH i2c: E2 03 00 [17:01:32]MH_I2C_Read... [17:01:32]Read from MH i2c: E2 03 00 AA 00 00 90 00 1E [17:01:32]RAPDU: 90 00 [17:01:32]wFMCommunicate OK [17:01:32]SAM_PROTO_ClearQueue done [17:01:32]KKMCreateOFDPacket [17:01:32]OFDProtocolAddRootSTLVToBuf [17:01:32]FM_MakeSignedData [17:01:32]FM_MakeSignedData [17:01:32]SAM_PROTO_SignData [17:01:32]wFMCommunicate request_size=4 [17:01:32]MH_SAM_APDU [17:01:32]CAPDU: 80 0D 01 02 [17:01:32]Write to MH i2c: E2 08 00 AB 00 80 0D 01 02 00 00 00 00 24 [17:01:32]Write i2c OK [17:01:32]MH_I2C_Read... [17:01:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:01:32]Read from MH i2c: E2 [17:01:32]MH_I2C_Read... [17:01:32]Read from MH i2c: E2 03 00 [17:01:32]MH_I2C_Read... [17:01:32]Read from MH i2c: E2 03 00 AB 00 00 90 00 1F [17:01:32]RAPDU: 90 00 [17:01:32]wFMCommunicate OK [17:01:32]wFMCommunicate request_size=255 [17:01:32]MH_SAM_APDU [17: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 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 BA 00 00 00 F4 03 04 00 6A 37 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 90 [17:01:32]Write to MH i2c: E2 02 01 AC 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 BA 00 00 00 F4 03 04 00 6A 37 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 90 00 00 1A [17:01:32]Write i2c OK [17:01:32]MH_I2C_Read... [17:01:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:01:32]Read from MH i2c: E2 [17:01:32]MH_I2C_Read... [17:01:32]Read from MH i2c: E2 03 00 [17:01:32]MH_I2C_Read... [17:01:32]Read from MH i2c: E2 03 00 AC 00 00 90 00 20 [17:01:32]RAPDU: 90 00 [17:01:32]wFMCommunicate OK [17:01:32]wFMCommunicate request_size=10 [17:01:32]MH_SAM_APDU [17:01:32]CAPDU: 80 0D 02 02 05 1B 32 76 35 9E [17:01:32]Write to MH i2c: E2 0D 00 AD 00 80 0D 02 02 05 00 1B 32 76 35 9E 00 00 C7 [17:01:32]Write i2c OK [17:01:32]MH_I2C_Read... [17:01:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:01:32]Read from MH i2c: E2 [17:01:32]MH_I2C_Read... [17:01:32]Read from MH i2c: E2 03 00 [17:01:32]MH_I2C_Read... [17:01:32]Read from MH i2c: E2 03 00 AD 00 00 90 00 21 [17:01:32]RAPDU: 90 00 [17:01:32]wFMCommunicate OK [17:01:32]wFMCommunicate request_size=4 [17:01:32]MH_SAM_APDU [17:01:32]CAPDU: 80 0D 03 02 [17:01:32]Write to MH i2c: E2 08 00 AE 00 80 0D 03 02 00 00 00 00 29 [17:01:32]Write i2c OK [17:01:32]MH_I2C_Read... [17:01:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:01:32]Read from MH i2c: E2 [17:01:32]MH_I2C_Read... [17:01:32]Read from MH i2c: E2 0B 00 [17:01:32]MH_I2C_Read... [17:01:32]Read from MH i2c: E2 0B 00 AE 00 00 2D 87 DD BC 0C BA 56 A8 90 00 3B [17:01:32]RAPDU: 2D 87 DD BC 0C BA 56 A8 90 00 [17:01:32]wFMCommunicate OK [17:01:32]SAM_PROTO_SignData done [17:01:32]FM_MakeSignedData done [17:01:32]CreateOFDProtocolMessage [17:01:32]wFMCommunicate request_size=4 [17:01:32]MH_SAM_APDU [17:01:32]CAPDU: 80 11 00 00 [17:01:32]Write to MH i2c: E2 08 00 AF 00 80 11 00 00 00 00 00 00 29 [17:01:32]Write i2c OK [17:01:32]MH_I2C_Read... [17:01:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:01:32]Read from MH i2c: E2 [17:01:32]MH_I2C_Read... [17:01:32]Read from MH i2c: E2 17 00 [17:01:32]MH_I2C_Read... [17:01:32]Read from MH i2c: E2 17 00 AF 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 77 [17:01:32]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:32]wFMCommunicate OK [17:01:32]CreateOFDProtocolMessage done [17:01:32]OFDSenderStorePacket 30404 [17:01:32]StoreOFDPacket docnum=30404 [17:01: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 8F 2F 07 01 C0 B1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 BA 00 00 00 F4 03 04 00 6A 37 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 90 1B 32 76 35 9E 2D 87 DD BC 0C BA 56 A8 [17:01:32]CheckFolder [17:01:32]dirname=/storage/ofd_packets [17:01:32]CheckFolder done [17:01:32]ProducePacketName [17:01:32]name=ofd_packets/00030404 [17:01:32]NVStorageSaveData ofd_packets/00030404 [17:01:32]File name is /storage/ofd_packets/00030404 [17:01:32]Write 301 bytes [17:01:32]NVStorageSaveData done [17:01:32]OFDSenderStorePacket done [17:01:32]KKMCreateOFDPacket done [17:01:32]NVStorageSaveData kkm_last_timestamp [17:01:32]File name is /storage/kkm_last_timestamp [17:01:32]Write 4 bytes [17:01:32]NVStorageSaveData done [17:01:32]ExternCall_PrintAddStr [17:01:32]wPrintStart [17:01:32]Write to MH i2c: 01 00 00 B0 00 B0 [17:01:32]Write i2c OK [17:01:32]MH_I2C_Read... [17:01:32]Read from MH i2c: 01 [17:01:32]MH_I2C_Read... [17:01:32]Read from MH i2c: 01 07 00 [17:01:32]MH_I2C_Read... [17:01:32]Read from MH i2c: 01 07 00 B0 00 00 00 00 00 00 FF 0F C5 [17:01:32]RasterBufferAndPrint [17:01:32]line Счет N : (1)342803 [17:01:32]line ИНН: 02508201610067 [17:01:32]line Контрольно-Кассовый Чек [17:01:32]line ПРОДАЖА [17:01:32]line ТРК (МРК, ГНК) : 63 [17:01:32]line Товар: 2710124130 [17:01:32]line Аи-92-К-2 [17:01:32]line 7.480 * 66.90 [17:01:32]line = 500.41 [17:01:32]line НДС 12% НСП 1% [17:01:32]line > о реализуемом товаре [17:01:32]line ИТОГО: 500.41 [17:01:32]line НСП 1% : 4.43 [17:01:32]line НДС 12% : 53.14 [17:01:32]line Наличными: 0.00 [17:01:32]line Безнал.: 500.41 [17:01:32]line Место: АЗС № 78 "Партнер Нефть" [17:01:32]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [17:01:32]line СНО: Общий режим [17:01:32]line Чек 186 20.10.2024 17:01 [17:01:32]line Смена: 114 ФФД: 1.0 [17:01:32]line ЗНМ: 0300000137 [17:01:32]line РНМ: 0000000000186857 [17:01:32]line Версия ККМ: v1.0 [17:01:32]line Платежная система: АКБ Кыргызстан [17:01:32]line ФМ: 0000000002094219 [17:01:32]line ФД: 30404 [17:01:32]line ФПД: 158446485124510 [17:01:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T170130&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30404&fm=158446485124510&tin=02508201610067®Number=0000000000186857&sum=50041 [17:01:32]OFD Sender: Processing packet 30404 [packets to send 10, broken 9] [17:01:32]ProducePacketName [17:01:32]name=ofd_packets/00030404 [17:01:32]OFD Sender: To server: pG, [17:01:32]CommunicateWithHost lk.salyk.kg:30040 [17:01:32]ConnectInit lk.salyk.kg [17:01:32]written 0, free lines is 4095 [17:01:32]Connected sock=10 [17:01: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 8F 2F 07 01 C0 B1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 BA 00 00 00 F4 03 04 00 6A 37 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 90 1B 32 76 35 9E 2D 87 DD BC 0C BA 56 A8 [17: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 2D D1 47 00 2E 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 C4 76 00 00 F4 03 04 00 EE E1 14 67 B6 04 01 00 00 87 F5 E7 61 1D DA CA D5 [17:01:33]CommunicateWithHost err = 0 [17:01:33]CheckOFDResponse [17:01:33]1017 (14) - 77093643461234 [17:01:33]1041 (16) - 0000000002094219 [17:01:33]1040 (4) - 30404 [17:01:33]1012 (4) - 20.10.2024 10:56 [17:01:33]1206 (1) - 0 [17:01:33]OFD Sender: Remove packet 30404 [17:01:33]ProducePacketName [17:01:33]name=ofd_packets/00030404 [17:01:33]NVStorageDeleteData [17:01:33]Write to MH i2c: 01 00 00 DA 00 DA [17:01:33]Write i2c OK [17:01:33]MH_I2C_Read... [17:01:33]Read from MH i2c: 01 [17:01:33]MH_I2C_Read... [17:01:33]Read from MH i2c: 01 07 00 [17:01:33]MH_I2C_Read... [17:01:33]Read from MH i2c: 01 07 00 DA 00 00 00 00 00 00 01 0D EF [17:01:33]RasterBufferAndPrint [17:01:33]line [17:01:33]line [17:01:33]line [17:01:33]line [17:01:33]line [17:01:33]written 0, free lines is 3335 [17:01:33]MH_Cut [17:01:33]Write to MH i2c: D1 01 00 E1 00 01 B3 [17:01:33]Write i2c OK [17:01:33]MH_I2C_Read... [17:01:33]Read from MH i2c: D1 [17:01:33]MH_I2C_Read... [17:01:33]Read from MH i2c: D1 01 00 [17:01:33]MH_I2C_Read... [17:01:33]Read from MH i2c: D1 01 00 E1 00 00 B2 [17:01:33]Write to MH i2c: 01 00 00 E2 00 E2 [17:01:33]Write i2c OK [17:01:33]MH_I2C_Read... [17:01:33]OFD Sender: No OFD packet to send [17:01:34]*** Cut start [17:01:34]*** Partial cut [17:01:34]*** CUTSNS_PIN = 1 [17:01:34]*** CUTSNS_PIN = 0 [17:01:34]*** Brake cut motor [17:01:34]Read from MH i2c: 01 [17:01:34]MH_I2C_Read... [17:01:34]*** Stop cut motor [17:01:34]*** Cut end [17:01:34]Read from MH i2c: 01 07 00 [17:01:34]MH_I2C_Read... [17:01:34]Read from MH i2c: 01 07 00 E2 00 00 00 00 00 00 FF 0F F7 [17:01:34]process_action close_receipt done [17:01:34]requested_data is exist [17:01:34]produce_requested_data [17:01:34]requested_item fm.sn is exist - process it [17:01:34]wFMCommunicate request_size=4 [17:01:34]MH_SAM_APDU [17:01:34]CAPDU: 80 11 00 00 [17:01:34]Write to MH i2c: E2 08 00 E3 00 80 11 00 00 00 00 00 00 5D [17:01:34]Write i2c OK [17:01:34]MH_I2C_Read... [17:01:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:01:34]Read from MH i2c: E2 [17:01:34]MH_I2C_Read... [17:01:34]Read from MH i2c: E2 17 00 [17:01:34]MH_I2C_Read... [17:01:34]Read from MH i2c: E2 17 00 E3 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 AB [17:01:34]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:34]wFMCommunicate OK [17:01:34]requested_item fd.num is exist - process it [17:01:34]SAM_PROTO_GetFieldsCounters [17:01:34]wFMCommunicate request_size=4 [17:01:34]MH_SAM_APDU [17:01:34]CAPDU: 80 13 00 00 [17:01:34]Write to MH i2c: E2 08 00 E4 00 80 13 00 00 00 00 00 00 60 [17:01:34]Write i2c OK [17:01:34]MH_I2C_Read... [17:01:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:01:34]Read from MH i2c: E2 [17:01:34]MH_I2C_Read... [17:01:34]Read from MH i2c: E2 62 00 [17:01:34]MH_I2C_Read... [17:01:34]Read from MH i2c: E2 62 00 E4 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 60 [17:01: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 C4 76 00 00 0E 04 04 00 72 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:01:34]wFMCommunicate OK [17:01:34]SAM_PROTO_GetFieldsCounters done [17:01:34]requested_item shift.num is exist - process it [17:01:34]requested_item shift.opened is exist - process it [17:01:34]req_shift_opened [17:01:34]FM_GetShiftState [17:01:34]SAM_PROTO_GetShiftState [17:01:34]wFMCommunicate request_size=4 [17:01:34]MH_SAM_APDU [17:01:34]CAPDU: 80 13 01 00 [17:01:34]Write to MH i2c: E2 08 00 E5 00 80 13 01 00 00 00 00 00 62 [17:01:34]Write i2c OK [17:01:34]MH_I2C_Read... [17:01:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:01:34]Read from MH i2c: E2 [17:01:34]MH_I2C_Read... [17:01:34]Read from MH i2c: E2 0E 00 [17:01:34]MH_I2C_Read... [17:01:34]Read from MH i2c: E2 0E 00 E5 00 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 48 [17:01:34]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [17:01:34]wFMCommunicate OK [17:01:34]SAM_PROTO_GetShiftState done [17:01:34]FM_GetShiftState done [17:01:34]req_shift_opened done [17:01:34]requested_item shift.open_date is exist - process it [17:01:34]req_shift_open_date [17:01:34]req_shift_open_date done [17:01:34]produce_requested_data done [17:01:34]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30404,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [17:01:34]process_action_free close_receipt [17:01:34]json_value_free [17:01:34]json_value_free done [17:01:34]process_json_proto returns [17:01:34]Send response to host [17:01:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30404,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [17:01:34]free response buf [17:01:34]execute_script done [17:01:34]execute_script returns [17:01:34]free content buf [17:01:34]Sock 9.Close socket [17:01:34]Sock 9.Thread stoped [17:01:38]OFD Sender: No OFD packet to send [17:01:43]OFD Sender: No OFD packet to send [17:01:48]OFD Sender: No OFD packet to send [17:01:53]OFD Sender: No OFD packet to send [17:01:58]OFD Sender: No OFD packet to send [17:02:03]OFD Sender: No OFD packet to send [17:02:08]OFD Sender: No OFD packet to send [17:02:13]OFD Sender: No OFD packet to send [17:02:18]OFD Sender: No OFD packet to send [17:02:23]OFD Sender: No OFD packet to send [17:02:28]OFD Sender: No OFD packet to send [17:02:33]OFD Sender: No OFD packet to send [17:02:38]OFD Sender: No OFD packet to send [17:02:43]OFD Sender: No OFD packet to send [17:02:48]OFD Sender: No OFD packet to send [17:02:50]accept exits with 7 [17:02:50]New connection [17:02:50]New thread 3067346276 created [17:02:50]Thread 3067489636 joined [17:02:50]Waiting for new connection... [17:02:50] Sock 7.Parse request [17:02:50]Sock 7.Check first char [17:02:50]Sock 7.First char is OK [17:02:50]request: POST /json_proto HTTP/1.0 [17:02:50]Method: POST [17:02:50]URL: /json_proto [17:02:50]Method is POST - this is cgi request [17:02:50]url: /json_proto [17:02:50]query_string will be loaded in cgi processing [17:02:50]execute_cgi json_proto POST (null) [17:02:50]execute_cgi path=json_proto method=POST [17:02:50]POST find Content-Length [17:02:50]Host: 172.17.51.3:8080 [17:02:50]Content-Length: 674 [17:02:50]Content-Type: application/json [17:02:50] [17:02:50]POST finish read [17:02:50]Found Content-Length = 674 [17:02:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342805", "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" : 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" ] } } [17:02:50]execute_script... [17:02:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342805", "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" : 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" ] } } [17:02:50]POST & json_proto [17:02:50]process_json_proto [17:02:50]json parsed OK: [17:02:50]protocol is kg_v1.0 [17:02:50]action value=close_receipt [17:02:50]process_action close_receipt [17:02:50]cmd_close_receipt [17:02:50]MH_GetDate [17:02:50]Write to MH i2c: F0 00 00 E6 00 D5 [17:02:50]Write i2c OK [17:02:50]MH_I2C_Read... [17:02:50]Read from MH i2c: F0 [17:02:50]MH_I2C_Read... [17:02:50]Read from MH i2c: F0 09 00 [17:02:50]MH_I2C_Read... [17:02:50]Read from MH i2c: F0 09 00 E6 00 00 BA 37 15 67 04 C1 95 66 0B [17:02:50]GetLastDocTimeStamp 1729443690 [17:02:50]current date 1729443770 [17:02:50]FM_GetShiftState [17:02:50]SAM_PROTO_GetShiftState [17:02:50]wFMCommunicate request_size=4 [17:02:50]MH_SAM_APDU [17:02:50]CAPDU: 80 13 01 00 [17:02:50]Write to MH i2c: E2 08 00 E7 00 80 13 01 00 00 00 00 00 64 [17:02:50]Write i2c OK [17:02:50]MH_I2C_Read... [17:02:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:02:50]Read from MH i2c: E2 [17:02:50]MH_I2C_Read... [17:02:50]Read from MH i2c: E2 0E 00 [17:02:50]MH_I2C_Read... [17:02:50]Read from MH i2c: E2 0E 00 E7 00 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 4A [17:02:50]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [17:02:50]wFMCommunicate OK [17:02:50]SAM_PROTO_GetShiftState done [17:02:50]FM_GetShiftState done [17:02:50]opened in 1729384718 [17:02:50]opened+sec_in_day 1729471118 [17:02:50]quantity*price = 70027 [17:02:50]sum+1 = 70029 [17:02:50]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 СНО: Общий режим Чек 187 20.10.2024 17:02 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30405 ФПД: 45501659451640 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T170250&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30405&fm=45501659451640&tin=02508201610067®Number=0000000000186857&sum=70000 [17:02:51]StoreToDocumentArchive [17:02:51]shift 114 fd 30405 [17:02:51]save to /storage/0114/doc_00030405 [17:02:51]save last doc name /storage/0114/doc_00030405 to /storage/kkm_last_doc_name [17:02:51]save OK [17:02:51]Clear old archive folders... [17:02:51]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:02:51]tlvbuf is 01DB0F30 [17:02:51]SAM_PROTO_ClearQueue [17:02:51]wFMCommunicate request_size=4 [17:02:51]MH_SAM_APDU [17:02:51]CAPDU: 80 09 00 00 [17:02:51]Write to MH i2c: E2 08 00 F4 00 80 09 00 00 00 00 00 00 66 [17:02:51]Write i2c OK [17:02:51]MH_I2C_Read... [17:02:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:02:51]Read from MH i2c: E2 [17:02:51]MH_I2C_Read... [17:02:51]Read from MH i2c: E2 03 00 [17:02:51]MH_I2C_Read... [17:02:51]Read from MH i2c: E2 03 00 F4 00 00 90 00 68 [17:02:51]RAPDU: 90 00 [17:02:51]wFMCommunicate OK [17:02:51]SAM_PROTO_ClearQueue done [17:02:51]KKMCreateOFDPacket [17:02:51]OFDProtocolAddRootSTLVToBuf [17:02:51]FM_MakeSignedData [17:02:51]FM_MakeSignedData [17:02:51]SAM_PROTO_SignData [17:02:51]wFMCommunicate request_size=4 [17:02:51]MH_SAM_APDU [17:02:51]CAPDU: 80 0D 01 02 [17:02:51]Write to MH i2c: E2 08 00 F5 00 80 0D 01 02 00 00 00 00 6E [17:02:51]Write i2c OK [17:02:51]MH_I2C_Read... [17:02:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:02:51]Read from MH i2c: E2 [17:02:51]MH_I2C_Read... [17:02:51]Read from MH i2c: E2 03 00 [17:02:51]MH_I2C_Read... [17:02:51]Read from MH i2c: E2 03 00 F5 00 00 90 00 69 [17:02:51]RAPDU: 90 00 [17:02:51]wFMCommunicate OK [17:02:51]wFMCommunicate request_size=255 [17:02:51]MH_SAM_APDU [17:02:51]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 BB 00 00 00 F4 03 04 00 BA 37 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 29 62 2E 3F [17:02:51]Write to MH i2c: E2 02 01 F6 00 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 BB 00 00 00 F4 03 04 00 BA 37 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 29 62 2E 3F 00 00 BE [17:02:51]Write i2c OK [17:02:51]MH_I2C_Read... [17:02:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:02:51]Read from MH i2c: E2 [17:02:51]MH_I2C_Read... [17:02:51]Read from MH i2c: E2 03 00 [17:02:51]MH_I2C_Read... [17:02:51]Read from MH i2c: E2 03 00 F6 00 00 90 00 6A [17:02:51]RAPDU: 90 00 [17:02:51]wFMCommunicate OK [17:02:51]wFMCommunicate request_size=7 [17:02:51]MH_SAM_APDU [17:02:51]CAPDU: 80 0D 02 02 02 90 F8 [17:02:51]Write to MH i2c: E2 0A 00 F7 00 80 0D 02 02 02 00 90 F8 00 00 FD [17:02:51]Write i2c OK [17:02:51]MH_I2C_Read... [17:02:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:02:51]Read from MH i2c: E2 [17:02:51]MH_I2C_Read... [17:02:51]Read from MH i2c: E2 03 00 [17:02:51]MH_I2C_Read... [17:02:51]Read from MH i2c: E2 03 00 F7 00 00 90 00 6B [17:02:51]RAPDU: 90 00 [17:02:51]wFMCommunicate OK [17:02:51]wFMCommunicate request_size=4 [17:02:51]MH_SAM_APDU [17:02:51]CAPDU: 80 0D 03 02 [17:02:51]Write to MH i2c: E2 08 00 F8 00 80 0D 03 02 00 00 00 00 73 [17:02:51]Write i2c OK [17:02:51]MH_I2C_Read... [17:02:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:02:51]Read from MH i2c: E2 [17:02:51]MH_I2C_Read... [17:02:51]Read from MH i2c: E2 0B 00 [17:02:51]MH_I2C_Read... [17:02:51]Read from MH i2c: E2 0B 00 F8 00 00 9C FB 17 3C 20 A8 52 52 90 00 CA [17:02:51]RAPDU: 9C FB 17 3C 20 A8 52 52 90 00 [17:02:51]wFMCommunicate OK [17:02:51]SAM_PROTO_SignData done [17:02:51]FM_MakeSignedData done [17:02:51]CreateOFDProtocolMessage [17:02:51]wFMCommunicate request_size=4 [17:02:51]MH_SAM_APDU [17:02:51]CAPDU: 80 11 00 00 [17:02:51]Write to MH i2c: E2 08 00 F9 00 80 11 00 00 00 00 00 00 73 [17:02:51]Write i2c OK [17:02:51]MH_I2C_Read... [17:02:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:02:51]Read from MH i2c: E2 [17:02:51]MH_I2C_Read... [17:02:51]Read from MH i2c: E2 17 00 [17:02:51]MH_I2C_Read... [17:02:51]Read from MH i2c: E2 17 00 F9 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 C1 [17:02:51]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:51]wFMCommunicate OK [17:02:51]CreateOFDProtocolMessage done [17:02:51]OFDSenderStorePacket 30405 [17:02:51]StoreOFDPacket docnum=30405 [17:02: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 0C 01 00 00 26 C2 04 01 F2 BE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 BB 00 00 00 F4 03 04 00 BA 37 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 29 62 2E 3F 90 F8 9C FB 17 3C 20 A8 52 52 [17:02:51]CheckFolder [17:02:51]dirname=/storage/ofd_packets [17:02:51]CheckFolder done [17:02:51]ProducePacketName [17:02:51]name=ofd_packets/00030405 [17:02:51]NVStorageSaveData ofd_packets/00030405 [17:02:51]File name is /storage/ofd_packets/00030405 [17:02:51]Write 298 bytes [17:02:51]NVStorageSaveData done [17:02:51]OFDSenderStorePacket done [17:02:51]KKMCreateOFDPacket done [17:02:51]NVStorageSaveData kkm_last_timestamp [17:02:51]File name is /storage/kkm_last_timestamp [17:02:51]Write 4 bytes [17:02:51]NVStorageSaveData done [17:02:51]OFD Sender: Processing packet 30405 [packets to send 10, broken 9] [17:02:51]ProducePacketName [17:02:51]name=ofd_packets/00030405 [17:02:51]OFD Sender: To server: pG, [17:02:51]CommunicateWithHost lk.salyk.kg:30040 [17:02:51]ConnectInit lk.salyk.kg [17:02:51]ExternCall_PrintAddStr [17:02:51]wPrintStart [17:02:51]Write to MH i2c: 01 00 00 FA 00 FA [17:02:51]Write i2c OK [17:02:51]MH_I2C_Read... [17:02:51]Read from MH i2c: 01 [17:02:51]MH_I2C_Read... [17:02:51]Read from MH i2c: 01 07 00 [17:02:51]MH_I2C_Read... [17:02:51]Read from MH i2c: 01 07 00 FA 00 00 00 00 00 00 FF 0F 0F [17:02:51]RasterBufferAndPrint [17:02:51]line Счет N : (1)342805 [17:02:51]line ИНН: 02508201610067 [17:02:51]line Контрольно-Кассовый Чек [17:02:51]line ПРОДАЖА [17:02:51]line ТРК (МРК, ГНК) : 34 [17:02:51]line Товар: 2710194210 [17:02:51]line ДТ-К-2 [17:02:51]line 9.190 * 76.20 [17:02:51]line = 700.28 [17:02:51]line НДС 12% НСП 1% [17:02:51]line > о реализуемом товаре [17:02:51]line ОКРУГЛЕНИЕ: -0.28 [17:02:51]line ИТОГО: 700.00 [17:02:51]line Внесено: 700.00 [17:02:51]line СДАЧА: 0.00 [17:02:51]line НСП 1% : 6.20 [17:02:51]line НДС 12% : 74.37 [17:02:51]line Наличными: 700.00 [17:02:51]line Безнал.: 0.00 [17:02:51]line Место: АЗС № 78 "Партнер Нефть" [17:02:51]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [17:02:51]line СНО: Общий режим [17:02:51]line Чек 187 20.10.2024 17:02 [17:02:51]line Смена: 114 ФФД: 1.0 [17:02:51]line ЗНМ: 0300000137 [17:02:51]line РНМ: 0000000000186857 [17:02:52]line Версия ККМ: v1.0 [17:02:52]line ФМ: 0000000002094219 [17:02:52]line ФД: 30405 [17:02:52]line ФПД: 45501659451640 [17:02:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T170250&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30405&fm=45501659451640&tin=02508201610067®Number=0000000000186857&sum=70000 [17:02:52]Connected sock=11 [17:02: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 0C 01 00 00 26 C2 04 01 F2 BE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 BB 00 00 00 F4 03 04 00 BA 37 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 29 62 2E 3F 90 F8 9C FB 17 3C 20 A8 52 52 [17:02:52]written 0, free lines is 4095 [17:02: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 24 E2 47 00 8D 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 C5 76 00 00 F4 03 04 00 3D E2 14 67 B6 04 01 00 00 FA E1 61 42 5B F7 2F C2 [17:02:52]CommunicateWithHost err = 0 [17:02:52]CheckOFDResponse [17:02:52]1017 (14) - 77093643461234 [17:02:52]1041 (16) - 0000000002094219 [17:02:52]1040 (4) - 30405 [17:02:52]1012 (4) - 20.10.2024 10:58 [17:02:52]1206 (1) - 0 [17:02:52]OFD Sender: Remove packet 30405 [17:02:52]ProducePacketName [17:02:52]name=ofd_packets/00030405 [17:02:52]NVStorageDeleteData [17:02:52]Write to MH i2c: 01 00 00 25 01 26 [17:02:52]Write i2c OK [17:02:52]MH_I2C_Read... [17:02:52]Read from MH i2c: 01 [17:02:52]MH_I2C_Read... [17:02:52]Read from MH i2c: 01 07 00 [17:02:52]MH_I2C_Read... [17:02:52]Read from MH i2c: 01 07 00 25 01 00 00 00 00 00 E6 0C 1F [17:02:52]RasterBufferAndPrint [17:02:52]line [17:02:52]line [17:02:52]line [17:02:52]line [17:02:52]line [17:02:52]written 0, free lines is 3309 [17:02:52]MH_Cut [17:02:52]Write to MH i2c: D1 01 00 2C 01 01 FF [17:02:52]Write i2c OK [17:02:52]MH_I2C_Read... [17:02:52]Read from MH i2c: D1 [17:02:52]MH_I2C_Read... [17:02:52]Read from MH i2c: D1 01 00 [17:02:52]MH_I2C_Read... [17:02:52]Read from MH i2c: D1 01 00 2C 01 00 FE [17:02:52]Write to MH i2c: 01 00 00 2D 01 2E [17:02:52]Write i2c OK [17:02:52]MH_I2C_Read... [17:02:52]OFD Sender: No OFD packet to send [17:02:53]*** Cut start [17:02:53]*** Partial cut [17:02:53]*** CUTSNS_PIN = 1 [17:02:53]*** CUTSNS_PIN = 0 [17:02:53]*** Brake cut motor [17:02:53]Read from MH i2c: 01 [17:02:53]MH_I2C_Read... [17:02:53]*** Stop cut motor [17:02:53]*** Cut end [17:02:53]Read from MH i2c: 01 07 00 [17:02:53]MH_I2C_Read... [17:02:53]Read from MH i2c: 01 07 00 2D 01 00 00 00 00 00 FF 0F 43 [17:02:53]process_action close_receipt done [17:02:53]requested_data is exist [17:02:53]produce_requested_data [17:02:53]requested_item fm.sn is exist - process it [17:02:53]wFMCommunicate request_size=4 [17:02:53]MH_SAM_APDU [17:02:53]CAPDU: 80 11 00 00 [17:02:53]Write to MH i2c: E2 08 00 2E 01 80 11 00 00 00 00 00 00 A9 [17:02:53]Write i2c OK [17:02:53]MH_I2C_Read... [17:02:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:02:54]Read from MH i2c: E2 [17:02:54]MH_I2C_Read... [17:02:54]Read from MH i2c: E2 17 00 [17:02:54]MH_I2C_Read... [17:02:54]Read from MH i2c: E2 17 00 2E 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 F7 [17:02: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:02:54]wFMCommunicate OK [17:02:54]requested_item fd.num is exist - process it [17:02:54]SAM_PROTO_GetFieldsCounters [17:02:54]wFMCommunicate request_size=4 [17:02:54]MH_SAM_APDU [17:02:54]CAPDU: 80 13 00 00 [17:02:54]Write to MH i2c: E2 08 00 2F 01 80 13 00 00 00 00 00 00 AC [17:02:54]Write i2c OK [17:02:54]MH_I2C_Read... [17:02:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:02:54]Read from MH i2c: E2 [17:02:54]MH_I2C_Read... [17:02:54]Read from MH i2c: E2 62 00 [17:02:54]MH_I2C_Read... [17:02:54]Read from MH i2c: E2 62 00 2F 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 B0 [17:02: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 C5 76 00 00 0E 04 04 00 72 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:02:54]wFMCommunicate OK [17:02:54]SAM_PROTO_GetFieldsCounters done [17:02:54]requested_item shift.num is exist - process it [17:02:54]requested_item shift.opened is exist - process it [17:02:54]req_shift_opened [17:02:54]FM_GetShiftState [17:02:54]SAM_PROTO_GetShiftState [17:02:54]wFMCommunicate request_size=4 [17:02:54]MH_SAM_APDU [17:02:54]CAPDU: 80 13 01 00 [17:02:54]Write to MH i2c: E2 08 00 30 01 80 13 01 00 00 00 00 00 AE [17:02:54]Write i2c OK [17:02:54]MH_I2C_Read... [17:02:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:02:54]Read from MH i2c: E2 [17:02:54]MH_I2C_Read... [17:02:54]Read from MH i2c: E2 0E 00 [17:02:54]MH_I2C_Read... [17:02:54]Read from MH i2c: E2 0E 00 30 01 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 94 [17:02:54]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [17:02:54]wFMCommunicate OK [17:02:54]SAM_PROTO_GetShiftState done [17:02:54]FM_GetShiftState done [17:02:54]req_shift_opened done [17:02:54]requested_item shift.open_date is exist - process it [17:02:54]req_shift_open_date [17:02:54]req_shift_open_date done [17:02:54]produce_requested_data done [17:02:54]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30405,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [17:02:54]process_action_free close_receipt [17:02:54]json_value_free [17:02:54]json_value_free done [17:02:54]process_json_proto returns [17:02:54]Send response to host [17:02:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30405,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [17:02:54]free response buf [17:02:54]execute_script done [17:02:54]execute_script returns [17:02:54]free content buf [17:02:54]Sock 7.Close socket [17:02:54]Sock 7.Thread stoped [17:02:57]OFD Sender: No OFD packet to send [17:03:02]OFD Sender: No OFD packet to send [17:03:07]OFD Sender: No OFD packet to send [17:03:12]OFD Sender: No OFD packet to send [17:03:17]OFD Sender: No OFD packet to send [17:03:22]OFD Sender: No OFD packet to send [17:03:27]OFD Sender: No OFD packet to send [17:03:32]OFD Sender: No OFD packet to send [17:03:37]OFD Sender: No OFD packet to send [17:03:42]OFD Sender: No OFD packet to send [17:03:47]OFD Sender: No OFD packet to send [17:03:52]OFD Sender: No OFD packet to send [17:03:57]OFD Sender: No OFD packet to send [17:04:02]OFD Sender: No OFD packet to send [17:04:07]OFD Sender: No OFD packet to send [17:04: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:26]accept exits with 9 [17:04:26]New connection [17:04:26]New thread 3067489636 created [17:04:26]Thread 3067346276 joined [17:04:26]Waiting for new connection... [17:04:26] Sock 9.Parse request [17:04:26]Sock 9.Check first char [17:04:26]Sock 9.First char is OK [17:04:26]request: POST /json_proto HTTP/1.0 [17:04:26]Method: POST [17:04:26]URL: /json_proto [17:04:26]Method is POST - this is cgi request [17:04:26]url: /json_proto [17:04:26]query_string will be loaded in cgi processing [17:04:26]execute_cgi json_proto POST (null) [17:04:26]execute_cgi path=json_proto method=POST [17:04:26]POST find Content-Length [17:04:26]Host: 172.17.51.3:8080 [17:04:26]Content-Length: 677 [17:04:26]Content-Type: application/json [17:04:26] [17:04:26]POST finish read [17:04:26]Found Content-Length = 677 [17:04:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342804", "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" ] } } [17:04:26]execute_script... [17:04:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342804", "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" ] } } [17:04:26]POST & json_proto [17:04:26]process_json_proto [17:04:26]json parsed OK: [17:04:26]protocol is kg_v1.0 [17:04:26]action value=close_receipt [17:04:26]process_action close_receipt [17:04:26]cmd_close_receipt [17:04:26]MH_GetDate [17:04:26]Write to MH i2c: F0 00 00 31 01 21 [17:04:26]Write i2c OK [17:04:26]MH_I2C_Read... [17:04:26]Read from MH i2c: F0 [17:04:26]MH_I2C_Read... [17:04:26]Read from MH i2c: F0 09 00 [17:04:26]MH_I2C_Read... [17:04:26]Read from MH i2c: F0 09 00 31 01 00 1A 38 15 67 04 C1 95 66 B8 [17:04:26]GetLastDocTimeStamp 1729443770 [17:04:26]current date 1729443866 [17:04:26]FM_GetShiftState [17:04:26]SAM_PROTO_GetShiftState [17:04:26]wFMCommunicate request_size=4 [17:04:26]MH_SAM_APDU [17:04:26]CAPDU: 80 13 01 00 [17:04:26]Write to MH i2c: E2 08 00 32 01 80 13 01 00 00 00 00 00 B0 [17:04:26]Write i2c OK [17:04:26]MH_I2C_Read... [17:04:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:04:26]Read from MH i2c: E2 [17:04:26]MH_I2C_Read... [17:04:26]Read from MH i2c: E2 0E 00 [17:04:26]MH_I2C_Read... [17:04:26]Read from MH i2c: E2 0E 00 32 01 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 96 [17:04:26]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [17:04:26]wFMCommunicate OK [17:04:26]SAM_PROTO_GetShiftState done [17:04:26]FM_GetShiftState done [17:04:26]opened in 1729384718 [17:04:26]opened+sec_in_day 1729471118 [17:04:26]quantity*price = 20003 [17:04:26]sum+1 = 20004 [17:04:26]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 СНО: Общий режим Чек 188 20.10.2024 17:04 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30406 ФПД: 203472135128788 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T170426&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30406&fm=203472135128788&tin=02508201610067®Number=0000000000186857&sum=20000 [17:04:27]StoreToDocumentArchive [17:04:27]shift 114 fd 30406 [17:04:27]save to /storage/0114/doc_00030406 [17:04:27]save last doc name /storage/0114/doc_00030406 to /storage/kkm_last_doc_name [17:04:27]save OK [17:04:27]Clear old archive folders... [17:04:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:04:27]tlvbuf is 01DB2860 [17:04:27]SAM_PROTO_ClearQueue [17:04:27]wFMCommunicate request_size=4 [17:04:27]MH_SAM_APDU [17:04:27]CAPDU: 80 09 00 00 [17:04:27]Write to MH i2c: E2 08 00 3F 01 80 09 00 00 00 00 00 00 B2 [17:04:27]Write i2c OK [17:04:27]MH_I2C_Read... [17:04:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:04:27]Read from MH i2c: E2 [17:04:27]MH_I2C_Read... [17:04:27]Read from MH i2c: E2 03 00 [17:04:27]MH_I2C_Read... [17:04:27]Read from MH i2c: E2 03 00 3F 01 00 90 00 B4 [17:04:27]RAPDU: 90 00 [17:04:27]wFMCommunicate OK [17:04:27]SAM_PROTO_ClearQueue done [17:04:27]KKMCreateOFDPacket [17:04:27]OFDProtocolAddRootSTLVToBuf [17:04:27]FM_MakeSignedData [17:04:27]FM_MakeSignedData [17:04:27]SAM_PROTO_SignData [17:04:27]wFMCommunicate request_size=4 [17:04:27]MH_SAM_APDU [17:04:27]CAPDU: 80 0D 01 02 [17:04:27]Write to MH i2c: E2 08 00 40 01 80 0D 01 02 00 00 00 00 BA [17:04:27]Write i2c OK [17:04:27]MH_I2C_Read... [17:04:28]OFD Sender: No OFD packet to send [17:04:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:04:28]Read from MH i2c: E2 [17:04:28]MH_I2C_Read... [17:04:28]Read from MH i2c: E2 03 00 [17:04:28]MH_I2C_Read... [17:04:28]Read from MH i2c: E2 03 00 40 01 00 90 00 B5 [17:04:28]RAPDU: 90 00 [17:04:28]wFMCommunicate OK [17:04:28]wFMCommunicate request_size=255 [17:04:28]MH_SAM_APDU [17:04:28]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 BC 00 00 00 F4 03 04 00 1A 38 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 B9 [17:04:28]Write to MH i2c: E2 02 01 41 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 BC 00 00 00 F4 03 04 00 1A 38 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 B9 00 00 FE [17:04:28]Write i2c OK [17:04:28]MH_I2C_Read... [17:04:28]Read from MH i2c: E2 [17:04:28]MH_I2C_Read... [17:04:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:04:28]Read from MH i2c: E2 03 00 [17:04:28]MH_I2C_Read... [17:04:28]Read from MH i2c: E2 03 00 41 01 00 90 00 B6 [17:04:28]RAPDU: 90 00 [17:04:28]wFMCommunicate OK [17:04:28]wFMCommunicate request_size=10 [17:04:28]MH_SAM_APDU [17:04:28]CAPDU: 80 0D 02 02 05 0E 8C 56 06 D4 [17:04:28]Write to MH i2c: E2 0D 00 42 01 80 0D 02 02 05 00 0E 8C 56 06 D4 00 00 91 [17:04:28]Write i2c OK [17:04:28]MH_I2C_Read... [17:04:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:04:28]Read from MH i2c: E2 [17:04:28]MH_I2C_Read... [17:04:28]Read from MH i2c: E2 03 00 [17:04:28]MH_I2C_Read... [17:04:28]Read from MH i2c: E2 03 00 42 01 00 90 00 B7 [17:04:28]RAPDU: 90 00 [17:04:28]wFMCommunicate OK [17:04:28]wFMCommunicate request_size=4 [17:04:28]MH_SAM_APDU [17:04:28]CAPDU: 80 0D 03 02 [17:04:28]Write to MH i2c: E2 08 00 43 01 80 0D 03 02 00 00 00 00 BF [17:04:28]Write i2c OK [17:04:28]MH_I2C_Read... [17:04:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:04:28]Read from MH i2c: E2 [17:04:28]MH_I2C_Read... [17:04:28]Read from MH i2c: E2 0B 00 [17:04:28]MH_I2C_Read... [17:04:28]Read from MH i2c: E2 0B 00 43 01 00 46 8D 2B F1 3B 44 C2 12 90 00 02 [17:04:28]RAPDU: 46 8D 2B F1 3B 44 C2 12 90 00 [17:04:28]wFMCommunicate OK [17:04:28]SAM_PROTO_SignData done [17:04:28]FM_MakeSignedData done [17:04:28]CreateOFDProtocolMessage [17:04:28]wFMCommunicate request_size=4 [17:04:28]MH_SAM_APDU [17:04:28]CAPDU: 80 11 00 00 [17:04:28]Write to MH i2c: E2 08 00 44 01 80 11 00 00 00 00 00 00 BF [17:04:28]Write i2c OK [17:04:28]MH_I2C_Read... [17:04:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:04:28]Read from MH i2c: E2 [17:04:28]MH_I2C_Read... [17:04:28]Read from MH i2c: E2 17 00 [17:04:28]MH_I2C_Read... [17:04:28]Read from MH i2c: E2 17 00 44 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 0D [17:04: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:04:28]wFMCommunicate OK [17:04:28]CreateOFDProtocolMessage done [17:04:28]OFDSenderStorePacket 30406 [17:04:28]StoreOFDPacket docnum=30406 [17:04: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 D7 1E 07 01 1D 2B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 BC 00 00 00 F4 03 04 00 1A 38 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 B9 0E 8C 56 06 D4 46 8D 2B F1 3B 44 C2 12 [17:04:28]CheckFolder [17:04:28]dirname=/storage/ofd_packets [17:04:28]CheckFolder done [17:04:28]ProducePacketName [17:04:28]name=ofd_packets/00030406 [17:04:28]NVStorageSaveData ofd_packets/00030406 [17:04:28]File name is /storage/ofd_packets/00030406 [17:04:28]Write 301 bytes [17:04:28]NVStorageSaveData done [17:04:28]OFDSenderStorePacket done [17:04:28]KKMCreateOFDPacket done [17:04:28]NVStorageSaveData kkm_last_timestamp [17:04:28]File name is /storage/kkm_last_timestamp [17:04:28]Write 4 bytes [17:04:28]NVStorageSaveData done [17:04:28]ExternCall_PrintAddStr [17:04:28]wPrintStart [17:04:28]Write to MH i2c: 01 00 00 45 01 46 [17:04:28]Write i2c OK [17:04:28]MH_I2C_Read... [17:04:28]Read from MH i2c: 01 [17:04:28]MH_I2C_Read... [17:04:28]Read from MH i2c: 01 07 00 [17:04:28]MH_I2C_Read... [17:04:28]Read from MH i2c: 01 07 00 45 01 00 00 00 00 00 FF 0F 5B [17:04:28]RasterBufferAndPrint [17:04:28]line Счет N : (1)342804 [17:04:28]line ИНН: 02508201610067 [17:04:28]line Контрольно-Кассовый Чек [17:04:28]line ПРОДАЖА [17:04:28]line ТРК (МРК, ГНК) : 43 [17:04:28]line Товар: 2710124130 [17:04:28]line Аи-92-К-2 [17:04:28]line 2.990 * 66.90 [17:04:28]line = 200.03 [17:04:28]line НДС 12% НСП 1% [17:04:28]line > о реализуемом товаре [17:04:28]line ОКРУГЛЕНИЕ: -0.03 [17:04:28]line ИТОГО: 200.00 [17:04:28]line Внесено: 200.00 [17:04:28]line СДАЧА: 0.00 [17:04:28]line НСП 1% : 1.77 [17:04:28]line НДС 12% : 21.24 [17:04:28]line Наличными: 200.00 [17:04:28]line Безнал.: 0.00 [17:04:28]line Место: АЗС № 78 "Партнер Нефть" [17:04:28]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [17:04:28]line СНО: Общий режим [17:04:28]line Чек 188 20.10.2024 17:04 [17:04:28]line Смена: 114 ФФД: 1.0 [17:04:28]line ЗНМ: 0300000137 [17:04:28]line РНМ: 0000000000186857 [17:04:28]line Версия ККМ: v1.0 [17:04:28]line ФМ: 0000000002094219 [17:04:28]line ФД: 30406 [17:04:28]line ФПД: 203472135128788 [17:04:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T170426&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30406&fm=203472135128788&tin=02508201610067®Number=0000000000186857&sum=20000 [17:04:28]OFD Sender: Processing packet 30406 [packets to send 10, broken 9] [17:04:28]ProducePacketName [17:04:28]name=ofd_packets/00030406 [17:04:28]OFD Sender: To server: pG, [17:04:28]CommunicateWithHost lk.salyk.kg:30040 [17:04:28]ConnectInit lk.salyk.kg [17:04:28]written 0, free lines is 4095 [17:04:28]Connected sock=10 [17:04: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 D7 1E 07 01 1D 2B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 BC 00 00 00 F4 03 04 00 1A 38 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 B9 0E 8C 56 06 D4 46 8D 2B F1 3B 44 C2 12 [17:04: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 20 73 47 00 55 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 C6 76 00 00 F4 03 04 00 9E E2 14 67 B6 04 01 00 00 05 57 7E 91 4B 76 14 85 [17:04:29]CommunicateWithHost err = 0 [17:04:29]CheckOFDResponse [17:04:29]1017 (14) - 77093643461234 [17:04:29]1041 (16) - 0000000002094219 [17:04:29]1040 (4) - 30406 [17:04:29]1012 (4) - 20.10.2024 10:59 [17:04:29]1206 (1) - 0 [17:04:29]OFD Sender: Remove packet 30406 [17:04:29]ProducePacketName [17:04:29]name=ofd_packets/00030406 [17:04:29]NVStorageDeleteData [17:04:29]Write to MH i2c: 01 00 00 70 01 71 [17:04:29]Write i2c OK [17:04:29]MH_I2C_Read... [17:04:29]Read from MH i2c: 01 [17:04:29]MH_I2C_Read... [17:04:29]Read from MH i2c: 01 07 00 [17:04:29]MH_I2C_Read... [17:04:29]Read from MH i2c: 01 07 00 70 01 00 00 00 00 00 EF 0C 73 [17:04:29]RasterBufferAndPrint [17:04:29]line [17:04:29]line [17:04:29]line [17:04:29]line [17:04:29]line [17:04:29]written 0, free lines is 3317 [17:04:29]MH_Cut [17:04:29]Write to MH i2c: D1 01 00 77 01 01 4A [17:04:29]Write i2c OK [17:04:29]MH_I2C_Read... [17:04:29]Read from MH i2c: D1 [17:04:29]MH_I2C_Read... [17:04:29]Read from MH i2c: D1 01 00 [17:04:29]MH_I2C_Read... [17:04:29]Read from MH i2c: D1 01 00 77 01 00 49 [17:04:29]Write to MH i2c: 01 00 00 78 01 79 [17:04:29]Write i2c OK [17:04:29]MH_I2C_Read... [17:04:29]OFD Sender: No OFD packet to send [17:04:29]*** Cut start [17:04:29]*** Partial cut [17:04:29]*** CUTSNS_PIN = 1 [17:04:29]*** CUTSNS_PIN = 0 [17:04:30]*** Brake cut motor [17:04:30]Read from MH i2c: 01 [17:04:30]MH_I2C_Read... [17:04:30]*** Stop cut motor [17:04:30]*** Cut end [17:04:30]Read from MH i2c: 01 07 00 [17:04:30]MH_I2C_Read... [17:04:30]Read from MH i2c: 01 07 00 78 01 00 00 00 00 00 FF 0F 8E [17:04:30]process_action close_receipt done [17:04:30]requested_data is exist [17:04:30]produce_requested_data [17:04:30]requested_item fm.sn is exist - process it [17:04:30]wFMCommunicate request_size=4 [17:04:30]MH_SAM_APDU [17:04:30]CAPDU: 80 11 00 00 [17:04:30]Write to MH i2c: E2 08 00 79 01 80 11 00 00 00 00 00 00 F4 [17:04:30]Write i2c OK [17:04:30]MH_I2C_Read... [17:04:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:04:30]Read from MH i2c: E2 [17:04:30]MH_I2C_Read... [17:04:30]Read from MH i2c: E2 17 00 [17:04:30]MH_I2C_Read... [17:04:30]Read from MH i2c: E2 17 00 79 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 42 [17:04:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [17:04:30]wFMCommunicate OK [17:04:30]requested_item fd.num is exist - process it [17:04:30]SAM_PROTO_GetFieldsCounters [17:04:30]wFMCommunicate request_size=4 [17:04:30]MH_SAM_APDU [17:04:30]CAPDU: 80 13 00 00 [17:04:30]Write to MH i2c: E2 08 00 7A 01 80 13 00 00 00 00 00 00 F7 [17:04:30]Write i2c OK [17:04:30]MH_I2C_Read... [17:04:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:04:30]Read from MH i2c: E2 [17:04:30]MH_I2C_Read... [17:04:30]Read from MH i2c: E2 62 00 [17:04:30]MH_I2C_Read... [17:04:30]Read from MH i2c: E2 62 00 7A 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 FF [17:04: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 C6 76 00 00 0E 04 04 00 72 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:04:30]wFMCommunicate OK [17:04:30]SAM_PROTO_GetFieldsCounters done [17:04:30]requested_item shift.num is exist - process it [17:04:30]requested_item shift.opened is exist - process it [17:04:30]req_shift_opened [17:04:30]FM_GetShiftState [17:04:30]SAM_PROTO_GetShiftState [17:04:30]wFMCommunicate request_size=4 [17:04:30]MH_SAM_APDU [17:04:30]CAPDU: 80 13 01 00 [17:04:30]Write to MH i2c: E2 08 00 7B 01 80 13 01 00 00 00 00 00 F9 [17:04:30]Write i2c OK [17:04:30]MH_I2C_Read... [17:04:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:04:30]Read from MH i2c: E2 [17:04:30]MH_I2C_Read... [17:04:30]Read from MH i2c: E2 0E 00 [17:04:30]MH_I2C_Read... [17:04:30]Read from MH i2c: E2 0E 00 7B 01 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 DF [17:04:30]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [17:04:30]wFMCommunicate OK [17:04:30]SAM_PROTO_GetShiftState done [17:04:30]FM_GetShiftState done [17:04:30]req_shift_opened done [17:04:30]requested_item shift.open_date is exist - process it [17:04:30]req_shift_open_date [17:04:30]req_shift_open_date done [17:04:30]produce_requested_data done [17:04:30]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30406,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [17:04:30]process_action_free close_receipt [17:04:30]json_value_free [17:04:30]json_value_free done [17:04:30]process_json_proto returns [17:04:30]Send response to host [17:04:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30406,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [17:04:30]free response buf [17:04:30]execute_script done [17:04:30]execute_script returns [17:04:30]free content buf [17:04:30]Sock 9.Close socket [17:04:30]Sock 9.Thread stoped [17:04:34]OFD Sender: No OFD packet to send [17:04:34]accept exits with 7 [17:04:34]New connection [17:04:34]New thread 3067346276 created [17:04:34]Thread 3067489636 joined [17:04:34]Waiting for new connection... [17:04:34] Sock 7.Parse request [17:04:34]Sock 7.Check first char [17:04:34]Sock 7.First char is OK [17:04:34]request: POST /json_proto HTTP/1.0 [17:04:34]Method: POST [17:04:34]URL: /json_proto [17:04:34]Method is POST - this is cgi request [17:04:34]url: /json_proto [17:04:34]query_string will be loaded in cgi processing [17:04:34]execute_cgi json_proto POST (null) [17:04:34]execute_cgi path=json_proto method=POST [17:04:34]POST find Content-Length [17:04:34]Host: 172.17.51.3:8080 [17:04:34]Content-Length: 679 [17:04:34]Content-Type: application/json [17:04:34] [17:04:34]POST finish read [17:04:34]Found Content-Length = 679 [17:04:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342806", "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" ] } } [17:04:34]execute_script... [17:04:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342806", "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" ] } } [17:04:34]POST & json_proto [17:04:34]process_json_proto [17:04:34]json parsed OK: [17:04:34]protocol is kg_v1.0 [17:04:34]action value=close_receipt [17:04:34]process_action close_receipt [17:04:34]cmd_close_receipt [17:04:34]MH_GetDate [17:04:34]Write to MH i2c: F0 00 00 7C 01 6C [17:04:34]Write i2c OK [17:04:34]MH_I2C_Read... [17:04:34]Read from MH i2c: F0 [17:04:34]MH_I2C_Read... [17:04:34]Read from MH i2c: F0 09 00 [17:04:34]MH_I2C_Read... [17:04:34]Read from MH i2c: F0 09 00 7C 01 00 23 38 15 67 04 C1 95 66 0C [17:04:34]GetLastDocTimeStamp 1729443866 [17:04:34]current date 1729443875 [17:04:34]FM_GetShiftState [17:04:34]SAM_PROTO_GetShiftState [17:04:34]wFMCommunicate request_size=4 [17:04:34]MH_SAM_APDU [17:04:34]CAPDU: 80 13 01 00 [17:04:34]Write to MH i2c: E2 08 00 7D 01 80 13 01 00 00 00 00 00 FB [17:04:34]Write i2c OK [17:04:34]MH_I2C_Read... [17:04:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:04:35]Read from MH i2c: E2 [17:04:35]MH_I2C_Read... [17:04:35]Read from MH i2c: E2 0E 00 [17:04:35]MH_I2C_Read... [17:04:35]Read from MH i2c: E2 0E 00 7D 01 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 E1 [17:04:35]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [17:04:35]wFMCommunicate OK [17:04:35]SAM_PROTO_GetShiftState done [17:04:35]FM_GetShiftState done [17:04:35]opened in 1729384718 [17:04:35]opened+sec_in_day 1729471118 [17:04:35]quantity*price = 100050 [17:04:35]sum+1 = 100052 [17:04: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 СНО: Общий режим Чек 189 20.10.2024 17:04 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30407 ФПД: 264534886642736 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T170435&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30407&fm=264534886642736&tin=02508201610067®Number=0000000000186857&sum=100000 [17:04:36]StoreToDocumentArchive [17:04:36]shift 114 fd 30407 [17:04:36]save to /storage/0114/doc_00030407 [17:04:36]save last doc name /storage/0114/doc_00030407 to /storage/kkm_last_doc_name [17:04:36]save OK [17:04:36]Clear old archive folders... [17:04:36]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:04:36]tlvbuf is 01E25950 [17:04:36]SAM_PROTO_ClearQueue [17:04:36]wFMCommunicate request_size=4 [17:04:36]MH_SAM_APDU [17:04:36]CAPDU: 80 09 00 00 [17:04:36]Write to MH i2c: E2 08 00 8A 01 80 09 00 00 00 00 00 00 FD [17:04:36]Write i2c OK [17:04:36]MH_I2C_Read... [17:04:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:04:36]Read from MH i2c: E2 [17:04:36]MH_I2C_Read... [17:04:36]Read from MH i2c: E2 03 00 [17:04:36]MH_I2C_Read... [17:04:36]Read from MH i2c: E2 03 00 8A 01 00 90 00 FF [17:04:36]RAPDU: 90 00 [17:04:36]wFMCommunicate OK [17:04:36]SAM_PROTO_ClearQueue done [17:04:36]KKMCreateOFDPacket [17:04:36]OFDProtocolAddRootSTLVToBuf [17:04:36]FM_MakeSignedData [17:04:36]FM_MakeSignedData [17:04:36]SAM_PROTO_SignData [17:04:36]wFMCommunicate request_size=4 [17:04:36]MH_SAM_APDU [17:04:36]CAPDU: 80 0D 01 02 [17:04:36]Write to MH i2c: E2 08 00 8B 01 80 0D 01 02 00 00 00 00 05 [17:04:36]Write i2c OK [17:04:36]MH_I2C_Read... [17:04:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:04:36]Read from MH i2c: E2 [17:04:36]MH_I2C_Read... [17:04:36]Read from MH i2c: E2 03 00 [17:04:36]MH_I2C_Read... [17:04:36]Read from MH i2c: E2 03 00 8B 01 00 90 00 00 [17:04:36]RAPDU: 90 00 [17:04:36]wFMCommunicate OK [17:04:36]wFMCommunicate request_size=255 [17:04:36]MH_SAM_APDU [17:04: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 BD 00 00 00 F4 03 04 00 23 38 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 F0 97 D3 F2 [17:04:36]Write to MH i2c: E2 02 01 8C 01 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 BD 00 00 00 F4 03 04 00 23 38 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 F0 97 D3 F2 00 00 1B [17:04:36]Write i2c OK [17:04:36]MH_I2C_Read... [17:04:36]Read from MH i2c: E2 [17:04:36]MH_I2C_Read... [17:04:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:04:36]Read from MH i2c: E2 03 00 [17:04:36]MH_I2C_Read... [17:04:36]Read from MH i2c: E2 03 00 8C 01 00 90 00 01 [17:04:36]RAPDU: 90 00 [17:04:36]wFMCommunicate OK [17:04:36]wFMCommunicate request_size=7 [17:04:36]MH_SAM_APDU [17:04:36]CAPDU: 80 0D 02 02 02 F4 30 [17:04:36]Write to MH i2c: E2 0A 00 8D 01 80 0D 02 02 02 00 F4 30 00 00 30 [17:04:36]Write i2c OK [17:04:36]MH_I2C_Read... [17:04:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:04:36]Read from MH i2c: E2 [17:04:36]MH_I2C_Read... [17:04:36]Read from MH i2c: E2 03 00 [17:04:36]MH_I2C_Read... [17:04:36]Read from MH i2c: E2 03 00 8D 01 00 90 00 02 [17:04:36]RAPDU: 90 00 [17:04:36]wFMCommunicate OK [17:04:36]wFMCommunicate request_size=4 [17:04:36]MH_SAM_APDU [17:04:36]CAPDU: 80 0D 03 02 [17:04:36]Write to MH i2c: E2 08 00 8E 01 80 0D 03 02 00 00 00 00 0A [17:04:36]Write i2c OK [17:04:36]MH_I2C_Read... [17:04:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:04:36]Read from MH i2c: E2 [17:04:36]MH_I2C_Read... [17:04:36]Read from MH i2c: E2 0B 00 [17:04:36]MH_I2C_Read... [17:04:36]Read from MH i2c: E2 0B 00 8E 01 00 6A 3B A1 18 F3 B2 A7 70 90 00 25 [17:04:36]RAPDU: 6A 3B A1 18 F3 B2 A7 70 90 00 [17:04:36]wFMCommunicate OK [17:04:36]SAM_PROTO_SignData done [17:04:36]FM_MakeSignedData done [17:04:36]CreateOFDProtocolMessage [17:04:36]wFMCommunicate request_size=4 [17:04:36]MH_SAM_APDU [17:04:36]CAPDU: 80 11 00 00 [17:04:36]Write to MH i2c: E2 08 00 8F 01 80 11 00 00 00 00 00 00 0A [17:04:36]Write i2c OK [17:04:36]MH_I2C_Read... [17:04:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:04:36]Read from MH i2c: E2 [17:04:36]MH_I2C_Read... [17:04:36]Read from MH i2c: E2 17 00 [17:04:36]MH_I2C_Read... [17:04:36]Read from MH i2c: E2 17 00 8F 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 58 [17:04:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [17:04:36]wFMCommunicate OK [17:04:36]CreateOFDProtocolMessage done [17:04:36]OFDSenderStorePacket 30407 [17:04:36]StoreOFDPacket docnum=30407 [17:04: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 3F 0F 04 01 46 0E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 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 BD 00 00 00 F4 03 04 00 23 38 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 F0 97 D3 F2 F4 30 6A 3B A1 18 F3 B2 A7 70 [17:04:36]CheckFolder [17:04:36]dirname=/storage/ofd_packets [17:04:36]CheckFolder done [17:04:36]ProducePacketName [17:04:36]name=ofd_packets/00030407 [17:04:36]NVStorageSaveData ofd_packets/00030407 [17:04:36]File name is /storage/ofd_packets/00030407 [17:04:36]Write 298 bytes [17:04:36]NVStorageSaveData done [17:04:36]OFDSenderStorePacket done [17:04:36]KKMCreateOFDPacket done [17:04:36]NVStorageSaveData kkm_last_timestamp [17:04:36]File name is /storage/kkm_last_timestamp [17:04:36]Write 4 bytes [17:04:36]NVStorageSaveData done [17:04:36]ExternCall_PrintAddStr [17:04:36]wPrintStart [17:04:36]Write to MH i2c: 01 00 00 90 01 91 [17:04:36]Write i2c OK [17:04:36]MH_I2C_Read... [17:04:36]Read from MH i2c: 01 [17:04:36]MH_I2C_Read... [17:04:36]Read from MH i2c: 01 07 00 [17:04:36]MH_I2C_Read... [17:04:36]Read from MH i2c: 01 07 00 90 01 00 00 00 00 00 FF 0F A6 [17:04:36]RasterBufferAndPrint [17:04:36]line Счет N : (1)342806 [17:04:36]line ИНН: 02508201610067 [17:04:36]line Контрольно-Кассовый Чек [17:04:36]line ПРОДАЖА [17:04:36]line ТРК (МРК, ГНК) : 54 [17:04:36]line Товар: 2710194210 [17:04:36]line ДТ-К-2 [17:04:36]line 13.130 * 76.20 [17:04:36]line = 1000.51 [17:04:36]line НДС 12% НСП 1% [17:04:36]line > о реализуемом товаре [17:04:36]line ОКРУГЛЕНИЕ: -0.51 [17:04:36]line ИТОГО: 1000.00 [17:04:36]line Внесено: 1000.00 [17:04:36]line СДАЧА: 0.00 [17:04:36]line НСП 1% : 8.85 [17:04:36]line НДС 12% : 106.25 [17:04:36]line Наличными: 1000.00 [17:04:36]line Безнал.: 0.00 [17:04:36]line Место: АЗС № 78 "Партнер Нефть" [17:04:36]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [17:04:36]line СНО: Общий режим [17:04:36]line Чек 189 20.10.2024 17:04 [17:04:36]line Смена: 114 ФФД: 1.0 [17:04:36]line ЗНМ: 0300000137 [17:04:36]line РНМ: 0000000000186857 [17:04:36]line Версия ККМ: v1.0 [17:04:36]line ФМ: 0000000002094219 [17:04:36]line ФД: 30407 [17:04:36]line ФПД: 264534886642736 [17:04:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T170435&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30407&fm=264534886642736&tin=02508201610067®Number=0000000000186857&sum=100000 [17:04:36]written 0, free lines is 4095 [17:04:36]OFD Sender: Processing packet 30407 [packets to send 10, broken 9] [17:04:36]ProducePacketName [17:04:36]name=ofd_packets/00030407 [17:04:36]OFD Sender: To server: pG, [17:04:36]CommunicateWithHost lk.salyk.kg:30040 [17:04:36]ConnectInit lk.salyk.kg [17:04:36]Connected sock=10 [17:04: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 0C 01 00 00 3F 0F 04 01 46 0E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 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 BD 00 00 00 F4 03 04 00 23 38 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 F0 97 D3 F2 F4 30 6A 3B A1 18 F3 B2 A7 70 [17:04: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 EE 3F 47 00 B5 5B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 C7 76 00 00 F4 03 04 00 A6 E2 14 67 B6 04 01 00 00 FF DB D4 2D EA E9 AC 5D [17:04:37]CommunicateWithHost err = 0 [17:04:37]CheckOFDResponse [17:04:37]1017 (14) - 77093643461234 [17:04:37]1041 (16) - 0000000002094219 [17:04:37]1040 (4) - 30407 [17:04:37]1012 (4) - 20.10.2024 10:59 [17:04:37]1206 (1) - 0 [17:04:37]OFD Sender: Remove packet 30407 [17:04:37]ProducePacketName [17:04:37]name=ofd_packets/00030407 [17:04:37]NVStorageDeleteData [17:04:37]Write to MH i2c: 01 00 00 BB 01 BC [17:04:37]Write i2c OK [17:04:37]MH_I2C_Read... [17:04:37]Read from MH i2c: 01 [17:04:37]MH_I2C_Read... [17:04:37]Read from MH i2c: 01 07 00 [17:04:37]MH_I2C_Read... [17:04:37]Read from MH i2c: 01 07 00 BB 01 00 00 00 00 00 F9 0C C8 [17:04:37]RasterBufferAndPrint [17:04:37]line [17:04:37]line [17:04:37]line [17:04:37]line [17:04:37]line [17:04:37]written 0, free lines is 3330 [17:04:37]MH_Cut [17:04:37]Write to MH i2c: D1 01 00 C2 01 01 95 [17:04:37]Write i2c OK [17:04:37]MH_I2C_Read... [17:04:37]Read from MH i2c: D1 [17:04:37]MH_I2C_Read... [17:04:37]Read from MH i2c: D1 01 00 [17:04:37]MH_I2C_Read... [17:04:37]Read from MH i2c: D1 01 00 C2 01 00 94 [17:04:37]Write to MH i2c: 01 00 00 C3 01 C4 [17:04:37]Write i2c OK [17:04:37]MH_I2C_Read... [17:04:37]OFD Sender: No OFD packet to send [17:04:37]*** Cut start [17:04:37]*** Partial cut [17:04:37]*** CUTSNS_PIN = 1 [17:04:37]*** CUTSNS_PIN = 0 [17:04:38]*** Brake cut motor [17:04:38]Read from MH i2c: 01 [17:04:38]MH_I2C_Read... [17:04:38]*** Stop cut motor [17:04:38]*** Cut end [17:04:38]Read from MH i2c: 01 07 00 [17:04:38]MH_I2C_Read... [17:04:38]Read from MH i2c: 01 07 00 C3 01 00 00 00 00 00 FF 0F D9 [17:04:38]process_action close_receipt done [17:04:38]requested_data is exist [17:04:38]produce_requested_data [17:04:38]requested_item fm.sn is exist - process it [17:04:38]wFMCommunicate request_size=4 [17:04:38]MH_SAM_APDU [17:04:38]CAPDU: 80 11 00 00 [17:04:38]Write to MH i2c: E2 08 00 C4 01 80 11 00 00 00 00 00 00 3F [17:04:38]Write i2c OK [17:04:38]MH_I2C_Read... [17:04:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:04:38]Read from MH i2c: E2 [17:04:38]MH_I2C_Read... [17:04:38]Read from MH i2c: E2 17 00 [17:04:38]MH_I2C_Read... [17:04:38]Read from MH i2c: E2 17 00 C4 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 8D [17:04: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:04:38]wFMCommunicate OK [17:04:38]requested_item fd.num is exist - process it [17:04:38]SAM_PROTO_GetFieldsCounters [17:04:38]wFMCommunicate request_size=4 [17:04:38]MH_SAM_APDU [17:04:38]CAPDU: 80 13 00 00 [17:04:38]Write to MH i2c: E2 08 00 C5 01 80 13 00 00 00 00 00 00 42 [17:04:38]Write i2c OK [17:04:38]MH_I2C_Read... [17:04:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:04:38]Read from MH i2c: E2 [17:04:38]MH_I2C_Read... [17:04:38]Read from MH i2c: E2 62 00 [17:04:38]MH_I2C_Read... [17:04:38]Read from MH i2c: E2 62 00 C5 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 4E [17:04: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 C7 76 00 00 0E 04 04 00 72 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:04:38]wFMCommunicate OK [17:04:38]SAM_PROTO_GetFieldsCounters done [17:04:38]requested_item shift.num is exist - process it [17:04:38]requested_item shift.opened is exist - process it [17:04:38]req_shift_opened [17:04:38]FM_GetShiftState [17:04:38]SAM_PROTO_GetShiftState [17:04:38]wFMCommunicate request_size=4 [17:04:38]MH_SAM_APDU [17:04:38]CAPDU: 80 13 01 00 [17:04:38]Write to MH i2c: E2 08 00 C6 01 80 13 01 00 00 00 00 00 44 [17:04:38]Write i2c OK [17:04:38]MH_I2C_Read... [17:04:38]Read from MH i2c: E2 [17:04:38]MH_I2C_Read... [17:04:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:04:38]Read from MH i2c: E2 0E 00 [17:04:38]MH_I2C_Read... [17:04:38]Read from MH i2c: E2 0E 00 C6 01 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 2A [17:04:38]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [17:04:38]wFMCommunicate OK [17:04:38]SAM_PROTO_GetShiftState done [17:04:38]FM_GetShiftState done [17:04:38]req_shift_opened done [17:04:38]requested_item shift.open_date is exist - process it [17:04:38]req_shift_open_date [17:04:38]req_shift_open_date done [17:04:38]produce_requested_data done [17:04:38]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30407,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [17:04:38]process_action_free close_receipt [17:04:38]json_value_free [17:04:38]json_value_free done [17:04:38]process_json_proto returns [17:04:38]Send response to host [17:04:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30407,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [17:04:38]free response buf [17:04:38]execute_script done [17:04:38]execute_script returns [17:04:38]free content buf [17:04:38]Sock 7.Close socket [17:04:38]Sock 7.Thread stoped [17:04:42]OFD Sender: No OFD packet to send [17:04:47]OFD Sender: No OFD packet to send [17:04:52]OFD Sender: No OFD packet to send [17:04:57]OFD Sender: No OFD packet to send [17:05:02]OFD Sender: No OFD packet to send [17:05:07]OFD Sender: No OFD packet to send [17:05:12]OFD Sender: No OFD packet to send [17:05:17]OFD Sender: No OFD packet to send [17:05:22]OFD Sender: No OFD packet to send [17:05:27]OFD Sender: No OFD packet to send [17:05:32]OFD Sender: No OFD packet to send [17:05:37]OFD Sender: No OFD packet to send [17:05:42]OFD Sender: No OFD packet to send [17:05:47]OFD Sender: No OFD packet to send [17:05:52]OFD Sender: No OFD packet to send [17:05:57]OFD Sender: No OFD packet to send [17:06:02]OFD Sender: No OFD packet to send [17:06:07]OFD Sender: No OFD packet to send [17:06:12]OFD Sender: No OFD packet to send [17:06:17]OFD Sender: No OFD packet to send [17:06:22]OFD Sender: No OFD packet to send [17:06:27]OFD Sender: No OFD packet to send [17:06:32]OFD Sender: No OFD packet to send [17:06:37]OFD Sender: No OFD packet to send [17:06:42]OFD Sender: No OFD packet to send [17:06:47]OFD Sender: No OFD packet to send [17:06:52]OFD Sender: No OFD packet to send [17:06:57]OFD Sender: No OFD packet to send [17:07:02]OFD Sender: No OFD packet to send [17:07:07]OFD Sender: No OFD packet to send [17:07:12]OFD Sender: No OFD packet to send [17:07:17]OFD Sender: No OFD packet to send [17:07:22]OFD Sender: No OFD packet to send [17:07:27]OFD Sender: No OFD packet to send [17:07:32]OFD Sender: No OFD packet to send [17:07:37]OFD Sender: No OFD packet to send [17:07:42]OFD Sender: No OFD packet to send [17:07:47]OFD Sender: No OFD packet to send [17:07:52]OFD Sender: No OFD packet to send [17:07:57]OFD Sender: No OFD packet to send [17:08:02]OFD Sender: No OFD packet to send [17:08:07]OFD Sender: No OFD packet to send [17:08:12]OFD Sender: No OFD packet to send [17:08:17]OFD Sender: No OFD packet to send [17:08:22]OFD Sender: No OFD packet to send [17:08:27]OFD Sender: No OFD packet to send [17:08:32]OFD Sender: No OFD packet to send [17:08:37]OFD Sender: No OFD packet to send [17:08:42]OFD Sender: No OFD packet to send [17:08:47]OFD Sender: No OFD packet to send [17:08:52]OFD Sender: No OFD packet to send [17:08:57]OFD Sender: No OFD packet to send [17:09:02]OFD Sender: No OFD packet to send [17:09:07]OFD Sender: No OFD packet to send [17:09:12]OFD Sender: No OFD packet to send [17:09:17]OFD Sender: No OFD packet to send [17:09:22]OFD Sender: No OFD packet to send [17:09:27]OFD Sender: No OFD packet to send [17:09:32]OFD Sender: No OFD packet to send [17:09:37]OFD Sender: No OFD packet to send [17:09:42]OFD Sender: No OFD packet to send [17:09:47]OFD Sender: No OFD packet to send [17:09:52]OFD Sender: No OFD packet to send [17:09:57]OFD Sender: No OFD packet to send [17:10:02]OFD Sender: No OFD packet to send [17:10:07]OFD Sender: No OFD packet to send [17:10:12]OFD Sender: No OFD packet to send [17:10:17]OFD Sender: No OFD packet to send [17:10:22]OFD Sender: No OFD packet to send [17:10:27]OFD Sender: No OFD packet to send [17:10:32]OFD Sender: No OFD packet to send [17:10:37]accept exits with 9 [17:10:37]New connection [17:10:37]New thread 3067489636 created [17:10:37]Thread 3067346276 joined [17:10:37]Waiting for new connection... [17:10:37] Sock 9.Parse request [17:10:37]Sock 9.Check first char [17:10:37]Sock 9.First char is OK [17:10:37]request: POST /json_proto HTTP/1.0 [17:10:37]Method: POST [17:10:37]URL: /json_proto [17:10:37]Method is POST - this is cgi request [17:10:37]url: /json_proto [17:10:37]query_string will be loaded in cgi processing [17:10:37]execute_cgi json_proto POST (null) [17:10:37]execute_cgi path=json_proto method=POST [17:10:37]POST find Content-Length [17:10:37]Host: 172.17.51.3:8080 [17:10:37]Content-Length: 840 [17:10:37]Content-Type: application/json [17:10:37] [17:10:37]POST finish read [17:10:37]Found Content-Length = 840 [17:10:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342807", "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 }]} ], "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" ] } } [17:10:37]execute_script... [17: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)342807", "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 }]} ], "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" ] } } [17:10:37]POST & json_proto [17:10:37]process_json_proto [17:10:37]json parsed OK: [17:10:37]protocol is kg_v1.0 [17:10:37]action value=close_receipt [17:10:37]process_action close_receipt [17:10:37]cmd_close_receipt [17:10:37]MH_GetDate [17:10:37]Write to MH i2c: F0 00 00 C7 01 B7 [17:10:37]Write i2c OK [17:10:37]MH_I2C_Read... [17:10:37]Read from MH i2c: F0 [17:10:37]MH_I2C_Read... [17:10:37]Read from MH i2c: F0 09 00 [17:10:37]MH_I2C_Read... [17:10:37]Read from MH i2c: F0 09 00 C7 01 00 8D 39 15 67 04 C1 95 66 C2 [17:10:37]GetLastDocTimeStamp 1729443875 [17:10:37]current date 1729444237 [17:10:37]FM_GetShiftState [17:10:37]SAM_PROTO_GetShiftState [17:10:37]wFMCommunicate request_size=4 [17:10:37]MH_SAM_APDU [17:10:37]CAPDU: 80 13 01 00 [17:10:37]Write to MH i2c: E2 08 00 C8 01 80 13 01 00 00 00 00 00 46 [17:10:37]Write i2c OK [17:10:37]MH_I2C_Read... [17:10:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:10:37]Read from MH i2c: E2 [17:10:37]MH_I2C_Read... [17:10:37]Read from MH i2c: E2 0E 00 [17:10:37]MH_I2C_Read... [17:10:37]Read from MH i2c: E2 0E 00 C8 01 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 2C [17:10:37]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [17:10:37]wFMCommunicate OK [17:10:37]SAM_PROTO_GetShiftState done [17:10:37]FM_GetShiftState done [17:10:37]opened in 1729384718 [17:10:37]opened+sec_in_day 1729471118 [17:10:37]quantity*price = 30038 [17:10:37]sum+1 = 30039 [17:10:37]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.38 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 0.00 Безнал.: 300.38 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 190 20.10.2024 17:10 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Платежная система: АКБ Кыргызстан ФМ: 0000000002094219 ФД: 30408 ФПД: 228704252942512 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T171037&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30408&fm=228704252942512&tin=02508201610067®Number=0000000000186857&sum=30038 [17:10:38]StoreToDocumentArchive [17:10:38]shift 114 fd 30408 [17:10:38]save to /storage/0114/doc_00030408 [17:10:38]save last doc name /storage/0114/doc_00030408 to /storage/kkm_last_doc_name [17:10:38]save OK [17:10:38]Clear old archive folders... [17:10:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:10:38]tlvbuf is 01E24740 [17:10:38]SAM_PROTO_ClearQueue [17:10:38]wFMCommunicate request_size=4 [17:10:38]MH_SAM_APDU [17:10:38]CAPDU: 80 09 00 00 [17:10:38]Write to MH i2c: E2 08 00 D5 01 80 09 00 00 00 00 00 00 48 [17:10:38]Write i2c OK [17:10:38]MH_I2C_Read... [17:10:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:10:38]Read from MH i2c: E2 [17:10:38]MH_I2C_Read... [17:10:38]Read from MH i2c: E2 03 00 [17:10:38]MH_I2C_Read... [17:10:38]Read from MH i2c: E2 03 00 D5 01 00 90 00 4A [17:10:38]RAPDU: 90 00 [17:10:38]wFMCommunicate OK [17:10:38]SAM_PROTO_ClearQueue done [17:10:38]KKMCreateOFDPacket [17:10:38]OFDProtocolAddRootSTLVToBuf [17:10:38]FM_MakeSignedData [17:10:38]FM_MakeSignedData [17:10:38]SAM_PROTO_SignData [17:10:38]wFMCommunicate request_size=4 [17:10:38]MH_SAM_APDU [17:10:38]CAPDU: 80 0D 01 02 [17:10:38]Write to MH i2c: E2 08 00 D6 01 80 0D 01 02 00 00 00 00 50 [17:10:38]Write i2c OK [17:10:38]MH_I2C_Read... [17:10:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:10:38]Read from MH i2c: E2 [17:10:38]MH_I2C_Read... [17:10:38]Read from MH i2c: E2 03 00 [17:10:38]MH_I2C_Read... [17:10:38]Read from MH i2c: E2 03 00 D6 01 00 90 00 4B [17:10:38]RAPDU: 90 00 [17:10:38]wFMCommunicate OK [17:10:38]wFMCommunicate request_size=255 [17:10:38]MH_SAM_APDU [17:10: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 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 BE 00 00 00 F4 03 04 00 8D 39 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 D0 [17:10:38]Write to MH i2c: E2 02 01 D7 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 BE 00 00 00 F4 03 04 00 8D 39 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 D0 00 00 A1 [17:10:38]Write i2c OK [17:10:38]MH_I2C_Read... [17:10:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:10:38]Read from MH i2c: E2 [17:10:38]MH_I2C_Read... [17:10:38]Read from MH i2c: E2 03 00 [17:10:38]MH_I2C_Read... [17:10:38]Read from MH i2c: E2 03 00 D7 01 00 90 00 4C [17:10:38]RAPDU: 90 00 [17:10:38]wFMCommunicate OK [17:10:38]wFMCommunicate request_size=10 [17:10:38]MH_SAM_APDU [17:10:38]CAPDU: 80 0D 02 02 05 01 5B C1 58 B0 [17:10:38]Write to MH i2c: E2 0D 00 D8 01 80 0D 02 02 05 00 01 5B C1 58 B0 00 00 82 [17:10:38]Write i2c OK [17:10:38]MH_I2C_Read... [17:10:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:10:38]Read from MH i2c: E2 [17:10:38]MH_I2C_Read... [17:10:38]Read from MH i2c: E2 03 00 [17:10:38]MH_I2C_Read... [17:10:38]Read from MH i2c: E2 03 00 D8 01 00 90 00 4D [17:10:38]RAPDU: 90 00 [17:10:38]wFMCommunicate OK [17:10:38]wFMCommunicate request_size=4 [17:10:38]MH_SAM_APDU [17:10:38]CAPDU: 80 0D 03 02 [17:10:38]Write to MH i2c: E2 08 00 D9 01 80 0D 03 02 00 00 00 00 55 [17:10:38]Write i2c OK [17:10:38]MH_I2C_Read... [17:10:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:10:38]Read from MH i2c: E2 [17:10:38]MH_I2C_Read... [17:10:38]Read from MH i2c: E2 0B 00 [17:10:38]MH_I2C_Read... [17:10:38]Read from MH i2c: E2 0B 00 D9 01 00 6A C8 87 8B FE B6 60 65 90 00 13 [17:10:38]RAPDU: 6A C8 87 8B FE B6 60 65 90 00 [17:10:38]wFMCommunicate OK [17:10:38]SAM_PROTO_SignData done [17:10:38]FM_MakeSignedData done [17:10:38]CreateOFDProtocolMessage [17:10:38]wFMCommunicate request_size=4 [17:10:38]MH_SAM_APDU [17:10:38]CAPDU: 80 11 00 00 [17:10:38]Write to MH i2c: E2 08 00 DA 01 80 11 00 00 00 00 00 00 55 [17:10:38]Write i2c OK [17:10:38]MH_I2C_Read... [17:10:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:10:38]Read from MH i2c: E2 [17:10:38]MH_I2C_Read... [17:10:38]Read from MH i2c: E2 17 00 [17:10:38]MH_I2C_Read... [17:10:38]Read from MH i2c: E2 17 00 DA 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 A3 [17:10: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:10:38]wFMCommunicate OK [17:10:38]CreateOFDProtocolMessage done [17:10:38]OFDSenderStorePacket 30408 [17:10:38]StoreOFDPacket docnum=30408 [17:10: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 89 4C 07 01 69 16 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 BE 00 00 00 F4 03 04 00 8D 39 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 D0 01 5B C1 58 B0 6A C8 87 8B FE B6 60 65 [17:10:38]CheckFolder [17:10:38]dirname=/storage/ofd_packets [17:10:38]CheckFolder done [17:10:38]ProducePacketName [17:10:38]name=ofd_packets/00030408 [17:10:38]NVStorageSaveData ofd_packets/00030408 [17:10:38]File name is /storage/ofd_packets/00030408 [17:10:38]Write 301 bytes [17:10:38]NVStorageSaveData done [17:10:38]OFDSenderStorePacket done [17:10:38]KKMCreateOFDPacket done [17:10:38]NVStorageSaveData kkm_last_timestamp [17:10:38]File name is /storage/kkm_last_timestamp [17:10:38]Write 4 bytes [17:10:38]NVStorageSaveData done [17:10:38]ExternCall_PrintAddStr [17:10:38]wPrintStart [17:10:38]Write to MH i2c: 01 00 00 DB 01 DC [17:10:38]Write i2c OK [17:10:38]MH_I2C_Read... [17:10:38]Read from MH i2c: 01 [17:10:38]MH_I2C_Read... [17:10:38]Read from MH i2c: 01 07 00 [17:10:38]MH_I2C_Read... [17:10:38]Read from MH i2c: 01 07 00 DB 01 00 00 00 00 00 FF 0F F1 [17:10:38]RasterBufferAndPrint [17:10:38]line Счет N : (1)342807 [17:10:38]line ИНН: 02508201610067 [17:10:38]line Контрольно-Кассовый Чек [17:10:38]line ПРОДАЖА [17:10:38]line ТРК (МРК, ГНК) : 63 [17:10:38]line Товар: 2710124130 [17:10:38]line Аи-92-К-2 [17:10:38]line 4.490 * 66.90 [17:10:38]line = 300.38 [17:10:38]line НДС 12% НСП 1% [17:10:38]line > о реализуемом товаре [17:10:38]line ИТОГО: 300.38 [17:10:38]line НСП 1% : 2.66 [17:10:38]line НДС 12% : 31.90 [17:10:38]line Наличными: 0.00 [17:10:38]line Безнал.: 300.38 [17:10:38]line Место: АЗС № 78 "Партнер Нефть" [17:10:38]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [17:10:38]line СНО: Общий режим [17:10:38]line Чек 190 20.10.2024 17:10 [17:10:38]line Смена: 114 ФФД: 1.0 [17:10:38]line ЗНМ: 0300000137 [17:10:38]line РНМ: 0000000000186857 [17:10:38]line Версия ККМ: v1.0 [17:10:38]line Платежная система: АКБ Кыргызстан [17:10:38]line ФМ: 0000000002094219 [17:10:38]line ФД: 30408 [17:10:38]line ФПД: 228704252942512 [17:10:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T171037&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30408&fm=228704252942512&tin=02508201610067®Number=0000000000186857&sum=30038 [17:10:39]OFD Sender: Processing packet 30408 [packets to send 10, broken 9] [17:10:39]ProducePacketName [17:10:39]name=ofd_packets/00030408 [17:10:39]OFD Sender: To server: pG, [17:10:39]CommunicateWithHost lk.salyk.kg:30040 [17:10:39]ConnectInit lk.salyk.kg [17:10:39]written 0, free lines is 4095 [17:10:39]Connected sock=10 [17: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 89 4C 07 01 69 16 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 BE 00 00 00 F4 03 04 00 8D 39 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 D0 01 5B C1 58 B0 6A C8 87 8B FE B6 60 65 [17:10: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 E2 A0 47 00 AA DE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 C8 76 00 00 F4 03 04 00 10 E4 14 67 B6 04 01 00 00 ED 6F C6 6D 44 08 E3 43 [17:10:39]CommunicateWithHost err = 0 [17:10:39]CheckOFDResponse [17:10:39]1017 (14) - 77093643461234 [17:10:39]1041 (16) - 0000000002094219 [17:10:39]1040 (4) - 30408 [17:10:39]1012 (4) - 20.10.2024 11:05 [17:10:39]1206 (1) - 0 [17:10:39]OFD Sender: Remove packet 30408 [17:10:39]ProducePacketName [17:10:39]name=ofd_packets/00030408 [17:10:39]NVStorageDeleteData [17:10:39]Write to MH i2c: 01 00 00 05 02 07 [17:10:39]Write i2c OK [17:10:39]MH_I2C_Read... [17:10:39]Read from MH i2c: 01 [17:10:39]MH_I2C_Read... [17:10:39]Read from MH i2c: 01 07 00 [17:10:39]MH_I2C_Read... [17:10:39]Read from MH i2c: 01 07 00 05 02 00 00 00 00 00 0A 0D 25 [17:10:39]RasterBufferAndPrint [17:10:39]line [17:10:39]line [17:10:39]line [17:10:39]line [17:10:39]line [17:10:39]written 0, free lines is 3344 [17:10:39]MH_Cut [17:10:39]Write to MH i2c: D1 01 00 0C 02 01 E0 [17:10:39]Write i2c OK [17:10:39]MH_I2C_Read... [17:10:39]Read from MH i2c: D1 [17:10:39]MH_I2C_Read... [17:10:39]Read from MH i2c: D1 01 00 [17:10:39]MH_I2C_Read... [17:10:39]Read from MH i2c: D1 01 00 0C 02 00 DF [17:10:39]Write to MH i2c: 01 00 00 0D 02 0F [17:10:39]Write i2c OK [17:10:39]MH_I2C_Read... [17:10:40]OFD Sender: No OFD packet to send [17:10:40]*** Cut start [17:10:40]*** Partial cut [17:10:40]*** CUTSNS_PIN = 1 [17:10:40]*** CUTSNS_PIN = 0 [17:10:40]*** Brake cut motor [17:10:40]Read from MH i2c: 01 [17:10:40]MH_I2C_Read... [17:10:40]*** Stop cut motor [17:10:40]*** Cut end [17:10:40]Read from MH i2c: 01 07 00 [17:10:40]MH_I2C_Read... [17:10:40]Read from MH i2c: 01 07 00 0D 02 00 00 00 00 00 FF 0F 24 [17:10:40]process_action close_receipt done [17:10:40]requested_data is exist [17:10:40]produce_requested_data [17:10:40]requested_item fm.sn is exist - process it [17:10:40]wFMCommunicate request_size=4 [17:10:40]MH_SAM_APDU [17:10:40]CAPDU: 80 11 00 00 [17:10:40]Write to MH i2c: E2 08 00 0E 02 80 11 00 00 00 00 00 00 8A [17:10:40]Write i2c OK [17:10:40]MH_I2C_Read... [17:10:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:10:41]Read from MH i2c: E2 [17:10:41]MH_I2C_Read... [17:10:41]Read from MH i2c: E2 17 00 [17:10:41]MH_I2C_Read... [17:10:41]Read from MH i2c: E2 17 00 0E 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 D8 [17: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 [17:10:41]wFMCommunicate OK [17:10:41]requested_item fd.num is exist - process it [17:10:41]SAM_PROTO_GetFieldsCounters [17:10:41]wFMCommunicate request_size=4 [17:10:41]MH_SAM_APDU [17:10:41]CAPDU: 80 13 00 00 [17:10:41]Write to MH i2c: E2 08 00 0F 02 80 13 00 00 00 00 00 00 8D [17:10:41]Write i2c OK [17:10:41]MH_I2C_Read... [17:10:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:10:41]Read from MH i2c: E2 [17:10:41]MH_I2C_Read... [17:10:41]Read from MH i2c: E2 62 00 [17:10:41]MH_I2C_Read... [17:10:41]Read from MH i2c: E2 62 00 0F 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 9D [17: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 C8 76 00 00 0E 04 04 00 72 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:10:41]wFMCommunicate OK [17:10:41]SAM_PROTO_GetFieldsCounters done [17:10:41]requested_item shift.num is exist - process it [17:10:41]requested_item shift.opened is exist - process it [17:10:41]req_shift_opened [17:10:41]FM_GetShiftState [17:10:41]SAM_PROTO_GetShiftState [17:10:41]wFMCommunicate request_size=4 [17:10:41]MH_SAM_APDU [17:10:41]CAPDU: 80 13 01 00 [17:10:41]Write to MH i2c: E2 08 00 10 02 80 13 01 00 00 00 00 00 8F [17:10:41]Write i2c OK [17:10:41]MH_I2C_Read... [17:10:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:10:41]Read from MH i2c: E2 [17:10:41]MH_I2C_Read... [17:10:41]Read from MH i2c: E2 0E 00 [17:10:41]MH_I2C_Read... [17:10:41]Read from MH i2c: E2 0E 00 10 02 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 75 [17:10:41]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [17:10:41]wFMCommunicate OK [17:10:41]SAM_PROTO_GetShiftState done [17:10:41]FM_GetShiftState done [17:10:41]req_shift_opened done [17:10:41]requested_item shift.open_date is exist - process it [17:10:41]req_shift_open_date [17:10:41]req_shift_open_date done [17:10:41]produce_requested_data done [17:10:41]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30408,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [17:10:41]process_action_free close_receipt [17:10:41]json_value_free [17:10:41]json_value_free done [17:10:41]process_json_proto returns [17:10:41]Send response to host [17:10:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30408,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [17:10:41]free response buf [17:10:41]execute_script done [17:10:41]execute_script returns [17:10:41]free content buf [17:10:41]Sock 9.Close socket [17:10:41]Sock 9.Thread stoped [17:10:45]OFD Sender: No OFD packet to send [17:10:50]OFD Sender: No OFD packet to send [17:10:55]OFD Sender: No OFD packet to send [17:11:00]OFD Sender: No OFD packet to send [17:11:05]OFD Sender: No OFD packet to send [17:11:10]OFD Sender: No OFD packet to send [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:10]OFD Sender: No OFD packet to send [17:15:15]OFD Sender: No OFD packet to send [17:15:20]OFD Sender: No OFD packet to send [17:15:25]OFD Sender: No OFD packet to send [17:15:30]OFD Sender: No OFD packet to send [17:15:35]OFD Sender: No OFD packet to send [17:15:40]OFD Sender: No OFD packet to send [17:15:45]OFD Sender: No OFD packet to send [17:15:47]accept exits with 7 [17:15:47]New connection [17:15:47]New thread 3067346276 created [17:15:47]Thread 3067489636 joined [17:15:47]Waiting for new connection... [17:15:47] Sock 7.Parse request [17:15:47]Sock 7.Check first char [17:15:47]Sock 7.First char is OK [17:15:47]request: POST /json_proto HTTP/1.0 [17:15:47]Method: POST [17:15:47]URL: /json_proto [17:15:47]Method is POST - this is cgi request [17:15:47]url: /json_proto [17:15:47]query_string will be loaded in cgi processing [17:15:47]execute_cgi json_proto POST (null) [17:15:47]execute_cgi path=json_proto method=POST [17:15:47]POST find Content-Length [17:15:47]Host: 172.17.51.3:8080 [17:15:47]Content-Length: 682 [17:15:47]Content-Type: application/json [17:15:47] [17:15:47]POST finish read [17:15:47]Found Content-Length = 682 [17:15:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342808", "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:15:47]execute_script... [17:15:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342808", "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:15:47]POST & json_proto [17:15:47]process_json_proto [17:15:47]json parsed OK: [17:15:47]protocol is kg_v1.0 [17:15:48]action value=close_receipt [17:15:48]process_action close_receipt [17:15:48]cmd_close_receipt [17:15:48]MH_GetDate [17:15:48]Write to MH i2c: F0 00 00 11 02 02 [17:15:48]Write i2c OK [17:15:48]MH_I2C_Read... [17:15:48]Read from MH i2c: F0 [17:15:48]MH_I2C_Read... [17:15:48]Read from MH i2c: F0 09 00 [17:15:48]MH_I2C_Read... [17:15:48]Read from MH i2c: F0 09 00 11 02 00 C4 3A 15 67 04 C1 95 66 45 [17:15:48]GetLastDocTimeStamp 1729444237 [17:15:48]current date 1729444548 [17:15:48]FM_GetShiftState [17:15:48]SAM_PROTO_GetShiftState [17:15:48]wFMCommunicate request_size=4 [17:15:48]MH_SAM_APDU [17:15:48]CAPDU: 80 13 01 00 [17:15:48]Write to MH i2c: E2 08 00 12 02 80 13 01 00 00 00 00 00 91 [17:15:48]Write i2c OK [17:15:48]MH_I2C_Read... [17:15:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:15:48]Read from MH i2c: E2 [17:15:48]MH_I2C_Read... [17:15:48]Read from MH i2c: E2 0E 00 [17:15:48]MH_I2C_Read... [17:15:48]Read from MH i2c: E2 0E 00 12 02 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 77 [17:15:48]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [17:15:48]wFMCommunicate OK [17:15:48]SAM_PROTO_GetShiftState done [17:15:48]FM_GetShiftState done [17:15:48]opened in 1729384718 [17:15:48]opened+sec_in_day 1729471118 [17:15:48]quantity*price = 100021 [17:15:48]sum+1 = 100023 [17:15:48]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 СНО: Общий режим Чек 191 20.10.2024 17:15 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30409 ФПД: 273276703651721 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T171548&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30409&fm=273276703651721&tin=02508201610067®Number=0000000000186857&sum=100000 [17:15:49]StoreToDocumentArchive [17:15:49]shift 114 fd 30409 [17:15:49]save to /storage/0114/doc_00030409 [17:15:49]save last doc name /storage/0114/doc_00030409 to /storage/kkm_last_doc_name [17:15:49]save OK [17:15:49]Clear old archive folders... [17:15:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:15:49]tlvbuf is 01E2FF00 [17:15:49]SAM_PROTO_ClearQueue [17:15:49]wFMCommunicate request_size=4 [17:15:49]MH_SAM_APDU [17:15:49]CAPDU: 80 09 00 00 [17:15:49]Write to MH i2c: E2 08 00 1F 02 80 09 00 00 00 00 00 00 93 [17:15:49]Write i2c OK [17:15:49]MH_I2C_Read... [17:15:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:15:49]Read from MH i2c: E2 [17:15:49]MH_I2C_Read... [17:15:49]Read from MH i2c: E2 03 00 [17:15:49]MH_I2C_Read... [17:15:49]Read from MH i2c: E2 03 00 1F 02 00 90 00 95 [17:15:49]RAPDU: 90 00 [17:15:49]wFMCommunicate OK [17:15:49]SAM_PROTO_ClearQueue done [17:15:49]KKMCreateOFDPacket [17:15:49]OFDProtocolAddRootSTLVToBuf [17:15:49]FM_MakeSignedData [17:15:49]FM_MakeSignedData [17:15:49]SAM_PROTO_SignData [17:15:49]wFMCommunicate request_size=4 [17:15:49]MH_SAM_APDU [17:15:49]CAPDU: 80 0D 01 02 [17:15:49]Write to MH i2c: E2 08 00 20 02 80 0D 01 02 00 00 00 00 9B [17:15:49]Write i2c OK [17:15:49]MH_I2C_Read... [17:15:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:15:49]Read from MH i2c: E2 [17:15:49]MH_I2C_Read... [17:15:49]Read from MH i2c: E2 03 00 [17:15:49]MH_I2C_Read... [17:15:49]Read from MH i2c: E2 03 00 20 02 00 90 00 96 [17:15:49]RAPDU: 90 00 [17:15:49]wFMCommunicate OK [17:15:49]wFMCommunicate request_size=255 [17:15:49]MH_SAM_APDU [17: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 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 BF 00 00 00 F4 03 04 00 C4 3A 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 F8 [17:15:49]Write to MH i2c: E2 02 01 21 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 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 BF 00 00 00 F4 03 04 00 C4 3A 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 F8 00 00 2C [17:15:49]Write i2c OK [17:15:49]MH_I2C_Read... [17:15:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:15:49]Read from MH i2c: E2 [17:15:49]MH_I2C_Read... [17:15:49]Read from MH i2c: E2 03 00 [17:15:49]MH_I2C_Read... [17:15:49]Read from MH i2c: E2 03 00 21 02 00 90 00 97 [17:15:49]RAPDU: 90 00 [17:15:49]wFMCommunicate OK [17:15:49]wFMCommunicate request_size=10 [17:15:49]MH_SAM_APDU [17:15:49]CAPDU: 80 0D 02 02 05 8B 30 D8 B7 89 [17:15:49]Write to MH i2c: E2 0D 00 22 02 80 0D 02 02 05 00 8B 30 D8 B7 89 00 00 7B [17:15:49]Write i2c OK [17:15:49]MH_I2C_Read... [17:15:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:15:49]Read from MH i2c: E2 [17:15:49]MH_I2C_Read... [17:15:49]Read from MH i2c: E2 03 00 [17:15:49]MH_I2C_Read... [17:15:49]Read from MH i2c: E2 03 00 22 02 00 90 00 98 [17:15:49]RAPDU: 90 00 [17:15:49]wFMCommunicate OK [17:15:49]wFMCommunicate request_size=4 [17:15:49]MH_SAM_APDU [17:15:49]CAPDU: 80 0D 03 02 [17:15:49]Write to MH i2c: E2 08 00 23 02 80 0D 03 02 00 00 00 00 A0 [17:15:49]Write i2c OK [17:15:49]MH_I2C_Read... [17:15:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:15:49]Read from MH i2c: E2 [17:15:49]MH_I2C_Read... [17:15:49]Read from MH i2c: E2 0B 00 [17:15:49]MH_I2C_Read... [17:15:49]Read from MH i2c: E2 0B 00 23 02 00 54 BF 57 73 EC 18 39 C0 90 00 7B [17:15:49]RAPDU: 54 BF 57 73 EC 18 39 C0 90 00 [17:15:49]wFMCommunicate OK [17:15:49]SAM_PROTO_SignData done [17:15:49]FM_MakeSignedData done [17:15:49]CreateOFDProtocolMessage [17:15:49]wFMCommunicate request_size=4 [17:15:49]MH_SAM_APDU [17:15:49]CAPDU: 80 11 00 00 [17:15:49]Write to MH i2c: E2 08 00 24 02 80 11 00 00 00 00 00 00 A0 [17:15:49]Write i2c OK [17:15:49]MH_I2C_Read... [17:15:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:15:49]Read from MH i2c: E2 [17:15:49]MH_I2C_Read... [17:15:49]Read from MH i2c: E2 17 00 [17:15:49]MH_I2C_Read... [17:15:49]Read from MH i2c: E2 17 00 24 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 EE [17:15:49]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:49]wFMCommunicate OK [17:15:49]CreateOFDProtocolMessage done [17:15:49]OFDSenderStorePacket 30409 [17:15:49]StoreOFDPacket docnum=30409 [17:15: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 BB 78 07 01 B9 23 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 BF 00 00 00 F4 03 04 00 C4 3A 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 F8 8B 30 D8 B7 89 54 BF 57 73 EC 18 39 C0 [17:15:49]CheckFolder [17:15:49]dirname=/storage/ofd_packets [17:15:49]CheckFolder done [17:15:49]ProducePacketName [17:15:49]name=ofd_packets/00030409 [17:15:49]NVStorageSaveData ofd_packets/00030409 [17:15:49]File name is /storage/ofd_packets/00030409 [17:15:49]Write 301 bytes [17:15:49]NVStorageSaveData done [17:15:49]OFDSenderStorePacket done [17:15:49]KKMCreateOFDPacket done [17:15:49]NVStorageSaveData kkm_last_timestamp [17:15:49]File name is /storage/kkm_last_timestamp [17:15:49]Write 4 bytes [17:15:49]NVStorageSaveData done [17:15:49]ExternCall_PrintAddStr [17:15:49]wPrintStart [17:15:49]Write to MH i2c: 01 00 00 25 02 27 [17:15:49]Write i2c OK [17:15:49]MH_I2C_Read... [17:15:49]Read from MH i2c: 01 [17:15:49]MH_I2C_Read... [17:15:49]Read from MH i2c: 01 07 00 [17:15:49]MH_I2C_Read... [17:15:49]Read from MH i2c: 01 07 00 25 02 00 00 00 00 00 FF 0F 3C [17:15:49]RasterBufferAndPrint [17:15:49]line Счет N : (1)342808 [17:15:49]line ИНН: 02508201610067 [17:15:49]line Контрольно-Кассовый Чек [17:15:49]line ПРОДАЖА [17:15:49]line ТРК (МРК, ГНК) : 52 [17:15:49]line Товар: 2710124500 [17:15:49]line Аи-95-К-3 [17:15:49]line 13.480 * 74.20 [17:15:49]line = 1000.22 [17:15:49]line НДС 12% НСП 1% [17:15:49]line > о реализуемом товаре [17:15:49]line ОКРУГЛЕНИЕ: -0.22 [17:15:49]line ИТОГО: 1000.00 [17:15:49]line Внесено: 1000.00 [17:15:49]line СДАЧА: 0.00 [17:15:49]line НСП 1% : 8.85 [17:15:49]line НДС 12% : 106.22 [17:15:49]line Наличными: 1000.00 [17:15:49]line Безнал.: 0.00 [17:15:49]line Место: АЗС № 78 "Партнер Нефть" [17:15:49]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [17:15:49]line СНО: Общий режим [17:15:49]line Чек 191 20.10.2024 17:15 [17:15:49]line Смена: 114 ФФД: 1.0 [17:15:49]line ЗНМ: 0300000137 [17:15:49]line РНМ: 0000000000186857 [17:15:49]line Версия ККМ: v1.0 [17:15:49]line ФМ: 0000000002094219 [17:15:49]line ФД: 30409 [17:15:49]line ФПД: 273276703651721 [17:15:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T171548&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30409&fm=273276703651721&tin=02508201610067®Number=0000000000186857&sum=100000 [17:15:49]OFD Sender: Processing packet 30409 [packets to send 10, broken 9] [17:15:49]ProducePacketName [17:15:49]name=ofd_packets/00030409 [17:15:49]OFD Sender: To server: pG, [17:15:49]CommunicateWithHost lk.salyk.kg:30040 [17:15:49]ConnectInit lk.salyk.kg [17:15:50]written 0, free lines is 4095 [17:15:50]Connected sock=10 [17: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 BB 78 07 01 B9 23 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 BF 00 00 00 F4 03 04 00 C4 3A 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 F8 8B 30 D8 B7 89 54 BF 57 73 EC 18 39 C0 [17: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 FA 1D 47 00 47 10 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 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 76 00 00 F4 03 04 00 47 E5 14 67 B6 04 01 00 00 4A 45 3E 6A 55 CC 48 FD [17:15:50]CommunicateWithHost err = 0 [17:15:50]CheckOFDResponse [17:15:50]1017 (14) - 77093643461234 [17:15:50]1041 (16) - 0000000002094219 [17:15:50]1040 (4) - 30409 [17:15:50]1012 (4) - 20.10.2024 11:11 [17:15:50]1206 (1) - 0 [17:15:50]OFD Sender: Remove packet 30409 [17:15:50]ProducePacketName [17:15:50]name=ofd_packets/00030409 [17:15:50]NVStorageDeleteData [17:15:50]Write to MH i2c: 01 00 00 50 02 52 [17:15:50]Write i2c OK [17:15:50]MH_I2C_Read... [17:15:50]Read from MH i2c: 01 [17:15:50]MH_I2C_Read... [17:15:50]Read from MH i2c: 01 07 00 [17:15:50]MH_I2C_Read... [17:15:50]Read from MH i2c: 01 07 00 50 02 00 00 00 00 00 F0 0C 55 [17:15:50]RasterBufferAndPrint [17:15:50]line [17:15:50]line [17:15:50]line [17:15:50]line [17:15:50]line [17:15:50]written 0, free lines is 3318 [17:15:50]MH_Cut [17:15:50]Write to MH i2c: D1 01 00 57 02 01 2B [17:15:50]Write i2c OK [17:15:50]MH_I2C_Read... [17:15:50]Read from MH i2c: D1 [17:15:50]MH_I2C_Read... [17:15:50]Read from MH i2c: D1 01 00 [17:15:50]MH_I2C_Read... [17:15:50]Read from MH i2c: D1 01 00 57 02 00 2A [17:15:50]Write to MH i2c: 01 00 00 58 02 5A [17:15:50]Write i2c OK [17:15:50]MH_I2C_Read... [17:15:50]OFD Sender: No OFD packet to send [17:15:51]*** Cut start [17:15:51]*** Partial cut [17:15:51]*** CUTSNS_PIN = 1 [17:15:51]*** CUTSNS_PIN = 0 [17:15:51]*** Brake cut motor [17:15:51]Read from MH i2c: 01 [17:15:51]MH_I2C_Read... [17:15:51]*** Stop cut motor [17:15:51]*** Cut end [17:15:51]Read from MH i2c: 01 07 00 [17:15:51]MH_I2C_Read... [17:15:51]Read from MH i2c: 01 07 00 58 02 00 00 00 00 00 FF 0F 6F [17:15:51]process_action close_receipt done [17:15:51]requested_data is exist [17:15:51]produce_requested_data [17:15:51]requested_item fm.sn is exist - process it [17:15:51]wFMCommunicate request_size=4 [17:15:51]MH_SAM_APDU [17:15:51]CAPDU: 80 11 00 00 [17:15:51]Write to MH i2c: E2 08 00 59 02 80 11 00 00 00 00 00 00 D5 [17:15:51]Write i2c OK [17:15:51]MH_I2C_Read... [17:15:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:15:51]Read from MH i2c: E2 [17:15:51]MH_I2C_Read... [17:15:51]Read from MH i2c: E2 17 00 [17:15:51]MH_I2C_Read... [17:15:51]Read from MH i2c: E2 17 00 59 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 23 [17:15:51]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:51]wFMCommunicate OK [17:15:51]requested_item fd.num is exist - process it [17:15:51]SAM_PROTO_GetFieldsCounters [17:15:51]wFMCommunicate request_size=4 [17:15:51]MH_SAM_APDU [17:15:51]CAPDU: 80 13 00 00 [17:15:51]Write to MH i2c: E2 08 00 5A 02 80 13 00 00 00 00 00 00 D8 [17:15:51]Write i2c OK [17:15:51]MH_I2C_Read... [17:15:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:15:51]Read from MH i2c: E2 [17:15:51]MH_I2C_Read... [17:15:51]Read from MH i2c: E2 62 00 [17:15:51]MH_I2C_Read... [17:15:51]Read from MH i2c: E2 62 00 5A 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 EC [17:15: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 C9 76 00 00 0E 04 04 00 72 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:15:51]wFMCommunicate OK [17:15:51]SAM_PROTO_GetFieldsCounters done [17:15:51]requested_item shift.num is exist - process it [17:15:51]requested_item shift.opened is exist - process it [17:15:51]req_shift_opened [17:15:51]FM_GetShiftState [17:15:51]SAM_PROTO_GetShiftState [17:15:51]wFMCommunicate request_size=4 [17:15:51]MH_SAM_APDU [17:15:51]CAPDU: 80 13 01 00 [17:15:51]Write to MH i2c: E2 08 00 5B 02 80 13 01 00 00 00 00 00 DA [17:15:51]Write i2c OK [17:15:51]MH_I2C_Read... [17:15:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:15:51]Read from MH i2c: E2 [17:15:51]MH_I2C_Read... [17:15:51]Read from MH i2c: E2 0E 00 [17:15:51]MH_I2C_Read... [17:15:51]Read from MH i2c: E2 0E 00 5B 02 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 C0 [17:15:51]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [17:15:51]wFMCommunicate OK [17:15:51]SAM_PROTO_GetShiftState done [17:15:51]FM_GetShiftState done [17:15:51]req_shift_opened done [17:15:51]requested_item shift.open_date is exist - process it [17:15:51]req_shift_open_date [17:15:51]req_shift_open_date done [17:15:51]produce_requested_data done [17:15:51]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30409,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [17:15:51]process_action_free close_receipt [17:15:51]json_value_free [17:15:51]json_value_free done [17:15:51]process_json_proto returns [17:15:51]Send response to host [17:15:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30409,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [17:15:51]free response buf [17:15:51]execute_script done [17:15:51]execute_script returns [17:15:51]free content buf [17:15:51]Sock 7.Close socket [17:15:51]Sock 7.Thread stoped [17:15:55]OFD Sender: No OFD packet to send [17:16:00]OFD Sender: No OFD packet to send [17:16:05]OFD Sender: No OFD packet to send [17:16:10]OFD Sender: No OFD packet to send [17:16:15]OFD Sender: No OFD packet to send [17:16:20]OFD Sender: No OFD packet to send [17:16:25]OFD Sender: No OFD packet to send [17:16:30]OFD Sender: No OFD packet to send [17:16:35]OFD Sender: No OFD packet to send [17:16:40]OFD Sender: No OFD packet to send [17:16:45]OFD Sender: No OFD packet to send [17:16:50]OFD Sender: No OFD packet to send [17:16:55]OFD Sender: No OFD packet to send [17:17:00]OFD Sender: No OFD packet to send [17:17:05]OFD Sender: No OFD packet to send [17:17:10]OFD Sender: No OFD packet to send [17:17:15]OFD Sender: No OFD packet to send [17:17:19]accept exits with 9 [17:17:19]New connection [17:17:19]New thread 3067489636 created [17:17:19]Thread 3067346276 joined [17:17:19]Waiting for new connection... [17:17:19] Sock 9.Parse request [17:17:19]Sock 9.Check first char [17:17:19]Sock 9.First char is OK [17:17:19]request: POST /json_proto HTTP/1.0 [17:17:19]Method: POST [17:17:19]URL: /json_proto [17:17:19]Method is POST - this is cgi request [17:17:19]url: /json_proto [17:17:19]query_string will be loaded in cgi processing [17:17:19]execute_cgi json_proto POST (null) [17:17:19]execute_cgi path=json_proto method=POST [17:17:19]POST find Content-Length [17:17:19]Host: 172.17.51.3:8080 [17:17:19]Content-Length: 677 [17:17:19]Content-Type: application/json [17:17:19] [17:17:19]POST finish read [17:17:19]Found Content-Length = 677 [17:17:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342809", "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" : 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" ] } } [17:17:19]execute_script... [17:17:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342809", "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" : 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" ] } } [17:17:19]POST & json_proto [17:17:19]process_json_proto [17:17:19]json parsed OK: [17:17:19]protocol is kg_v1.0 [17:17:19]action value=close_receipt [17:17:19]process_action close_receipt [17:17:19]cmd_close_receipt [17:17:19]MH_GetDate [17:17:19]Write to MH i2c: F0 00 00 5C 02 4D [17:17:19]Write i2c OK [17:17:19]MH_I2C_Read... [17:17:19]Read from MH i2c: F0 [17:17:19]MH_I2C_Read... [17:17:19]Read from MH i2c: F0 09 00 [17:17:19]MH_I2C_Read... [17:17:19]Read from MH i2c: F0 09 00 5C 02 00 1F 3B 15 67 04 C1 95 66 EC [17:17:19]GetLastDocTimeStamp 1729444548 [17:17:19]current date 1729444639 [17:17:19]FM_GetShiftState [17:17:19]SAM_PROTO_GetShiftState [17:17:19]wFMCommunicate request_size=4 [17:17:19]MH_SAM_APDU [17:17:19]CAPDU: 80 13 01 00 [17:17:19]Write to MH i2c: E2 08 00 5D 02 80 13 01 00 00 00 00 00 DC [17:17:19]Write i2c OK [17:17:19]MH_I2C_Read... [17:17:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:17:19]Read from MH i2c: E2 [17:17:19]MH_I2C_Read... [17:17:19]Read from MH i2c: E2 0E 00 [17:17:19]MH_I2C_Read... [17:17:19]Read from MH i2c: E2 0E 00 5D 02 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 C2 [17:17:19]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [17:17:19]wFMCommunicate OK [17:17:19]SAM_PROTO_GetShiftState done [17:17:19]FM_GetShiftState done [17:17:19]opened in 1729384718 [17:17:19]opened+sec_in_day 1729471118 [17:17:19]quantity*price = 50010 [17:17:19]sum+1 = 50012 [17:17:19]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 СНО: Общий режим Чек 192 20.10.2024 17:17 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30410 ФПД: 53748547590509 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T171719&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30410&fm=53748547590509&tin=02508201610067®Number=0000000000186857&sum=50000 [17:17:20]StoreToDocumentArchive [17:17:20]shift 114 fd 30410 [17:17:20]save to /storage/0114/doc_00030410 [17:17:20]save last doc name /storage/0114/doc_00030410 to /storage/kkm_last_doc_name [17:17:20]save OK [17:17:20]Clear old archive folders... [17:17:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:17:20]tlvbuf is 01E218D0 [17:17:20]SAM_PROTO_ClearQueue [17:17:20]wFMCommunicate request_size=4 [17:17:20]MH_SAM_APDU [17:17:20]CAPDU: 80 09 00 00 [17:17:20]Write to MH i2c: E2 08 00 6A 02 80 09 00 00 00 00 00 00 DE [17:17:20]Write i2c OK [17:17:20]MH_I2C_Read... [17:17:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:17:20]Read from MH i2c: E2 [17:17:20]MH_I2C_Read... [17:17:20]Read from MH i2c: E2 03 00 [17:17:20]MH_I2C_Read... [17:17:20]Read from MH i2c: E2 03 00 6A 02 00 90 00 E0 [17:17:20]RAPDU: 90 00 [17:17:20]wFMCommunicate OK [17:17:20]SAM_PROTO_ClearQueue done [17:17:20]KKMCreateOFDPacket [17:17:20]OFDProtocolAddRootSTLVToBuf [17:17:20]FM_MakeSignedData [17:17:20]FM_MakeSignedData [17:17:20]SAM_PROTO_SignData [17:17:20]wFMCommunicate request_size=4 [17:17:20]MH_SAM_APDU [17:17:20]CAPDU: 80 0D 01 02 [17:17:20]Write to MH i2c: E2 08 00 6B 02 80 0D 01 02 00 00 00 00 E6 [17:17:20]Write i2c OK [17:17:20]MH_I2C_Read... [17:17:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:17:20]Read from MH i2c: E2 [17:17:20]MH_I2C_Read... [17:17:20]Read from MH i2c: E2 03 00 [17:17:20]MH_I2C_Read... [17:17:20]Read from MH i2c: E2 03 00 6B 02 00 90 00 E1 [17:17:20]RAPDU: 90 00 [17:17:20]wFMCommunicate OK [17:17:20]wFMCommunicate request_size=255 [17:17:20]MH_SAM_APDU [17:17:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 C0 00 00 00 F4 03 04 00 1F 3B 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 30 [17:17:20]Write to MH i2c: E2 02 01 6C 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 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 C0 00 00 00 F4 03 04 00 1F 3B 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 30 00 00 C8 [17:17:20]Write i2c OK [17:17:20]MH_I2C_Read... [17:17:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:17:20]Read from MH i2c: E2 [17:17:20]MH_I2C_Read... [17:17:20]Read from MH i2c: E2 03 00 [17:17:20]MH_I2C_Read... [17:17:20]Read from MH i2c: E2 03 00 6C 02 00 90 00 E2 [17:17:20]RAPDU: 90 00 [17:17:20]wFMCommunicate OK [17:17:20]wFMCommunicate request_size=10 [17:17:20]MH_SAM_APDU [17:17:20]CAPDU: 80 0D 02 02 05 E2 4F 16 19 6D [17:17:20]Write to MH i2c: E2 0D 00 6D 02 80 0D 02 02 05 00 E2 4F 16 19 6D 00 00 C0 [17:17:20]Write i2c OK [17:17:20]MH_I2C_Read... [17:17:20]OFD Sender: No OFD packet to send [17:17:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:17:20]Read from MH i2c: E2 [17:17:20]MH_I2C_Read... [17:17:20]Read from MH i2c: E2 03 00 [17:17:20]MH_I2C_Read... [17:17:20]Read from MH i2c: E2 03 00 6D 02 00 90 00 E3 [17:17:20]RAPDU: 90 00 [17:17:20]wFMCommunicate OK [17:17:20]wFMCommunicate request_size=4 [17:17:20]MH_SAM_APDU [17:17:20]CAPDU: 80 0D 03 02 [17:17:20]Write to MH i2c: E2 08 00 6E 02 80 0D 03 02 00 00 00 00 EB [17:17:20]Write i2c OK [17:17:20]MH_I2C_Read... [17:17:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:17:20]Read from MH i2c: E2 [17:17:20]MH_I2C_Read... [17:17:20]Read from MH i2c: E2 0B 00 [17:17:20]MH_I2C_Read... [17:17:20]Read from MH i2c: E2 0B 00 6E 02 00 CE C6 6E 30 34 5E A6 6A 90 00 C0 [17:17:20]RAPDU: CE C6 6E 30 34 5E A6 6A 90 00 [17:17:21]wFMCommunicate OK [17:17:21]SAM_PROTO_SignData done [17:17:21]FM_MakeSignedData done [17:17:21]CreateOFDProtocolMessage [17:17:21]wFMCommunicate request_size=4 [17:17:21]MH_SAM_APDU [17:17:21]CAPDU: 80 11 00 00 [17:17:21]Write to MH i2c: E2 08 00 6F 02 80 11 00 00 00 00 00 00 EB [17:17:21]Write i2c OK [17:17:21]MH_I2C_Read... [17:17:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:17:21]Read from MH i2c: E2 [17:17:21]MH_I2C_Read... [17:17:21]Read from MH i2c: E2 17 00 [17:17:21]MH_I2C_Read... [17:17:21]Read from MH i2c: E2 17 00 6F 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 39 [17:17: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:17:21]wFMCommunicate OK [17:17:21]CreateOFDProtocolMessage done [17:17:21]OFDSenderStorePacket 30410 [17:17:21]StoreOFDPacket docnum=30410 [17:17: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 15 D5 07 01 54 44 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 C0 00 00 00 F4 03 04 00 1F 3B 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 30 E2 4F 16 19 6D CE C6 6E 30 34 5E A6 6A [17:17:21]CheckFolder [17:17:21]dirname=/storage/ofd_packets [17:17:21]CheckFolder done [17:17:21]ProducePacketName [17:17:21]name=ofd_packets/00030410 [17:17:21]NVStorageSaveData ofd_packets/00030410 [17:17:21]File name is /storage/ofd_packets/00030410 [17:17:21]Write 301 bytes [17:17:21]NVStorageSaveData done [17:17:21]OFDSenderStorePacket done [17:17:21]KKMCreateOFDPacket done [17:17:21]NVStorageSaveData kkm_last_timestamp [17:17:21]File name is /storage/kkm_last_timestamp [17:17:21]Write 4 bytes [17:17:21]NVStorageSaveData done [17:17:21]ExternCall_PrintAddStr [17:17:21]wPrintStart [17:17:21]Write to MH i2c: 01 00 00 70 02 72 [17:17:21]Write i2c OK [17:17:21]MH_I2C_Read... [17:17:21]Read from MH i2c: 01 [17:17:21]MH_I2C_Read... [17:17:21]Read from MH i2c: 01 07 00 [17:17:21]MH_I2C_Read... [17:17:21]Read from MH i2c: 01 07 00 70 02 00 00 00 00 00 FF 0F 87 [17:17:21]RasterBufferAndPrint [17:17:21]line Счет N : (1)342809 [17:17:21]line ИНН: 02508201610067 [17:17:21]line Контрольно-Кассовый Чек [17:17:21]line ПРОДАЖА [17:17:21]line ТРК (МРК, ГНК) : 42 [17:17:21]line Товар: 2710124500 [17:17:21]line Аи-95-К-3 [17:17:21]line 6.740 * 74.20 [17:17:21]line = 500.11 [17:17:21]line НДС 12% НСП 1% [17:17:21]line > о реализуемом товаре [17:17:21]line ОКРУГЛЕНИЕ: -0.11 [17:17:21]line ИТОГО: 500.00 [17:17:21]line Внесено: 500.00 [17:17:21]line СДАЧА: 0.00 [17:17:21]line НСП 1% : 4.43 [17:17:21]line НДС 12% : 53.11 [17:17:21]line Наличными: 500.00 [17:17:21]line Безнал.: 0.00 [17:17:21]line Место: АЗС № 78 "Партнер Нефть" [17:17:21]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [17:17:21]line СНО: Общий режим [17:17:21]line Чек 192 20.10.2024 17:17 [17:17:21]line Смена: 114 ФФД: 1.0 [17:17:21]line ЗНМ: 0300000137 [17:17:21]line РНМ: 0000000000186857 [17:17:21]line Версия ККМ: v1.0 [17:17:21]line ФМ: 0000000002094219 [17:17:21]line ФД: 30410 [17:17:21]line ФПД: 53748547590509 [17:17:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T171719&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30410&fm=53748547590509&tin=02508201610067®Number=0000000000186857&sum=50000 [17:17:21]OFD Sender: Processing packet 30410 [packets to send 10, broken 9] [17:17:21]ProducePacketName [17:17:21]name=ofd_packets/00030410 [17:17:21]OFD Sender: To server: pG, [17:17:21]CommunicateWithHost lk.salyk.kg:30040 [17:17:21]ConnectInit lk.salyk.kg [17:17:21]written 0, free lines is 4095 [17:17:21]Connected sock=10 [17:17: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 15 D5 07 01 54 44 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 C0 00 00 00 F4 03 04 00 1F 3B 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 30 E2 4F 16 19 6D CE C6 6E 30 34 5E A6 6A [17:17: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 FC EE 47 00 04 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 CA 76 00 00 F4 03 04 00 A2 E5 14 67 B6 04 01 00 00 39 F4 AF 7D 8F 71 F8 26 [17:17:21]CommunicateWithHost err = 0 [17:17:21]CheckOFDResponse [17:17:21]1017 (14) - 77093643461234 [17:17:21]1041 (16) - 0000000002094219 [17:17:21]1040 (4) - 30410 [17:17:21]1012 (4) - 20.10.2024 11:12 [17:17:21]1206 (1) - 0 [17:17:21]OFD Sender: Remove packet 30410 [17:17:21]ProducePacketName [17:17:21]name=ofd_packets/00030410 [17:17:21]NVStorageDeleteData [17:17:21]Write to MH i2c: 01 00 00 9B 02 9D [17:17:21]Write i2c OK [17:17:21]MH_I2C_Read... [17:17:21]Read from MH i2c: 01 [17:17:21]MH_I2C_Read... [17:17:21]Read from MH i2c: 01 07 00 [17:17:21]MH_I2C_Read... [17:17:21]Read from MH i2c: 01 07 00 9B 02 00 00 00 00 00 ED 0C 9D [17:17:21]RasterBufferAndPrint [17:17:21]line [17:17:21]line [17:17:21]line [17:17:21]line [17:17:21]line [17:17:21]written 0, free lines is 3315 [17:17:21]MH_Cut [17:17:21]Write to MH i2c: D1 01 00 A2 02 01 76 [17:17:21]Write i2c OK [17:17:21]MH_I2C_Read... [17:17:21]Read from MH i2c: D1 [17:17:21]MH_I2C_Read... [17:17:21]Read from MH i2c: D1 01 00 [17:17:21]MH_I2C_Read... [17:17:21]Read from MH i2c: D1 01 00 A2 02 00 75 [17:17:21]Write to MH i2c: 01 00 00 A3 02 A5 [17:17:21]Write i2c OK [17:17:21]MH_I2C_Read... [17:17:22]OFD Sender: No OFD packet to send [17:17:22]*** Cut start [17:17:22]*** Partial cut [17:17:22]*** CUTSNS_PIN = 1 [17:17:22]*** CUTSNS_PIN = 0 [17:17:22]*** Brake cut motor [17:17:23]Read from MH i2c: 01 [17:17:23]MH_I2C_Read... [17:17:23]*** Stop cut motor [17:17:23]*** Cut end [17:17:23]Read from MH i2c: 01 07 00 [17:17:23]MH_I2C_Read... [17:17:23]Read from MH i2c: 01 07 00 A3 02 00 00 00 00 00 FF 0F BA [17:17:23]process_action close_receipt done [17:17:23]requested_data is exist [17:17:23]produce_requested_data [17:17:23]requested_item fm.sn is exist - process it [17:17:23]wFMCommunicate request_size=4 [17:17:23]MH_SAM_APDU [17:17:23]CAPDU: 80 11 00 00 [17:17:23]Write to MH i2c: E2 08 00 A4 02 80 11 00 00 00 00 00 00 20 [17:17:23]Write i2c OK [17:17:23]MH_I2C_Read... [17:17:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:17:23]Read from MH i2c: E2 [17:17:23]MH_I2C_Read... [17:17:23]Read from MH i2c: E2 17 00 [17:17:23]MH_I2C_Read... [17:17:23]Read from MH i2c: E2 17 00 A4 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 6E [17:17: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:17:23]wFMCommunicate OK [17:17:23]requested_item fd.num is exist - process it [17:17:23]SAM_PROTO_GetFieldsCounters [17:17:23]wFMCommunicate request_size=4 [17:17:23]MH_SAM_APDU [17:17:23]CAPDU: 80 13 00 00 [17:17:23]Write to MH i2c: E2 08 00 A5 02 80 13 00 00 00 00 00 00 23 [17:17:23]Write i2c OK [17:17:23]MH_I2C_Read... [17:17:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:17:23]Read from MH i2c: E2 [17:17:23]MH_I2C_Read... [17:17:23]Read from MH i2c: E2 62 00 [17:17:23]MH_I2C_Read... [17:17:23]Read from MH i2c: E2 62 00 A5 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 3B [17:17: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 CA 76 00 00 0E 04 04 00 72 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:17:23]wFMCommunicate OK [17:17:23]SAM_PROTO_GetFieldsCounters done [17:17:23]requested_item shift.num is exist - process it [17:17:23]requested_item shift.opened is exist - process it [17:17:23]req_shift_opened [17:17:23]FM_GetShiftState [17:17:23]SAM_PROTO_GetShiftState [17:17:23]wFMCommunicate request_size=4 [17:17:23]MH_SAM_APDU [17:17:23]CAPDU: 80 13 01 00 [17:17:23]Write to MH i2c: E2 08 00 A6 02 80 13 01 00 00 00 00 00 25 [17:17:23]Write i2c OK [17:17:23]MH_I2C_Read... [17:17:23]Read from MH i2c: E2 [17:17:23]MH_I2C_Read... [17:17:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:17:23]Read from MH i2c: E2 0E 00 [17:17:23]MH_I2C_Read... [17:17:23]Read from MH i2c: E2 0E 00 A6 02 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 0B [17:17:23]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [17:17:23]wFMCommunicate OK [17:17:23]SAM_PROTO_GetShiftState done [17:17:23]FM_GetShiftState done [17:17:23]req_shift_opened done [17:17:23]requested_item shift.open_date is exist - process it [17:17:23]req_shift_open_date [17:17:23]req_shift_open_date done [17:17:23]produce_requested_data done [17:17:23]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30410,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [17:17:23]process_action_free close_receipt [17:17:23]json_value_free [17:17:23]json_value_free done [17:17:23]process_json_proto returns [17:17:23]Send response to host [17:17:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30410,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [17:17:23]free response buf [17:17:23]execute_script done [17:17:23]execute_script returns [17:17:23]free content buf [17:17:23]Sock 9.Close socket [17:17:23]Sock 9.Thread stoped [17:17:27]OFD Sender: No OFD packet to send [17:17:32]OFD Sender: No OFD packet to send [17:17:37]OFD Sender: No OFD packet to send [17:17:42]OFD Sender: No OFD packet to send [17:17:47]OFD Sender: No OFD packet to send [17:17:52]OFD Sender: No OFD packet to send [17:17:57]OFD Sender: No OFD packet to send [17:18:02]OFD Sender: No OFD packet to send [17:18:07]OFD Sender: No OFD packet to send [17:18:12]OFD Sender: No OFD packet to send [17:18:17]OFD Sender: No OFD packet to send [17:18:22]OFD Sender: No OFD packet to send [17:18:27]OFD Sender: No OFD packet to send [17:18:32]OFD Sender: No OFD packet to send [17:18:37]OFD Sender: No OFD packet to send [17:18:42]OFD Sender: No OFD packet to send [17:18:47]OFD Sender: No OFD packet to send [17:18:52]OFD Sender: No OFD packet to send [17:18:57]OFD Sender: No OFD packet to send [17:19:02]OFD Sender: No OFD packet to send [17:19:07]OFD Sender: No OFD packet to send [17:19:12]OFD Sender: No OFD packet to send [17:19:17]OFD Sender: No OFD packet to send [17:19:22]OFD Sender: No OFD packet to send [17:19:25]accept exits with 7 [17:19:25]New connection [17:19:25]New thread 3067346276 created [17:19:25]Thread 3067489636 joined [17:19:25]Waiting for new connection... [17:19:25] Sock 7.Parse request [17:19:25]Sock 7.Check first char [17:19:25]Sock 7.First char is OK [17:19:25]request: POST /json_proto HTTP/1.0 [17:19:25]Method: POST [17:19:25]URL: /json_proto [17:19:25]Method is POST - this is cgi request [17:19:25]url: /json_proto [17:19:25]query_string will be loaded in cgi processing [17:19:25]execute_cgi json_proto POST (null) [17:19:25]execute_cgi path=json_proto method=POST [17:19:25]POST find Content-Length [17:19:25]Host: 172.17.51.3:8080 [17:19:25]Content-Length: 792 [17:19:25]Content-Type: application/json [17:19:25] [17:19:25]POST finish read [17:19:25]Found Content-Length = 792 [17:19:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342810", "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" : 27.640, "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\u000A14086", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:19:25]execute_script... [17:19: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)342810", "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" : 27.640, "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\u000A14086", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:19:25]POST & json_proto [17:19:25]process_json_proto [17:19:25]json parsed OK: [17:19:25]protocol is kg_v1.0 [17:19:25]action value=close_receipt [17:19:25]process_action close_receipt [17:19:25]cmd_close_receipt [17:19:25]MH_GetDate [17:19:25]Write to MH i2c: F0 00 00 A7 02 98 [17:19:25]Write i2c OK [17:19:25]MH_I2C_Read... [17:19:25]Read from MH i2c: F0 [17:19:25]MH_I2C_Read... [17:19:25]Read from MH i2c: F0 09 00 [17:19:25]MH_I2C_Read... [17:19:25]Read from MH i2c: F0 09 00 A7 02 00 9D 3B 15 67 04 C1 95 66 B5 [17:19:25]GetLastDocTimeStamp 1729444639 [17:19:25]current date 1729444765 [17:19:25]FM_GetShiftState [17:19:25]SAM_PROTO_GetShiftState [17:19:25]wFMCommunicate request_size=4 [17:19:25]MH_SAM_APDU [17:19:25]CAPDU: 80 13 01 00 [17:19:25]Write to MH i2c: E2 08 00 A8 02 80 13 01 00 00 00 00 00 27 [17:19:25]Write i2c OK [17:19:25]MH_I2C_Read... [17:19:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:19:25]Read from MH i2c: E2 [17:19:25]MH_I2C_Read... [17:19:25]Read from MH i2c: E2 0E 00 [17:19:25]MH_I2C_Read... [17:19:25]Read from MH i2c: E2 0E 00 A8 02 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 0D [17:19:25]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [17:19:25]wFMCommunicate OK [17:19:25]SAM_PROTO_GetShiftState done [17:19:25]FM_GetShiftState done [17:19:25]opened in 1729384718 [17:19:25]opened+sec_in_day 1729471118 [17:19:25]quantity*price = 0 [17:19:25]sum+1 = 1 [17:19:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 193 20.10.2024 17:19 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Талоны: Топливная Карта 14086 ФМ: 0000000002094219 ФД: 30411 ФПД: 159777341189501 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T171925&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30411&fm=159777341189501&tin=02508201610067®Number=0000000000186857&sum=0 [17:19:26]StoreToDocumentArchive [17:19:26]shift 114 fd 30411 [17:19:26]save to /storage/0114/doc_00030411 [17:19:26]save last doc name /storage/0114/doc_00030411 to /storage/kkm_last_doc_name [17:19:26]save OK [17:19:26]Clear old archive folders... [17:19:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:19:26]tlvbuf is 01DB09B0 [17:19:26]SAM_PROTO_ClearQueue [17:19:26]wFMCommunicate request_size=4 [17:19:26]MH_SAM_APDU [17:19:26]CAPDU: 80 09 00 00 [17:19:26]Write to MH i2c: E2 08 00 B5 02 80 09 00 00 00 00 00 00 29 [17:19:26]Write i2c OK [17:19:26]MH_I2C_Read... [17:19:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:19:26]Read from MH i2c: E2 [17:19:26]MH_I2C_Read... [17:19:26]Read from MH i2c: E2 03 00 [17:19:26]MH_I2C_Read... [17:19:26]Read from MH i2c: E2 03 00 B5 02 00 90 00 2B [17:19:26]RAPDU: 90 00 [17:19:26]wFMCommunicate OK [17:19:26]SAM_PROTO_ClearQueue done [17:19:26]KKMCreateOFDPacket [17:19:26]OFDProtocolAddRootSTLVToBuf [17:19:26]FM_MakeSignedData [17:19:26]FM_MakeSignedData [17:19:26]SAM_PROTO_SignData [17:19:26]wFMCommunicate request_size=4 [17:19:26]MH_SAM_APDU [17:19:26]CAPDU: 80 0D 01 02 [17:19:26]Write to MH i2c: E2 08 00 B6 02 80 0D 01 02 00 00 00 00 31 [17:19:26]Write i2c OK [17:19:26]MH_I2C_Read... [17:19:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:19:26]Read from MH i2c: E2 [17:19:26]MH_I2C_Read... [17:19:26]Read from MH i2c: E2 03 00 [17:19:26]MH_I2C_Read... [17:19:26]Read from MH i2c: E2 03 00 B6 02 00 90 00 2C [17:19:26]RAPDU: 90 00 [17:19:26]wFMCommunicate OK [17:19:26]wFMCommunicate request_size=255 [17:19:26]MH_SAM_APDU [17:19:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 F8 6B 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 9D 3B 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 91 [17:19:26]Write to MH i2c: E2 02 01 B7 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 F8 6B 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 9D 3B 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 91 00 00 FE [17:19:26]Write i2c OK [17:19:26]MH_I2C_Read... [17:19:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:19:26]Read from MH i2c: E2 [17:19:26]MH_I2C_Read... [17:19:26]Read from MH i2c: E2 03 00 [17:19:26]MH_I2C_Read... [17:19:26]Read from MH i2c: E2 03 00 B7 02 00 90 00 2D [17:19:26]RAPDU: 90 00 [17:19:26]wFMCommunicate OK [17:19:26]wFMCommunicate request_size=10 [17:19:26]MH_SAM_APDU [17:19:26]CAPDU: 80 0D 02 02 05 51 0F AA 2D 7D [17:19:26]Write to MH i2c: E2 0D 00 B8 02 80 0D 02 02 05 00 51 0F AA 2D 7D 00 00 F2 [17:19:26]Write i2c OK [17:19:26]MH_I2C_Read... [17:19:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:19:26]Read from MH i2c: E2 [17:19:26]MH_I2C_Read... [17:19:26]Read from MH i2c: E2 03 00 [17:19:26]MH_I2C_Read... [17:19:26]Read from MH i2c: E2 03 00 B8 02 00 90 00 2E [17:19:26]RAPDU: 90 00 [17:19:26]wFMCommunicate OK [17:19:26]wFMCommunicate request_size=4 [17:19:26]MH_SAM_APDU [17:19:26]CAPDU: 80 0D 03 02 [17:19:26]Write to MH i2c: E2 08 00 B9 02 80 0D 03 02 00 00 00 00 36 [17:19:26]Write i2c OK [17:19:26]MH_I2C_Read... [17:19:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:19:26]Read from MH i2c: E2 [17:19:26]MH_I2C_Read... [17:19:26]Read from MH i2c: E2 0B 00 [17:19:26]MH_I2C_Read... [17:19:26]Read from MH i2c: E2 0B 00 B9 02 00 A0 87 6C 25 BD 6A 88 84 90 00 22 [17:19:26]RAPDU: A0 87 6C 25 BD 6A 88 84 90 00 [17:19:26]wFMCommunicate OK [17:19:26]SAM_PROTO_SignData done [17:19:26]FM_MakeSignedData done [17:19:26]CreateOFDProtocolMessage [17:19:26]wFMCommunicate request_size=4 [17:19:26]MH_SAM_APDU [17:19:26]CAPDU: 80 11 00 00 [17:19:26]Write to MH i2c: E2 08 00 BA 02 80 11 00 00 00 00 00 00 36 [17:19:26]Write i2c OK [17:19:26]MH_I2C_Read... [17:19:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:19:27]Read from MH i2c: E2 [17:19:27]MH_I2C_Read... [17:19:27]Read from MH i2c: E2 17 00 [17:19:27]MH_I2C_Read... [17:19:27]Read from MH i2c: E2 17 00 BA 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 84 [17:19: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:19:27]wFMCommunicate OK [17:19:27]CreateOFDProtocolMessage done [17:19:27]OFDSenderStorePacket 30411 [17:19:27]StoreOFDPacket docnum=30411 [17:19: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 97 A7 07 01 15 46 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 6B 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 9D 3B 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 91 51 0F AA 2D 7D A0 87 6C 25 BD 6A 88 84 [17:19:27]CheckFolder [17:19:27]dirname=/storage/ofd_packets [17:19:27]CheckFolder done [17:19:27]ProducePacketName [17:19:27]name=ofd_packets/00030411 [17:19:27]NVStorageSaveData ofd_packets/00030411 [17:19:27]File name is /storage/ofd_packets/00030411 [17:19:27]Write 301 bytes [17:19:27]NVStorageSaveData done [17:19:27]OFDSenderStorePacket done [17:19:27]KKMCreateOFDPacket done [17:19:27]NVStorageSaveData kkm_last_timestamp [17:19:27]File name is /storage/kkm_last_timestamp [17:19:27]Write 4 bytes [17:19:27]NVStorageSaveData done [17:19:27]ExternCall_PrintAddStr [17:19:27]wPrintStart [17:19:27]Write to MH i2c: 01 00 00 BB 02 BD [17:19:27]OFD Sender: Processing packet 30411 [packets to send 10, broken 9] [17:19:27]ProducePacketName [17:19:27]name=ofd_packets/00030411 [17:19:27]OFD Sender: To server: pG, [17:19:27]CommunicateWithHost lk.salyk.kg:30040 [17:19:27]ConnectInit lk.salyk.kg [17:19:27]Write i2c OK [17:19:27]MH_I2C_Read... [17:19:27]Read from MH i2c: 01 [17:19:27]MH_I2C_Read... [17:19:27]Read from MH i2c: 01 07 00 [17:19:27]MH_I2C_Read... [17:19:27]Read from MH i2c: 01 07 00 BB 02 00 00 00 00 00 FF 0F D2 [17:19:27]RasterBufferAndPrint [17:19:27]line Счет N : (1)342810 [17:19:27]line ИНН: 02508201610067 [17:19:27]line Контрольно-Кассовый Чек [17:19:27]line ПРОДАЖА [17:19:27]line ТРК (МРК, ГНК) : 62 [17:19:27]line Товар: 2710124500 [17:19:27]line Аи-95-К-3 [17:19:27]line 27.640 * 0.00 [17:19:27]line = 0.00 [17:19:27]line НДС 12% НСП 1% [17:19:27]line > о реализуемом товаре [17:19:27]line ИТОГО: 0.00 [17:19:27]line НСП 1% : 0.00 [17:19:27]line НДС 12% : 0.00 [17:19:27]line Наличными: 0.00 [17:19:27]line Безнал.: 0.00 [17:19:27]line Место: АЗС № 78 "Партнер Нефть" [17:19:27]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [17:19:27]line СНО: Общий режим [17:19:27]line Чек 193 20.10.2024 17:19 [17:19:27]line Смена: 114 ФФД: 1.0 [17:19:27]line ЗНМ: 0300000137 [17:19:27]line РНМ: 0000000000186857 [17:19:27]line Версия ККМ: v1.0 [17:19:27]line Талоны: Топливная Карта [17:19:27]line 14086 [17:19:27]line ФМ: 0000000002094219 [17:19:27]line ФД: 30411 [17:19:27]line ФПД: 159777341189501 [17:19:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T171925&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30411&fm=159777341189501&tin=02508201610067®Number=0000000000186857&sum=0 [17:19:27]Connected sock=10 [17:19: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 97 A7 07 01 15 46 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 6B 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 9D 3B 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 91 51 0F AA 2D 7D A0 87 6C 25 BD 6A 88 84 [17:19:27]written 0, free lines is 4095 [17:19: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 A3 88 47 00 C1 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 CB 76 00 00 F4 03 04 00 20 E6 14 67 B6 04 01 00 00 4F 0B 2C D5 10 E6 ED 9C [17:19:27]CommunicateWithHost err = 0 [17:19:27]CheckOFDResponse [17:19:27]1017 (14) - 77093643461234 [17:19:27]1041 (16) - 0000000002094219 [17:19:27]1040 (4) - 30411 [17:19:27]1012 (4) - 20.10.2024 11:14 [17:19:27]1206 (1) - 0 [17:19:27]OFD Sender: Remove packet 30411 [17:19:27]ProducePacketName [17:19:27]name=ofd_packets/00030411 [17:19:27]NVStorageDeleteData [17:19:27]Write to MH i2c: 01 00 00 E5 02 E7 [17:19:27]Write i2c OK [17:19:27]MH_I2C_Read... [17:19:27]Read from MH i2c: 01 [17:19:27]MH_I2C_Read... [17:19:27]Read from MH i2c: 01 07 00 [17:19:27]MH_I2C_Read... [17:19:27]Read from MH i2c: 01 07 00 E5 02 00 00 00 00 00 00 0D FB [17:19:27]RasterBufferAndPrint [17:19:27]line [17:19:27]line [17:19:27]line [17:19:27]line [17:19:27]line [17:19:27]written 0, free lines is 3334 [17:19:27]MH_Cut [17:19:27]Write to MH i2c: D1 01 00 EC 02 01 C0 [17:19:27]Write i2c OK [17:19:27]MH_I2C_Read... [17:19:27]Read from MH i2c: D1 [17:19:27]MH_I2C_Read... [17:19:27]Read from MH i2c: D1 01 00 [17:19:27]MH_I2C_Read... [17:19:27]Read from MH i2c: D1 01 00 EC 02 00 BF [17:19:27]Write to MH i2c: 01 00 00 ED 02 EF [17:19:27]Write i2c OK [17:19:27]MH_I2C_Read... [17:19:28]OFD Sender: No OFD packet to send [17:19:28]*** Cut start [17:19:28]*** Partial cut [17:19:28]*** CUTSNS_PIN = 1 [17:19:28]*** CUTSNS_PIN = 0 [17:19:28]*** Brake cut motor [17:19:29]Read from MH i2c: 01 [17:19:29]MH_I2C_Read... [17:19:29]*** Stop cut motor [17:19:29]*** Cut end [17:19:29]Read from MH i2c: 01 07 00 [17:19:29]MH_I2C_Read... [17:19:29]Read from MH i2c: 01 07 00 ED 02 00 00 00 00 00 FF 0F 04 [17:19:29]process_action close_receipt done [17:19:29]requested_data is exist [17:19:29]produce_requested_data [17:19:29]requested_item fm.sn is exist - process it [17:19:29]wFMCommunicate request_size=4 [17:19:29]MH_SAM_APDU [17:19:29]CAPDU: 80 11 00 00 [17:19:29]Write to MH i2c: E2 08 00 EE 02 80 11 00 00 00 00 00 00 6A [17:19:29]Write i2c OK [17:19:29]MH_I2C_Read... [17:19:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:19:29]Read from MH i2c: E2 [17:19:29]MH_I2C_Read... [17:19:29]Read from MH i2c: E2 17 00 [17:19:29]MH_I2C_Read... [17:19:29]Read from MH i2c: E2 17 00 EE 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 B8 [17:19:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [17:19:29]wFMCommunicate OK [17:19:29]requested_item fd.num is exist - process it [17:19:29]SAM_PROTO_GetFieldsCounters [17:19:29]wFMCommunicate request_size=4 [17:19:29]MH_SAM_APDU [17:19:29]CAPDU: 80 13 00 00 [17:19:29]Write to MH i2c: E2 08 00 EF 02 80 13 00 00 00 00 00 00 6D [17:19:29]Write i2c OK [17:19:29]MH_I2C_Read... [17:19:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:19:29]Read from MH i2c: E2 [17:19:29]MH_I2C_Read... [17:19:29]Read from MH i2c: E2 62 00 [17:19:29]MH_I2C_Read... [17:19:29]Read from MH i2c: E2 62 00 EF 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 89 [17:19: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 CB 76 00 00 0E 04 04 00 72 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:19:29]wFMCommunicate OK [17:19:29]SAM_PROTO_GetFieldsCounters done [17:19:29]requested_item shift.num is exist - process it [17:19:29]requested_item shift.opened is exist - process it [17:19:29]req_shift_opened [17:19:29]FM_GetShiftState [17:19:29]SAM_PROTO_GetShiftState [17:19:29]wFMCommunicate request_size=4 [17:19:29]MH_SAM_APDU [17:19:29]CAPDU: 80 13 01 00 [17:19:29]Write to MH i2c: E2 08 00 F0 02 80 13 01 00 00 00 00 00 6F [17:19:29]Write i2c OK [17:19:29]MH_I2C_Read... [17:19:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:19:29]Read from MH i2c: E2 [17:19:29]MH_I2C_Read... [17:19:29]Read from MH i2c: E2 0E 00 [17:19:29]MH_I2C_Read... [17:19:29]Read from MH i2c: E2 0E 00 F0 02 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 55 [17:19:29]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [17:19:29]wFMCommunicate OK [17:19:29]SAM_PROTO_GetShiftState done [17:19:29]FM_GetShiftState done [17:19:29]req_shift_opened done [17:19:29]requested_item shift.open_date is exist - process it [17:19:29]req_shift_open_date [17:19:29]req_shift_open_date done [17:19:29]produce_requested_data done [17:19:29]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30411,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [17:19:29]process_action_free close_receipt [17:19:29]json_value_free [17:19:29]json_value_free done [17:19:29]process_json_proto returns [17:19:29]Send response to host [17:19:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30411,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [17:19:29]free response buf [17:19:29]execute_script done [17:19:29]execute_script returns [17:19:29]free content buf [17:19:29]Sock 7.Close socket [17:19:29]Sock 7.Thread stoped [17:19:33]OFD Sender: No OFD packet to send [17:19:38]OFD Sender: No OFD packet to send [17:19:43]OFD Sender: No OFD packet to send [17:19:48]OFD Sender: No OFD packet to send [17:19:53]OFD Sender: No OFD packet to send [17:19:58]OFD Sender: No OFD packet to send [17:20:03]OFD Sender: No OFD packet to send [17:20:08]OFD Sender: No OFD packet to send [17:20:13]OFD Sender: No OFD packet to send [17:20:18]OFD Sender: No OFD packet to send [17:20:23]OFD Sender: No OFD packet to send [17:20:28]OFD Sender: No OFD packet to send [17:20:33]OFD Sender: No OFD packet to send [17:20:38]OFD Sender: No OFD packet to send [17:20:43]OFD Sender: No OFD packet to send [17:20:48]OFD Sender: No OFD packet to send [17:20:53]OFD Sender: No OFD packet to send [17:20:58]OFD Sender: No OFD packet to send [17:21:03]OFD Sender: No OFD packet to send [17:21:08]OFD Sender: No OFD packet to send [17:21:13]OFD Sender: No OFD packet to send [17:21:18]OFD Sender: No OFD packet to send [17:21:23]OFD Sender: No OFD packet to send [17:21:28]OFD Sender: No OFD packet to send [17:21:29]accept exits with 9 [17:21:29]New connection [17:21:29]New thread 3067489636 created [17:21:29]Thread 3067346276 joined [17:21:29]Waiting for new connection... [17:21:29] Sock 9.Parse request [17:21:29]Sock 9.Check first char [17:21:29]Sock 9.First char is OK [17:21:29]request: POST /json_proto HTTP/1.0 [17:21:29]Method: POST [17:21:29]URL: /json_proto [17:21:29]Method is POST - this is cgi request [17:21:29]url: /json_proto [17:21:29]query_string will be loaded in cgi processing [17:21:29]execute_cgi json_proto POST (null) [17:21:29]execute_cgi path=json_proto method=POST [17:21:29]POST find Content-Length [17:21:29]Host: 172.17.51.3:8080 [17:21:29]Content-Length: 840 [17:21:29]Content-Type: application/json [17:21:29] [17:21:29]POST finish read [17:21:29]Found Content-Length = 840 [17:21:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342811", "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 }]} ], "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" ] } } [17:21:29]execute_script... [17:21:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342811", "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 }]} ], "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" ] } } [17:21:29]POST & json_proto [17:21:29]process_json_proto [17:21:29]json parsed OK: [17:21:29]protocol is kg_v1.0 [17:21:29]action value=close_receipt [17:21:29]process_action close_receipt [17:21:29]cmd_close_receipt [17:21:29]MH_GetDate [17:21:29]Write to MH i2c: F0 00 00 F1 02 E2 [17:21:29]Write i2c OK [17:21:29]MH_I2C_Read... [17:21:29]Read from MH i2c: F0 [17:21:29]MH_I2C_Read... [17:21:29]Read from MH i2c: F0 09 00 [17:21:29]MH_I2C_Read... [17:21:29]Read from MH i2c: F0 09 00 F1 02 00 19 3C 15 67 04 C1 95 66 7C [17:21:29]GetLastDocTimeStamp 1729444765 [17:21:29]current date 1729444889 [17:21:29]FM_GetShiftState [17:21:29]SAM_PROTO_GetShiftState [17:21:29]wFMCommunicate request_size=4 [17:21:29]MH_SAM_APDU [17:21:29]CAPDU: 80 13 01 00 [17:21:29]Write to MH i2c: E2 08 00 F2 02 80 13 01 00 00 00 00 00 71 [17:21:29]Write i2c OK [17:21:29]MH_I2C_Read... [17:21:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:21:29]Read from MH i2c: E2 [17:21:29]MH_I2C_Read... [17:21:29]Read from MH i2c: E2 0E 00 [17:21:29]MH_I2C_Read... [17:21:29]Read from MH i2c: E2 0E 00 F2 02 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 57 [17:21:29]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [17:21:29]wFMCommunicate OK [17:21:29]SAM_PROTO_GetShiftState done [17:21:29]FM_GetShiftState done [17:21:29]opened in 1729384718 [17:21:29]opened+sec_in_day 1729471118 [17:21:29]quantity*price = 50041 [17:21:29]sum+1 = 50042 [17:21:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 194 20.10.2024 17:21 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Платежная система: АКБ Кыргызстан ФМ: 0000000002094219 ФД: 30412 ФПД: 253846401568217 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T172129&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30412&fm=253846401568217&tin=02508201610067®Number=0000000000186857&sum=50041 [17:21:30]StoreToDocumentArchive [17:21:30]shift 114 fd 30412 [17:21:30]save to /storage/0114/doc_00030412 [17:21:30]save last doc name /storage/0114/doc_00030412 to /storage/kkm_last_doc_name [17:21:30]save OK [17:21:30]Clear old archive folders... [17:21:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:21:30]tlvbuf is 01DB24E0 [17:21:30]SAM_PROTO_ClearQueue [17:21:30]wFMCommunicate request_size=4 [17:21:30]MH_SAM_APDU [17:21:30]CAPDU: 80 09 00 00 [17:21:30]Write to MH i2c: E2 08 00 FF 02 80 09 00 00 00 00 00 00 73 [17:21:30]Write i2c OK [17:21:30]MH_I2C_Read... [17:21:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:21:30]Read from MH i2c: E2 [17:21:30]MH_I2C_Read... [17:21:30]Read from MH i2c: E2 03 00 [17:21:30]MH_I2C_Read... [17:21:30]Read from MH i2c: E2 03 00 FF 02 00 90 00 75 [17:21:30]RAPDU: 90 00 [17:21:30]wFMCommunicate OK [17:21:30]SAM_PROTO_ClearQueue done [17:21:30]KKMCreateOFDPacket [17:21:30]OFDProtocolAddRootSTLVToBuf [17:21:30]FM_MakeSignedData [17:21:30]FM_MakeSignedData [17:21:30]SAM_PROTO_SignData [17:21:30]wFMCommunicate request_size=4 [17:21:30]MH_SAM_APDU [17:21:30]CAPDU: 80 0D 01 02 [17:21:30]Write to MH i2c: E2 08 00 00 03 80 0D 01 02 00 00 00 00 7C [17:21:30]Write i2c OK [17:21:30]MH_I2C_Read... [17:21:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:21:30]Read from MH i2c: E2 [17:21:30]MH_I2C_Read... [17:21:30]Read from MH i2c: E2 03 00 [17:21:30]MH_I2C_Read... [17:21:30]Read from MH i2c: E2 03 00 00 03 00 90 00 77 [17:21:30]RAPDU: 90 00 [17:21:30]wFMCommunicate OK [17:21:30]wFMCommunicate request_size=255 [17:21:30]MH_SAM_APDU [17:21: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 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 C2 00 00 00 F4 03 04 00 19 3C 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 E6 [17:21:30]Write to MH i2c: E2 02 01 01 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 C2 00 00 00 F4 03 04 00 19 3C 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 E6 00 00 8C [17:21:30]Write i2c OK [17:21:30]MH_I2C_Read... [17:21:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:21:31]Read from MH i2c: E2 [17:21:31]MH_I2C_Read... [17:21:31]Read from MH i2c: E2 03 00 [17:21:31]MH_I2C_Read... [17:21:31]Read from MH i2c: E2 03 00 01 03 00 90 00 78 [17:21:31]RAPDU: 90 00 [17:21:31]wFMCommunicate OK [17:21:31]wFMCommunicate request_size=10 [17:21:31]MH_SAM_APDU [17:21:31]CAPDU: 80 0D 02 02 05 DF 38 97 CD D9 [17:21:31]Write to MH i2c: E2 0D 00 02 03 80 0D 02 02 05 00 DF 38 97 CD D9 00 00 DD [17:21:31]Write i2c OK [17:21:31]MH_I2C_Read... [17:21:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:21:31]Read from MH i2c: E2 [17:21:31]MH_I2C_Read... [17:21:31]Read from MH i2c: E2 03 00 [17:21:31]MH_I2C_Read... [17:21:31]Read from MH i2c: E2 03 00 02 03 00 90 00 79 [17:21:31]RAPDU: 90 00 [17:21:31]wFMCommunicate OK [17:21:31]wFMCommunicate request_size=4 [17:21:31]MH_SAM_APDU [17:21:31]CAPDU: 80 0D 03 02 [17:21:31]Write to MH i2c: E2 08 00 03 03 80 0D 03 02 00 00 00 00 81 [17:21:31]Write i2c OK [17:21:31]MH_I2C_Read... [17:21:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:21:31]Read from MH i2c: E2 [17:21:31]MH_I2C_Read... [17:21:31]Read from MH i2c: E2 0B 00 [17:21:31]MH_I2C_Read... [17:21:31]Read from MH i2c: E2 0B 00 03 03 00 EA 77 5B 18 13 54 2E 81 90 00 6C [17:21:31]RAPDU: EA 77 5B 18 13 54 2E 81 90 00 [17:21:31]wFMCommunicate OK [17:21:31]SAM_PROTO_SignData done [17:21:31]FM_MakeSignedData done [17:21:31]CreateOFDProtocolMessage [17:21:31]wFMCommunicate request_size=4 [17:21:31]MH_SAM_APDU [17:21:31]CAPDU: 80 11 00 00 [17:21:31]Write to MH i2c: E2 08 00 04 03 80 11 00 00 00 00 00 00 81 [17:21:31]Write i2c OK [17:21:31]MH_I2C_Read... [17:21:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:21:31]Read from MH i2c: E2 [17:21:31]MH_I2C_Read... [17:21:31]Read from MH i2c: E2 17 00 [17:21:31]MH_I2C_Read... [17:21:31]Read from MH i2c: E2 17 00 04 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 CF [17:21:31]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:31]wFMCommunicate OK [17:21:31]CreateOFDProtocolMessage done [17:21:31]OFDSenderStorePacket 30412 [17:21:31]StoreOFDPacket docnum=30412 [17:21: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 3B 61 07 01 99 A4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 C2 00 00 00 F4 03 04 00 19 3C 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 E6 DF 38 97 CD D9 EA 77 5B 18 13 54 2E 81 [17:21:31]CheckFolder [17:21:31]dirname=/storage/ofd_packets [17:21:31]CheckFolder done [17:21:31]ProducePacketName [17:21:31]name=ofd_packets/00030412 [17:21:31]NVStorageSaveData ofd_packets/00030412 [17:21:31]File name is /storage/ofd_packets/00030412 [17:21:31]Write 301 bytes [17:21:31]NVStorageSaveData done [17:21:31]OFDSenderStorePacket done [17:21:31]KKMCreateOFDPacket done [17:21:31]NVStorageSaveData kkm_last_timestamp [17:21:31]File name is /storage/kkm_last_timestamp [17:21:31]Write 4 bytes [17:21:31]NVStorageSaveData done [17:21:31]ExternCall_PrintAddStr [17:21:31]wPrintStart [17:21:31]Write to MH i2c: 01 00 00 05 03 08 [17:21:31]Write i2c OK [17:21:31]MH_I2C_Read... [17:21:31]Read from MH i2c: 01 [17:21:31]MH_I2C_Read... [17:21:31]Read from MH i2c: 01 07 00 [17:21:31]MH_I2C_Read... [17:21:31]Read from MH i2c: 01 07 00 05 03 00 00 00 00 00 FF 0F 1D [17:21:31]RasterBufferAndPrint [17:21:31]line Счет N : (1)342811 [17:21:31]line ИНН: 02508201610067 [17:21:31]line Контрольно-Кассовый Чек [17:21:31]line ПРОДАЖА [17:21:31]line ТРК (МРК, ГНК) : 63 [17:21:31]line Товар: 2710124130 [17:21:31]line Аи-92-К-2 [17:21:31]line 7.480 * 66.90 [17:21:31]line = 500.41 [17:21:31]line НДС 12% НСП 1% [17:21:31]line > о реализуемом товаре [17:21:31]line ИТОГО: 500.41 [17:21:31]line НСП 1% : 4.43 [17:21:31]line НДС 12% : 53.14 [17:21:31]line Наличными: 0.00 [17:21:31]line Безнал.: 500.41 [17:21:31]line Место: АЗС № 78 "Партнер Нефть" [17:21:31]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [17:21:31]line СНО: Общий режим [17:21:31]line Чек 194 20.10.2024 17:21 [17:21:31]line Смена: 114 ФФД: 1.0 [17:21:31]line ЗНМ: 0300000137 [17:21:31]line РНМ: 0000000000186857 [17:21:31]line Версия ККМ: v1.0 [17:21:31]line Платежная система: АКБ Кыргызстан [17:21:31]line ФМ: 0000000002094219 [17:21:31]line ФД: 30412 [17:21:31]line ФПД: 253846401568217 [17:21:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T172129&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30412&fm=253846401568217&tin=02508201610067®Number=0000000000186857&sum=50041 [17:21:31]OFD Sender: Processing packet 30412 [packets to send 10, broken 9] [17:21:31]ProducePacketName [17:21:31]name=ofd_packets/00030412 [17:21:31]OFD Sender: To server: pG, [17:21:31]CommunicateWithHost lk.salyk.kg:30040 [17:21:31]ConnectInit lk.salyk.kg [17:21:31]written 0, free lines is 4095 [17:21:31]Connected sock=10 [17:21: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 3B 61 07 01 99 A4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 C2 00 00 00 F4 03 04 00 19 3C 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 E6 DF 38 97 CD D9 EA 77 5B 18 13 54 2E 81 [17:21: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 21 E4 47 00 89 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 CC 76 00 00 F4 03 04 00 9D E6 14 67 B6 04 01 00 00 41 5A 79 86 0D BC DF 28 [17:21:31]CommunicateWithHost err = 0 [17:21:31]CheckOFDResponse [17:21:31]1017 (14) - 77093643461234 [17:21:31]1041 (16) - 0000000002094219 [17:21:31]1040 (4) - 30412 [17:21:32]1012 (4) - 20.10.2024 11:16 [17:21:32]1206 (1) - 0 [17:21:32]OFD Sender: Remove packet 30412 [17:21:32]ProducePacketName [17:21:32]name=ofd_packets/00030412 [17:21:32]NVStorageDeleteData [17:21:32]Write to MH i2c: 01 00 00 2F 03 32 [17:21:32]Write i2c OK [17:21:32]MH_I2C_Read... [17:21:32]Read from MH i2c: 01 [17:21:32]MH_I2C_Read... [17:21:32]Read from MH i2c: 01 07 00 [17:21:32]MH_I2C_Read... [17:21:32]Read from MH i2c: 01 07 00 2F 03 00 00 00 00 00 04 0D 4A [17:21:32]RasterBufferAndPrint [17:21:32]line [17:21:32]line [17:21:32]line [17:21:32]line [17:21:32]line [17:21:32]written 0, free lines is 3338 [17:21:32]MH_Cut [17:21:32]Write to MH i2c: D1 01 00 36 03 01 0B [17:21:32]Write i2c OK [17:21:32]MH_I2C_Read... [17:21:32]Read from MH i2c: D1 [17:21:32]MH_I2C_Read... [17:21:32]Read from MH i2c: D1 01 00 [17:21:32]MH_I2C_Read... [17:21:32]Read from MH i2c: D1 01 00 36 03 00 0A [17:21:32]Write to MH i2c: 01 00 00 37 03 3A [17:21:32]Write i2c OK [17:21:32]MH_I2C_Read... [17:21:32]OFD Sender: No OFD packet to send [17:21:32]*** Cut start [17:21:32]*** Partial cut [17:21:32]*** CUTSNS_PIN = 1 [17:21:32]*** CUTSNS_PIN = 0 [17:21:33]*** Brake cut motor [17:21:33]Read from MH i2c: 01 [17:21:33]MH_I2C_Read... [17:21:33]*** Stop cut motor [17:21:33]*** Cut end [17:21:33]Read from MH i2c: 01 07 00 [17:21:33]MH_I2C_Read... [17:21:33]Read from MH i2c: 01 07 00 37 03 00 00 00 00 00 FF 0F 4F [17:21:33]process_action close_receipt done [17:21:33]requested_data is exist [17:21:33]produce_requested_data [17:21:33]requested_item fm.sn is exist - process it [17:21:33]wFMCommunicate request_size=4 [17:21:33]MH_SAM_APDU [17:21:33]CAPDU: 80 11 00 00 [17:21:33]Write to MH i2c: E2 08 00 38 03 80 11 00 00 00 00 00 00 B5 [17:21:33]Write i2c OK [17:21:33]MH_I2C_Read... [17:21:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:21:33]Read from MH i2c: E2 [17:21:33]MH_I2C_Read... [17:21:33]Read from MH i2c: E2 17 00 [17:21:33]MH_I2C_Read... [17:21:33]Read from MH i2c: E2 17 00 38 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 03 [17:21:33]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:33]wFMCommunicate OK [17:21:33]requested_item fd.num is exist - process it [17:21:33]SAM_PROTO_GetFieldsCounters [17:21:33]wFMCommunicate request_size=4 [17:21:33]MH_SAM_APDU [17:21:33]CAPDU: 80 13 00 00 [17:21:33]Write to MH i2c: E2 08 00 39 03 80 13 00 00 00 00 00 00 B8 [17:21:33]Write i2c OK [17:21:33]MH_I2C_Read... [17:21:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:21:33]Read from MH i2c: E2 [17:21:33]MH_I2C_Read... [17:21:33]Read from MH i2c: E2 62 00 [17:21:33]MH_I2C_Read... [17:21:33]Read from MH i2c: E2 62 00 39 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 D8 [17:21: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 CC 76 00 00 0E 04 04 00 72 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:21:33]wFMCommunicate OK [17:21:33]SAM_PROTO_GetFieldsCounters done [17:21:33]requested_item shift.num is exist - process it [17:21:33]requested_item shift.opened is exist - process it [17:21:33]req_shift_opened [17:21:33]FM_GetShiftState [17:21:33]SAM_PROTO_GetShiftState [17:21:33]wFMCommunicate request_size=4 [17:21:33]MH_SAM_APDU [17:21:33]CAPDU: 80 13 01 00 [17:21:33]Write to MH i2c: E2 08 00 3A 03 80 13 01 00 00 00 00 00 BA [17:21:33]Write i2c OK [17:21:33]MH_I2C_Read... [17:21:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:21:33]Read from MH i2c: E2 [17:21:33]MH_I2C_Read... [17:21:33]Read from MH i2c: E2 0E 00 [17:21:33]MH_I2C_Read... [17:21:33]Read from MH i2c: E2 0E 00 3A 03 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 A0 [17:21:33]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [17:21:33]wFMCommunicate OK [17:21:33]SAM_PROTO_GetShiftState done [17:21:33]FM_GetShiftState done [17:21:33]req_shift_opened done [17:21:33]requested_item shift.open_date is exist - process it [17:21:33]req_shift_open_date [17:21:33]req_shift_open_date done [17:21:33]produce_requested_data done [17:21:33]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30412,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [17:21:33]process_action_free close_receipt [17:21:33]json_value_free [17:21:33]json_value_free done [17:21:33]process_json_proto returns [17:21:33]Send response to host [17:21:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30412,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [17:21:33]free response buf [17:21:33]execute_script done [17:21:33]execute_script returns [17:21:33]free content buf [17:21:33]Sock 9.Close socket [17:21:33]Sock 9.Thread stoped [17:21:37]OFD Sender: No OFD packet to send [17:21:42]OFD Sender: No OFD packet to send [17:21:47]OFD Sender: No OFD packet to send [17:21:52]OFD Sender: No OFD packet to send [17:21:57]OFD Sender: No OFD packet to send [17:22:02]OFD Sender: No OFD packet to send [17:22:07]OFD Sender: No OFD packet to send [17:22:12]OFD Sender: No OFD packet to send [17:22:17]OFD Sender: No OFD packet to send [17:22:22]OFD Sender: No OFD packet to send [17:22:27]OFD Sender: No OFD packet to send [17:22:32]OFD Sender: No OFD packet to send [17:22:37]OFD Sender: No OFD packet to send [17:22:42]OFD Sender: No OFD packet to send [17:22:47]OFD Sender: No OFD packet to send [17:22:52]OFD Sender: No OFD packet to send [17:22:57]OFD Sender: No OFD packet to send [17:23:02]OFD Sender: No OFD packet to send [17:23:07]OFD Sender: No OFD packet to send [17:23:12]OFD Sender: No OFD packet to send [17:23:17]OFD Sender: No OFD packet to send [17:23:22]OFD Sender: No OFD packet to send [17:23:27]OFD Sender: No OFD packet to send [17:23:32]OFD Sender: No OFD packet to send [17:23:37]accept exits with 7 [17:23:37]New connection [17:23:37]New thread 3067346276 created [17:23:37]Thread 3067489636 joined [17:23:37]Waiting for new connection... [17:23:37] Sock 7.Parse request [17:23:37]Sock 7.Check first char [17:23:37]Sock 7.First char is OK [17:23:37]request: POST /json_proto HTTP/1.0 [17:23:37]Method: POST [17:23:37]URL: /json_proto [17:23:37]Method is POST - this is cgi request [17:23:37]url: /json_proto [17:23:37]query_string will be loaded in cgi processing [17:23:37]execute_cgi json_proto POST (null) [17:23:37]execute_cgi path=json_proto method=POST [17:23:37]POST find Content-Length [17:23:37]Host: 172.17.51.3:8080 [17:23:37]Content-Length: 677 [17:23:37]Content-Type: application/json [17:23:37] [17:23:37]POST finish read [17:23:37]Found Content-Length = 677 [17:23:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342812", "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" ] } } [17:23:37]execute_script... [17:23:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342812", "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" ] } } [17:23:37]POST & json_proto [17:23:37]process_json_proto [17:23:37]json parsed OK: [17:23:37]protocol is kg_v1.0 [17:23:37]action value=close_receipt [17:23:37]process_action close_receipt [17:23:37]cmd_close_receipt [17:23:37]MH_GetDate [17:23:37]Write to MH i2c: F0 00 00 3B 03 2D [17:23:37]Write i2c OK [17:23:37]MH_I2C_Read... [17:23:37]Read from MH i2c: F0 [17:23:37]MH_I2C_Read... [17:23:37]Read from MH i2c: F0 09 00 [17:23:37]MH_I2C_Read... [17:23:37]Read from MH i2c: F0 09 00 3B 03 00 99 3C 15 67 04 C1 95 66 47 [17:23:37]GetLastDocTimeStamp 1729444889 [17:23:37]current date 1729445017 [17:23:37]FM_GetShiftState [17:23:37]SAM_PROTO_GetShiftState [17:23:37]wFMCommunicate request_size=4 [17:23:37]MH_SAM_APDU [17:23:37]CAPDU: 80 13 01 00 [17:23:37]Write to MH i2c: E2 08 00 3C 03 80 13 01 00 00 00 00 00 BC [17:23:37]Write i2c OK [17:23:37]MH_I2C_Read... [17:23:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:23:37]Read from MH i2c: E2 [17:23:37]MH_I2C_Read... [17:23:37]Read from MH i2c: E2 0E 00 [17:23:37]MH_I2C_Read... [17:23:37]Read from MH i2c: E2 0E 00 3C 03 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 A2 [17:23:37]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [17:23:37]wFMCommunicate OK [17:23:37]SAM_PROTO_GetShiftState done [17:23:37]FM_GetShiftState done [17:23:37]opened in 1729384718 [17:23:37]opened+sec_in_day 1729471118 [17:23:37]quantity*price = 30038 [17:23:37]sum+1 = 30039 [17:23:37]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 СНО: Общий режим Чек 195 20.10.2024 17:23 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30413 ФПД: 215911728861744 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T172337&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30413&fm=215911728861744&tin=02508201610067®Number=0000000000186857&sum=30000 [17:23:38]StoreToDocumentArchive [17:23:38]shift 114 fd 30413 [17:23:38]save to /storage/0114/doc_00030413 [17:23:38]save last doc name /storage/0114/doc_00030413 to /storage/kkm_last_doc_name [17:23:38]save OK [17:23:38]Clear old archive folders... [17:23:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:23:38]tlvbuf is 01DC5A90 [17:23:38]SAM_PROTO_ClearQueue [17:23:38]wFMCommunicate request_size=4 [17:23:38]MH_SAM_APDU [17:23:38]CAPDU: 80 09 00 00 [17:23:38]Write to MH i2c: E2 08 00 49 03 80 09 00 00 00 00 00 00 BE [17:23:38]Write i2c OK [17:23:38]MH_I2C_Read... [17:23:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:23:38]Read from MH i2c: E2 [17:23:38]MH_I2C_Read... [17:23:38]Read from MH i2c: E2 03 00 [17:23:38]MH_I2C_Read... [17:23:38]Read from MH i2c: E2 03 00 49 03 00 90 00 C0 [17:23:38]RAPDU: 90 00 [17:23:38]wFMCommunicate OK [17:23:38]SAM_PROTO_ClearQueue done [17:23:38]KKMCreateOFDPacket [17:23:38]OFDProtocolAddRootSTLVToBuf [17:23:38]FM_MakeSignedData [17:23:38]FM_MakeSignedData [17:23:38]SAM_PROTO_SignData [17:23:38]wFMCommunicate request_size=4 [17:23:38]MH_SAM_APDU [17:23:38]CAPDU: 80 0D 01 02 [17:23:38]Write to MH i2c: E2 08 00 4A 03 80 0D 01 02 00 00 00 00 C6 [17:23:38]Write i2c OK [17:23:38]MH_I2C_Read... [17:23:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:23:38]Read from MH i2c: E2 [17:23:38]MH_I2C_Read... [17:23:38]Read from MH i2c: E2 03 00 [17:23:38]MH_I2C_Read... [17:23:38]Read from MH i2c: E2 03 00 4A 03 00 90 00 C1 [17:23:38]RAPDU: 90 00 [17:23:38]wFMCommunicate OK [17:23:38]wFMCommunicate request_size=255 [17:23:38]MH_SAM_APDU [17:23: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 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 C3 00 00 00 F4 03 04 00 99 3C 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 C4 [17:23:38]Write to MH i2c: E2 02 01 4B 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 C3 00 00 00 F4 03 04 00 99 3C 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 C4 00 00 D8 [17:23:38]Write i2c OK [17:23:38]MH_I2C_Read... [17:23:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:23:38]Read from MH i2c: E2 [17:23:38]MH_I2C_Read... [17:23:38]Read from MH i2c: E2 03 00 [17:23:38]MH_I2C_Read... [17:23:38]Read from MH i2c: E2 03 00 4B 03 00 90 00 C2 [17:23:38]RAPDU: 90 00 [17:23:38]wFMCommunicate OK [17:23:38]wFMCommunicate request_size=10 [17:23:38]MH_SAM_APDU [17:23:38]CAPDU: 80 0D 02 02 05 5E DD E6 D2 30 [17:23:38]Write to MH i2c: E2 0D 00 4C 03 80 0D 02 02 05 00 5E DD E6 D2 30 00 00 F6 [17:23:38]Write i2c OK [17:23:38]MH_I2C_Read... [17:23:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:23:38]Read from MH i2c: E2 [17:23:38]MH_I2C_Read... [17:23:38]Read from MH i2c: E2 03 00 [17:23:38]MH_I2C_Read... [17:23:38]Read from MH i2c: E2 03 00 4C 03 00 90 00 C3 [17:23:38]RAPDU: 90 00 [17:23:38]wFMCommunicate OK [17:23:38]wFMCommunicate request_size=4 [17:23:38]MH_SAM_APDU [17:23:38]CAPDU: 80 0D 03 02 [17:23:38]Write to MH i2c: E2 08 00 4D 03 80 0D 03 02 00 00 00 00 CB [17:23:38]Write i2c OK [17:23:38]MH_I2C_Read... [17:23:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:23:38]Read from MH i2c: E2 [17:23:38]MH_I2C_Read... [17:23:38]Read from MH i2c: E2 0B 00 [17:23:38]MH_I2C_Read... [17:23:38]Read from MH i2c: E2 0B 00 4D 03 00 20 1B BE 5F 58 E8 F1 89 90 00 DE [17:23:38]RAPDU: 20 1B BE 5F 58 E8 F1 89 90 00 [17:23:38]wFMCommunicate OK [17:23:38]SAM_PROTO_SignData done [17:23:38]FM_MakeSignedData done [17:23:38]CreateOFDProtocolMessage [17:23:38]wFMCommunicate request_size=4 [17:23:38]MH_SAM_APDU [17:23:38]CAPDU: 80 11 00 00 [17:23:38]Write to MH i2c: E2 08 00 4E 03 80 11 00 00 00 00 00 00 CB [17:23:38]Write i2c OK [17:23:38]MH_I2C_Read... [17:23:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:23:39]Read from MH i2c: E2 [17:23:39]MH_I2C_Read... [17:23:39]Read from MH i2c: E2 17 00 [17:23:39]MH_I2C_Read... [17:23:39]Read from MH i2c: E2 17 00 4E 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 19 [17:23:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [17:23:39]wFMCommunicate OK [17:23:39]CreateOFDProtocolMessage done [17:23:39]OFDSenderStorePacket 30413 [17:23:39]StoreOFDPacket docnum=30413 [17:23: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 FD BF 07 01 15 F9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 C3 00 00 00 F4 03 04 00 99 3C 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 C4 5E DD E6 D2 30 20 1B BE 5F 58 E8 F1 89 [17:23:39]CheckFolder [17:23:39]dirname=/storage/ofd_packets [17:23:39]CheckFolder done [17:23:39]ProducePacketName [17:23:39]name=ofd_packets/00030413 [17:23:39]NVStorageSaveData ofd_packets/00030413 [17:23:39]File name is /storage/ofd_packets/00030413 [17:23:39]Write 301 bytes [17:23:39]NVStorageSaveData done [17:23:39]OFDSenderStorePacket done [17:23:39]KKMCreateOFDPacket done [17:23:39]NVStorageSaveData kkm_last_timestamp [17:23:39]File name is /storage/kkm_last_timestamp [17:23:39]Write 4 bytes [17:23:39]NVStorageSaveData done [17:23:39]ExternCall_PrintAddStr [17:23:39]wPrintStart [17:23:39]Write to MH i2c: 01 00 00 4F 03 52 [17:23:39]Write i2c OK [17:23:39]MH_I2C_Read... [17:23:39]Read from MH i2c: 01 [17:23:39]MH_I2C_Read... [17:23:39]Read from MH i2c: 01 07 00 [17:23:39]MH_I2C_Read... [17:23:39]Read from MH i2c: 01 07 00 4F 03 00 00 00 00 00 FF 0F 67 [17:23:39]RasterBufferAndPrint [17:23:39]line Счет N : (1)342812 [17:23:39]line ИНН: 02508201610067 [17:23:39]line Контрольно-Кассовый Чек [17:23:39]line ПРОДАЖА [17:23:39]line ТРК (МРК, ГНК) : 63 [17:23:39]line Товар: 2710124130 [17:23:39]line Аи-92-К-2 [17:23:39]line 4.490 * 66.90 [17:23:39]line = 300.38 [17:23:39]line НДС 12% НСП 1% [17:23:39]line > о реализуемом товаре [17:23:39]line ОКРУГЛЕНИЕ: -0.38 [17:23:39]line ИТОГО: 300.00 [17:23:39]line Внесено: 300.00 [17:23:39]line СДАЧА: 0.00 [17:23:39]line НСП 1% : 2.66 [17:23:39]line НДС 12% : 31.90 [17:23:39]line Наличными: 300.00 [17:23:39]line Безнал.: 0.00 [17:23:39]line Место: АЗС № 78 "Партнер Нефть" [17:23:39]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [17:23:39]line СНО: Общий режим [17:23:39]line Чек 195 20.10.2024 17:23 [17:23:39]line Смена: 114 ФФД: 1.0 [17:23:39]line ЗНМ: 0300000137 [17:23:39]line РНМ: 0000000000186857 [17:23:39]line Версия ККМ: v1.0 [17:23:39]line ФМ: 0000000002094219 [17:23:39]line ФД: 30413 [17:23:39]line ФПД: 215911728861744 [17:23:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T172337&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30413&fm=215911728861744&tin=02508201610067®Number=0000000000186857&sum=30000 [17:23:39]OFD Sender: Processing packet 30413 [packets to send 10, broken 9] [17:23:39]ProducePacketName [17:23:39]name=ofd_packets/00030413 [17:23:39]OFD Sender: To server: pG, [17:23:39]CommunicateWithHost lk.salyk.kg:30040 [17:23:39]ConnectInit lk.salyk.kg [17:23:39]written 0, free lines is 4095 [17:23:39]Connected sock=11 [17:23: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 FD BF 07 01 15 F9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 C3 00 00 00 F4 03 04 00 99 3C 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 C4 5E DD E6 D2 30 20 1B BE 5F 58 E8 F1 89 [17:23: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 B6 DC 47 00 02 67 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 CD 76 00 00 F4 03 04 00 1C E7 14 67 B6 04 01 00 00 31 6E 94 3A 2E 28 13 EE [17:23:39]CommunicateWithHost err = 0 [17:23:39]CheckOFDResponse [17:23:39]1017 (14) - 77093643461234 [17:23:39]1041 (16) - 0000000002094219 [17:23:39]1040 (4) - 30413 [17:23:39]1012 (4) - 20.10.2024 11:18 [17:23:39]1206 (1) - 0 [17:23:39]OFD Sender: Remove packet 30413 [17:23:39]ProducePacketName [17:23:39]name=ofd_packets/00030413 [17:23:39]NVStorageDeleteData [17:23:39]Write to MH i2c: 01 00 00 7A 03 7D [17:23:39]Write i2c OK [17:23:39]MH_I2C_Read... [17:23:39]Read from MH i2c: 01 [17:23:39]MH_I2C_Read... [17:23:39]Read from MH i2c: 01 07 00 [17:23:39]MH_I2C_Read... [17:23:39]Read from MH i2c: 01 07 00 7A 03 00 00 00 00 00 EC 0C 7C [17:23:39]RasterBufferAndPrint [17:23:39]line [17:23:39]line [17:23:39]line [17:23:39]line [17:23:39]line [17:23:39]written 0, free lines is 3314 [17:23:39]MH_Cut [17:23:39]Write to MH i2c: D1 01 00 81 03 01 56 [17:23:39]Write i2c OK [17:23:39]MH_I2C_Read... [17:23:39]Read from MH i2c: D1 [17:23:39]MH_I2C_Read... [17:23:39]Read from MH i2c: D1 01 00 [17:23:39]MH_I2C_Read... [17:23:39]Read from MH i2c: D1 01 00 81 03 00 55 [17:23:39]Write to MH i2c: 01 00 00 82 03 85 [17:23:39]Write i2c OK [17:23:39]MH_I2C_Read... [17:23:40]OFD Sender: No OFD packet to send [17:23:40]*** Cut start [17:23:40]*** Partial cut [17:23:40]*** CUTSNS_PIN = 1 [17:23:40]*** CUTSNS_PIN = 0 [17:23:40]*** Brake cut motor [17:23:41]Read from MH i2c: 01 [17:23:41]MH_I2C_Read... [17:23:41]*** Stop cut motor [17:23:41]*** Cut end [17:23:41]Read from MH i2c: 01 07 00 [17:23:41]MH_I2C_Read... [17:23:41]Read from MH i2c: 01 07 00 82 03 00 00 00 00 00 FF 0F 9A [17:23:41]process_action close_receipt done [17:23:41]requested_data is exist [17:23:41]produce_requested_data [17:23:41]requested_item fm.sn is exist - process it [17:23:41]wFMCommunicate request_size=4 [17:23:41]MH_SAM_APDU [17:23:41]CAPDU: 80 11 00 00 [17:23:41]Write to MH i2c: E2 08 00 83 03 80 11 00 00 00 00 00 00 00 [17:23:41]Write i2c OK [17:23:41]MH_I2C_Read... [17:23:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:23:41]Read from MH i2c: E2 [17:23:41]MH_I2C_Read... [17:23:41]Read from MH i2c: E2 17 00 [17:23:41]MH_I2C_Read... [17:23:41]Read from MH i2c: E2 17 00 83 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 4E [17: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 [17:23:41]wFMCommunicate OK [17:23:41]requested_item fd.num is exist - process it [17:23:41]SAM_PROTO_GetFieldsCounters [17:23:41]wFMCommunicate request_size=4 [17:23:41]MH_SAM_APDU [17:23:41]CAPDU: 80 13 00 00 [17:23:41]Write to MH i2c: E2 08 00 84 03 80 13 00 00 00 00 00 00 03 [17:23:41]Write i2c OK [17:23:41]MH_I2C_Read... [17:23:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:23:41]Read from MH i2c: E2 [17:23:41]MH_I2C_Read... [17:23:41]Read from MH i2c: E2 62 00 [17:23:41]MH_I2C_Read... [17:23:41]Read from MH i2c: E2 62 00 84 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 27 [17:23: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 CD 76 00 00 0E 04 04 00 72 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:23:41]wFMCommunicate OK [17:23:41]SAM_PROTO_GetFieldsCounters done [17:23:41]requested_item shift.num is exist - process it [17:23:41]requested_item shift.opened is exist - process it [17:23:41]req_shift_opened [17:23:41]FM_GetShiftState [17:23:41]SAM_PROTO_GetShiftState [17:23:41]wFMCommunicate request_size=4 [17:23:41]MH_SAM_APDU [17:23:41]CAPDU: 80 13 01 00 [17:23:41]Write to MH i2c: E2 08 00 85 03 80 13 01 00 00 00 00 00 05 [17:23:41]Write i2c OK [17:23:41]MH_I2C_Read... [17:23:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:23:41]Read from MH i2c: E2 [17:23:41]MH_I2C_Read... [17:23:41]Read from MH i2c: E2 0E 00 [17:23:41]MH_I2C_Read... [17:23:41]Read from MH i2c: E2 0E 00 85 03 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 EB [17:23:41]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [17:23:41]wFMCommunicate OK [17:23:41]SAM_PROTO_GetShiftState done [17:23:41]FM_GetShiftState done [17:23:41]req_shift_opened done [17:23:41]requested_item shift.open_date is exist - process it [17:23:41]req_shift_open_date [17:23:41]req_shift_open_date done [17:23:41]produce_requested_data done [17:23:41]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30413,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [17:23:41]process_action_free close_receipt [17:23:41]json_value_free [17:23:41]json_value_free done [17:23:41]process_json_proto returns [17:23:41]Send response to host [17:23:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30413,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [17:23:41]free response buf [17:23:41]execute_script done [17:23:41]execute_script returns [17:23:41]free content buf [17:23:41]Sock 7.Close socket [17:23:41]Sock 7.Thread stoped [17:23:45]OFD Sender: No OFD packet to send [17:23:50]OFD Sender: No OFD packet to send [17:23:55]OFD Sender: No OFD packet to send [17:24:00]OFD Sender: No OFD packet to send [17:24:05]OFD Sender: No OFD packet to send [17:24:10]OFD Sender: No OFD packet to send [17:24:15]OFD Sender: No OFD packet to send [17:24:20]OFD Sender: No OFD packet to send [17:24:25]OFD Sender: No OFD packet to send [17:24:30]OFD Sender: No OFD packet to send [17:24:35]OFD Sender: No OFD packet to send [17:24:40]OFD Sender: No OFD packet to send [17:24:45]OFD Sender: No OFD packet to send [17:24:50]OFD Sender: No OFD packet to send [17:24:55]OFD Sender: No OFD packet to send [17:25:00]OFD Sender: No OFD packet to send [17:25:05]OFD Sender: No OFD packet to send [17:25:10]OFD Sender: No OFD packet to send [17:25:15]OFD Sender: No OFD packet to send [17:25:20]OFD Sender: No OFD packet to send [17:25:25]OFD Sender: No OFD packet to send [17:25:30]OFD Sender: No OFD packet to send [17:25:35]OFD Sender: No OFD packet to send [17:25:40]OFD Sender: No OFD packet to send [17:25:45]OFD Sender: No OFD packet to send [17:25:50]OFD Sender: No OFD packet to send [17:25:55]OFD Sender: No OFD packet to send [17:26:00]OFD Sender: No OFD packet to send [17:26:05]OFD Sender: No OFD packet to send [17:26:10]OFD Sender: No OFD packet to send [17:26:15]OFD Sender: No OFD packet to send [17:26:20]OFD Sender: No OFD packet to send [17:26:25]OFD Sender: No OFD packet to send [17:26:30]OFD Sender: No OFD packet to send [17:26:35]OFD Sender: No OFD packet to send [17:26:40]OFD Sender: No OFD packet to send [17:26:45]OFD Sender: No OFD packet to send [17:26:50]OFD Sender: No OFD packet to send [17:26:55]OFD Sender: No OFD packet to send [17:27:00]OFD Sender: No OFD packet to send [17:27:05]OFD Sender: No OFD packet to send [17:27:10]OFD Sender: No OFD packet to send [17:27:15]OFD Sender: No OFD packet to send [17:27:20]OFD Sender: No OFD packet to send [17:27:25]OFD Sender: No OFD packet to send [17:27:30]OFD Sender: No OFD packet to send [17:27:35]OFD Sender: No OFD packet to send [17:27:40]OFD Sender: No OFD packet to send [17:27:45]OFD Sender: No OFD packet to send [17:27:50]OFD Sender: No OFD packet to send [17:27:55]OFD Sender: No OFD packet to send [17:28:00]OFD Sender: No OFD packet to send [17:28:05]OFD Sender: No OFD packet to send [17:28:10]OFD Sender: No OFD packet to send [17:28:15]OFD Sender: No OFD packet to send [17:28:20]OFD Sender: No OFD packet to send [17:28:25]OFD Sender: No OFD packet to send [17:28:30]OFD Sender: No OFD packet to send [17:28:35]OFD Sender: No OFD packet to send [17:28:40]OFD Sender: No OFD packet to send [17:28:45]OFD Sender: No OFD packet to send [17:28:50]OFD Sender: No OFD packet to send [17:28:55]OFD Sender: No OFD packet to send [17:29:00]OFD Sender: No OFD packet to send [17:29:05]OFD Sender: No OFD packet to send [17:29:10]OFD Sender: No OFD packet to send [17:29:15]OFD Sender: No OFD packet to send [17:29:20]OFD Sender: No OFD packet to send [17:29:25]OFD Sender: No OFD packet to send [17:29:30]OFD Sender: No OFD packet to send [17:29:35]OFD Sender: No OFD packet to send [17:29:40]OFD Sender: No OFD packet to send [17:29:45]OFD Sender: No OFD packet to send [17:29:50]OFD Sender: No OFD packet to send [17:29:55]OFD Sender: No OFD packet to send [17:30:00]OFD Sender: No OFD packet to send [17:30:05]OFD Sender: No OFD packet to send [17:30:10]OFD Sender: No OFD packet to send [17:30:11]accept exits with 9 [17:30:11]New connection [17:30:11]New thread 3067489636 created [17:30:11]Thread 3067346276 joined [17:30:11]Waiting for new connection... [17:30:11] Sock 9.Parse request [17:30:11]Sock 9.Check first char [17:30:11]Sock 9.First char is OK [17:30:11]request: POST /json_proto HTTP/1.0 [17:30:11]Method: POST [17:30:11]URL: /json_proto [17:30:11]Method is POST - this is cgi request [17:30:11]url: /json_proto [17:30:11]query_string will be loaded in cgi processing [17:30:11]execute_cgi json_proto POST (null) [17:30:11]execute_cgi path=json_proto method=POST [17:30:11]POST find Content-Length [17:30:11]Host: 172.17.51.3:8080 [17:30:11]Content-Length: 677 [17:30:11]Content-Type: application/json [17:30:11] [17:30:11]POST finish read [17:30:11]Found Content-Length = 677 [17:30:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342813", "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" : 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" ] } } [17:30:11]execute_script... [17:30: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)342813", "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" : 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" ] } } [17:30:11]POST & json_proto [17:30:11]process_json_proto [17:30:11]json parsed OK: [17:30:11]protocol is kg_v1.0 [17:30:11]action value=close_receipt [17:30:11]process_action close_receipt [17:30:11]cmd_close_receipt [17:30:11]MH_GetDate [17:30:11]Write to MH i2c: F0 00 00 86 03 78 [17:30:11]Write i2c OK [17:30:11]MH_I2C_Read... [17:30:11]Read from MH i2c: F0 [17:30:11]MH_I2C_Read... [17:30:11]Read from MH i2c: F0 09 00 [17:30:11]MH_I2C_Read... [17:30:11]Read from MH i2c: F0 09 00 86 03 00 23 3E 15 67 04 C1 95 66 1E [17:30:11]GetLastDocTimeStamp 1729445017 [17:30:11]current date 1729445411 [17:30:11]FM_GetShiftState [17:30:11]SAM_PROTO_GetShiftState [17:30:11]wFMCommunicate request_size=4 [17:30:11]MH_SAM_APDU [17:30:11]CAPDU: 80 13 01 00 [17:30:11]Write to MH i2c: E2 08 00 87 03 80 13 01 00 00 00 00 00 07 [17:30:11]Write i2c OK [17:30:11]MH_I2C_Read... [17:30:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:30:11]Read from MH i2c: E2 [17:30:11]MH_I2C_Read... [17:30:11]Read from MH i2c: E2 0E 00 [17:30:11]MH_I2C_Read... [17:30:11]Read from MH i2c: E2 0E 00 87 03 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 ED [17:30:11]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [17:30:11]wFMCommunicate OK [17:30:11]SAM_PROTO_GetShiftState done [17:30:11]FM_GetShiftState done [17:30:11]opened in 1729384718 [17:30:11]opened+sec_in_day 1729471118 [17:30:11]quantity*price = 50010 [17:30:11]sum+1 = 50012 [17:30:11]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 СНО: Общий режим Чек 196 20.10.2024 17:30 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30414 ФПД: 224979900715223 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T173011&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30414&fm=224979900715223&tin=02508201610067®Number=0000000000186857&sum=50000 [17:30:12]StoreToDocumentArchive [17:30:12]shift 114 fd 30414 [17:30:12]save to /storage/0114/doc_00030414 [17:30:12]save last doc name /storage/0114/doc_00030414 to /storage/kkm_last_doc_name [17:30:12]save OK [17:30:12]Clear old archive folders... [17:30:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:30:12]tlvbuf is 01DB0A30 [17:30:12]SAM_PROTO_ClearQueue [17:30:12]wFMCommunicate request_size=4 [17:30:12]MH_SAM_APDU [17:30:12]CAPDU: 80 09 00 00 [17:30:12]Write to MH i2c: E2 08 00 94 03 80 09 00 00 00 00 00 00 09 [17:30:12]Write i2c OK [17:30:12]MH_I2C_Read... [17:30:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:30:12]Read from MH i2c: E2 [17:30:12]MH_I2C_Read... [17:30:12]Read from MH i2c: E2 03 00 [17:30:12]MH_I2C_Read... [17:30:12]Read from MH i2c: E2 03 00 94 03 00 90 00 0B [17:30:12]RAPDU: 90 00 [17:30:12]wFMCommunicate OK [17:30:12]SAM_PROTO_ClearQueue done [17:30:12]KKMCreateOFDPacket [17:30:12]OFDProtocolAddRootSTLVToBuf [17:30:12]FM_MakeSignedData [17:30:12]FM_MakeSignedData [17:30:12]SAM_PROTO_SignData [17:30:12]wFMCommunicate request_size=4 [17:30:12]MH_SAM_APDU [17:30:12]CAPDU: 80 0D 01 02 [17:30:12]Write to MH i2c: E2 08 00 95 03 80 0D 01 02 00 00 00 00 11 [17:30:12]Write i2c OK [17:30:12]MH_I2C_Read... [17:30:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:30:12]Read from MH i2c: E2 [17:30:12]MH_I2C_Read... [17:30:12]Read from MH i2c: E2 03 00 [17:30:12]MH_I2C_Read... [17:30:12]Read from MH i2c: E2 03 00 95 03 00 90 00 0C [17:30:12]RAPDU: 90 00 [17:30:12]wFMCommunicate OK [17:30:12]wFMCommunicate request_size=255 [17:30:12]MH_SAM_APDU [17:30: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 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 C4 00 00 00 F4 03 04 00 23 3E 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 CC [17:30:12]Write to MH i2c: E2 02 01 96 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 C4 00 00 00 F4 03 04 00 23 3E 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 CC 00 00 9E [17:30:12]Write i2c OK [17:30:12]MH_I2C_Read... [17:30:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:30:12]Read from MH i2c: E2 [17:30:12]MH_I2C_Read... [17:30:12]Read from MH i2c: E2 03 00 [17:30:12]MH_I2C_Read... [17:30:12]Read from MH i2c: E2 03 00 96 03 00 90 00 0D [17:30:12]RAPDU: 90 00 [17:30:12]wFMCommunicate OK [17:30:12]wFMCommunicate request_size=10 [17:30:12]MH_SAM_APDU [17:30:12]CAPDU: 80 0D 02 02 05 9E 37 10 50 D7 [17:30:12]Write to MH i2c: E2 0D 00 97 03 80 0D 02 02 05 00 9E 37 10 50 D7 00 00 2A [17:30:12]Write i2c OK [17:30:12]MH_I2C_Read... [17:30:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:30:12]Read from MH i2c: E2 [17:30:12]MH_I2C_Read... [17:30:12]Read from MH i2c: E2 03 00 [17:30:12]MH_I2C_Read... [17:30:12]Read from MH i2c: E2 03 00 97 03 00 90 00 0E [17:30:12]RAPDU: 90 00 [17:30:12]wFMCommunicate OK [17:30:12]wFMCommunicate request_size=4 [17:30:12]MH_SAM_APDU [17:30:12]CAPDU: 80 0D 03 02 [17:30:12]Write to MH i2c: E2 08 00 98 03 80 0D 03 02 00 00 00 00 16 [17:30:12]Write i2c OK [17:30:12]MH_I2C_Read... [17:30:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:30:12]Read from MH i2c: E2 [17:30:12]MH_I2C_Read... [17:30:12]Read from MH i2c: E2 0B 00 [17:30:12]MH_I2C_Read... [17:30:12]Read from MH i2c: E2 0B 00 98 03 00 ED 9C B8 4B E7 24 93 39 90 00 7A [17:30:12]RAPDU: ED 9C B8 4B E7 24 93 39 90 00 [17:30:12]wFMCommunicate OK [17:30:12]SAM_PROTO_SignData done [17:30:12]FM_MakeSignedData done [17:30:12]CreateOFDProtocolMessage [17:30:12]wFMCommunicate request_size=4 [17:30:12]MH_SAM_APDU [17:30:12]CAPDU: 80 11 00 00 [17:30:12]Write to MH i2c: E2 08 00 99 03 80 11 00 00 00 00 00 00 16 [17:30:12]Write i2c OK [17:30:12]MH_I2C_Read... [17:30:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:30:12]Read from MH i2c: E2 [17:30:12]MH_I2C_Read... [17:30:12]Read from MH i2c: E2 17 00 [17:30:12]MH_I2C_Read... [17:30:12]Read from MH i2c: E2 17 00 99 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 64 [17: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 [17:30:12]wFMCommunicate OK [17:30:12]CreateOFDProtocolMessage done [17:30:12]OFDSenderStorePacket 30414 [17:30:12]StoreOFDPacket docnum=30414 [17: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 0F 01 00 00 6E 4F 07 01 93 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 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 C4 00 00 00 F4 03 04 00 23 3E 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 CC 9E 37 10 50 D7 ED 9C B8 4B E7 24 93 39 [17:30:12]CheckFolder [17:30:12]dirname=/storage/ofd_packets [17:30:12]CheckFolder done [17:30:12]ProducePacketName [17:30:12]name=ofd_packets/00030414 [17:30:12]NVStorageSaveData ofd_packets/00030414 [17:30:12]File name is /storage/ofd_packets/00030414 [17:30:12]Write 301 bytes [17:30:12]NVStorageSaveData done [17:30:12]OFDSenderStorePacket done [17:30:12]KKMCreateOFDPacket done [17:30:12]NVStorageSaveData kkm_last_timestamp [17:30:12]File name is /storage/kkm_last_timestamp [17:30:12]Write 4 bytes [17:30:12]NVStorageSaveData done [17:30:12]ExternCall_PrintAddStr [17:30:12]wPrintStart [17:30:12]Write to MH i2c: 01 00 00 9A 03 9D [17:30:12]Write i2c OK [17:30:12]MH_I2C_Read... [17:30:12]Read from MH i2c: 01 [17:30:12]MH_I2C_Read... [17:30:12]Read from MH i2c: 01 07 00 [17:30:12]MH_I2C_Read... [17:30:12]Read from MH i2c: 01 07 00 9A 03 00 00 00 00 00 FF 0F B2 [17:30:12]RasterBufferAndPrint [17:30:12]line Счет N : (1)342813 [17:30:12]line ИНН: 02508201610067 [17:30:12]line Контрольно-Кассовый Чек [17:30:12]line ПРОДАЖА [17:30:12]line ТРК (МРК, ГНК) : 32 [17:30:12]line Товар: 2710124500 [17:30:12]line Аи-95-К-3 [17:30:12]line 6.740 * 74.20 [17:30:12]line = 500.11 [17:30:12]line НДС 12% НСП 1% [17:30:12]line > о реализуемом товаре [17:30:12]line ОКРУГЛЕНИЕ: -0.11 [17:30:12]line ИТОГО: 500.00 [17:30:12]line Внесено: 500.00 [17:30:12]line СДАЧА: 0.00 [17:30:12]line НСП 1% : 4.43 [17:30:12]line НДС 12% : 53.11 [17:30:12]line Наличными: 500.00 [17:30:12]line Безнал.: 0.00 [17:30:12]line Место: АЗС № 78 "Партнер Нефть" [17:30:12]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [17:30:12]line СНО: Общий режим [17:30:12]line Чек 196 20.10.2024 17:30 [17:30:12]line Смена: 114 ФФД: 1.0 [17:30:12]line ЗНМ: 0300000137 [17:30:12]line РНМ: 0000000000186857 [17:30:12]line Версия ККМ: v1.0 [17:30:12]line ФМ: 0000000002094219 [17:30:12]line ФД: 30414 [17:30:12]line ФПД: 224979900715223 [17:30:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T173011&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30414&fm=224979900715223&tin=02508201610067®Number=0000000000186857&sum=50000 [17:30:13]OFD Sender: Processing packet 30414 [packets to send 10, broken 9] [17:30:13]ProducePacketName [17:30:13]name=ofd_packets/00030414 [17:30:13]OFD Sender: To server: pG, [17:30:13]CommunicateWithHost lk.salyk.kg:30040 [17:30:13]ConnectInit lk.salyk.kg [17:30:13]written 0, free lines is 4095 [17:30:13]Connected sock=10 [17:30: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 6E 4F 07 01 93 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 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 C4 00 00 00 F4 03 04 00 23 3E 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 CC 9E 37 10 50 D7 ED 9C B8 4B E7 24 93 39 [17:30: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 91 46 47 00 77 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 CE 76 00 00 F4 03 04 00 A6 E8 14 67 B6 04 01 00 00 FA 19 94 20 0E 2C 15 E5 [17:30:13]CommunicateWithHost err = 0 [17:30:13]CheckOFDResponse [17:30:13]1017 (14) - 77093643461234 [17:30:13]1041 (16) - 0000000002094219 [17:30:13]1040 (4) - 30414 [17:30:13]1012 (4) - 20.10.2024 11:25 [17:30:13]1206 (1) - 0 [17:30:13]OFD Sender: Remove packet 30414 [17:30:13]ProducePacketName [17:30:13]name=ofd_packets/00030414 [17:30:13]NVStorageDeleteData [17:30:13]Write to MH i2c: 01 00 00 C5 03 C8 [17:30:13]Write i2c OK [17:30:13]MH_I2C_Read... [17:30:13]Read from MH i2c: 01 [17:30:13]MH_I2C_Read... [17:30:13]Read from MH i2c: 01 07 00 [17:30:13]MH_I2C_Read... [17:30:13]Read from MH i2c: 01 07 00 C5 03 00 00 00 00 00 FB 0C D6 [17:30:13]RasterBufferAndPrint [17:30:13]line [17:30:13]line [17:30:13]line [17:30:13]line [17:30:13]line [17:30:13]written 0, free lines is 3329 [17:30:13]MH_Cut [17:30:13]Write to MH i2c: D1 01 00 CC 03 01 A1 [17:30:13]Write i2c OK [17:30:13]MH_I2C_Read... [17:30:13]Read from MH i2c: D1 [17:30:13]MH_I2C_Read... [17:30:13]Read from MH i2c: D1 01 00 [17:30:13]MH_I2C_Read... [17:30:13]Read from MH i2c: D1 01 00 CC 03 00 A0 [17:30:13]Write to MH i2c: 01 00 00 CD 03 D0 [17:30:13]Write i2c OK [17:30:13]MH_I2C_Read... [17:30:14]OFD Sender: No OFD packet to send [17:30:14]*** Cut start [17:30:14]*** Partial cut [17:30:14]*** CUTSNS_PIN = 1 [17:30:14]*** CUTSNS_PIN = 0 [17:30:14]*** Brake cut motor [17:30:15]Read from MH i2c: 01 [17:30:15]MH_I2C_Read... [17:30:15]*** Stop cut motor [17:30:15]*** Cut end [17:30:15]Read from MH i2c: 01 07 00 [17:30:15]MH_I2C_Read... [17:30:15]Read from MH i2c: 01 07 00 CD 03 00 00 00 00 00 FF 0F E5 [17:30:15]process_action close_receipt done [17:30:15]requested_data is exist [17:30:15]produce_requested_data [17:30:15]requested_item fm.sn is exist - process it [17:30:15]wFMCommunicate request_size=4 [17:30:15]MH_SAM_APDU [17:30:15]CAPDU: 80 11 00 00 [17:30:15]Write to MH i2c: E2 08 00 CE 03 80 11 00 00 00 00 00 00 4B [17:30:15]Write i2c OK [17:30:15]MH_I2C_Read... [17:30:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:30:15]Read from MH i2c: E2 [17:30:15]MH_I2C_Read... [17:30:15]Read from MH i2c: E2 17 00 [17:30:15]MH_I2C_Read... [17:30:15]Read from MH i2c: E2 17 00 CE 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 99 [17:30: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:30:15]wFMCommunicate OK [17:30:15]requested_item fd.num is exist - process it [17:30:15]SAM_PROTO_GetFieldsCounters [17:30:15]wFMCommunicate request_size=4 [17:30:15]MH_SAM_APDU [17:30:15]CAPDU: 80 13 00 00 [17:30:15]Write to MH i2c: E2 08 00 CF 03 80 13 00 00 00 00 00 00 4E [17:30:15]Write i2c OK [17:30:15]MH_I2C_Read... [17:30:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:30:15]Read from MH i2c: E2 [17:30:15]MH_I2C_Read... [17:30:15]Read from MH i2c: E2 62 00 [17:30:15]MH_I2C_Read... [17:30:15]Read from MH i2c: E2 62 00 CF 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 76 [17:30: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 CE 76 00 00 0E 04 04 00 72 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:30:15]wFMCommunicate OK [17:30:15]SAM_PROTO_GetFieldsCounters done [17:30:15]requested_item shift.num is exist - process it [17:30:15]requested_item shift.opened is exist - process it [17:30:15]req_shift_opened [17:30:15]FM_GetShiftState [17:30:15]SAM_PROTO_GetShiftState [17:30:15]wFMCommunicate request_size=4 [17:30:15]MH_SAM_APDU [17:30:15]CAPDU: 80 13 01 00 [17:30:15]Write to MH i2c: E2 08 00 D0 03 80 13 01 00 00 00 00 00 50 [17:30:15]Write i2c OK [17:30:15]MH_I2C_Read... [17:30:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:30:15]Read from MH i2c: E2 [17:30:15]MH_I2C_Read... [17:30:15]Read from MH i2c: E2 0E 00 [17:30:15]MH_I2C_Read... [17:30:15]Read from MH i2c: E2 0E 00 D0 03 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 36 [17:30:15]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [17:30:15]wFMCommunicate OK [17:30:15]SAM_PROTO_GetShiftState done [17:30:15]FM_GetShiftState done [17:30:15]req_shift_opened done [17:30:15]requested_item shift.open_date is exist - process it [17:30:15]req_shift_open_date [17:30:15]req_shift_open_date done [17:30:15]produce_requested_data done [17:30:15]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30414,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [17:30:15]process_action_free close_receipt [17:30:15]json_value_free [17:30:15]json_value_free done [17:30:15]process_json_proto returns [17:30:15]Send response to host [17:30:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30414,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [17:30:15]free response buf [17:30:15]execute_script done [17:30:15]execute_script returns [17:30:15]free content buf [17:30:15]Sock 9.Close socket [17:30:15]Sock 9.Thread stoped [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:48]accept exits with 7 [17:30:48]New connection [17:30:48]New thread 3067346276 created [17:30:48]Thread 3067489636 joined [17:30:48]Waiting for new connection... [17:30:48] Sock 7.Parse request [17:30:48]Sock 7.Check first char [17:30:48]Sock 7.First char is OK [17:30:48]request: POST /json_proto HTTP/1.0 [17:30:48]Method: POST [17:30:48]URL: /json_proto [17:30:48]Method is POST - this is cgi request [17:30:48]url: /json_proto [17:30:48]query_string will be loaded in cgi processing [17:30:48]execute_cgi json_proto POST (null) [17:30:48]execute_cgi path=json_proto method=POST [17:30:48]POST find Content-Length [17:30:48]Host: 172.17.51.3:8080 [17:30:48]Content-Length: 677 [17:30:48]Content-Type: application/json [17:30:48] [17:30:48]POST finish read [17:30:48]Found Content-Length = 677 [17:30:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342814", "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" ] } } [17:30:48]execute_script... [17:30:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342814", "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" ] } } [17:30:48]POST & json_proto [17:30:48]process_json_proto [17:30:48]json parsed OK: [17:30:48]protocol is kg_v1.0 [17:30:48]action value=close_receipt [17:30:48]process_action close_receipt [17:30:48]cmd_close_receipt [17:30:48]MH_GetDate [17:30:48]Write to MH i2c: F0 00 00 D1 03 C3 [17:30:48]Write i2c OK [17:30:48]MH_I2C_Read... [17:30:48]Read from MH i2c: F0 [17:30:48]MH_I2C_Read... [17:30:48]Read from MH i2c: F0 09 00 [17:30:48]MH_I2C_Read... [17:30:48]Read from MH i2c: F0 09 00 D1 03 00 49 3E 15 67 04 C1 95 66 8F [17:30:48]GetLastDocTimeStamp 1729445411 [17:30:48]current date 1729445449 [17:30:48]FM_GetShiftState [17:30:48]SAM_PROTO_GetShiftState [17:30:48]wFMCommunicate request_size=4 [17:30:48]MH_SAM_APDU [17:30:48]CAPDU: 80 13 01 00 [17:30:48]Write to MH i2c: E2 08 00 D2 03 80 13 01 00 00 00 00 00 52 [17:30:48]Write i2c OK [17:30:48]MH_I2C_Read... [17:30:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:30:48]Read from MH i2c: E2 [17:30:48]MH_I2C_Read... [17:30:48]Read from MH i2c: E2 0E 00 [17:30:48]MH_I2C_Read... [17:30:48]Read from MH i2c: E2 0E 00 D2 03 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 38 [17:30:48]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [17:30:48]wFMCommunicate OK [17:30:48]SAM_PROTO_GetShiftState done [17:30:48]FM_GetShiftState done [17:30:48]opened in 1729384718 [17:30:48]opened+sec_in_day 1729471118 [17:30:48]quantity*price = 50041 [17:30:48]sum+1 = 50042 [17:30:48]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 СНО: Общий режим Чек 197 20.10.2024 17:30 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30415 ФПД: 263818587865142 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T173049&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30415&fm=263818587865142&tin=02508201610067®Number=0000000000186857&sum=50000 [17:30:50]StoreToDocumentArchive [17:30:50]shift 114 fd 30415 [17:30:50]save to /storage/0114/doc_00030415 [17:30:50]save last doc name /storage/0114/doc_00030415 to /storage/kkm_last_doc_name [17:30:50]save OK [17:30:50]Clear old archive folders... [17:30:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:30:50]tlvbuf is 01DB1580 [17:30:50]SAM_PROTO_ClearQueue [17:30:50]wFMCommunicate request_size=4 [17:30:50]MH_SAM_APDU [17:30:50]CAPDU: 80 09 00 00 [17:30:50]Write to MH i2c: E2 08 00 DF 03 80 09 00 00 00 00 00 00 54 [17:30:50]Write i2c OK [17:30:50]MH_I2C_Read... [17:30:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:30:50]Read from MH i2c: E2 [17:30:50]MH_I2C_Read... [17:30:50]Read from MH i2c: E2 03 00 [17:30:50]MH_I2C_Read... [17:30:50]Read from MH i2c: E2 03 00 DF 03 00 90 00 56 [17:30:50]RAPDU: 90 00 [17:30:50]wFMCommunicate OK [17:30:50]SAM_PROTO_ClearQueue done [17:30:50]KKMCreateOFDPacket [17:30:50]OFDProtocolAddRootSTLVToBuf [17:30:50]FM_MakeSignedData [17:30:50]FM_MakeSignedData [17:30:50]SAM_PROTO_SignData [17:30:50]wFMCommunicate request_size=4 [17:30:50]MH_SAM_APDU [17:30:50]CAPDU: 80 0D 01 02 [17:30:50]Write to MH i2c: E2 08 00 E0 03 80 0D 01 02 00 00 00 00 5C [17:30:50]Write i2c OK [17:30:50]MH_I2C_Read... [17:30:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:30:50]Read from MH i2c: E2 [17:30:50]MH_I2C_Read... [17:30:50]Read from MH i2c: E2 03 00 [17:30:50]MH_I2C_Read... [17:30:50]Read from MH i2c: E2 03 00 E0 03 00 90 00 57 [17:30:50]RAPDU: 90 00 [17:30:50]wFMCommunicate OK [17:30:50]wFMCommunicate request_size=255 [17:30:50]MH_SAM_APDU [17:30: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 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 C5 00 00 00 F4 03 04 00 49 3E 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 EF [17:30:50]Write to MH i2c: E2 02 01 E1 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 C5 00 00 00 F4 03 04 00 49 3E 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 EF 00 00 5B [17:30:50]Write i2c OK [17:30:50]MH_I2C_Read... [17:30:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:30:50]Read from MH i2c: E2 [17:30:50]MH_I2C_Read... [17:30:50]Read from MH i2c: E2 03 00 [17:30:50]MH_I2C_Read... [17:30:50]Read from MH i2c: E2 03 00 E1 03 00 90 00 58 [17:30:50]RAPDU: 90 00 [17:30:50]wFMCommunicate OK [17:30:50]wFMCommunicate request_size=10 [17:30:50]MH_SAM_APDU [17:30:50]CAPDU: 80 0D 02 02 05 F1 0D 37 00 36 [17:30:50]Write to MH i2c: E2 0D 00 E2 03 80 0D 02 02 05 00 F1 0D 37 00 36 00 00 D4 [17:30:50]Write i2c OK [17:30:50]MH_I2C_Read... [17:30:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:30:50]Read from MH i2c: E2 [17:30:50]MH_I2C_Read... [17:30:50]Read from MH i2c: E2 03 00 [17:30:50]MH_I2C_Read... [17:30:50]Read from MH i2c: E2 03 00 E2 03 00 90 00 59 [17:30:50]RAPDU: 90 00 [17:30:50]wFMCommunicate OK [17:30:50]wFMCommunicate request_size=4 [17:30:50]MH_SAM_APDU [17:30:50]CAPDU: 80 0D 03 02 [17:30:50]Write to MH i2c: E2 08 00 E3 03 80 0D 03 02 00 00 00 00 61 [17:30:50]Write i2c OK [17:30:50]MH_I2C_Read... [17:30:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:30:50]Read from MH i2c: E2 [17:30:50]MH_I2C_Read... [17:30:50]Read from MH i2c: E2 0B 00 [17:30:50]MH_I2C_Read... [17:30:50]Read from MH i2c: E2 0B 00 E3 03 00 80 C5 8A 33 70 30 61 48 90 00 AD [17:30:50]RAPDU: 80 C5 8A 33 70 30 61 48 90 00 [17:30:50]wFMCommunicate OK [17:30:50]SAM_PROTO_SignData done [17:30:50]FM_MakeSignedData done [17:30:50]CreateOFDProtocolMessage [17:30:50]wFMCommunicate request_size=4 [17:30:50]MH_SAM_APDU [17:30:50]CAPDU: 80 11 00 00 [17:30:50]Write to MH i2c: E2 08 00 E4 03 80 11 00 00 00 00 00 00 61 [17:30:50]Write i2c OK [17:30:50]MH_I2C_Read... [17:30:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:30:50]Read from MH i2c: E2 [17:30:50]MH_I2C_Read... [17:30:50]Read from MH i2c: E2 17 00 [17:30:50]MH_I2C_Read... [17:30:50]Read from MH i2c: E2 17 00 E4 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 AF [17:30: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:30:50]wFMCommunicate OK [17:30:50]CreateOFDProtocolMessage done [17:30:50]OFDSenderStorePacket 30415 [17:30:50]StoreOFDPacket docnum=30415 [17:30: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 16 0E 07 01 2C 12 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 C5 00 00 00 F4 03 04 00 49 3E 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 EF F1 0D 37 00 36 80 C5 8A 33 70 30 61 48 [17:30:50]CheckFolder [17:30:50]dirname=/storage/ofd_packets [17:30:50]CheckFolder done [17:30:50]ProducePacketName [17:30:50]name=ofd_packets/00030415 [17:30:50]NVStorageSaveData ofd_packets/00030415 [17:30:50]File name is /storage/ofd_packets/00030415 [17:30:50]Write 301 bytes [17:30:50]NVStorageSaveData done [17:30:50]OFDSenderStorePacket done [17:30:50]KKMCreateOFDPacket done [17:30:50]NVStorageSaveData kkm_last_timestamp [17:30:50]File name is /storage/kkm_last_timestamp [17:30:50]Write 4 bytes [17:30:50]NVStorageSaveData done [17:30:50]ExternCall_PrintAddStr [17:30:50]wPrintStart [17:30:50]Write to MH i2c: 01 00 00 E5 03 E8 [17:30:50]Write i2c OK [17:30:50]MH_I2C_Read... [17:30:50]Read from MH i2c: 01 [17:30:50]MH_I2C_Read... [17:30:50]Read from MH i2c: 01 07 00 [17:30:50]MH_I2C_Read... [17:30:50]Read from MH i2c: 01 07 00 E5 03 00 00 00 00 00 FF 0F FD [17:30:50]RasterBufferAndPrint [17:30:50]line Счет N : (1)342814 [17:30:50]line ИНН: 02508201610067 [17:30:50]line Контрольно-Кассовый Чек [17:30:50]line ПРОДАЖА [17:30:50]line ТРК (МРК, ГНК) : 53 [17:30:50]line Товар: 2710124130 [17:30:50]line Аи-92-К-2 [17:30:50]line 7.480 * 66.90 [17:30:50]line = 500.41 [17:30:50]line НДС 12% НСП 1% [17:30:50]line > о реализуемом товаре [17:30:50]line ОКРУГЛЕНИЕ: -0.41 [17:30:50]line ИТОГО: 500.00 [17:30:50]line Внесено: 500.00 [17:30:50]line СДАЧА: 0.00 [17:30:50]line НСП 1% : 4.43 [17:30:50]line НДС 12% : 53.14 [17:30:50]line Наличными: 500.00 [17:30:50]line Безнал.: 0.00 [17:30:50]line Место: АЗС № 78 "Партнер Нефть" [17:30:50]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [17:30:50]line СНО: Общий режим [17:30:50]line Чек 197 20.10.2024 17:30 [17:30:50]line Смена: 114 ФФД: 1.0 [17:30:50]line ЗНМ: 0300000137 [17:30:50]line РНМ: 0000000000186857 [17:30:50]line Версия ККМ: v1.0 [17:30:50]line ФМ: 0000000002094219 [17:30:50]line ФД: 30415 [17:30:50]line ФПД: 263818587865142 [17:30:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T173049&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30415&fm=263818587865142&tin=02508201610067®Number=0000000000186857&sum=50000 [17:30:50]OFD Sender: Processing packet 30415 [packets to send 10, broken 9] [17:30:50]ProducePacketName [17:30:50]name=ofd_packets/00030415 [17:30:50]OFD Sender: To server: pG, [17:30:50]CommunicateWithHost lk.salyk.kg:30040 [17:30:50]ConnectInit lk.salyk.kg [17:30:50]written 0, free lines is 4095 [17:30:51]Connected sock=10 [17:30: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 16 0E 07 01 2C 12 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 C5 00 00 00 F4 03 04 00 49 3E 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 EF F1 0D 37 00 36 80 C5 8A 33 70 30 61 48 [17:30: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 C1 2A 47 00 32 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 CF 76 00 00 F4 03 04 00 CC E8 14 67 B6 04 01 00 00 4F DD EE EE B6 AF 43 F8 [17:30:51]CommunicateWithHost err = 0 [17:30:51]CheckOFDResponse [17:30:51]1017 (14) - 77093643461234 [17:30:51]1041 (16) - 0000000002094219 [17:30:51]1040 (4) - 30415 [17:30:51]1012 (4) - 20.10.2024 11:26 [17:30:51]1206 (1) - 0 [17:30:51]OFD Sender: Remove packet 30415 [17:30:51]ProducePacketName [17:30:51]name=ofd_packets/00030415 [17:30:51]NVStorageDeleteData [17:30:51]Write to MH i2c: 01 00 00 10 04 14 [17:30:51]Write i2c OK [17:30:51]MH_I2C_Read... [17:30:51]Read from MH i2c: 01 [17:30:51]MH_I2C_Read... [17:30:51]Read from MH i2c: 01 07 00 [17:30:51]MH_I2C_Read... [17:30:51]Read from MH i2c: 01 07 00 10 04 00 00 00 00 00 EC 0C 13 [17:30:51]RasterBufferAndPrint [17:30:51]line [17:30:51]line [17:30:51]line [17:30:51]line [17:30:51]line [17:30:51]written 0, free lines is 3314 [17:30:51]MH_Cut [17:30:51]Write to MH i2c: D1 01 00 17 04 01 ED [17:30:51]Write i2c OK [17:30:51]MH_I2C_Read... [17:30:51]Read from MH i2c: D1 [17:30:51]MH_I2C_Read... [17:30:51]Read from MH i2c: D1 01 00 [17:30:51]MH_I2C_Read... [17:30:51]Read from MH i2c: D1 01 00 17 04 00 EC [17:30:51]Write to MH i2c: 01 00 00 18 04 1C [17:30:51]Write i2c OK [17:30:51]MH_I2C_Read... [17:30:51]OFD Sender: No OFD packet to send [17:30:52]*** Cut start [17:30:52]*** Partial cut [17:30:52]*** CUTSNS_PIN = 1 [17:30:52]*** CUTSNS_PIN = 0 [17:30:52]*** Brake cut motor [17:30:52]Read from MH i2c: 01 [17:30:52]MH_I2C_Read... [17:30:52]*** Stop cut motor [17:30:52]*** Cut end [17:30:52]Read from MH i2c: 01 07 00 [17:30:52]MH_I2C_Read... [17:30:52]Read from MH i2c: 01 07 00 18 04 00 00 00 00 00 FF 0F 31 [17:30:52]process_action close_receipt done [17:30:52]requested_data is exist [17:30:52]produce_requested_data [17:30:52]requested_item fm.sn is exist - process it [17:30:52]wFMCommunicate request_size=4 [17:30:52]MH_SAM_APDU [17:30:52]CAPDU: 80 11 00 00 [17:30:52]Write to MH i2c: E2 08 00 19 04 80 11 00 00 00 00 00 00 97 [17:30:52]Write i2c OK [17:30:52]MH_I2C_Read... [17:30:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:30:52]Read from MH i2c: E2 [17:30:52]MH_I2C_Read... [17:30:52]Read from MH i2c: E2 17 00 [17:30:52]MH_I2C_Read... [17:30:52]Read from MH i2c: E2 17 00 19 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 E5 [17:30: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:30:52]wFMCommunicate OK [17:30:52]requested_item fd.num is exist - process it [17:30:52]SAM_PROTO_GetFieldsCounters [17:30:52]wFMCommunicate request_size=4 [17:30:52]MH_SAM_APDU [17:30:52]CAPDU: 80 13 00 00 [17:30:52]Write to MH i2c: E2 08 00 1A 04 80 13 00 00 00 00 00 00 9A [17:30:52]Write i2c OK [17:30:52]MH_I2C_Read... [17:30:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:30:52]Read from MH i2c: E2 [17:30:52]MH_I2C_Read... [17:30:52]Read from MH i2c: E2 62 00 [17:30:52]MH_I2C_Read... [17:30:52]Read from MH i2c: E2 62 00 1A 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 C6 [17:30: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 CF 76 00 00 0E 04 04 00 72 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 [17:30:52]wFMCommunicate OK [17:30:52]SAM_PROTO_GetFieldsCounters done [17:30:52]requested_item shift.num is exist - process it [17:30:52]requested_item shift.opened is exist - process it [17:30:52]req_shift_opened [17:30:52]FM_GetShiftState [17:30:52]SAM_PROTO_GetShiftState [17:30:52]wFMCommunicate request_size=4 [17:30:52]MH_SAM_APDU [17:30:52]CAPDU: 80 13 01 00 [17:30:52]Write to MH i2c: E2 08 00 1B 04 80 13 01 00 00 00 00 00 9C [17:30:52]Write i2c OK [17:30:52]MH_I2C_Read... [17:30:52]Read from MH i2c: E2 [17:30:52]MH_I2C_Read... [17:30:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:30:52]Read from MH i2c: E2 0E 00 [17:30:52]MH_I2C_Read... [17:30:52]Read from MH i2c: E2 0E 00 1B 04 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 82 [17:30:52]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [17:30:52]wFMCommunicate OK [17:30:52]SAM_PROTO_GetShiftState done [17:30:52]FM_GetShiftState done [17:30:52]req_shift_opened done [17:30:52]requested_item shift.open_date is exist - process it [17:30:52]req_shift_open_date [17:30:52]req_shift_open_date done [17:30:52]produce_requested_data done [17:30:52]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30415,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [17:30:52]process_action_free close_receipt [17:30:52]json_value_free [17:30:52]json_value_free done [17:30:52]process_json_proto returns [17:30:52]Send response to host [17:30:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30415,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [17:30:52]free response buf [17:30:52]execute_script done [17:30:52]execute_script returns [17:30:52]free content buf [17:30:52]Sock 7.Close socket [17:30:52]Sock 7.Thread stoped [17:30:56]OFD Sender: No OFD packet to send [17:31:01]OFD Sender: No OFD packet to send [17:31:06]OFD Sender: No OFD packet to send [17:31:11]OFD Sender: No OFD packet to send [17:31:16]OFD Sender: No OFD packet to send [17:31:21]OFD Sender: No OFD packet to send [17:31:26]OFD Sender: No OFD packet to send [17:31:31]OFD Sender: No OFD packet to send [17:31:36]OFD Sender: No OFD packet to send [17:31:41]OFD Sender: No OFD packet to send [17:31:46]OFD Sender: No OFD packet to send [17:31:51]OFD Sender: No OFD packet to send [17:31:56]OFD Sender: No OFD packet to send [17:32:01]OFD Sender: No OFD packet to send [17:32:06]OFD Sender: No OFD packet to send [17:32:11]OFD Sender: No OFD packet to send [17:32:16]OFD Sender: No OFD packet to send [17:32:21]OFD Sender: No OFD packet to send [17:32:26]OFD Sender: No OFD packet to send [17:32:31]OFD Sender: No OFD packet to send [17:32:36]OFD Sender: No OFD packet to send [17:32:41]OFD Sender: No OFD packet to send [17:32:46]OFD Sender: No OFD packet to send [17:32:51]OFD Sender: No OFD packet to send [17:32:56]OFD Sender: No OFD packet to send [17:33:01]OFD Sender: No OFD packet to send [17:33:06]OFD Sender: No OFD packet to send [17:33:11]OFD Sender: No OFD packet to send [17:33:16]OFD Sender: No OFD packet to send [17:33:21]OFD Sender: No OFD packet to send [17:33:26]OFD Sender: No OFD packet to send [17:33:31]OFD Sender: No OFD packet to send [17:33:36]OFD Sender: No OFD packet to send [17:33:41]OFD Sender: No OFD packet to send [17:33:46]OFD Sender: No OFD packet to send [17:33:51]OFD Sender: No OFD packet to send [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:17]OFD Sender: No OFD packet to send [17:36:22]OFD Sender: No OFD packet to send [17:36:26]accept exits with 9 [17:36:26]New connection [17:36:26]New thread 3067489636 created [17:36:26]Thread 3067346276 joined [17:36:26]Waiting for new connection... [17:36:26] Sock 9.Parse request [17:36:26]Sock 9.Check first char [17:36:26]Sock 9.First char is OK [17:36:26]request: POST /json_proto HTTP/1.0 [17:36:26]Method: POST [17:36:26]URL: /json_proto [17:36:26]Method is POST - this is cgi request [17:36:26]url: /json_proto [17:36:26]query_string will be loaded in cgi processing [17:36:26]execute_cgi json_proto POST (null) [17:36:26]execute_cgi path=json_proto method=POST [17:36:26]POST find Content-Length [17:36:26]Host: 172.17.51.3:8080 [17:36:26]Content-Length: 677 [17:36:26]Content-Type: application/json [17:36:26] [17:36:26]POST finish read [17:36:26]Found Content-Length = 677 [17:36:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342815", "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:36:26]execute_script... [17:36: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)342815", "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:36:26]POST & json_proto [17:36:26]process_json_proto [17:36:26]json parsed OK: [17:36:26]protocol is kg_v1.0 [17:36:26]action value=close_receipt [17:36:26]process_action close_receipt [17:36:26]cmd_close_receipt [17:36:26]MH_GetDate [17:36:26]Write to MH i2c: F0 00 00 1C 04 0F [17:36:26]Write i2c OK [17:36:26]MH_I2C_Read... [17:36:26]Read from MH i2c: F0 [17:36:26]MH_I2C_Read... [17:36:26]Read from MH i2c: F0 09 00 [17:36:26]MH_I2C_Read... [17:36:26]Read from MH i2c: F0 09 00 1C 04 00 9A 3F 15 67 04 C1 95 66 2D [17:36:26]GetLastDocTimeStamp 1729445449 [17:36:26]current date 1729445786 [17:36:26]FM_GetShiftState [17:36:26]SAM_PROTO_GetShiftState [17:36:26]wFMCommunicate request_size=4 [17:36:26]MH_SAM_APDU [17:36:26]CAPDU: 80 13 01 00 [17:36:26]Write to MH i2c: E2 08 00 1D 04 80 13 01 00 00 00 00 00 9E [17:36:26]Write i2c OK [17:36:26]MH_I2C_Read... [17:36:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:36:26]Read from MH i2c: E2 [17:36:26]MH_I2C_Read... [17:36:26]Read from MH i2c: E2 0E 00 [17:36:26]MH_I2C_Read... [17:36:26]Read from MH i2c: E2 0E 00 1D 04 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 84 [17:36:26]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [17:36:26]wFMCommunicate OK [17:36:26]SAM_PROTO_GetShiftState done [17:36:26]FM_GetShiftState done [17:36:26]opened in 1729384718 [17:36:26]opened+sec_in_day 1729471118 [17:36:26]quantity*price = 20003 [17:36:26]sum+1 = 20004 [17:36:26]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 СНО: Общий режим Чек 198 20.10.2024 17:36 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30416 ФПД: 249682889162008 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T173626&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30416&fm=249682889162008&tin=02508201610067®Number=0000000000186857&sum=20000 [17:36:27]StoreToDocumentArchive [17:36:27]shift 114 fd 30416 [17:36:27]save to /storage/0114/doc_00030416 [17:36:27]save last doc name /storage/0114/doc_00030416 to /storage/kkm_last_doc_name [17:36:27]save OK [17:36:27]Clear old archive folders... [17:36:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:36:27]tlvbuf is 01DB0880 [17:36:27]SAM_PROTO_ClearQueue [17:36:27]wFMCommunicate request_size=4 [17:36:27]MH_SAM_APDU [17:36:27]CAPDU: 80 09 00 00 [17:36:27]Write to MH i2c: E2 08 00 2A 04 80 09 00 00 00 00 00 00 A0 [17:36:27]Write i2c OK [17:36:27]MH_I2C_Read... [17:36:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:36:27]Read from MH i2c: E2 [17:36:27]MH_I2C_Read... [17:36:27]Read from MH i2c: E2 03 00 [17:36:27]MH_I2C_Read... [17:36:27]Read from MH i2c: E2 03 00 2A 04 00 90 00 A2 [17:36:27]RAPDU: 90 00 [17:36:27]wFMCommunicate OK [17:36:27]SAM_PROTO_ClearQueue done [17:36:27]KKMCreateOFDPacket [17:36:27]OFDProtocolAddRootSTLVToBuf [17:36:27]FM_MakeSignedData [17:36:27]FM_MakeSignedData [17:36:27]SAM_PROTO_SignData [17:36:27]wFMCommunicate request_size=4 [17:36:27]MH_SAM_APDU [17:36:27]CAPDU: 80 0D 01 02 [17:36:27]Write to MH i2c: E2 08 00 2B 04 80 0D 01 02 00 00 00 00 A8 [17:36:27]Write i2c OK [17:36:27]MH_I2C_Read... [17:36:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:36:27]Read from MH i2c: E2 [17:36:27]MH_I2C_Read... [17:36:27]Read from MH i2c: E2 03 00 [17:36:27]MH_I2C_Read... [17:36:27]Read from MH i2c: E2 03 00 2B 04 00 90 00 A3 [17:36:27]RAPDU: 90 00 [17:36:27]wFMCommunicate OK [17:36:27]wFMCommunicate request_size=255 [17:36:27]MH_SAM_APDU [17:36:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 C6 00 00 00 F4 03 04 00 9A 3F 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 E3 [17:36:27]Write to MH i2c: E2 02 01 2C 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 C6 00 00 00 F4 03 04 00 9A 3F 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 E3 00 00 B1 [17:36:27]Write i2c OK [17:36:27]MH_I2C_Read... [17:36:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:36:27]Read from MH i2c: E2 [17:36:27]MH_I2C_Read... [17:36:27]Read from MH i2c: E2 03 00 [17:36:27]MH_I2C_Read... [17:36:27]Read from MH i2c: E2 03 00 2C 04 00 90 00 A4 [17:36:27]RAPDU: 90 00 [17:36:27]wFMCommunicate OK [17:36:27]wFMCommunicate request_size=10 [17:36:27]MH_SAM_APDU [17:36:27]CAPDU: 80 0D 02 02 05 15 D3 EA 3D 18 [17:36:27]Write to MH i2c: E2 0D 00 2D 04 80 0D 02 02 05 00 15 D3 EA 3D 18 00 00 DC [17:36:27]Write i2c OK [17:36:27]MH_I2C_Read... [17:36:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:36:27]Read from MH i2c: E2 [17:36:27]MH_I2C_Read... [17:36:27]Read from MH i2c: E2 03 00 [17:36:27]MH_I2C_Read... [17:36:27]Read from MH i2c: E2 03 00 2D 04 00 90 00 A5 [17:36:27]RAPDU: 90 00 [17:36:27]wFMCommunicate OK [17:36:27]wFMCommunicate request_size=4 [17:36:27]MH_SAM_APDU [17:36:27]CAPDU: 80 0D 03 02 [17:36:27]Write to MH i2c: E2 08 00 2E 04 80 0D 03 02 00 00 00 00 AD [17:36:27]Write i2c OK [17:36:27]MH_I2C_Read... [17:36:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:36:27]Read from MH i2c: E2 [17:36:27]MH_I2C_Read... [17:36:27]Read from MH i2c: E2 0B 00 [17:36:27]MH_I2C_Read... [17:36:27]Read from MH i2c: E2 0B 00 2E 04 00 52 61 DE 52 A2 1B CA 74 90 00 8C [17:36:27]RAPDU: 52 61 DE 52 A2 1B CA 74 90 00 [17:36:27]wFMCommunicate OK [17:36:27]SAM_PROTO_SignData done [17:36:27]FM_MakeSignedData done [17:36:27]CreateOFDProtocolMessage [17:36:27]wFMCommunicate request_size=4 [17:36:27]MH_SAM_APDU [17:36:27]CAPDU: 80 11 00 00 [17:36:27]Write to MH i2c: E2 08 00 2F 04 80 11 00 00 00 00 00 00 AD [17:36:27]Write i2c OK [17:36:27]MH_I2C_Read... [17:36:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:36:28]Read from MH i2c: E2 [17:36:28]MH_I2C_Read... [17:36:28]Read from MH i2c: E2 17 00 [17:36:28]MH_I2C_Read... [17:36:28]Read from MH i2c: E2 17 00 2F 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 FB [17:36: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:36:28]wFMCommunicate OK [17:36:28]CreateOFDProtocolMessage done [17:36:28]OFDSenderStorePacket 30416 [17:36:28]StoreOFDPacket docnum=30416 [17:36: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 9E A8 07 01 25 1A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 C6 00 00 00 F4 03 04 00 9A 3F 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 E3 15 D3 EA 3D 18 52 61 DE 52 A2 1B CA 74 [17:36:28]CheckFolder [17:36:28]dirname=/storage/ofd_packets [17:36:28]CheckFolder done [17:36:28]ProducePacketName [17:36:28]name=ofd_packets/00030416 [17:36:28]NVStorageSaveData ofd_packets/00030416 [17:36:28]File name is /storage/ofd_packets/00030416 [17:36:28]Write 301 bytes [17:36:28]NVStorageSaveData done [17:36:28]OFDSenderStorePacket done [17:36:28]KKMCreateOFDPacket done [17:36:28]NVStorageSaveData kkm_last_timestamp [17:36:28]File name is /storage/kkm_last_timestamp [17:36:28]Write 4 bytes [17:36:28]NVStorageSaveData done [17:36:28]ExternCall_PrintAddStr [17:36:28]wPrintStart [17:36:28]Write to MH i2c: 01 00 00 30 04 34 [17:36:28]Write i2c OK [17:36:28]MH_I2C_Read... [17:36:28]Read from MH i2c: 01 [17:36:28]MH_I2C_Read... [17:36:28]Read from MH i2c: 01 07 00 [17:36:28]MH_I2C_Read... [17:36:28]Read from MH i2c: 01 07 00 30 04 00 00 00 00 00 FF 0F 49 [17:36:28]RasterBufferAndPrint [17:36:28]line Счет N : (1)342815 [17:36:28]line ИНН: 02508201610067 [17:36:28]line Контрольно-Кассовый Чек [17:36:28]line ПРОДАЖА [17:36:28]line ТРК (МРК, ГНК) : 63 [17:36:28]line Товар: 2710124130 [17:36:28]line Аи-92-К-2 [17:36:28]line 2.990 * 66.90 [17:36:28]line = 200.03 [17:36:28]line НДС 12% НСП 1% [17:36:28]line > о реализуемом товаре [17:36:28]line ОКРУГЛЕНИЕ: -0.03 [17:36:28]line ИТОГО: 200.00 [17:36:28]line Внесено: 200.00 [17:36:28]line СДАЧА: 0.00 [17:36:28]line НСП 1% : 1.77 [17:36:28]line НДС 12% : 21.24 [17:36:28]line Наличными: 200.00 [17:36:28]line Безнал.: 0.00 [17:36:28]line Место: АЗС № 78 "Партнер Нефть" [17:36:28]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [17:36:28]line СНО: Общий режим [17:36:28]line Чек 198 20.10.2024 17:36 [17:36:28]line Смена: 114 ФФД: 1.0 [17:36:28]line ЗНМ: 0300000137 [17:36:28]line РНМ: 0000000000186857 [17:36:28]line Версия ККМ: v1.0 [17:36:28]line ФМ: 0000000002094219 [17:36:28]line ФД: 30416 [17:36:28]line ФПД: 249682889162008 [17:36:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T173626&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30416&fm=249682889162008&tin=02508201610067®Number=0000000000186857&sum=20000 [17:36:28]OFD Sender: Processing packet 30416 [packets to send 10, broken 9] [17:36:28]ProducePacketName [17:36:28]name=ofd_packets/00030416 [17:36:28]OFD Sender: To server: pG, [17:36:28]CommunicateWithHost lk.salyk.kg:30040 [17:36:28]ConnectInit lk.salyk.kg [17:36:28]written 0, free lines is 4095 [17:36:28]Connected sock=10 [17:36: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 9E A8 07 01 25 1A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 C6 00 00 00 F4 03 04 00 9A 3F 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 E3 15 D3 EA 3D 18 52 61 DE 52 A2 1B CA 74 [17:36: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 45 7F 47 00 59 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 D0 76 00 00 F4 03 04 00 1D EA 14 67 B6 04 01 00 00 FD B4 E7 08 73 7A B4 EA [17:36:28]CommunicateWithHost err = 0 [17:36:28]CheckOFDResponse [17:36:28]1017 (14) - 77093643461234 [17:36:28]1041 (16) - 0000000002094219 [17:36:28]1040 (4) - 30416 [17:36:28]1012 (4) - 20.10.2024 11:31 [17:36:28]1206 (1) - 0 [17:36:28]OFD Sender: Remove packet 30416 [17:36:28]ProducePacketName [17:36:28]name=ofd_packets/00030416 [17:36:28]NVStorageDeleteData [17:36:28]Write to MH i2c: 01 00 00 5B 04 5F [17:36:28]Write i2c OK [17:36:28]MH_I2C_Read... [17:36:28]Read from MH i2c: 01 [17:36:28]MH_I2C_Read... [17:36:28]Read from MH i2c: 01 07 00 [17:36:28]MH_I2C_Read... [17:36:28]Read from MH i2c: 01 07 00 5B 04 00 00 00 00 00 F0 0C 62 [17:36:28]RasterBufferAndPrint [17:36:28]line [17:36:28]line [17:36:28]line [17:36:28]line [17:36:28]line [17:36:28]written 0, free lines is 3318 [17:36:28]MH_Cut [17:36:28]Write to MH i2c: D1 01 00 62 04 01 38 [17:36:28]Write i2c OK [17:36:28]MH_I2C_Read... [17:36:28]Read from MH i2c: D1 [17:36:28]MH_I2C_Read... [17:36:28]Read from MH i2c: D1 01 00 [17:36:28]MH_I2C_Read... [17:36:28]Read from MH i2c: D1 01 00 62 04 00 37 [17:36:28]Write to MH i2c: 01 00 00 63 04 67 [17:36:28]Write i2c OK [17:36:28]MH_I2C_Read... [17:36:29]OFD Sender: No OFD packet to send [17:36:29]*** Cut start [17:36:29]*** Partial cut [17:36:29]*** CUTSNS_PIN = 1 [17:36:29]*** CUTSNS_PIN = 0 [17:36:29]*** Brake cut motor [17:36:30]Read from MH i2c: 01 [17:36:30]MH_I2C_Read... [17:36:30]*** Stop cut motor [17:36:30]*** Cut end [17:36:30]Read from MH i2c: 01 07 00 [17:36:30]MH_I2C_Read... [17:36:30]Read from MH i2c: 01 07 00 63 04 00 00 00 00 00 FF 0F 7C [17:36:30]process_action close_receipt done [17:36:30]requested_data is exist [17:36:30]produce_requested_data [17:36:30]requested_item fm.sn is exist - process it [17:36:30]wFMCommunicate request_size=4 [17:36:30]MH_SAM_APDU [17:36:30]CAPDU: 80 11 00 00 [17:36:30]Write to MH i2c: E2 08 00 64 04 80 11 00 00 00 00 00 00 E2 [17:36:30]Write i2c OK [17:36:30]MH_I2C_Read... [17:36:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:36:30]Read from MH i2c: E2 [17:36:30]MH_I2C_Read... [17:36:30]Read from MH i2c: E2 17 00 [17:36:30]MH_I2C_Read... [17:36:30]Read from MH i2c: E2 17 00 64 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 30 [17:36:30]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:30]wFMCommunicate OK [17:36:30]requested_item fd.num is exist - process it [17:36:30]SAM_PROTO_GetFieldsCounters [17:36:30]wFMCommunicate request_size=4 [17:36:30]MH_SAM_APDU [17:36:30]CAPDU: 80 13 00 00 [17:36:30]Write to MH i2c: E2 08 00 65 04 80 13 00 00 00 00 00 00 E5 [17:36:30]Write i2c OK [17:36:30]MH_I2C_Read... [17:36:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:36:30]Read from MH i2c: E2 [17:36:30]MH_I2C_Read... [17:36:30]Read from MH i2c: E2 62 00 [17:36:30]MH_I2C_Read... [17:36:30]Read from MH i2c: E2 62 00 65 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 15 [17:36: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 D0 76 00 00 0E 04 04 00 72 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 [17:36:30]wFMCommunicate OK [17:36:30]SAM_PROTO_GetFieldsCounters done [17:36:30]requested_item shift.num is exist - process it [17:36:30]requested_item shift.opened is exist - process it [17:36:30]req_shift_opened [17:36:30]FM_GetShiftState [17:36:30]SAM_PROTO_GetShiftState [17:36:30]wFMCommunicate request_size=4 [17:36:30]MH_SAM_APDU [17:36:30]CAPDU: 80 13 01 00 [17:36:30]Write to MH i2c: E2 08 00 66 04 80 13 01 00 00 00 00 00 E7 [17:36:30]Write i2c OK [17:36:30]MH_I2C_Read... [17:36:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:36:30]Read from MH i2c: E2 [17:36:30]MH_I2C_Read... [17:36:30]Read from MH i2c: E2 0E 00 [17:36:30]MH_I2C_Read... [17:36:30]Read from MH i2c: E2 0E 00 66 04 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 CD [17:36:30]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [17:36:30]wFMCommunicate OK [17:36:30]SAM_PROTO_GetShiftState done [17:36:30]FM_GetShiftState done [17:36:30]req_shift_opened done [17:36:30]requested_item shift.open_date is exist - process it [17:36:30]req_shift_open_date [17:36:30]req_shift_open_date done [17:36:30]produce_requested_data done [17:36:30]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30416,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [17:36:30]process_action_free close_receipt [17:36:30]json_value_free [17:36:30]json_value_free done [17:36:30]process_json_proto returns [17:36:30]Send response to host [17:36:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30416,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [17:36:30]free response buf [17:36:30]execute_script done [17:36:30]execute_script returns [17:36:30]free content buf [17:36:30]Sock 9.Close socket [17:36:30]Sock 9.Thread stoped [17:36:34]OFD Sender: No OFD packet to send [17:36:39]OFD Sender: No OFD packet to send [17:36:44]OFD Sender: No OFD packet to send [17:36:49]OFD Sender: No OFD packet to send [17:36:54]OFD Sender: No OFD packet to send [17:36:59]OFD Sender: No OFD packet to send [17:36:59]accept exits with 7 [17:36:59]New connection [17:36:59]New thread 3067346276 created [17:36:59]Thread 3067489636 joined [17:36:59]Waiting for new connection... [17:36:59] Sock 7.Parse request [17:36:59]Sock 7.Check first char [17:36:59]Sock 7.First char is OK [17:36:59]request: POST /json_proto HTTP/1.0 [17:36:59]Method: POST [17:36:59]URL: /json_proto [17:36:59]Method is POST - this is cgi request [17:36:59]url: /json_proto [17:36:59]query_string will be loaded in cgi processing [17:36:59]execute_cgi json_proto POST (null) [17:36:59]execute_cgi path=json_proto method=POST [17:36:59]POST find Content-Length [17:36:59]Host: 172.17.51.3:8080 [17:36:59]Content-Length: 677 [17:36:59]Content-Type: application/json [17:36:59] [17:36:59]POST finish read [17:36:59]Found Content-Length = 677 [17:36:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342817", "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" : 1.760, "sum" : 130.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 130.00, "total" : 130.00, "payments": [ { "type": 0, "sum" : 130.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:36:59]execute_script... [17:36: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)342817", "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" : 1.760, "sum" : 130.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 130.00, "total" : 130.00, "payments": [ { "type": 0, "sum" : 130.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:36:59]POST & json_proto [17:36:59]process_json_proto [17:36:59]json parsed OK: [17:36:59]protocol is kg_v1.0 [17:36:59]action value=close_receipt [17:36:59]process_action close_receipt [17:36:59]cmd_close_receipt [17:36:59]MH_GetDate [17:36:59]Write to MH i2c: F0 00 00 67 04 5A [17:36:59]Write i2c OK [17:36:59]MH_I2C_Read... [17:36:59]Read from MH i2c: F0 [17:36:59]MH_I2C_Read... [17:36:59]Read from MH i2c: F0 09 00 [17:36:59]MH_I2C_Read... [17:36:59]Read from MH i2c: F0 09 00 67 04 00 BC 3F 15 67 04 C1 95 66 9A [17:36:59]GetLastDocTimeStamp 1729445786 [17:36:59]current date 1729445820 [17:36:59]FM_GetShiftState [17:36:59]SAM_PROTO_GetShiftState [17:36:59]wFMCommunicate request_size=4 [17:36:59]MH_SAM_APDU [17:36:59]CAPDU: 80 13 01 00 [17:36:59]Write to MH i2c: E2 08 00 68 04 80 13 01 00 00 00 00 00 E9 [17:36:59]Write i2c OK [17:36:59]MH_I2C_Read... [17:36:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:36:59]Read from MH i2c: E2 [17:36:59]MH_I2C_Read... [17:36:59]Read from MH i2c: E2 0E 00 [17:36:59]MH_I2C_Read... [17:36:59]Read from MH i2c: E2 0E 00 68 04 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 CF [17:36:59]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [17:36:59]wFMCommunicate OK [17:36:59]SAM_PROTO_GetShiftState done [17:36:59]FM_GetShiftState done [17:36:59]opened in 1729384718 [17:36:59]opened+sec_in_day 1729471118 [17:36:59]quantity*price = 13059 [17:36:59]sum+1 = 13060 [17:36:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 130.00 Внесено: 130.00 СДАЧА: 0.00 НСП 1% : 1.16 НДС 12% : 13.87 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 199 20.10.2024 17:37 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30417 ФПД: 218828993649636 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T173700&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30417&fm=218828993649636&tin=02508201610067®Number=0000000000186857&sum=13000 [17:37:01]StoreToDocumentArchive [17:37:01]shift 114 fd 30417 [17:37:01]save to /storage/0114/doc_00030417 [17:37:01]save last doc name /storage/0114/doc_00030417 to /storage/kkm_last_doc_name [17:37:01]save OK [17:37:01]Clear old archive folders... [17:37:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:37:01]tlvbuf is 01E1A9F0 [17:37:01]SAM_PROTO_ClearQueue [17:37:01]wFMCommunicate request_size=4 [17:37:01]MH_SAM_APDU [17:37:01]CAPDU: 80 09 00 00 [17:37:01]Write to MH i2c: E2 08 00 75 04 80 09 00 00 00 00 00 00 EB [17:37:01]Write i2c OK [17:37:01]MH_I2C_Read... [17:37:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:37:01]Read from MH i2c: E2 [17:37:01]MH_I2C_Read... [17:37:01]Read from MH i2c: E2 03 00 [17:37:01]MH_I2C_Read... [17:37:01]Read from MH i2c: E2 03 00 75 04 00 90 00 ED [17:37:01]RAPDU: 90 00 [17:37:01]wFMCommunicate OK [17:37:01]SAM_PROTO_ClearQueue done [17:37:01]KKMCreateOFDPacket [17:37:01]OFDProtocolAddRootSTLVToBuf [17:37:01]FM_MakeSignedData [17:37:01]FM_MakeSignedData [17:37:01]SAM_PROTO_SignData [17:37:01]wFMCommunicate request_size=4 [17:37:01]MH_SAM_APDU [17:37:01]CAPDU: 80 0D 01 02 [17:37:01]Write to MH i2c: E2 08 00 76 04 80 0D 01 02 00 00 00 00 F3 [17:37:01]Write i2c OK [17:37:01]MH_I2C_Read... [17:37:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:37:01]Read from MH i2c: E2 [17:37:01]MH_I2C_Read... [17:37:01]Read from MH i2c: E2 03 00 [17:37:01]MH_I2C_Read... [17:37:01]Read from MH i2c: E2 03 00 76 04 00 90 00 EE [17:37:01]RAPDU: 90 00 [17:37:01]wFMCommunicate OK [17:37:01]wFMCommunicate request_size=255 [17:37:01]MH_SAM_APDU [17:37:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 E0 06 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 03 33 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6B 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 BC 3F 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 C7 [17:37:01]Write to MH i2c: E2 02 01 77 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 E0 06 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 03 33 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6B 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 BC 3F 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 C7 00 00 CE [17:37:01]Write i2c OK [17:37:01]MH_I2C_Read... [17:37:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:37:01]Read from MH i2c: E2 [17:37:01]MH_I2C_Read... [17:37:01]Read from MH i2c: E2 03 00 [17:37:01]MH_I2C_Read... [17:37:01]Read from MH i2c: E2 03 00 77 04 00 90 00 EF [17:37:01]RAPDU: 90 00 [17:37:01]wFMCommunicate OK [17:37:01]wFMCommunicate request_size=10 [17:37:01]MH_SAM_APDU [17:37:01]CAPDU: 80 0D 02 02 05 06 18 6E DB E4 [17:37:01]Write to MH i2c: E2 0D 00 78 04 80 0D 02 02 05 00 06 18 6E DB E4 00 00 4B [17:37:01]Write i2c OK [17:37:01]MH_I2C_Read... [17:37:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:37:01]Read from MH i2c: E2 [17:37:01]MH_I2C_Read... [17:37:01]Read from MH i2c: E2 03 00 [17:37:01]MH_I2C_Read... [17:37:01]Read from MH i2c: E2 03 00 78 04 00 90 00 F0 [17:37:01]RAPDU: 90 00 [17:37:01]wFMCommunicate OK [17:37:01]wFMCommunicate request_size=4 [17:37:01]MH_SAM_APDU [17:37:01]CAPDU: 80 0D 03 02 [17:37:01]Write to MH i2c: E2 08 00 79 04 80 0D 03 02 00 00 00 00 F8 [17:37:01]Write i2c OK [17:37:01]MH_I2C_Read... [17:37:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:37:01]Read from MH i2c: E2 [17:37:01]MH_I2C_Read... [17:37:01]Read from MH i2c: E2 0B 00 [17:37:01]MH_I2C_Read... [17:37:01]Read from MH i2c: E2 0B 00 79 04 00 70 14 F4 68 E8 0F 77 B4 90 00 FB [17:37:01]RAPDU: 70 14 F4 68 E8 0F 77 B4 90 00 [17:37:01]wFMCommunicate OK [17:37:01]SAM_PROTO_SignData done [17:37:01]FM_MakeSignedData done [17:37:01]CreateOFDProtocolMessage [17:37:01]wFMCommunicate request_size=4 [17:37:01]MH_SAM_APDU [17:37:01]CAPDU: 80 11 00 00 [17:37:01]Write to MH i2c: E2 08 00 7A 04 80 11 00 00 00 00 00 00 F8 [17:37:01]Write i2c OK [17:37:01]MH_I2C_Read... [17:37:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:37:01]Read from MH i2c: E2 [17:37:01]MH_I2C_Read... [17:37:01]Read from MH i2c: E2 17 00 [17:37:01]MH_I2C_Read... [17:37:01]Read from MH i2c: E2 17 00 7A 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 46 [17:37: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:37:01]wFMCommunicate OK [17:37:01]CreateOFDProtocolMessage done [17:37:01]OFDSenderStorePacket 30417 [17:37:01]StoreOFDPacket docnum=30417 [17:37: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 B4 9C 07 01 80 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 E0 06 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 03 33 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6B 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 BC 3F 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 C7 06 18 6E DB E4 70 14 F4 68 E8 0F 77 B4 [17:37:01]CheckFolder [17:37:01]dirname=/storage/ofd_packets [17:37:01]CheckFolder done [17:37:01]ProducePacketName [17:37:01]name=ofd_packets/00030417 [17:37:01]NVStorageSaveData ofd_packets/00030417 [17:37:01]File name is /storage/ofd_packets/00030417 [17:37:01]Write 301 bytes [17:37:01]NVStorageSaveData done [17:37:01]OFDSenderStorePacket done [17:37:01]KKMCreateOFDPacket done [17:37:01]NVStorageSaveData kkm_last_timestamp [17:37:01]File name is /storage/kkm_last_timestamp [17:37:01]Write 4 bytes [17:37:01]NVStorageSaveData done [17:37:01]ExternCall_PrintAddStr [17:37:01]wPrintStart [17:37:01]Write to MH i2c: 01 00 00 7B 04 7F [17:37:01]Write i2c OK [17:37:01]MH_I2C_Read... [17:37:01]Read from MH i2c: 01 [17:37:01]MH_I2C_Read... [17:37:01]Read from MH i2c: 01 07 00 [17:37:01]MH_I2C_Read... [17:37:01]Read from MH i2c: 01 07 00 7B 04 00 00 00 00 00 FF 0F 94 [17:37:01]RasterBufferAndPrint [17:37:01]line Счет N : (1)342817 [17:37:01]line ИНН: 02508201610067 [17:37:01]line Контрольно-Кассовый Чек [17:37:01]line ПРОДАЖА [17:37:01]line ТРК (МРК, ГНК) : 42 [17:37:01]line Товар: 2710124500 [17:37:01]line Аи-95-К-3 [17:37:01]line 1.760 * 74.20 [17:37:01]line = 130.59 [17:37:01]line НДС 12% НСП 1% [17:37:01]line > о реализуемом товаре [17:37:01]line ОКРУГЛЕНИЕ: -0.59 [17:37:01]line ИТОГО: 130.00 [17:37:01]line Внесено: 130.00 [17:37:01]line СДАЧА: 0.00 [17:37:01]line НСП 1% : 1.16 [17:37:01]line НДС 12% : 13.87 [17:37:01]line Наличными: 130.00 [17:37:01]line Безнал.: 0.00 [17:37:01]line Место: АЗС № 78 "Партнер Нефть" [17:37:01]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [17:37:01]line СНО: Общий режим [17:37:01]line Чек 199 20.10.2024 17:37 [17:37:01]line Смена: 114 ФФД: 1.0 [17:37:01]line ЗНМ: 0300000137 [17:37:01]line РНМ: 0000000000186857 [17:37:01]line Версия ККМ: v1.0 [17:37:01]line ФМ: 0000000002094219 [17:37:01]line ФД: 30417 [17:37:01]line ФПД: 218828993649636 [17:37:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T173700&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30417&fm=218828993649636&tin=02508201610067®Number=0000000000186857&sum=13000 [17:37:01]OFD Sender: Processing packet 30417 [packets to send 10, broken 9] [17:37:01]ProducePacketName [17:37:01]name=ofd_packets/00030417 [17:37:01]OFD Sender: To server: pG, [17:37:01]CommunicateWithHost lk.salyk.kg:30040 [17:37:01]ConnectInit lk.salyk.kg [17:37:01]written 0, free lines is 4095 [17:37:02]Connected sock=10 [17:37: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 B4 9C 07 01 80 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 E0 06 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 03 33 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6B 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 BC 3F 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 C7 06 18 6E DB E4 70 14 F4 68 E8 0F 77 B4 [17:37: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 4F D6 47 00 EF 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 D1 76 00 00 F4 03 04 00 3F EA 14 67 B6 04 01 00 00 37 69 F5 59 68 F5 50 83 [17:37:02]CommunicateWithHost err = 0 [17:37:02]CheckOFDResponse [17:37:02]1017 (14) - 77093643461234 [17:37:02]1041 (16) - 0000000002094219 [17:37:02]1040 (4) - 30417 [17:37:02]1012 (4) - 20.10.2024 11:32 [17:37:02]1206 (1) - 0 [17:37:02]OFD Sender: Remove packet 30417 [17:37:02]ProducePacketName [17:37:02]name=ofd_packets/00030417 [17:37:02]NVStorageDeleteData [17:37:02]Write to MH i2c: 01 00 00 A6 04 AA [17:37:02]Write i2c OK [17:37:02]MH_I2C_Read... [17:37:02]Read from MH i2c: 01 [17:37:02]MH_I2C_Read... [17:37:02]Read from MH i2c: 01 07 00 [17:37:02]MH_I2C_Read... [17:37:02]Read from MH i2c: 01 07 00 A6 04 00 00 00 00 00 FC 0C B9 [17:37:02]RasterBufferAndPrint [17:37:02]line [17:37:02]line [17:37:02]line [17:37:02]line [17:37:02]line [17:37:02]written 0, free lines is 3330 [17:37:02]MH_Cut [17:37:02]Write to MH i2c: D1 01 00 AD 04 01 83 [17:37:02]Write i2c OK [17:37:02]MH_I2C_Read... [17:37:02]Read from MH i2c: D1 [17:37:02]MH_I2C_Read... [17:37:02]Read from MH i2c: D1 01 00 [17:37:02]MH_I2C_Read... [17:37:02]Read from MH i2c: D1 01 00 AD 04 00 82 [17:37:02]Write to MH i2c: 01 00 00 AE 04 B2 [17:37:02]Write i2c OK [17:37:02]MH_I2C_Read... [17:37:02]OFD Sender: No OFD packet to send [17:37:03]*** Cut start [17:37:03]*** Partial cut [17:37:03]*** CUTSNS_PIN = 1 [17:37:03]*** CUTSNS_PIN = 0 [17:37:03]*** Brake cut motor [17:37:03]Read from MH i2c: 01 [17:37:03]MH_I2C_Read... [17:37:03]*** Stop cut motor [17:37:03]*** Cut end [17:37:03]Read from MH i2c: 01 07 00 [17:37:03]MH_I2C_Read... [17:37:03]Read from MH i2c: 01 07 00 AE 04 00 00 00 00 00 FF 0F C7 [17:37:03]process_action close_receipt done [17:37:03]requested_data is exist [17:37:03]produce_requested_data [17:37:03]requested_item fm.sn is exist - process it [17:37:03]wFMCommunicate request_size=4 [17:37:03]MH_SAM_APDU [17:37:03]CAPDU: 80 11 00 00 [17:37:03]Write to MH i2c: E2 08 00 AF 04 80 11 00 00 00 00 00 00 2D [17:37:03]Write i2c OK [17:37:03]MH_I2C_Read... [17:37:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:37:03]Read from MH i2c: E2 [17:37:03]MH_I2C_Read... [17:37:03]Read from MH i2c: E2 17 00 [17:37:03]MH_I2C_Read... [17:37:03]Read from MH i2c: E2 17 00 AF 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 7B [17:37:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [17:37:03]wFMCommunicate OK [17:37:03]requested_item fd.num is exist - process it [17:37:03]SAM_PROTO_GetFieldsCounters [17:37:03]wFMCommunicate request_size=4 [17:37:03]MH_SAM_APDU [17:37:03]CAPDU: 80 13 00 00 [17:37:03]Write to MH i2c: E2 08 00 B0 04 80 13 00 00 00 00 00 00 30 [17:37:03]Write i2c OK [17:37:03]MH_I2C_Read... [17:37:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:37:03]Read from MH i2c: E2 [17:37:03]MH_I2C_Read... [17:37:03]Read from MH i2c: E2 62 00 [17:37:03]MH_I2C_Read... [17:37:03]Read from MH i2c: E2 62 00 B0 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 64 [17:37: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 D1 76 00 00 0E 04 04 00 72 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 [17:37:03]wFMCommunicate OK [17:37:03]SAM_PROTO_GetFieldsCounters done [17:37:03]requested_item shift.num is exist - process it [17:37:03]requested_item shift.opened is exist - process it [17:37:03]req_shift_opened [17:37:03]FM_GetShiftState [17:37:03]SAM_PROTO_GetShiftState [17:37:03]wFMCommunicate request_size=4 [17:37:03]MH_SAM_APDU [17:37:03]CAPDU: 80 13 01 00 [17:37:03]Write to MH i2c: E2 08 00 B1 04 80 13 01 00 00 00 00 00 32 [17:37:03]Write i2c OK [17:37:03]MH_I2C_Read... [17:37:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:37:03]Read from MH i2c: E2 [17:37:03]MH_I2C_Read... [17:37:03]Read from MH i2c: E2 0E 00 [17:37:03]MH_I2C_Read... [17:37:03]Read from MH i2c: E2 0E 00 B1 04 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 18 [17:37:03]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [17:37:03]wFMCommunicate OK [17:37:03]SAM_PROTO_GetShiftState done [17:37:03]FM_GetShiftState done [17:37:03]req_shift_opened done [17:37:03]requested_item shift.open_date is exist - process it [17:37:03]req_shift_open_date [17:37:03]req_shift_open_date done [17:37:03]produce_requested_data done [17:37:03]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30417,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [17:37:03]process_action_free close_receipt [17:37:03]json_value_free [17:37:03]json_value_free done [17:37:03]process_json_proto returns [17:37:03]Send response to host [17:37:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30417,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [17:37:03]free response buf [17:37:03]execute_script done [17:37:03]execute_script returns [17:37:03]free content buf [17:37:03]Sock 7.Close socket [17:37:03]Sock 7.Thread stoped [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:12]OFD Sender: No OFD packet to send [17:38:17]OFD Sender: No OFD packet to send [17:38:22]OFD Sender: No OFD packet to send [17:38:27]OFD Sender: No OFD packet to send [17:38:32]OFD Sender: No OFD packet to send [17:38:37]OFD Sender: No OFD packet to send [17:38:42]OFD Sender: No OFD packet to send [17:38:47]OFD Sender: No OFD packet to send [17:38:51]accept exits with 9 [17:38:51]New connection [17:38:51]New thread 3067489636 created [17:38:51]Thread 3067346276 joined [17:38:51]Waiting for new connection... [17:38:51] Sock 9.Parse request [17:38:51]Sock 9.Check first char [17:38:51]Sock 9.First char is OK [17:38:51]request: POST /json_proto HTTP/1.0 [17:38:51]Method: POST [17:38:51]URL: /json_proto [17:38:51]Method is POST - this is cgi request [17:38:51]url: /json_proto [17:38:51]query_string will be loaded in cgi processing [17:38:51]execute_cgi json_proto POST (null) [17:38:51]execute_cgi path=json_proto method=POST [17:38:51]POST find Content-Length [17:38:51]Host: 172.17.51.3:8080 [17:38:51]Content-Length: 677 [17:38:51]Content-Type: application/json [17:38:51] [17:38:51]POST finish read [17:38:51]Found Content-Length = 677 [17:38:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342819", "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" : 8.090, "sum" : 600.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:38:51]execute_script... [17:38: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)342819", "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" : 8.090, "sum" : 600.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:38:51]POST & json_proto [17:38:51]process_json_proto [17:38:51]json parsed OK: [17:38:51]protocol is kg_v1.0 [17:38:51]action value=close_receipt [17:38:51]process_action close_receipt [17:38:51]cmd_close_receipt [17:38:51]MH_GetDate [17:38:51]Write to MH i2c: F0 00 00 B2 04 A5 [17:38:51]Write i2c OK [17:38:51]MH_I2C_Read... [17:38:51]Read from MH i2c: F0 [17:38:51]MH_I2C_Read... [17:38:51]Read from MH i2c: F0 09 00 [17:38:51]MH_I2C_Read... [17:38:51]Read from MH i2c: F0 09 00 B2 04 00 2B 40 15 67 04 C1 95 66 55 [17:38:51]GetLastDocTimeStamp 1729445820 [17:38:51]current date 1729445931 [17:38:51]FM_GetShiftState [17:38:51]SAM_PROTO_GetShiftState [17:38:51]wFMCommunicate request_size=4 [17:38:51]MH_SAM_APDU [17:38:51]CAPDU: 80 13 01 00 [17:38:51]Write to MH i2c: E2 08 00 B3 04 80 13 01 00 00 00 00 00 34 [17:38:51]Write i2c OK [17:38:51]MH_I2C_Read... [17:38:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:38:51]Read from MH i2c: E2 [17:38:51]MH_I2C_Read... [17:38:51]Read from MH i2c: E2 0E 00 [17:38:51]MH_I2C_Read... [17:38:51]Read from MH i2c: E2 0E 00 B3 04 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 1A [17:38:51]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [17:38:51]wFMCommunicate OK [17:38:51]SAM_PROTO_GetShiftState done [17:38:51]FM_GetShiftState done [17:38:51]opened in 1729384718 [17:38:51]opened+sec_in_day 1729471118 [17:38:51]quantity*price = 60027 [17:38:51]sum+1 = 60029 [17:38:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.75 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 200 20.10.2024 17:38 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30418 ФПД: 132047055623877 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T173851&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30418&fm=132047055623877&tin=02508201610067®Number=0000000000186857&sum=60000 [17:38:52]StoreToDocumentArchive [17:38:52]shift 114 fd 30418 [17:38:52]save to /storage/0114/doc_00030418 [17:38:52]save last doc name /storage/0114/doc_00030418 to /storage/kkm_last_doc_name [17:38:52]save OK [17:38:52]Clear old archive folders... [17:38:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:38:52]tlvbuf is 01E1C5C0 [17:38:52]SAM_PROTO_ClearQueue [17:38:52]wFMCommunicate request_size=4 [17:38:52]MH_SAM_APDU [17:38:52]CAPDU: 80 09 00 00 [17:38:52]Write to MH i2c: E2 08 00 C0 04 80 09 00 00 00 00 00 00 36 [17:38:52]Write i2c OK [17:38:52]MH_I2C_Read... [17:38:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:38:52]Read from MH i2c: E2 [17:38:52]MH_I2C_Read... [17:38:52]Read from MH i2c: E2 03 00 [17:38:52]MH_I2C_Read... [17:38:52]Read from MH i2c: E2 03 00 C0 04 00 90 00 38 [17:38:52]RAPDU: 90 00 [17:38:52]wFMCommunicate OK [17:38:52]SAM_PROTO_ClearQueue done [17:38:52]KKMCreateOFDPacket [17:38:52]OFDProtocolAddRootSTLVToBuf [17:38:52]FM_MakeSignedData [17:38:52]FM_MakeSignedData [17:38:52]SAM_PROTO_SignData [17:38:52]wFMCommunicate request_size=4 [17:38:52]MH_SAM_APDU [17:38:52]CAPDU: 80 0D 01 02 [17:38:52]Write to MH i2c: E2 08 00 C1 04 80 0D 01 02 00 00 00 00 3E [17:38:52]Write i2c OK [17:38:52]MH_I2C_Read... [17:38:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:38:52]Read from MH i2c: E2 [17:38:52]MH_I2C_Read... [17:38:52]Read from MH i2c: E2 03 00 [17:38:52]MH_I2C_Read... [17:38:52]Read from MH i2c: E2 03 00 C1 04 00 90 00 39 [17:38:52]RAPDU: 90 00 [17:38:52]wFMCommunicate OK [17:38:52]wFMCommunicate request_size=255 [17:38:52]MH_SAM_APDU [17:38: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 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 2B 40 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 78 [17:38:52]Write to MH i2c: E2 02 01 C2 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 2B 40 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 78 00 00 0F [17:38:52]Write i2c OK [17:38:52]MH_I2C_Read... [17:38:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:38:52]Read from MH i2c: E2 [17:38:52]MH_I2C_Read... [17:38:52]Read from MH i2c: E2 03 00 [17:38:52]MH_I2C_Read... [17:38:52]Read from MH i2c: E2 03 00 C2 04 00 90 00 3A [17:38:52]RAPDU: 90 00 [17:38:52]wFMCommunicate OK [17:38:52]wFMCommunicate request_size=10 [17:38:52]MH_SAM_APDU [17:38:52]CAPDU: 80 0D 02 02 05 18 99 D8 16 C5 [17:38:52]Write to MH i2c: E2 0D 00 C3 04 80 0D 02 02 05 00 18 99 D8 16 C5 00 00 AF [17:38:52]Write i2c OK [17:38:52]MH_I2C_Read... [17:38:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:38:52]Read from MH i2c: E2 [17:38:52]MH_I2C_Read... [17:38:52]Read from MH i2c: E2 03 00 [17:38:52]MH_I2C_Read... [17:38:52]Read from MH i2c: E2 03 00 C3 04 00 90 00 3B [17:38:52]RAPDU: 90 00 [17:38:52]wFMCommunicate OK [17:38:52]wFMCommunicate request_size=4 [17:38:52]MH_SAM_APDU [17:38:52]CAPDU: 80 0D 03 02 [17:38:52]Write to MH i2c: E2 08 00 C4 04 80 0D 03 02 00 00 00 00 43 [17:38:52]Write i2c OK [17:38:52]MH_I2C_Read... [17:38:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:38:52]Read from MH i2c: E2 [17:38:52]MH_I2C_Read... [17:38:52]Read from MH i2c: E2 0B 00 [17:38:52]MH_I2C_Read... [17:38:52]Read from MH i2c: E2 0B 00 C4 04 00 38 5B 8E 60 2B 49 2B 3D 90 00 A1 [17:38:52]RAPDU: 38 5B 8E 60 2B 49 2B 3D 90 00 [17:38:52]wFMCommunicate OK [17:38:52]SAM_PROTO_SignData done [17:38:52]FM_MakeSignedData done [17:38:52]CreateOFDProtocolMessage [17:38:52]wFMCommunicate request_size=4 [17:38:52]MH_SAM_APDU [17:38:52]CAPDU: 80 11 00 00 [17:38:52]Write to MH i2c: E2 08 00 C5 04 80 11 00 00 00 00 00 00 43 [17:38:52]Write i2c OK [17:38:52]MH_I2C_Read... [17:38:52]OFD Sender: No OFD packet to send [17:38:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:38:52]Read from MH i2c: E2 [17:38:52]MH_I2C_Read... [17:38:52]Read from MH i2c: E2 17 00 [17:38:52]MH_I2C_Read... [17:38:52]Read from MH i2c: E2 17 00 C5 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 91 [17:38: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:38:52]wFMCommunicate OK [17:38:52]CreateOFDProtocolMessage done [17:38:52]OFDSenderStorePacket 30418 [17:38:52]StoreOFDPacket docnum=30418 [17:38: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 EB AC 07 01 9F C5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 2B 40 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 78 18 99 D8 16 C5 38 5B 8E 60 2B 49 2B 3D [17:38:52]CheckFolder [17:38:52]dirname=/storage/ofd_packets [17:38:52]CheckFolder done [17:38:52]ProducePacketName [17:38:52]name=ofd_packets/00030418 [17:38:52]NVStorageSaveData ofd_packets/00030418 [17:38:52]File name is /storage/ofd_packets/00030418 [17:38:52]Write 301 bytes [17:38:52]NVStorageSaveData done [17:38:52]OFDSenderStorePacket done [17:38:52]KKMCreateOFDPacket done [17:38:52]NVStorageSaveData kkm_last_timestamp [17:38:52]File name is /storage/kkm_last_timestamp [17:38:52]Write 4 bytes [17:38:52]NVStorageSaveData done [17:38:52]ExternCall_PrintAddStr [17:38:52]wPrintStart [17:38:52]Write to MH i2c: 01 00 00 C6 04 CA [17:38:52]Write i2c OK [17:38:52]MH_I2C_Read... [17:38:52]Read from MH i2c: 01 [17:38:52]MH_I2C_Read... [17:38:52]Read from MH i2c: 01 07 00 [17:38:52]MH_I2C_Read... [17:38:52]Read from MH i2c: 01 07 00 C6 04 00 00 00 00 00 FF 0F DF [17:38:52]RasterBufferAndPrint [17:38:52]line Счет N : (1)342819 [17:38:52]line ИНН: 02508201610067 [17:38:52]line Контрольно-Кассовый Чек [17:38:52]line ПРОДАЖА [17:38:52]line ТРК (МРК, ГНК) : 52 [17:38:52]line Товар: 2710124500 [17:38:52]line Аи-95-К-3 [17:38:52]line 8.090 * 74.20 [17:38:52]line = 600.28 [17:38:52]line НДС 12% НСП 1% [17:38:52]line > о реализуемом товаре [17:38:52]line ОКРУГЛЕНИЕ: -0.28 [17:38:52]line ИТОГО: 600.00 [17:38:52]line Внесено: 600.00 [17:38:52]line СДАЧА: 0.00 [17:38:52]line НСП 1% : 5.31 [17:38:52]line НДС 12% : 63.75 [17:38:52]line Наличными: 600.00 [17:38:52]line Безнал.: 0.00 [17:38:52]line Место: АЗС № 78 "Партнер Нефть" [17:38:52]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [17:38:52]line СНО: Общий режим [17:38:52]line Чек 200 20.10.2024 17:38 [17:38:52]line Смена: 114 ФФД: 1.0 [17:38:52]line ЗНМ: 0300000137 [17:38:52]line РНМ: 0000000000186857 [17:38:52]line Версия ККМ: v1.0 [17:38:52]line ФМ: 0000000002094219 [17:38:52]line ФД: 30418 [17:38:52]line ФПД: 132047055623877 [17:38:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T173851&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30418&fm=132047055623877&tin=02508201610067®Number=0000000000186857&sum=60000 [17:38:53]OFD Sender: Processing packet 30418 [packets to send 10, broken 9] [17:38:53]ProducePacketName [17:38:53]name=ofd_packets/00030418 [17:38:53]OFD Sender: To server: pG, [17:38:53]CommunicateWithHost lk.salyk.kg:30040 [17:38:53]ConnectInit lk.salyk.kg [17:38:53]written 0, free lines is 4095 [17:38:53]Connected sock=10 [17:38: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 EB AC 07 01 9F C5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 2B 40 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 78 18 99 D8 16 C5 38 5B 8E 60 2B 49 2B 3D [17:38: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 BD 0C 47 00 2C 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 D2 76 00 00 F4 03 04 00 AE EA 14 67 B6 04 01 00 00 44 AB 97 B9 AE CC 6D 8C [17:38:53]CommunicateWithHost err = 0 [17:38:53]CheckOFDResponse [17:38:53]1017 (14) - 77093643461234 [17:38:53]1041 (16) - 0000000002094219 [17:38:53]1040 (4) - 30418 [17:38:53]1012 (4) - 20.10.2024 11:34 [17:38:53]1206 (1) - 0 [17:38:53]OFD Sender: Remove packet 30418 [17:38:53]ProducePacketName [17:38:53]name=ofd_packets/00030418 [17:38:53]NVStorageDeleteData [17:38:53]Write to MH i2c: 01 00 00 F1 04 F5 [17:38:53]Write i2c OK [17:38:53]MH_I2C_Read... [17:38:53]Read from MH i2c: 01 [17:38:53]MH_I2C_Read... [17:38:53]Read from MH i2c: 01 07 00 [17:38:53]MH_I2C_Read... [17:38:53]Read from MH i2c: 01 07 00 F1 04 00 00 00 00 00 F3 0C FB [17:38:53]RasterBufferAndPrint [17:38:53]line [17:38:53]line [17:38:53]line [17:38:53]line [17:38:53]line [17:38:53]written 0, free lines is 3321 [17:38:53]MH_Cut [17:38:53]Write to MH i2c: D1 01 00 F8 04 01 CE [17:38:53]Write i2c OK [17:38:53]MH_I2C_Read... [17:38:53]Read from MH i2c: D1 [17:38:53]MH_I2C_Read... [17:38:53]Read from MH i2c: D1 01 00 [17:38:53]MH_I2C_Read... [17:38:53]Read from MH i2c: D1 01 00 F8 04 00 CD [17:38:53]Write to MH i2c: 01 00 00 F9 04 FD [17:38:53]Write i2c OK [17:38:53]MH_I2C_Read... [17:38:54]OFD Sender: No OFD packet to send [17:38:54]*** Cut start [17:38:54]*** Partial cut [17:38:54]*** CUTSNS_PIN = 1 [17:38:54]*** CUTSNS_PIN = 0 [17:38:54]*** Brake cut motor [17:38:54]Read from MH i2c: 01 [17:38:54]MH_I2C_Read... [17:38:54]*** Stop cut motor [17:38:54]*** Cut end [17:38:54]Read from MH i2c: 01 07 00 [17:38:54]MH_I2C_Read... [17:38:54]Read from MH i2c: 01 07 00 F9 04 00 00 00 00 00 FF 0F 12 [17:38:54]process_action close_receipt done [17:38:54]requested_data is exist [17:38:54]produce_requested_data [17:38:54]requested_item fm.sn is exist - process it [17:38:54]wFMCommunicate request_size=4 [17:38:54]MH_SAM_APDU [17:38:54]CAPDU: 80 11 00 00 [17:38:54]Write to MH i2c: E2 08 00 FA 04 80 11 00 00 00 00 00 00 78 [17:38:54]Write i2c OK [17:38:54]MH_I2C_Read... [17:38:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:38:55]Read from MH i2c: E2 [17:38:55]MH_I2C_Read... [17:38:55]Read from MH i2c: E2 17 00 [17:38:55]MH_I2C_Read... [17:38:55]Read from MH i2c: E2 17 00 FA 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 C6 [17:38:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [17:38:55]wFMCommunicate OK [17:38:55]requested_item fd.num is exist - process it [17:38:55]SAM_PROTO_GetFieldsCounters [17:38:55]wFMCommunicate request_size=4 [17:38:55]MH_SAM_APDU [17:38:55]CAPDU: 80 13 00 00 [17:38:55]Write to MH i2c: E2 08 00 FB 04 80 13 00 00 00 00 00 00 7B [17:38:55]Write i2c OK [17:38:55]MH_I2C_Read... [17:38:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:38:55]Read from MH i2c: E2 [17:38:55]MH_I2C_Read... [17:38:55]Read from MH i2c: E2 62 00 [17:38:55]MH_I2C_Read... [17:38:55]Read from MH i2c: E2 62 00 FB 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 B3 [17:38: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 D2 76 00 00 0E 04 04 00 72 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 [17:38:55]wFMCommunicate OK [17:38:55]SAM_PROTO_GetFieldsCounters done [17:38:55]requested_item shift.num is exist - process it [17:38:55]requested_item shift.opened is exist - process it [17:38:55]req_shift_opened [17:38:55]FM_GetShiftState [17:38:55]SAM_PROTO_GetShiftState [17:38:55]wFMCommunicate request_size=4 [17:38:55]MH_SAM_APDU [17:38:55]CAPDU: 80 13 01 00 [17:38:55]Write to MH i2c: E2 08 00 FC 04 80 13 01 00 00 00 00 00 7D [17:38:55]Write i2c OK [17:38:55]MH_I2C_Read... [17:38:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:38:55]Read from MH i2c: E2 [17:38:55]MH_I2C_Read... [17:38:55]Read from MH i2c: E2 0E 00 [17:38:55]MH_I2C_Read... [17:38:55]Read from MH i2c: E2 0E 00 FC 04 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 63 [17:38:55]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [17:38:55]wFMCommunicate OK [17:38:55]SAM_PROTO_GetShiftState done [17:38:55]FM_GetShiftState done [17:38:55]req_shift_opened done [17:38:55]requested_item shift.open_date is exist - process it [17:38:55]req_shift_open_date [17:38:55]req_shift_open_date done [17:38:55]produce_requested_data done [17:38:55]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30418,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [17:38:55]process_action_free close_receipt [17:38:55]json_value_free [17:38:55]json_value_free done [17:38:55]process_json_proto returns [17:38:55]Send response to host [17:38:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30418,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [17:38:55]free response buf [17:38:55]execute_script done [17:38:55]execute_script returns [17:38:55]free content buf [17:38:55]Sock 9.Close socket [17:38:55]Sock 9.Thread stoped [17:38:59]OFD Sender: No OFD packet to send [17:39:04]OFD Sender: No OFD packet to send [17:39:08]accept exits with 7 [17:39:08]New connection [17:39:08]New thread 3067346276 created [17:39:08]Thread 3067489636 joined [17:39:08]Waiting for new connection... [17:39:08] Sock 7.Parse request [17:39:08]Sock 7.Check first char [17:39:08]Sock 7.First char is OK [17:39:08]request: POST /json_proto HTTP/1.0 [17:39:08]Method: POST [17:39:08]URL: /json_proto [17:39:08]Method is POST - this is cgi request [17:39:08]url: /json_proto [17:39:08]query_string will be loaded in cgi processing [17:39:08]execute_cgi json_proto POST (null) [17:39:08]execute_cgi path=json_proto method=POST [17:39:08]POST find Content-Length [17:39:08]Host: 172.17.51.3:8080 [17:39:08]Content-Length: 677 [17:39:08]Content-Type: application/json [17:39:08] [17:39:08]POST finish read [17:39:08]Found Content-Length = 677 [17:39:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342820", "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" ] } } [17:39:08]execute_script... [17: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)342820", "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" ] } } [17:39:08]POST & json_proto [17:39:08]process_json_proto [17:39:08]json parsed OK: [17:39:08]protocol is kg_v1.0 [17:39:08]action value=close_receipt [17:39:08]process_action close_receipt [17:39:08]cmd_close_receipt [17:39:08]MH_GetDate [17:39:08]Write to MH i2c: F0 00 00 FD 04 F0 [17:39:08]Write i2c OK [17:39:08]MH_I2C_Read... [17:39:08]Read from MH i2c: F0 [17:39:08]MH_I2C_Read... [17:39:08]Read from MH i2c: F0 09 00 [17:39:08]MH_I2C_Read... [17:39:08]Read from MH i2c: F0 09 00 FD 04 00 3C 40 15 67 04 C1 95 66 B1 [17:39:08]GetLastDocTimeStamp 1729445931 [17:39:08]current date 1729445948 [17:39:08]FM_GetShiftState [17:39:08]SAM_PROTO_GetShiftState [17:39:08]wFMCommunicate request_size=4 [17:39:08]MH_SAM_APDU [17:39:08]CAPDU: 80 13 01 00 [17:39:08]Write to MH i2c: E2 08 00 FE 04 80 13 01 00 00 00 00 00 7F [17:39:08]Write i2c OK [17:39:08]MH_I2C_Read... [17:39:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:39:08]Read from MH i2c: E2 [17:39:08]MH_I2C_Read... [17:39:08]Read from MH i2c: E2 0E 00 [17:39:08]MH_I2C_Read... [17:39:08]Read from MH i2c: E2 0E 00 FE 04 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 65 [17:39:08]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [17:39:08]wFMCommunicate OK [17:39:08]SAM_PROTO_GetShiftState done [17:39:08]FM_GetShiftState done [17:39:08]opened in 1729384718 [17:39:08]opened+sec_in_day 1729471118 [17:39:08]quantity*price = 20003 [17:39:08]sum+1 = 20004 [17: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 СНО: Общий режим Чек 201 20.10.2024 17:39 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30419 ФПД: 152802464519213 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T173908&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30419&fm=152802464519213&tin=02508201610067®Number=0000000000186857&sum=20000 [17:39:09]StoreToDocumentArchive [17:39:09]shift 114 fd 30419 [17:39:09]save to /storage/0114/doc_00030419 [17:39:09]save last doc name /storage/0114/doc_00030419 to /storage/kkm_last_doc_name [17:39:09]save OK [17:39:09]Clear old archive folders... [17:39:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:39:09]tlvbuf is 01DB5FF0 [17:39:09]SAM_PROTO_ClearQueue [17:39:09]wFMCommunicate request_size=4 [17:39:09]MH_SAM_APDU [17:39:09]CAPDU: 80 09 00 00 [17:39:09]Write to MH i2c: E2 08 00 0B 05 80 09 00 00 00 00 00 00 82 [17:39:09]Write i2c OK [17:39:09]MH_I2C_Read... [17:39:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:39:09]Read from MH i2c: E2 [17:39:09]MH_I2C_Read... [17:39:09]Read from MH i2c: E2 03 00 [17:39:09]MH_I2C_Read... [17:39:09]Read from MH i2c: E2 03 00 0B 05 00 90 00 84 [17:39:09]RAPDU: 90 00 [17:39:09]wFMCommunicate OK [17:39:09]SAM_PROTO_ClearQueue done [17:39:09]KKMCreateOFDPacket [17:39:09]OFDProtocolAddRootSTLVToBuf [17:39:09]FM_MakeSignedData [17:39:09]FM_MakeSignedData [17:39:09]SAM_PROTO_SignData [17:39:09]wFMCommunicate request_size=4 [17:39:09]MH_SAM_APDU [17:39:09]CAPDU: 80 0D 01 02 [17:39:09]Write to MH i2c: E2 08 00 0C 05 80 0D 01 02 00 00 00 00 8A [17:39:09]Write i2c OK [17:39:09]MH_I2C_Read... [17:39:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:39:09]Read from MH i2c: E2 [17:39:09]MH_I2C_Read... [17:39:09]Read from MH i2c: E2 03 00 [17:39:09]MH_I2C_Read... [17:39:09]Read from MH i2c: E2 03 00 0C 05 00 90 00 85 [17:39:09]RAPDU: 90 00 [17:39:09]wFMCommunicate OK [17:39:09]wFMCommunicate request_size=255 [17:39:09]MH_SAM_APDU [17: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 C9 00 00 00 F4 03 04 00 3C 40 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 8A [17:39:09]Write to MH i2c: E2 02 01 0D 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 C9 00 00 00 F4 03 04 00 3C 40 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 8A 00 00 E3 [17:39:09]Write i2c OK [17:39:09]MH_I2C_Read... [17:39:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:39:09]Read from MH i2c: E2 [17:39:09]MH_I2C_Read... [17:39:09]Read from MH i2c: E2 03 00 [17:39:09]MH_I2C_Read... [17:39:09]Read from MH i2c: E2 03 00 0D 05 00 90 00 86 [17:39:09]RAPDU: 90 00 [17:39:09]wFMCommunicate OK [17:39:09]wFMCommunicate request_size=10 [17:39:09]MH_SAM_APDU [17:39:09]CAPDU: 80 0D 02 02 05 F9 18 9E 54 2D [17:39:09]Write to MH i2c: E2 0D 00 0E 05 80 0D 02 02 05 00 F9 18 9E 54 2D 00 00 C7 [17:39:09]Write i2c OK [17:39:09]MH_I2C_Read... [17:39:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:39:09]Read from MH i2c: E2 [17:39:09]MH_I2C_Read... [17:39:09]Read from MH i2c: E2 03 00 [17:39:09]MH_I2C_Read... [17:39:09]Read from MH i2c: E2 03 00 0E 05 00 90 00 87 [17:39:09]RAPDU: 90 00 [17:39:09]wFMCommunicate OK [17:39:09]wFMCommunicate request_size=4 [17:39:09]MH_SAM_APDU [17:39:09]CAPDU: 80 0D 03 02 [17:39:09]Write to MH i2c: E2 08 00 0F 05 80 0D 03 02 00 00 00 00 8F [17:39:09]Write i2c OK [17:39:09]MH_I2C_Read... [17:39:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:39:10]Read from MH i2c: E2 [17:39:10]MH_I2C_Read... [17:39:10]Read from MH i2c: E2 0B 00 [17:39:10]MH_I2C_Read... [17:39:10]Read from MH i2c: E2 0B 00 0F 05 00 26 17 16 92 F3 60 32 73 90 00 6D [17:39:10]RAPDU: 26 17 16 92 F3 60 32 73 90 00 [17:39:10]wFMCommunicate OK [17:39:10]SAM_PROTO_SignData done [17:39:10]FM_MakeSignedData done [17:39:10]CreateOFDProtocolMessage [17:39:10]wFMCommunicate request_size=4 [17:39:10]MH_SAM_APDU [17:39:10]CAPDU: 80 11 00 00 [17:39:10]Write to MH i2c: E2 08 00 10 05 80 11 00 00 00 00 00 00 8F [17:39:10]Write i2c OK [17:39:10]MH_I2C_Read... [17:39:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:39:10]Read from MH i2c: E2 [17:39:10]MH_I2C_Read... [17:39:10]Read from MH i2c: E2 17 00 [17:39:10]MH_I2C_Read... [17:39:10]Read from MH i2c: E2 17 00 10 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 DD [17:39: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:39:10]wFMCommunicate OK [17:39:10]CreateOFDProtocolMessage done [17:39:10]OFDSenderStorePacket 30419 [17:39:10]StoreOFDPacket docnum=30419 [17:39: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 75 AE 07 01 84 24 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 C9 00 00 00 F4 03 04 00 3C 40 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 8A F9 18 9E 54 2D 26 17 16 92 F3 60 32 73 [17:39:10]CheckFolder [17:39:10]dirname=/storage/ofd_packets [17:39:10]CheckFolder done [17:39:10]ProducePacketName [17:39:10]name=ofd_packets/00030419 [17:39:10]NVStorageSaveData ofd_packets/00030419 [17:39:10]File name is /storage/ofd_packets/00030419 [17:39:10]Write 301 bytes [17:39:10]NVStorageSaveData done [17:39:10]OFDSenderStorePacket done [17:39:10]KKMCreateOFDPacket done [17:39:10]NVStorageSaveData kkm_last_timestamp [17:39:10]File name is /storage/kkm_last_timestamp [17:39:10]Write 4 bytes [17:39:10]NVStorageSaveData done [17:39:10]ExternCall_PrintAddStr [17:39:10]wPrintStart [17:39:10]Write to MH i2c: 01 00 00 11 05 16 [17:39:10]Write i2c OK [17:39:10]MH_I2C_Read... [17:39:10]Read from MH i2c: 01 [17:39:10]MH_I2C_Read... [17:39:10]Read from MH i2c: 01 07 00 [17:39:10]MH_I2C_Read... [17:39:10]Read from MH i2c: 01 07 00 11 05 00 00 00 00 00 FF 0F 2B [17:39:10]RasterBufferAndPrint [17:39:10]line Счет N : (1)342820 [17:39:10]line ИНН: 02508201610067 [17:39:10]line Контрольно-Кассовый Чек [17:39:10]line ПРОДАЖА [17:39:10]line ТРК (МРК, ГНК) : 43 [17:39:10]line Товар: 2710124130 [17:39:10]line Аи-92-К-2 [17:39:10]line 2.990 * 66.90 [17:39:10]line = 200.03 [17:39:10]line НДС 12% НСП 1% [17:39:10]line > о реализуемом товаре [17:39:10]line ОКРУГЛЕНИЕ: -0.03 [17:39:10]line ИТОГО: 200.00 [17:39:10]line Внесено: 200.00 [17:39:10]line СДАЧА: 0.00 [17:39:10]line НСП 1% : 1.77 [17:39:10]line НДС 12% : 21.24 [17:39:10]line Наличными: 200.00 [17:39:10]line Безнал.: 0.00 [17:39:10]line Место: АЗС № 78 "Партнер Нефть" [17:39:10]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [17:39:10]line СНО: Общий режим [17:39:10]line Чек 201 20.10.2024 17:39 [17:39:10]line Смена: 114 ФФД: 1.0 [17:39:10]line ЗНМ: 0300000137 [17:39:10]line РНМ: 0000000000186857 [17:39:10]line Версия ККМ: v1.0 [17:39:10]line ФМ: 0000000002094219 [17:39:10]line ФД: 30419 [17:39:10]line ФПД: 152802464519213 [17:39:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T173908&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30419&fm=152802464519213&tin=02508201610067®Number=0000000000186857&sum=20000 [17:39:10]OFD Sender: Processing packet 30419 [packets to send 10, broken 9] [17:39:10]ProducePacketName [17:39:10]name=ofd_packets/00030419 [17:39:10]OFD Sender: To server: pG, [17:39:10]CommunicateWithHost lk.salyk.kg:30040 [17:39:10]ConnectInit lk.salyk.kg [17:39:10]written 0, free lines is 4095 [17:39:10]Connected sock=10 [17: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 75 AE 07 01 84 24 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 C9 00 00 00 F4 03 04 00 3C 40 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 8A F9 18 9E 54 2D 26 17 16 92 F3 60 32 73 [17: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 7D D2 47 00 5C 75 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 D3 76 00 00 F4 03 04 00 BF EA 14 67 B6 04 01 00 00 A3 23 A1 F8 56 5F DD E6 [17:39:10]CommunicateWithHost err = 0 [17:39:10]CheckOFDResponse [17:39:10]1017 (14) - 77093643461234 [17:39:10]1041 (16) - 0000000002094219 [17:39:10]1040 (4) - 30419 [17:39:10]1012 (4) - 20.10.2024 11:34 [17:39:10]1206 (1) - 0 [17:39:10]OFD Sender: Remove packet 30419 [17:39:10]ProducePacketName [17:39:10]name=ofd_packets/00030419 [17:39:10]NVStorageDeleteData [17:39:10]Write to MH i2c: 01 00 00 3C 05 41 [17:39:10]Write i2c OK [17:39:10]MH_I2C_Read... [17:39:10]Read from MH i2c: 01 [17:39:10]MH_I2C_Read... [17:39:10]Read from MH i2c: 01 07 00 [17:39:10]MH_I2C_Read... [17:39:10]Read from MH i2c: 01 07 00 3C 05 00 00 00 00 00 F3 0C 47 [17:39:10]RasterBufferAndPrint [17:39:10]line [17:39:10]line [17:39:10]line [17:39:10]line [17:39:10]line [17:39:10]written 0, free lines is 3321 [17:39:10]MH_Cut [17:39:10]Write to MH i2c: D1 01 00 43 05 01 1A [17:39:10]Write i2c OK [17:39:10]MH_I2C_Read... [17:39:10]Read from MH i2c: D1 [17:39:10]MH_I2C_Read... [17:39:10]Read from MH i2c: D1 01 00 [17:39:10]MH_I2C_Read... [17:39:10]Read from MH i2c: D1 01 00 43 05 00 19 [17:39:10]Write to MH i2c: 01 00 00 44 05 49 [17:39:10]Write i2c OK [17:39:10]MH_I2C_Read... [17:39:11]OFD Sender: No OFD packet to send [17:39:11]*** Cut start [17:39:11]*** Partial cut [17:39:11]*** CUTSNS_PIN = 1 [17:39:11]*** CUTSNS_PIN = 0 [17:39:11]*** Brake cut motor [17:39:12]Read from MH i2c: 01 [17:39:12]MH_I2C_Read... [17:39:12]*** Stop cut motor [17:39:12]*** Cut end [17:39:12]Read from MH i2c: 01 07 00 [17:39:12]MH_I2C_Read... [17:39:12]Read from MH i2c: 01 07 00 44 05 00 00 00 00 00 FF 0F 5E [17:39:12]process_action close_receipt done [17:39:12]requested_data is exist [17:39:12]produce_requested_data [17:39:12]requested_item fm.sn is exist - process it [17:39:12]wFMCommunicate request_size=4 [17:39:12]MH_SAM_APDU [17:39:12]CAPDU: 80 11 00 00 [17:39:12]Write to MH i2c: E2 08 00 45 05 80 11 00 00 00 00 00 00 C4 [17:39:12]Write i2c OK [17:39:12]MH_I2C_Read... [17:39:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:39:12]Read from MH i2c: E2 [17:39:12]MH_I2C_Read... [17:39:12]Read from MH i2c: E2 17 00 [17:39:12]MH_I2C_Read... [17:39:12]Read from MH i2c: E2 17 00 45 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 12 [17: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 [17:39:12]wFMCommunicate OK [17:39:12]requested_item fd.num is exist - process it [17:39:12]SAM_PROTO_GetFieldsCounters [17:39:12]wFMCommunicate request_size=4 [17:39:12]MH_SAM_APDU [17:39:12]CAPDU: 80 13 00 00 [17:39:12]Write to MH i2c: E2 08 00 46 05 80 13 00 00 00 00 00 00 C7 [17:39:12]Write i2c OK [17:39:12]MH_I2C_Read... [17:39:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:39:12]Read from MH i2c: E2 [17:39:12]MH_I2C_Read... [17:39:12]Read from MH i2c: E2 62 00 [17:39:12]MH_I2C_Read... [17:39:12]Read from MH i2c: E2 62 00 46 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 03 [17: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 D3 76 00 00 0E 04 04 00 72 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 [17:39:12]wFMCommunicate OK [17:39:12]SAM_PROTO_GetFieldsCounters done [17:39:12]requested_item shift.num is exist - process it [17:39:12]requested_item shift.opened is exist - process it [17:39:12]req_shift_opened [17:39:12]FM_GetShiftState [17:39:12]SAM_PROTO_GetShiftState [17:39:12]wFMCommunicate request_size=4 [17:39:12]MH_SAM_APDU [17:39:12]CAPDU: 80 13 01 00 [17:39:12]Write to MH i2c: E2 08 00 47 05 80 13 01 00 00 00 00 00 C9 [17:39:12]Write i2c OK [17:39:12]MH_I2C_Read... [17:39:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:39:12]Read from MH i2c: E2 [17:39:12]MH_I2C_Read... [17:39:12]Read from MH i2c: E2 0E 00 [17:39:12]MH_I2C_Read... [17:39:12]Read from MH i2c: E2 0E 00 47 05 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 AF [17:39:12]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [17:39:12]wFMCommunicate OK [17:39:12]SAM_PROTO_GetShiftState done [17:39:12]FM_GetShiftState done [17:39:12]req_shift_opened done [17:39:12]requested_item shift.open_date is exist - process it [17:39:12]req_shift_open_date [17:39:12]req_shift_open_date done [17:39:12]produce_requested_data done [17:39:12]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30419,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [17:39:12]process_action_free close_receipt [17:39:12]json_value_free [17:39:12]json_value_free done [17:39:12]process_json_proto returns [17:39:12]Send response to host [17:39:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30419,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [17:39:12]free response buf [17:39:12]execute_script done [17:39:12]execute_script returns [17:39:12]free content buf [17:39:12]Sock 7.Close socket [17:39:12]Sock 7.Thread stoped [17:39:16]OFD Sender: No OFD packet to send [17:39:21]OFD Sender: No OFD packet to send [17:39:26]OFD Sender: No OFD packet to send [17:39:31]OFD Sender: No OFD packet to send [17:39:36]OFD Sender: No OFD packet to send [17:39:41]OFD Sender: No OFD packet to send [17:39:46]OFD Sender: No OFD packet to send [17:39:51]OFD Sender: No OFD packet to send [17:39:56]OFD Sender: No OFD packet to send [17:40:01]OFD Sender: No OFD packet to send [17:40:06]OFD Sender: No OFD packet to send [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:28]accept exits with 9 [17:42:28]New connection [17:42:28]New thread 3067489636 created [17:42:28]Thread 3067346276 joined [17:42:28]Waiting for new connection... [17:42:28] Sock 9.Parse request [17:42:28]Sock 9.Check first char [17:42:28]Sock 9.First char is OK [17:42:28]request: POST /json_proto HTTP/1.0 [17:42:28]Method: POST [17:42:28]URL: /json_proto [17:42:28]Method is POST - this is cgi request [17:42:28]url: /json_proto [17:42:28]query_string will be loaded in cgi processing [17:42:28]execute_cgi json_proto POST (null) [17:42:28]execute_cgi path=json_proto method=POST [17:42:28]POST find Content-Length [17:42:28]Host: 172.17.51.3:8080 [17:42:28]Content-Length: 677 [17:42:28]Content-Type: application/json [17:42:28] [17:42:28]POST finish read [17:42:28]Found Content-Length = 677 [17:42:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342822", "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" ] } } [17:42:28]execute_script... [17:42: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)342822", "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" ] } } [17:42:28]POST & json_proto [17:42:28]process_json_proto [17:42:28]json parsed OK: [17:42:28]protocol is kg_v1.0 [17:42:28]action value=close_receipt [17:42:28]process_action close_receipt [17:42:28]cmd_close_receipt [17:42:28]MH_GetDate [17:42:28]Write to MH i2c: F0 00 00 48 05 3C [17:42:28]Write i2c OK [17:42:28]MH_I2C_Read... [17:42:28]Read from MH i2c: F0 [17:42:28]MH_I2C_Read... [17:42:28]Read from MH i2c: F0 09 00 [17:42:28]MH_I2C_Read... [17:42:28]Read from MH i2c: F0 09 00 48 05 00 04 41 15 67 04 C1 95 66 C6 [17:42:28]GetLastDocTimeStamp 1729445948 [17:42:28]current date 1729446148 [17:42:28]FM_GetShiftState [17:42:28]SAM_PROTO_GetShiftState [17:42:28]wFMCommunicate request_size=4 [17:42:28]MH_SAM_APDU [17:42:28]CAPDU: 80 13 01 00 [17:42:28]Write to MH i2c: E2 08 00 49 05 80 13 01 00 00 00 00 00 CB [17:42:28]Write i2c OK [17:42:28]MH_I2C_Read... [17:42:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:42:28]Read from MH i2c: E2 [17:42:28]MH_I2C_Read... [17:42:28]Read from MH i2c: E2 0E 00 [17:42:28]MH_I2C_Read... [17:42:28]Read from MH i2c: E2 0E 00 49 05 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 B1 [17:42:28]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [17:42:28]wFMCommunicate OK [17:42:28]SAM_PROTO_GetShiftState done [17:42:28]FM_GetShiftState done [17:42:28]opened in 1729384718 [17:42:28]opened+sec_in_day 1729471118 [17:42:28]quantity*price = 40006 [17:42:28]sum+1 = 40007 [17:42:28]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 СНО: Общий режим Чек 202 20.10.2024 17:42 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30420 ФПД: 220690161190646 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T174228&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30420&fm=220690161190646&tin=02508201610067®Number=0000000000186857&sum=40000 [17:42:29]StoreToDocumentArchive [17:42:29]shift 114 fd 30420 [17:42:29]save to /storage/0114/doc_00030420 [17:42:29]save last doc name /storage/0114/doc_00030420 to /storage/kkm_last_doc_name [17:42:29]save OK [17:42:29]Clear old archive folders... [17:42:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:42:29]tlvbuf is 01DB8A30 [17:42:29]SAM_PROTO_ClearQueue [17:42:29]wFMCommunicate request_size=4 [17:42:29]MH_SAM_APDU [17:42:29]CAPDU: 80 09 00 00 [17:42:29]Write to MH i2c: E2 08 00 56 05 80 09 00 00 00 00 00 00 CD [17:42:29]Write i2c OK [17:42:29]MH_I2C_Read... [17:42:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:42:29]Read from MH i2c: E2 [17:42:29]MH_I2C_Read... [17:42:29]Read from MH i2c: E2 03 00 [17:42:29]MH_I2C_Read... [17:42:29]Read from MH i2c: E2 03 00 56 05 00 90 00 CF [17:42:29]RAPDU: 90 00 [17:42:29]wFMCommunicate OK [17:42:29]SAM_PROTO_ClearQueue done [17:42:29]KKMCreateOFDPacket [17:42:29]OFDProtocolAddRootSTLVToBuf [17:42:29]FM_MakeSignedData [17:42:29]FM_MakeSignedData [17:42:29]SAM_PROTO_SignData [17:42:29]wFMCommunicate request_size=4 [17:42:29]MH_SAM_APDU [17:42:29]CAPDU: 80 0D 01 02 [17:42:29]Write to MH i2c: E2 08 00 57 05 80 0D 01 02 00 00 00 00 D5 [17:42:29]Write i2c OK [17:42:29]MH_I2C_Read... [17:42:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:42:29]Read from MH i2c: E2 [17:42:29]MH_I2C_Read... [17:42:29]Read from MH i2c: E2 03 00 [17:42:29]MH_I2C_Read... [17:42:29]Read from MH i2c: E2 03 00 57 05 00 90 00 D0 [17:42:29]RAPDU: 90 00 [17:42:29]wFMCommunicate OK [17:42:29]wFMCommunicate request_size=255 [17:42:29]MH_SAM_APDU [17:42: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 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 CA 00 00 00 F4 03 04 00 04 41 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 C8 [17:42:29]Write to MH i2c: E2 02 01 58 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 CA 00 00 00 F4 03 04 00 04 41 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 C8 00 00 44 [17:42:29]Write i2c OK [17:42:29]MH_I2C_Read... [17:42:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:42:29]Read from MH i2c: E2 [17:42:29]MH_I2C_Read... [17:42:29]Read from MH i2c: E2 03 00 [17:42:29]MH_I2C_Read... [17:42:29]Read from MH i2c: E2 03 00 58 05 00 90 00 D1 [17:42:29]RAPDU: 90 00 [17:42:29]wFMCommunicate OK [17:42:29]wFMCommunicate request_size=10 [17:42:29]MH_SAM_APDU [17:42:29]CAPDU: 80 0D 02 02 05 B7 6E A9 C6 F6 [17:42:29]Write to MH i2c: E2 0D 00 59 05 80 0D 02 02 05 00 B7 6E A9 C6 F6 00 00 6C [17:42:29]Write i2c OK [17:42:29]MH_I2C_Read... [17:42:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:42:29]Read from MH i2c: E2 [17:42:29]MH_I2C_Read... [17:42:29]Read from MH i2c: E2 03 00 [17:42:29]MH_I2C_Read... [17:42:29]Read from MH i2c: E2 03 00 59 05 00 90 00 D2 [17:42:29]RAPDU: 90 00 [17:42:29]wFMCommunicate OK [17:42:29]wFMCommunicate request_size=4 [17:42:29]MH_SAM_APDU [17:42:29]CAPDU: 80 0D 03 02 [17:42:29]Write to MH i2c: E2 08 00 5A 05 80 0D 03 02 00 00 00 00 DA [17:42:29]Write i2c OK [17:42:29]MH_I2C_Read... [17:42:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:42:29]Read from MH i2c: E2 [17:42:29]MH_I2C_Read... [17:42:29]Read from MH i2c: E2 0B 00 [17:42:29]MH_I2C_Read... [17:42:29]Read from MH i2c: E2 0B 00 5A 05 00 A3 13 3D C6 07 02 88 9E 90 00 C3 [17:42:29]RAPDU: A3 13 3D C6 07 02 88 9E 90 00 [17:42:29]wFMCommunicate OK [17:42:29]SAM_PROTO_SignData done [17:42:29]FM_MakeSignedData done [17:42:29]CreateOFDProtocolMessage [17:42:29]wFMCommunicate request_size=4 [17:42:29]MH_SAM_APDU [17:42:29]CAPDU: 80 11 00 00 [17:42:29]Write to MH i2c: E2 08 00 5B 05 80 11 00 00 00 00 00 00 DA [17:42:29]Write i2c OK [17:42:29]MH_I2C_Read... [17:42:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:42:30]Read from MH i2c: E2 [17:42:30]MH_I2C_Read... [17:42:30]Read from MH i2c: E2 17 00 [17:42:30]MH_I2C_Read... [17:42:30]Read from MH i2c: E2 17 00 5B 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 28 [17:42:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [17:42:30]wFMCommunicate OK [17:42:30]CreateOFDProtocolMessage done [17:42:30]OFDSenderStorePacket 30420 [17:42:30]StoreOFDPacket docnum=30420 [17:42: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 D4 DB 07 01 F1 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 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 CA 00 00 00 F4 03 04 00 04 41 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 C8 B7 6E A9 C6 F6 A3 13 3D C6 07 02 88 9E [17:42:30]CheckFolder [17:42:30]dirname=/storage/ofd_packets [17:42:30]CheckFolder done [17:42:30]ProducePacketName [17:42:30]name=ofd_packets/00030420 [17:42:30]NVStorageSaveData ofd_packets/00030420 [17:42:30]File name is /storage/ofd_packets/00030420 [17:42:30]Write 301 bytes [17:42:30]NVStorageSaveData done [17:42:30]OFDSenderStorePacket done [17:42:30]KKMCreateOFDPacket done [17:42:30]NVStorageSaveData kkm_last_timestamp [17:42:30]File name is /storage/kkm_last_timestamp [17:42:30]Write 4 bytes [17:42:30]NVStorageSaveData done [17:42:30]ExternCall_PrintAddStr [17:42:30]wPrintStart [17:42:30]Write to MH i2c: 01 00 00 5C 05 61 [17:42:30]Write i2c OK [17:42:30]MH_I2C_Read... [17:42:30]Read from MH i2c: 01 [17:42:30]MH_I2C_Read... [17:42:30]Read from MH i2c: 01 07 00 [17:42:30]MH_I2C_Read... [17:42:30]Read from MH i2c: 01 07 00 5C 05 00 00 00 00 00 FF 0F 76 [17:42:30]RasterBufferAndPrint [17:42:30]line Счет N : (1)342822 [17:42:30]line ИНН: 02508201610067 [17:42:30]line Контрольно-Кассовый Чек [17:42:30]line ПРОДАЖА [17:42:30]line ТРК (МРК, ГНК) : 53 [17:42:30]line Товар: 2710124130 [17:42:30]line Аи-92-К-2 [17:42:30]line 5.980 * 66.90 [17:42:30]line = 400.06 [17:42:30]line НДС 12% НСП 1% [17:42:30]line > о реализуемом товаре [17:42:30]line ОКРУГЛЕНИЕ: -0.06 [17:42:30]line ИТОГО: 400.00 [17:42:30]line Внесено: 400.00 [17:42:30]line СДАЧА: 0.00 [17:42:30]line НСП 1% : 3.54 [17:42:30]line НДС 12% : 42.48 [17:42:30]line Наличными: 400.00 [17:42:30]line Безнал.: 0.00 [17:42:30]line Место: АЗС № 78 "Партнер Нефть" [17:42:30]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [17:42:30]line СНО: Общий режим [17:42:30]line Чек 202 20.10.2024 17:42 [17:42:30]line Смена: 114 ФФД: 1.0 [17:42:30]line ЗНМ: 0300000137 [17:42:30]line РНМ: 0000000000186857 [17:42:30]line Версия ККМ: v1.0 [17:42:30]line ФМ: 0000000002094219 [17:42:30]line ФД: 30420 [17:42:30]line ФПД: 220690161190646 [17:42:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T174228&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30420&fm=220690161190646&tin=02508201610067®Number=0000000000186857&sum=40000 [17:42:30]OFD Sender: Processing packet 30420 [packets to send 10, broken 9] [17:42:30]ProducePacketName [17:42:30]name=ofd_packets/00030420 [17:42:30]OFD Sender: To server: pG, [17:42:30]CommunicateWithHost lk.salyk.kg:30040 [17:42:30]ConnectInit lk.salyk.kg [17:42:30]written 0, free lines is 4095 [17:42:30]Connected sock=10 [17:42: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 D4 DB 07 01 F1 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 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 CA 00 00 00 F4 03 04 00 04 41 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 C8 B7 6E A9 C6 F6 A3 13 3D C6 07 02 88 9E [17:42: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 C7 B6 47 00 46 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 D4 76 00 00 F4 03 04 00 87 EB 14 67 B6 04 01 00 00 84 DB C6 64 5E 80 32 5A [17:42:30]CommunicateWithHost err = 0 [17:42:30]CheckOFDResponse [17:42:30]1017 (14) - 77093643461234 [17:42:30]1041 (16) - 0000000002094219 [17:42:30]1040 (4) - 30420 [17:42:30]1012 (4) - 20.10.2024 11:37 [17:42:30]1206 (1) - 0 [17:42:30]OFD Sender: Remove packet 30420 [17:42:30]ProducePacketName [17:42:30]name=ofd_packets/00030420 [17:42:30]NVStorageDeleteData [17:42:30]Write to MH i2c: 01 00 00 87 05 8C [17:42:30]Write i2c OK [17:42:30]MH_I2C_Read... [17:42:30]Read from MH i2c: 01 [17:42:30]MH_I2C_Read... [17:42:30]Read from MH i2c: 01 07 00 [17:42:30]MH_I2C_Read... [17:42:30]Read from MH i2c: 01 07 00 87 05 00 00 00 00 00 E3 0C 82 [17:42:30]RasterBufferAndPrint [17:42:30]line [17:42:30]line [17:42:30]line [17:42:30]line [17:42:30]line [17:42:30]written 0, free lines is 3305 [17:42:30]MH_Cut [17:42:30]Write to MH i2c: D1 01 00 8E 05 01 65 [17:42:30]Write i2c OK [17:42:30]MH_I2C_Read... [17:42:30]Read from MH i2c: D1 [17:42:30]MH_I2C_Read... [17:42:30]Read from MH i2c: D1 01 00 [17:42:30]MH_I2C_Read... [17:42:30]Read from MH i2c: D1 01 00 8E 05 00 64 [17:42:30]Write to MH i2c: 01 00 00 8F 05 94 [17:42:30]Write i2c OK [17:42:30]MH_I2C_Read... [17:42:31]OFD Sender: No OFD packet to send [17:42:31]*** Cut start [17:42:31]*** Partial cut [17:42:31]*** CUTSNS_PIN = 1 [17:42:31]*** CUTSNS_PIN = 0 [17:42:31]*** Brake cut motor [17:42:32]Read from MH i2c: 01 [17:42:32]MH_I2C_Read... [17:42:32]*** Stop cut motor [17:42:32]*** Cut end [17:42:32]Read from MH i2c: 01 07 00 [17:42:32]MH_I2C_Read... [17:42:32]Read from MH i2c: 01 07 00 8F 05 00 00 00 00 00 FF 0F A9 [17:42:32]process_action close_receipt done [17:42:32]requested_data is exist [17:42:32]produce_requested_data [17:42:32]requested_item fm.sn is exist - process it [17:42:32]wFMCommunicate request_size=4 [17:42:32]MH_SAM_APDU [17:42:32]CAPDU: 80 11 00 00 [17:42:32]Write to MH i2c: E2 08 00 90 05 80 11 00 00 00 00 00 00 0F [17:42:32]Write i2c OK [17:42:32]MH_I2C_Read... [17:42:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:42:32]Read from MH i2c: E2 [17:42:32]MH_I2C_Read... [17:42:32]Read from MH i2c: E2 17 00 [17:42:32]MH_I2C_Read... [17:42:32]Read from MH i2c: E2 17 00 90 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 5D [17:42:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [17:42:32]wFMCommunicate OK [17:42:32]requested_item fd.num is exist - process it [17:42:32]SAM_PROTO_GetFieldsCounters [17:42:32]wFMCommunicate request_size=4 [17:42:32]MH_SAM_APDU [17:42:32]CAPDU: 80 13 00 00 [17:42:32]Write to MH i2c: E2 08 00 91 05 80 13 00 00 00 00 00 00 12 [17:42:32]Write i2c OK [17:42:32]MH_I2C_Read... [17:42:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:42:32]Read from MH i2c: E2 [17:42:32]MH_I2C_Read... [17:42:32]Read from MH i2c: E2 62 00 [17:42:32]MH_I2C_Read... [17:42:32]Read from MH i2c: E2 62 00 91 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 52 [17:42: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 D4 76 00 00 0E 04 04 00 72 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 [17:42:32]wFMCommunicate OK [17:42:32]SAM_PROTO_GetFieldsCounters done [17:42:32]requested_item shift.num is exist - process it [17:42:32]requested_item shift.opened is exist - process it [17:42:32]req_shift_opened [17:42:32]FM_GetShiftState [17:42:32]SAM_PROTO_GetShiftState [17:42:32]wFMCommunicate request_size=4 [17:42:32]MH_SAM_APDU [17:42:32]CAPDU: 80 13 01 00 [17:42:32]Write to MH i2c: E2 08 00 92 05 80 13 01 00 00 00 00 00 14 [17:42:32]Write i2c OK [17:42:32]MH_I2C_Read... [17:42:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:42:32]Read from MH i2c: E2 [17:42:32]MH_I2C_Read... [17:42:32]Read from MH i2c: E2 0E 00 [17:42:32]MH_I2C_Read... [17:42:32]Read from MH i2c: E2 0E 00 92 05 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 FA [17:42:32]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [17:42:32]wFMCommunicate OK [17:42:32]SAM_PROTO_GetShiftState done [17:42:32]FM_GetShiftState done [17:42:32]req_shift_opened done [17:42:32]requested_item shift.open_date is exist - process it [17:42:32]req_shift_open_date [17:42:32]req_shift_open_date done [17:42:32]produce_requested_data done [17:42:32]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30420,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [17:42:32]process_action_free close_receipt [17:42:32]json_value_free [17:42:32]json_value_free done [17:42:32]process_json_proto returns [17:42:32]Send response to host [17:42:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30420,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [17:42:32]free response buf [17:42:32]execute_script done [17:42:32]execute_script returns [17:42:32]free content buf [17:42:32]Sock 9.Close socket [17:42:32]Sock 9.Thread stoped [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:42:57]accept exits with 7 [17:42:57]New connection [17:42:57]New thread 3067346276 created [17:42:57]Thread 3067489636 joined [17:42:57]Waiting for new connection... [17:42:57] Sock 7.Parse request [17:42:57]Sock 7.Check first char [17:42:57]Sock 7.First char is OK [17:42:57]request: POST /json_proto HTTP/1.0 [17:42:57]Method: POST [17:42:57]URL: /json_proto [17:42:57]Method is POST - this is cgi request [17:42:57]url: /json_proto [17:42:57]query_string will be loaded in cgi processing [17:42:57]execute_cgi json_proto POST (null) [17:42:57]execute_cgi path=json_proto method=POST [17:42:57]POST find Content-Length [17:42:57]Host: 172.17.51.3:8080 [17:42:57]Content-Length: 688 [17:42:57]Content-Type: application/json [17:42:57] [17:42:57]POST finish read [17:42:57]Found Content-Length = 688 [17:42:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342821", "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" ] } } [17:42:57]execute_script... [17:42: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)342821", "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" ] } } [17:42:57]POST & json_proto [17:42:57]process_json_proto [17:42:57]json parsed OK: [17:42:57]protocol is kg_v1.0 [17:42:57]action value=close_receipt [17:42:57]process_action close_receipt [17:42:57]cmd_close_receipt [17:42:57]MH_GetDate [17:42:57]Write to MH i2c: F0 00 00 93 05 87 [17:42:57]Write i2c OK [17:42:57]MH_I2C_Read... [17:42:57]Read from MH i2c: F0 [17:42:57]MH_I2C_Read... [17:42:57]Read from MH i2c: F0 09 00 [17:42:57]MH_I2C_Read... [17:42:57]Read from MH i2c: F0 09 00 93 05 00 21 41 15 67 04 C1 95 66 2E [17:42:57]GetLastDocTimeStamp 1729446148 [17:42:57]current date 1729446177 [17:42:57]FM_GetShiftState [17:42:57]SAM_PROTO_GetShiftState [17:42:57]wFMCommunicate request_size=4 [17:42:57]MH_SAM_APDU [17:42:57]CAPDU: 80 13 01 00 [17:42:57]Write to MH i2c: E2 08 00 94 05 80 13 01 00 00 00 00 00 16 [17:42:57]Write i2c OK [17:42:57]MH_I2C_Read... [17:42:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:42:57]Read from MH i2c: E2 [17:42:57]MH_I2C_Read... [17:42:57]Read from MH i2c: E2 0E 00 [17:42:57]MH_I2C_Read... [17:42:57]Read from MH i2c: E2 0E 00 94 05 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 FC [17:42:57]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [17:42:57]wFMCommunicate OK [17:42:57]SAM_PROTO_GetShiftState done [17:42:57]FM_GetShiftState done [17:42:57]opened in 1729384718 [17:42:57]opened+sec_in_day 1729471118 [17:42:57]quantity*price = 400050 [17:42:57]sum+1 = 400051 [17:42: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 СНО: Общий режим Чек 203 20.10.2024 17:42 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30421 ФПД: 170037737212848 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T174257&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30421&fm=170037737212848&tin=02508201610067®Number=0000000000186857&sum=400000 [17:42:58]StoreToDocumentArchive [17:42:58]shift 114 fd 30421 [17:42:58]save to /storage/0114/doc_00030421 [17:42:58]save last doc name /storage/0114/doc_00030421 to /storage/kkm_last_doc_name [17:42:58]save OK [17:42:58]Clear old archive folders... [17:42:58]ProcessDocumentItem done err = 0, tmpTLVsize=257 [17:42:58]tlvbuf is 01DBB3B0 [17:42:58]SAM_PROTO_ClearQueue [17:42:58]wFMCommunicate request_size=4 [17:42:58]MH_SAM_APDU [17:42:58]CAPDU: 80 09 00 00 [17:42:58]Write to MH i2c: E2 08 00 A1 05 80 09 00 00 00 00 00 00 18 [17:42:58]Write i2c OK [17:42:58]MH_I2C_Read... [17:42:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:42:58]Read from MH i2c: E2 [17:42:58]MH_I2C_Read... [17:42:58]Read from MH i2c: E2 03 00 [17:42:58]MH_I2C_Read... [17:42:58]Read from MH i2c: E2 03 00 A1 05 00 90 00 1A [17:42:58]RAPDU: 90 00 [17:42:58]wFMCommunicate OK [17:42:58]SAM_PROTO_ClearQueue done [17:42:58]KKMCreateOFDPacket [17:42:58]OFDProtocolAddRootSTLVToBuf [17:42:58]FM_MakeSignedData [17:42:58]FM_MakeSignedData [17:42:58]SAM_PROTO_SignData [17:42:58]wFMCommunicate request_size=4 [17:42:58]MH_SAM_APDU [17:42:58]CAPDU: 80 0D 01 02 [17:42:58]Write to MH i2c: E2 08 00 A2 05 80 0D 01 02 00 00 00 00 20 [17:42:58]Write i2c OK [17:42:58]MH_I2C_Read... [17:42:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:42:58]Read from MH i2c: E2 [17:42:58]MH_I2C_Read... [17:42:58]Read from MH i2c: E2 03 00 [17:42:58]MH_I2C_Read... [17:42:58]Read from MH i2c: E2 03 00 A2 05 00 90 00 1B [17:42:58]RAPDU: 90 00 [17:42:58]wFMCommunicate OK [17:42:58]wFMCommunicate request_size=255 [17:42:58]MH_SAM_APDU [17:42: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 CB 00 00 00 F4 03 04 00 21 41 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 [17:42:58]Write to MH i2c: E2 02 01 A3 05 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 CB 00 00 00 F4 03 04 00 21 41 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 00 05 [17:42:58]Write i2c OK [17:42:58]MH_I2C_Read... [17:42:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:42:58]Read from MH i2c: E2 [17:42:58]MH_I2C_Read... [17:42:58]Read from MH i2c: E2 03 00 [17:42:58]MH_I2C_Read... [17:42:58]Read from MH i2c: E2 03 00 A3 05 00 90 00 1C [17:42:58]RAPDU: 90 00 [17:42:58]wFMCommunicate OK [17:42:58]wFMCommunicate request_size=16 [17:42:58]MH_SAM_APDU [17:42:58]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 9A A5 FE EC CB B0 [17:42:58]Write to MH i2c: E2 13 00 A4 05 80 0D 02 02 0B 00 00 35 04 06 00 9A A5 FE EC CB B0 00 00 1C [17:42:58]Write i2c OK [17:42:58]MH_I2C_Read... [17:42:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:42:58]Read from MH i2c: E2 [17:42:58]MH_I2C_Read... [17:42:58]Read from MH i2c: E2 03 00 [17:42:58]MH_I2C_Read... [17:42:58]Read from MH i2c: E2 03 00 A4 05 00 90 00 1D [17:42:58]RAPDU: 90 00 [17:42:58]wFMCommunicate OK [17:42:58]wFMCommunicate request_size=4 [17:42:58]MH_SAM_APDU [17:42:58]CAPDU: 80 0D 03 02 [17:42:58]Write to MH i2c: E2 08 00 A5 05 80 0D 03 02 00 00 00 00 25 [17:42:58]Write i2c OK [17:42:58]MH_I2C_Read... [17:42:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:42:58]Read from MH i2c: E2 [17:42:58]MH_I2C_Read... [17:42:58]Read from MH i2c: E2 0B 00 [17:42:58]MH_I2C_Read... [17:42:58]Read from MH i2c: E2 0B 00 A5 05 00 10 08 21 3A 4D D0 A8 F2 90 00 50 [17:42:58]RAPDU: 10 08 21 3A 4D D0 A8 F2 90 00 [17:42:58]wFMCommunicate OK [17:42:58]SAM_PROTO_SignData done [17:42:58]FM_MakeSignedData done [17:42:58]CreateOFDProtocolMessage [17:42:58]wFMCommunicate request_size=4 [17:42:58]MH_SAM_APDU [17:42:58]CAPDU: 80 11 00 00 [17:42:58]Write to MH i2c: E2 08 00 A6 05 80 11 00 00 00 00 00 00 25 [17:42:58]Write i2c OK [17:42:58]MH_I2C_Read... [17:42:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:42:59]Read from MH i2c: E2 [17:42:59]MH_I2C_Read... [17:42:59]Read from MH i2c: E2 17 00 [17:42:59]MH_I2C_Read... [17:42:59]Read from MH i2c: E2 17 00 A6 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 73 [17:42: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:42:59]wFMCommunicate OK [17:42:59]CreateOFDProtocolMessage done [17:42:59]OFDSenderStorePacket 30421 [17:42:59]StoreOFDPacket docnum=30421 [17:42: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 E5 6A 0D 01 2C 17 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 CB 00 00 00 F4 03 04 00 21 41 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 9A A5 FE EC CB B0 10 08 21 3A 4D D0 A8 F2 [17:42:59]CheckFolder [17:42:59]dirname=/storage/ofd_packets [17:42:59]CheckFolder done [17:42:59]ProducePacketName [17:42:59]name=ofd_packets/00030421 [17:42:59]NVStorageSaveData ofd_packets/00030421 [17:42:59]File name is /storage/ofd_packets/00030421 [17:42:59]Write 307 bytes [17:42:59]NVStorageSaveData done [17:42:59]OFDSenderStorePacket done [17:42:59]KKMCreateOFDPacket done [17:42:59]NVStorageSaveData kkm_last_timestamp [17:42:59]File name is /storage/kkm_last_timestamp [17:42:59]Write 4 bytes [17:42:59]NVStorageSaveData done [17:42:59]ExternCall_PrintAddStr [17:42:59]wPrintStart [17:42:59]Write to MH i2c: 01 00 00 A7 05 AC [17:42:59]Write i2c OK [17:42:59]MH_I2C_Read... [17:42:59]Read from MH i2c: 01 [17:42:59]MH_I2C_Read... [17:42:59]Read from MH i2c: 01 07 00 [17:42:59]MH_I2C_Read... [17:42:59]Read from MH i2c: 01 07 00 A7 05 00 00 00 00 00 FF 0F C1 [17:42:59]RasterBufferAndPrint [17:42:59]line Счет N : (1)342821 [17:42:59]line ИНН: 02508201610067 [17:42:59]line Контрольно-Кассовый Чек [17:42:59]line ПРОДАЖА [17:42:59]line ТРК (МРК, ГНК) : 61 [17:42:59]line Товар: 2710194210 [17:42:59]line D-ENERGY Дт-К-2 [17:42:59]line 51.820 * 77.20 [17:42:59]line = 4000.50 [17:42:59]line НДС 12% НСП 1% [17:42:59]line > о реализуемом товаре [17:42:59]line ОКРУГЛЕНИЕ: -0.50 [17:42:59]line ИТОГО: 4000.00 [17:42:59]line Внесено: 4000.00 [17:42:59]line СДАЧА: 0.00 [17:42:59]line НСП 1% : 35.40 [17:42:59]line НДС 12% : 424.83 [17:42:59]line Наличными: 4000.00 [17:42:59]line Безнал.: 0.00 [17:42:59]line Место: АЗС № 78 "Партнер Нефть" [17:42:59]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [17:42:59]line СНО: Общий режим [17:42:59]line Чек 203 20.10.2024 17:42 [17:42:59]line Смена: 114 ФФД: 1.0 [17:42:59]line ЗНМ: 0300000137 [17:42:59]line РНМ: 0000000000186857 [17:42:59]line Версия ККМ: v1.0 [17:42:59]line ФМ: 0000000002094219 [17:42:59]line ФД: 30421 [17:42:59]line ФПД: 170037737212848 [17:42:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T174257&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30421&fm=170037737212848&tin=02508201610067®Number=0000000000186857&sum=400000 [17:42:59]OFD Sender: Processing packet 30421 [packets to send 10, broken 9] [17:42:59]ProducePacketName [17:42:59]name=ofd_packets/00030421 [17:42:59]OFD Sender: To server: pG, [17:42:59]CommunicateWithHost lk.salyk.kg:30040 [17:42:59]ConnectInit lk.salyk.kg [17:42:59]written 0, free lines is 4095 [17:42:59]Connected sock=10 [17:42: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 E5 6A 0D 01 2C 17 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 CB 00 00 00 F4 03 04 00 21 41 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 9A A5 FE EC CB B0 10 08 21 3A 4D D0 A8 F2 [17:42: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 92 6E 47 00 CF 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 D5 76 00 00 F4 03 04 00 A4 EB 14 67 B6 04 01 00 00 08 B0 F8 0D B2 48 1E C3 [17:42:59]CommunicateWithHost err = 0 [17:42:59]CheckOFDResponse [17:42:59]1017 (14) - 77093643461234 [17:42:59]1041 (16) - 0000000002094219 [17:42:59]1040 (4) - 30421 [17:42:59]1012 (4) - 20.10.2024 11:38 [17:42:59]1206 (1) - 0 [17:42:59]OFD Sender: Remove packet 30421 [17:42:59]ProducePacketName [17:42:59]name=ofd_packets/00030421 [17:42:59]NVStorageDeleteData [17:42:59]Write to MH i2c: 01 00 00 D2 05 D7 [17:42:59]Write i2c OK [17:42:59]MH_I2C_Read... [17:42:59]Read from MH i2c: 01 [17:42:59]MH_I2C_Read... [17:42:59]Read from MH i2c: 01 07 00 [17:42:59]MH_I2C_Read... [17:42:59]Read from MH i2c: 01 07 00 D2 05 00 00 00 00 00 F9 0C E3 [17:42:59]RasterBufferAndPrint [17:42:59]line [17:42:59]line [17:42:59]line [17:42:59]line [17:42:59]line [17:42:59]written 0, free lines is 3328 [17:42:59]MH_Cut [17:42:59]Write to MH i2c: D1 01 00 D9 05 01 B0 [17:42:59]Write i2c OK [17:42:59]MH_I2C_Read... [17:42:59]Read from MH i2c: D1 [17:42:59]MH_I2C_Read... [17:42:59]Read from MH i2c: D1 01 00 [17:42:59]MH_I2C_Read... [17:42:59]Read from MH i2c: D1 01 00 D9 05 00 AF [17:42:59]Write to MH i2c: 01 00 00 DA 05 DF [17:42:59]Write i2c OK [17:42:59]MH_I2C_Read... [17:43:00]OFD Sender: No OFD packet to send [17:43:00]*** Cut start [17:43:00]*** Partial cut [17:43:00]*** CUTSNS_PIN = 1 [17:43:00]*** CUTSNS_PIN = 0 [17:43:00]*** Brake cut motor [17:43:01]Read from MH i2c: 01 [17:43:01]MH_I2C_Read... [17:43:01]*** Stop cut motor [17:43:01]*** Cut end [17:43:01]Read from MH i2c: 01 07 00 [17:43:01]MH_I2C_Read... [17:43:01]Read from MH i2c: 01 07 00 DA 05 00 00 00 00 00 FF 0F F4 [17:43:01]process_action close_receipt done [17:43:01]requested_data is exist [17:43:01]produce_requested_data [17:43:01]requested_item fm.sn is exist - process it [17:43:01]wFMCommunicate request_size=4 [17:43:01]MH_SAM_APDU [17:43:01]CAPDU: 80 11 00 00 [17:43:01]Write to MH i2c: E2 08 00 DB 05 80 11 00 00 00 00 00 00 5A [17:43:01]Write i2c OK [17:43:01]MH_I2C_Read... [17:43:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:43:01]Read from MH i2c: E2 [17:43:01]MH_I2C_Read... [17:43:01]Read from MH i2c: E2 17 00 [17:43:01]MH_I2C_Read... [17:43:01]Read from MH i2c: E2 17 00 DB 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 A8 [17:43: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:43:01]wFMCommunicate OK [17:43:01]requested_item fd.num is exist - process it [17:43:01]SAM_PROTO_GetFieldsCounters [17:43:01]wFMCommunicate request_size=4 [17:43:01]MH_SAM_APDU [17:43:01]CAPDU: 80 13 00 00 [17:43:01]Write to MH i2c: E2 08 00 DC 05 80 13 00 00 00 00 00 00 5D [17:43:01]Write i2c OK [17:43:01]MH_I2C_Read... [17:43:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:43:01]Read from MH i2c: E2 [17:43:01]MH_I2C_Read... [17:43:01]Read from MH i2c: E2 62 00 [17:43:01]MH_I2C_Read... [17:43:01]Read from MH i2c: E2 62 00 DC 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 A1 [17:43: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 D5 76 00 00 0E 04 04 00 72 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 [17:43:01]wFMCommunicate OK [17:43:01]SAM_PROTO_GetFieldsCounters done [17:43:01]requested_item shift.num is exist - process it [17:43:01]requested_item shift.opened is exist - process it [17:43:01]req_shift_opened [17:43:01]FM_GetShiftState [17:43:01]SAM_PROTO_GetShiftState [17:43:01]wFMCommunicate request_size=4 [17:43:01]MH_SAM_APDU [17:43:01]CAPDU: 80 13 01 00 [17:43:01]Write to MH i2c: E2 08 00 DD 05 80 13 01 00 00 00 00 00 5F [17:43:01]Write i2c OK [17:43:01]MH_I2C_Read... [17:43:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:43:01]Read from MH i2c: E2 [17:43:01]MH_I2C_Read... [17:43:01]Read from MH i2c: E2 0E 00 [17:43:01]MH_I2C_Read... [17:43:01]Read from MH i2c: E2 0E 00 DD 05 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 45 [17:43:01]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [17:43:01]wFMCommunicate OK [17:43:01]SAM_PROTO_GetShiftState done [17:43:01]FM_GetShiftState done [17:43:01]req_shift_opened done [17:43:01]requested_item shift.open_date is exist - process it [17:43:01]req_shift_open_date [17:43:01]req_shift_open_date done [17:43:01]produce_requested_data done [17:43:01]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30421,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [17:43:01]process_action_free close_receipt [17:43:01]json_value_free [17:43:01]json_value_free done [17:43:01]process_json_proto returns [17:43:01]Send response to host [17:43:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30421,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [17:43:01]free response buf [17:43:01]execute_script done [17:43:01]execute_script returns [17:43:01]free content buf [17:43:01]Sock 7.Close socket [17:43:01]Sock 7.Thread stoped [17:43:05]OFD Sender: No OFD packet to send [17:43:10]OFD Sender: No OFD packet to send [17:43:15]OFD Sender: No OFD packet to send [17:43:20]OFD Sender: No OFD packet to send [17:43:25]OFD Sender: No OFD packet to send [17:43:30]OFD Sender: No OFD packet to send [17:43:35]OFD Sender: No OFD packet to send [17:43:40]OFD Sender: No OFD packet to send [17:43:45]OFD Sender: No OFD packet to send [17:43:50]OFD Sender: No OFD packet to send [17:43:55]OFD Sender: No OFD packet to send [17:44:00]OFD Sender: No OFD packet to send [17:44:05]OFD Sender: No OFD packet to send [17:44:10]OFD Sender: No OFD packet to send [17:44:15]OFD Sender: No OFD packet to send [17:44:20]OFD Sender: No OFD packet to send [17:44:25]OFD Sender: No OFD packet to send [17:44:30]OFD Sender: No OFD packet to send [17:44:35]OFD Sender: No OFD packet to send [17:44:40]OFD Sender: No OFD packet to send [17:44:45]OFD Sender: No OFD packet to send [17:44:50]OFD Sender: No OFD packet to send [17:44:55]OFD Sender: No OFD packet to send [17:45:00]OFD Sender: No OFD packet to send [17:45:05]OFD Sender: No OFD packet to send [17:45:10]OFD Sender: No OFD packet to send [17:45:15]OFD Sender: No OFD packet to send [17:45:20]OFD Sender: No OFD packet to send [17:45:25]OFD Sender: No OFD packet to send [17:45:30]OFD Sender: No OFD packet to send [17:45:35]OFD Sender: No OFD packet to send [17:45:40]OFD Sender: No OFD packet to send [17:45:45]OFD Sender: No OFD packet to send [17:45:50]OFD Sender: No OFD packet to send [17:45:55]OFD Sender: No OFD packet to send [17:46:00]OFD Sender: No OFD packet to send [17:46:05]OFD Sender: No OFD packet to send [17:46:10]OFD Sender: No OFD packet to send [17:46:15]OFD Sender: No OFD packet to send [17:46:20]OFD Sender: No OFD packet to send [17:46:25]OFD Sender: No OFD packet to send [17:46:30]OFD Sender: No OFD packet to send [17:46:35]OFD Sender: No OFD packet to send [17:46:40]OFD Sender: No OFD packet to send [17:46:45]OFD Sender: No OFD packet to send [17:46:50]OFD Sender: No OFD packet to send [17:46:55]OFD Sender: No OFD packet to send [17:47:00]OFD Sender: No OFD packet to send [17:47:05]OFD Sender: No OFD packet to send [17:47:09]accept exits with 9 [17:47:09]New connection [17:47:09]New thread 3067489636 created [17:47:09]Thread 3067346276 joined [17:47:09]Waiting for new connection... [17:47:09] Sock 9.Parse request [17:47:09]Sock 9.Check first char [17:47:09]Sock 9.First char is OK [17:47:09]request: POST /json_proto HTTP/1.0 [17:47:09]Method: POST [17:47:09]URL: /json_proto [17:47:09]Method is POST - this is cgi request [17:47:09]url: /json_proto [17:47:09]query_string will be loaded in cgi processing [17:47:09]execute_cgi json_proto POST (null) [17:47:09]execute_cgi path=json_proto method=POST [17:47:09]POST find Content-Length [17:47:09]Host: 172.17.51.3:8080 [17:47:09]Content-Length: 682 [17:47:09]Content-Type: application/json [17:47:09] [17:47:09]POST finish read [17:47:09]Found Content-Length = 682 [17:47:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342823", "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" : 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" ] } } [17:47:09]execute_script... [17:47: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)342823", "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" : 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" ] } } [17:47:09]POST & json_proto [17:47:09]process_json_proto [17:47:09]json parsed OK: [17:47:09]protocol is kg_v1.0 [17:47:09]action value=close_receipt [17:47:09]process_action close_receipt [17:47:09]cmd_close_receipt [17:47:09]MH_GetDate [17:47:09]Write to MH i2c: F0 00 00 DE 05 D2 [17:47:09]Write i2c OK [17:47:09]MH_I2C_Read... [17:47:09]Read from MH i2c: F0 [17:47:09]MH_I2C_Read... [17:47:09]Read from MH i2c: F0 09 00 [17:47:09]MH_I2C_Read... [17:47:09]Read from MH i2c: F0 09 00 DE 05 00 1D 42 15 67 04 C1 95 66 76 [17:47:09]GetLastDocTimeStamp 1729446177 [17:47:09]current date 1729446429 [17:47:09]FM_GetShiftState [17:47:09]SAM_PROTO_GetShiftState [17:47:09]wFMCommunicate request_size=4 [17:47:09]MH_SAM_APDU [17:47:09]CAPDU: 80 13 01 00 [17:47:09]Write to MH i2c: E2 08 00 DF 05 80 13 01 00 00 00 00 00 61 [17:47:09]Write i2c OK [17:47:09]MH_I2C_Read... [17:47:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:47:09]Read from MH i2c: E2 [17:47:09]MH_I2C_Read... [17:47:09]Read from MH i2c: E2 0E 00 [17:47:09]MH_I2C_Read... [17:47:09]Read from MH i2c: E2 0E 00 DF 05 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 47 [17:47:09]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [17:47:09]wFMCommunicate OK [17:47:09]SAM_PROTO_GetShiftState done [17:47:09]FM_GetShiftState done [17:47:09]opened in 1729384718 [17:47:09]opened+sec_in_day 1729471118 [17:47:09]quantity*price = 300064 [17:47:09]sum+1 = 300066 [17:47:09]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 СНО: Общий режим Чек 204 20.10.2024 17:47 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30422 ФПД: 135260452752974 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T174709&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30422&fm=135260452752974&tin=02508201610067®Number=0000000000186857&sum=300000 [17:47:10]StoreToDocumentArchive [17:47:10]shift 114 fd 30422 [17:47:10]save to /storage/0114/doc_00030422 [17:47:10]save last doc name /storage/0114/doc_00030422 to /storage/kkm_last_doc_name [17:47:10]save OK [17:47:10]Clear old archive folders... [17:47:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:47:10]tlvbuf is 01D971E0 [17:47:10]SAM_PROTO_ClearQueue [17:47:10]wFMCommunicate request_size=4 [17:47:10]MH_SAM_APDU [17:47:10]CAPDU: 80 09 00 00 [17:47:10]Write to MH i2c: E2 08 00 EC 05 80 09 00 00 00 00 00 00 63 [17:47:10]Write i2c OK [17:47:10]MH_I2C_Read... [17:47:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:47:10]Read from MH i2c: E2 [17:47:10]MH_I2C_Read... [17:47:10]Read from MH i2c: E2 03 00 [17:47:10]MH_I2C_Read... [17:47:10]Read from MH i2c: E2 03 00 EC 05 00 90 00 65 [17:47:10]RAPDU: 90 00 [17:47:10]wFMCommunicate OK [17:47:10]SAM_PROTO_ClearQueue done [17:47:10]KKMCreateOFDPacket [17:47:10]OFDProtocolAddRootSTLVToBuf [17:47:10]FM_MakeSignedData [17:47:10]FM_MakeSignedData [17:47:10]SAM_PROTO_SignData [17:47:10]wFMCommunicate request_size=4 [17:47:10]MH_SAM_APDU [17:47:10]CAPDU: 80 0D 01 02 [17:47:10]Write to MH i2c: E2 08 00 ED 05 80 0D 01 02 00 00 00 00 6B [17:47:10]Write i2c OK [17:47:10]MH_I2C_Read... [17:47:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:47:10]Read from MH i2c: E2 [17:47:10]MH_I2C_Read... [17:47:10]Read from MH i2c: E2 03 00 [17:47:10]MH_I2C_Read... [17:47:10]Read from MH i2c: E2 03 00 ED 05 00 90 00 66 [17:47:10]RAPDU: 90 00 [17:47:10]wFMCommunicate OK [17:47:10]wFMCommunicate request_size=255 [17:47:10]MH_SAM_APDU [17:47:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 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 CC 00 00 00 F4 03 04 00 1D 42 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 7B [17:47:10]Write to MH i2c: E2 02 01 EE 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 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 CC 00 00 00 F4 03 04 00 1D 42 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 7B 00 00 0E [17:47:10]Write i2c OK [17:47:10]MH_I2C_Read... [17:47:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:47:10]Read from MH i2c: E2 [17:47:10]MH_I2C_Read... [17:47:10]Read from MH i2c: E2 03 00 [17:47:10]MH_I2C_Read... [17:47:10]Read from MH i2c: E2 03 00 EE 05 00 90 00 67 [17:47:10]RAPDU: 90 00 [17:47:10]wFMCommunicate OK [17:47:10]wFMCommunicate request_size=10 [17:47:10]MH_SAM_APDU [17:47:10]CAPDU: 80 0D 02 02 05 04 C7 3D 0E 4E [17:47:10]Write to MH i2c: E2 0D 00 EF 05 80 0D 02 02 05 00 04 C7 3D 0E 4E 00 00 DC [17:47:10]Write i2c OK [17:47:10]MH_I2C_Read... [17:47:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:47:10]Read from MH i2c: E2 [17:47:10]MH_I2C_Read... [17:47:10]Read from MH i2c: E2 03 00 [17:47:10]MH_I2C_Read... [17:47:10]Read from MH i2c: E2 03 00 EF 05 00 90 00 68 [17:47:10]RAPDU: 90 00 [17:47:10]wFMCommunicate OK [17:47:10]wFMCommunicate request_size=4 [17:47:10]MH_SAM_APDU [17:47:10]CAPDU: 80 0D 03 02 [17:47:10]Write to MH i2c: E2 08 00 F0 05 80 0D 03 02 00 00 00 00 70 [17:47:10]Write i2c OK [17:47:10]MH_I2C_Read... [17:47:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:47:10]Read from MH i2c: E2 [17:47:10]MH_I2C_Read... [17:47:10]Read from MH i2c: E2 0B 00 [17:47:10]MH_I2C_Read... [17:47:10]Read from MH i2c: E2 0B 00 F0 05 00 AF C9 9E D5 EE 1F 4B 8F 90 00 43 [17:47:10]RAPDU: AF C9 9E D5 EE 1F 4B 8F 90 00 [17:47:10]wFMCommunicate OK [17:47:10]SAM_PROTO_SignData done [17:47:10]FM_MakeSignedData done [17:47:10]CreateOFDProtocolMessage [17:47:10]wFMCommunicate request_size=4 [17:47:10]MH_SAM_APDU [17:47:10]CAPDU: 80 11 00 00 [17:47:10]Write to MH i2c: E2 08 00 F1 05 80 11 00 00 00 00 00 00 70 [17:47:10]Write i2c OK [17:47:10]MH_I2C_Read... [17:47:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:47:10]Read from MH i2c: E2 [17:47:10]MH_I2C_Read... [17:47:10]Read from MH i2c: E2 17 00 [17:47:10]MH_I2C_Read... [17:47:10]Read from MH i2c: E2 17 00 F1 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 BE [17:47: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:47:10]wFMCommunicate OK [17:47:10]CreateOFDProtocolMessage done [17:47:10]OFDSenderStorePacket 30422 [17:47:10]StoreOFDPacket docnum=30422 [17:47: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 F9 A0 07 01 3F 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 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 CC 00 00 00 F4 03 04 00 1D 42 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 7B 04 C7 3D 0E 4E AF C9 9E D5 EE 1F 4B 8F [17:47:10]CheckFolder [17:47:10]dirname=/storage/ofd_packets [17:47:10]CheckFolder done [17:47:10]ProducePacketName [17:47:10]name=ofd_packets/00030422 [17:47:10]NVStorageSaveData ofd_packets/00030422 [17:47:10]File name is /storage/ofd_packets/00030422 [17:47:10]Write 301 bytes [17:47:10]NVStorageSaveData done [17:47:10]OFDSenderStorePacket done [17:47:10]KKMCreateOFDPacket done [17:47:10]NVStorageSaveData kkm_last_timestamp [17:47:10]File name is /storage/kkm_last_timestamp [17:47:10]Write 4 bytes [17:47:10]NVStorageSaveData done [17:47:10]ExternCall_PrintAddStr [17:47:10]wPrintStart [17:47:10]Write to MH i2c: 01 00 00 F2 05 F7 [17:47:10]Write i2c OK [17:47:10]MH_I2C_Read... [17:47:10]Read from MH i2c: 01 [17:47:10]MH_I2C_Read... [17:47:10]Read from MH i2c: 01 07 00 [17:47:10]MH_I2C_Read... [17:47:10]Read from MH i2c: 01 07 00 F2 05 00 00 00 00 00 FF 0F 0C [17:47:10]RasterBufferAndPrint [17:47:10]line Счет N : (1)342823 [17:47:10]line ИНН: 02508201610067 [17:47:10]line Контрольно-Кассовый Чек [17:47:10]line ПРОДАЖА [17:47:10]line ТРК (МРК, ГНК) : 62 [17:47:10]line Товар: 2710124500 [17:47:10]line Аи-95-К-3 [17:47:10]line 40.440 * 74.20 [17:47:10]line = 3000.65 [17:47:10]line НДС 12% НСП 1% [17:47:10]line > о реализуемом товаре [17:47:10]line ОКРУГЛЕНИЕ: -0.65 [17:47:10]line ИТОГО: 3000.00 [17:47:10]line Внесено: 3000.00 [17:47:10]line СДАЧА: 0.00 [17:47:10]line НСП 1% : 26.55 [17:47:10]line НДС 12% : 318.65 [17:47:10]line Наличными: 3000.00 [17:47:10]line Безнал.: 0.00 [17:47:10]line Место: АЗС № 78 "Партнер Нефть" [17:47:10]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [17:47:10]line СНО: Общий режим [17:47:10]line Чек 204 20.10.2024 17:47 [17:47:10]line Смена: 114 ФФД: 1.0 [17:47:10]line ЗНМ: 0300000137 [17:47:10]line РНМ: 0000000000186857 [17:47:10]line Версия ККМ: v1.0 [17:47:10]line ФМ: 0000000002094219 [17:47:11]line ФД: 30422 [17:47:11]line ФПД: 135260452752974 [17:47:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T174709&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30422&fm=135260452752974&tin=02508201610067®Number=0000000000186857&sum=300000 [17:47:11]OFD Sender: Processing packet 30422 [packets to send 10, broken 9] [17:47:11]ProducePacketName [17:47:11]name=ofd_packets/00030422 [17:47:11]OFD Sender: To server: pG, [17:47:11]CommunicateWithHost lk.salyk.kg:30040 [17:47:11]ConnectInit lk.salyk.kg [17:47:11]written 0, free lines is 4095 [17:47:11]Connected sock=10 [17:47: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 F9 A0 07 01 3F 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 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 CC 00 00 00 F4 03 04 00 1D 42 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 7B 04 C7 3D 0E 4E AF C9 9E D5 EE 1F 4B 8F [17:47: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 47 56 47 00 D1 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 D6 76 00 00 F4 03 04 00 A0 EC 14 67 B6 04 01 00 00 F6 5A 7A BD 74 F6 E0 91 [17:47:11]CommunicateWithHost err = 0 [17:47:11]CheckOFDResponse [17:47:11]1017 (14) - 77093643461234 [17:47:11]1041 (16) - 0000000002094219 [17:47:11]1040 (4) - 30422 [17:47:11]1012 (4) - 20.10.2024 11:42 [17:47:11]1206 (1) - 0 [17:47:11]OFD Sender: Remove packet 30422 [17:47:11]ProducePacketName [17:47:11]name=ofd_packets/00030422 [17:47:11]NVStorageDeleteData [17:47:11]Write to MH i2c: 01 00 00 1D 06 23 [17:47:11]Write i2c OK [17:47:11]MH_I2C_Read... [17:47:11]Read from MH i2c: 01 [17:47:11]MH_I2C_Read... [17:47:11]Read from MH i2c: 01 07 00 [17:47:11]MH_I2C_Read... [17:47:11]Read from MH i2c: 01 07 00 1D 06 00 00 00 00 00 F6 0C 2C [17:47:11]RasterBufferAndPrint [17:47:11]line [17:47:11]line [17:47:11]line [17:47:11]line [17:47:11]line [17:47:11]written 0, free lines is 3324 [17:47:11]MH_Cut [17:47:11]Write to MH i2c: D1 01 00 24 06 01 FC [17:47:11]Write i2c OK [17:47:11]MH_I2C_Read... [17:47:11]Read from MH i2c: D1 [17:47:11]MH_I2C_Read... [17:47:11]Read from MH i2c: D1 01 00 [17:47:11]MH_I2C_Read... [17:47:11]Read from MH i2c: D1 01 00 24 06 00 FB [17:47:11]Write to MH i2c: 01 00 00 25 06 2B [17:47:11]Write i2c OK [17:47:11]MH_I2C_Read... [17:47:12]OFD Sender: No OFD packet to send [17:47:12]*** Cut start [17:47:12]*** Partial cut [17:47:12]*** CUTSNS_PIN = 1 [17:47:12]*** CUTSNS_PIN = 0 [17:47:12]*** Brake cut motor [17:47:13]Read from MH i2c: 01 [17:47:13]MH_I2C_Read... [17:47:13]*** Stop cut motor [17:47:13]*** Cut end [17:47:13]Read from MH i2c: 01 07 00 [17:47:13]MH_I2C_Read... [17:47:13]Read from MH i2c: 01 07 00 25 06 00 00 00 00 00 FF 0F 40 [17:47:13]process_action close_receipt done [17:47:13]requested_data is exist [17:47:13]produce_requested_data [17:47:13]requested_item fm.sn is exist - process it [17:47:13]wFMCommunicate request_size=4 [17:47:13]MH_SAM_APDU [17:47:13]CAPDU: 80 11 00 00 [17:47:13]Write to MH i2c: E2 08 00 26 06 80 11 00 00 00 00 00 00 A6 [17:47:13]Write i2c OK [17:47:13]MH_I2C_Read... [17:47:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:47:13]Read from MH i2c: E2 [17:47:13]MH_I2C_Read... [17:47:13]Read from MH i2c: E2 17 00 [17:47:13]MH_I2C_Read... [17:47:13]Read from MH i2c: E2 17 00 26 06 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:47: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:47:13]wFMCommunicate OK [17:47:13]requested_item fd.num is exist - process it [17:47:13]SAM_PROTO_GetFieldsCounters [17:47:13]wFMCommunicate request_size=4 [17:47:13]MH_SAM_APDU [17:47:13]CAPDU: 80 13 00 00 [17:47:13]Write to MH i2c: E2 08 00 27 06 80 13 00 00 00 00 00 00 A9 [17:47:13]Write i2c OK [17:47:13]MH_I2C_Read... [17:47:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:47:13]Read from MH i2c: E2 [17:47:13]MH_I2C_Read... [17:47:13]Read from MH i2c: E2 62 00 [17:47:13]MH_I2C_Read... [17:47:13]Read from MH i2c: E2 62 00 27 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 F1 [17:47: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 D6 76 00 00 0E 04 04 00 72 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 [17:47:13]wFMCommunicate OK [17:47:13]SAM_PROTO_GetFieldsCounters done [17:47:13]requested_item shift.num is exist - process it [17:47:13]requested_item shift.opened is exist - process it [17:47:13]req_shift_opened [17:47:13]FM_GetShiftState [17:47:13]SAM_PROTO_GetShiftState [17:47:13]wFMCommunicate request_size=4 [17:47:13]MH_SAM_APDU [17:47:13]CAPDU: 80 13 01 00 [17:47:13]Write to MH i2c: E2 08 00 28 06 80 13 01 00 00 00 00 00 AB [17:47:13]Write i2c OK [17:47:13]MH_I2C_Read... [17:47:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:47:13]Read from MH i2c: E2 [17:47:13]MH_I2C_Read... [17:47:13]Read from MH i2c: E2 0E 00 [17:47:13]MH_I2C_Read... [17:47:13]Read from MH i2c: E2 0E 00 28 06 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 91 [17:47:13]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [17:47:13]wFMCommunicate OK [17:47:13]SAM_PROTO_GetShiftState done [17:47:13]FM_GetShiftState done [17:47:13]req_shift_opened done [17:47:13]requested_item shift.open_date is exist - process it [17:47:13]req_shift_open_date [17:47:13]req_shift_open_date done [17:47:13]produce_requested_data done [17:47:13]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30422,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [17:47:13]process_action_free close_receipt [17:47:13]json_value_free [17:47:13]json_value_free done [17:47:13]process_json_proto returns [17:47:13]Send response to host [17:47:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30422,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [17:47:13]free response buf [17:47:13]execute_script done [17:47:13]execute_script returns [17:47:13]free content buf [17:47:13]Sock 9.Close socket [17:47:13]Sock 9.Thread stoped [17:47:17]OFD Sender: No OFD packet to send [17:47:22]OFD Sender: No OFD packet to send [17:47:27]OFD Sender: No OFD packet to send [17:47:32]OFD Sender: No OFD packet to send [17:47:37]OFD Sender: No OFD packet to send [17:47:42]OFD Sender: No OFD packet to send [17:47:47]OFD Sender: No OFD packet to send [17:47:52]OFD Sender: No OFD packet to send [17:47:57]OFD Sender: No OFD packet to send [17:48:02]OFD Sender: No OFD packet to send [17:48:07]OFD Sender: No OFD packet to send [17:48:12]OFD Sender: No OFD packet to send [17:48:17]OFD Sender: No OFD packet to send [17:48:22]OFD Sender: No OFD packet to send [17:48:27]OFD Sender: No OFD packet to send [17:48:32]OFD Sender: No OFD packet to send [17:48:33]accept exits with 7 [17:48:33]New connection [17:48:33]New thread 3067346276 created [17:48:33]Thread 3067489636 joined [17:48:33]Waiting for new connection... [17:48:33] Sock 7.Parse request [17:48:33]Sock 7.Check first char [17:48:33]Sock 7.First char is OK [17:48:33]request: POST /json_proto HTTP/1.0 [17:48:33]Method: POST [17:48:33]URL: /json_proto [17:48:33]Method is POST - this is cgi request [17:48:33]url: /json_proto [17:48:33]query_string will be loaded in cgi processing [17:48:33]execute_cgi json_proto POST (null) [17:48:33]execute_cgi path=json_proto method=POST [17:48:33]POST find Content-Length [17:48:33]Host: 172.17.51.3:8080 [17:48:33]Content-Length: 683 [17:48:33]Content-Type: application/json [17:48:33] [17:48:33]POST finish read [17:48:33]Found Content-Length = 683 [17:48:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342824", "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" ] } } [17:48:33]execute_script... [17:48: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)342824", "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" ] } } [17:48:33]POST & json_proto [17:48:33]process_json_proto [17:48:33]json parsed OK: [17:48:33]protocol is kg_v1.0 [17:48:33]action value=close_receipt [17:48:33]process_action close_receipt [17:48:33]cmd_close_receipt [17:48:33]MH_GetDate [17:48:33]Write to MH i2c: F0 00 00 29 06 1E [17:48:33]Write i2c OK [17:48:33]MH_I2C_Read... [17:48:33]Read from MH i2c: F0 [17:48:33]MH_I2C_Read... [17:48:33]Read from MH i2c: F0 09 00 [17:48:33]MH_I2C_Read... [17:48:33]Read from MH i2c: F0 09 00 29 06 00 71 42 15 67 04 C1 95 66 16 [17:48:33]GetLastDocTimeStamp 1729446429 [17:48:33]current date 1729446513 [17:48:33]FM_GetShiftState [17:48:33]SAM_PROTO_GetShiftState [17:48:33]wFMCommunicate request_size=4 [17:48:33]MH_SAM_APDU [17:48:33]CAPDU: 80 13 01 00 [17:48:33]Write to MH i2c: E2 08 00 2A 06 80 13 01 00 00 00 00 00 AD [17:48:33]Write i2c OK [17:48:33]MH_I2C_Read... [17:48:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:48:33]Read from MH i2c: E2 [17:48:33]MH_I2C_Read... [17:48:33]Read from MH i2c: E2 0E 00 [17:48:33]MH_I2C_Read... [17:48:33]Read from MH i2c: E2 0E 00 2A 06 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 93 [17:48:33]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [17:48:33]wFMCommunicate OK [17:48:33]SAM_PROTO_GetShiftState done [17:48:33]FM_GetShiftState done [17:48:33]opened in 1729384718 [17:48:33]opened+sec_in_day 1729471118 [17:48:33]quantity*price = 70020 [17:48:33]sum+1 = 70021 [17:48:33]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 СНО: Общий режим Чек 205 20.10.2024 17:48 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30423 ФПД: 161339080878150 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T174833&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30423&fm=161339080878150&tin=02508201610067®Number=0000000000186857&sum=70000 [17:48:34]StoreToDocumentArchive [17:48:34]shift 114 fd 30423 [17:48:34]save to /storage/0114/doc_00030423 [17:48:34]save last doc name /storage/0114/doc_00030423 to /storage/kkm_last_doc_name [17:48:34]save OK [17:48:34]Clear old archive folders... [17:48:34]ProcessDocumentItem done err = 0, tmpTLVsize=257 [17:48:34]tlvbuf is B6F2B990 [17:48:34]SAM_PROTO_ClearQueue [17:48:34]wFMCommunicate request_size=4 [17:48:34]MH_SAM_APDU [17:48:34]CAPDU: 80 09 00 00 [17:48:34]Write to MH i2c: E2 08 00 37 06 80 09 00 00 00 00 00 00 AF [17:48:34]Write i2c OK [17:48:34]MH_I2C_Read... [17:48:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:48:34]Read from MH i2c: E2 [17:48:34]MH_I2C_Read... [17:48:34]Read from MH i2c: E2 03 00 [17:48:34]MH_I2C_Read... [17:48:34]Read from MH i2c: E2 03 00 37 06 00 90 00 B1 [17:48:34]RAPDU: 90 00 [17:48:34]wFMCommunicate OK [17:48:34]SAM_PROTO_ClearQueue done [17:48:34]KKMCreateOFDPacket [17:48:34]OFDProtocolAddRootSTLVToBuf [17:48:34]FM_MakeSignedData [17:48:34]FM_MakeSignedData [17:48:34]SAM_PROTO_SignData [17:48:34]wFMCommunicate request_size=4 [17:48:34]MH_SAM_APDU [17:48:34]CAPDU: 80 0D 01 02 [17:48:34]Write to MH i2c: E2 08 00 38 06 80 0D 01 02 00 00 00 00 B7 [17:48:34]Write i2c OK [17:48:34]MH_I2C_Read... [17:48:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:48:34]Read from MH i2c: E2 [17:48:34]MH_I2C_Read... [17:48:34]Read from MH i2c: E2 03 00 [17:48:34]MH_I2C_Read... [17:48:34]Read from MH i2c: E2 03 00 38 06 00 90 00 B2 [17:48:34]RAPDU: 90 00 [17:48:34]wFMCommunicate OK [17:48:34]wFMCommunicate request_size=255 [17:48:34]MH_SAM_APDU [17:48: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 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 CD 00 00 00 F4 03 04 00 71 42 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 [17:48:34]Write to MH i2c: E2 02 01 39 06 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 CD 00 00 00 F4 03 04 00 71 42 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 00 F2 [17:48:34]Write i2c OK [17:48:34]MH_I2C_Read... [17:48:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:48:35]Read from MH i2c: E2 [17:48:35]MH_I2C_Read... [17:48:35]Read from MH i2c: E2 03 00 [17:48:35]MH_I2C_Read... [17:48:35]Read from MH i2c: E2 03 00 39 06 00 90 00 B3 [17:48:35]RAPDU: 90 00 [17:48:35]wFMCommunicate OK [17:48:35]wFMCommunicate request_size=16 [17:48:35]MH_SAM_APDU [17:48:35]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 92 BC AE 9A A8 46 [17:48:35]Write to MH i2c: E2 13 00 3A 06 80 0D 02 02 0B 00 00 35 04 06 00 92 BC AE 9A A8 46 00 00 93 [17:48:35]Write i2c OK [17:48:35]MH_I2C_Read... [17:48:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:48:35]Read from MH i2c: E2 [17:48:35]MH_I2C_Read... [17:48:35]Read from MH i2c: E2 03 00 [17:48:35]MH_I2C_Read... [17:48:35]Read from MH i2c: E2 03 00 3A 06 00 90 00 B4 [17:48:35]RAPDU: 90 00 [17:48:35]wFMCommunicate OK [17:48:35]wFMCommunicate request_size=4 [17:48:35]MH_SAM_APDU [17:48:35]CAPDU: 80 0D 03 02 [17:48:35]Write to MH i2c: E2 08 00 3B 06 80 0D 03 02 00 00 00 00 BC [17:48:35]Write i2c OK [17:48:35]MH_I2C_Read... [17:48:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:48:35]Read from MH i2c: E2 [17:48:35]MH_I2C_Read... [17:48:35]Read from MH i2c: E2 0B 00 [17:48:35]MH_I2C_Read... [17:48:35]Read from MH i2c: E2 0B 00 3B 06 00 90 FC 21 2C FD 8D B4 00 90 00 D4 [17:48:35]RAPDU: 90 FC 21 2C FD 8D B4 00 90 00 [17:48:35]wFMCommunicate OK [17:48:35]SAM_PROTO_SignData done [17:48:35]FM_MakeSignedData done [17:48:35]CreateOFDProtocolMessage [17:48:35]wFMCommunicate request_size=4 [17:48:35]MH_SAM_APDU [17:48:35]CAPDU: 80 11 00 00 [17:48:35]Write to MH i2c: E2 08 00 3C 06 80 11 00 00 00 00 00 00 BC [17:48:35]Write i2c OK [17:48:35]MH_I2C_Read... [17:48:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:48:35]Read from MH i2c: E2 [17:48:35]MH_I2C_Read... [17:48:35]Read from MH i2c: E2 17 00 [17:48:35]MH_I2C_Read... [17:48:35]Read from MH i2c: E2 17 00 3C 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 0A [17:48:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [17:48:35]wFMCommunicate OK [17:48:35]CreateOFDProtocolMessage done [17:48:35]OFDSenderStorePacket 30423 [17:48:35]StoreOFDPacket docnum=30423 [17:48: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 04 7D 0D 01 B9 AE 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 CD 00 00 00 F4 03 04 00 71 42 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 92 BC AE 9A A8 46 90 FC 21 2C FD 8D B4 00 [17:48:35]CheckFolder [17:48:35]dirname=/storage/ofd_packets [17:48:35]CheckFolder done [17:48:35]ProducePacketName [17:48:35]name=ofd_packets/00030423 [17:48:35]NVStorageSaveData ofd_packets/00030423 [17:48:35]File name is /storage/ofd_packets/00030423 [17:48:35]Write 307 bytes [17:48:35]NVStorageSaveData done [17:48:35]OFDSenderStorePacket done [17:48:35]KKMCreateOFDPacket done [17:48:35]NVStorageSaveData kkm_last_timestamp [17:48:35]File name is /storage/kkm_last_timestamp [17:48:35]Write 4 bytes [17:48:35]NVStorageSaveData done [17:48:35]ExternCall_PrintAddStr [17:48:35]wPrintStart [17:48:35]Write to MH i2c: 01 00 00 3D 06 43 [17:48:35]Write i2c OK [17:48:35]MH_I2C_Read... [17:48:35]Read from MH i2c: 01 [17:48:35]MH_I2C_Read... [17:48:35]Read from MH i2c: 01 07 00 [17:48:35]MH_I2C_Read... [17:48:35]Read from MH i2c: 01 07 00 3D 06 00 00 00 00 00 FF 0F 58 [17:48:35]RasterBufferAndPrint [17:48:35]line Счет N : (1)342824 [17:48:35]line ИНН: 02508201610067 [17:48:35]line Контрольно-Кассовый Чек [17:48:35]line ПРОДАЖА [17:48:35]line ТРК (МРК, ГНК) : 51 [17:48:35]line Товар: 2710194210 [17:48:35]line D-ENERGY Дт-К-2 [17:48:35]line 9.070 * 77.20 [17:48:35]line = 700.20 [17:48:35]line НДС 12% НСП 1% [17:48:35]line > о реализуемом товаре [17:48:35]line ОКРУГЛЕНИЕ: -0.20 [17:48:35]line ИТОГО: 700.00 [17:48:35]line Внесено: 700.00 [17:48:35]line СДАЧА: 0.00 [17:48:35]line НСП 1% : 6.20 [17:48:35]line НДС 12% : 74.36 [17:48:35]line Наличными: 700.00 [17:48:35]line Безнал.: 0.00 [17:48:35]line Место: АЗС № 78 "Партнер Нефть" [17:48:35]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [17:48:35]line СНО: Общий режим [17:48:35]line Чек 205 20.10.2024 17:48 [17:48:35]line Смена: 114 ФФД: 1.0 [17:48:35]line ЗНМ: 0300000137 [17:48:35]line РНМ: 0000000000186857 [17:48:35]line Версия ККМ: v1.0 [17:48:35]line ФМ: 0000000002094219 [17:48:35]line ФД: 30423 [17:48:35]line ФПД: 161339080878150 [17:48:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T174833&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30423&fm=161339080878150&tin=02508201610067®Number=0000000000186857&sum=70000 [17:48:35]OFD Sender: Processing packet 30423 [packets to send 10, broken 9] [17:48:35]ProducePacketName [17:48:35]name=ofd_packets/00030423 [17:48:35]OFD Sender: To server: pG, [17:48:35]CommunicateWithHost lk.salyk.kg:30040 [17:48:35]ConnectInit lk.salyk.kg [17:48:35]written 0, free lines is 4095 [17:48:35]Connected sock=10 [17:48: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 04 7D 0D 01 B9 AE 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 CD 00 00 00 F4 03 04 00 71 42 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 92 BC AE 9A A8 46 90 FC 21 2C FD 8D B4 00 [17:48: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 45 86 47 00 82 78 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 D7 76 00 00 F4 03 04 00 F5 EC 14 67 B6 04 01 00 00 72 03 B6 BE 89 83 3D 2C [17:48:35]CommunicateWithHost err = 0 [17:48:35]CheckOFDResponse [17:48:35]1017 (14) - 77093643461234 [17:48:35]1041 (16) - 0000000002094219 [17:48:35]1040 (4) - 30423 [17:48:35]1012 (4) - 20.10.2024 11:43 [17:48:35]1206 (1) - 0 [17:48:35]OFD Sender: Remove packet 30423 [17:48:35]ProducePacketName [17:48:35]name=ofd_packets/00030423 [17:48:35]NVStorageDeleteData [17:48:35]Write to MH i2c: 01 00 00 68 06 6E [17:48:35]Write i2c OK [17:48:35]MH_I2C_Read... [17:48:35]Read from MH i2c: 01 [17:48:35]MH_I2C_Read... [17:48:35]Read from MH i2c: 01 07 00 [17:48:35]MH_I2C_Read... [17:48:35]Read from MH i2c: 01 07 00 68 06 00 00 00 00 00 EF 0C 70 [17:48:35]RasterBufferAndPrint [17:48:35]line [17:48:35]line [17:48:35]line [17:48:35]line [17:48:35]line [17:48:35]written 0, free lines is 3317 [17:48:36]MH_Cut [17:48:36]Write to MH i2c: D1 01 00 6F 06 01 47 [17:48:36]Write i2c OK [17:48:36]MH_I2C_Read... [17:48:36]Read from MH i2c: D1 [17:48:36]MH_I2C_Read... [17:48:36]Read from MH i2c: D1 01 00 [17:48:36]MH_I2C_Read... [17:48:36]Read from MH i2c: D1 01 00 6F 06 00 46 [17:48:36]Write to MH i2c: 01 00 00 70 06 76 [17:48:36]Write i2c OK [17:48:36]MH_I2C_Read... [17:48:36]OFD Sender: No OFD packet to send [17:48:36]*** Cut start [17:48:36]*** Partial cut [17:48:36]*** CUTSNS_PIN = 1 [17:48:36]*** CUTSNS_PIN = 0 [17:48:36]*** Brake cut motor [17:48:37]Read from MH i2c: 01 [17:48:37]MH_I2C_Read... [17:48:37]*** Stop cut motor [17:48:37]*** Cut end [17:48:37]Read from MH i2c: 01 07 00 [17:48:37]MH_I2C_Read... [17:48:37]Read from MH i2c: 01 07 00 70 06 00 00 00 00 00 FF 0F 8B [17:48:37]process_action close_receipt done [17:48:37]requested_data is exist [17:48:37]produce_requested_data [17:48:37]requested_item fm.sn is exist - process it [17:48:37]wFMCommunicate request_size=4 [17:48:37]MH_SAM_APDU [17:48:37]CAPDU: 80 11 00 00 [17:48:37]Write to MH i2c: E2 08 00 71 06 80 11 00 00 00 00 00 00 F1 [17:48:37]Write i2c OK [17:48:37]MH_I2C_Read... [17:48:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:48:37]Read from MH i2c: E2 [17:48:37]MH_I2C_Read... [17:48:37]Read from MH i2c: E2 17 00 [17:48:37]MH_I2C_Read... [17:48:37]Read from MH i2c: E2 17 00 71 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 3F [17:48:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [17:48:37]wFMCommunicate OK [17:48:37]requested_item fd.num is exist - process it [17:48:37]SAM_PROTO_GetFieldsCounters [17:48:37]wFMCommunicate request_size=4 [17:48:37]MH_SAM_APDU [17:48:37]CAPDU: 80 13 00 00 [17:48:37]Write to MH i2c: E2 08 00 72 06 80 13 00 00 00 00 00 00 F4 [17:48:37]Write i2c OK [17:48:37]MH_I2C_Read... [17:48:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:48:37]Read from MH i2c: E2 [17:48:37]MH_I2C_Read... [17:48:37]Read from MH i2c: E2 62 00 [17:48:37]MH_I2C_Read... [17:48:37]Read from MH i2c: E2 62 00 72 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 40 [17:48: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 D7 76 00 00 0E 04 04 00 72 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 [17:48:37]wFMCommunicate OK [17:48:37]SAM_PROTO_GetFieldsCounters done [17:48:37]requested_item shift.num is exist - process it [17:48:37]requested_item shift.opened is exist - process it [17:48:37]req_shift_opened [17:48:37]FM_GetShiftState [17:48:37]SAM_PROTO_GetShiftState [17:48:37]wFMCommunicate request_size=4 [17:48:37]MH_SAM_APDU [17:48:37]CAPDU: 80 13 01 00 [17:48:37]Write to MH i2c: E2 08 00 73 06 80 13 01 00 00 00 00 00 F6 [17:48:37]Write i2c OK [17:48:37]MH_I2C_Read... [17:48:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:48:37]Read from MH i2c: E2 [17:48:37]MH_I2C_Read... [17:48:37]Read from MH i2c: E2 0E 00 [17:48:37]MH_I2C_Read... [17:48:37]Read from MH i2c: E2 0E 00 73 06 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 DC [17:48:37]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [17:48:37]wFMCommunicate OK [17:48:37]SAM_PROTO_GetShiftState done [17:48:37]FM_GetShiftState done [17:48:37]req_shift_opened done [17:48:37]requested_item shift.open_date is exist - process it [17:48:37]req_shift_open_date [17:48:37]req_shift_open_date done [17:48:37]produce_requested_data done [17:48:37]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30423,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [17:48:37]process_action_free close_receipt [17:48:37]json_value_free [17:48:37]json_value_free done [17:48:37]process_json_proto returns [17:48:37]Send response to host [17:48:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30423,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [17:48:37]free response buf [17:48:37]execute_script done [17:48:37]execute_script returns [17:48:37]free content buf [17:48:37]Sock 7.Close socket [17:48:37]Sock 7.Thread stoped [17:48:41]OFD Sender: No OFD packet to send [17:48:42]accept exits with 9 [17:48:42]New connection [17:48:42]New thread 3067489636 created [17:48:42]Thread 3067346276 joined [17:48:42]Waiting for new connection... [17:48:42] Sock 9.Parse request [17:48:42]Sock 9.Check first char [17:48:42]Sock 9.First char is OK [17:48:42]request: POST /json_proto HTTP/1.0 [17:48:42]Method: POST [17:48:42]URL: /json_proto [17:48:42]Method is POST - this is cgi request [17:48:42]url: /json_proto [17:48:42]query_string will be loaded in cgi processing [17:48:42]execute_cgi json_proto POST (null) [17:48:42]execute_cgi path=json_proto method=POST [17:48:42]POST find Content-Length [17:48:42]Host: 172.17.51.3:8080 [17:48:42]Content-Length: 677 [17:48:42]Content-Type: application/json [17:48:42] [17:48:42]POST finish read [17:48:42]Found Content-Length = 677 [17:48:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342825", "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" : 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" ] } } [17:48:42]execute_script... [17:48: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)342825", "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" : 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" ] } } [17:48:42]POST & json_proto [17:48:42]process_json_proto [17:48:42]json parsed OK: [17:48:42]protocol is kg_v1.0 [17:48:42]action value=close_receipt [17:48:42]process_action close_receipt [17:48:42]cmd_close_receipt [17:48:42]MH_GetDate [17:48:42]Write to MH i2c: F0 00 00 74 06 69 [17:48:42]Write i2c OK [17:48:42]MH_I2C_Read... [17:48:42]Read from MH i2c: F0 [17:48:42]MH_I2C_Read... [17:48:42]Read from MH i2c: F0 09 00 [17:48:42]MH_I2C_Read... [17:48:42]Read from MH i2c: F0 09 00 74 06 00 7A 42 15 67 04 C1 95 66 6A [17:48:42]GetLastDocTimeStamp 1729446513 [17:48:42]current date 1729446522 [17:48:42]FM_GetShiftState [17:48:42]SAM_PROTO_GetShiftState [17:48:42]wFMCommunicate request_size=4 [17:48:42]MH_SAM_APDU [17:48:42]CAPDU: 80 13 01 00 [17:48:42]Write to MH i2c: E2 08 00 75 06 80 13 01 00 00 00 00 00 F8 [17:48:42]Write i2c OK [17:48:42]MH_I2C_Read... [17:48:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:48:42]Read from MH i2c: E2 [17:48:42]MH_I2C_Read... [17:48:42]Read from MH i2c: E2 0E 00 [17:48:42]MH_I2C_Read... [17:48:42]Read from MH i2c: E2 0E 00 75 06 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 DE [17:48:42]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [17:48:42]wFMCommunicate OK [17:48:42]SAM_PROTO_GetShiftState done [17:48:42]FM_GetShiftState done [17:48:42]opened in 1729384718 [17:48:42]opened+sec_in_day 1729471118 [17:48:42]quantity*price = 50010 [17:48:42]sum+1 = 50012 [17:48:42]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 СНО: Общий режим Чек 206 20.10.2024 17:48 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30424 ФПД: 40725383054281 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T174842&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30424&fm=40725383054281&tin=02508201610067®Number=0000000000186857&sum=50000 [17:48:43]StoreToDocumentArchive [17:48:43]shift 114 fd 30424 [17:48:43]save to /storage/0114/doc_00030424 [17:48:43]save last doc name /storage/0114/doc_00030424 to /storage/kkm_last_doc_name [17:48:43]save OK [17:48:43]Clear old archive folders... [17:48:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:48:43]tlvbuf is 01E0B540 [17:48:43]SAM_PROTO_ClearQueue [17:48:43]wFMCommunicate request_size=4 [17:48:43]MH_SAM_APDU [17:48:43]CAPDU: 80 09 00 00 [17:48:43]Write to MH i2c: E2 08 00 82 06 80 09 00 00 00 00 00 00 FA [17:48:43]Write i2c OK [17:48:43]MH_I2C_Read... [17:48:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:48:43]Read from MH i2c: E2 [17:48:43]MH_I2C_Read... [17:48:43]Read from MH i2c: E2 03 00 [17:48:43]MH_I2C_Read... [17:48:43]Read from MH i2c: E2 03 00 82 06 00 90 00 FC [17:48:43]RAPDU: 90 00 [17:48:43]wFMCommunicate OK [17:48:43]SAM_PROTO_ClearQueue done [17:48:43]KKMCreateOFDPacket [17:48:43]OFDProtocolAddRootSTLVToBuf [17:48:43]FM_MakeSignedData [17:48:43]FM_MakeSignedData [17:48:43]SAM_PROTO_SignData [17:48:43]wFMCommunicate request_size=4 [17:48:43]MH_SAM_APDU [17:48:43]CAPDU: 80 0D 01 02 [17:48:43]Write to MH i2c: E2 08 00 83 06 80 0D 01 02 00 00 00 00 02 [17:48:43]Write i2c OK [17:48:43]MH_I2C_Read... [17:48:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:48:43]Read from MH i2c: E2 [17:48:43]MH_I2C_Read... [17:48:43]Read from MH i2c: E2 03 00 [17:48:43]MH_I2C_Read... [17:48:43]Read from MH i2c: E2 03 00 83 06 00 90 00 FD [17:48:43]RAPDU: 90 00 [17:48:43]wFMCommunicate OK [17:48:43]wFMCommunicate request_size=255 [17:48:43]MH_SAM_APDU [17:48:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 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 CE 00 00 00 F4 03 04 00 7A 42 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 25 [17:48:43]Write to MH i2c: E2 02 01 84 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 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 CE 00 00 00 F4 03 04 00 7A 42 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 25 00 00 57 [17:48:43]Write i2c OK [17:48:43]MH_I2C_Read... [17:48:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:48:44]Read from MH i2c: E2 [17:48:44]MH_I2C_Read... [17:48:44]Read from MH i2c: E2 03 00 [17:48:44]MH_I2C_Read... [17:48:44]Read from MH i2c: E2 03 00 84 06 00 90 00 FE [17:48:44]RAPDU: 90 00 [17:48:44]wFMCommunicate OK [17:48:44]wFMCommunicate request_size=10 [17:48:44]MH_SAM_APDU [17:48:44]CAPDU: 80 0D 02 02 05 0A 1D FD 83 C9 [17:48:44]Write to MH i2c: E2 0D 00 85 06 80 0D 02 02 05 00 0A 1D FD 83 C9 00 00 7F [17:48:44]Write i2c OK [17:48:44]MH_I2C_Read... [17:48:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:48:44]Read from MH i2c: E2 [17:48:44]MH_I2C_Read... [17:48:44]Read from MH i2c: E2 03 00 [17:48:44]MH_I2C_Read... [17:48:44]Read from MH i2c: E2 03 00 85 06 00 90 00 FF [17:48:44]RAPDU: 90 00 [17:48:44]wFMCommunicate OK [17:48:44]wFMCommunicate request_size=4 [17:48:44]MH_SAM_APDU [17:48:44]CAPDU: 80 0D 03 02 [17:48:44]Write to MH i2c: E2 08 00 86 06 80 0D 03 02 00 00 00 00 07 [17:48:44]Write i2c OK [17:48:44]MH_I2C_Read... [17:48:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:48:44]Read from MH i2c: E2 [17:48:44]MH_I2C_Read... [17:48:44]Read from MH i2c: E2 0B 00 [17:48:44]MH_I2C_Read... [17:48:44]Read from MH i2c: E2 0B 00 86 06 00 95 E4 8F AC 18 65 E5 8B 90 00 A9 [17:48:44]RAPDU: 95 E4 8F AC 18 65 E5 8B 90 00 [17:48:44]wFMCommunicate OK [17:48:44]SAM_PROTO_SignData done [17:48:44]FM_MakeSignedData done [17:48:44]CreateOFDProtocolMessage [17:48:44]wFMCommunicate request_size=4 [17:48:44]MH_SAM_APDU [17:48:44]CAPDU: 80 11 00 00 [17:48:44]Write to MH i2c: E2 08 00 87 06 80 11 00 00 00 00 00 00 07 [17:48:44]Write i2c OK [17:48:44]MH_I2C_Read... [17:48:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:48:44]Read from MH i2c: E2 [17:48:44]MH_I2C_Read... [17:48:44]Read from MH i2c: E2 17 00 [17:48:44]MH_I2C_Read... [17:48:44]Read from MH i2c: E2 17 00 87 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 55 [17:48:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [17:48:44]wFMCommunicate OK [17:48:44]CreateOFDProtocolMessage done [17:48:44]OFDSenderStorePacket 30424 [17:48:44]StoreOFDPacket docnum=30424 [17:48: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 12 90 07 01 D0 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 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 CE 00 00 00 F4 03 04 00 7A 42 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 25 0A 1D FD 83 C9 95 E4 8F AC 18 65 E5 8B [17:48:44]CheckFolder [17:48:44]dirname=/storage/ofd_packets [17:48:44]CheckFolder done [17:48:44]ProducePacketName [17:48:44]name=ofd_packets/00030424 [17:48:44]NVStorageSaveData ofd_packets/00030424 [17:48:44]File name is /storage/ofd_packets/00030424 [17:48:44]Write 301 bytes [17:48:44]NVStorageSaveData done [17:48:44]OFDSenderStorePacket done [17:48:44]KKMCreateOFDPacket done [17:48:44]NVStorageSaveData kkm_last_timestamp [17:48:44]File name is /storage/kkm_last_timestamp [17:48:44]Write 4 bytes [17:48:44]NVStorageSaveData done [17:48:44]ExternCall_PrintAddStr [17:48:44]wPrintStart [17:48:44]Write to MH i2c: 01 00 00 88 06 8E [17:48:44]Write i2c OK [17:48:44]MH_I2C_Read... [17:48:44]Read from MH i2c: 01 [17:48:44]MH_I2C_Read... [17:48:44]Read from MH i2c: 01 07 00 [17:48:44]MH_I2C_Read... [17:48:44]Read from MH i2c: 01 07 00 88 06 00 00 00 00 00 FF 0F A3 [17:48:44]RasterBufferAndPrint [17:48:44]line Счет N : (1)342825 [17:48:44]line ИНН: 02508201610067 [17:48:44]line Контрольно-Кассовый Чек [17:48:44]line ПРОДАЖА [17:48:44]line ТРК (МРК, ГНК) : 32 [17:48:44]line Товар: 2710124500 [17:48:44]line Аи-95-К-3 [17:48:44]line 6.740 * 74.20 [17:48:44]line = 500.11 [17:48:44]line НДС 12% НСП 1% [17:48:44]line > о реализуемом товаре [17:48:44]line ОКРУГЛЕНИЕ: -0.11 [17:48:44]line ИТОГО: 500.00 [17:48:44]line Внесено: 500.00 [17:48:44]line СДАЧА: 0.00 [17:48:44]line НСП 1% : 4.43 [17:48:44]line НДС 12% : 53.11 [17:48:44]line Наличными: 500.00 [17:48:44]line Безнал.: 0.00 [17:48:44]line Место: АЗС № 78 "Партнер Нефть" [17:48:44]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [17:48:44]line СНО: Общий режим [17:48:44]line Чек 206 20.10.2024 17:48 [17:48:44]line Смена: 114 ФФД: 1.0 [17:48:44]line ЗНМ: 0300000137 [17:48:44]line РНМ: 0000000000186857 [17:48:44]line Версия ККМ: v1.0 [17:48:44]line ФМ: 0000000002094219 [17:48:44]line ФД: 30424 [17:48:44]line ФПД: 40725383054281 [17:48:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T174842&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30424&fm=40725383054281&tin=02508201610067®Number=0000000000186857&sum=50000 [17:48:44]OFD Sender: Processing packet 30424 [packets to send 10, broken 9] [17:48:44]ProducePacketName [17:48:44]name=ofd_packets/00030424 [17:48:44]OFD Sender: To server: pG, [17:48:44]CommunicateWithHost lk.salyk.kg:30040 [17:48:44]ConnectInit lk.salyk.kg [17:48:44]written 0, free lines is 4095 [17:48:44]Connected sock=10 [17:48: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 12 90 07 01 D0 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 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 CE 00 00 00 F4 03 04 00 7A 42 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 25 0A 1D FD 83 C9 95 E4 8F AC 18 65 E5 8B [17:48: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 73 04 47 00 76 DF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 D8 76 00 00 F4 03 04 00 FE EC 14 67 B6 04 01 00 00 A8 A5 91 39 CB 21 EC 65 [17:48:44]CommunicateWithHost err = 0 [17:48:44]CheckOFDResponse [17:48:44]1017 (14) - 77093643461234 [17:48:44]1041 (16) - 0000000002094219 [17:48:44]1040 (4) - 30424 [17:48:44]1012 (4) - 20.10.2024 11:43 [17:48:44]1206 (1) - 0 [17:48:44]OFD Sender: Remove packet 30424 [17:48:44]ProducePacketName [17:48:44]name=ofd_packets/00030424 [17:48:44]NVStorageDeleteData [17:48:45]Write to MH i2c: 01 00 00 B3 06 B9 [17:48:45]Write i2c OK [17:48:45]MH_I2C_Read... [17:48:45]Read from MH i2c: 01 [17:48:45]MH_I2C_Read... [17:48:45]Read from MH i2c: 01 07 00 [17:48:45]MH_I2C_Read... [17:48:45]Read from MH i2c: 01 07 00 B3 06 00 00 00 00 00 F3 0C BF [17:48:45]RasterBufferAndPrint [17:48:45]line [17:48:45]line [17:48:45]line [17:48:45]line [17:48:45]line [17:48:45]written 0, free lines is 3324 [17:48:45]MH_Cut [17:48:45]Write to MH i2c: D1 01 00 BA 06 01 92 [17:48:45]Write i2c OK [17:48:45]MH_I2C_Read... [17:48:45]Read from MH i2c: D1 [17:48:45]MH_I2C_Read... [17:48:45]Read from MH i2c: D1 01 00 [17:48:45]MH_I2C_Read... [17:48:45]Read from MH i2c: D1 01 00 BA 06 00 91 [17:48:45]Write to MH i2c: 01 00 00 BB 06 C1 [17:48:45]Write i2c OK [17:48:45]MH_I2C_Read... [17:48:45]OFD Sender: No OFD packet to send [17:48:45]*** Cut start [17:48:45]*** Partial cut [17:48:45]*** CUTSNS_PIN = 1 [17:48:45]*** CUTSNS_PIN = 0 [17:48:45]*** Brake cut motor [17:48:46]Read from MH i2c: 01 [17:48:46]MH_I2C_Read... [17:48:46]*** Stop cut motor [17:48:46]*** Cut end [17:48:46]Read from MH i2c: 01 07 00 [17:48:46]MH_I2C_Read... [17:48:46]Read from MH i2c: 01 07 00 BB 06 00 00 00 00 00 FF 0F D6 [17:48:46]process_action close_receipt done [17:48:46]requested_data is exist [17:48:46]produce_requested_data [17:48:46]requested_item fm.sn is exist - process it [17:48:46]wFMCommunicate request_size=4 [17:48:46]MH_SAM_APDU [17:48:46]CAPDU: 80 11 00 00 [17:48:46]Write to MH i2c: E2 08 00 BC 06 80 11 00 00 00 00 00 00 3C [17:48:46]Write i2c OK [17:48:46]MH_I2C_Read... [17:48:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:48:46]Read from MH i2c: E2 [17:48:46]MH_I2C_Read... [17:48:46]Read from MH i2c: E2 17 00 [17:48:46]MH_I2C_Read... [17:48:46]Read from MH i2c: E2 17 00 BC 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 8A [17:48: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:48:46]wFMCommunicate OK [17:48:46]requested_item fd.num is exist - process it [17:48:46]SAM_PROTO_GetFieldsCounters [17:48:46]wFMCommunicate request_size=4 [17:48:46]MH_SAM_APDU [17:48:46]CAPDU: 80 13 00 00 [17:48:46]Write to MH i2c: E2 08 00 BD 06 80 13 00 00 00 00 00 00 3F [17:48:46]Write i2c OK [17:48:46]MH_I2C_Read... [17:48:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:48:46]Read from MH i2c: E2 [17:48:46]MH_I2C_Read... [17:48:46]Read from MH i2c: E2 62 00 [17:48:46]MH_I2C_Read... [17:48:46]Read from MH i2c: E2 62 00 BD 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 8F [17:48: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 D8 76 00 00 0E 04 04 00 72 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 [17:48:46]wFMCommunicate OK [17:48:46]SAM_PROTO_GetFieldsCounters done [17:48:46]requested_item shift.num is exist - process it [17:48:46]requested_item shift.opened is exist - process it [17:48:46]req_shift_opened [17:48:46]FM_GetShiftState [17:48:46]SAM_PROTO_GetShiftState [17:48:46]wFMCommunicate request_size=4 [17:48:46]MH_SAM_APDU [17:48:46]CAPDU: 80 13 01 00 [17:48:46]Write to MH i2c: E2 08 00 BE 06 80 13 01 00 00 00 00 00 41 [17:48:46]Write i2c OK [17:48:46]MH_I2C_Read... [17:48:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:48:46]Read from MH i2c: E2 [17:48:46]MH_I2C_Read... [17:48:46]Read from MH i2c: E2 0E 00 [17:48:46]MH_I2C_Read... [17:48:46]Read from MH i2c: E2 0E 00 BE 06 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 27 [17:48:46]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [17:48:46]wFMCommunicate OK [17:48:46]SAM_PROTO_GetShiftState done [17:48:46]FM_GetShiftState done [17:48:46]req_shift_opened done [17:48:46]requested_item shift.open_date is exist - process it [17:48:46]req_shift_open_date [17:48:46]req_shift_open_date done [17:48:46]produce_requested_data done [17:48:46]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30424,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [17:48:46]process_action_free close_receipt [17:48:46]json_value_free [17:48:46]json_value_free done [17:48:46]process_json_proto returns [17:48:46]Send response to host [17:48:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30424,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [17:48:46]free response buf [17:48:46]execute_script done [17:48:46]execute_script returns [17:48:46]free content buf [17:48:46]Sock 9.Close socket [17:48:46]Sock 9.Thread stoped [17:48:50]OFD Sender: No OFD packet to send [17:48:55]OFD Sender: No OFD packet to send [17:49:00]OFD Sender: No OFD packet to send [17:49:05]OFD Sender: No OFD packet to send [17:49:10]OFD Sender: No OFD packet to send [17:49:15]OFD Sender: No OFD packet to send [17:49:20]OFD Sender: No OFD packet to send [17:49:25]OFD Sender: No OFD packet to send [17:49:30]OFD Sender: No OFD packet to send [17:49:35]OFD Sender: No OFD packet to send [17:49:40]OFD Sender: No OFD packet to send [17:49:45]OFD Sender: No OFD packet to send [17:49:50]OFD Sender: No OFD packet to send [17:49:55]OFD Sender: No OFD packet to send [17:50:00]OFD Sender: No OFD packet to send [17:50:05]OFD Sender: No OFD packet to send [17:50:10]OFD Sender: No OFD packet to send [17:50:15]OFD Sender: No OFD packet to send [17:50:20]OFD Sender: No OFD packet to send [17:50:25]OFD Sender: No OFD packet to send [17:50:30]OFD Sender: No OFD packet to send [17:50:35]OFD Sender: No OFD packet to send [17:50:40]OFD Sender: No OFD packet to send [17:50:45]OFD Sender: No OFD packet to send [17:50:50]OFD Sender: No OFD packet to send [17:50:55]OFD Sender: No OFD packet to send [17:51:00]OFD Sender: No OFD packet to send [17:51:05]OFD Sender: No OFD packet to send [17:51:10]OFD Sender: No OFD packet to send [17:51:15]OFD Sender: No OFD packet to send [17:51:20]OFD Sender: No OFD packet to send [17:51:25]OFD Sender: No OFD packet to send [17:51:30]OFD Sender: No OFD packet to send [17:51:35]OFD Sender: No OFD packet to send [17:51:40]OFD Sender: No OFD packet to send [17:51:45]OFD Sender: No OFD packet to send [17:51:50]OFD Sender: No OFD packet to send [17:51:55]OFD Sender: No OFD packet to send [17:52:00]OFD Sender: No OFD packet to send [17:52:05]OFD Sender: No OFD packet to send [17:52:10]OFD Sender: No OFD packet to send [17:52:15]OFD Sender: No OFD packet to send [17:52:20]OFD Sender: No OFD packet to send [17:52:25]OFD Sender: No OFD packet to send [17:52:30]OFD Sender: No OFD packet to send [17:52:35]OFD Sender: No OFD packet to send [17:52:40]OFD Sender: No OFD packet to send [17:52:45]OFD Sender: No OFD packet to send [17:52:50]OFD Sender: No OFD packet to send [17:52:55]OFD Sender: No OFD packet to send [17:53:00]OFD Sender: No OFD packet to send [17:53:05]OFD Sender: No OFD packet to send [17:53:10]OFD Sender: No OFD packet to send [17:53:15]OFD Sender: No OFD packet to send [17:53:20]OFD Sender: No OFD packet to send [17:53:25]OFD Sender: No OFD packet to send [17:53:30]OFD Sender: No OFD packet to send [17:53:35]OFD Sender: No OFD packet to send [17:53:40]OFD Sender: No OFD packet to send [17:53:45]OFD Sender: No OFD packet to send [17:53:50]OFD Sender: No OFD packet to send [17:53:55]OFD Sender: No OFD packet to send [17:54:00]OFD Sender: No OFD packet to send [17:54:05]OFD Sender: No OFD packet to send [17:54:10]OFD Sender: No OFD packet to send [17:54:15]OFD Sender: No OFD packet to send [17:54:20]OFD Sender: No OFD packet to send [17:54:25]OFD Sender: No OFD packet to send [17:54:30]OFD Sender: No OFD packet to send [17:54:35]OFD Sender: No OFD packet to send [17:54:40]OFD Sender: No OFD packet to send [17:54:45]OFD Sender: No OFD packet to send [17:54:50]OFD Sender: No OFD packet to send [17:54:55]OFD Sender: No OFD packet to send [17:55:00]OFD Sender: No OFD packet to send [17:55:05]OFD Sender: No OFD packet to send [17:55:10]OFD Sender: No OFD packet to send [17:55:15]OFD Sender: No OFD packet to send [17:55:20]OFD Sender: No OFD packet to send [17:55:25]OFD Sender: No OFD packet to send [17:55:30]OFD Sender: No OFD packet to send [17:55:35]OFD Sender: No OFD packet to send [17:55:40]OFD Sender: No OFD packet to send [17:55:45]OFD Sender: No OFD packet to send [17:55:50]OFD Sender: No OFD packet to send [17:55:55]OFD Sender: No OFD packet to send [17:56:00]OFD Sender: No OFD packet to send [17:56:05]OFD Sender: No OFD packet to send [17:56:10]OFD Sender: No OFD packet to send [17:56:15]OFD Sender: No OFD packet to send [17:56:20]OFD Sender: No OFD packet to send [17:56:25]OFD Sender: No OFD packet to send [17:56:30]OFD Sender: No OFD packet to send [17:56:35]OFD Sender: No OFD packet to send [17:56:40]OFD Sender: No OFD packet to send [17:56:45]OFD Sender: No OFD packet to send [17:56:50]OFD Sender: No OFD packet to send [17:56:55]OFD Sender: No OFD packet to send [17:57:00]OFD Sender: No OFD packet to send [17:57:05]OFD Sender: No OFD packet to send [17:57:10]OFD Sender: No OFD packet to send [17:57:15]OFD Sender: No OFD packet to send [17:57:20]OFD Sender: No OFD packet to send [17:57:25]OFD Sender: No OFD packet to send [17:57:30]OFD Sender: No OFD packet to send [17:57:35]OFD Sender: No OFD packet to send [17:57:40]OFD Sender: No OFD packet to send [17:57:45]OFD Sender: No OFD packet to send [17:57:50]OFD Sender: No OFD packet to send [17:57:55]OFD Sender: No OFD packet to send [17:58:00]OFD Sender: No OFD packet to send [17:58:05]OFD Sender: No OFD packet to send [17:58:10]OFD Sender: No OFD packet to send [17:58:15]OFD Sender: No OFD packet to send [17:58:20]OFD Sender: No OFD packet to send [17:58:25]OFD Sender: No OFD packet to send [17:58:30]OFD Sender: No OFD packet to send [17:58:35]OFD Sender: No OFD packet to send [17:58:40]OFD Sender: No OFD packet to send [17:58:45]OFD Sender: No OFD packet to send [17:58:50]OFD Sender: No OFD packet to send [17:58:55]OFD Sender: No OFD packet to send [17:59:00]OFD Sender: No OFD packet to send [17:59:05]OFD Sender: No OFD packet to send [17:59:10]OFD Sender: No OFD packet to send [17:59:15]OFD Sender: No OFD packet to send [17:59:19]accept exits with 7 [17:59:19]New connection [17:59:19]New thread 3067346276 created [17:59:19]Thread 3067489636 joined [17:59:19]Waiting for new connection... [17:59:19] Sock 7.Parse request [17:59:19]Sock 7.Check first char [17:59:19]Sock 7.First char is OK [17:59:19]request: POST /json_proto HTTP/1.0 [17:59:19]Method: POST [17:59:19]URL: /json_proto [17:59:19]Method is POST - this is cgi request [17:59:19]url: /json_proto [17:59:19]query_string will be loaded in cgi processing [17:59:19]execute_cgi json_proto POST (null) [17:59:19]execute_cgi path=json_proto method=POST [17:59:19]POST find Content-Length [17:59:19]Host: 172.17.51.3:8080 [17:59:19]Content-Length: 679 [17:59:19]Content-Type: application/json [17:59:19] [17:59:19]POST finish read [17:59:19]Found Content-Length = 679 [17:59:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342826", "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:59:19]execute_script... [17:59: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)342826", "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:59:19]POST & json_proto [17:59:19]process_json_proto [17:59:19]json parsed OK: [17:59:19]protocol is kg_v1.0 [17:59:19]action value=close_receipt [17:59:19]process_action close_receipt [17:59:19]cmd_close_receipt [17:59:19]MH_GetDate [17:59:19]Write to MH i2c: F0 00 00 BF 06 B4 [17:59:19]Write i2c OK [17:59:19]MH_I2C_Read... [17:59:19]Read from MH i2c: F0 [17:59:19]MH_I2C_Read... [17:59:19]Read from MH i2c: F0 09 00 [17:59:19]MH_I2C_Read... [17:59:19]Read from MH i2c: F0 09 00 BF 06 00 F8 44 15 67 04 C1 95 66 35 [17:59:19]GetLastDocTimeStamp 1729446522 [17:59:19]current date 1729447160 [17:59:19]FM_GetShiftState [17:59:19]SAM_PROTO_GetShiftState [17:59:19]wFMCommunicate request_size=4 [17:59:19]MH_SAM_APDU [17:59:19]CAPDU: 80 13 01 00 [17:59:19]Write to MH i2c: E2 08 00 C0 06 80 13 01 00 00 00 00 00 43 [17:59:19]Write i2c OK [17:59:19]MH_I2C_Read... [17:59:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:59:19]Read from MH i2c: E2 [17:59:19]MH_I2C_Read... [17:59:19]Read from MH i2c: E2 0E 00 [17:59:19]MH_I2C_Read... [17:59:19]Read from MH i2c: E2 0E 00 C0 06 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 29 [17:59:19]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [17:59:19]wFMCommunicate OK [17:59:19]SAM_PROTO_GetShiftState done [17:59:19]FM_GetShiftState done [17:59:19]opened in 1729384718 [17:59:19]opened+sec_in_day 1729471118 [17:59:19]quantity*price = 100050 [17:59:19]sum+1 = 100052 [17:59:19]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 СНО: Общий режим Чек 207 20.10.2024 17:59 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30425 ФПД: 279445353420365 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T175920&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30425&fm=279445353420365&tin=02508201610067®Number=0000000000186857&sum=100000 [17:59:21]StoreToDocumentArchive [17:59:21]shift 114 fd 30425 [17:59:21]save to /storage/0114/doc_00030425 [17:59:21]save last doc name /storage/0114/doc_00030425 to /storage/kkm_last_doc_name [17:59:21]save OK [17:59:21]Clear old archive folders... [17:59:21]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:59:21]tlvbuf is 01E0C600 [17:59:21]SAM_PROTO_ClearQueue [17:59:21]wFMCommunicate request_size=4 [17:59:21]MH_SAM_APDU [17:59:21]CAPDU: 80 09 00 00 [17:59:21]Write to MH i2c: E2 08 00 CD 06 80 09 00 00 00 00 00 00 45 [17:59:21]Write i2c OK [17:59:21]MH_I2C_Read... [17:59:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:59:21]Read from MH i2c: E2 [17:59:21]MH_I2C_Read... [17:59:21]Read from MH i2c: E2 03 00 [17:59:21]MH_I2C_Read... [17:59:21]Read from MH i2c: E2 03 00 CD 06 00 90 00 47 [17:59:21]RAPDU: 90 00 [17:59:21]wFMCommunicate OK [17:59:21]SAM_PROTO_ClearQueue done [17:59:21]KKMCreateOFDPacket [17:59:21]OFDProtocolAddRootSTLVToBuf [17:59:21]FM_MakeSignedData [17:59:21]FM_MakeSignedData [17:59:21]SAM_PROTO_SignData [17:59:21]wFMCommunicate request_size=4 [17:59:21]MH_SAM_APDU [17:59:21]CAPDU: 80 0D 01 02 [17:59:21]Write to MH i2c: E2 08 00 CE 06 80 0D 01 02 00 00 00 00 4D [17:59:21]Write i2c OK [17:59:21]MH_I2C_Read... [17:59:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:59:21]Read from MH i2c: E2 [17:59:21]MH_I2C_Read... [17:59:21]Read from MH i2c: E2 03 00 [17:59:21]MH_I2C_Read... [17:59:21]Read from MH i2c: E2 03 00 CE 06 00 90 00 48 [17:59:21]RAPDU: 90 00 [17:59:21]wFMCommunicate OK [17:59:21]wFMCommunicate request_size=255 [17:59:21]MH_SAM_APDU [17:59: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 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 CF 00 00 00 F4 03 04 00 F8 44 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 FE 27 71 06 [17:59:21]Write to MH i2c: E2 02 01 CF 06 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 CF 00 00 00 F4 03 04 00 F8 44 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 FE 27 71 06 00 00 B8 [17:59:21]Write i2c OK [17:59:21]MH_I2C_Read... [17:59:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:59:21]Read from MH i2c: E2 [17:59:21]MH_I2C_Read... [17:59:21]Read from MH i2c: E2 03 00 [17:59:21]MH_I2C_Read... [17:59:21]Read from MH i2c: E2 03 00 CF 06 00 90 00 49 [17:59:21]RAPDU: 90 00 [17:59:21]wFMCommunicate OK [17:59:21]wFMCommunicate request_size=7 [17:59:21]MH_SAM_APDU [17:59:21]CAPDU: 80 0D 02 02 02 56 4D [17:59:21]Write to MH i2c: E2 0A 00 D0 06 80 0D 02 02 02 00 56 4D 00 00 F7 [17:59:21]Write i2c OK [17:59:21]MH_I2C_Read... [17:59:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:59:21]Read from MH i2c: E2 [17:59:21]MH_I2C_Read... [17:59:21]Read from MH i2c: E2 03 00 [17:59:21]MH_I2C_Read... [17:59:21]Read from MH i2c: E2 03 00 D0 06 00 90 00 4A [17:59:21]RAPDU: 90 00 [17:59:21]wFMCommunicate OK [17:59:21]wFMCommunicate request_size=4 [17:59:21]MH_SAM_APDU [17:59:21]CAPDU: 80 0D 03 02 [17:59:21]Write to MH i2c: E2 08 00 D1 06 80 0D 03 02 00 00 00 00 52 [17:59:21]Write i2c OK [17:59:21]MH_I2C_Read... [17:59:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:59:21]Read from MH i2c: E2 [17:59:21]MH_I2C_Read... [17:59:21]Read from MH i2c: E2 0B 00 [17:59:21]MH_I2C_Read... [17:59:21]Read from MH i2c: E2 0B 00 D1 06 00 00 C8 13 5D B2 92 4C A3 90 00 BE [17:59:21]RAPDU: 00 C8 13 5D B2 92 4C A3 90 00 [17:59:21]wFMCommunicate OK [17:59:21]SAM_PROTO_SignData done [17:59:21]FM_MakeSignedData done [17:59:21]CreateOFDProtocolMessage [17:59:21]wFMCommunicate request_size=4 [17:59:21]MH_SAM_APDU [17:59:21]CAPDU: 80 11 00 00 [17:59:21]Write to MH i2c: E2 08 00 D2 06 80 11 00 00 00 00 00 00 52 [17:59:21]Write i2c OK [17:59:21]MH_I2C_Read... [17:59:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:59:21]Read from MH i2c: E2 [17:59:21]MH_I2C_Read... [17:59:21]Read from MH i2c: E2 17 00 [17:59:21]MH_I2C_Read... [17:59:21]Read from MH i2c: E2 17 00 D2 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 A0 [17:59: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:59:21]wFMCommunicate OK [17:59:21]CreateOFDProtocolMessage done [17:59:21]OFDSenderStorePacket 30425 [17:59:21]StoreOFDPacket docnum=30425 [17:59: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 0C 01 00 00 4B 4E 04 01 C8 E4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 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 CF 00 00 00 F4 03 04 00 F8 44 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 FE 27 71 06 56 4D 00 C8 13 5D B2 92 4C A3 [17:59:21]CheckFolder [17:59:21]dirname=/storage/ofd_packets [17:59:21]CheckFolder done [17:59:21]ProducePacketName [17:59:21]name=ofd_packets/00030425 [17:59:21]NVStorageSaveData ofd_packets/00030425 [17:59:21]File name is /storage/ofd_packets/00030425 [17:59:21]Write 298 bytes [17:59:21]NVStorageSaveData done [17:59:21]OFDSenderStorePacket done [17:59:21]KKMCreateOFDPacket done [17:59:21]NVStorageSaveData kkm_last_timestamp [17:59:21]File name is /storage/kkm_last_timestamp [17:59:21]Write 4 bytes [17:59:21]NVStorageSaveData done [17:59:21]ExternCall_PrintAddStr [17:59:21]wPrintStart [17:59:21]Write to MH i2c: 01 00 00 D3 06 D9 [17:59:21]OFD Sender: Processing packet 30425 [packets to send 10, broken 9] [17:59:21]ProducePacketName [17:59:21]name=ofd_packets/00030425 [17:59:21]OFD Sender: To server: pG, [17:59:21]CommunicateWithHost lk.salyk.kg:30040 [17:59:21]ConnectInit lk.salyk.kg [17:59:21]Write i2c OK [17:59:21]MH_I2C_Read... [17:59:21]Read from MH i2c: 01 [17:59:21]MH_I2C_Read... [17:59:21]Read from MH i2c: 01 07 00 [17:59:21]MH_I2C_Read... [17:59:21]Read from MH i2c: 01 07 00 D3 06 00 00 00 00 00 FF 0F EE [17:59:21]RasterBufferAndPrint [17:59:21]line Счет N : (1)342826 [17:59:21]line ИНН: 02508201610067 [17:59:21]line Контрольно-Кассовый Чек [17:59:21]line ПРОДАЖА [17:59:21]line ТРК (МРК, ГНК) : 64 [17:59:21]line Товар: 2710194210 [17:59:21]line ДТ-К-2 [17:59:21]line 13.130 * 76.20 [17:59:21]line = 1000.51 [17:59:21]line НДС 12% НСП 1% [17:59:21]line > о реализуемом товаре [17:59:21]line ОКРУГЛЕНИЕ: -0.51 [17:59:21]line ИТОГО: 1000.00 [17:59:21]line Внесено: 1000.00 [17:59:21]line СДАЧА: 0.00 [17:59:21]line НСП 1% : 8.85 [17:59:21]line НДС 12% : 106.25 [17:59:21]line Наличными: 1000.00 [17:59:21]line Безнал.: 0.00 [17:59:21]line Место: АЗС № 78 "Партнер Нефть" [17:59:21]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [17:59:21]line СНО: Общий режим [17:59:21]line Чек 207 20.10.2024 17:59 [17:59:21]line Смена: 114 ФФД: 1.0 [17:59:21]line ЗНМ: 0300000137 [17:59:21]line РНМ: 0000000000186857 [17:59:21]line Версия ККМ: v1.0 [17:59:21]line ФМ: 0000000002094219 [17:59:21]line ФД: 30425 [17:59:21]line ФПД: 279445353420365 [17:59:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T175920&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30425&fm=279445353420365&tin=02508201610067®Number=0000000000186857&sum=100000 [17:59:21]Connected sock=10 [17:59: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 0C 01 00 00 4B 4E 04 01 C8 E4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 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 CF 00 00 00 F4 03 04 00 F8 44 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 FE 27 71 06 56 4D 00 C8 13 5D B2 92 4C A3 [17:59:21]written 0, free lines is 4095 [17:59: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 CD 7C 47 00 B9 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 D9 76 00 00 F4 03 04 00 7B EF 14 67 B6 04 01 00 00 D7 BC ED 55 09 B3 8F 0A [17:59:22]CommunicateWithHost err = 0 [17:59:22]CheckOFDResponse [17:59:22]1017 (14) - 77093643461234 [17:59:22]1041 (16) - 0000000002094219 [17:59:22]1040 (4) - 30425 [17:59:22]1012 (4) - 20.10.2024 11:54 [17:59:22]1206 (1) - 0 [17:59:22]OFD Sender: Remove packet 30425 [17:59:22]ProducePacketName [17:59:22]name=ofd_packets/00030425 [17:59:22]NVStorageDeleteData [17:59:22]Write to MH i2c: 01 00 00 FE 06 04 [17:59:22]Write i2c OK [17:59:22]MH_I2C_Read... [17:59:22]Read from MH i2c: 01 [17:59:22]MH_I2C_Read... [17:59:22]Read from MH i2c: 01 07 00 [17:59:22]MH_I2C_Read... [17:59:22]Read from MH i2c: 01 07 00 FE 06 00 00 00 00 00 E4 0C FB [17:59:22]RasterBufferAndPrint [17:59:22]line [17:59:22]line [17:59:22]line [17:59:22]line [17:59:22]line [17:59:22]written 0, free lines is 3306 [17:59:22]MH_Cut [17:59:22]Write to MH i2c: D1 01 00 05 07 01 DE [17:59:22]Write i2c OK [17:59:22]MH_I2C_Read... [17:59:22]Read from MH i2c: D1 [17:59:22]MH_I2C_Read... [17:59:22]Read from MH i2c: D1 01 00 [17:59:22]MH_I2C_Read... [17:59:22]Read from MH i2c: D1 01 00 05 07 00 DD [17:59:22]Write to MH i2c: 01 00 00 06 07 0D [17:59:22]Write i2c OK [17:59:22]MH_I2C_Read... [17:59:22]OFD Sender: No OFD packet to send [17:59:23]*** Cut start [17:59:23]*** Partial cut [17:59:23]*** CUTSNS_PIN = 1 [17:59:23]*** CUTSNS_PIN = 0 [17:59:23]*** Brake cut motor [17:59:23]Read from MH i2c: 01 [17:59:23]MH_I2C_Read... [17:59:23]*** Stop cut motor [17:59:23]*** Cut end [17:59:23]Read from MH i2c: 01 07 00 [17:59:23]MH_I2C_Read... [17:59:23]Read from MH i2c: 01 07 00 06 07 00 00 00 00 00 FF 0F 22 [17:59:23]process_action close_receipt done [17:59:23]requested_data is exist [17:59:23]produce_requested_data [17:59:23]requested_item fm.sn is exist - process it [17:59:23]wFMCommunicate request_size=4 [17:59:23]MH_SAM_APDU [17:59:23]CAPDU: 80 11 00 00 [17:59:23]Write to MH i2c: E2 08 00 07 07 80 11 00 00 00 00 00 00 88 [17:59:23]Write i2c OK [17:59:23]MH_I2C_Read... [17:59:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:59:23]Read from MH i2c: E2 [17:59:23]MH_I2C_Read... [17:59:23]Read from MH i2c: E2 17 00 [17:59:23]MH_I2C_Read... [17:59:23]Read from MH i2c: E2 17 00 07 07 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:59: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:59:23]wFMCommunicate OK [17:59:23]requested_item fd.num is exist - process it [17:59:23]SAM_PROTO_GetFieldsCounters [17:59:23]wFMCommunicate request_size=4 [17:59:23]MH_SAM_APDU [17:59:23]CAPDU: 80 13 00 00 [17:59:23]Write to MH i2c: E2 08 00 08 07 80 13 00 00 00 00 00 00 8B [17:59:23]Write i2c OK [17:59:23]MH_I2C_Read... [17:59:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:59:23]Read from MH i2c: E2 [17:59:23]MH_I2C_Read... [17:59:23]Read from MH i2c: E2 62 00 [17:59:23]MH_I2C_Read... [17:59:23]Read from MH i2c: E2 62 00 08 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 DF [17:59: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 D9 76 00 00 0E 04 04 00 72 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 [17:59:23]wFMCommunicate OK [17:59:23]SAM_PROTO_GetFieldsCounters done [17:59:23]requested_item shift.num is exist - process it [17:59:23]requested_item shift.opened is exist - process it [17:59:23]req_shift_opened [17:59:23]FM_GetShiftState [17:59:23]SAM_PROTO_GetShiftState [17:59:23]wFMCommunicate request_size=4 [17:59:23]MH_SAM_APDU [17:59:23]CAPDU: 80 13 01 00 [17:59:23]Write to MH i2c: E2 08 00 09 07 80 13 01 00 00 00 00 00 8D [17:59:23]Write i2c OK [17:59:23]MH_I2C_Read... [17:59:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:59:23]Read from MH i2c: E2 [17:59:23]MH_I2C_Read... [17:59:23]Read from MH i2c: E2 0E 00 [17:59:23]MH_I2C_Read... [17:59:23]Read from MH i2c: E2 0E 00 09 07 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 73 [17:59:23]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [17:59:23]wFMCommunicate OK [17:59:23]SAM_PROTO_GetShiftState done [17:59:23]FM_GetShiftState done [17:59:23]req_shift_opened done [17:59:23]requested_item shift.open_date is exist - process it [17:59:23]req_shift_open_date [17:59:23]req_shift_open_date done [17:59:23]produce_requested_data done [17:59:23]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30425,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [17:59:23]process_action_free close_receipt [17:59:23]json_value_free [17:59:23]json_value_free done [17:59:23]process_json_proto returns [17:59:23]Send response to host [17:59:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30425,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [17:59:23]free response buf [17:59:23]execute_script done [17:59:23]execute_script returns [17:59:23]free content buf [17:59:23]Sock 7.Close socket [17:59:23]Sock 7.Thread stoped [17:59:27]OFD Sender: No OFD packet to send [17:59:32]OFD Sender: No OFD packet to send [17:59:37]OFD Sender: No OFD packet to send [17:59:42]OFD Sender: No OFD packet to send [17:59:47]OFD Sender: No OFD packet to send [17:59:52]OFD Sender: No OFD packet to send [17:59:57]OFD Sender: No OFD packet to send [18:00:02]OFD Sender: No OFD packet to send [18:00:07]OFD Sender: No OFD packet to send [18:00:12]OFD Sender: No OFD packet to send [18:00:12]accept exits with 9 [18:00:12]New connection [18:00:12]New thread 3067489636 created [18:00:12]Thread 3067346276 joined [18:00:12]Waiting for new connection... [18:00:12] Sock 9.Parse request [18:00:12]Sock 9.Check first char [18:00:12]Sock 9.First char is OK [18:00:12]request: POST /json_proto HTTP/1.0 [18:00:12]Method: POST [18:00:12]URL: /json_proto [18:00:12]Method is POST - this is cgi request [18:00:12]url: /json_proto [18:00:12]query_string will be loaded in cgi processing [18:00:12]execute_cgi json_proto POST (null) [18:00:12]execute_cgi path=json_proto method=POST [18:00:12]POST find Content-Length [18:00:12]Host: 172.17.51.3:8080 [18:00:12]Content-Length: 677 [18:00:12]Content-Type: application/json [18:00:12] [18:00:12]POST finish read [18:00:12]Found Content-Length = 677 [18:00:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342827", "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" ] } } [18:00:12]execute_script... [18:00:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342827", "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" ] } } [18:00:12]POST & json_proto [18:00:12]process_json_proto [18:00:12]json parsed OK: [18:00:12]protocol is kg_v1.0 [18:00:12]action value=close_receipt [18:00:12]process_action close_receipt [18:00:12]cmd_close_receipt [18:00:12]MH_GetDate [18:00:12]Write to MH i2c: F0 00 00 0A 07 00 [18:00:12]Write i2c OK [18:00:12]MH_I2C_Read... [18:00:12]Read from MH i2c: F0 [18:00:12]MH_I2C_Read... [18:00:12]Read from MH i2c: F0 09 00 [18:00:12]MH_I2C_Read... [18:00:12]Read from MH i2c: F0 09 00 0A 07 00 2D 45 15 67 04 C1 95 66 B7 [18:00:12]GetLastDocTimeStamp 1729447160 [18:00:12]current date 1729447213 [18:00:12]FM_GetShiftState [18:00:12]SAM_PROTO_GetShiftState [18:00:12]wFMCommunicate request_size=4 [18:00:12]MH_SAM_APDU [18:00:12]CAPDU: 80 13 01 00 [18:00:12]Write to MH i2c: E2 08 00 0B 07 80 13 01 00 00 00 00 00 8F [18:00:12]Write i2c OK [18:00:12]MH_I2C_Read... [18:00:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:00:13]Read from MH i2c: E2 [18:00:13]MH_I2C_Read... [18:00:13]Read from MH i2c: E2 0E 00 [18:00:13]MH_I2C_Read... [18:00:13]Read from MH i2c: E2 0E 00 0B 07 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 75 [18:00:13]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [18:00:13]wFMCommunicate OK [18:00:13]SAM_PROTO_GetShiftState done [18:00:13]FM_GetShiftState done [18:00:13]opened in 1729384718 [18:00:13]opened+sec_in_day 1729471118 [18:00:13]quantity*price = 50041 [18:00:13]sum+1 = 50042 [18:00: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 СНО: Общий режим Чек 208 20.10.2024 18:00 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30426 ФПД: 84888364010658 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T180013&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30426&fm=84888364010658&tin=02508201610067®Number=0000000000186857&sum=50000 [18:00:14]StoreToDocumentArchive [18:00:14]shift 114 fd 30426 [18:00:14]save to /storage/0114/doc_00030426 [18:00:14]save last doc name /storage/0114/doc_00030426 to /storage/kkm_last_doc_name [18:00:14]save OK [18:00:14]Clear old archive folders... [18:00:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:00:14]tlvbuf is 01DB55F0 [18:00:14]SAM_PROTO_ClearQueue [18:00:14]wFMCommunicate request_size=4 [18:00:14]MH_SAM_APDU [18:00:14]CAPDU: 80 09 00 00 [18:00:14]Write to MH i2c: E2 08 00 18 07 80 09 00 00 00 00 00 00 91 [18:00:14]Write i2c OK [18:00:14]MH_I2C_Read... [18:00:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:00:14]Read from MH i2c: E2 [18:00:14]MH_I2C_Read... [18:00:14]Read from MH i2c: E2 03 00 [18:00:14]MH_I2C_Read... [18:00:14]Read from MH i2c: E2 03 00 18 07 00 90 00 93 [18:00:14]RAPDU: 90 00 [18:00:14]wFMCommunicate OK [18:00:14]SAM_PROTO_ClearQueue done [18:00:14]KKMCreateOFDPacket [18:00:14]OFDProtocolAddRootSTLVToBuf [18:00:14]FM_MakeSignedData [18:00:14]FM_MakeSignedData [18:00:14]SAM_PROTO_SignData [18:00:14]wFMCommunicate request_size=4 [18:00:14]MH_SAM_APDU [18:00:14]CAPDU: 80 0D 01 02 [18:00:14]Write to MH i2c: E2 08 00 19 07 80 0D 01 02 00 00 00 00 99 [18:00:14]Write i2c OK [18:00:14]MH_I2C_Read... [18:00:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:00:14]Read from MH i2c: E2 [18:00:14]MH_I2C_Read... [18:00:14]Read from MH i2c: E2 03 00 [18:00:14]MH_I2C_Read... [18:00:14]Read from MH i2c: E2 03 00 19 07 00 90 00 94 [18:00:14]RAPDU: 90 00 [18:00:14]wFMCommunicate OK [18:00:14]wFMCommunicate request_size=255 [18:00:14]MH_SAM_APDU [18: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 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 D0 00 00 00 F4 03 04 00 2D 45 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 4D [18:00:14]Write to MH i2c: E2 02 01 1A 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 D0 00 00 00 F4 03 04 00 2D 45 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 4D 00 00 F7 [18:00:14]Write i2c OK [18:00:14]MH_I2C_Read... [18:00:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:00:14]Read from MH i2c: E2 [18:00:14]MH_I2C_Read... [18:00:14]Read from MH i2c: E2 03 00 [18:00:14]MH_I2C_Read... [18:00:14]Read from MH i2c: E2 03 00 1A 07 00 90 00 95 [18:00:14]RAPDU: 90 00 [18:00:14]wFMCommunicate OK [18:00:14]wFMCommunicate request_size=10 [18:00:14]MH_SAM_APDU [18:00:14]CAPDU: 80 0D 02 02 05 34 9C C8 4C A2 [18:00:14]Write to MH i2c: E2 0D 00 1B 07 80 0D 02 02 05 00 34 9C C8 4C A2 00 00 2C [18:00:14]Write i2c OK [18:00:14]MH_I2C_Read... [18:00:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:00:14]Read from MH i2c: E2 [18:00:14]MH_I2C_Read... [18:00:14]Read from MH i2c: E2 03 00 [18:00:14]MH_I2C_Read... [18:00:14]Read from MH i2c: E2 03 00 1B 07 00 90 00 96 [18:00:14]RAPDU: 90 00 [18:00:14]wFMCommunicate OK [18:00:14]wFMCommunicate request_size=4 [18:00:14]MH_SAM_APDU [18:00:14]CAPDU: 80 0D 03 02 [18:00:14]Write to MH i2c: E2 08 00 1C 07 80 0D 03 02 00 00 00 00 9E [18:00:14]Write i2c OK [18:00:14]MH_I2C_Read... [18:00:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:00:14]Read from MH i2c: E2 [18:00:14]MH_I2C_Read... [18:00:14]Read from MH i2c: E2 0B 00 [18:00:14]MH_I2C_Read... [18:00:14]Read from MH i2c: E2 0B 00 1C 07 00 24 DC 7B 27 41 FC 99 76 90 00 8D [18:00:14]RAPDU: 24 DC 7B 27 41 FC 99 76 90 00 [18:00:14]wFMCommunicate OK [18:00:14]SAM_PROTO_SignData done [18:00:14]FM_MakeSignedData done [18:00:14]CreateOFDProtocolMessage [18:00:14]wFMCommunicate request_size=4 [18:00:14]MH_SAM_APDU [18:00:14]CAPDU: 80 11 00 00 [18:00:14]Write to MH i2c: E2 08 00 1D 07 80 11 00 00 00 00 00 00 9E [18:00:14]Write i2c OK [18:00:14]MH_I2C_Read... [18:00:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:00:14]Read from MH i2c: E2 [18:00:14]MH_I2C_Read... [18:00:14]Read from MH i2c: E2 17 00 [18:00:14]MH_I2C_Read... [18:00:14]Read from MH i2c: E2 17 00 1D 07 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: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 [18:00:14]wFMCommunicate OK [18:00:14]CreateOFDProtocolMessage done [18:00:14]OFDSenderStorePacket 30426 [18:00:14]StoreOFDPacket docnum=30426 [18: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 E5 86 07 01 64 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 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 D0 00 00 00 F4 03 04 00 2D 45 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 4D 34 9C C8 4C A2 24 DC 7B 27 41 FC 99 76 [18:00:14]CheckFolder [18:00:14]dirname=/storage/ofd_packets [18:00:14]CheckFolder done [18:00:14]ProducePacketName [18:00:14]name=ofd_packets/00030426 [18:00:14]NVStorageSaveData ofd_packets/00030426 [18:00:14]File name is /storage/ofd_packets/00030426 [18:00:14]Write 301 bytes [18:00:14]NVStorageSaveData done [18:00:14]OFDSenderStorePacket done [18:00:14]KKMCreateOFDPacket done [18:00:14]NVStorageSaveData kkm_last_timestamp [18:00:14]File name is /storage/kkm_last_timestamp [18:00:14]Write 4 bytes [18:00:14]NVStorageSaveData done [18:00:14]ExternCall_PrintAddStr [18:00:14]wPrintStart [18:00:14]Write to MH i2c: 01 00 00 1E 07 25 [18:00:14]Write i2c OK [18:00:14]MH_I2C_Read... [18:00:14]Read from MH i2c: 01 [18:00:14]MH_I2C_Read... [18:00:14]Read from MH i2c: 01 07 00 [18:00:14]MH_I2C_Read... [18:00:14]Read from MH i2c: 01 07 00 1E 07 00 00 00 00 00 FF 0F 3A [18:00:14]RasterBufferAndPrint [18:00:14]line Счет N : (1)342827 [18:00:14]line ИНН: 02508201610067 [18:00:14]line Контрольно-Кассовый Чек [18:00:14]line ПРОДАЖА [18:00:14]line ТРК (МРК, ГНК) : 63 [18:00:14]line Товар: 2710124130 [18:00:14]line Аи-92-К-2 [18:00:14]line 7.480 * 66.90 [18:00:14]line = 500.41 [18:00:14]line НДС 12% НСП 1% [18:00:14]line > о реализуемом товаре [18:00:14]line ОКРУГЛЕНИЕ: -0.41 [18:00:14]line ИТОГО: 500.00 [18:00:14]line Внесено: 500.00 [18:00:14]line СДАЧА: 0.00 [18:00:14]line НСП 1% : 4.43 [18:00:14]line НДС 12% : 53.14 [18:00:14]line Наличными: 500.00 [18:00:14]line Безнал.: 0.00 [18:00:14]line Место: АЗС № 78 "Партнер Нефть" [18:00:14]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [18:00:14]line СНО: Общий режим [18:00:14]line Чек 208 20.10.2024 18:00 [18:00:14]line Смена: 114 ФФД: 1.0 [18:00:14]line ЗНМ: 0300000137 [18:00:14]line РНМ: 0000000000186857 [18:00:14]line Версия ККМ: v1.0 [18:00:14]line ФМ: 0000000002094219 [18:00:14]line ФД: 30426 [18:00:14]line ФПД: 84888364010658 [18:00:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T180013&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30426&fm=84888364010658&tin=02508201610067®Number=0000000000186857&sum=50000 [18:00:15]OFD Sender: Processing packet 30426 [packets to send 10, broken 9] [18:00:15]ProducePacketName [18:00:15]name=ofd_packets/00030426 [18:00:15]OFD Sender: To server: pG, [18:00:15]CommunicateWithHost lk.salyk.kg:30040 [18:00:15]ConnectInit lk.salyk.kg [18:00:15]written 0, free lines is 4095 [18:00:15]Connected sock=10 [18: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 E5 86 07 01 64 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 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 D0 00 00 00 F4 03 04 00 2D 45 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 4D 34 9C C8 4C A2 24 DC 7B 27 41 FC 99 76 [18: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 16 4F 47 00 51 F4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 DA 76 00 00 F4 03 04 00 B0 EF 14 67 B6 04 01 00 00 88 C5 70 2E 4B D7 DD 30 [18:00:15]CommunicateWithHost err = 0 [18:00:15]CheckOFDResponse [18:00:15]1017 (14) - 77093643461234 [18:00:15]1041 (16) - 0000000002094219 [18:00:15]1040 (4) - 30426 [18:00:15]1012 (4) - 20.10.2024 11:55 [18:00:15]1206 (1) - 0 [18:00:15]OFD Sender: Remove packet 30426 [18:00:15]ProducePacketName [18:00:15]name=ofd_packets/00030426 [18:00:15]NVStorageDeleteData [18:00:15]Write to MH i2c: 01 00 00 49 07 50 [18:00:15]Write i2c OK [18:00:15]MH_I2C_Read... [18:00:15]Read from MH i2c: 01 [18:00:15]MH_I2C_Read... [18:00:15]Read from MH i2c: 01 07 00 [18:00:15]MH_I2C_Read... [18:00:15]Read from MH i2c: 01 07 00 49 07 00 00 00 00 00 E3 0C 46 [18:00:15]RasterBufferAndPrint [18:00:15]line [18:00:15]line [18:00:15]line [18:00:15]line [18:00:15]line [18:00:15]written 0, free lines is 3307 [18:00:15]MH_Cut [18:00:15]Write to MH i2c: D1 01 00 50 07 01 29 [18:00:15]Write i2c OK [18:00:15]MH_I2C_Read... [18:00:15]Read from MH i2c: D1 [18:00:15]MH_I2C_Read... [18:00:15]Read from MH i2c: D1 01 00 [18:00:15]MH_I2C_Read... [18:00:15]Read from MH i2c: D1 01 00 50 07 00 28 [18:00:15]Write to MH i2c: 01 00 00 51 07 58 [18:00:15]Write i2c OK [18:00:15]MH_I2C_Read... [18:00:15]OFD Sender: No OFD packet to send [18:00:16]*** Cut start [18:00:16]*** Partial cut [18:00:16]*** CUTSNS_PIN = 1 [18:00:16]*** CUTSNS_PIN = 0 [18:00:16]*** Brake cut motor [18:00:16]Read from MH i2c: 01 [18:00:16]MH_I2C_Read... [18:00:16]*** Stop cut motor [18:00:16]*** Cut end [18:00:16]Read from MH i2c: 01 07 00 [18:00:16]MH_I2C_Read... [18:00:16]Read from MH i2c: 01 07 00 51 07 00 00 00 00 00 FF 0F 6D [18:00:16]process_action close_receipt done [18:00:16]requested_data is exist [18:00:16]produce_requested_data [18:00:16]requested_item fm.sn is exist - process it [18:00:16]wFMCommunicate request_size=4 [18:00:16]MH_SAM_APDU [18:00:16]CAPDU: 80 11 00 00 [18:00:16]Write to MH i2c: E2 08 00 52 07 80 11 00 00 00 00 00 00 D3 [18:00:16]Write i2c OK [18:00:16]MH_I2C_Read... [18:00:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:00:16]Read from MH i2c: E2 [18:00:16]MH_I2C_Read... [18:00:16]Read from MH i2c: E2 17 00 [18:00:16]MH_I2C_Read... [18:00:16]Read from MH i2c: E2 17 00 52 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 21 [18: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 [18:00:16]wFMCommunicate OK [18:00:16]requested_item fd.num is exist - process it [18:00:16]SAM_PROTO_GetFieldsCounters [18:00:16]wFMCommunicate request_size=4 [18:00:16]MH_SAM_APDU [18:00:16]CAPDU: 80 13 00 00 [18:00:16]Write to MH i2c: E2 08 00 53 07 80 13 00 00 00 00 00 00 D6 [18:00:16]Write i2c OK [18:00:16]MH_I2C_Read... [18:00:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:00:16]Read from MH i2c: E2 [18:00:16]MH_I2C_Read... [18:00:16]Read from MH i2c: E2 62 00 [18:00:16]MH_I2C_Read... [18:00:16]Read from MH i2c: E2 62 00 53 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 2E [18:00: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 DA 76 00 00 0E 04 04 00 72 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:00:16]wFMCommunicate OK [18:00:16]SAM_PROTO_GetFieldsCounters done [18:00:16]requested_item shift.num is exist - process it [18:00:16]requested_item shift.opened is exist - process it [18:00:16]req_shift_opened [18:00:16]FM_GetShiftState [18:00:16]SAM_PROTO_GetShiftState [18:00:16]wFMCommunicate request_size=4 [18:00:16]MH_SAM_APDU [18:00:16]CAPDU: 80 13 01 00 [18:00:16]Write to MH i2c: E2 08 00 54 07 80 13 01 00 00 00 00 00 D8 [18:00:16]Write i2c OK [18:00:16]MH_I2C_Read... [18:00:16]Read from MH i2c: E2 [18:00:16]MH_I2C_Read... [18:00:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:00:16]Read from MH i2c: E2 0E 00 [18:00:16]MH_I2C_Read... [18:00:16]Read from MH i2c: E2 0E 00 54 07 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 BE [18:00:16]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [18:00:16]wFMCommunicate OK [18:00:16]SAM_PROTO_GetShiftState done [18:00:16]FM_GetShiftState done [18:00:16]req_shift_opened done [18:00:16]requested_item shift.open_date is exist - process it [18:00:16]req_shift_open_date [18:00:16]req_shift_open_date done [18:00:16]produce_requested_data done [18:00:16]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30426,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [18:00:16]process_action_free close_receipt [18:00:16]json_value_free [18:00:16]json_value_free done [18:00:16]process_json_proto returns [18:00:16]Send response to host [18:00:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30426,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [18:00:16]free response buf [18:00:16]execute_script done [18:00:16]execute_script returns [18:00:16]free content buf [18:00:16]Sock 9.Close socket [18:00:16]Sock 9.Thread stoped [18:00:20]OFD Sender: No OFD packet to send [18:00:25]OFD Sender: No OFD packet to send [18:00:30]OFD Sender: No OFD packet to send [18:00:35]OFD Sender: No OFD packet to send [18:00:40]OFD Sender: No OFD packet to send [18:00:45]OFD Sender: No OFD packet to send [18:00:49]accept exits with 7 [18:00:49]New connection [18:00:49]New thread 3067346276 created [18:00:49]Thread 3067489636 joined [18:00:49]Waiting for new connection... [18:00:49] Sock 7.Parse request [18:00:49]Sock 7.Check first char [18:00:49]Sock 7.First char is OK [18:00:49]request: POST /json_proto HTTP/1.0 [18:00:49]Method: POST [18:00:49]URL: /json_proto [18:00:49]Method is POST - this is cgi request [18:00:49]url: /json_proto [18:00:49]query_string will be loaded in cgi processing [18:00:49]execute_cgi json_proto POST (null) [18:00:49]execute_cgi path=json_proto method=POST [18:00:49]POST find Content-Length [18:00:49]Host: 172.17.51.3:8080 [18:00:49]Content-Length: 677 [18:00:49]Content-Type: application/json [18:00:49] [18:00:49]POST finish read [18:00:49]Found Content-Length = 677 [18:00:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342828", "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" ] } } [18:00:49]execute_script... [18:00:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342828", "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" ] } } [18:00:49]POST & json_proto [18:00:49]process_json_proto [18:00:49]json parsed OK: [18:00:49]protocol is kg_v1.0 [18:00:49]action value=close_receipt [18:00:49]process_action close_receipt [18:00:49]cmd_close_receipt [18:00:49]MH_GetDate [18:00:49]Write to MH i2c: F0 00 00 55 07 4B [18:00:49]Write i2c OK [18:00:49]MH_I2C_Read... [18:00:49]Read from MH i2c: F0 [18:00:49]MH_I2C_Read... [18:00:49]Read from MH i2c: F0 09 00 [18:00:49]MH_I2C_Read... [18:00:49]Read from MH i2c: F0 09 00 55 07 00 51 45 15 67 04 C1 95 66 26 [18:00:49]GetLastDocTimeStamp 1729447213 [18:00:49]current date 1729447249 [18:00:49]FM_GetShiftState [18:00:49]SAM_PROTO_GetShiftState [18:00:49]wFMCommunicate request_size=4 [18:00:49]MH_SAM_APDU [18:00:49]CAPDU: 80 13 01 00 [18:00:49]Write to MH i2c: E2 08 00 56 07 80 13 01 00 00 00 00 00 DA [18:00:49]Write i2c OK [18:00:49]MH_I2C_Read... [18:00:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:00:49]Read from MH i2c: E2 [18:00:49]MH_I2C_Read... [18:00:49]Read from MH i2c: E2 0E 00 [18:00:49]MH_I2C_Read... [18:00:49]Read from MH i2c: E2 0E 00 56 07 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 C0 [18:00:49]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [18:00:49]wFMCommunicate OK [18:00:49]SAM_PROTO_GetShiftState done [18:00:49]FM_GetShiftState done [18:00:49]opened in 1729384718 [18:00:49]opened+sec_in_day 1729471118 [18:00:49]quantity*price = 25020 [18:00:49]sum+1 = 25022 [18:00:49]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 СНО: Общий режим Чек 209 20.10.2024 18:00 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30427 ФПД: 244248224388436 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T180049&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30427&fm=244248224388436&tin=02508201610067®Number=0000000000186857&sum=25000 [18:00:50]StoreToDocumentArchive [18:00:50]shift 114 fd 30427 [18:00:50]save to /storage/0114/doc_00030427 [18:00:50]save last doc name /storage/0114/doc_00030427 to /storage/kkm_last_doc_name [18:00:50]save OK [18:00:50]Clear old archive folders... [18:00:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:00:50]tlvbuf is 01E1C560 [18:00:50]SAM_PROTO_ClearQueue [18:00:50]wFMCommunicate request_size=4 [18:00:50]MH_SAM_APDU [18:00:50]CAPDU: 80 09 00 00 [18:00:50]Write to MH i2c: E2 08 00 63 07 80 09 00 00 00 00 00 00 DC [18:00:50]Write i2c OK [18:00:50]MH_I2C_Read... [18:00:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:00:50]Read from MH i2c: E2 [18:00:50]MH_I2C_Read... [18:00:50]Read from MH i2c: E2 03 00 [18:00:50]MH_I2C_Read... [18:00:50]Read from MH i2c: E2 03 00 63 07 00 90 00 DE [18:00:50]RAPDU: 90 00 [18:00:50]wFMCommunicate OK [18:00:50]SAM_PROTO_ClearQueue done [18:00:50]KKMCreateOFDPacket [18:00:50]OFDProtocolAddRootSTLVToBuf [18:00:50]FM_MakeSignedData [18:00:50]FM_MakeSignedData [18:00:50]SAM_PROTO_SignData [18:00:50]wFMCommunicate request_size=4 [18:00:50]MH_SAM_APDU [18:00:50]CAPDU: 80 0D 01 02 [18:00:50]Write to MH i2c: E2 08 00 64 07 80 0D 01 02 00 00 00 00 E4 [18:00:50]Write i2c OK [18:00:50]MH_I2C_Read... [18:00:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:00:50]Read from MH i2c: E2 [18:00:50]MH_I2C_Read... [18:00:50]Read from MH i2c: E2 03 00 [18:00:50]MH_I2C_Read... [18:00:50]Read from MH i2c: E2 03 00 64 07 00 90 00 DF [18:00:50]RAPDU: 90 00 [18:00:50]wFMCommunicate OK [18:00:50]wFMCommunicate request_size=255 [18:00:50]MH_SAM_APDU [18:00: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 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 D1 00 00 00 F4 03 04 00 51 45 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 DE [18:00:50]Write to MH i2c: E2 02 01 65 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 D1 00 00 00 F4 03 04 00 51 45 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 DE 00 00 D2 [18:00:50]Write i2c OK [18:00:50]MH_I2C_Read... [18:00:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:00:50]Read from MH i2c: E2 [18:00:50]MH_I2C_Read... [18:00:50]Read from MH i2c: E2 03 00 [18:00:50]MH_I2C_Read... [18:00:50]Read from MH i2c: E2 03 00 65 07 00 90 00 E0 [18:00:50]RAPDU: 90 00 [18:00:50]wFMCommunicate OK [18:00:50]wFMCommunicate request_size=10 [18:00:50]MH_SAM_APDU [18:00:50]CAPDU: 80 0D 02 02 05 24 78 A6 D5 54 [18:00:50]Write to MH i2c: E2 0D 00 66 07 80 0D 02 02 05 00 24 78 A6 D5 54 00 00 5C [18:00:50]Write i2c OK [18:00:50]MH_I2C_Read... [18:00:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:00:50]Read from MH i2c: E2 [18:00:50]MH_I2C_Read... [18:00:50]Read from MH i2c: E2 03 00 [18:00:50]MH_I2C_Read... [18:00:50]Read from MH i2c: E2 03 00 66 07 00 90 00 E1 [18:00:50]RAPDU: 90 00 [18:00:50]wFMCommunicate OK [18:00:50]wFMCommunicate request_size=4 [18:00:50]MH_SAM_APDU [18:00:50]CAPDU: 80 0D 03 02 [18:00:50]Write to MH i2c: E2 08 00 67 07 80 0D 03 02 00 00 00 00 E9 [18:00:50]Write i2c OK [18:00:50]MH_I2C_Read... [18:00:50]OFD Sender: No OFD packet to send [18:00:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:00:50]Read from MH i2c: E2 [18:00:50]MH_I2C_Read... [18:00:50]Read from MH i2c: E2 0B 00 [18:00:50]MH_I2C_Read... [18:00:50]Read from MH i2c: E2 0B 00 67 07 00 E1 49 A6 C3 06 6D 63 9D 90 00 F0 [18:00:50]RAPDU: E1 49 A6 C3 06 6D 63 9D 90 00 [18:00:50]wFMCommunicate OK [18:00:50]SAM_PROTO_SignData done [18:00:50]FM_MakeSignedData done [18:00:50]CreateOFDProtocolMessage [18:00:50]wFMCommunicate request_size=4 [18:00:50]MH_SAM_APDU [18:00:50]CAPDU: 80 11 00 00 [18:00:50]Write to MH i2c: E2 08 00 68 07 80 11 00 00 00 00 00 00 E9 [18:00:50]Write i2c OK [18:00:50]MH_I2C_Read... [18:00:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:00:50]Read from MH i2c: E2 [18:00:50]MH_I2C_Read... [18:00:50]Read from MH i2c: E2 17 00 [18:00:50]MH_I2C_Read... [18:00:50]Read from MH i2c: E2 17 00 68 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 37 [18:00: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:00:50]wFMCommunicate OK [18:00:50]CreateOFDProtocolMessage done [18:00:50]OFDSenderStorePacket 30427 [18:00:50]StoreOFDPacket docnum=30427 [18:00: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 12 1E 07 01 4C 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 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 D1 00 00 00 F4 03 04 00 51 45 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 DE 24 78 A6 D5 54 E1 49 A6 C3 06 6D 63 9D [18:00:50]CheckFolder [18:00:50]dirname=/storage/ofd_packets [18:00:50]CheckFolder done [18:00:50]ProducePacketName [18:00:50]name=ofd_packets/00030427 [18:00:50]NVStorageSaveData ofd_packets/00030427 [18:00:50]File name is /storage/ofd_packets/00030427 [18:00:50]Write 301 bytes [18:00:50]NVStorageSaveData done [18:00:50]OFDSenderStorePacket done [18:00:50]KKMCreateOFDPacket done [18:00:50]NVStorageSaveData kkm_last_timestamp [18:00:50]File name is /storage/kkm_last_timestamp [18:00:50]Write 4 bytes [18:00:50]NVStorageSaveData done [18:00:50]ExternCall_PrintAddStr [18:00:50]wPrintStart [18:00:50]Write to MH i2c: 01 00 00 69 07 70 [18:00:50]Write i2c OK [18:00:50]MH_I2C_Read... [18:00:50]Read from MH i2c: 01 [18:00:50]MH_I2C_Read... [18:00:50]Read from MH i2c: 01 07 00 [18:00:50]MH_I2C_Read... [18:00:50]Read from MH i2c: 01 07 00 69 07 00 00 00 00 00 FF 0F 85 [18:00:50]RasterBufferAndPrint [18:00:50]line Счет N : (1)342828 [18:00:50]line ИНН: 02508201610067 [18:00:50]line Контрольно-Кассовый Чек [18:00:50]line ПРОДАЖА [18:00:50]line ТРК (МРК, ГНК) : 33 [18:00:50]line Товар: 2710124130 [18:00:50]line Аи-92-К-2 [18:00:50]line 3.740 * 66.90 [18:00:50]line = 250.21 [18:00:50]line НДС 12% НСП 1% [18:00:50]line > о реализуемом товаре [18:00:50]line ОКРУГЛЕНИЕ: -0.21 [18:00:50]line ИТОГО: 250.00 [18:00:50]line Внесено: 250.00 [18:00:50]line СДАЧА: 0.00 [18:00:50]line НСП 1% : 2.21 [18:00:50]line НДС 12% : 26.57 [18:00:50]line Наличными: 250.00 [18:00:50]line Безнал.: 0.00 [18:00:50]line Место: АЗС № 78 "Партнер Нефть" [18:00:50]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [18:00:50]line СНО: Общий режим [18:00:50]line Чек 209 20.10.2024 18:00 [18:00:50]line Смена: 114 ФФД: 1.0 [18:00:50]line ЗНМ: 0300000137 [18:00:50]line РНМ: 0000000000186857 [18:00:50]line Версия ККМ: v1.0 [18:00:50]line ФМ: 0000000002094219 [18:00:50]line ФД: 30427 [18:00:50]line ФПД: 244248224388436 [18:00:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T180049&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30427&fm=244248224388436&tin=02508201610067®Number=0000000000186857&sum=25000 [18:00:51]OFD Sender: Processing packet 30427 [packets to send 10, broken 9] [18:00:51]ProducePacketName [18:00:51]name=ofd_packets/00030427 [18:00:51]OFD Sender: To server: pG, [18:00:51]CommunicateWithHost lk.salyk.kg:30040 [18:00:51]ConnectInit lk.salyk.kg [18:00:51]written 0, free lines is 4095 [18:00:51]Connected sock=9 [18:00: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 12 1E 07 01 4C 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 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 D1 00 00 00 F4 03 04 00 51 45 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 DE 24 78 A6 D5 54 E1 49 A6 C3 06 6D 63 9D [18:00: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 BD 8D 47 00 7C 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 DB 76 00 00 F4 03 04 00 D4 EF 14 67 B6 04 01 00 00 EF 8E B9 67 2A A8 22 67 [18:00:51]CommunicateWithHost err = 0 [18:00:51]CheckOFDResponse [18:00:51]1017 (14) - 77093643461234 [18:00:51]1041 (16) - 0000000002094219 [18:00:51]1040 (4) - 30427 [18:00:51]1012 (4) - 20.10.2024 11:56 [18:00:51]1206 (1) - 0 [18:00:51]OFD Sender: Remove packet 30427 [18:00:51]ProducePacketName [18:00:51]name=ofd_packets/00030427 [18:00:51]NVStorageDeleteData [18:00:51]Write to MH i2c: 01 00 00 94 07 9B [18:00:51]Write i2c OK [18:00:51]MH_I2C_Read... [18:00:51]Read from MH i2c: 01 [18:00:51]MH_I2C_Read... [18:00:51]Read from MH i2c: 01 07 00 [18:00:51]MH_I2C_Read... [18:00:51]Read from MH i2c: 01 07 00 94 07 00 00 00 00 00 F5 0C A3 [18:00:51]RasterBufferAndPrint [18:00:51]line [18:00:51]line [18:00:51]line [18:00:51]line [18:00:51]line [18:00:51]written 0, free lines is 3323 [18:00:51]MH_Cut [18:00:51]Write to MH i2c: D1 01 00 9B 07 01 74 [18:00:51]Write i2c OK [18:00:51]MH_I2C_Read... [18:00:51]Read from MH i2c: D1 [18:00:51]MH_I2C_Read... [18:00:51]Read from MH i2c: D1 01 00 [18:00:51]MH_I2C_Read... [18:00:51]Read from MH i2c: D1 01 00 9B 07 00 73 [18:00:51]Write to MH i2c: 01 00 00 9C 07 A3 [18:00:51]Write i2c OK [18:00:51]MH_I2C_Read... [18:00:52]OFD Sender: No OFD packet to send [18:00:52]*** Cut start [18:00:52]*** Partial cut [18:00:52]*** CUTSNS_PIN = 1 [18:00:52]*** CUTSNS_PIN = 0 [18:00:52]*** Brake cut motor [18:00:53]Read from MH i2c: 01 [18:00:53]MH_I2C_Read... [18:00:53]*** Stop cut motor [18:00:53]*** Cut end [18:00:53]Read from MH i2c: 01 07 00 [18:00:53]MH_I2C_Read... [18:00:53]Read from MH i2c: 01 07 00 9C 07 00 00 00 00 00 FF 0F B8 [18:00:53]process_action close_receipt done [18:00:53]requested_data is exist [18:00:53]produce_requested_data [18:00:53]requested_item fm.sn is exist - process it [18:00:53]wFMCommunicate request_size=4 [18:00:53]MH_SAM_APDU [18:00:53]CAPDU: 80 11 00 00 [18:00:53]Write to MH i2c: E2 08 00 9D 07 80 11 00 00 00 00 00 00 1E [18:00:53]Write i2c OK [18:00:53]MH_I2C_Read... [18:00:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:00:53]Read from MH i2c: E2 [18:00:53]MH_I2C_Read... [18:00:53]Read from MH i2c: E2 17 00 [18:00:53]MH_I2C_Read... [18:00:53]Read from MH i2c: E2 17 00 9D 07 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:00: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:00:53]wFMCommunicate OK [18:00:53]requested_item fd.num is exist - process it [18:00:53]SAM_PROTO_GetFieldsCounters [18:00:53]wFMCommunicate request_size=4 [18:00:53]MH_SAM_APDU [18:00:53]CAPDU: 80 13 00 00 [18:00:53]Write to MH i2c: E2 08 00 9E 07 80 13 00 00 00 00 00 00 21 [18:00:53]Write i2c OK [18:00:53]MH_I2C_Read... [18:00:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:00:53]Read from MH i2c: E2 [18:00:53]MH_I2C_Read... [18:00:53]Read from MH i2c: E2 62 00 [18:00:53]MH_I2C_Read... [18:00:53]Read from MH i2c: E2 62 00 9E 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 7D [18:00: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 DB 76 00 00 0E 04 04 00 72 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:00:53]wFMCommunicate OK [18:00:53]SAM_PROTO_GetFieldsCounters done [18:00:53]requested_item shift.num is exist - process it [18:00:53]requested_item shift.opened is exist - process it [18:00:53]req_shift_opened [18:00:53]FM_GetShiftState [18:00:53]SAM_PROTO_GetShiftState [18:00:53]wFMCommunicate request_size=4 [18:00:53]MH_SAM_APDU [18:00:53]CAPDU: 80 13 01 00 [18:00:53]Write to MH i2c: E2 08 00 9F 07 80 13 01 00 00 00 00 00 23 [18:00:53]Write i2c OK [18:00:53]MH_I2C_Read... [18:00:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:00:53]Read from MH i2c: E2 [18:00:53]MH_I2C_Read... [18:00:53]Read from MH i2c: E2 0E 00 [18:00:53]MH_I2C_Read... [18:00:53]Read from MH i2c: E2 0E 00 9F 07 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 09 [18:00:53]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [18:00:53]wFMCommunicate OK [18:00:53]SAM_PROTO_GetShiftState done [18:00:53]FM_GetShiftState done [18:00:53]req_shift_opened done [18:00:53]requested_item shift.open_date is exist - process it [18:00:53]req_shift_open_date [18:00:53]req_shift_open_date done [18:00:53]produce_requested_data done [18:00:53]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30427,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [18:00:53]process_action_free close_receipt [18:00:53]json_value_free [18:00:53]json_value_free done [18:00:53]process_json_proto returns [18:00:53]Send response to host [18:00:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30427,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [18:00:53]free response buf [18:00:53]execute_script done [18:00:53]execute_script returns [18:00:53]free content buf [18:00:53]Sock 7.Close socket [18:00:53]Sock 7.Thread stoped [18:00:57]OFD Sender: No OFD packet to send [18:01:02]OFD Sender: No OFD packet to send [18:01:07]OFD Sender: No OFD packet to send [18:01:12]OFD Sender: No OFD packet to send [18:01:17]OFD Sender: No OFD packet to send [18:01:22]OFD Sender: No OFD packet to send [18:01:27]OFD Sender: No OFD packet to send [18:01:32]OFD Sender: No OFD packet to send [18:01:37]OFD Sender: No OFD packet to send [18:01:42]OFD Sender: No OFD packet to send [18:01:47]OFD Sender: No OFD packet to send [18:01:52]OFD Sender: No OFD packet to send [18:01:57]OFD Sender: No OFD packet to send [18:02:02]OFD Sender: No OFD packet to send [18:02:07]OFD Sender: No OFD packet to send [18:02:12]OFD Sender: No OFD packet to send [18:02:17]OFD Sender: No OFD packet to send [18:02:22]OFD Sender: No OFD packet to send [18:02:27]OFD Sender: No OFD packet to send [18:02:32]OFD Sender: No OFD packet to send [18:02:37]OFD Sender: No OFD packet to send [18:02:42]OFD Sender: No OFD packet to send [18:02:47]OFD Sender: No OFD packet to send [18:02:52]OFD Sender: No OFD packet to send [18:02:57]OFD Sender: No OFD packet to send [18:03:02]OFD Sender: No OFD packet to send [18:03:07]OFD Sender: No OFD packet to send [18:03:12]OFD Sender: No OFD packet to send [18:03:17]OFD Sender: No OFD packet to send [18:03:22]OFD Sender: No OFD packet to send [18:03:27]OFD Sender: No OFD packet to send [18:03:32]OFD Sender: No OFD packet to send [18:03:37]OFD Sender: No OFD packet to send [18:03:42]OFD Sender: No OFD packet to send [18:03:47]OFD Sender: No OFD packet to send [18:03:52]OFD Sender: No OFD packet to send [18:03:57]OFD Sender: No OFD packet to send [18:04:02]OFD Sender: No OFD packet to send [18:04:07]OFD Sender: No OFD packet to send [18:04:12]OFD Sender: No OFD packet to send [18:04:17]OFD Sender: No OFD packet to send [18:04:22]OFD Sender: No OFD packet to send [18:04:27]OFD Sender: No OFD packet to send [18:04:32]OFD Sender: No OFD packet to send [18:04:37]OFD Sender: No OFD packet to send [18:04:42]OFD Sender: No OFD packet to send [18:04:45]accept exits with 10 [18:04:45]New connection [18:04:45]New thread 3067489636 created [18:04:45]Thread 3067346276 joined [18:04:45]Waiting for new connection... [18:04:45] Sock 10.Parse request [18:04:45]Sock 10.Check first char [18:04:45]Sock 10.First char is OK [18:04:45]request: POST /json_proto HTTP/1.0 [18:04:45]Method: POST [18:04:45]URL: /json_proto [18:04:45]Method is POST - this is cgi request [18:04:45]url: /json_proto [18:04:45]query_string will be loaded in cgi processing [18:04:45]execute_cgi json_proto POST (null) [18:04:45]execute_cgi path=json_proto method=POST [18:04:45]POST find Content-Length [18:04:45]Host: 172.17.51.3:8080 [18:04:45]Content-Length: 677 [18:04:45]Content-Type: application/json [18:04:45] [18:04:45]POST finish read [18:04:45]Found Content-Length = 677 [18:04:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342829", "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" ] } } [18:04:45]execute_script... [18:04: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)342829", "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" ] } } [18:04:45]POST & json_proto [18:04:45]process_json_proto [18:04:45]json parsed OK: [18:04:45]protocol is kg_v1.0 [18:04:45]action value=close_receipt [18:04:45]process_action close_receipt [18:04:45]cmd_close_receipt [18:04:45]MH_GetDate [18:04:45]Write to MH i2c: F0 00 00 A0 07 96 [18:04:45]Write i2c OK [18:04:45]MH_I2C_Read... [18:04:45]Read from MH i2c: F0 [18:04:45]MH_I2C_Read... [18:04:45]Read from MH i2c: F0 09 00 [18:04:45]MH_I2C_Read... [18:04:45]Read from MH i2c: F0 09 00 A0 07 00 3E 46 15 67 04 C1 95 66 5F [18:04:45]GetLastDocTimeStamp 1729447249 [18:04:45]current date 1729447486 [18:04:45]FM_GetShiftState [18:04:45]SAM_PROTO_GetShiftState [18:04:45]wFMCommunicate request_size=4 [18:04:45]MH_SAM_APDU [18:04:45]CAPDU: 80 13 01 00 [18:04:45]Write to MH i2c: E2 08 00 A1 07 80 13 01 00 00 00 00 00 25 [18:04:45]Write i2c OK [18:04:45]MH_I2C_Read... [18:04:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:04:46]Read from MH i2c: E2 [18:04:46]MH_I2C_Read... [18:04:46]Read from MH i2c: E2 0E 00 [18:04:46]MH_I2C_Read... [18:04:46]Read from MH i2c: E2 0E 00 A1 07 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 0B [18:04:46]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [18:04:46]wFMCommunicate OK [18:04:46]SAM_PROTO_GetShiftState done [18:04:46]FM_GetShiftState done [18:04:46]opened in 1729384718 [18:04:46]opened+sec_in_day 1729471118 [18:04:46]quantity*price = 20003 [18:04:46]sum+1 = 20004 [18:04:46]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 СНО: Общий режим Чек 210 20.10.2024 18:04 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30428 ФПД: 249379252702136 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T180446&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30428&fm=249379252702136&tin=02508201610067®Number=0000000000186857&sum=20000 [18:04:47]StoreToDocumentArchive [18:04:47]shift 114 fd 30428 [18:04:47]save to /storage/0114/doc_00030428 [18:04:47]save last doc name /storage/0114/doc_00030428 to /storage/kkm_last_doc_name [18:04:47]save OK [18:04:47]Clear old archive folders... [18:04:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:04:47]tlvbuf is 01DB5770 [18:04:47]SAM_PROTO_ClearQueue [18:04:47]wFMCommunicate request_size=4 [18:04:47]MH_SAM_APDU [18:04:47]CAPDU: 80 09 00 00 [18:04:47]Write to MH i2c: E2 08 00 AE 07 80 09 00 00 00 00 00 00 27 [18:04:47]Write i2c OK [18:04:47]MH_I2C_Read... [18:04:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:04:47]Read from MH i2c: E2 [18:04:47]MH_I2C_Read... [18:04:47]Read from MH i2c: E2 03 00 [18:04:47]MH_I2C_Read... [18:04:47]Read from MH i2c: E2 03 00 AE 07 00 90 00 29 [18:04:47]RAPDU: 90 00 [18:04:47]wFMCommunicate OK [18:04:47]SAM_PROTO_ClearQueue done [18:04:47]KKMCreateOFDPacket [18:04:47]OFDProtocolAddRootSTLVToBuf [18:04:47]FM_MakeSignedData [18:04:47]FM_MakeSignedData [18:04:47]SAM_PROTO_SignData [18:04:47]wFMCommunicate request_size=4 [18:04:47]MH_SAM_APDU [18:04:47]CAPDU: 80 0D 01 02 [18:04:47]Write to MH i2c: E2 08 00 AF 07 80 0D 01 02 00 00 00 00 2F [18:04:47]Write i2c OK [18:04:47]MH_I2C_Read... [18:04:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:04:47]Read from MH i2c: E2 [18:04:47]MH_I2C_Read... [18:04:47]Read from MH i2c: E2 03 00 [18:04:47]MH_I2C_Read... [18:04:47]Read from MH i2c: E2 03 00 AF 07 00 90 00 2A [18:04:47]RAPDU: 90 00 [18:04:47]wFMCommunicate OK [18:04:47]wFMCommunicate request_size=255 [18:04:47]MH_SAM_APDU [18:04: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 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 D2 00 00 00 F4 03 04 00 3E 46 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 E2 [18:04:47]Write to MH i2c: E2 02 01 B0 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 D2 00 00 00 F4 03 04 00 3E 46 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 E2 00 00 FA [18:04:47]Write i2c OK [18:04:47]MH_I2C_Read... [18:04:47]OFD Sender: No OFD packet to send [18:04:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:04:47]Read from MH i2c: E2 [18:04:47]MH_I2C_Read... [18:04:47]Read from MH i2c: E2 03 00 [18:04:47]MH_I2C_Read... [18:04:47]Read from MH i2c: E2 03 00 B0 07 00 90 00 2B [18:04:47]RAPDU: 90 00 [18:04:47]wFMCommunicate OK [18:04:47]wFMCommunicate request_size=10 [18:04:47]MH_SAM_APDU [18:04:47]CAPDU: 80 0D 02 02 05 CF 21 C5 8B B8 [18:04:47]Write to MH i2c: E2 0D 00 B1 07 80 0D 02 02 05 00 CF 21 C5 8B B8 00 00 34 [18:04:47]Write i2c OK [18:04:47]MH_I2C_Read... [18:04:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:04:47]Read from MH i2c: E2 [18:04:47]MH_I2C_Read... [18:04:47]Read from MH i2c: E2 03 00 [18:04:47]MH_I2C_Read... [18:04:47]Read from MH i2c: E2 03 00 B1 07 00 90 00 2C [18:04:47]RAPDU: 90 00 [18:04:47]wFMCommunicate OK [18:04:47]wFMCommunicate request_size=4 [18:04:47]MH_SAM_APDU [18:04:47]CAPDU: 80 0D 03 02 [18:04:47]Write to MH i2c: E2 08 00 B2 07 80 0D 03 02 00 00 00 00 34 [18:04:47]Write i2c OK [18:04:47]MH_I2C_Read... [18:04:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:04:47]Read from MH i2c: E2 [18:04:47]MH_I2C_Read... [18:04:47]Read from MH i2c: E2 0B 00 [18:04:47]MH_I2C_Read... [18:04:47]Read from MH i2c: E2 0B 00 B2 07 00 01 EF A4 90 45 9D 27 B7 90 00 19 [18:04:47]RAPDU: 01 EF A4 90 45 9D 27 B7 90 00 [18:04:47]wFMCommunicate OK [18:04:47]SAM_PROTO_SignData done [18:04:47]FM_MakeSignedData done [18:04:47]CreateOFDProtocolMessage [18:04:47]wFMCommunicate request_size=4 [18:04:47]MH_SAM_APDU [18:04:47]CAPDU: 80 11 00 00 [18:04:47]Write to MH i2c: E2 08 00 B3 07 80 11 00 00 00 00 00 00 34 [18:04:47]Write i2c OK [18:04:47]MH_I2C_Read... [18:04:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:04:47]Read from MH i2c: E2 [18:04:47]MH_I2C_Read... [18:04:47]Read from MH i2c: E2 17 00 [18:04:47]MH_I2C_Read... [18:04:47]Read from MH i2c: E2 17 00 B3 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 82 [18:04: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:04:47]wFMCommunicate OK [18:04:47]CreateOFDProtocolMessage done [18:04:47]OFDSenderStorePacket 30428 [18:04:47]StoreOFDPacket docnum=30428 [18:04: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 6C 35 07 01 2C 46 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 D2 00 00 00 F4 03 04 00 3E 46 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 E2 CF 21 C5 8B B8 01 EF A4 90 45 9D 27 B7 [18:04:47]CheckFolder [18:04:47]dirname=/storage/ofd_packets [18:04:47]CheckFolder done [18:04:47]ProducePacketName [18:04:47]name=ofd_packets/00030428 [18:04:47]NVStorageSaveData ofd_packets/00030428 [18:04:47]File name is /storage/ofd_packets/00030428 [18:04:47]Write 301 bytes [18:04:47]NVStorageSaveData done [18:04:47]OFDSenderStorePacket done [18:04:47]KKMCreateOFDPacket done [18:04:47]NVStorageSaveData kkm_last_timestamp [18:04:47]File name is /storage/kkm_last_timestamp [18:04:47]Write 4 bytes [18:04:47]NVStorageSaveData done [18:04:47]ExternCall_PrintAddStr [18:04:47]wPrintStart [18:04:47]Write to MH i2c: 01 00 00 B4 07 BB [18:04:47]Write i2c OK [18:04:47]MH_I2C_Read... [18:04:47]Read from MH i2c: 01 [18:04:47]MH_I2C_Read... [18:04:47]Read from MH i2c: 01 07 00 [18:04:47]MH_I2C_Read... [18:04:47]Read from MH i2c: 01 07 00 B4 07 00 00 00 00 00 FF 0F D0 [18:04:47]RasterBufferAndPrint [18:04:47]line Счет N : (1)342829 [18:04:47]line ИНН: 02508201610067 [18:04:47]line Контрольно-Кассовый Чек [18:04:47]line ПРОДАЖА [18:04:47]line ТРК (МРК, ГНК) : 63 [18:04:47]line Товар: 2710124130 [18:04:47]line Аи-92-К-2 [18:04:47]line 2.990 * 66.90 [18:04:47]line = 200.03 [18:04:47]line НДС 12% НСП 1% [18:04:47]line > о реализуемом товаре [18:04:47]line ОКРУГЛЕНИЕ: -0.03 [18:04:47]line ИТОГО: 200.00 [18:04:47]line Внесено: 200.00 [18:04:47]line СДАЧА: 0.00 [18:04:47]line НСП 1% : 1.77 [18:04:47]line НДС 12% : 21.24 [18:04:47]line Наличными: 200.00 [18:04:47]line Безнал.: 0.00 [18:04:47]line Место: АЗС № 78 "Партнер Нефть" [18:04:47]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [18:04:47]line СНО: Общий режим [18:04:47]line Чек 210 20.10.2024 18:04 [18:04:47]line Смена: 114 ФФД: 1.0 [18:04:47]line ЗНМ: 0300000137 [18:04:47]line РНМ: 0000000000186857 [18:04:47]line Версия ККМ: v1.0 [18:04:47]line ФМ: 0000000002094219 [18:04:47]line ФД: 30428 [18:04:47]line ФПД: 249379252702136 [18:04:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T180446&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30428&fm=249379252702136&tin=02508201610067®Number=0000000000186857&sum=20000 [18:04:47]OFD Sender: Processing packet 30428 [packets to send 10, broken 9] [18:04:47]ProducePacketName [18:04:47]name=ofd_packets/00030428 [18:04:47]OFD Sender: To server: pG, [18:04:47]CommunicateWithHost lk.salyk.kg:30040 [18:04:47]ConnectInit lk.salyk.kg [18:04:47]written 0, free lines is 4095 [18:04:48]Connected sock=9 [18:04: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 6C 35 07 01 2C 46 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 D2 00 00 00 F4 03 04 00 3E 46 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 E2 CF 21 C5 8B B8 01 EF A4 90 45 9D 27 B7 [18:04: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 BC F7 47 00 56 DE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 DC 76 00 00 F4 03 04 00 C1 F0 14 67 B6 04 01 00 00 2F EF 4A 50 26 37 77 23 [18:04:48]CommunicateWithHost err = 0 [18:04:48]CheckOFDResponse [18:04:48]1017 (14) - 77093643461234 [18:04:48]1041 (16) - 0000000002094219 [18:04:48]1040 (4) - 30428 [18:04:48]1012 (4) - 20.10.2024 12:00 [18:04:48]1206 (1) - 0 [18:04:48]OFD Sender: Remove packet 30428 [18:04:48]ProducePacketName [18:04:48]name=ofd_packets/00030428 [18:04:48]NVStorageDeleteData [18:04:48]Write to MH i2c: 01 00 00 DF 07 E6 [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 DF 07 00 00 00 00 00 F1 0C EA [18:04:48]RasterBufferAndPrint [18:04:48]line [18:04:48]line [18:04:48]line [18:04:48]line [18:04:48]line [18:04:48]written 0, free lines is 3319 [18:04:48]MH_Cut [18:04:48]Write to MH i2c: D1 01 00 E6 07 01 BF [18:04:48]Write i2c OK [18:04:48]MH_I2C_Read... [18:04:48]Read from MH i2c: D1 [18:04:48]MH_I2C_Read... [18:04:48]Read from MH i2c: D1 01 00 [18:04:48]MH_I2C_Read... [18:04:48]Read from MH i2c: D1 01 00 E6 07 00 BE [18:04:48]Write to MH i2c: 01 00 00 E7 07 EE [18:04:48]Write i2c OK [18:04:48]MH_I2C_Read... [18:04:48]OFD Sender: No OFD packet to send [18:04:49]*** Cut start [18:04:49]*** Partial cut [18:04:49]*** CUTSNS_PIN = 1 [18:04:49]*** CUTSNS_PIN = 0 [18:04:49]*** Brake cut motor [18:04:49]Read from MH i2c: 01 [18:04:49]MH_I2C_Read... [18:04:49]*** Stop cut motor [18:04:49]*** Cut end [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 E7 07 00 00 00 00 00 FF 0F 03 [18:04:49]process_action close_receipt done [18:04:49]requested_data is exist [18:04:49]produce_requested_data [18:04:49]requested_item fm.sn is exist - process it [18:04:49]wFMCommunicate request_size=4 [18:04:49]MH_SAM_APDU [18:04:49]CAPDU: 80 11 00 00 [18:04:49]Write to MH i2c: E2 08 00 E8 07 80 11 00 00 00 00 00 00 69 [18:04:49]Write i2c OK [18:04:49]MH_I2C_Read... [18:04:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:04:49]Read from MH i2c: E2 [18:04:49]MH_I2C_Read... [18:04:49]Read from MH i2c: E2 17 00 [18:04:49]MH_I2C_Read... [18:04:49]Read from MH i2c: E2 17 00 E8 07 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: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 [18:04:49]wFMCommunicate OK [18:04:49]requested_item fd.num is exist - process it [18:04:49]SAM_PROTO_GetFieldsCounters [18:04:49]wFMCommunicate request_size=4 [18:04:49]MH_SAM_APDU [18:04:49]CAPDU: 80 13 00 00 [18:04:49]Write to MH i2c: E2 08 00 E9 07 80 13 00 00 00 00 00 00 6C [18:04:49]Write i2c OK [18:04:49]MH_I2C_Read... [18:04:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:04:49]Read from MH i2c: E2 [18:04:49]MH_I2C_Read... [18:04:49]Read from MH i2c: E2 62 00 [18:04:49]MH_I2C_Read... [18:04:49]Read from MH i2c: E2 62 00 E9 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 CC [18:04: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 DC 76 00 00 0E 04 04 00 72 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:04:49]wFMCommunicate OK [18:04:49]SAM_PROTO_GetFieldsCounters done [18:04:49]requested_item shift.num is exist - process it [18:04:49]requested_item shift.opened is exist - process it [18:04:49]req_shift_opened [18:04:49]FM_GetShiftState [18:04:49]SAM_PROTO_GetShiftState [18:04:49]wFMCommunicate request_size=4 [18:04:49]MH_SAM_APDU [18:04:49]CAPDU: 80 13 01 00 [18:04:49]Write to MH i2c: E2 08 00 EA 07 80 13 01 00 00 00 00 00 6E [18:04:49]Write i2c OK [18:04:49]MH_I2C_Read... [18:04:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:04:49]Read from MH i2c: E2 [18:04:49]MH_I2C_Read... [18:04:49]Read from MH i2c: E2 0E 00 [18:04:49]MH_I2C_Read... [18:04:49]Read from MH i2c: E2 0E 00 EA 07 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 54 [18:04:49]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [18:04:49]wFMCommunicate OK [18:04:49]SAM_PROTO_GetShiftState done [18:04:49]FM_GetShiftState done [18:04:49]req_shift_opened done [18:04:49]requested_item shift.open_date is exist - process it [18:04:49]req_shift_open_date [18:04:49]req_shift_open_date done [18:04:49]produce_requested_data done [18:04:49]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30428,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [18:04:49]process_action_free close_receipt [18:04:49]json_value_free [18:04:49]json_value_free done [18:04:49]process_json_proto returns [18:04:49]Send response to host [18:04:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30428,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [18:04:49]free response buf [18:04:49]execute_script done [18:04:49]execute_script returns [18:04:49]free content buf [18:04:49]Sock 10.Close socket [18:04:49]Sock 10.Thread stoped [18:04:53]OFD Sender: No OFD packet to send [18:04:58]OFD Sender: No OFD packet to send [18:05:03]OFD Sender: No OFD packet to send [18:05:08]OFD Sender: No OFD packet to send [18:05:13]OFD Sender: No OFD packet to send [18:05:18]OFD Sender: No OFD packet to send [18:05:23]OFD Sender: No OFD packet to send [18:05:28]OFD Sender: No OFD packet to send [18:05:33]OFD Sender: No OFD packet to send [18:05:38]OFD Sender: No OFD packet to send [18:05:43]OFD Sender: No OFD packet to send [18:05:48]OFD Sender: No OFD packet to send [18:05:53]OFD Sender: No OFD packet to send [18:05:58]OFD Sender: No OFD packet to send [18:06:03]OFD Sender: No OFD packet to send [18:06:08]OFD Sender: No OFD packet to send [18:06:13]OFD Sender: No OFD packet to send [18:06:18]OFD Sender: No OFD packet to send [18:06:23]OFD Sender: No OFD packet to send [18:06:28]OFD Sender: No OFD packet to send [18:06:33]OFD Sender: No OFD packet to send [18:06:38]OFD Sender: No OFD packet to send [18:06:43]OFD Sender: No OFD packet to send [18:06:48]OFD Sender: No OFD packet to send [18:06:53]OFD Sender: No OFD packet to send [18:06:58]OFD Sender: No OFD packet to send [18:07:03]OFD Sender: No OFD packet to send [18:07:08]OFD Sender: No OFD packet to send [18:07:13]OFD Sender: No OFD packet to send [18:07:18]OFD Sender: No OFD packet to send [18:07:23]OFD Sender: No OFD packet to send [18:07:28]OFD Sender: No OFD packet to send [18:07:33]OFD Sender: No OFD packet to send [18:07:38]OFD Sender: No OFD packet to send [18:07:43]OFD Sender: No OFD packet to send [18:07:48]OFD Sender: No OFD packet to send [18:07:53]OFD Sender: No OFD packet to send [18:07:58]OFD Sender: No OFD packet to send [18:08:02]accept exits with 7 [18:08:02]New connection [18:08:02]New thread 3067346276 created [18:08:02]Thread 3067489636 joined [18:08:02]Waiting for new connection... [18:08:02] Sock 7.Parse request [18:08:02]Sock 7.Check first char [18:08:02]Sock 7.First char is OK [18:08:02]request: POST /json_proto HTTP/1.0 [18:08:02]Method: POST [18:08:02]URL: /json_proto [18:08:02]Method is POST - this is cgi request [18:08:02]url: /json_proto [18:08:02]query_string will be loaded in cgi processing [18:08:02]execute_cgi json_proto POST (null) [18:08:02]execute_cgi path=json_proto method=POST [18:08:02]POST find Content-Length [18:08:02]Host: 172.17.51.3:8080 [18:08:02]Content-Length: 977 [18:08:02]Content-Type: application/json [18:08:02] [18:08:02]POST finish read [18:08:02]Found Content-Length = 977 [18:08:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342830", "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" : 75.20, "quantity" : 51.600, "sum" : 3880.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 78\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 51.60 \u0441\u043E\u043C", "deposit" : 3880.00, "total" : 3880.00, "payments": [ { "type": 0, "sum" : 3880.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:08:02]execute_script... [18:08: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)342830", "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" : 75.20, "quantity" : 51.600, "sum" : 3880.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 78\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 51.60 \u0441\u043E\u043C", "deposit" : 3880.00, "total" : 3880.00, "payments": [ { "type": 0, "sum" : 3880.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:08:02]POST & json_proto [18:08:02]process_json_proto [18:08:02]json parsed OK: [18:08:02]protocol is kg_v1.0 [18:08:02]action value=close_receipt [18:08:02]process_action close_receipt [18:08:02]cmd_close_receipt [18:08:02]MH_GetDate [18:08:02]Write to MH i2c: F0 00 00 EB 07 E1 [18:08:02]Write i2c OK [18:08:02]MH_I2C_Read... [18:08:02]Read from MH i2c: F0 [18:08:02]MH_I2C_Read... [18:08:02]Read from MH i2c: F0 09 00 [18:08:02]MH_I2C_Read... [18:08:02]Read from MH i2c: F0 09 00 EB 07 00 02 47 15 67 04 C1 95 66 6F [18:08:02]GetLastDocTimeStamp 1729447486 [18:08:02]current date 1729447682 [18:08:02]FM_GetShiftState [18:08:02]SAM_PROTO_GetShiftState [18:08:02]wFMCommunicate request_size=4 [18:08:02]MH_SAM_APDU [18:08:02]CAPDU: 80 13 01 00 [18:08:02]Write to MH i2c: E2 08 00 EC 07 80 13 01 00 00 00 00 00 70 [18:08:02]Write i2c OK [18:08:02]MH_I2C_Read... [18:08:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:08:02]Read from MH i2c: E2 [18:08:02]MH_I2C_Read... [18:08:02]Read from MH i2c: E2 0E 00 [18:08:02]MH_I2C_Read... [18:08:02]Read from MH i2c: E2 0E 00 EC 07 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 56 [18:08:02]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [18:08:02]wFMCommunicate OK [18:08:02]SAM_PROTO_GetShiftState done [18:08:02]FM_GetShiftState done [18:08:02]opened in 1729384718 [18:08:02]opened+sec_in_day 1729471118 [18:08:02]quantity*price = 388032 [18:08:02]sum+1 = 388033 [18:08:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 3880.00 Внесено: 3880.00 СДАЧА: 0.00 НСП 1% : 34.34 НДС 12% : 412.07 Наличными: 3880.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 211 20.10.2024 18:08 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Дисконтная программа ДТ номер 78 сэкономлено 51.60 сом ФМ: 0000000002094219 ФД: 30429 ФПД: 79773511636618 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T180802&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30429&fm=79773511636618&tin=02508201610067®Number=0000000000186857&sum=388000 [18:08:03]StoreToDocumentArchive [18:08:03]shift 114 fd 30429 [18:08:03]save to /storage/0114/doc_00030429 [18:08:03]save last doc name /storage/0114/doc_00030429 to /storage/kkm_last_doc_name [18:08:03]save OK [18:08:03]Clear old archive folders... [18:08:03]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:08:03]tlvbuf is 01E30960 [18:08:03]SAM_PROTO_ClearQueue [18:08:03]wFMCommunicate request_size=4 [18:08:03]MH_SAM_APDU [18:08:03]CAPDU: 80 09 00 00 [18:08:03]Write to MH i2c: E2 08 00 F9 07 80 09 00 00 00 00 00 00 72 [18:08:03]Write i2c OK [18:08:03]MH_I2C_Read... [18:08:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:08:03]Read from MH i2c: E2 [18:08:03]MH_I2C_Read... [18:08:03]Read from MH i2c: E2 03 00 [18:08:03]MH_I2C_Read... [18:08:03]Read from MH i2c: E2 03 00 F9 07 00 90 00 74 [18:08:03]RAPDU: 90 00 [18:08:03]wFMCommunicate OK [18:08:03]SAM_PROTO_ClearQueue done [18:08:03]KKMCreateOFDPacket [18:08:03]OFDProtocolAddRootSTLVToBuf [18:08:03]FM_MakeSignedData [18:08:03]FM_MakeSignedData [18:08:03]SAM_PROTO_SignData [18:08:03]wFMCommunicate request_size=4 [18:08:03]MH_SAM_APDU [18:08:03]CAPDU: 80 0D 01 02 [18:08:03]Write to MH i2c: E2 08 00 FA 07 80 0D 01 02 00 00 00 00 7A [18:08:03]Write i2c OK [18:08:03]MH_I2C_Read... [18:08:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:08:03]Read from MH i2c: E2 [18:08:03]MH_I2C_Read... [18:08:03]Read from MH i2c: E2 03 00 [18:08:03]MH_I2C_Read... [18:08:03]Read from MH i2c: E2 03 00 FA 07 00 90 00 75 [18:08:03]RAPDU: 90 00 [18:08:03]wFMCommunicate OK [18:08:03]wFMCommunicate request_size=255 [18:08:03]MH_SAM_APDU [18:08:03]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 90 C9 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 C0 EB 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 EB 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 A0 00 00 00 00 07 04 06 00 A0 EB 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 02 47 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 48 8D B7 D2 [18:08:03]Write to MH i2c: E2 02 01 FB 07 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 90 C9 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 C0 EB 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 EB 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 A0 00 00 00 00 07 04 06 00 A0 EB 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 02 47 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 48 8D B7 D2 00 00 48 [18:08:03]Write i2c OK [18:08:03]MH_I2C_Read... [18:08:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:08:03]Read from MH i2c: E2 [18:08:03]MH_I2C_Read... [18:08:03]Read from MH i2c: E2 03 00 [18:08:03]MH_I2C_Read... [18:08:03]Read from MH i2c: E2 03 00 FB 07 00 90 00 76 [18:08:03]RAPDU: 90 00 [18:08:03]wFMCommunicate OK [18:08:03]wFMCommunicate request_size=7 [18:08:03]MH_SAM_APDU [18:08:03]CAPDU: 80 0D 02 02 02 D6 8A [18:08:03]Write to MH i2c: E2 0A 00 FC 07 80 0D 02 02 02 00 D6 8A 00 00 E1 [18:08:03]Write i2c OK [18:08:03]MH_I2C_Read... [18:08:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:08:03]Read from MH i2c: E2 [18:08:03]MH_I2C_Read... [18:08:03]Read from MH i2c: E2 03 00 [18:08:03]MH_I2C_Read... [18:08:03]Read from MH i2c: E2 03 00 FC 07 00 90 00 77 [18:08:03]RAPDU: 90 00 [18:08:03]wFMCommunicate OK [18:08:03]wFMCommunicate request_size=4 [18:08:03]MH_SAM_APDU [18:08:03]CAPDU: 80 0D 03 02 [18:08:03]Write to MH i2c: E2 08 00 FD 07 80 0D 03 02 00 00 00 00 7F [18:08:03]Write i2c OK [18:08:03]MH_I2C_Read... [18:08:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:08:03]Read from MH i2c: E2 [18:08:03]MH_I2C_Read... [18:08:03]Read from MH i2c: E2 0B 00 [18:08:03]MH_I2C_Read... [18:08:03]Read from MH i2c: E2 0B 00 FD 07 00 C5 B3 12 8D A8 26 7A 37 90 00 16 [18:08:03]RAPDU: C5 B3 12 8D A8 26 7A 37 90 00 [18:08:03]wFMCommunicate OK [18:08:03]SAM_PROTO_SignData done [18:08:03]FM_MakeSignedData done [18:08:03]CreateOFDProtocolMessage [18:08:03]wFMCommunicate request_size=4 [18:08:03]MH_SAM_APDU [18:08:03]CAPDU: 80 11 00 00 [18:08:03]Write to MH i2c: E2 08 00 FE 07 80 11 00 00 00 00 00 00 7F [18:08:03]Write i2c OK [18:08:03]MH_I2C_Read... [18:08:03]OFD Sender: No OFD packet to send [18:08:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:08:03]Read from MH i2c: E2 [18:08:03]MH_I2C_Read... [18:08:03]Read from MH i2c: E2 17 00 [18:08:03]MH_I2C_Read... [18:08:03]Read from MH i2c: E2 17 00 FE 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 CD [18:08: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:08:03]wFMCommunicate OK [18:08:03]CreateOFDProtocolMessage done [18:08:03]OFDSenderStorePacket 30429 [18:08:03]StoreOFDPacket docnum=30429 [18:08: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 C3 BD 04 01 43 3C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 90 C9 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 C0 EB 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 EB 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 A0 00 00 00 00 07 04 06 00 A0 EB 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 02 47 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 48 8D B7 D2 D6 8A C5 B3 12 8D A8 26 7A 37 [18:08:03]CheckFolder [18:08:03]dirname=/storage/ofd_packets [18:08:03]CheckFolder done [18:08:03]ProducePacketName [18:08:03]name=ofd_packets/00030429 [18:08:03]NVStorageSaveData ofd_packets/00030429 [18:08:03]File name is /storage/ofd_packets/00030429 [18:08:03]Write 298 bytes [18:08:03]NVStorageSaveData done [18:08:03]OFDSenderStorePacket done [18:08:03]KKMCreateOFDPacket done [18:08:03]NVStorageSaveData kkm_last_timestamp [18:08:03]File name is /storage/kkm_last_timestamp [18:08:03]Write 4 bytes [18:08:03]NVStorageSaveData done [18:08:03]ExternCall_PrintAddStr [18:08:03]wPrintStart [18:08:03]Write to MH i2c: 01 00 00 FF 07 06 [18:08:03]Write i2c OK [18:08:03]MH_I2C_Read... [18:08:03]Read from MH i2c: 01 [18:08:03]MH_I2C_Read... [18:08:03]Read from MH i2c: 01 07 00 [18:08:03]MH_I2C_Read... [18:08:03]Read from MH i2c: 01 07 00 FF 07 00 00 00 00 00 FF 0F 1B [18:08:03]RasterBufferAndPrint [18:08:03]line Счет N : (1)342830 [18:08:03]line ИНН: 02508201610067 [18:08:03]line Контрольно-Кассовый Чек [18:08:03]line ПРОДАЖА [18:08:03]line ТРК (МРК, ГНК) : 34 [18:08:03]line Товар: 2710194210 [18:08:03]line ДТ-К-2 [18:08:03]line 51.600 * 75.20 [18:08:03]line = 3880.32 [18:08:03]line НДС 12% НСП 1% [18:08:03]line > о реализуемом товаре [18:08:03]line ОКРУГЛЕНИЕ: -0.32 [18:08:03]line ИТОГО: 3880.00 [18:08:03]line Внесено: 3880.00 [18:08:03]line СДАЧА: 0.00 [18:08:03]line НСП 1% : 34.34 [18:08:03]line НДС 12% : 412.07 [18:08:03]line Наличными: 3880.00 [18:08:03]line Безнал.: 0.00 [18:08:03]line Место: АЗС № 78 "Партнер Нефть" [18:08:03]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [18:08:03]line СНО: Общий режим [18:08:03]line Чек 211 20.10.2024 18:08 [18:08:03]line Смена: 114 ФФД: 1.0 [18:08:03]line ЗНМ: 0300000137 [18:08:03]line РНМ: 0000000000186857 [18:08:03]line Версия ККМ: v1.0 [18:08:03]line [18:08:03]line Дисконтная программа [18:08:03]line ДТ [18:08:03]line номер 78 [18:08:03]line сэкономлено 51.60 сом [18:08:03]line ФМ: 0000000002094219 [18:08:04]line ФД: 30429 [18:08:04]line ФПД: 79773511636618 [18:08:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T180802&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30429&fm=79773511636618&tin=02508201610067®Number=0000000000186857&sum=388000 [18:08:04]OFD Sender: Processing packet 30429 [packets to send 10, broken 9] [18:08:04]ProducePacketName [18:08:04]name=ofd_packets/00030429 [18:08:04]OFD Sender: To server: pG, [18:08:04]CommunicateWithHost lk.salyk.kg:30040 [18:08:04]ConnectInit lk.salyk.kg [18:08:04]written 0, free lines is 4095 [18:08:04]Connected sock=10 [18:08: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 0C 01 00 00 C3 BD 04 01 43 3C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 90 C9 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 C0 EB 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 EB 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 A0 00 00 00 00 07 04 06 00 A0 EB 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 02 47 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 48 8D B7 D2 D6 8A C5 B3 12 8D A8 26 7A 37 [18:08: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 A4 76 47 00 CC 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 DD 76 00 00 F4 03 04 00 85 F1 14 67 B6 04 01 00 00 31 EF 8D 57 2C 91 92 BC [18:08:04]CommunicateWithHost err = 0 [18:08:04]CheckOFDResponse [18:08:04]1017 (14) - 77093643461234 [18:08:04]1041 (16) - 0000000002094219 [18:08:04]1040 (4) - 30429 [18:08:04]1012 (4) - 20.10.2024 12:03 [18:08:04]1206 (1) - 0 [18:08:04]OFD Sender: Remove packet 30429 [18:08:04]ProducePacketName [18:08:04]name=ofd_packets/00030429 [18:08:04]NVStorageDeleteData [18:08:04]Write to MH i2c: 01 00 00 2F 08 37 [18:08:04]Write i2c OK [18:08:04]MH_I2C_Read... [18:08:04]Read from MH i2c: 01 [18:08:04]MH_I2C_Read... [18:08:04]Read from MH i2c: 01 07 00 [18:08:04]MH_I2C_Read... [18:08:04]Read from MH i2c: 01 07 00 2F 08 00 00 00 00 00 9B 0C E5 [18:08:04]RasterBufferAndPrint [18:08:04]line [18:08:04]line [18:08:04]line [18:08:04]line [18:08:04]line [18:08:04]written 0, free lines is 3234 [18:08:04]MH_Cut [18:08:04]Write to MH i2c: D1 01 00 36 08 01 10 [18:08:04]Write i2c OK [18:08:04]MH_I2C_Read... [18:08:04]Read from MH i2c: D1 [18:08:04]MH_I2C_Read... [18:08:04]Read from MH i2c: D1 01 00 [18:08:04]MH_I2C_Read... [18:08:04]Read from MH i2c: D1 01 00 36 08 00 0F [18:08:04]Write to MH i2c: 01 00 00 37 08 3F [18:08:04]Write i2c OK [18:08:04]MH_I2C_Read... [18:08:05]OFD Sender: No OFD packet to send [18:08:05]*** Cut start [18:08:05]*** Partial cut [18:08:05]*** CUTSNS_PIN = 1 [18:08:05]*** CUTSNS_PIN = 0 [18:08:05]*** Brake cut motor [18:08:06]Read from MH i2c: 01 [18:08:06]MH_I2C_Read... [18:08:06]*** Stop cut motor [18:08:06]*** Cut end [18:08:06]Read from MH i2c: 01 07 00 [18:08:06]MH_I2C_Read... [18:08:06]Read from MH i2c: 01 07 00 37 08 00 00 00 00 00 FF 0F 54 [18:08:06]process_action close_receipt done [18:08:06]requested_data is exist [18:08:06]produce_requested_data [18:08:06]requested_item fm.sn is exist - process it [18:08:06]wFMCommunicate request_size=4 [18:08:06]MH_SAM_APDU [18:08:06]CAPDU: 80 11 00 00 [18:08:06]Write to MH i2c: E2 08 00 38 08 80 11 00 00 00 00 00 00 BA [18:08:06]Write i2c OK [18:08:06]MH_I2C_Read... [18:08:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:08:06]Read from MH i2c: E2 [18:08:06]MH_I2C_Read... [18:08:06]Read from MH i2c: E2 17 00 [18:08:06]MH_I2C_Read... [18:08:06]Read from MH i2c: E2 17 00 38 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 08 [18:08: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:08:06]wFMCommunicate OK [18:08:06]requested_item fd.num is exist - process it [18:08:06]SAM_PROTO_GetFieldsCounters [18:08:06]wFMCommunicate request_size=4 [18:08:06]MH_SAM_APDU [18:08:06]CAPDU: 80 13 00 00 [18:08:06]Write to MH i2c: E2 08 00 39 08 80 13 00 00 00 00 00 00 BD [18:08:06]Write i2c OK [18:08:06]MH_I2C_Read... [18:08:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:08:06]Read from MH i2c: E2 [18:08:06]MH_I2C_Read... [18:08:06]Read from MH i2c: E2 62 00 [18:08:06]MH_I2C_Read... [18:08:06]Read from MH i2c: E2 62 00 39 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 21 [18:08: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 DD 76 00 00 0E 04 04 00 72 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:08:06]wFMCommunicate OK [18:08:06]SAM_PROTO_GetFieldsCounters done [18:08:06]requested_item shift.num is exist - process it [18:08:06]requested_item shift.opened is exist - process it [18:08:06]req_shift_opened [18:08:06]FM_GetShiftState [18:08:06]SAM_PROTO_GetShiftState [18:08:06]wFMCommunicate request_size=4 [18:08:06]MH_SAM_APDU [18:08:06]CAPDU: 80 13 01 00 [18:08:06]Write to MH i2c: E2 08 00 3A 08 80 13 01 00 00 00 00 00 BF [18:08:06]Write i2c OK [18:08:06]MH_I2C_Read... [18:08:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:08:06]Read from MH i2c: E2 [18:08:06]MH_I2C_Read... [18:08:06]Read from MH i2c: E2 0E 00 [18:08:06]MH_I2C_Read... [18:08:06]Read from MH i2c: E2 0E 00 3A 08 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 A5 [18:08:06]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [18:08:06]wFMCommunicate OK [18:08:06]SAM_PROTO_GetShiftState done [18:08:06]FM_GetShiftState done [18:08:06]req_shift_opened done [18:08:06]requested_item shift.open_date is exist - process it [18:08:06]req_shift_open_date [18:08:06]req_shift_open_date done [18:08:06]produce_requested_data done [18:08:06]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30429,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [18:08:06]process_action_free close_receipt [18:08:06]json_value_free [18:08:06]json_value_free done [18:08:06]process_json_proto returns [18:08:06]Send response to host [18:08:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30429,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [18:08:06]free response buf [18:08:06]execute_script done [18:08:06]execute_script returns [18:08:06]free content buf [18:08:06]Sock 7.Close socket [18:08:06]Sock 7.Thread stoped [18:08:10]OFD Sender: No OFD packet to send [18:08:15]OFD Sender: No OFD packet to send [18:08:20]OFD Sender: No OFD packet to send [18:08:25]OFD Sender: No OFD packet to send [18:08:30]OFD Sender: No OFD packet to send [18:08:35]OFD Sender: No OFD packet to send [18:08:40]OFD Sender: No OFD packet to send [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:10]OFD Sender: No OFD packet to send [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:55]OFD Sender: No OFD packet to send [18:11:00]OFD Sender: No OFD packet to send [18:11:05]OFD Sender: No OFD packet to send [18:11:10]OFD Sender: No OFD packet to send [18:11:15]OFD Sender: No OFD packet to send [18:11:20]OFD Sender: No OFD packet to send [18:11:25]OFD Sender: No OFD packet to send [18:11:30]OFD Sender: No OFD packet to send [18:11:35]OFD Sender: No OFD packet to send [18:11:40]OFD Sender: No OFD packet to send [18:11:45]OFD Sender: No OFD packet to send [18:11:50]OFD Sender: No OFD packet to send [18:11:55]OFD Sender: No OFD packet to send [18:12:00]OFD Sender: No OFD packet to send [18:12:05]OFD Sender: No OFD packet to send [18:12:10]OFD Sender: No OFD packet to send [18:12:15]OFD Sender: No OFD packet to send [18:12:20]OFD Sender: No OFD packet to send [18:12:25]OFD Sender: No OFD packet to send [18:12:30]OFD Sender: No OFD packet to send [18:12:35]OFD Sender: No OFD packet to send [18:12:40]OFD Sender: No OFD packet to send [18:12:45]OFD Sender: No OFD packet to send [18:12:50]OFD Sender: No OFD packet to send [18:12:55]OFD Sender: No OFD packet to send [18:13:00]OFD Sender: No OFD packet to send [18:13:05]OFD Sender: No OFD packet to send [18:13:10]OFD Sender: No OFD packet to send [18:13:15]OFD Sender: No OFD packet to send [18:13:20]OFD Sender: No OFD packet to send [18:13:25]OFD Sender: No OFD packet to send [18:13:30]OFD Sender: No OFD packet to send [18:13:35]OFD Sender: No OFD packet to send [18:13:40]OFD Sender: No OFD packet to send [18:13:45]OFD Sender: No OFD packet to send [18:13:50]OFD Sender: No OFD packet to send [18:13:55]OFD Sender: No OFD packet to send [18:14:00]OFD Sender: No OFD packet to send [18:14:05]OFD Sender: No OFD packet to send [18:14:10]OFD Sender: No OFD packet to send [18:14:15]OFD Sender: No OFD packet to send [18:14:20]OFD Sender: No OFD packet to send [18:14:25]OFD Sender: No OFD packet to send [18:14:30]OFD Sender: No OFD packet to send [18:14:35]OFD Sender: No OFD packet to send [18:14:40]OFD Sender: No OFD packet to send [18:14:45]OFD Sender: No OFD packet to send [18:14:50]OFD Sender: No OFD packet to send [18:14:55]OFD Sender: No OFD packet to send [18:15:00]OFD Sender: No OFD packet to send [18:15:05]OFD Sender: No OFD packet to send [18:15:10]OFD Sender: No OFD packet to send [18:15:15]OFD Sender: No OFD packet to send [18:15:20]OFD Sender: No OFD packet to send [18:15:25]OFD Sender: No OFD packet to send [18:15:30]OFD Sender: No OFD packet to send [18:15:35]OFD Sender: No OFD packet to send [18:15:40]OFD Sender: No OFD packet to send [18:15:45]OFD Sender: No OFD packet to send [18:15:50]OFD Sender: No OFD packet to send [18:15:55]OFD Sender: No OFD packet to send [18:16:00]OFD Sender: No OFD packet to send [18:16:05]OFD Sender: No OFD packet to send [18:16:10]OFD Sender: No OFD packet to send [18:16:15]OFD Sender: No OFD packet to send [18:16:20]OFD Sender: No OFD packet to send [18:16:25]OFD Sender: No OFD packet to send [18:16:30]OFD Sender: No OFD packet to send [18:16:35]OFD Sender: No OFD packet to send [18:16:40]OFD Sender: No OFD packet to send [18:16:45]OFD Sender: No OFD packet to send [18:16:50]OFD Sender: No OFD packet to send [18:16:55]OFD Sender: No OFD packet to send [18:17:00]OFD Sender: No OFD packet to send [18:17:05]OFD Sender: No OFD packet to send [18:17:10]OFD Sender: No OFD packet to send [18:17:15]OFD Sender: No OFD packet to send [18:17:20]OFD Sender: No OFD packet to send [18:17:25]OFD Sender: No OFD packet to send [18:17:30]OFD Sender: No OFD packet to send [18:17:35]OFD Sender: No OFD packet to send [18:17:40]OFD Sender: No OFD packet to send [18:17:44]accept exits with 9 [18:17:44]New connection [18:17:44]New thread 3067489636 created [18:17:44]Thread 3067346276 joined [18:17:44]Waiting for new connection... [18:17:44] Sock 9.Parse request [18:17:44]Sock 9.Check first char [18:17:44]Sock 9.First char is OK [18:17:44]request: POST /json_proto HTTP/1.0 [18:17:44]Method: POST [18:17:44]URL: /json_proto [18:17:44]Method is POST - this is cgi request [18:17:44]url: /json_proto [18:17:44]query_string will be loaded in cgi processing [18:17:44]execute_cgi json_proto POST (null) [18:17:44]execute_cgi path=json_proto method=POST [18:17:44]POST find Content-Length [18:17:44]Host: 172.17.51.3:8080 [18:17:44]Content-Length: 678 [18:17:44]Content-Type: application/json [18:17:44] [18:17:44]POST finish read [18:17:44]Found Content-Length = 678 [18:17:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342831", "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:17:44]execute_script... [18:17: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)342831", "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:17:44]POST & json_proto [18:17:44]process_json_proto [18:17:44]json parsed OK: [18:17:44]protocol is kg_v1.0 [18:17:44]action value=close_receipt [18:17:44]process_action close_receipt [18:17:44]cmd_close_receipt [18:17:44]MH_GetDate [18:17:44]Write to MH i2c: F0 00 00 3B 08 32 [18:17:44]Write i2c OK [18:17:44]MH_I2C_Read... [18:17:44]Read from MH i2c: F0 [18:17:44]MH_I2C_Read... [18:17:44]Read from MH i2c: F0 09 00 [18:17:44]MH_I2C_Read... [18:17:44]Read from MH i2c: F0 09 00 3B 08 00 49 49 15 67 04 C1 95 66 09 [18:17:44]GetLastDocTimeStamp 1729447682 [18:17:44]current date 1729448265 [18:17:44]FM_GetShiftState [18:17:44]SAM_PROTO_GetShiftState [18:17:44]wFMCommunicate request_size=4 [18:17:44]MH_SAM_APDU [18:17:44]CAPDU: 80 13 01 00 [18:17:44]Write to MH i2c: E2 08 00 3C 08 80 13 01 00 00 00 00 00 C1 [18:17:44]Write i2c OK [18:17:44]MH_I2C_Read... [18:17:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:17:44]Read from MH i2c: E2 [18:17:44]MH_I2C_Read... [18:17:44]Read from MH i2c: E2 0E 00 [18:17:44]MH_I2C_Read... [18:17:44]Read from MH i2c: E2 0E 00 3C 08 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 A7 [18:17:44]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [18:17:44]wFMCommunicate OK [18:17:44]SAM_PROTO_GetShiftState done [18:17:44]FM_GetShiftState done [18:17:44]opened in 1729384718 [18:17:44]opened+sec_in_day 1729471118 [18:17:44]quantity*price = 70044 [18:17:44]sum+1 = 70045 [18:17:44]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 СНО: Общий режим Чек 212 20.10.2024 18:17 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30430 ФПД: 60249097560780 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T181745&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30430&fm=60249097560780&tin=02508201610067®Number=0000000000186857&sum=70000 [18:17:45]StoreToDocumentArchive [18:17:45]shift 114 fd 30430 [18:17:45]save to /storage/0114/doc_00030430 [18:17:45]save last doc name /storage/0114/doc_00030430 to /storage/kkm_last_doc_name [18:17:45]save OK [18:17:45]Clear old archive folders... [18:17:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:17:45]tlvbuf is 01DC4D50 [18:17:45]SAM_PROTO_ClearQueue [18:17:45]wFMCommunicate request_size=4 [18:17:45]MH_SAM_APDU [18:17:45]CAPDU: 80 09 00 00 [18:17:45]Write to MH i2c: E2 08 00 49 08 80 09 00 00 00 00 00 00 C3 [18:17:45]Write i2c OK [18:17:45]MH_I2C_Read... [18:17:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:17:46]Read from MH i2c: E2 [18:17:46]MH_I2C_Read... [18:17:46]Read from MH i2c: E2 03 00 [18:17:46]MH_I2C_Read... [18:17:46]Read from MH i2c: E2 03 00 49 08 00 90 00 C5 [18:17:46]RAPDU: 90 00 [18:17:46]wFMCommunicate OK [18:17:46]SAM_PROTO_ClearQueue done [18:17:46]KKMCreateOFDPacket [18:17:46]OFDProtocolAddRootSTLVToBuf [18:17:46]FM_MakeSignedData [18:17:46]FM_MakeSignedData [18:17:46]SAM_PROTO_SignData [18:17:46]wFMCommunicate request_size=4 [18:17:46]MH_SAM_APDU [18:17:46]CAPDU: 80 0D 01 02 [18:17:46]Write to MH i2c: E2 08 00 4A 08 80 0D 01 02 00 00 00 00 CB [18:17:46]Write i2c OK [18:17:46]MH_I2C_Read... [18:17:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:17:46]Read from MH i2c: E2 [18:17:46]MH_I2C_Read... [18:17:46]Read from MH i2c: E2 03 00 [18:17:46]MH_I2C_Read... [18:17:46]Read from MH i2c: E2 03 00 4A 08 00 90 00 C6 [18:17:46]RAPDU: 90 00 [18:17:46]wFMCommunicate OK [18:17:46]wFMCommunicate request_size=255 [18:17:46]MH_SAM_APDU [18:17: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 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 D4 00 00 00 F4 03 04 00 49 49 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 36 [18:17:46]Write to MH i2c: E2 02 01 4B 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 D4 00 00 00 F4 03 04 00 49 49 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 36 00 00 4A [18:17:46]Write i2c OK [18:17:46]MH_I2C_Read... [18:17:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:17:46]Read from MH i2c: E2 [18:17:46]MH_I2C_Read... [18:17:46]Read from MH i2c: E2 03 00 [18:17:46]MH_I2C_Read... [18:17:46]Read from MH i2c: E2 03 00 4B 08 00 90 00 C7 [18:17:46]RAPDU: 90 00 [18:17:46]wFMCommunicate OK [18:17:46]wFMCommunicate request_size=10 [18:17:46]MH_SAM_APDU [18:17:46]CAPDU: 80 0D 02 02 05 CB D6 0E E2 CC [18:17:46]Write to MH i2c: E2 0D 00 4C 08 80 0D 02 02 05 00 CB D6 0E E2 CC 00 00 35 [18:17:46]Write i2c OK [18:17:46]MH_I2C_Read... [18:17:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:17:46]Read from MH i2c: E2 [18:17:46]MH_I2C_Read... [18:17:46]Read from MH i2c: E2 03 00 [18:17:46]MH_I2C_Read... [18:17:46]Read from MH i2c: E2 03 00 4C 08 00 90 00 C8 [18:17:46]RAPDU: 90 00 [18:17:46]wFMCommunicate OK [18:17:46]wFMCommunicate request_size=4 [18:17:46]MH_SAM_APDU [18:17:46]CAPDU: 80 0D 03 02 [18:17:46]Write to MH i2c: E2 08 00 4D 08 80 0D 03 02 00 00 00 00 D0 [18:17:46]Write i2c OK [18:17:46]MH_I2C_Read... [18:17:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:17:46]Read from MH i2c: E2 [18:17:46]MH_I2C_Read... [18:17:46]Read from MH i2c: E2 0B 00 [18:17:46]MH_I2C_Read... [18:17:46]Read from MH i2c: E2 0B 00 4D 08 00 60 31 92 E6 6E 5B 48 08 90 00 F3 [18:17:46]RAPDU: 60 31 92 E6 6E 5B 48 08 90 00 [18:17:46]wFMCommunicate OK [18:17:46]SAM_PROTO_SignData done [18:17:46]FM_MakeSignedData done [18:17:46]CreateOFDProtocolMessage [18:17:46]wFMCommunicate request_size=4 [18:17:46]MH_SAM_APDU [18:17:46]CAPDU: 80 11 00 00 [18:17:46]Write to MH i2c: E2 08 00 4E 08 80 11 00 00 00 00 00 00 D0 [18:17:46]Write i2c OK [18:17:46]MH_I2C_Read... [18:17:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:17:46]Read from MH i2c: E2 [18:17:46]MH_I2C_Read... [18:17:46]Read from MH i2c: E2 17 00 [18:17:46]MH_I2C_Read... [18:17:46]Read from MH i2c: E2 17 00 4E 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 1E [18:17:46]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:46]wFMCommunicate OK [18:17:46]CreateOFDProtocolMessage done [18:17:46]OFDSenderStorePacket 30430 [18:17:46]StoreOFDPacket docnum=30430 [18:17: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 22 30 07 01 EB 84 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 D4 00 00 00 F4 03 04 00 49 49 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 36 CB D6 0E E2 CC 60 31 92 E6 6E 5B 48 08 [18:17:46]CheckFolder [18:17:46]dirname=/storage/ofd_packets [18:17:46]CheckFolder done [18:17:46]ProducePacketName [18:17:46]name=ofd_packets/00030430 [18:17:46]NVStorageSaveData ofd_packets/00030430 [18:17:46]File name is /storage/ofd_packets/00030430 [18:17:46]Write 301 bytes [18:17:46]NVStorageSaveData done [18:17:46]OFDSenderStorePacket done [18:17:46]KKMCreateOFDPacket done [18:17:46]NVStorageSaveData kkm_last_timestamp [18:17:46]File name is /storage/kkm_last_timestamp [18:17:46]Write 4 bytes [18:17:46]NVStorageSaveData done [18:17:46]ExternCall_PrintAddStr [18:17:46]wPrintStart [18:17:46]Write to MH i2c: 01 00 00 4F 08 57 [18:17:46]Write i2c OK [18:17:46]MH_I2C_Read... [18:17:46]Read from MH i2c: 01 [18:17:46]MH_I2C_Read... [18:17:46]Read from MH i2c: 01 07 00 [18:17:46]MH_I2C_Read... [18:17:46]Read from MH i2c: 01 07 00 4F 08 00 00 00 00 00 FF 0F 6C [18:17:46]RasterBufferAndPrint [18:17:46]line Счет N : (1)342831 [18:17:46]line ИНН: 02508201610067 [18:17:46]line Контрольно-Кассовый Чек [18:17:46]line ПРОДАЖА [18:17:46]line ТРК (МРК, ГНК) : 53 [18:17:46]line Товар: 2710124130 [18:17:46]line Аи-92-К-2 [18:17:46]line 10.470 * 66.90 [18:17:46]line = 700.44 [18:17:46]line НДС 12% НСП 1% [18:17:46]line > о реализуемом товаре [18:17:46]line ОКРУГЛЕНИЕ: -0.44 [18:17:46]line ИТОГО: 700.00 [18:17:46]line Внесено: 700.00 [18:17:46]line СДАЧА: 0.00 [18:17:46]line НСП 1% : 6.20 [18:17:46]line НДС 12% : 74.38 [18:17:46]line Наличными: 700.00 [18:17:46]line Безнал.: 0.00 [18:17:46]line Место: АЗС № 78 "Партнер Нефть" [18:17:46]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [18:17:46]line СНО: Общий режим [18:17:46]line Чек 212 20.10.2024 18:17 [18:17:46]line Смена: 114 ФФД: 1.0 [18:17:46]line ЗНМ: 0300000137 [18:17:46]line РНМ: 0000000000186857 [18:17:46]line Версия ККМ: v1.0 [18:17:46]line ФМ: 0000000002094219 [18:17:46]line ФД: 30430 [18:17:46]line ФПД: 60249097560780 [18:17:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T181745&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30430&fm=60249097560780&tin=02508201610067®Number=0000000000186857&sum=70000 [18:17:46]OFD Sender: Processing packet 30430 [packets to send 10, broken 9] [18:17:46]ProducePacketName [18:17:46]name=ofd_packets/00030430 [18:17:46]OFD Sender: To server: pG, [18:17:46]CommunicateWithHost lk.salyk.kg:30040 [18:17:46]ConnectInit lk.salyk.kg [18:17:46]written 0, free lines is 4095 [18:17:46]Connected sock=10 [18:17: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 22 30 07 01 EB 84 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 D4 00 00 00 F4 03 04 00 49 49 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 36 CB D6 0E E2 CC 60 31 92 E6 6E 5B 48 08 [18:17: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 85 C1 47 00 D2 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 DE 76 00 00 F4 03 04 00 CC F3 14 67 B6 04 01 00 00 1C EF 95 2C 4F B5 49 E2 [18:17:47]CommunicateWithHost err = 0 [18:17:47]CheckOFDResponse [18:17:47]1017 (14) - 77093643461234 [18:17:47]1041 (16) - 0000000002094219 [18:17:47]1040 (4) - 30430 [18:17:47]1012 (4) - 20.10.2024 12:13 [18:17:47]1206 (1) - 0 [18:17:47]OFD Sender: Remove packet 30430 [18:17:47]ProducePacketName [18:17:47]name=ofd_packets/00030430 [18:17:47]NVStorageDeleteData [18:17:47]Write to MH i2c: 01 00 00 7A 08 82 [18:17:47]Write i2c OK [18:17:47]MH_I2C_Read... [18:17:47]Read from MH i2c: 01 [18:17:47]MH_I2C_Read... [18:17:47]Read from MH i2c: 01 07 00 [18:17:47]MH_I2C_Read... [18:17:47]Read from MH i2c: 01 07 00 7A 08 00 00 00 00 00 F4 0C 89 [18:17:47]RasterBufferAndPrint [18:17:47]line [18:17:47]line [18:17:47]line [18:17:47]line [18:17:47]line [18:17:47]written 0, free lines is 3322 [18:17:47]MH_Cut [18:17:47]Write to MH i2c: D1 01 00 81 08 01 5B [18:17:47]Write i2c OK [18:17:47]MH_I2C_Read... [18:17:47]Read from MH i2c: D1 [18:17:47]MH_I2C_Read... [18:17:47]Read from MH i2c: D1 01 00 [18:17:47]MH_I2C_Read... [18:17:47]Read from MH i2c: D1 01 00 81 08 00 5A [18:17:47]Write to MH i2c: 01 00 00 82 08 8A [18:17:47]Write i2c OK [18:17:47]MH_I2C_Read... [18:17:47]OFD Sender: No OFD packet to send [18:17:47]*** Cut start [18:17:47]*** Partial cut [18:17:47]*** CUTSNS_PIN = 1 [18:17:48]*** CUTSNS_PIN = 0 [18:17:48]*** Brake cut motor [18:17:48]Read from MH i2c: 01 [18:17:48]MH_I2C_Read... [18:17:48]*** Stop cut motor [18:17:48]*** Cut end [18:17:48]Read from MH i2c: 01 07 00 [18:17:48]MH_I2C_Read... [18:17:48]Read from MH i2c: 01 07 00 82 08 00 00 00 00 00 FF 0F 9F [18:17:48]process_action close_receipt done [18:17:48]requested_data is exist [18:17:48]produce_requested_data [18:17:48]requested_item fm.sn is exist - process it [18:17:48]wFMCommunicate request_size=4 [18:17:48]MH_SAM_APDU [18:17:48]CAPDU: 80 11 00 00 [18:17:48]Write to MH i2c: E2 08 00 83 08 80 11 00 00 00 00 00 00 05 [18:17:48]Write i2c OK [18:17:48]MH_I2C_Read... [18:17:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:17:48]Read from MH i2c: E2 [18:17:48]MH_I2C_Read... [18:17:48]Read from MH i2c: E2 17 00 [18:17:48]MH_I2C_Read... [18:17:48]Read from MH i2c: E2 17 00 83 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 53 [18:17: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:17:48]wFMCommunicate OK [18:17:48]requested_item fd.num is exist - process it [18:17:48]SAM_PROTO_GetFieldsCounters [18:17:48]wFMCommunicate request_size=4 [18:17:48]MH_SAM_APDU [18:17:48]CAPDU: 80 13 00 00 [18:17:48]Write to MH i2c: E2 08 00 84 08 80 13 00 00 00 00 00 00 08 [18:17:48]Write i2c OK [18:17:48]MH_I2C_Read... [18:17:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:17:48]Read from MH i2c: E2 [18:17:48]MH_I2C_Read... [18:17:48]Read from MH i2c: E2 62 00 [18:17:48]MH_I2C_Read... [18:17:48]Read from MH i2c: E2 62 00 84 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 70 [18:17: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 DE 76 00 00 0E 04 04 00 72 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:17:48]wFMCommunicate OK [18:17:48]SAM_PROTO_GetFieldsCounters done [18:17:48]requested_item shift.num is exist - process it [18:17:48]requested_item shift.opened is exist - process it [18:17:48]req_shift_opened [18:17:48]FM_GetShiftState [18:17:48]SAM_PROTO_GetShiftState [18:17:48]wFMCommunicate request_size=4 [18:17:48]MH_SAM_APDU [18:17:48]CAPDU: 80 13 01 00 [18:17:48]Write to MH i2c: E2 08 00 85 08 80 13 01 00 00 00 00 00 0A [18:17:48]Write i2c OK [18:17:48]MH_I2C_Read... [18:17:48]Read from MH i2c: E2 [18:17:48]MH_I2C_Read... [18:17:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:17:48]Read from MH i2c: E2 0E 00 [18:17:48]MH_I2C_Read... [18:17:48]Read from MH i2c: E2 0E 00 85 08 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 F0 [18:17:48]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [18:17:48]wFMCommunicate OK [18:17:48]SAM_PROTO_GetShiftState done [18:17:48]FM_GetShiftState done [18:17:48]req_shift_opened done [18:17:48]requested_item shift.open_date is exist - process it [18:17:48]req_shift_open_date [18:17:48]req_shift_open_date done [18:17:48]produce_requested_data done [18:17:48]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30430,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [18:17:48]process_action_free close_receipt [18:17:48]json_value_free [18:17:48]json_value_free done [18:17:48]process_json_proto returns [18:17:48]Send response to host [18:17:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30430,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [18:17:48]free response buf [18:17:48]execute_script done [18:17:48]execute_script returns [18:17:48]free content buf [18:17:48]Sock 9.Close socket [18:17:48]Sock 9.Thread stoped [18:17:52]OFD Sender: No OFD packet to send [18:17:57]OFD Sender: No OFD packet to send [18:18:02]OFD Sender: No OFD packet to send [18:18:07]OFD Sender: No OFD packet to send [18:18:12]OFD Sender: No OFD packet to send [18:18:17]OFD Sender: No OFD packet to send [18:18:22]OFD Sender: No OFD packet to send [18:18:27]OFD Sender: No OFD packet to send [18:18:29]accept exits with 7 [18:18:29]New connection [18:18:29]New thread 3067346276 created [18:18:29]Thread 3067489636 joined [18:18:29]Waiting for new connection... [18:18:29] Sock 7.Parse request [18:18:29]Sock 7.Check first char [18:18:29]Sock 7.First char is OK [18:18:29]request: POST /json_proto HTTP/1.0 [18:18:29]Method: POST [18:18:29]URL: /json_proto [18:18:29]Method is POST - this is cgi request [18:18:29]url: /json_proto [18:18:29]query_string will be loaded in cgi processing [18:18:29]execute_cgi json_proto POST (null) [18:18:29]execute_cgi path=json_proto method=POST [18:18:29]POST find Content-Length [18:18:29]Host: 172.17.51.3:8080 [18:18:29]Content-Length: 677 [18:18:29]Content-Type: application/json [18:18:29] [18:18:29]POST finish read [18:18:29]Found Content-Length = 677 [18:18:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342832", "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:18:29]execute_script... [18:18: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)342832", "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:18:29]POST & json_proto [18:18:29]process_json_proto [18:18:29]json parsed OK: [18:18:29]protocol is kg_v1.0 [18:18:29]action value=close_receipt [18:18:29]process_action close_receipt [18:18:29]cmd_close_receipt [18:18:29]MH_GetDate [18:18:29]Write to MH i2c: F0 00 00 86 08 7D [18:18:29]Write i2c OK [18:18:29]MH_I2C_Read... [18:18:29]Read from MH i2c: F0 [18:18:29]MH_I2C_Read... [18:18:29]Read from MH i2c: F0 09 00 [18:18:29]MH_I2C_Read... [18:18:29]Read from MH i2c: F0 09 00 86 08 00 75 49 15 67 04 C1 95 66 80 [18:18:29]GetLastDocTimeStamp 1729448265 [18:18:29]current date 1729448309 [18:18:29]FM_GetShiftState [18:18:29]SAM_PROTO_GetShiftState [18:18:29]wFMCommunicate request_size=4 [18:18:29]MH_SAM_APDU [18:18:29]CAPDU: 80 13 01 00 [18:18:29]Write to MH i2c: E2 08 00 87 08 80 13 01 00 00 00 00 00 0C [18:18:29]Write i2c OK [18:18:29]MH_I2C_Read... [18:18:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:18:29]Read from MH i2c: E2 [18:18:29]MH_I2C_Read... [18:18:29]Read from MH i2c: E2 0E 00 [18:18:29]MH_I2C_Read... [18:18:29]Read from MH i2c: E2 0E 00 87 08 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 F2 [18:18:29]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [18:18:29]wFMCommunicate OK [18:18:29]SAM_PROTO_GetShiftState done [18:18:29]FM_GetShiftState done [18:18:29]opened in 1729384718 [18:18:29]opened+sec_in_day 1729471118 [18:18:29]quantity*price = 60009 [18:18:29]sum+1 = 60010 [18:18:29]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 СНО: Общий режим Чек 213 20.10.2024 18:18 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30431 ФПД: 262690347038291 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T181829&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30431&fm=262690347038291&tin=02508201610067®Number=0000000000186857&sum=60000 [18:18:30]StoreToDocumentArchive [18:18:30]shift 114 fd 30431 [18:18:30]save to /storage/0114/doc_00030431 [18:18:30]save last doc name /storage/0114/doc_00030431 to /storage/kkm_last_doc_name [18:18:30]save OK [18:18:30]Clear old archive folders... [18:18:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:18:30]tlvbuf is 01DBC490 [18:18:30]SAM_PROTO_ClearQueue [18:18:30]wFMCommunicate request_size=4 [18:18:30]MH_SAM_APDU [18:18:30]CAPDU: 80 09 00 00 [18:18:30]Write to MH i2c: E2 08 00 94 08 80 09 00 00 00 00 00 00 0E [18:18:30]Write i2c OK [18:18:30]MH_I2C_Read... [18:18:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:18:30]Read from MH i2c: E2 [18:18:30]MH_I2C_Read... [18:18:30]Read from MH i2c: E2 03 00 [18:18:30]MH_I2C_Read... [18:18:30]Read from MH i2c: E2 03 00 94 08 00 90 00 10 [18:18:30]RAPDU: 90 00 [18:18:30]wFMCommunicate OK [18:18:30]SAM_PROTO_ClearQueue done [18:18:30]KKMCreateOFDPacket [18:18:30]OFDProtocolAddRootSTLVToBuf [18:18:30]FM_MakeSignedData [18:18:30]FM_MakeSignedData [18:18:30]SAM_PROTO_SignData [18:18:30]wFMCommunicate request_size=4 [18:18:30]MH_SAM_APDU [18:18:30]CAPDU: 80 0D 01 02 [18:18:30]Write to MH i2c: E2 08 00 95 08 80 0D 01 02 00 00 00 00 16 [18:18:30]Write i2c OK [18:18:30]MH_I2C_Read... [18:18:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:18:30]Read from MH i2c: E2 [18:18:30]MH_I2C_Read... [18:18:30]Read from MH i2c: E2 03 00 [18:18:30]MH_I2C_Read... [18:18:30]Read from MH i2c: E2 03 00 95 08 00 90 00 11 [18:18:30]RAPDU: 90 00 [18:18:30]wFMCommunicate OK [18:18:30]wFMCommunicate request_size=255 [18:18:30]MH_SAM_APDU [18:18:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 D5 00 00 00 F4 03 04 00 75 49 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 EE [18:18:30]Write to MH i2c: E2 02 01 96 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 D5 00 00 00 F4 03 04 00 75 49 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 EE 00 00 48 [18:18:30]Write i2c OK [18:18:30]MH_I2C_Read... [18:18:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:18:30]Read from MH i2c: E2 [18:18:30]MH_I2C_Read... [18:18:30]Read from MH i2c: E2 03 00 [18:18:30]MH_I2C_Read... [18:18:30]Read from MH i2c: E2 03 00 96 08 00 90 00 12 [18:18:30]RAPDU: 90 00 [18:18:30]wFMCommunicate OK [18:18:30]wFMCommunicate request_size=10 [18:18:30]MH_SAM_APDU [18:18:30]CAPDU: 80 0D 02 02 05 EA 5C D2 36 53 [18:18:30]Write to MH i2c: E2 0D 00 97 08 80 0D 02 02 05 00 EA 5C D2 36 53 00 00 C4 [18:18:30]Write i2c OK [18:18:30]MH_I2C_Read... [18:18:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:18:30]Read from MH i2c: E2 [18:18:30]MH_I2C_Read... [18:18:30]Read from MH i2c: E2 03 00 [18:18:30]MH_I2C_Read... [18:18:30]Read from MH i2c: E2 03 00 97 08 00 90 00 13 [18:18:30]RAPDU: 90 00 [18:18:30]wFMCommunicate OK [18:18:30]wFMCommunicate request_size=4 [18:18:30]MH_SAM_APDU [18:18:30]CAPDU: 80 0D 03 02 [18:18:30]Write to MH i2c: E2 08 00 98 08 80 0D 03 02 00 00 00 00 1B [18:18:30]Write i2c OK [18:18:30]MH_I2C_Read... [18:18:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:18:30]Read from MH i2c: E2 [18:18:30]MH_I2C_Read... [18:18:30]Read from MH i2c: E2 0B 00 [18:18:30]MH_I2C_Read... [18:18:30]Read from MH i2c: E2 0B 00 98 08 00 83 D0 D9 12 33 2B 3E 10 90 00 06 [18:18:30]RAPDU: 83 D0 D9 12 33 2B 3E 10 90 00 [18:18:30]wFMCommunicate OK [18:18:30]SAM_PROTO_SignData done [18:18:30]FM_MakeSignedData done [18:18:30]CreateOFDProtocolMessage [18:18:30]wFMCommunicate request_size=4 [18:18:30]MH_SAM_APDU [18:18:30]CAPDU: 80 11 00 00 [18:18:30]Write to MH i2c: E2 08 00 99 08 80 11 00 00 00 00 00 00 1B [18:18:30]Write i2c OK [18:18:30]MH_I2C_Read... [18:18:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:18:31]Read from MH i2c: E2 [18:18:31]MH_I2C_Read... [18:18:31]Read from MH i2c: E2 17 00 [18:18:31]MH_I2C_Read... [18:18:31]Read from MH i2c: E2 17 00 99 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 69 [18:18:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [18:18:31]wFMCommunicate OK [18:18:31]CreateOFDProtocolMessage done [18:18:31]OFDSenderStorePacket 30431 [18:18:31]StoreOFDPacket docnum=30431 [18:18: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 25 CB 07 01 81 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 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 D5 00 00 00 F4 03 04 00 75 49 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 EE EA 5C D2 36 53 83 D0 D9 12 33 2B 3E 10 [18:18:31]CheckFolder [18:18:31]dirname=/storage/ofd_packets [18:18:31]CheckFolder done [18:18:31]ProducePacketName [18:18:31]name=ofd_packets/00030431 [18:18:31]NVStorageSaveData ofd_packets/00030431 [18:18:31]File name is /storage/ofd_packets/00030431 [18:18:31]Write 301 bytes [18:18:31]NVStorageSaveData done [18:18:31]OFDSenderStorePacket done [18:18:31]KKMCreateOFDPacket done [18:18:31]NVStorageSaveData kkm_last_timestamp [18:18:31]File name is /storage/kkm_last_timestamp [18:18:31]Write 4 bytes [18:18:31]NVStorageSaveData done [18:18:31]ExternCall_PrintAddStr [18:18:31]wPrintStart [18:18:31]Write to MH i2c: 01 00 00 9A 08 A2 [18:18:31]Write i2c OK [18:18:31]MH_I2C_Read... [18:18:31]Read from MH i2c: 01 [18:18:31]MH_I2C_Read... [18:18:31]Read from MH i2c: 01 07 00 [18:18:31]MH_I2C_Read... [18:18:31]Read from MH i2c: 01 07 00 9A 08 00 00 00 00 00 FF 0F B7 [18:18:31]RasterBufferAndPrint [18:18:31]line Счет N : (1)342832 [18:18:31]line ИНН: 02508201610067 [18:18:31]line Контрольно-Кассовый Чек [18:18:31]line ПРОДАЖА [18:18:31]line ТРК (МРК, ГНК) : 33 [18:18:31]line Товар: 2710124130 [18:18:31]line Аи-92-К-2 [18:18:31]line 8.970 * 66.90 [18:18:31]line = 600.09 [18:18:31]line НДС 12% НСП 1% [18:18:31]line > о реализуемом товаре [18:18:31]line ОКРУГЛЕНИЕ: -0.09 [18:18:31]line ИТОГО: 600.00 [18:18:31]line Внесено: 600.00 [18:18:31]line СДАЧА: 0.00 [18:18:31]line НСП 1% : 5.31 [18:18:31]line НДС 12% : 63.73 [18:18:31]line Наличными: 600.00 [18:18:31]line Безнал.: 0.00 [18:18:31]line Место: АЗС № 78 "Партнер Нефть" [18:18:31]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [18:18:31]line СНО: Общий режим [18:18:31]line Чек 213 20.10.2024 18:18 [18:18:31]line Смена: 114 ФФД: 1.0 [18:18:31]line ЗНМ: 0300000137 [18:18:31]line РНМ: 0000000000186857 [18:18:31]line Версия ККМ: v1.0 [18:18:31]line ФМ: 0000000002094219 [18:18:31]line ФД: 30431 [18:18:31]line ФПД: 262690347038291 [18:18:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T181829&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30431&fm=262690347038291&tin=02508201610067®Number=0000000000186857&sum=60000 [18:18:31]OFD Sender: Processing packet 30431 [packets to send 10, broken 9] [18:18:31]ProducePacketName [18:18:31]name=ofd_packets/00030431 [18:18:31]OFD Sender: To server: pG, [18:18:31]CommunicateWithHost lk.salyk.kg:30040 [18:18:31]ConnectInit lk.salyk.kg [18:18:31]written 0, free lines is 4095 [18:18:31]Connected sock=11 [18:18: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 25 CB 07 01 81 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 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 D5 00 00 00 F4 03 04 00 75 49 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 EE EA 5C D2 36 53 83 D0 D9 12 33 2B 3E 10 [18:18: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 E5 E0 47 00 57 B1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 DF 76 00 00 F4 03 04 00 F8 F3 14 67 B6 04 01 00 00 A3 FF 38 A2 7F FE 10 DE [18:18:31]CommunicateWithHost err = 0 [18:18:31]CheckOFDResponse [18:18:31]1017 (14) - 77093643461234 [18:18:31]1041 (16) - 0000000002094219 [18:18:31]1040 (4) - 30431 [18:18:31]1012 (4) - 20.10.2024 12:13 [18:18:31]1206 (1) - 0 [18:18:31]OFD Sender: Remove packet 30431 [18:18:31]ProducePacketName [18:18:31]name=ofd_packets/00030431 [18:18:31]NVStorageDeleteData [18:18:31]Write to MH i2c: 01 00 00 C5 08 CD [18:18:31]Write i2c OK [18:18:31]MH_I2C_Read... [18:18:31]Read from MH i2c: 01 [18:18:31]MH_I2C_Read... [18:18:31]Read from MH i2c: 01 07 00 [18:18:31]MH_I2C_Read... [18:18:31]Read from MH i2c: 01 07 00 C5 08 00 00 00 00 00 F1 0C D1 [18:18:31]RasterBufferAndPrint [18:18:31]line [18:18:31]line [18:18:31]line [18:18:31]line [18:18:31]line [18:18:31]written 0, free lines is 3319 [18:18:31]MH_Cut [18:18:31]Write to MH i2c: D1 01 00 CC 08 01 A6 [18:18:31]Write i2c OK [18:18:31]MH_I2C_Read... [18:18:31]Read from MH i2c: D1 [18:18:31]MH_I2C_Read... [18:18:31]Read from MH i2c: D1 01 00 [18:18:31]MH_I2C_Read... [18:18:31]Read from MH i2c: D1 01 00 CC 08 00 A5 [18:18:31]Write to MH i2c: 01 00 00 CD 08 D5 [18:18:31]Write i2c OK [18:18:31]MH_I2C_Read... [18:18:32]OFD Sender: No OFD packet to send [18:18:32]*** Cut start [18:18:32]*** Partial cut [18:18:32]*** CUTSNS_PIN = 1 [18:18:32]*** CUTSNS_PIN = 0 [18:18:32]*** Brake cut motor [18:18:33]Read from MH i2c: 01 [18:18:33]MH_I2C_Read... [18:18:33]*** Stop cut motor [18:18:33]*** Cut end [18:18:33]Read from MH i2c: 01 07 00 [18:18:33]MH_I2C_Read... [18:18:33]Read from MH i2c: 01 07 00 CD 08 00 00 00 00 00 FF 0F EA [18:18:33]process_action close_receipt done [18:18:33]requested_data is exist [18:18:33]produce_requested_data [18:18:33]requested_item fm.sn is exist - process it [18:18:33]wFMCommunicate request_size=4 [18:18:33]MH_SAM_APDU [18:18:33]CAPDU: 80 11 00 00 [18:18:33]Write to MH i2c: E2 08 00 CE 08 80 11 00 00 00 00 00 00 50 [18:18:33]Write i2c OK [18:18:33]MH_I2C_Read... [18:18:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:18:33]Read from MH i2c: E2 [18:18:33]MH_I2C_Read... [18:18:33]Read from MH i2c: E2 17 00 [18:18:33]MH_I2C_Read... [18:18:33]Read from MH i2c: E2 17 00 CE 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 9E [18:18: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:18:33]wFMCommunicate OK [18:18:33]requested_item fd.num is exist - process it [18:18:33]SAM_PROTO_GetFieldsCounters [18:18:33]wFMCommunicate request_size=4 [18:18:33]MH_SAM_APDU [18:18:33]CAPDU: 80 13 00 00 [18:18:33]Write to MH i2c: E2 08 00 CF 08 80 13 00 00 00 00 00 00 53 [18:18:33]Write i2c OK [18:18:33]MH_I2C_Read... [18:18:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:18:33]Read from MH i2c: E2 [18:18:33]MH_I2C_Read... [18:18:33]Read from MH i2c: E2 62 00 [18:18:33]MH_I2C_Read... [18:18:33]Read from MH i2c: E2 62 00 CF 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 BF [18:18: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 DF 76 00 00 0E 04 04 00 72 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:18:33]wFMCommunicate OK [18:18:33]SAM_PROTO_GetFieldsCounters done [18:18:33]requested_item shift.num is exist - process it [18:18:33]requested_item shift.opened is exist - process it [18:18:33]req_shift_opened [18:18:33]FM_GetShiftState [18:18:33]SAM_PROTO_GetShiftState [18:18:33]wFMCommunicate request_size=4 [18:18:33]MH_SAM_APDU [18:18:33]CAPDU: 80 13 01 00 [18:18:33]Write to MH i2c: E2 08 00 D0 08 80 13 01 00 00 00 00 00 55 [18:18:33]Write i2c OK [18:18:33]MH_I2C_Read... [18:18:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:18:33]Read from MH i2c: E2 [18:18:33]MH_I2C_Read... [18:18:33]Read from MH i2c: E2 0E 00 [18:18:33]MH_I2C_Read... [18:18:33]Read from MH i2c: E2 0E 00 D0 08 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 3B [18:18:33]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [18:18:33]wFMCommunicate OK [18:18:33]SAM_PROTO_GetShiftState done [18:18:33]FM_GetShiftState done [18:18:33]req_shift_opened done [18:18:33]requested_item shift.open_date is exist - process it [18:18:33]req_shift_open_date [18:18:33]req_shift_open_date done [18:18:33]produce_requested_data done [18:18:33]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30431,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [18:18:33]process_action_free close_receipt [18:18:33]json_value_free [18:18:33]json_value_free done [18:18:33]process_json_proto returns [18:18:33]Send response to host [18:18:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30431,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [18:18:33]free response buf [18:18:33]execute_script done [18:18:33]execute_script returns [18:18:33]free content buf [18:18:33]Sock 7.Close socket [18:18:33]Sock 7.Thread stoped [18:18:37]OFD Sender: No OFD packet to send [18:18:42]OFD Sender: No OFD packet to send [18:18:47]OFD Sender: No OFD packet to send [18:18:52]OFD Sender: No OFD packet to send [18:18:57]OFD Sender: No OFD packet to send [18:19:02]OFD Sender: No OFD packet to send [18:19:07]OFD Sender: No OFD packet to send [18:19:12]OFD Sender: No OFD packet to send [18:19:17]OFD Sender: No OFD packet to send [18:19:22]OFD Sender: No OFD packet to send [18:19:27]OFD Sender: No OFD packet to send [18:19:32]OFD Sender: No OFD packet to send [18:19:37]OFD Sender: No OFD packet to send [18:19:42]OFD Sender: No OFD packet to send [18:19:47]OFD Sender: No OFD packet to send [18:19:52]OFD Sender: No OFD packet to send [18:19:57]OFD Sender: No OFD packet to send [18:20:02]OFD Sender: No OFD packet to send [18:20:07]OFD Sender: No OFD packet to send [18:20:12]OFD Sender: No OFD packet to send [18:20:17]OFD Sender: No OFD packet to send [18:20:22]OFD Sender: No OFD packet to send [18:20:27]OFD Sender: No OFD packet to send [18:20:32]OFD Sender: No OFD packet to send [18:20:33]accept exits with 9 [18:20:33]New connection [18:20:33]New thread 3067489636 created [18:20:33]Thread 3067346276 joined [18:20:33]Waiting for new connection... [18:20:33] Sock 9.Parse request [18:20:33]Sock 9.Check first char [18:20:33]Sock 9.First char is OK [18:20:33]request: POST /json_proto HTTP/1.0 [18:20:33]Method: POST [18:20:33]URL: /json_proto [18:20:33]Method is POST - this is cgi request [18:20:33]url: /json_proto [18:20:33]query_string will be loaded in cgi processing [18:20:33]execute_cgi json_proto POST (null) [18:20:33]execute_cgi path=json_proto method=POST [18:20:33]POST find Content-Length [18:20:33]Host: 172.17.51.3:8080 [18:20:33]Content-Length: 677 [18:20:33]Content-Type: application/json [18:20:33] [18:20:33]POST finish read [18:20:33]Found Content-Length = 677 [18:20:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342833", "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" : 8.090, "sum" : 600.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:20:33]execute_script... [18:20: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)342833", "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" : 8.090, "sum" : 600.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:20:33]POST & json_proto [18:20:33]process_json_proto [18:20:33]json parsed OK: [18:20:33]protocol is kg_v1.0 [18:20:33]action value=close_receipt [18:20:33]process_action close_receipt [18:20:33]cmd_close_receipt [18:20:33]MH_GetDate [18:20:33]Write to MH i2c: F0 00 00 D1 08 C8 [18:20:33]Write i2c OK [18:20:33]MH_I2C_Read... [18:20:33]Read from MH i2c: F0 [18:20:33]MH_I2C_Read... [18:20:33]Read from MH i2c: F0 09 00 [18:20:33]MH_I2C_Read... [18:20:33]Read from MH i2c: F0 09 00 D1 08 00 F1 49 15 67 04 C1 95 66 47 [18:20:33]GetLastDocTimeStamp 1729448309 [18:20:33]current date 1729448433 [18:20:33]FM_GetShiftState [18:20:33]SAM_PROTO_GetShiftState [18:20:33]wFMCommunicate request_size=4 [18:20:33]MH_SAM_APDU [18:20:33]CAPDU: 80 13 01 00 [18:20:33]Write to MH i2c: E2 08 00 D2 08 80 13 01 00 00 00 00 00 57 [18:20:33]Write i2c OK [18:20:33]MH_I2C_Read... [18:20:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:20:33]Read from MH i2c: E2 [18:20:33]MH_I2C_Read... [18:20:33]Read from MH i2c: E2 0E 00 [18:20:33]MH_I2C_Read... [18:20:33]Read from MH i2c: E2 0E 00 D2 08 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 3D [18:20:33]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [18:20:33]wFMCommunicate OK [18:20:33]SAM_PROTO_GetShiftState done [18:20:33]FM_GetShiftState done [18:20:33]opened in 1729384718 [18:20:33]opened+sec_in_day 1729471118 [18:20:33]quantity*price = 60027 [18:20:33]sum+1 = 60029 [18:20:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.75 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 214 20.10.2024 18:20 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30432 ФПД: 9454227542754 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T182033&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30432&fm=9454227542754&tin=02508201610067®Number=0000000000186857&sum=60000 [18:20:34]StoreToDocumentArchive [18:20:34]shift 114 fd 30432 [18:20:34]save to /storage/0114/doc_00030432 [18:20:34]save last doc name /storage/0114/doc_00030432 to /storage/kkm_last_doc_name [18:20:34]save OK [18:20:34]Clear old archive folders... [18:20:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:20:34]tlvbuf is 01D979F0 [18:20:34]SAM_PROTO_ClearQueue [18:20:34]wFMCommunicate request_size=4 [18:20:34]MH_SAM_APDU [18:20:34]CAPDU: 80 09 00 00 [18:20:34]Write to MH i2c: E2 08 00 DF 08 80 09 00 00 00 00 00 00 59 [18:20:34]Write i2c OK [18:20:34]MH_I2C_Read... [18:20:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:20:34]Read from MH i2c: E2 [18:20:34]MH_I2C_Read... [18:20:34]Read from MH i2c: E2 03 00 [18:20:34]MH_I2C_Read... [18:20:34]Read from MH i2c: E2 03 00 DF 08 00 90 00 5B [18:20:34]RAPDU: 90 00 [18:20:34]wFMCommunicate OK [18:20:34]SAM_PROTO_ClearQueue done [18:20:34]KKMCreateOFDPacket [18:20:34]OFDProtocolAddRootSTLVToBuf [18:20:34]FM_MakeSignedData [18:20:34]FM_MakeSignedData [18:20:34]SAM_PROTO_SignData [18:20:34]wFMCommunicate request_size=4 [18:20:34]MH_SAM_APDU [18:20:34]CAPDU: 80 0D 01 02 [18:20:34]Write to MH i2c: E2 08 00 E0 08 80 0D 01 02 00 00 00 00 61 [18:20:34]Write i2c OK [18:20:34]MH_I2C_Read... [18:20:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:20:34]Read from MH i2c: E2 [18:20:34]MH_I2C_Read... [18:20:34]Read from MH i2c: E2 03 00 [18:20:34]MH_I2C_Read... [18:20:34]Read from MH i2c: E2 03 00 E0 08 00 90 00 5C [18:20:34]RAPDU: 90 00 [18:20:34]wFMCommunicate OK [18:20:34]wFMCommunicate request_size=255 [18:20:34]MH_SAM_APDU [18:20: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 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 F1 49 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 08 [18:20:34]Write to MH i2c: E2 02 01 E1 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 F1 49 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 08 00 00 AD [18:20:34]Write i2c OK [18:20:34]MH_I2C_Read... [18:20:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:20:34]Read from MH i2c: E2 [18:20:34]MH_I2C_Read... [18:20:34]Read from MH i2c: E2 03 00 [18:20:34]MH_I2C_Read... [18:20:34]Read from MH i2c: E2 03 00 E1 08 00 90 00 5D [18:20:34]RAPDU: 90 00 [18:20:34]wFMCommunicate OK [18:20:34]wFMCommunicate request_size=10 [18:20:34]MH_SAM_APDU [18:20:34]CAPDU: 80 0D 02 02 05 99 3B DF D2 E2 [18:20:34]Write to MH i2c: E2 0D 00 E2 08 80 0D 02 02 05 00 99 3B DF D2 E2 00 00 D5 [18:20:34]Write i2c OK [18:20:34]MH_I2C_Read... [18:20:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:20:34]Read from MH i2c: E2 [18:20:34]MH_I2C_Read... [18:20:34]Read from MH i2c: E2 03 00 [18:20:34]MH_I2C_Read... [18:20:34]Read from MH i2c: E2 03 00 E2 08 00 90 00 5E [18:20:34]RAPDU: 90 00 [18:20:34]wFMCommunicate OK [18:20:34]wFMCommunicate request_size=4 [18:20:34]MH_SAM_APDU [18:20:34]CAPDU: 80 0D 03 02 [18:20:34]Write to MH i2c: E2 08 00 E3 08 80 0D 03 02 00 00 00 00 66 [18:20:34]Write i2c OK [18:20:34]MH_I2C_Read... [18:20:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:20:34]Read from MH i2c: E2 [18:20:34]MH_I2C_Read... [18:20:34]Read from MH i2c: E2 0B 00 [18:20:34]MH_I2C_Read... [18:20:34]Read from MH i2c: E2 0B 00 E3 08 00 29 D6 27 91 A7 9E E0 EF 90 00 32 [18:20:34]RAPDU: 29 D6 27 91 A7 9E E0 EF 90 00 [18:20:34]wFMCommunicate OK [18:20:34]SAM_PROTO_SignData done [18:20:34]FM_MakeSignedData done [18:20:34]CreateOFDProtocolMessage [18:20:34]wFMCommunicate request_size=4 [18:20:34]MH_SAM_APDU [18:20:34]CAPDU: 80 11 00 00 [18:20:34]Write to MH i2c: E2 08 00 E4 08 80 11 00 00 00 00 00 00 66 [18:20:34]Write i2c OK [18:20:34]MH_I2C_Read... [18:20:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:20:34]Read from MH i2c: E2 [18:20:34]MH_I2C_Read... [18:20:34]Read from MH i2c: E2 17 00 [18:20:34]MH_I2C_Read... [18:20:34]Read from MH i2c: E2 17 00 E4 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 B4 [18:20:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [18:20:34]wFMCommunicate OK [18:20:34]CreateOFDProtocolMessage done [18:20:34]OFDSenderStorePacket 30432 [18:20:34]StoreOFDPacket docnum=30432 [18:20: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 6B BC 07 01 4E 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 F1 49 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 08 99 3B DF D2 E2 29 D6 27 91 A7 9E E0 EF [18:20:34]CheckFolder [18:20:34]dirname=/storage/ofd_packets [18:20:34]CheckFolder done [18:20:34]ProducePacketName [18:20:34]name=ofd_packets/00030432 [18:20:34]NVStorageSaveData ofd_packets/00030432 [18:20:34]File name is /storage/ofd_packets/00030432 [18:20:34]Write 301 bytes [18:20:34]NVStorageSaveData done [18:20:34]OFDSenderStorePacket done [18:20:34]KKMCreateOFDPacket done [18:20:34]NVStorageSaveData kkm_last_timestamp [18:20:34]File name is /storage/kkm_last_timestamp [18:20:34]Write 4 bytes [18:20:34]NVStorageSaveData done [18:20:34]ExternCall_PrintAddStr [18:20:34]wPrintStart [18:20:34]Write to MH i2c: 01 00 00 E5 08 ED [18:20:34]Write i2c OK [18:20:34]MH_I2C_Read... [18:20:34]Read from MH i2c: 01 [18:20:34]MH_I2C_Read... [18:20:34]Read from MH i2c: 01 07 00 [18:20:34]MH_I2C_Read... [18:20:34]Read from MH i2c: 01 07 00 E5 08 00 00 00 00 00 FF 0F 02 [18:20:34]RasterBufferAndPrint [18:20:34]line Счет N : (1)342833 [18:20:34]line ИНН: 02508201610067 [18:20:34]line Контрольно-Кассовый Чек [18:20:34]line ПРОДАЖА [18:20:34]line ТРК (МРК, ГНК) : 32 [18:20:34]line Товар: 2710124500 [18:20:34]line Аи-95-К-3 [18:20:34]line 8.090 * 74.20 [18:20:34]line = 600.28 [18:20:34]line НДС 12% НСП 1% [18:20:34]line > о реализуемом товаре [18:20:34]line ОКРУГЛЕНИЕ: -0.28 [18:20:34]line ИТОГО: 600.00 [18:20:34]line Внесено: 600.00 [18:20:34]line СДАЧА: 0.00 [18:20:34]line НСП 1% : 5.31 [18:20:34]line НДС 12% : 63.75 [18:20:34]line Наличными: 600.00 [18:20:34]line Безнал.: 0.00 [18:20:34]line Место: АЗС № 78 "Партнер Нефть" [18:20:34]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [18:20:34]line СНО: Общий режим [18:20:34]line Чек 214 20.10.2024 18:20 [18:20:34]line Смена: 114 ФФД: 1.0 [18:20:34]line ЗНМ: 0300000137 [18:20:34]line РНМ: 0000000000186857 [18:20:34]line Версия ККМ: v1.0 [18:20:34]line ФМ: 0000000002094219 [18:20:34]line ФД: 30432 [18:20:34]line ФПД: 9454227542754 [18:20:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T182033&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30432&fm=9454227542754&tin=02508201610067®Number=0000000000186857&sum=60000 [18:20:35]OFD Sender: Processing packet 30432 [packets to send 10, broken 9] [18:20:35]ProducePacketName [18:20:35]name=ofd_packets/00030432 [18:20:35]OFD Sender: To server: pG, [18:20:35]CommunicateWithHost lk.salyk.kg:30040 [18:20:35]ConnectInit lk.salyk.kg [18:20:35]written 0, free lines is 4095 [18:20:35]Connected sock=10 [18:20: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 6B BC 07 01 4E 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 F1 49 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 08 99 3B DF D2 E2 29 D6 27 91 A7 9E E0 EF [18:20: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 A6 C9 47 00 EE 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 E0 76 00 00 F4 03 04 00 74 F4 14 67 B6 04 01 00 00 71 64 AE 17 A6 76 67 AF [18:20:35]CommunicateWithHost err = 0 [18:20:35]CheckOFDResponse [18:20:35]1017 (14) - 77093643461234 [18:20:35]1041 (16) - 0000000002094219 [18:20:35]1040 (4) - 30432 [18:20:35]1012 (4) - 20.10.2024 12:15 [18:20:35]1206 (1) - 0 [18:20:35]OFD Sender: Remove packet 30432 [18:20:35]ProducePacketName [18:20:35]name=ofd_packets/00030432 [18:20:35]NVStorageDeleteData [18:20:35]Write to MH i2c: 01 00 00 10 09 19 [18:20:35]Write i2c OK [18:20:35]MH_I2C_Read... [18:20:35]Read from MH i2c: 01 [18:20:35]MH_I2C_Read... [18:20:35]Read from MH i2c: 01 07 00 [18:20:35]MH_I2C_Read... [18:20:35]Read from MH i2c: 01 07 00 10 09 00 00 00 00 00 ED 0C 19 [18:20:35]RasterBufferAndPrint [18:20:35]line [18:20:35]line [18:20:35]line [18:20:35]line [18:20:35]line [18:20:35]written 0, free lines is 3315 [18:20:35]MH_Cut [18:20:35]Write to MH i2c: D1 01 00 17 09 01 F2 [18:20:35]Write i2c OK [18:20:35]MH_I2C_Read... [18:20:35]Read from MH i2c: D1 [18:20:35]MH_I2C_Read... [18:20:35]Read from MH i2c: D1 01 00 [18:20:35]MH_I2C_Read... [18:20:35]Read from MH i2c: D1 01 00 17 09 00 F1 [18:20:35]Write to MH i2c: 01 00 00 18 09 21 [18:20:35]Write i2c OK [18:20:35]MH_I2C_Read... [18:20:36]OFD Sender: No OFD packet to send [18:20:36]*** Cut start [18:20:36]*** Partial cut [18:20:36]*** CUTSNS_PIN = 1 [18:20:36]*** CUTSNS_PIN = 0 [18:20:36]*** Brake cut motor [18:20:36]Read from MH i2c: 01 [18:20:36]MH_I2C_Read... [18:20:36]*** Stop cut motor [18:20:36]*** Cut end [18:20:36]Read from MH i2c: 01 07 00 [18:20:36]MH_I2C_Read... [18:20:36]Read from MH i2c: 01 07 00 18 09 00 00 00 00 00 FF 0F 36 [18:20:36]process_action close_receipt done [18:20:36]requested_data is exist [18:20:36]produce_requested_data [18:20:36]requested_item fm.sn is exist - process it [18:20:36]wFMCommunicate request_size=4 [18:20:36]MH_SAM_APDU [18:20:36]CAPDU: 80 11 00 00 [18:20:36]Write to MH i2c: E2 08 00 19 09 80 11 00 00 00 00 00 00 9C [18:20:36]Write i2c OK [18:20:36]MH_I2C_Read... [18:20:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:20:37]Read from MH i2c: E2 [18:20:37]MH_I2C_Read... [18:20:37]Read from MH i2c: E2 17 00 [18:20:37]MH_I2C_Read... [18:20:37]Read from MH i2c: E2 17 00 19 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 EA [18:20:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [18:20:37]wFMCommunicate OK [18:20:37]requested_item fd.num is exist - process it [18:20:37]SAM_PROTO_GetFieldsCounters [18:20:37]wFMCommunicate request_size=4 [18:20:37]MH_SAM_APDU [18:20:37]CAPDU: 80 13 00 00 [18:20:37]Write to MH i2c: E2 08 00 1A 09 80 13 00 00 00 00 00 00 9F [18:20:37]Write i2c OK [18:20:37]MH_I2C_Read... [18:20:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:20:37]Read from MH i2c: E2 [18:20:37]MH_I2C_Read... [18:20:37]Read from MH i2c: E2 62 00 [18:20:37]MH_I2C_Read... [18:20:37]Read from MH i2c: E2 62 00 1A 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 0F [18:20: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 E0 76 00 00 0E 04 04 00 72 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:20:37]wFMCommunicate OK [18:20:37]SAM_PROTO_GetFieldsCounters done [18:20:37]requested_item shift.num is exist - process it [18:20:37]requested_item shift.opened is exist - process it [18:20:37]req_shift_opened [18:20:37]FM_GetShiftState [18:20:37]SAM_PROTO_GetShiftState [18:20:37]wFMCommunicate request_size=4 [18:20:37]MH_SAM_APDU [18:20:37]CAPDU: 80 13 01 00 [18:20:37]Write to MH i2c: E2 08 00 1B 09 80 13 01 00 00 00 00 00 A1 [18:20:37]Write i2c OK [18:20:37]MH_I2C_Read... [18:20:37]Read from MH i2c: E2 [18:20:37]MH_I2C_Read... [18:20:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:20:37]Read from MH i2c: E2 0E 00 [18:20:37]MH_I2C_Read... [18:20:37]Read from MH i2c: E2 0E 00 1B 09 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 87 [18:20:37]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [18:20:37]wFMCommunicate OK [18:20:37]SAM_PROTO_GetShiftState done [18:20:37]FM_GetShiftState done [18:20:37]req_shift_opened done [18:20:37]requested_item shift.open_date is exist - process it [18:20:37]req_shift_open_date [18:20:37]req_shift_open_date done [18:20:37]produce_requested_data done [18:20:37]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30432,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [18:20:37]process_action_free close_receipt [18:20:37]json_value_free [18:20:37]json_value_free done [18:20:37]process_json_proto returns [18:20:37]Send response to host [18:20:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30432,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [18:20:37]free response buf [18:20:37]execute_script done [18:20:37]execute_script returns [18:20:37]free content buf [18:20:37]Sock 9.Close socket [18:20:37]Sock 9.Thread stoped [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:04]accept exits with 7 [18:21:04]New connection [18:21:04]New thread 3067346276 created [18:21:04]Thread 3067489636 joined [18:21:04]Waiting for new connection... [18:21:04] Sock 7.Parse request [18:21:04]Sock 7.Check first char [18:21:04]Sock 7.First char is OK [18:21:04]request: POST /json_proto HTTP/1.0 [18:21:04]Method: POST [18:21:04]URL: /json_proto [18:21:04]Method is POST - this is cgi request [18:21:04]url: /json_proto [18:21:04]query_string will be loaded in cgi processing [18:21:04]execute_cgi json_proto POST (null) [18:21:04]execute_cgi path=json_proto method=POST [18:21:04]POST find Content-Length [18:21:04]Host: 172.17.51.3:8080 [18:21:04]Content-Length: 840 [18:21:04]Content-Type: application/json [18:21:04] [18:21:04]POST finish read [18:21:04]Found Content-Length = 840 [18:21:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342834", "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" ] } } [18:21:04]execute_script... [18:21: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)342834", "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" ] } } [18:21:04]POST & json_proto [18:21:04]process_json_proto [18:21:04]json parsed OK: [18:21:04]protocol is kg_v1.0 [18:21:04]action value=close_receipt [18:21:04]process_action close_receipt [18:21:04]cmd_close_receipt [18:21:04]MH_GetDate [18:21:04]Write to MH i2c: F0 00 00 1C 09 14 [18:21:04]Write i2c OK [18:21:04]MH_I2C_Read... [18:21:04]Read from MH i2c: F0 [18:21:04]MH_I2C_Read... [18:21:04]Read from MH i2c: F0 09 00 [18:21:04]MH_I2C_Read... [18:21:04]Read from MH i2c: F0 09 00 1C 09 00 11 4A 15 67 04 C1 95 66 B4 [18:21:04]GetLastDocTimeStamp 1729448433 [18:21:04]current date 1729448465 [18:21:04]FM_GetShiftState [18:21:04]SAM_PROTO_GetShiftState [18:21:04]wFMCommunicate request_size=4 [18:21:04]MH_SAM_APDU [18:21:04]CAPDU: 80 13 01 00 [18:21:04]Write to MH i2c: E2 08 00 1D 09 80 13 01 00 00 00 00 00 A3 [18:21:04]Write i2c OK [18:21:04]MH_I2C_Read... [18:21:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:21:04]Read from MH i2c: E2 [18:21:04]MH_I2C_Read... [18:21:04]Read from MH i2c: E2 0E 00 [18:21:04]MH_I2C_Read... [18:21:04]Read from MH i2c: E2 0E 00 1D 09 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 89 [18:21:04]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [18:21:04]wFMCommunicate OK [18:21:04]SAM_PROTO_GetShiftState done [18:21:04]FM_GetShiftState done [18:21:04]opened in 1729384718 [18:21:04]opened+sec_in_day 1729471118 [18:21:04]quantity*price = 20003 [18:21:04]sum+1 = 20004 [18:21:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 200.03 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 0.00 Безнал.: 200.03 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 215 20.10.2024 18:21 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Платежная система: АКБ Кыргызстан ФМ: 0000000002094219 ФД: 30433 ФПД: 196075825221883 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T182105&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30433&fm=196075825221883&tin=02508201610067®Number=0000000000186857&sum=20003 [18:21:05]StoreToDocumentArchive [18:21:05]shift 114 fd 30433 [18:21:05]save to /storage/0114/doc_00030433 [18:21:05]save last doc name /storage/0114/doc_00030433 to /storage/kkm_last_doc_name [18:21:05]save OK [18:21:05]Clear old archive folders... [18:21:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:21:05]tlvbuf is 01DBE3F0 [18:21:05]SAM_PROTO_ClearQueue [18:21:05]wFMCommunicate request_size=4 [18:21:05]MH_SAM_APDU [18:21:05]CAPDU: 80 09 00 00 [18:21:05]Write to MH i2c: E2 08 00 2A 09 80 09 00 00 00 00 00 00 A5 [18:21:05]Write i2c OK [18:21:05]MH_I2C_Read... [18:21:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:21:05]Read from MH i2c: E2 [18:21:05]MH_I2C_Read... [18:21:05]Read from MH i2c: E2 03 00 [18:21:05]MH_I2C_Read... [18:21:05]Read from MH i2c: E2 03 00 2A 09 00 90 00 A7 [18:21:05]RAPDU: 90 00 [18:21:05]wFMCommunicate OK [18:21:05]SAM_PROTO_ClearQueue done [18:21:05]KKMCreateOFDPacket [18:21:05]OFDProtocolAddRootSTLVToBuf [18:21:05]FM_MakeSignedData [18:21:05]FM_MakeSignedData [18:21:05]SAM_PROTO_SignData [18:21:05]wFMCommunicate request_size=4 [18:21:05]MH_SAM_APDU [18:21:05]CAPDU: 80 0D 01 02 [18:21:05]Write to MH i2c: E2 08 00 2B 09 80 0D 01 02 00 00 00 00 AD [18:21:05]Write i2c OK [18:21:05]MH_I2C_Read... [18:21:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:21:05]Read from MH i2c: E2 [18:21:05]MH_I2C_Read... [18:21:05]Read from MH i2c: E2 03 00 [18:21:05]MH_I2C_Read... [18:21:05]Read from MH i2c: E2 03 00 2B 09 00 90 00 A8 [18:21:05]RAPDU: 90 00 [18:21:05]wFMCommunicate OK [18:21:05]wFMCommunicate request_size=255 [18:21:05]MH_SAM_APDU [18:21: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 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 D7 00 00 00 F4 03 04 00 11 4A 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 B2 [18:21:05]Write to MH i2c: E2 02 01 2C 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 D7 00 00 00 F4 03 04 00 11 4A 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 B2 00 00 2F [18:21:05]Write i2c OK [18:21:05]MH_I2C_Read... [18:21:06]OFD Sender: No OFD packet to send [18:21:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:21:06]Read from MH i2c: E2 [18:21:06]MH_I2C_Read... [18:21:06]Read from MH i2c: E2 03 00 [18:21:06]MH_I2C_Read... [18:21:06]Read from MH i2c: E2 03 00 2C 09 00 90 00 A9 [18:21:06]RAPDU: 90 00 [18:21:06]wFMCommunicate OK [18:21:06]wFMCommunicate request_size=10 [18:21:06]MH_SAM_APDU [18:21:06]CAPDU: 80 0D 02 02 05 54 75 E9 50 FB [18:21:06]Write to MH i2c: E2 0D 00 2D 09 80 0D 02 02 05 00 54 75 E9 50 FB 00 00 B7 [18:21:06]Write i2c OK [18:21:06]MH_I2C_Read... [18:21:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:21:06]Read from MH i2c: E2 [18:21:06]MH_I2C_Read... [18:21:06]Read from MH i2c: E2 03 00 [18:21:06]MH_I2C_Read... [18:21:06]Read from MH i2c: E2 03 00 2D 09 00 90 00 AA [18:21:06]RAPDU: 90 00 [18:21:06]wFMCommunicate OK [18:21:06]wFMCommunicate request_size=4 [18:21:06]MH_SAM_APDU [18:21:06]CAPDU: 80 0D 03 02 [18:21:06]Write to MH i2c: E2 08 00 2E 09 80 0D 03 02 00 00 00 00 B2 [18:21:06]Write i2c OK [18:21:06]MH_I2C_Read... [18:21:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:21:06]Read from MH i2c: E2 [18:21:06]MH_I2C_Read... [18:21:06]Read from MH i2c: E2 0B 00 [18:21:06]MH_I2C_Read... [18:21:06]Read from MH i2c: E2 0B 00 2E 09 00 B1 FF 0A 56 CE F1 28 E7 90 00 91 [18:21:06]RAPDU: B1 FF 0A 56 CE F1 28 E7 90 00 [18:21:06]wFMCommunicate OK [18:21:06]SAM_PROTO_SignData done [18:21:06]FM_MakeSignedData done [18:21:06]CreateOFDProtocolMessage [18:21:06]wFMCommunicate request_size=4 [18:21:06]MH_SAM_APDU [18:21:06]CAPDU: 80 11 00 00 [18:21:06]Write to MH i2c: E2 08 00 2F 09 80 11 00 00 00 00 00 00 B2 [18:21:06]Write i2c OK [18:21:06]MH_I2C_Read... [18:21:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:21:06]Read from MH i2c: E2 [18:21:06]MH_I2C_Read... [18:21:06]Read from MH i2c: E2 17 00 [18:21:06]MH_I2C_Read... [18:21:06]Read from MH i2c: E2 17 00 2F 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 00 [18:21: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:21:06]wFMCommunicate OK [18:21:06]CreateOFDProtocolMessage done [18:21:06]OFDSenderStorePacket 30433 [18:21:06]StoreOFDPacket docnum=30433 [18:21: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 60 FF 07 01 08 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 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 D7 00 00 00 F4 03 04 00 11 4A 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 B2 54 75 E9 50 FB B1 FF 0A 56 CE F1 28 E7 [18:21:06]CheckFolder [18:21:06]dirname=/storage/ofd_packets [18:21:06]CheckFolder done [18:21:06]ProducePacketName [18:21:06]name=ofd_packets/00030433 [18:21:06]NVStorageSaveData ofd_packets/00030433 [18:21:06]File name is /storage/ofd_packets/00030433 [18:21:06]Write 301 bytes [18:21:06]NVStorageSaveData done [18:21:06]OFDSenderStorePacket done [18:21:06]KKMCreateOFDPacket done [18:21:06]NVStorageSaveData kkm_last_timestamp [18:21:06]File name is /storage/kkm_last_timestamp [18:21:06]Write 4 bytes [18:21:06]NVStorageSaveData done [18:21:06]ExternCall_PrintAddStr [18:21:06]wPrintStart [18:21:06]Write to MH i2c: 01 00 00 30 09 39 [18:21:06]Write i2c OK [18:21:06]MH_I2C_Read... [18:21:06]Read from MH i2c: 01 [18:21:06]MH_I2C_Read... [18:21:06]Read from MH i2c: 01 07 00 [18:21:06]MH_I2C_Read... [18:21:06]Read from MH i2c: 01 07 00 30 09 00 00 00 00 00 FF 0F 4E [18:21:06]RasterBufferAndPrint [18:21:06]line Счет N : (1)342834 [18:21:06]line ИНН: 02508201610067 [18:21:06]line Контрольно-Кассовый Чек [18:21:06]line ПРОДАЖА [18:21:06]line ТРК (МРК, ГНК) : 63 [18:21:06]line Товар: 2710124130 [18:21:06]line Аи-92-К-2 [18:21:06]line 2.990 * 66.90 [18:21:06]line = 200.03 [18:21:06]line НДС 12% НСП 1% [18:21:06]line > о реализуемом товаре [18:21:06]line ИТОГО: 200.03 [18:21:06]line НСП 1% : 1.77 [18:21:06]line НДС 12% : 21.24 [18:21:06]line Наличными: 0.00 [18:21:06]line Безнал.: 200.03 [18:21:06]line Место: АЗС № 78 "Партнер Нефть" [18:21:06]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [18:21:06]line СНО: Общий режим [18:21:06]line Чек 215 20.10.2024 18:21 [18:21:06]line Смена: 114 ФФД: 1.0 [18:21:06]line ЗНМ: 0300000137 [18:21:06]line РНМ: 0000000000186857 [18:21:06]line Версия ККМ: v1.0 [18:21:06]line Платежная система: АКБ Кыргызстан [18:21:06]line ФМ: 0000000002094219 [18:21:06]line ФД: 30433 [18:21:06]line ФПД: 196075825221883 [18:21:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T182105&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30433&fm=196075825221883&tin=02508201610067®Number=0000000000186857&sum=20003 [18:21:06]OFD Sender: Processing packet 30433 [packets to send 10, broken 9] [18:21:06]ProducePacketName [18:21:06]name=ofd_packets/00030433 [18:21:06]OFD Sender: To server: pG, [18:21:06]CommunicateWithHost lk.salyk.kg:30040 [18:21:06]ConnectInit lk.salyk.kg [18:21:06]written 0, free lines is 4095 [18:21:06]Connected sock=10 [18:21: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 60 FF 07 01 08 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 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 D7 00 00 00 F4 03 04 00 11 4A 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 B2 54 75 E9 50 FB B1 FF 0A 56 CE F1 28 E7 [18:21: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 07 04 47 00 90 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 E1 76 00 00 F4 03 04 00 94 F4 14 67 B6 04 01 00 00 C7 34 76 F7 E1 E1 6F E5 [18:21:07]CommunicateWithHost err = 0 [18:21:07]CheckOFDResponse [18:21:07]1017 (14) - 77093643461234 [18:21:07]1041 (16) - 0000000002094219 [18:21:07]1040 (4) - 30433 [18:21:07]1012 (4) - 20.10.2024 12:16 [18:21:07]1206 (1) - 0 [18:21:07]OFD Sender: Remove packet 30433 [18:21:07]ProducePacketName [18:21:07]name=ofd_packets/00030433 [18:21:07]NVStorageDeleteData [18:21:07]Write to MH i2c: 01 00 00 5A 09 63 [18:21:07]Write i2c OK [18:21:07]MH_I2C_Read... [18:21:07]Read from MH i2c: 01 [18:21:07]MH_I2C_Read... [18:21:07]Read from MH i2c: 01 07 00 [18:21:07]MH_I2C_Read... [18:21:07]Read from MH i2c: 01 07 00 5A 09 00 00 00 00 00 0E 0D 85 [18:21:07]RasterBufferAndPrint [18:21:07]line [18:21:07]line [18:21:07]line [18:21:07]line [18:21:07]line [18:21:07]written 0, free lines is 3349 [18:21:07]MH_Cut [18:21:07]Write to MH i2c: D1 01 00 61 09 01 3C [18:21:07]Write i2c OK [18:21:07]MH_I2C_Read... [18:21:07]Read from MH i2c: D1 [18:21:07]MH_I2C_Read... [18:21:07]Read from MH i2c: D1 01 00 [18:21:07]MH_I2C_Read... [18:21:07]Read from MH i2c: D1 01 00 61 09 00 3B [18:21:07]Write to MH i2c: 01 00 00 62 09 6B [18:21:07]Write i2c OK [18:21:07]MH_I2C_Read... [18:21:07]OFD Sender: No OFD packet to send [18:21:07]*** Cut start [18:21:07]*** Partial cut [18:21:07]*** CUTSNS_PIN = 1 [18:21:07]*** CUTSNS_PIN = 0 [18:21:08]*** Brake cut motor [18:21:08]Read from MH i2c: 01 [18:21:08]MH_I2C_Read... [18:21:08]*** Stop cut motor [18:21:08]*** Cut end [18:21:08]Read from MH i2c: 01 07 00 [18:21:08]MH_I2C_Read... [18:21:08]Read from MH i2c: 01 07 00 62 09 00 00 00 00 00 FF 0F 80 [18:21:08]process_action close_receipt done [18:21:08]requested_data is exist [18:21:08]produce_requested_data [18:21:08]requested_item fm.sn is exist - process it [18:21:08]wFMCommunicate request_size=4 [18:21:08]MH_SAM_APDU [18:21:08]CAPDU: 80 11 00 00 [18:21:08]Write to MH i2c: E2 08 00 63 09 80 11 00 00 00 00 00 00 E6 [18:21:08]Write i2c OK [18:21:08]MH_I2C_Read... [18:21:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:21:08]Read from MH i2c: E2 [18:21:08]MH_I2C_Read... [18:21:08]Read from MH i2c: E2 17 00 [18:21:08]MH_I2C_Read... [18:21:08]Read from MH i2c: E2 17 00 63 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 34 [18:21:08]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:08]wFMCommunicate OK [18:21:08]requested_item fd.num is exist - process it [18:21:08]SAM_PROTO_GetFieldsCounters [18:21:08]wFMCommunicate request_size=4 [18:21:08]MH_SAM_APDU [18:21:08]CAPDU: 80 13 00 00 [18:21:08]Write to MH i2c: E2 08 00 64 09 80 13 00 00 00 00 00 00 E9 [18:21:08]Write i2c OK [18:21:08]MH_I2C_Read... [18:21:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:21:08]Read from MH i2c: E2 [18:21:08]MH_I2C_Read... [18:21:08]Read from MH i2c: E2 62 00 [18:21:08]MH_I2C_Read... [18:21:08]Read from MH i2c: E2 62 00 64 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 5D [18:21: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 E1 76 00 00 0E 04 04 00 72 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:21:08]wFMCommunicate OK [18:21:08]SAM_PROTO_GetFieldsCounters done [18:21:08]requested_item shift.num is exist - process it [18:21:08]requested_item shift.opened is exist - process it [18:21:08]req_shift_opened [18:21:08]FM_GetShiftState [18:21:08]SAM_PROTO_GetShiftState [18:21:08]wFMCommunicate request_size=4 [18:21:08]MH_SAM_APDU [18:21:08]CAPDU: 80 13 01 00 [18:21:08]Write to MH i2c: E2 08 00 65 09 80 13 01 00 00 00 00 00 EB [18:21:08]Write i2c OK [18:21:08]MH_I2C_Read... [18:21:08]Read from MH i2c: E2 [18:21:08]MH_I2C_Read... [18:21:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:21:08]Read from MH i2c: E2 0E 00 [18:21:08]MH_I2C_Read... [18:21:08]Read from MH i2c: E2 0E 00 65 09 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 D1 [18:21:08]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [18:21:08]wFMCommunicate OK [18:21:08]SAM_PROTO_GetShiftState done [18:21:08]FM_GetShiftState done [18:21:08]req_shift_opened done [18:21:08]requested_item shift.open_date is exist - process it [18:21:08]req_shift_open_date [18:21:08]req_shift_open_date done [18:21:08]produce_requested_data done [18:21:08]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30433,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [18:21:08]process_action_free close_receipt [18:21:08]json_value_free [18:21:08]json_value_free done [18:21:08]process_json_proto returns [18:21:08]Send response to host [18:21:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30433,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [18:21:08]free response buf [18:21:08]execute_script done [18:21:08]execute_script returns [18:21:08]free content buf [18:21:08]Sock 7.Close socket [18:21:08]Sock 7.Thread stoped [18:21:12]OFD Sender: No OFD packet to send [18:21:17]OFD Sender: No OFD packet to send [18:21:22]OFD Sender: No OFD packet to send [18:21:27]OFD Sender: No OFD packet to send [18:21:32]OFD Sender: No OFD packet to send [18:21:37]OFD Sender: No OFD packet to send [18:21:42]OFD Sender: No OFD packet to send [18:21:47]OFD Sender: No OFD packet to send [18:21:52]OFD Sender: No OFD packet to send [18:21:57]OFD Sender: No OFD packet to send [18:22:02]OFD Sender: No OFD packet to send [18:22:07]OFD Sender: No OFD packet to send [18:22:11]accept exits with 9 [18:22:11]New connection [18:22:11]New thread 3067489636 created [18:22:11]Thread 3067346276 joined [18:22:11]Waiting for new connection... [18:22:11] Sock 9.Parse request [18:22:11]Sock 9.Check first char [18:22:11]Sock 9.First char is OK [18:22:11]request: POST /json_proto HTTP/1.0 [18:22:11]Method: POST [18:22:11]URL: /json_proto [18:22:11]Method is POST - this is cgi request [18:22:11]url: /json_proto [18:22:11]query_string will be loaded in cgi processing [18:22:11]execute_cgi json_proto POST (null) [18:22:11]execute_cgi path=json_proto method=POST [18:22:11]POST find Content-Length [18:22:11]Host: 172.17.51.3:8080 [18:22:11]Content-Length: 682 [18:22:11]Content-Type: application/json [18:22:11] [18:22:11]POST finish read [18:22:11]Found Content-Length = 682 [18:22:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342835", "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" ] } } [18:22:11]execute_script... [18:22: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)342835", "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" ] } } [18:22:11]POST & json_proto [18:22:11]process_json_proto [18:22:11]json parsed OK: [18:22:11]protocol is kg_v1.0 [18:22:11]action value=close_receipt [18:22:11]process_action close_receipt [18:22:11]cmd_close_receipt [18:22:11]MH_GetDate [18:22:11]Write to MH i2c: F0 00 00 66 09 5E [18:22:11]Write i2c OK [18:22:11]MH_I2C_Read... [18:22:11]Read from MH i2c: F0 [18:22:11]MH_I2C_Read... [18:22:11]Read from MH i2c: F0 09 00 [18:22:11]MH_I2C_Read... [18:22:11]Read from MH i2c: F0 09 00 66 09 00 53 4A 15 67 04 C1 95 66 40 [18:22:11]GetLastDocTimeStamp 1729448465 [18:22:11]current date 1729448531 [18:22:11]FM_GetShiftState [18:22:11]SAM_PROTO_GetShiftState [18:22:11]wFMCommunicate request_size=4 [18:22:11]MH_SAM_APDU [18:22:11]CAPDU: 80 13 01 00 [18:22:11]Write to MH i2c: E2 08 00 67 09 80 13 01 00 00 00 00 00 ED [18:22:11]Write i2c OK [18:22:11]MH_I2C_Read... [18:22:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:22:11]Read from MH i2c: E2 [18:22:11]MH_I2C_Read... [18:22:11]Read from MH i2c: E2 0E 00 [18:22:11]MH_I2C_Read... [18:22:11]Read from MH i2c: E2 0E 00 67 09 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 D3 [18:22:11]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [18:22:11]wFMCommunicate OK [18:22:11]SAM_PROTO_GetShiftState done [18:22:11]FM_GetShiftState done [18:22:11]opened in 1729384718 [18:22:11]opened+sec_in_day 1729471118 [18:22:11]quantity*price = 200031 [18:22:11]sum+1 = 200032 [18:22:11]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 СНО: Общий режим Чек 216 20.10.2024 18:22 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30434 ФПД: 46138503220097 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T182211&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30434&fm=46138503220097&tin=02508201610067®Number=0000000000186857&sum=200000 [18:22:12]StoreToDocumentArchive [18:22:12]shift 114 fd 30434 [18:22:12]save to /storage/0114/doc_00030434 [18:22:12]save last doc name /storage/0114/doc_00030434 to /storage/kkm_last_doc_name [18:22:12]save OK [18:22:12]Clear old archive folders... [18:22:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:22:12]tlvbuf is 01DC5B00 [18:22:12]SAM_PROTO_ClearQueue [18:22:12]wFMCommunicate request_size=4 [18:22:12]MH_SAM_APDU [18:22:12]CAPDU: 80 09 00 00 [18:22:12]Write to MH i2c: E2 08 00 74 09 80 09 00 00 00 00 00 00 EF [18:22:12]Write i2c OK [18:22:12]MH_I2C_Read... [18:22:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:22:12]Read from MH i2c: E2 [18:22:12]MH_I2C_Read... [18:22:12]Read from MH i2c: E2 03 00 [18:22:12]MH_I2C_Read... [18:22:12]Read from MH i2c: E2 03 00 74 09 00 90 00 F1 [18:22:12]RAPDU: 90 00 [18:22:12]wFMCommunicate OK [18:22:12]SAM_PROTO_ClearQueue done [18:22:12]KKMCreateOFDPacket [18:22:12]OFDProtocolAddRootSTLVToBuf [18:22:12]FM_MakeSignedData [18:22:12]FM_MakeSignedData [18:22:12]SAM_PROTO_SignData [18:22:12]wFMCommunicate request_size=4 [18:22:12]MH_SAM_APDU [18:22:12]CAPDU: 80 0D 01 02 [18:22:12]Write to MH i2c: E2 08 00 75 09 80 0D 01 02 00 00 00 00 F7 [18:22:12]Write i2c OK [18:22:12]MH_I2C_Read... [18:22:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:22:12]Read from MH i2c: E2 [18:22:12]MH_I2C_Read... [18:22:12]Read from MH i2c: E2 03 00 [18:22:12]MH_I2C_Read... [18:22:12]Read from MH i2c: E2 03 00 75 09 00 90 00 F2 [18:22:12]RAPDU: 90 00 [18:22:12]wFMCommunicate OK [18:22:12]wFMCommunicate request_size=255 [18:22:12]MH_SAM_APDU [18:22: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 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 D8 00 00 00 F4 03 04 00 53 4A 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 29 [18:22:12]Write to MH i2c: E2 02 01 76 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 D8 00 00 00 F4 03 04 00 53 4A 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 29 00 00 AE [18:22:12]Write i2c OK [18:22:12]MH_I2C_Read... [18:22:12]OFD Sender: No OFD packet to send [18:22:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:22:12]Read from MH i2c: E2 [18:22:12]MH_I2C_Read... [18:22:12]Read from MH i2c: E2 03 00 [18:22:12]MH_I2C_Read... [18:22:12]Read from MH i2c: E2 03 00 76 09 00 90 00 F3 [18:22:12]RAPDU: 90 00 [18:22:12]wFMCommunicate OK [18:22:12]wFMCommunicate request_size=10 [18:22:12]MH_SAM_APDU [18:22:12]CAPDU: 80 0D 02 02 05 F6 75 18 4B 81 [18:22:12]Write to MH i2c: E2 0D 00 77 09 80 0D 02 02 05 00 F6 75 18 4B 81 00 00 53 [18:22:12]Write i2c OK [18:22:12]MH_I2C_Read... [18:22:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:22:12]Read from MH i2c: E2 [18:22:12]MH_I2C_Read... [18:22:12]Read from MH i2c: E2 03 00 [18:22:12]MH_I2C_Read... [18:22:12]Read from MH i2c: E2 03 00 77 09 00 90 00 F4 [18:22:12]RAPDU: 90 00 [18:22:12]wFMCommunicate OK [18:22:12]wFMCommunicate request_size=4 [18:22:12]MH_SAM_APDU [18:22:12]CAPDU: 80 0D 03 02 [18:22:12]Write to MH i2c: E2 08 00 78 09 80 0D 03 02 00 00 00 00 FC [18:22:12]Write i2c OK [18:22:12]MH_I2C_Read... [18:22:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:22:12]Read from MH i2c: E2 [18:22:12]MH_I2C_Read... [18:22:12]Read from MH i2c: E2 0B 00 [18:22:12]MH_I2C_Read... [18:22:12]Read from MH i2c: E2 0B 00 78 09 00 E6 F2 DF 84 24 00 88 D8 90 00 BC [18:22:12]RAPDU: E6 F2 DF 84 24 00 88 D8 90 00 [18:22:12]wFMCommunicate OK [18:22:12]SAM_PROTO_SignData done [18:22:12]FM_MakeSignedData done [18:22:12]CreateOFDProtocolMessage [18:22:12]wFMCommunicate request_size=4 [18:22:12]MH_SAM_APDU [18:22:12]CAPDU: 80 11 00 00 [18:22:12]Write to MH i2c: E2 08 00 79 09 80 11 00 00 00 00 00 00 FC [18:22:12]Write i2c OK [18:22:12]MH_I2C_Read... [18:22:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:22:12]Read from MH i2c: E2 [18:22:12]MH_I2C_Read... [18:22:12]Read from MH i2c: E2 17 00 [18:22:12]MH_I2C_Read... [18:22:12]Read from MH i2c: E2 17 00 79 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 4A [18:22: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:22:12]wFMCommunicate OK [18:22:12]CreateOFDProtocolMessage done [18:22:12]OFDSenderStorePacket 30434 [18:22:12]StoreOFDPacket docnum=30434 [18:22: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 F8 89 07 01 DF 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 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 D8 00 00 00 F4 03 04 00 53 4A 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 29 F6 75 18 4B 81 E6 F2 DF 84 24 00 88 D8 [18:22:12]CheckFolder [18:22:12]dirname=/storage/ofd_packets [18:22:12]CheckFolder done [18:22:12]ProducePacketName [18:22:12]name=ofd_packets/00030434 [18:22:12]NVStorageSaveData ofd_packets/00030434 [18:22:12]File name is /storage/ofd_packets/00030434 [18:22:12]Write 301 bytes [18:22:12]NVStorageSaveData done [18:22:12]OFDSenderStorePacket done [18:22:12]KKMCreateOFDPacket done [18:22:12]NVStorageSaveData kkm_last_timestamp [18:22:12]File name is /storage/kkm_last_timestamp [18:22:12]Write 4 bytes [18:22:12]NVStorageSaveData done [18:22:12]ExternCall_PrintAddStr [18:22:12]wPrintStart [18:22:12]Write to MH i2c: 01 00 00 7A 09 83 [18:22:12]Write i2c OK [18:22:12]MH_I2C_Read... [18:22:12]Read from MH i2c: 01 [18:22:12]MH_I2C_Read... [18:22:12]Read from MH i2c: 01 07 00 [18:22:12]MH_I2C_Read... [18:22:12]Read from MH i2c: 01 07 00 7A 09 00 00 00 00 00 FF 0F 98 [18:22:12]RasterBufferAndPrint [18:22:12]line Счет N : (1)342835 [18:22:12]line ИНН: 02508201610067 [18:22:12]line Контрольно-Кассовый Чек [18:22:12]line ПРОДАЖА [18:22:12]line ТРК (МРК, ГНК) : 53 [18:22:12]line Товар: 2710124130 [18:22:12]line Аи-92-К-2 [18:22:12]line 29.900 * 66.90 [18:22:12]line = 2000.31 [18:22:12]line НДС 12% НСП 1% [18:22:12]line > о реализуемом товаре [18:22:12]line ОКРУГЛЕНИЕ: -0.31 [18:22:12]line ИТОГО: 2000.00 [18:22:12]line Внесено: 2000.00 [18:22:12]line СДАЧА: 0.00 [18:22:12]line НСП 1% : 17.70 [18:22:12]line НДС 12% : 212.42 [18:22:12]line Наличными: 2000.00 [18:22:12]line Безнал.: 0.00 [18:22:12]line Место: АЗС № 78 "Партнер Нефть" [18:22:12]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [18:22:12]line СНО: Общий режим [18:22:12]line Чек 216 20.10.2024 18:22 [18:22:12]line Смена: 114 ФФД: 1.0 [18:22:12]line ЗНМ: 0300000137 [18:22:12]line РНМ: 0000000000186857 [18:22:12]line Версия ККМ: v1.0 [18:22:12]line ФМ: 0000000002094219 [18:22:12]line ФД: 30434 [18:22:12]line ФПД: 46138503220097 [18:22:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T182211&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30434&fm=46138503220097&tin=02508201610067®Number=0000000000186857&sum=200000 [18:22:13]OFD Sender: Processing packet 30434 [packets to send 10, broken 9] [18:22:13]ProducePacketName [18:22:13]name=ofd_packets/00030434 [18:22:13]OFD Sender: To server: pG, [18:22:13]CommunicateWithHost lk.salyk.kg:30040 [18:22:13]ConnectInit lk.salyk.kg [18:22:13]written 0, free lines is 4095 [18:22:13]Connected sock=11 [18:22: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 F8 89 07 01 DF 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 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 D8 00 00 00 F4 03 04 00 53 4A 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 29 F6 75 18 4B 81 E6 F2 DF 84 24 00 88 D8 [18:22: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 BD F6 47 00 45 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 E2 76 00 00 F4 03 04 00 D6 F4 14 67 B6 04 01 00 00 65 47 E1 8B 13 2B 3C 7E [18:22:13]CommunicateWithHost err = 0 [18:22:13]CheckOFDResponse [18:22:13]1017 (14) - 77093643461234 [18:22:13]1041 (16) - 0000000002094219 [18:22:13]1040 (4) - 30434 [18:22:13]1012 (4) - 20.10.2024 12:17 [18:22:13]1206 (1) - 0 [18:22:13]OFD Sender: Remove packet 30434 [18:22:13]ProducePacketName [18:22:13]name=ofd_packets/00030434 [18:22:13]NVStorageDeleteData [18:22:13]Write to MH i2c: 01 00 00 A5 09 AE [18:22:13]Write i2c OK [18:22:13]MH_I2C_Read... [18:22:13]Read from MH i2c: 01 [18:22:13]MH_I2C_Read... [18:22:13]Read from MH i2c: 01 07 00 [18:22:13]MH_I2C_Read... [18:22:13]Read from MH i2c: 01 07 00 A5 09 00 00 00 00 00 F5 0C B6 [18:22:13]RasterBufferAndPrint [18:22:13]line [18:22:13]line [18:22:13]line [18:22:13]line [18:22:13]line [18:22:13]written 0, free lines is 3323 [18:22:13]MH_Cut [18:22:13]Write to MH i2c: D1 01 00 AC 09 01 87 [18:22:13]Write i2c OK [18:22:13]MH_I2C_Read... [18:22:13]Read from MH i2c: D1 [18:22:13]MH_I2C_Read... [18:22:13]Read from MH i2c: D1 01 00 [18:22:13]MH_I2C_Read... [18:22:13]Read from MH i2c: D1 01 00 AC 09 00 86 [18:22:13]Write to MH i2c: 01 00 00 AD 09 B6 [18:22:13]Write i2c OK [18:22:13]MH_I2C_Read... [18:22:14]OFD Sender: No OFD packet to send [18:22:14]*** Cut start [18:22:14]*** Partial cut [18:22:14]*** CUTSNS_PIN = 1 [18:22:14]*** CUTSNS_PIN = 0 [18:22:14]*** Brake cut motor [18:22:15]Read from MH i2c: 01 [18:22:15]MH_I2C_Read... [18:22:15]*** Stop cut motor [18:22:15]*** Cut end [18:22:15]Read from MH i2c: 01 07 00 [18:22:15]MH_I2C_Read... [18:22:15]Read from MH i2c: 01 07 00 AD 09 00 00 00 00 00 FF 0F CB [18:22:15]process_action close_receipt done [18:22:15]requested_data is exist [18:22:15]produce_requested_data [18:22:15]requested_item fm.sn is exist - process it [18:22:15]wFMCommunicate request_size=4 [18:22:15]MH_SAM_APDU [18:22:15]CAPDU: 80 11 00 00 [18:22:15]Write to MH i2c: E2 08 00 AE 09 80 11 00 00 00 00 00 00 31 [18:22:15]Write i2c OK [18:22:15]MH_I2C_Read... [18:22:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:22:15]Read from MH i2c: E2 [18:22:15]MH_I2C_Read... [18:22:15]Read from MH i2c: E2 17 00 [18:22:15]MH_I2C_Read... [18:22:15]Read from MH i2c: E2 17 00 AE 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 7F [18:22:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [18:22:15]wFMCommunicate OK [18:22:15]requested_item fd.num is exist - process it [18:22:15]SAM_PROTO_GetFieldsCounters [18:22:15]wFMCommunicate request_size=4 [18:22:15]MH_SAM_APDU [18:22:15]CAPDU: 80 13 00 00 [18:22:15]Write to MH i2c: E2 08 00 AF 09 80 13 00 00 00 00 00 00 34 [18:22:15]Write i2c OK [18:22:15]MH_I2C_Read... [18:22:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:22:15]Read from MH i2c: E2 [18:22:15]MH_I2C_Read... [18:22:15]Read from MH i2c: E2 62 00 [18:22:15]MH_I2C_Read... [18:22:15]Read from MH i2c: E2 62 00 AF 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 AC [18:22: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 E2 76 00 00 0E 04 04 00 72 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:22:15]wFMCommunicate OK [18:22:15]SAM_PROTO_GetFieldsCounters done [18:22:15]requested_item shift.num is exist - process it [18:22:15]requested_item shift.opened is exist - process it [18:22:15]req_shift_opened [18:22:15]FM_GetShiftState [18:22:15]SAM_PROTO_GetShiftState [18:22:15]wFMCommunicate request_size=4 [18:22:15]MH_SAM_APDU [18:22:15]CAPDU: 80 13 01 00 [18:22:15]Write to MH i2c: E2 08 00 B0 09 80 13 01 00 00 00 00 00 36 [18:22:15]Write i2c OK [18:22:15]MH_I2C_Read... [18:22:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:22:15]Read from MH i2c: E2 [18:22:15]MH_I2C_Read... [18:22:15]Read from MH i2c: E2 0E 00 [18:22:15]MH_I2C_Read... [18:22:15]Read from MH i2c: E2 0E 00 B0 09 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 1C [18:22:15]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [18:22:15]wFMCommunicate OK [18:22:15]SAM_PROTO_GetShiftState done [18:22:15]FM_GetShiftState done [18:22:15]req_shift_opened done [18:22:15]requested_item shift.open_date is exist - process it [18:22:15]req_shift_open_date [18:22:15]req_shift_open_date done [18:22:15]produce_requested_data done [18:22:15]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30434,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [18:22:15]process_action_free close_receipt [18:22:15]json_value_free [18:22:15]json_value_free done [18:22:15]process_json_proto returns [18:22:15]Send response to host [18:22:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30434,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [18:22:15]free response buf [18:22:15]execute_script done [18:22:15]execute_script returns [18:22:15]free content buf [18:22:15]Sock 9.Close socket [18:22:15]Sock 9.Thread stoped [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:29]OFD Sender: No OFD packet to send [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:23]accept exits with 7 [18:24:23]New connection [18:24:23]New thread 3067346276 created [18:24:23]Thread 3067489636 joined [18:24:23]Waiting for new connection... [18:24:23] Sock 7.Parse request [18:24:23]Sock 7.Check first char [18:24:23]Sock 7.First char is OK [18:24:23]request: POST /json_proto HTTP/1.0 [18:24:23]Method: POST [18:24:23]URL: /json_proto [18:24:23]Method is POST - this is cgi request [18:24:23]url: /json_proto [18:24:23]query_string will be loaded in cgi processing [18:24:23]execute_cgi json_proto POST (null) [18:24:23]execute_cgi path=json_proto method=POST [18:24:23]POST find Content-Length [18:24:23]Host: 172.17.51.3:8080 [18:24:23]Content-Length: 677 [18:24:23]Content-Type: application/json [18:24:23] [18:24:23]POST finish read [18:24:23]Found Content-Length = 677 [18:24:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342836", "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" ] } } [18:24:23]execute_script... [18: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)342836", "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" ] } } [18:24:23]POST & json_proto [18:24:23]process_json_proto [18:24:23]json parsed OK: [18:24:23]protocol is kg_v1.0 [18:24:23]action value=close_receipt [18:24:23]process_action close_receipt [18:24:23]cmd_close_receipt [18:24:23]MH_GetDate [18:24:23]Write to MH i2c: F0 00 00 B1 09 A9 [18:24:23]Write i2c OK [18:24:23]MH_I2C_Read... [18:24:23]Read from MH i2c: F0 [18:24:23]MH_I2C_Read... [18:24:23]Read from MH i2c: F0 09 00 [18:24:23]MH_I2C_Read... [18:24:23]Read from MH i2c: F0 09 00 B1 09 00 D7 4A 15 67 04 C1 95 66 0F [18:24:23]GetLastDocTimeStamp 1729448531 [18:24:23]current date 1729448663 [18:24:23]FM_GetShiftState [18:24:23]SAM_PROTO_GetShiftState [18:24:23]wFMCommunicate request_size=4 [18:24:23]MH_SAM_APDU [18:24:23]CAPDU: 80 13 01 00 [18:24:23]Write to MH i2c: E2 08 00 B2 09 80 13 01 00 00 00 00 00 38 [18:24:23]Write i2c OK [18:24:23]MH_I2C_Read... [18:24:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:24:23]Read from MH i2c: E2 [18:24:23]MH_I2C_Read... [18:24:23]Read from MH i2c: E2 0E 00 [18:24:23]MH_I2C_Read... [18:24:23]Read from MH i2c: E2 0E 00 B2 09 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 1E [18:24:23]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [18:24:23]wFMCommunicate OK [18:24:23]SAM_PROTO_GetShiftState done [18:24:23]FM_GetShiftState done [18:24:23]opened in 1729384718 [18:24:23]opened+sec_in_day 1729471118 [18:24:23]quantity*price = 50041 [18:24:23]sum+1 = 50042 [18:24:23]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 СНО: Общий режим Чек 217 20.10.2024 18:24 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30435 ФПД: 280456771972679 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T182423&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30435&fm=280456771972679&tin=02508201610067®Number=0000000000186857&sum=50000 [18:24:24]StoreToDocumentArchive [18:24:24]shift 114 fd 30435 [18:24:24]save to /storage/0114/doc_00030435 [18:24:24]save last doc name /storage/0114/doc_00030435 to /storage/kkm_last_doc_name [18:24:24]save OK [18:24:24]Clear old archive folders... [18:24:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:24:24]tlvbuf is 01D96C80 [18:24:24]SAM_PROTO_ClearQueue [18:24:24]wFMCommunicate request_size=4 [18:24:24]MH_SAM_APDU [18:24:24]CAPDU: 80 09 00 00 [18:24:24]Write to MH i2c: E2 08 00 BF 09 80 09 00 00 00 00 00 00 3A [18:24:24]Write i2c OK [18:24:24]MH_I2C_Read... [18:24:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:24:24]Read from MH i2c: E2 [18:24:24]MH_I2C_Read... [18:24:24]Read from MH i2c: E2 03 00 [18:24:24]MH_I2C_Read... [18:24:24]Read from MH i2c: E2 03 00 BF 09 00 90 00 3C [18:24:24]RAPDU: 90 00 [18:24:24]wFMCommunicate OK [18:24:24]SAM_PROTO_ClearQueue done [18:24:24]KKMCreateOFDPacket [18:24:24]OFDProtocolAddRootSTLVToBuf [18:24:24]FM_MakeSignedData [18:24:24]FM_MakeSignedData [18:24:24]SAM_PROTO_SignData [18:24:24]wFMCommunicate request_size=4 [18:24:24]MH_SAM_APDU [18:24:24]CAPDU: 80 0D 01 02 [18:24:24]Write to MH i2c: E2 08 00 C0 09 80 0D 01 02 00 00 00 00 42 [18:24:24]Write i2c OK [18:24:24]MH_I2C_Read... [18:24:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:24:24]Read from MH i2c: E2 [18:24:24]MH_I2C_Read... [18:24:24]Read from MH i2c: E2 03 00 [18:24:24]MH_I2C_Read... [18:24:24]Read from MH i2c: E2 03 00 C0 09 00 90 00 3D [18:24:24]RAPDU: 90 00 [18:24:24]wFMCommunicate OK [18:24:24]wFMCommunicate request_size=255 [18:24:24]MH_SAM_APDU [18: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 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 D9 00 00 00 F4 03 04 00 D7 4A 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 FF [18:24:24]Write to MH i2c: E2 02 01 C1 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 D9 00 00 00 F4 03 04 00 D7 4A 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 FF 00 00 13 [18:24:24]Write i2c OK [18:24:24]MH_I2C_Read... [18:24:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:24:24]Read from MH i2c: E2 [18:24:24]MH_I2C_Read... [18:24:24]Read from MH i2c: E2 03 00 [18:24:24]MH_I2C_Read... [18:24:24]Read from MH i2c: E2 03 00 C1 09 00 90 00 3E [18:24:24]RAPDU: 90 00 [18:24:24]wFMCommunicate OK [18:24:24]wFMCommunicate request_size=10 [18:24:24]MH_SAM_APDU [18:24:24]CAPDU: 80 0D 02 02 05 12 EE 44 AE 47 [18:24:24]Write to MH i2c: E2 0D 00 C2 09 80 0D 02 02 05 00 12 EE 44 AE 47 00 00 88 [18:24:24]Write i2c OK [18:24:24]MH_I2C_Read... [18:24:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:24:24]Read from MH i2c: E2 [18:24:24]MH_I2C_Read... [18:24:24]Read from MH i2c: E2 03 00 [18:24:24]MH_I2C_Read... [18:24:24]Read from MH i2c: E2 03 00 C2 09 00 90 00 3F [18:24:24]RAPDU: 90 00 [18:24:24]wFMCommunicate OK [18:24:24]wFMCommunicate request_size=4 [18:24:24]MH_SAM_APDU [18:24:24]CAPDU: 80 0D 03 02 [18:24:24]Write to MH i2c: E2 08 00 C3 09 80 0D 03 02 00 00 00 00 47 [18:24:24]Write i2c OK [18:24:24]MH_I2C_Read... [18:24:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:24:25]Read from MH i2c: E2 [18:24:25]MH_I2C_Read... [18:24:25]Read from MH i2c: E2 0B 00 [18:24:25]MH_I2C_Read... [18:24:25]Read from MH i2c: E2 0B 00 C3 09 00 EE 5E C2 79 31 56 0E 00 90 00 64 [18:24:25]RAPDU: EE 5E C2 79 31 56 0E 00 90 00 [18:24:25]wFMCommunicate OK [18:24:25]SAM_PROTO_SignData done [18:24:25]FM_MakeSignedData done [18:24:25]CreateOFDProtocolMessage [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 C4 09 80 11 00 00 00 00 00 00 47 [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 C4 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 95 [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]CreateOFDProtocolMessage done [18:24:25]OFDSenderStorePacket 30435 [18:24:25]StoreOFDPacket docnum=30435 [18: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 CB BF 07 01 2B 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 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 D9 00 00 00 F4 03 04 00 D7 4A 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 FF 12 EE 44 AE 47 EE 5E C2 79 31 56 0E 00 [18:24:25]CheckFolder [18:24:25]dirname=/storage/ofd_packets [18:24:25]CheckFolder done [18:24:25]ProducePacketName [18:24:25]name=ofd_packets/00030435 [18:24:25]NVStorageSaveData ofd_packets/00030435 [18:24:25]File name is /storage/ofd_packets/00030435 [18:24:25]Write 301 bytes [18:24:25]NVStorageSaveData done [18:24:25]OFDSenderStorePacket done [18:24:25]KKMCreateOFDPacket done [18:24:25]NVStorageSaveData kkm_last_timestamp [18:24:25]File name is /storage/kkm_last_timestamp [18:24:25]Write 4 bytes [18:24:25]NVStorageSaveData done [18:24:25]ExternCall_PrintAddStr [18:24:25]wPrintStart [18:24:25]Write to MH i2c: 01 00 00 C5 09 CE [18:24:25]Write i2c OK [18:24:25]MH_I2C_Read... [18:24:25]Read from MH i2c: 01 [18:24:25]MH_I2C_Read... [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 C5 09 00 00 00 00 00 FF 0F E3 [18:24:25]RasterBufferAndPrint [18:24:25]line Счет N : (1)342836 [18:24:25]line ИНН: 02508201610067 [18:24:25]line Контрольно-Кассовый Чек [18:24:25]line ПРОДАЖА [18:24:25]line ТРК (МРК, ГНК) : 63 [18:24:25]line Товар: 2710124130 [18:24:25]line Аи-92-К-2 [18:24:25]line 7.480 * 66.90 [18:24:25]line = 500.41 [18:24:25]line НДС 12% НСП 1% [18:24:25]line > о реализуемом товаре [18:24:25]line ОКРУГЛЕНИЕ: -0.41 [18:24:25]line ИТОГО: 500.00 [18:24:25]line Внесено: 500.00 [18:24:25]line СДАЧА: 0.00 [18:24:25]line НСП 1% : 4.43 [18:24:25]line НДС 12% : 53.14 [18:24:25]line Наличными: 500.00 [18:24:25]line Безнал.: 0.00 [18:24:25]line Место: АЗС № 78 "Партнер Нефть" [18:24:25]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [18:24:25]line СНО: Общий режим [18:24:25]line Чек 217 20.10.2024 18:24 [18:24:25]line Смена: 114 ФФД: 1.0 [18:24:25]line ЗНМ: 0300000137 [18:24:25]line РНМ: 0000000000186857 [18:24:25]line Версия ККМ: v1.0 [18:24:25]line ФМ: 0000000002094219 [18:24:25]line ФД: 30435 [18:24:25]line ФПД: 280456771972679 [18:24:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T182423&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30435&fm=280456771972679&tin=02508201610067®Number=0000000000186857&sum=50000 [18:24:25]OFD Sender: Processing packet 30435 [packets to send 10, broken 9] [18:24:25]ProducePacketName [18:24:25]name=ofd_packets/00030435 [18:24:25]OFD Sender: To server: pG, [18:24:25]CommunicateWithHost lk.salyk.kg:30040 [18:24:25]ConnectInit lk.salyk.kg [18:24:25]written 0, free lines is 4095 [18:24:25]Connected sock=11 [18: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 CB BF 07 01 2B 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 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 D9 00 00 00 F4 03 04 00 D7 4A 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 FF 12 EE 44 AE 47 EE 5E C2 79 31 56 0E 00 [18: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 53 2B 47 00 5B 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 E3 76 00 00 F4 03 04 00 5B F5 14 67 B6 04 01 00 00 11 84 60 2F 28 83 CB A6 [18:24:25]CommunicateWithHost err = 0 [18:24:25]CheckOFDResponse [18:24:25]1017 (14) - 77093643461234 [18:24:25]1041 (16) - 0000000002094219 [18:24:25]1040 (4) - 30435 [18:24:25]1012 (4) - 20.10.2024 12:19 [18:24:25]1206 (1) - 0 [18:24:25]OFD Sender: Remove packet 30435 [18:24:25]ProducePacketName [18:24:25]name=ofd_packets/00030435 [18:24:25]NVStorageDeleteData [18:24:25]Write to MH i2c: 01 00 00 F0 09 F9 [18:24:25]Write i2c OK [18:24:25]MH_I2C_Read... [18:24:25]Read from MH i2c: 01 [18:24:25]MH_I2C_Read... [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 F0 09 00 00 00 00 00 FB 0C 07 [18:24:25]RasterBufferAndPrint [18:24:25]line [18:24:25]line [18:24:25]line [18:24:25]line [18:24:25]line [18:24:25]written 0, free lines is 3330 [18:24:25]MH_Cut [18:24:25]Write to MH i2c: D1 01 00 F7 09 01 D2 [18:24:25]Write i2c OK [18:24:25]MH_I2C_Read... [18:24:25]Read from MH i2c: D1 [18:24:25]MH_I2C_Read... [18:24:25]Read from MH i2c: D1 01 00 [18:24:25]MH_I2C_Read... [18:24:25]Read from MH i2c: D1 01 00 F7 09 00 D1 [18:24:25]Write to MH i2c: 01 00 00 F8 09 01 [18:24:25]Write i2c OK [18:24:25]MH_I2C_Read... [18:24:26]OFD Sender: No OFD packet to send [18:24:26]*** Cut start [18:24:26]*** Partial cut [18:24:26]*** CUTSNS_PIN = 1 [18:24:26]*** CUTSNS_PIN = 0 [18:24:26]*** Brake cut motor [18:24:27]Read from MH i2c: 01 [18:24:27]MH_I2C_Read... [18:24:27]*** Stop cut motor [18:24:27]*** Cut end [18:24:27]Read from MH i2c: 01 07 00 [18:24:27]MH_I2C_Read... [18:24:27]Read from MH i2c: 01 07 00 F8 09 00 00 00 00 00 FF 0F 16 [18:24:27]process_action close_receipt done [18:24:27]requested_data is exist [18:24:27]produce_requested_data [18:24:27]requested_item fm.sn is exist - process it [18:24:27]wFMCommunicate request_size=4 [18:24:27]MH_SAM_APDU [18:24:27]CAPDU: 80 11 00 00 [18:24:27]Write to MH i2c: E2 08 00 F9 09 80 11 00 00 00 00 00 00 7C [18:24:27]Write i2c OK [18:24:27]MH_I2C_Read... [18:24:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:24:27]Read from MH i2c: E2 [18:24:27]MH_I2C_Read... [18:24:27]Read from MH i2c: E2 17 00 [18:24:27]MH_I2C_Read... [18:24:27]Read from MH i2c: E2 17 00 F9 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 CA [18: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 [18:24:27]wFMCommunicate OK [18:24:27]requested_item fd.num is exist - process it [18:24:27]SAM_PROTO_GetFieldsCounters [18:24:27]wFMCommunicate request_size=4 [18:24:27]MH_SAM_APDU [18:24:27]CAPDU: 80 13 00 00 [18:24:27]Write to MH i2c: E2 08 00 FA 09 80 13 00 00 00 00 00 00 7F [18:24:27]Write i2c OK [18:24:27]MH_I2C_Read... [18:24:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:24:27]Read from MH i2c: E2 [18:24:27]MH_I2C_Read... [18:24:27]Read from MH i2c: E2 62 00 [18:24:27]MH_I2C_Read... [18:24:27]Read from MH i2c: E2 62 00 FA 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 FB [18: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 E3 76 00 00 0E 04 04 00 72 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:24:27]wFMCommunicate OK [18:24:27]SAM_PROTO_GetFieldsCounters done [18:24:27]requested_item shift.num is exist - process it [18:24:27]requested_item shift.opened is exist - process it [18:24:27]req_shift_opened [18:24:27]FM_GetShiftState [18:24:27]SAM_PROTO_GetShiftState [18:24:27]wFMCommunicate request_size=4 [18:24:27]MH_SAM_APDU [18:24:27]CAPDU: 80 13 01 00 [18:24:27]Write to MH i2c: E2 08 00 FB 09 80 13 01 00 00 00 00 00 81 [18:24:27]Write i2c OK [18:24:27]MH_I2C_Read... [18:24:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:24:27]Read from MH i2c: E2 [18:24:27]MH_I2C_Read... [18:24:27]Read from MH i2c: E2 0E 00 [18:24:27]MH_I2C_Read... [18:24:27]Read from MH i2c: E2 0E 00 FB 09 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 67 [18:24:27]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [18:24:27]wFMCommunicate OK [18:24:27]SAM_PROTO_GetShiftState done [18:24:27]FM_GetShiftState done [18:24:27]req_shift_opened done [18:24:27]requested_item shift.open_date is exist - process it [18:24:27]req_shift_open_date [18:24:27]req_shift_open_date done [18:24:27]produce_requested_data done [18:24:27]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30435,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [18:24:27]process_action_free close_receipt [18:24:27]json_value_free [18:24:27]json_value_free done [18:24:27]process_json_proto returns [18:24:27]Send response to host [18:24:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30435,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [18:24:27]free response buf [18:24:27]execute_script done [18:24:27]execute_script returns [18:24:27]free content buf [18:24:27]Sock 7.Close socket [18:24:27]Sock 7.Thread stoped [18:24:31]OFD Sender: No OFD packet to send [18:24:36]OFD Sender: No OFD packet to send [18:24:41]OFD Sender: No OFD packet to send [18:24:46]OFD Sender: No OFD packet to send [18:24:51]OFD Sender: No OFD packet to send [18:24:56]OFD Sender: No OFD packet to send [18:25:01]OFD Sender: No OFD packet to send [18:25:06]OFD Sender: No OFD packet to send [18:25:11]OFD Sender: No OFD packet to send [18:25:12]accept exits with 9 [18:25:12]New connection [18:25:12]New thread 3067489636 created [18:25:12]Thread 3067346276 joined [18:25:12]Waiting for new connection... [18:25:12] Sock 9.Parse request [18:25:12]Sock 9.Check first char [18:25:12]Sock 9.First char is OK [18:25:12]request: POST /json_proto HTTP/1.0 [18:25:12]Method: POST [18:25:12]URL: /json_proto [18:25:12]Method is POST - this is cgi request [18:25:12]url: /json_proto [18:25:12]query_string will be loaded in cgi processing [18:25:12]execute_cgi json_proto POST (null) [18:25:12]execute_cgi path=json_proto method=POST [18:25:12]POST find Content-Length [18:25:12]Host: 172.17.51.3:8080 [18:25:12]Content-Length: 682 [18:25:12]Content-Type: application/json [18:25:12] [18:25:12]POST finish read [18:25:12]Found Content-Length = 682 [18:25:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342837", "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:25:12]execute_script... [18: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)342837", "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:25:12]POST & json_proto [18:25:12]process_json_proto [18:25:12]json parsed OK: [18:25:12]protocol is kg_v1.0 [18:25:12]action value=close_receipt [18:25:12]process_action close_receipt [18:25:12]cmd_close_receipt [18:25:12]MH_GetDate [18:25:12]Write to MH i2c: F0 00 00 FC 09 F4 [18:25:12]Write i2c OK [18:25:12]MH_I2C_Read... [18:25:12]Read from MH i2c: F0 [18:25:12]MH_I2C_Read... [18:25:12]Read from MH i2c: F0 09 00 [18:25:12]MH_I2C_Read... [18:25:12]Read from MH i2c: F0 09 00 FC 09 00 08 4B 15 67 04 C1 95 66 8C [18:25:12]GetLastDocTimeStamp 1729448663 [18:25:12]current date 1729448712 [18:25:12]FM_GetShiftState [18:25:12]SAM_PROTO_GetShiftState [18:25:12]wFMCommunicate request_size=4 [18:25:12]MH_SAM_APDU [18:25:12]CAPDU: 80 13 01 00 [18:25:12]Write to MH i2c: E2 08 00 FD 09 80 13 01 00 00 00 00 00 83 [18:25:12]Write i2c OK [18:25:12]MH_I2C_Read... [18:25:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:25:12]Read from MH i2c: E2 [18:25:12]MH_I2C_Read... [18:25:12]Read from MH i2c: E2 0E 00 [18:25:12]MH_I2C_Read... [18:25:12]Read from MH i2c: E2 0E 00 FD 09 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 69 [18:25:12]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [18:25:12]wFMCommunicate OK [18:25:12]SAM_PROTO_GetShiftState done [18:25:12]FM_GetShiftState done [18:25:12]opened in 1729384718 [18:25:12]opened+sec_in_day 1729471118 [18:25:12]quantity*price = 100021 [18:25:12]sum+1 = 100023 [18:25:12]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 СНО: Общий режим Чек 218 20.10.2024 18:25 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30436 ФПД: 186999229694994 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T182512&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30436&fm=186999229694994&tin=02508201610067®Number=0000000000186857&sum=100000 [18:25:13]StoreToDocumentArchive [18:25:13]shift 114 fd 30436 [18:25:13]save to /storage/0114/doc_00030436 [18:25:13]save last doc name /storage/0114/doc_00030436 to /storage/kkm_last_doc_name [18:25:13]save OK [18:25:13]Clear old archive folders... [18:25:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:25:13]tlvbuf is 01DBEA70 [18:25:13]SAM_PROTO_ClearQueue [18:25:13]wFMCommunicate request_size=4 [18:25:13]MH_SAM_APDU [18:25:13]CAPDU: 80 09 00 00 [18:25:13]Write to MH i2c: E2 08 00 0A 0A 80 09 00 00 00 00 00 00 86 [18:25:13]Write i2c OK [18:25:13]MH_I2C_Read... [18:25:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:25:13]Read from MH i2c: E2 [18:25:13]MH_I2C_Read... [18:25:13]Read from MH i2c: E2 03 00 [18:25:13]MH_I2C_Read... [18:25:13]Read from MH i2c: E2 03 00 0A 0A 00 90 00 88 [18:25:13]RAPDU: 90 00 [18:25:13]wFMCommunicate OK [18:25:13]SAM_PROTO_ClearQueue done [18:25:13]KKMCreateOFDPacket [18:25:13]OFDProtocolAddRootSTLVToBuf [18:25:13]FM_MakeSignedData [18:25:13]FM_MakeSignedData [18:25:13]SAM_PROTO_SignData [18:25:13]wFMCommunicate request_size=4 [18:25:13]MH_SAM_APDU [18:25:13]CAPDU: 80 0D 01 02 [18:25:13]Write to MH i2c: E2 08 00 0B 0A 80 0D 01 02 00 00 00 00 8E [18:25:13]Write i2c OK [18:25:13]MH_I2C_Read... [18:25:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:25:13]Read from MH i2c: E2 [18:25:13]MH_I2C_Read... [18:25:13]Read from MH i2c: E2 03 00 [18:25:13]MH_I2C_Read... [18:25:13]Read from MH i2c: E2 03 00 0B 0A 00 90 00 89 [18:25:13]RAPDU: 90 00 [18:25:13]wFMCommunicate OK [18:25:13]wFMCommunicate request_size=255 [18:25:13]MH_SAM_APDU [18: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 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 DA 00 00 00 F4 03 04 00 08 4B 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 AA [18:25:13]Write to MH i2c: E2 02 01 0C 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 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 DA 00 00 00 F4 03 04 00 08 4B 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 AA 00 00 5C [18:25:13]Write i2c OK [18:25:13]MH_I2C_Read... [18:25:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:25:14]Read from MH i2c: E2 [18:25:14]MH_I2C_Read... [18:25:14]Read from MH i2c: E2 03 00 [18:25:14]MH_I2C_Read... [18:25:14]Read from MH i2c: E2 03 00 0C 0A 00 90 00 8A [18:25:14]RAPDU: 90 00 [18:25:14]wFMCommunicate OK [18:25:14]wFMCommunicate request_size=10 [18:25:14]MH_SAM_APDU [18:25:14]CAPDU: 80 0D 02 02 05 13 26 A8 C4 12 [18:25:14]Write to MH i2c: E2 0D 00 0D 0A 80 0D 02 02 05 00 13 26 A8 C4 12 00 00 52 [18:25:14]Write i2c OK [18:25:14]MH_I2C_Read... [18:25:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:25:14]Read from MH i2c: E2 [18:25:14]MH_I2C_Read... [18:25:14]Read from MH i2c: E2 03 00 [18:25:14]MH_I2C_Read... [18:25:14]Read from MH i2c: E2 03 00 0D 0A 00 90 00 8B [18:25:14]RAPDU: 90 00 [18:25:14]wFMCommunicate OK [18:25:14]wFMCommunicate request_size=4 [18:25:14]MH_SAM_APDU [18:25:14]CAPDU: 80 0D 03 02 [18:25:14]Write to MH i2c: E2 08 00 0E 0A 80 0D 03 02 00 00 00 00 93 [18:25:14]Write i2c OK [18:25:14]MH_I2C_Read... [18:25:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:25:14]Read from MH i2c: E2 [18:25:14]MH_I2C_Read... [18:25:14]Read from MH i2c: E2 0B 00 [18:25:14]MH_I2C_Read... [18:25:14]Read from MH i2c: E2 0B 00 0E 0A 00 64 86 0F 25 ED 12 5F 12 90 00 22 [18:25:14]RAPDU: 64 86 0F 25 ED 12 5F 12 90 00 [18:25:14]wFMCommunicate OK [18:25:14]SAM_PROTO_SignData done [18:25:14]FM_MakeSignedData done [18:25:14]CreateOFDProtocolMessage [18:25:14]wFMCommunicate request_size=4 [18:25:14]MH_SAM_APDU [18:25:14]CAPDU: 80 11 00 00 [18:25:14]Write to MH i2c: E2 08 00 0F 0A 80 11 00 00 00 00 00 00 93 [18:25:14]Write i2c OK [18:25:14]MH_I2C_Read... [18:25:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:25:14]Read from MH i2c: E2 [18:25:14]MH_I2C_Read... [18:25:14]Read from MH i2c: E2 17 00 [18:25:14]MH_I2C_Read... [18:25:14]Read from MH i2c: E2 17 00 0F 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 E1 [18: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 [18:25:14]wFMCommunicate OK [18:25:14]CreateOFDProtocolMessage done [18:25:14]OFDSenderStorePacket 30436 [18:25:14]StoreOFDPacket docnum=30436 [18: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 B0 DF 07 01 44 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 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 DA 00 00 00 F4 03 04 00 08 4B 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 AA 13 26 A8 C4 12 64 86 0F 25 ED 12 5F 12 [18:25:14]CheckFolder [18:25:14]dirname=/storage/ofd_packets [18:25:14]CheckFolder done [18:25:14]ProducePacketName [18:25:14]name=ofd_packets/00030436 [18:25:14]NVStorageSaveData ofd_packets/00030436 [18:25:14]File name is /storage/ofd_packets/00030436 [18:25:14]Write 301 bytes [18:25:14]NVStorageSaveData done [18:25:14]OFDSenderStorePacket done [18:25:14]KKMCreateOFDPacket done [18:25:14]NVStorageSaveData kkm_last_timestamp [18:25:14]File name is /storage/kkm_last_timestamp [18:25:14]Write 4 bytes [18:25:14]NVStorageSaveData done [18:25:14]ExternCall_PrintAddStr [18:25:14]wPrintStart [18:25:14]Write to MH i2c: 01 00 00 10 0A 1A [18:25:14]Write i2c OK [18:25:14]MH_I2C_Read... [18:25:14]Read from MH i2c: 01 [18:25:14]MH_I2C_Read... [18:25:14]Read from MH i2c: 01 07 00 [18:25:14]MH_I2C_Read... [18:25:14]Read from MH i2c: 01 07 00 10 0A 00 00 00 00 00 FF 0F 2F [18:25:14]RasterBufferAndPrint [18:25:14]line Счет N : (1)342837 [18:25:14]line ИНН: 02508201610067 [18:25:14]line Контрольно-Кассовый Чек [18:25:14]line ПРОДАЖА [18:25:14]line ТРК (МРК, ГНК) : 52 [18:25:14]line Товар: 2710124500 [18:25:14]line Аи-95-К-3 [18:25:14]line 13.480 * 74.20 [18:25:14]line = 1000.22 [18:25:14]line НДС 12% НСП 1% [18:25:14]line > о реализуемом товаре [18:25:14]line ОКРУГЛЕНИЕ: -0.22 [18:25:14]line ИТОГО: 1000.00 [18:25:14]line Внесено: 1000.00 [18:25:14]line СДАЧА: 0.00 [18:25:14]line НСП 1% : 8.85 [18:25:14]line НДС 12% : 106.22 [18:25:14]line Наличными: 1000.00 [18:25:14]line Безнал.: 0.00 [18:25:14]line Место: АЗС № 78 "Партнер Нефть" [18:25:14]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [18:25:14]line СНО: Общий режим [18:25:14]line Чек 218 20.10.2024 18:25 [18:25:14]line Смена: 114 ФФД: 1.0 [18:25:14]line ЗНМ: 0300000137 [18:25:14]line РНМ: 0000000000186857 [18:25:14]line Версия ККМ: v1.0 [18:25:14]line ФМ: 0000000002094219 [18:25:14]line ФД: 30436 [18:25:14]line ФПД: 186999229694994 [18:25:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T182512&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30436&fm=186999229694994&tin=02508201610067®Number=0000000000186857&sum=100000 [18:25:14]OFD Sender: Processing packet 30436 [packets to send 10, broken 9] [18:25:14]ProducePacketName [18:25:14]name=ofd_packets/00030436 [18:25:14]OFD Sender: To server: pG, [18:25:14]CommunicateWithHost lk.salyk.kg:30040 [18:25:14]ConnectInit lk.salyk.kg [18:25:14]written 0, free lines is 4095 [18:25:14]Connected sock=10 [18: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 B0 DF 07 01 44 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 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 DA 00 00 00 F4 03 04 00 08 4B 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 AA 13 26 A8 C4 12 64 86 0F 25 ED 12 5F 12 [18: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 6E 45 47 00 B0 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 E4 76 00 00 F4 03 04 00 8C F5 14 67 B6 04 01 00 00 28 F8 4B 8F 66 C5 2E 51 [18:25:14]CommunicateWithHost err = 0 [18:25:14]CheckOFDResponse [18:25:14]1017 (14) - 77093643461234 [18:25:14]1041 (16) - 0000000002094219 [18:25:14]1040 (4) - 30436 [18:25:14]1012 (4) - 20.10.2024 12:20 [18:25:14]1206 (1) - 0 [18:25:14]OFD Sender: Remove packet 30436 [18:25:14]ProducePacketName [18:25:14]name=ofd_packets/00030436 [18:25:14]NVStorageDeleteData [18:25:14]Write to MH i2c: 01 00 00 3B 0A 45 [18:25:14]Write i2c OK [18:25:14]MH_I2C_Read... [18:25:14]Read from MH i2c: 01 [18:25:14]MH_I2C_Read... [18:25:14]Read from MH i2c: 01 07 00 [18:25:14]MH_I2C_Read... [18:25:14]Read from MH i2c: 01 07 00 3B 0A 00 00 00 00 00 EE 0C 46 [18:25:14]RasterBufferAndPrint [18:25:14]line [18:25:14]line [18:25:14]line [18:25:14]line [18:25:14]line [18:25:14]written 0, free lines is 3316 [18:25:14]MH_Cut [18:25:14]Write to MH i2c: D1 01 00 42 0A 01 1E [18:25:14]Write i2c OK [18:25:14]MH_I2C_Read... [18:25:14]Read from MH i2c: D1 [18:25:14]MH_I2C_Read... [18:25:14]Read from MH i2c: D1 01 00 [18:25:14]MH_I2C_Read... [18:25:14]Read from MH i2c: D1 01 00 42 0A 00 1D [18:25:14]Write to MH i2c: 01 00 00 43 0A 4D [18:25:14]Write i2c OK [18:25:14]MH_I2C_Read... [18:25:15]OFD Sender: No OFD packet to send [18:25:15]*** Cut start [18:25:15]*** Partial cut [18:25:15]*** CUTSNS_PIN = 1 [18:25:15]*** CUTSNS_PIN = 0 [18:25:15]*** Brake cut motor [18:25:16]Read from MH i2c: 01 [18:25:16]MH_I2C_Read... [18:25:16]*** Stop cut motor [18:25:16]*** Cut end [18:25:16]Read from MH i2c: 01 07 00 [18:25:16]MH_I2C_Read... [18:25:16]Read from MH i2c: 01 07 00 43 0A 00 00 00 00 00 FF 0F 62 [18:25:16]process_action close_receipt done [18:25:16]requested_data is exist [18:25:16]produce_requested_data [18:25:16]requested_item fm.sn is exist - process it [18:25:16]wFMCommunicate request_size=4 [18:25:16]MH_SAM_APDU [18:25:16]CAPDU: 80 11 00 00 [18:25:16]Write to MH i2c: E2 08 00 44 0A 80 11 00 00 00 00 00 00 C8 [18:25:16]Write i2c OK [18:25:16]MH_I2C_Read... [18:25:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:25:16]Read from MH i2c: E2 [18:25:16]MH_I2C_Read... [18:25:16]Read from MH i2c: E2 17 00 [18:25:16]MH_I2C_Read... [18:25:16]Read from MH i2c: E2 17 00 44 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 16 [18: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 [18:25:16]wFMCommunicate OK [18:25:16]requested_item fd.num is exist - process it [18:25:16]SAM_PROTO_GetFieldsCounters [18:25:16]wFMCommunicate request_size=4 [18:25:16]MH_SAM_APDU [18:25:16]CAPDU: 80 13 00 00 [18:25:16]Write to MH i2c: E2 08 00 45 0A 80 13 00 00 00 00 00 00 CB [18:25:16]Write i2c OK [18:25:16]MH_I2C_Read... [18:25:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:25:16]Read from MH i2c: E2 [18:25:16]MH_I2C_Read... [18:25:16]Read from MH i2c: E2 62 00 [18:25:16]MH_I2C_Read... [18:25:16]Read from MH i2c: E2 62 00 45 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 4B [18: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 E4 76 00 00 0E 04 04 00 72 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 [18:25:16]wFMCommunicate OK [18:25:16]SAM_PROTO_GetFieldsCounters done [18:25:16]requested_item shift.num is exist - process it [18:25:16]requested_item shift.opened is exist - process it [18:25:16]req_shift_opened [18:25:16]FM_GetShiftState [18:25:16]SAM_PROTO_GetShiftState [18:25:16]wFMCommunicate request_size=4 [18:25:16]MH_SAM_APDU [18:25:16]CAPDU: 80 13 01 00 [18:25:16]Write to MH i2c: E2 08 00 46 0A 80 13 01 00 00 00 00 00 CD [18:25:16]Write i2c OK [18:25:16]MH_I2C_Read... [18:25:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:25:16]Read from MH i2c: E2 [18:25:16]MH_I2C_Read... [18:25:16]Read from MH i2c: E2 0E 00 [18:25:16]MH_I2C_Read... [18:25:16]Read from MH i2c: E2 0E 00 46 0A 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 B3 [18:25:16]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [18:25:16]wFMCommunicate OK [18:25:16]SAM_PROTO_GetShiftState done [18:25:16]FM_GetShiftState done [18:25:16]req_shift_opened done [18:25:16]requested_item shift.open_date is exist - process it [18:25:16]req_shift_open_date [18:25:16]req_shift_open_date done [18:25:16]produce_requested_data done [18:25:16]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30436,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [18:25:16]process_action_free close_receipt [18:25:16]json_value_free [18:25:16]json_value_free done [18:25:16]process_json_proto returns [18:25:16]Send response to host [18:25:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30436,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [18:25:16]free response buf [18:25:16]execute_script done [18:25:16]execute_script returns [18:25:16]free content buf [18:25:16]Sock 9.Close socket [18:25:16]Sock 9.Thread stoped [18:25:20]OFD Sender: No OFD packet to send [18:25:25]OFD Sender: No OFD packet to send [18:25:28]accept exits with 7 [18:25:28]New connection [18:25:28]New thread 3067346276 created [18:25:28]Thread 3067489636 joined [18:25:28]Waiting for new connection... [18:25:28] Sock 7.Parse request [18:25:28]Sock 7.Check first char [18:25:28]Sock 7.First char is OK [18:25:28]request: POST /json_proto HTTP/1.0 [18:25:28]Method: POST [18:25:28]URL: /json_proto [18:25:28]Method is POST - this is cgi request [18:25:28]url: /json_proto [18:25:28]query_string will be loaded in cgi processing [18:25:28]execute_cgi json_proto POST (null) [18:25:28]execute_cgi path=json_proto method=POST [18:25:28]POST find Content-Length [18:25:28]Host: 172.17.51.3:8080 [18:25:28]Content-Length: 679 [18:25:28]Content-Type: application/json [18:25:28] [18:25:28]POST finish read [18:25:28]Found Content-Length = 679 [18:25:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342838", "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" ] } } [18:25:28]execute_script... [18:25: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)342838", "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" ] } } [18:25:28]POST & json_proto [18:25:28]process_json_proto [18:25:28]json parsed OK: [18:25:28]protocol is kg_v1.0 [18:25:28]action value=close_receipt [18:25:28]process_action close_receipt [18:25:28]cmd_close_receipt [18:25:28]MH_GetDate [18:25:28]Write to MH i2c: F0 00 00 47 0A 40 [18:25:28]Write i2c OK [18:25:28]MH_I2C_Read... [18:25:28]Read from MH i2c: F0 [18:25:28]MH_I2C_Read... [18:25:28]Read from MH i2c: F0 09 00 [18:25:28]MH_I2C_Read... [18:25:28]Read from MH i2c: F0 09 00 47 0A 00 19 4B 15 67 04 C1 95 66 E9 [18:25:28]GetLastDocTimeStamp 1729448712 [18:25:28]current date 1729448729 [18:25:28]FM_GetShiftState [18:25:28]SAM_PROTO_GetShiftState [18:25:28]wFMCommunicate request_size=4 [18:25:28]MH_SAM_APDU [18:25:28]CAPDU: 80 13 01 00 [18:25:28]Write to MH i2c: E2 08 00 48 0A 80 13 01 00 00 00 00 00 CF [18:25:28]Write i2c OK [18:25:28]MH_I2C_Read... [18:25:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:25:28]Read from MH i2c: E2 [18:25:28]MH_I2C_Read... [18:25:28]Read from MH i2c: E2 0E 00 [18:25:28]MH_I2C_Read... [18:25:28]Read from MH i2c: E2 0E 00 48 0A 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 B5 [18:25:28]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [18:25:28]wFMCommunicate OK [18:25:28]SAM_PROTO_GetShiftState done [18:25:28]FM_GetShiftState done [18:25:28]opened in 1729384718 [18:25:28]opened+sec_in_day 1729471118 [18:25:28]quantity*price = 100050 [18:25:28]sum+1 = 100052 [18:25:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 219 20.10.2024 18:25 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30437 ФПД: 236286241960662 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T182529&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30437&fm=236286241960662&tin=02508201610067®Number=0000000000186857&sum=100000 [18:25:30]StoreToDocumentArchive [18:25:30]shift 114 fd 30437 [18:25:30]save to /storage/0114/doc_00030437 [18:25:30]save last doc name /storage/0114/doc_00030437 to /storage/kkm_last_doc_name [18:25:30]save OK [18:25:30]Clear old archive folders... [18:25:30]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:25:30]tlvbuf is 01DC4520 [18:25:30]SAM_PROTO_ClearQueue [18:25:30]wFMCommunicate request_size=4 [18:25:30]MH_SAM_APDU [18:25:30]CAPDU: 80 09 00 00 [18:25:30]Write to MH i2c: E2 08 00 55 0A 80 09 00 00 00 00 00 00 D1 [18:25:30]Write i2c OK [18:25:30]MH_I2C_Read... [18:25:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:25:30]Read from MH i2c: E2 [18:25:30]MH_I2C_Read... [18:25:30]Read from MH i2c: E2 03 00 [18:25:30]MH_I2C_Read... [18:25:30]Read from MH i2c: E2 03 00 55 0A 00 90 00 D3 [18:25:30]RAPDU: 90 00 [18:25:30]wFMCommunicate OK [18:25:30]SAM_PROTO_ClearQueue done [18:25:30]KKMCreateOFDPacket [18:25:30]OFDProtocolAddRootSTLVToBuf [18:25:30]FM_MakeSignedData [18:25:30]FM_MakeSignedData [18:25:30]SAM_PROTO_SignData [18:25:30]wFMCommunicate request_size=4 [18:25:30]MH_SAM_APDU [18:25:30]CAPDU: 80 0D 01 02 [18:25:30]Write to MH i2c: E2 08 00 56 0A 80 0D 01 02 00 00 00 00 D9 [18:25:30]Write i2c OK [18:25:30]MH_I2C_Read... [18:25:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:25:30]Read from MH i2c: E2 [18:25:30]MH_I2C_Read... [18:25:30]Read from MH i2c: E2 03 00 [18:25:30]MH_I2C_Read... [18:25:30]Read from MH i2c: E2 03 00 56 0A 00 90 00 D4 [18:25:30]RAPDU: 90 00 [18:25:30]wFMCommunicate OK [18:25:30]wFMCommunicate request_size=255 [18:25:30]MH_SAM_APDU [18:25: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 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 DB 00 00 00 F4 03 04 00 19 4B 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 D6 E6 AD 84 [18:25:30]Write to MH i2c: E2 02 01 57 0A 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 DB 00 00 00 F4 03 04 00 19 4B 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 D6 E6 AD 84 00 00 D5 [18:25:30]Write i2c OK [18:25:30]MH_I2C_Read... [18:25:30]OFD Sender: No OFD packet to send [18:25:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:25:30]Read from MH i2c: E2 [18:25:30]MH_I2C_Read... [18:25:30]Read from MH i2c: E2 03 00 [18:25:30]MH_I2C_Read... [18:25:30]Read from MH i2c: E2 03 00 57 0A 00 90 00 D5 [18:25:30]RAPDU: 90 00 [18:25:30]wFMCommunicate OK [18:25:30]wFMCommunicate request_size=7 [18:25:30]MH_SAM_APDU [18:25:30]CAPDU: 80 0D 02 02 02 72 D6 [18:25:30]Write to MH i2c: E2 0A 00 58 0A 80 0D 02 02 02 00 72 D6 00 00 28 [18:25:30]Write i2c OK [18:25:30]MH_I2C_Read... [18:25:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:25:30]Read from MH i2c: E2 [18:25:30]MH_I2C_Read... [18:25:30]Read from MH i2c: E2 03 00 [18:25:30]MH_I2C_Read... [18:25:30]Read from MH i2c: E2 03 00 58 0A 00 90 00 D6 [18:25:30]RAPDU: 90 00 [18:25:30]wFMCommunicate OK [18:25:30]wFMCommunicate request_size=4 [18:25:30]MH_SAM_APDU [18:25:30]CAPDU: 80 0D 03 02 [18:25:30]Write to MH i2c: E2 08 00 59 0A 80 0D 03 02 00 00 00 00 DE [18:25:30]Write i2c OK [18:25:30]MH_I2C_Read... [18:25:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:25:30]Read from MH i2c: E2 [18:25:30]MH_I2C_Read... [18:25:30]Read from MH i2c: E2 0B 00 [18:25:30]MH_I2C_Read... [18:25:30]Read from MH i2c: E2 0B 00 59 0A 00 EE CE F1 58 79 56 79 D1 90 00 FD [18:25:30]RAPDU: EE CE F1 58 79 56 79 D1 90 00 [18:25:30]wFMCommunicate OK [18:25:30]SAM_PROTO_SignData done [18:25:30]FM_MakeSignedData done [18:25:30]CreateOFDProtocolMessage [18:25:30]wFMCommunicate request_size=4 [18:25:30]MH_SAM_APDU [18:25:30]CAPDU: 80 11 00 00 [18:25:30]Write to MH i2c: E2 08 00 5A 0A 80 11 00 00 00 00 00 00 DE [18:25:30]Write i2c OK [18:25:30]MH_I2C_Read... [18:25:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:25:30]Read from MH i2c: E2 [18:25:30]MH_I2C_Read... [18:25:30]Read from MH i2c: E2 17 00 [18:25:30]MH_I2C_Read... [18:25:30]Read from MH i2c: E2 17 00 5A 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 2C [18:25: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:25:30]wFMCommunicate OK [18:25:30]CreateOFDProtocolMessage done [18:25:30]OFDSenderStorePacket 30437 [18:25:30]StoreOFDPacket docnum=30437 [18:25: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 33 E7 04 01 75 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 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 DB 00 00 00 F4 03 04 00 19 4B 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 D6 E6 AD 84 72 D6 EE CE F1 58 79 56 79 D1 [18:25:30]CheckFolder [18:25:30]dirname=/storage/ofd_packets [18:25:30]CheckFolder done [18:25:30]ProducePacketName [18:25:30]name=ofd_packets/00030437 [18:25:30]NVStorageSaveData ofd_packets/00030437 [18:25:30]File name is /storage/ofd_packets/00030437 [18:25:30]Write 298 bytes [18:25:30]NVStorageSaveData done [18:25:30]OFDSenderStorePacket done [18:25:30]KKMCreateOFDPacket done [18:25:30]NVStorageSaveData kkm_last_timestamp [18:25:30]File name is /storage/kkm_last_timestamp [18:25:30]Write 4 bytes [18:25:30]NVStorageSaveData done [18:25:30]ExternCall_PrintAddStr [18:25:30]wPrintStart [18:25:30]Write to MH i2c: 01 00 00 5B 0A 65 [18:25:30]Write i2c OK [18:25:30]MH_I2C_Read... [18:25:30]Read from MH i2c: 01 [18:25:30]MH_I2C_Read... [18:25:30]Read from MH i2c: 01 07 00 [18:25:30]MH_I2C_Read... [18:25:30]Read from MH i2c: 01 07 00 5B 0A 00 00 00 00 00 FF 0F 7A [18:25:30]RasterBufferAndPrint [18:25:30]line Счет N : (1)342838 [18:25:30]line ИНН: 02508201610067 [18:25:30]line Контрольно-Кассовый Чек [18:25:30]line ПРОДАЖА [18:25:30]line ТРК (МРК, ГНК) : 34 [18:25:30]line Товар: 2710194210 [18:25:30]line ДТ-К-2 [18:25:30]line 13.130 * 76.20 [18:25:30]line = 1000.51 [18:25:30]line НДС 12% НСП 1% [18:25:30]line > о реализуемом товаре [18:25:30]line ОКРУГЛЕНИЕ: -0.51 [18:25:30]line ИТОГО: 1000.00 [18:25:30]line Внесено: 1000.00 [18:25:30]line СДАЧА: 0.00 [18:25:30]line НСП 1% : 8.85 [18:25:30]line НДС 12% : 106.25 [18:25:30]line Наличными: 1000.00 [18:25:30]line Безнал.: 0.00 [18:25:30]line Место: АЗС № 78 "Партнер Нефть" [18:25:30]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [18:25:30]line СНО: Общий режим [18:25:30]line Чек 219 20.10.2024 18:25 [18:25:30]line Смена: 114 ФФД: 1.0 [18:25:30]line ЗНМ: 0300000137 [18:25:30]line РНМ: 0000000000186857 [18:25:30]line Версия ККМ: v1.0 [18:25:30]line ФМ: 0000000002094219 [18:25:30]line ФД: 30437 [18:25:30]line ФПД: 236286241960662 [18:25:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T182529&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30437&fm=236286241960662&tin=02508201610067®Number=0000000000186857&sum=100000 [18:25:30]OFD Sender: Processing packet 30437 [packets to send 10, broken 9] [18:25:30]ProducePacketName [18:25:30]name=ofd_packets/00030437 [18:25:30]OFD Sender: To server: pG, [18:25:30]CommunicateWithHost lk.salyk.kg:30040 [18:25:30]ConnectInit lk.salyk.kg [18:25:30]written 0, free lines is 4095 [18:25:30]Connected sock=9 [18:25: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 33 E7 04 01 75 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 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 DB 00 00 00 F4 03 04 00 19 4B 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 D6 E6 AD 84 72 D6 EE CE F1 58 79 56 79 D1 [18:25: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 23 A2 47 00 15 A5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 E5 76 00 00 F4 03 04 00 9C F5 14 67 B6 04 01 00 00 95 C5 B2 EA DA FB 51 69 [18:25:31]CommunicateWithHost err = 0 [18:25:31]CheckOFDResponse [18:25:31]1017 (14) - 77093643461234 [18:25:31]1041 (16) - 0000000002094219 [18:25:31]1040 (4) - 30437 [18:25:31]1012 (4) - 20.10.2024 12:20 [18:25:31]1206 (1) - 0 [18:25:31]OFD Sender: Remove packet 30437 [18:25:31]ProducePacketName [18:25:31]name=ofd_packets/00030437 [18:25:31]NVStorageDeleteData [18:25:31]Write to MH i2c: 01 00 00 86 0A 90 [18:25:31]Write i2c OK [18:25:31]MH_I2C_Read... [18:25:31]Read from MH i2c: 01 [18:25:31]MH_I2C_Read... [18:25:31]Read from MH i2c: 01 07 00 [18:25:31]MH_I2C_Read... [18:25:31]Read from MH i2c: 01 07 00 86 0A 00 00 00 00 00 EE 0C 91 [18:25:31]RasterBufferAndPrint [18:25:31]line [18:25:31]line [18:25:31]line [18:25:31]line [18:25:31]line [18:25:31]written 0, free lines is 3319 [18:25:31]MH_Cut [18:25:31]Write to MH i2c: D1 01 00 8D 0A 01 69 [18:25:31]Write i2c OK [18:25:31]MH_I2C_Read... [18:25:31]Read from MH i2c: D1 [18:25:31]MH_I2C_Read... [18:25:31]Read from MH i2c: D1 01 00 [18:25:31]MH_I2C_Read... [18:25:31]Read from MH i2c: D1 01 00 8D 0A 00 68 [18:25:31]Write to MH i2c: 01 00 00 8E 0A 98 [18:25:31]Write i2c OK [18:25:31]MH_I2C_Read... [18:25:31]OFD Sender: No OFD packet to send [18:25:32]*** Cut start [18:25:32]*** Partial cut [18:25:32]*** CUTSNS_PIN = 1 [18:25:32]*** CUTSNS_PIN = 0 [18:25:32]*** Brake cut motor [18:25:32]Read from MH i2c: 01 [18:25:32]MH_I2C_Read... [18:25:32]*** Stop cut motor [18:25:32]*** Cut end [18:25:32]Read from MH i2c: 01 07 00 [18:25:32]MH_I2C_Read... [18:25:32]Read from MH i2c: 01 07 00 8E 0A 00 00 00 00 00 FF 0F AD [18:25:32]process_action close_receipt done [18:25:32]requested_data is exist [18:25:32]produce_requested_data [18:25:32]requested_item fm.sn is exist - process it [18:25:32]wFMCommunicate request_size=4 [18:25:32]MH_SAM_APDU [18:25:32]CAPDU: 80 11 00 00 [18:25:32]Write to MH i2c: E2 08 00 8F 0A 80 11 00 00 00 00 00 00 13 [18:25:32]Write i2c OK [18:25:32]MH_I2C_Read... [18:25:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:25:32]Read from MH i2c: E2 [18:25:32]MH_I2C_Read... [18:25:32]Read from MH i2c: E2 17 00 [18:25:32]MH_I2C_Read... [18:25:32]Read from MH i2c: E2 17 00 8F 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 61 [18:25:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [18:25:32]wFMCommunicate OK [18:25:32]requested_item fd.num is exist - process it [18:25:32]SAM_PROTO_GetFieldsCounters [18:25:32]wFMCommunicate request_size=4 [18:25:32]MH_SAM_APDU [18:25:32]CAPDU: 80 13 00 00 [18:25:32]Write to MH i2c: E2 08 00 90 0A 80 13 00 00 00 00 00 00 16 [18:25:32]Write i2c OK [18:25:32]MH_I2C_Read... [18:25:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:25:32]Read from MH i2c: E2 [18:25:32]MH_I2C_Read... [18:25:32]Read from MH i2c: E2 62 00 [18:25:32]MH_I2C_Read... [18:25:32]Read from MH i2c: E2 62 00 90 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 9A [18:25: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 E5 76 00 00 0E 04 04 00 72 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 [18:25:32]wFMCommunicate OK [18:25:32]SAM_PROTO_GetFieldsCounters done [18:25:32]requested_item shift.num is exist - process it [18:25:32]requested_item shift.opened is exist - process it [18:25:32]req_shift_opened [18:25:32]FM_GetShiftState [18:25:32]SAM_PROTO_GetShiftState [18:25:32]wFMCommunicate request_size=4 [18:25:32]MH_SAM_APDU [18:25:32]CAPDU: 80 13 01 00 [18:25:32]Write to MH i2c: E2 08 00 91 0A 80 13 01 00 00 00 00 00 18 [18:25:32]Write i2c OK [18:25:32]MH_I2C_Read... [18:25:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:25:32]Read from MH i2c: E2 [18:25:32]MH_I2C_Read... [18:25:32]Read from MH i2c: E2 0E 00 [18:25:32]MH_I2C_Read... [18:25:32]Read from MH i2c: E2 0E 00 91 0A 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 FE [18:25:32]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [18:25:32]wFMCommunicate OK [18:25:32]SAM_PROTO_GetShiftState done [18:25:32]FM_GetShiftState done [18:25:32]req_shift_opened done [18:25:32]requested_item shift.open_date is exist - process it [18:25:32]req_shift_open_date [18:25:32]req_shift_open_date done [18:25:32]produce_requested_data done [18:25:32]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30437,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [18:25:32]process_action_free close_receipt [18:25:32]json_value_free [18:25:32]json_value_free done [18:25:32]process_json_proto returns [18:25:32]Send response to host [18:25:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30437,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [18:25:32]free response buf [18:25:32]execute_script done [18:25:32]execute_script returns [18:25:32]free content buf [18:25:32]Sock 7.Close socket [18:25:32]Sock 7.Thread stoped [18:25:36]OFD Sender: No OFD packet to send [18:25:41]OFD Sender: No OFD packet to send [18:25:46]OFD Sender: No OFD packet to send [18:25:51]OFD Sender: No OFD packet to send [18:25:56]OFD Sender: No OFD packet to send [18:26:01]OFD Sender: No OFD packet to send [18:26:06]OFD Sender: No OFD packet to send [18:26:11]OFD Sender: No OFD packet to send [18:26:16]OFD Sender: No OFD packet to send [18:26:21]OFD Sender: No OFD packet to send [18:26:26]OFD Sender: No OFD packet to send [18:26:31]OFD Sender: No OFD packet to send [18:26:36]OFD Sender: No OFD packet to send [18:26:41]OFD Sender: No OFD packet to send [18:26:46]OFD Sender: No OFD packet to send [18:26:51]OFD Sender: No OFD packet to send [18:26:56]OFD Sender: No OFD packet to send [18:27:01]OFD Sender: No OFD packet to send [18:27:06]OFD Sender: No OFD packet to send [18:27:11]OFD Sender: No OFD packet to send [18:27:16]OFD Sender: No OFD packet to send [18:27:20]accept exits with 10 [18:27:20]New connection [18:27:20]New thread 3067489636 created [18:27:20]Thread 3067346276 joined [18:27:20]Waiting for new connection... [18:27:20] Sock 10.Parse request [18:27:20]Sock 10.Check first char [18:27:20]Sock 10.First char is OK [18:27:20]request: POST /json_proto HTTP/1.0 [18:27:20]Method: POST [18:27:20]URL: /json_proto [18:27:20]Method is POST - this is cgi request [18:27:20]url: /json_proto [18:27:20]query_string will be loaded in cgi processing [18:27:20]execute_cgi json_proto POST (null) [18:27:20]execute_cgi path=json_proto method=POST [18:27:20]POST find Content-Length [18:27:20]Host: 172.17.51.3:8080 [18:27:20]Content-Length: 688 [18:27:20]Content-Type: application/json [18:27:20] [18:27:20]POST finish read [18:27:20]Found Content-Length = 688 [18:27:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342840", "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" ] } } [18:27:20]execute_script... [18:27:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342840", "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" ] } } [18:27:20]POST & json_proto [18:27:20]process_json_proto [18:27:20]json parsed OK: [18:27:20]protocol is kg_v1.0 [18:27:20]action value=close_receipt [18:27:20]process_action close_receipt [18:27:20]cmd_close_receipt [18:27:20]MH_GetDate [18:27:20]Write to MH i2c: F0 00 00 92 0A 8B [18:27:20]Write i2c OK [18:27:20]MH_I2C_Read... [18:27:20]Read from MH i2c: F0 [18:27:20]MH_I2C_Read... [18:27:20]Read from MH i2c: F0 09 00 [18:27:20]MH_I2C_Read... [18:27:20]Read from MH i2c: F0 09 00 92 0A 00 89 4B 15 67 04 C1 95 66 A4 [18:27:20]GetLastDocTimeStamp 1729448729 [18:27:20]current date 1729448841 [18:27:20]FM_GetShiftState [18:27:20]SAM_PROTO_GetShiftState [18:27:20]wFMCommunicate request_size=4 [18:27:20]MH_SAM_APDU [18:27:20]CAPDU: 80 13 01 00 [18:27:20]Write to MH i2c: E2 08 00 93 0A 80 13 01 00 00 00 00 00 1A [18:27:21]Write i2c OK [18:27:21]MH_I2C_Read... [18:27:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:27:21]Read from MH i2c: E2 [18:27:21]MH_I2C_Read... [18:27:21]Read from MH i2c: E2 0E 00 [18:27:21]MH_I2C_Read... [18:27:21]Read from MH i2c: E2 0E 00 93 0A 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 00 [18:27:21]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [18:27:21]wFMCommunicate OK [18:27:21]SAM_PROTO_GetShiftState done [18:27:21]FM_GetShiftState done [18:27:21]opened in 1729384718 [18:27:21]opened+sec_in_day 1729471118 [18:27:21]quantity*price = 400050 [18:27:21]sum+1 = 400051 [18:27:21]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 СНО: Общий режим Чек 220 20.10.2024 18:27 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30438 ФПД: 240606357399931 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T182721&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30438&fm=240606357399931&tin=02508201610067®Number=0000000000186857&sum=400000 [18:27:22]StoreToDocumentArchive [18:27:22]shift 114 fd 30438 [18:27:22]save to /storage/0114/doc_00030438 [18:27:22]save last doc name /storage/0114/doc_00030438 to /storage/kkm_last_doc_name [18:27:22]save OK [18:27:22]Clear old archive folders... [18:27:22]ProcessDocumentItem done err = 0, tmpTLVsize=257 [18:27:22]tlvbuf is 01DBB330 [18:27:22]SAM_PROTO_ClearQueue [18:27:22]wFMCommunicate request_size=4 [18:27:22]MH_SAM_APDU [18:27:22]CAPDU: 80 09 00 00 [18:27:22]Write to MH i2c: E2 08 00 A0 0A 80 09 00 00 00 00 00 00 1C [18:27:22]Write i2c OK [18:27:22]MH_I2C_Read... [18:27:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:27:22]Read from MH i2c: E2 [18:27:22]MH_I2C_Read... [18:27:22]Read from MH i2c: E2 03 00 [18:27:22]MH_I2C_Read... [18:27:22]Read from MH i2c: E2 03 00 A0 0A 00 90 00 1E [18:27:22]RAPDU: 90 00 [18:27:22]wFMCommunicate OK [18:27:22]SAM_PROTO_ClearQueue done [18:27:22]KKMCreateOFDPacket [18:27:22]OFDProtocolAddRootSTLVToBuf [18:27:22]FM_MakeSignedData [18:27:22]FM_MakeSignedData [18:27:22]SAM_PROTO_SignData [18:27:22]wFMCommunicate request_size=4 [18:27:22]MH_SAM_APDU [18:27:22]CAPDU: 80 0D 01 02 [18:27:22]Write to MH i2c: E2 08 00 A1 0A 80 0D 01 02 00 00 00 00 24 [18:27:22]Write i2c OK [18:27:22]MH_I2C_Read... [18:27:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:27:22]Read from MH i2c: E2 [18:27:22]MH_I2C_Read... [18:27:22]Read from MH i2c: E2 03 00 [18:27:22]MH_I2C_Read... [18:27:22]Read from MH i2c: E2 03 00 A1 0A 00 90 00 1F [18:27:22]RAPDU: 90 00 [18:27:22]wFMCommunicate OK [18:27:22]wFMCommunicate request_size=255 [18:27:22]MH_SAM_APDU [18:27: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 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 DC 00 00 00 F4 03 04 00 89 4B 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 [18:27:22]Write to MH i2c: E2 02 01 A2 0A 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 DC 00 00 00 F4 03 04 00 89 4B 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 00 9D [18:27:22]Write i2c OK [18:27:22]MH_I2C_Read... [18:27:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:27:22]Read from MH i2c: E2 [18:27:22]MH_I2C_Read... [18:27:22]Read from MH i2c: E2 03 00 [18:27:22]MH_I2C_Read... [18:27:22]Read from MH i2c: E2 03 00 A2 0A 00 90 00 20 [18:27:22]RAPDU: 90 00 [18:27:22]wFMCommunicate OK [18:27:22]wFMCommunicate request_size=16 [18:27:22]MH_SAM_APDU [18:27:22]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 DA D4 88 76 A9 7B [18:27:22]Write to MH i2c: E2 13 00 A3 0A 80 0D 02 02 0B 00 00 35 04 06 00 DA D4 88 76 A9 7B 00 00 4C [18:27:22]Write i2c OK [18:27:22]MH_I2C_Read... [18:27:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:27:22]Read from MH i2c: E2 [18:27:22]MH_I2C_Read... [18:27:22]Read from MH i2c: E2 03 00 [18:27:22]MH_I2C_Read... [18:27:22]Read from MH i2c: E2 03 00 A3 0A 00 90 00 21 [18:27:22]RAPDU: 90 00 [18:27:22]wFMCommunicate OK [18:27:22]wFMCommunicate request_size=4 [18:27:22]MH_SAM_APDU [18:27:22]CAPDU: 80 0D 03 02 [18:27:22]Write to MH i2c: E2 08 00 A4 0A 80 0D 03 02 00 00 00 00 29 [18:27:22]Write i2c OK [18:27:22]MH_I2C_Read... [18:27:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:27:22]Read from MH i2c: E2 [18:27:22]MH_I2C_Read... [18:27:22]Read from MH i2c: E2 0B 00 [18:27:22]MH_I2C_Read... [18:27:22]Read from MH i2c: E2 0B 00 A4 0A 00 FE 1A 2B 11 13 BC 61 33 90 00 E1 [18:27:22]RAPDU: FE 1A 2B 11 13 BC 61 33 90 00 [18:27:22]wFMCommunicate OK [18:27:22]SAM_PROTO_SignData done [18:27:22]FM_MakeSignedData done [18:27:22]CreateOFDProtocolMessage [18:27:22]wFMCommunicate request_size=4 [18:27:22]MH_SAM_APDU [18:27:22]CAPDU: 80 11 00 00 [18:27:22]Write to MH i2c: E2 08 00 A5 0A 80 11 00 00 00 00 00 00 29 [18:27:22]Write i2c OK [18:27:22]MH_I2C_Read... [18:27:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:27:22]Read from MH i2c: E2 [18:27:22]MH_I2C_Read... [18:27:22]Read from MH i2c: E2 17 00 [18:27:22]MH_I2C_Read... [18:27:22]Read from MH i2c: E2 17 00 A5 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 77 [18:27:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [18:27:22]wFMCommunicate OK [18:27:22]CreateOFDProtocolMessage done [18:27:22]OFDSenderStorePacket 30438 [18:27:22]StoreOFDPacket docnum=30438 [18:27: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 4C E1 0D 01 A2 AD 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 DC 00 00 00 F4 03 04 00 89 4B 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 DA D4 88 76 A9 7B FE 1A 2B 11 13 BC 61 33 [18:27:22]CheckFolder [18:27:22]dirname=/storage/ofd_packets [18:27:22]CheckFolder done [18:27:22]ProducePacketName [18:27:22]name=ofd_packets/00030438 [18:27:22]NVStorageSaveData ofd_packets/00030438 [18:27:22]File name is /storage/ofd_packets/00030438 [18:27:22]Write 307 bytes [18:27:22]NVStorageSaveData done [18:27:22]OFDSenderStorePacket done [18:27:22]KKMCreateOFDPacket done [18:27:22]NVStorageSaveData kkm_last_timestamp [18:27:22]File name is /storage/kkm_last_timestamp [18:27:22]Write 4 bytes [18:27:22]NVStorageSaveData done [18:27:22]ExternCall_PrintAddStr [18:27:22]wPrintStart [18:27:22]Write to MH i2c: 01 00 00 A6 0A B0 [18:27:22]Write i2c OK [18:27:22]MH_I2C_Read... [18:27:22]Read from MH i2c: 01 [18:27:22]MH_I2C_Read... [18:27:22]Read from MH i2c: 01 07 00 [18:27:22]MH_I2C_Read... [18:27:22]Read from MH i2c: 01 07 00 A6 0A 00 00 00 00 00 FF 0F C5 [18:27:22]RasterBufferAndPrint [18:27:22]line Счет N : (1)342840 [18:27:22]line ИНН: 02508201610067 [18:27:22]line Контрольно-Кассовый Чек [18:27:22]line ПРОДАЖА [18:27:22]line ТРК (МРК, ГНК) : 61 [18:27:22]line Товар: 2710194210 [18:27:22]line D-ENERGY Дт-К-2 [18:27:22]line 51.820 * 77.20 [18:27:22]line = 4000.50 [18:27:22]line НДС 12% НСП 1% [18:27:22]line > о реализуемом товаре [18:27:22]line ОКРУГЛЕНИЕ: -0.50 [18:27:22]line ИТОГО: 4000.00 [18:27:22]line Внесено: 4000.00 [18:27:22]line СДАЧА: 0.00 [18:27:22]line НСП 1% : 35.40 [18:27:22]line НДС 12% : 424.83 [18:27:22]line Наличными: 4000.00 [18:27:22]line Безнал.: 0.00 [18:27:22]line Место: АЗС № 78 "Партнер Нефть" [18:27:22]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [18:27:22]line СНО: Общий режим [18:27:22]line Чек 220 20.10.2024 18:27 [18:27:22]line Смена: 114 ФФД: 1.0 [18:27:22]line ЗНМ: 0300000137 [18:27:22]line РНМ: 0000000000186857 [18:27:22]line Версия ККМ: v1.0 [18:27:22]line ФМ: 0000000002094219 [18:27:22]line ФД: 30438 [18:27:22]line ФПД: 240606357399931 [18:27:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T182721&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30438&fm=240606357399931&tin=02508201610067®Number=0000000000186857&sum=400000 [18:27:23]OFD Sender: Processing packet 30438 [packets to send 10, broken 9] [18:27:23]ProducePacketName [18:27:23]name=ofd_packets/00030438 [18:27:23]OFD Sender: To server: pG, [18:27:23]CommunicateWithHost lk.salyk.kg:30040 [18:27:23]ConnectInit lk.salyk.kg [18:27:23]written 0, free lines is 4095 [18:27:23]Connected sock=9 [18:27: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 4C E1 0D 01 A2 AD 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 DC 00 00 00 F4 03 04 00 89 4B 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 DA D4 88 76 A9 7B FE 1A 2B 11 13 BC 61 33 [18:27: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 B6 C8 47 00 69 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 E6 76 00 00 F4 03 04 00 0C F6 14 67 B6 04 01 00 00 84 B7 54 14 92 AD BE 9D [18:27:23]CommunicateWithHost err = 0 [18:27:23]CheckOFDResponse [18:27:23]1017 (14) - 77093643461234 [18:27:23]1041 (16) - 0000000002094219 [18:27:23]1040 (4) - 30438 [18:27:23]1012 (4) - 20.10.2024 12:22 [18:27:23]1206 (1) - 0 [18:27:23]OFD Sender: Remove packet 30438 [18:27:23]ProducePacketName [18:27:23]name=ofd_packets/00030438 [18:27:23]NVStorageDeleteData [18:27:23]Write to MH i2c: 01 00 00 D1 0A DB [18:27:23]Write i2c OK [18:27:23]MH_I2C_Read... [18:27:23]Read from MH i2c: 01 [18:27:23]MH_I2C_Read... [18:27:23]Read from MH i2c: 01 07 00 [18:27:23]MH_I2C_Read... [18:27:23]Read from MH i2c: 01 07 00 D1 0A 00 00 00 00 00 F0 0C DE [18:27:23]RasterBufferAndPrint [18:27:23]line [18:27:23]line [18:27:23]line [18:27:23]line [18:27:23]line [18:27:23]written 0, free lines is 3318 [18:27:23]MH_Cut [18:27:23]Write to MH i2c: D1 01 00 D8 0A 01 B4 [18:27:23]Write i2c OK [18:27:23]MH_I2C_Read... [18:27:23]Read from MH i2c: D1 [18:27:23]MH_I2C_Read... [18:27:23]Read from MH i2c: D1 01 00 [18:27:23]MH_I2C_Read... [18:27:23]Read from MH i2c: D1 01 00 D8 0A 00 B3 [18:27:23]Write to MH i2c: 01 00 00 D9 0A E3 [18:27:23]Write i2c OK [18:27:23]MH_I2C_Read... [18:27:23]OFD Sender: No OFD packet to send [18:27:24]*** Cut start [18:27:24]*** Partial cut [18:27:24]*** CUTSNS_PIN = 1 [18:27:24]*** CUTSNS_PIN = 0 [18:27:24]*** Brake cut motor [18:27:24]Read from MH i2c: 01 [18:27:24]MH_I2C_Read... [18:27:24]*** Stop cut motor [18:27:24]*** Cut end [18:27:24]Read from MH i2c: 01 07 00 [18:27:24]MH_I2C_Read... [18:27:24]Read from MH i2c: 01 07 00 D9 0A 00 00 00 00 00 FF 0F F8 [18:27:24]process_action close_receipt done [18:27:24]requested_data is exist [18:27:24]produce_requested_data [18:27:24]requested_item fm.sn is exist - process it [18:27:24]wFMCommunicate request_size=4 [18:27:24]MH_SAM_APDU [18:27:24]CAPDU: 80 11 00 00 [18:27:24]Write to MH i2c: E2 08 00 DA 0A 80 11 00 00 00 00 00 00 5E [18:27:24]Write i2c OK [18:27:24]MH_I2C_Read... [18:27:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:27:24]Read from MH i2c: E2 [18:27:24]MH_I2C_Read... [18:27:24]Read from MH i2c: E2 17 00 [18:27:24]MH_I2C_Read... [18:27:24]Read from MH i2c: E2 17 00 DA 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 AC [18:27:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [18:27:24]wFMCommunicate OK [18:27:24]requested_item fd.num is exist - process it [18:27:24]SAM_PROTO_GetFieldsCounters [18:27:24]wFMCommunicate request_size=4 [18:27:24]MH_SAM_APDU [18:27:24]CAPDU: 80 13 00 00 [18:27:24]Write to MH i2c: E2 08 00 DB 0A 80 13 00 00 00 00 00 00 61 [18:27:24]Write i2c OK [18:27:24]MH_I2C_Read... [18:27:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:27:24]Read from MH i2c: E2 [18:27:24]MH_I2C_Read... [18:27:24]Read from MH i2c: E2 62 00 [18:27:24]MH_I2C_Read... [18:27:24]Read from MH i2c: E2 62 00 DB 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 E9 [18:27: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 E6 76 00 00 0E 04 04 00 72 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 [18:27:24]wFMCommunicate OK [18:27:24]SAM_PROTO_GetFieldsCounters done [18:27:24]requested_item shift.num is exist - process it [18:27:24]requested_item shift.opened is exist - process it [18:27:24]req_shift_opened [18:27:24]FM_GetShiftState [18:27:24]SAM_PROTO_GetShiftState [18:27:24]wFMCommunicate request_size=4 [18:27:24]MH_SAM_APDU [18:27:24]CAPDU: 80 13 01 00 [18:27:24]Write to MH i2c: E2 08 00 DC 0A 80 13 01 00 00 00 00 00 63 [18:27:24]Write i2c OK [18:27:24]MH_I2C_Read... [18:27:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:27:25]Read from MH i2c: E2 [18:27:25]MH_I2C_Read... [18:27:25]Read from MH i2c: E2 0E 00 [18:27:25]MH_I2C_Read... [18:27:25]Read from MH i2c: E2 0E 00 DC 0A 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 49 [18:27:25]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [18:27:25]wFMCommunicate OK [18:27:25]SAM_PROTO_GetShiftState done [18:27:25]FM_GetShiftState done [18:27:25]req_shift_opened done [18:27:25]requested_item shift.open_date is exist - process it [18:27:25]req_shift_open_date [18:27:25]req_shift_open_date done [18:27:25]produce_requested_data done [18:27:25]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30438,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [18:27:25]process_action_free close_receipt [18:27:25]json_value_free [18:27:25]json_value_free done [18:27:25]process_json_proto returns [18:27:25]Send response to host [18:27:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30438,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [18:27:25]free response buf [18:27:25]execute_script done [18:27:25]execute_script returns [18:27:25]free content buf [18:27:25]Sock 10.Close socket [18:27:25]Sock 10.Thread stoped [18:27:28]OFD Sender: No OFD packet to send [18:27:33]OFD Sender: No OFD packet to send [18:27:37]accept exits with 7 [18:27:37]New connection [18:27:37]New thread 3067346276 created [18:27:37]Thread 3067489636 joined [18:27:37]Waiting for new connection... [18:27:37] Sock 7.Parse request [18:27:37]Sock 7.Check first char [18:27:37]Sock 7.First char is OK [18:27:37]request: POST /json_proto HTTP/1.0 [18:27:37]Method: POST [18:27:37]URL: /json_proto [18:27:37]Method is POST - this is cgi request [18:27:37]url: /json_proto [18:27:37]query_string will be loaded in cgi processing [18:27:37]execute_cgi json_proto POST (null) [18:27:37]execute_cgi path=json_proto method=POST [18:27:37]POST find Content-Length [18:27:37]Host: 172.17.51.3:8080 [18:27:37]Content-Length: 677 [18:27:37]Content-Type: application/json [18:27:37] [18:27:37]POST finish read [18:27:37]Found Content-Length = 677 [18:27:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342841", "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" ] } } [18:27:37]execute_script... [18:27: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)342841", "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" ] } } [18:27:37]POST & json_proto [18:27:37]process_json_proto [18:27:37]json parsed OK: [18:27:37]protocol is kg_v1.0 [18:27:37]action value=close_receipt [18:27:37]process_action close_receipt [18:27:37]cmd_close_receipt [18:27:37]MH_GetDate [18:27:37]Write to MH i2c: F0 00 00 DD 0A D6 [18:27:37]Write i2c OK [18:27:37]MH_I2C_Read... [18:27:37]Read from MH i2c: F0 [18:27:37]MH_I2C_Read... [18:27:37]Read from MH i2c: F0 09 00 [18:27:37]MH_I2C_Read... [18:27:37]Read from MH i2c: F0 09 00 DD 0A 00 9A 4B 15 67 04 C1 95 66 00 [18:27:37]GetLastDocTimeStamp 1729448841 [18:27:37]current date 1729448858 [18:27:37]FM_GetShiftState [18:27:37]SAM_PROTO_GetShiftState [18:27:37]wFMCommunicate request_size=4 [18:27:37]MH_SAM_APDU [18:27:37]CAPDU: 80 13 01 00 [18:27:37]Write to MH i2c: E2 08 00 DE 0A 80 13 01 00 00 00 00 00 65 [18:27:37]Write i2c OK [18:27:37]MH_I2C_Read... [18:27:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:27:37]Read from MH i2c: E2 [18:27:37]MH_I2C_Read... [18:27:37]Read from MH i2c: E2 0E 00 [18:27:37]MH_I2C_Read... [18:27:37]Read from MH i2c: E2 0E 00 DE 0A 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 4B [18:27:37]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [18:27:37]wFMCommunicate OK [18:27:37]SAM_PROTO_GetShiftState done [18:27:37]FM_GetShiftState done [18:27:37]opened in 1729384718 [18:27:37]opened+sec_in_day 1729471118 [18:27:37]quantity*price = 40006 [18:27:37]sum+1 = 40007 [18:27:37]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 СНО: Общий режим Чек 221 20.10.2024 18:27 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30439 ФПД: 151705989637307 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T182738&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30439&fm=151705989637307&tin=02508201610067®Number=0000000000186857&sum=40000 [18:27:38]StoreToDocumentArchive [18:27:38]shift 114 fd 30439 [18:27:38]save to /storage/0114/doc_00030439 [18:27:38]save last doc name /storage/0114/doc_00030439 to /storage/kkm_last_doc_name [18:27:38]save OK [18:27:38]Clear old archive folders... [18:27:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:27:38]tlvbuf is 01E306F0 [18:27:38]SAM_PROTO_ClearQueue [18:27:38]wFMCommunicate request_size=4 [18:27:38]MH_SAM_APDU [18:27:38]CAPDU: 80 09 00 00 [18:27:38]Write to MH i2c: E2 08 00 EB 0A 80 09 00 00 00 00 00 00 67 [18:27:38]Write i2c OK [18:27:38]MH_I2C_Read... [18:27:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:27:38]Read from MH i2c: E2 [18:27:38]MH_I2C_Read... [18:27:38]Read from MH i2c: E2 03 00 [18:27:38]MH_I2C_Read... [18:27:38]Read from MH i2c: E2 03 00 EB 0A 00 90 00 69 [18:27:38]RAPDU: 90 00 [18:27:38]wFMCommunicate OK [18:27:38]SAM_PROTO_ClearQueue done [18:27:38]KKMCreateOFDPacket [18:27:38]OFDProtocolAddRootSTLVToBuf [18:27:38]FM_MakeSignedData [18:27:38]FM_MakeSignedData [18:27:38]SAM_PROTO_SignData [18:27:38]wFMCommunicate request_size=4 [18:27:38]MH_SAM_APDU [18:27:38]CAPDU: 80 0D 01 02 [18:27:38]Write to MH i2c: E2 08 00 EC 0A 80 0D 01 02 00 00 00 00 6F [18:27:38]Write i2c OK [18:27:38]MH_I2C_Read... [18:27:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:27:38]Read from MH i2c: E2 [18:27:38]MH_I2C_Read... [18:27:38]Read from MH i2c: E2 03 00 [18:27:38]MH_I2C_Read... [18:27:38]Read from MH i2c: E2 03 00 EC 0A 00 90 00 6A [18:27:38]RAPDU: 90 00 [18:27:38]wFMCommunicate OK [18:27:38]wFMCommunicate request_size=255 [18:27:38]MH_SAM_APDU [18:27: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 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 DD 00 00 00 F4 03 04 00 9A 4B 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 89 [18:27:38]Write to MH i2c: E2 02 01 ED 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 DD 00 00 00 F4 03 04 00 9A 4B 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 89 00 00 65 [18:27:38]Write i2c OK [18:27:38]MH_I2C_Read... [18:27:38]OFD Sender: No OFD packet to send [18:27:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:27:39]Read from MH i2c: E2 [18:27:39]MH_I2C_Read... [18:27:39]Read from MH i2c: E2 03 00 [18:27:39]MH_I2C_Read... [18:27:39]Read from MH i2c: E2 03 00 ED 0A 00 90 00 6B [18:27:39]RAPDU: 90 00 [18:27:39]wFMCommunicate OK [18:27:39]wFMCommunicate request_size=10 [18:27:39]MH_SAM_APDU [18:27:39]CAPDU: 80 0D 02 02 05 F9 CD 9F 64 BB [18:27:39]Write to MH i2c: E2 0D 00 EE 0A 80 0D 02 02 05 00 F9 CD 9F 64 BB 00 00 00 [18:27:39]Write i2c OK [18:27:39]MH_I2C_Read... [18:27:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:27:39]Read from MH i2c: E2 [18:27:39]MH_I2C_Read... [18:27:39]Read from MH i2c: E2 03 00 [18:27:39]MH_I2C_Read... [18:27:39]Read from MH i2c: E2 03 00 EE 0A 00 90 00 6C [18:27:39]RAPDU: 90 00 [18:27:39]wFMCommunicate OK [18:27:39]wFMCommunicate request_size=4 [18:27:39]MH_SAM_APDU [18:27:39]CAPDU: 80 0D 03 02 [18:27:39]Write to MH i2c: E2 08 00 EF 0A 80 0D 03 02 00 00 00 00 74 [18:27:39]Write i2c OK [18:27:39]MH_I2C_Read... [18:27:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:27:39]Read from MH i2c: E2 [18:27:39]MH_I2C_Read... [18:27:39]Read from MH i2c: E2 0B 00 [18:27:39]MH_I2C_Read... [18:27:39]Read from MH i2c: E2 0B 00 EF 0A 00 2F C5 48 90 F4 02 DD 64 90 00 78 [18:27:39]RAPDU: 2F C5 48 90 F4 02 DD 64 90 00 [18:27:39]wFMCommunicate OK [18:27:39]SAM_PROTO_SignData done [18:27:39]FM_MakeSignedData done [18:27:39]CreateOFDProtocolMessage [18:27:39]wFMCommunicate request_size=4 [18:27:39]MH_SAM_APDU [18:27:39]CAPDU: 80 11 00 00 [18:27:39]Write to MH i2c: E2 08 00 F0 0A 80 11 00 00 00 00 00 00 74 [18:27:39]Write i2c OK [18:27:39]MH_I2C_Read... [18:27:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:27:39]Read from MH i2c: E2 [18:27:39]MH_I2C_Read... [18:27:39]Read from MH i2c: E2 17 00 [18:27:39]MH_I2C_Read... [18:27:39]Read from MH i2c: E2 17 00 F0 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 C2 [18:27: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:27:39]wFMCommunicate OK [18:27:39]CreateOFDProtocolMessage done [18:27:39]OFDSenderStorePacket 30439 [18:27:39]StoreOFDPacket docnum=30439 [18:27: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 EE 06 07 01 09 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 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 DD 00 00 00 F4 03 04 00 9A 4B 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 89 F9 CD 9F 64 BB 2F C5 48 90 F4 02 DD 64 [18:27:39]CheckFolder [18:27:39]dirname=/storage/ofd_packets [18:27:39]CheckFolder done [18:27:39]ProducePacketName [18:27:39]name=ofd_packets/00030439 [18:27:39]NVStorageSaveData ofd_packets/00030439 [18:27:39]File name is /storage/ofd_packets/00030439 [18:27:39]Write 301 bytes [18:27:39]NVStorageSaveData done [18:27:39]OFDSenderStorePacket done [18:27:39]KKMCreateOFDPacket done [18:27:39]NVStorageSaveData kkm_last_timestamp [18:27:39]File name is /storage/kkm_last_timestamp [18:27:39]Write 4 bytes [18:27:39]NVStorageSaveData done [18:27:39]ExternCall_PrintAddStr [18:27:39]wPrintStart [18:27:39]Write to MH i2c: 01 00 00 F1 0A FB [18:27:39]Write i2c OK [18:27:39]MH_I2C_Read... [18:27:39]Read from MH i2c: 01 [18:27:39]MH_I2C_Read... [18:27:39]Read from MH i2c: 01 07 00 [18:27:39]MH_I2C_Read... [18:27:39]Read from MH i2c: 01 07 00 F1 0A 00 00 00 00 00 FF 0F 10 [18:27:39]RasterBufferAndPrint [18:27:39]line Счет N : (1)342841 [18:27:39]line ИНН: 02508201610067 [18:27:39]line Контрольно-Кассовый Чек [18:27:39]line ПРОДАЖА [18:27:39]line ТРК (МРК, ГНК) : 43 [18:27:39]line Товар: 2710124130 [18:27:39]line Аи-92-К-2 [18:27:39]line 5.980 * 66.90 [18:27:39]line = 400.06 [18:27:39]line НДС 12% НСП 1% [18:27:39]line > о реализуемом товаре [18:27:39]line ОКРУГЛЕНИЕ: -0.06 [18:27:39]line ИТОГО: 400.00 [18:27:39]line Внесено: 400.00 [18:27:39]line СДАЧА: 0.00 [18:27:39]line НСП 1% : 3.54 [18:27:39]line НДС 12% : 42.48 [18:27:39]line Наличными: 400.00 [18:27:39]line Безнал.: 0.00 [18:27:39]line Место: АЗС № 78 "Партнер Нефть" [18:27:39]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [18:27:39]line СНО: Общий режим [18:27:39]line Чек 221 20.10.2024 18:27 [18:27:39]line Смена: 114 ФФД: 1.0 [18:27:39]line ЗНМ: 0300000137 [18:27:39]line РНМ: 0000000000186857 [18:27:39]line Версия ККМ: v1.0 [18:27:39]line ФМ: 0000000002094219 [18:27:39]line ФД: 30439 [18:27:39]line ФПД: 151705989637307 [18:27:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T182738&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30439&fm=151705989637307&tin=02508201610067®Number=0000000000186857&sum=40000 [18:27:39]OFD Sender: Processing packet 30439 [packets to send 10, broken 9] [18:27:39]ProducePacketName [18:27:39]name=ofd_packets/00030439 [18:27:39]OFD Sender: To server: pG, [18:27:39]CommunicateWithHost lk.salyk.kg:30040 [18:27:39]ConnectInit lk.salyk.kg [18:27:39]written 0, free lines is 4095 [18:27:39]Connected sock=10 [18:27: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 EE 06 07 01 09 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 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 DD 00 00 00 F4 03 04 00 9A 4B 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 89 F9 CD 9F 64 BB 2F C5 48 90 F4 02 DD 64 [18:27: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 9B D3 47 00 F0 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 E7 76 00 00 F4 03 04 00 1D F6 14 67 B6 04 01 00 00 EB 17 17 4F 72 CE 70 19 [18:27:39]CommunicateWithHost err = 0 [18:27:39]CheckOFDResponse [18:27:39]1017 (14) - 77093643461234 [18:27:39]1041 (16) - 0000000002094219 [18:27:39]1040 (4) - 30439 [18:27:39]1012 (4) - 20.10.2024 12:22 [18:27:39]1206 (1) - 0 [18:27:39]OFD Sender: Remove packet 30439 [18:27:39]ProducePacketName [18:27:39]name=ofd_packets/00030439 [18:27:39]NVStorageDeleteData [18:27:40]Write to MH i2c: 01 00 00 1C 0B 27 [18:27:40]Write i2c OK [18:27:40]MH_I2C_Read... [18:27:40]Read from MH i2c: 01 [18:27:40]MH_I2C_Read... [18:27:40]Read from MH i2c: 01 07 00 [18:27:40]MH_I2C_Read... [18:27:40]Read from MH i2c: 01 07 00 1C 0B 00 00 00 00 00 F5 0C 2F [18:27:40]RasterBufferAndPrint [18:27:40]line [18:27:40]line [18:27:40]line [18:27:40]line [18:27:40]line [18:27:40]written 0, free lines is 3323 [18:27:40]MH_Cut [18:27:40]Write to MH i2c: D1 01 00 23 0B 01 00 [18:27:40]Write i2c OK [18:27:40]MH_I2C_Read... [18:27:40]Read from MH i2c: D1 [18:27:40]MH_I2C_Read... [18:27:40]Read from MH i2c: D1 01 00 [18:27:40]MH_I2C_Read... [18:27:40]Read from MH i2c: D1 01 00 23 0B 00 FF [18:27:40]Write to MH i2c: 01 00 00 24 0B 2F [18:27:40]Write i2c OK [18:27:40]MH_I2C_Read... [18:27:40]OFD Sender: No OFD packet to send [18:27:40]*** Cut start [18:27:40]*** Partial cut [18:27:40]*** CUTSNS_PIN = 1 [18:27:40]*** CUTSNS_PIN = 0 [18:27:40]*** Brake cut motor [18:27:41]Read from MH i2c: 01 [18:27:41]MH_I2C_Read... [18:27:41]*** Stop cut motor [18:27:41]*** Cut end [18:27:41]Read from MH i2c: 01 07 00 [18:27:41]MH_I2C_Read... [18:27:41]Read from MH i2c: 01 07 00 24 0B 00 00 00 00 00 FF 0F 44 [18:27:41]process_action close_receipt done [18:27:41]requested_data is exist [18:27:41]produce_requested_data [18:27:41]requested_item fm.sn is exist - process it [18:27:41]wFMCommunicate request_size=4 [18:27:41]MH_SAM_APDU [18:27:41]CAPDU: 80 11 00 00 [18:27:41]Write to MH i2c: E2 08 00 25 0B 80 11 00 00 00 00 00 00 AA [18:27:41]Write i2c OK [18:27:41]MH_I2C_Read... [18:27:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:27:41]Read from MH i2c: E2 [18:27:41]MH_I2C_Read... [18:27:41]Read from MH i2c: E2 17 00 [18:27:41]MH_I2C_Read... [18:27:41]Read from MH i2c: E2 17 00 25 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 F8 [18:27: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:27:41]wFMCommunicate OK [18:27:41]requested_item fd.num is exist - process it [18:27:41]SAM_PROTO_GetFieldsCounters [18:27:41]wFMCommunicate request_size=4 [18:27:41]MH_SAM_APDU [18:27:41]CAPDU: 80 13 00 00 [18:27:41]Write to MH i2c: E2 08 00 26 0B 80 13 00 00 00 00 00 00 AD [18:27:41]Write i2c OK [18:27:41]MH_I2C_Read... [18:27:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:27:41]Read from MH i2c: E2 [18:27:41]MH_I2C_Read... [18:27:41]Read from MH i2c: E2 62 00 [18:27:41]MH_I2C_Read... [18:27:41]Read from MH i2c: E2 62 00 26 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 39 [18:27: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 E7 76 00 00 0E 04 04 00 72 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 [18:27:41]wFMCommunicate OK [18:27:41]SAM_PROTO_GetFieldsCounters done [18:27:41]requested_item shift.num is exist - process it [18:27:41]requested_item shift.opened is exist - process it [18:27:41]req_shift_opened [18:27:41]FM_GetShiftState [18:27:41]SAM_PROTO_GetShiftState [18:27:41]wFMCommunicate request_size=4 [18:27:41]MH_SAM_APDU [18:27:41]CAPDU: 80 13 01 00 [18:27:41]Write to MH i2c: E2 08 00 27 0B 80 13 01 00 00 00 00 00 AF [18:27:41]Write i2c OK [18:27:41]MH_I2C_Read... [18:27:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:27:41]Read from MH i2c: E2 [18:27:41]MH_I2C_Read... [18:27:41]Read from MH i2c: E2 0E 00 [18:27:41]MH_I2C_Read... [18:27:41]Read from MH i2c: E2 0E 00 27 0B 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 95 [18:27:41]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [18:27:41]wFMCommunicate OK [18:27:41]SAM_PROTO_GetShiftState done [18:27:41]FM_GetShiftState done [18:27:41]req_shift_opened done [18:27:41]requested_item shift.open_date is exist - process it [18:27:41]req_shift_open_date [18:27:41]req_shift_open_date done [18:27:41]produce_requested_data done [18:27:41]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30439,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [18:27:41]process_action_free close_receipt [18:27:41]json_value_free [18:27:41]json_value_free done [18:27:41]process_json_proto returns [18:27:41]Send response to host [18:27:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30439,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [18:27:41]free response buf [18:27:41]execute_script done [18:27:41]execute_script returns [18:27:41]free content buf [18:27:41]Sock 7.Close socket [18:27:41]Sock 7.Thread stoped [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:05]OFD Sender: No OFD packet to send [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]OFD Sender: No OFD packet to send [18:32:20]OFD Sender: No OFD packet to send [18:32:25]OFD Sender: No OFD packet to send [18:32:30]OFD Sender: No OFD packet to send [18:32:35]OFD Sender: No OFD packet to send [18:32:40]OFD Sender: No OFD packet to send [18:32:45]OFD Sender: No OFD packet to send [18:32:50]OFD Sender: No OFD packet to send [18:32:55]OFD Sender: No OFD packet to send [18:33:00]OFD Sender: No OFD packet to send [18:33:05]OFD Sender: No OFD packet to send [18:33:10]OFD Sender: No OFD packet to send [18:33:15]OFD Sender: No OFD packet to send [18:33:20]OFD Sender: No OFD packet to send [18:33:25]OFD Sender: No OFD packet to send [18:33:30]OFD Sender: No OFD packet to send [18:33:35]OFD Sender: No OFD packet to send [18:33:40]OFD Sender: No OFD packet to send [18:33:45]OFD Sender: No OFD packet to send [18:33:50]OFD Sender: No OFD packet to send [18:33:55]OFD Sender: No OFD packet to send [18:34:00]OFD Sender: No OFD packet to send [18:34:05]OFD Sender: No OFD packet to send [18:34:10]OFD Sender: No OFD packet to send [18:34:15]OFD Sender: No OFD packet to send [18:34:20]OFD Sender: No OFD packet to send [18:34:25]OFD Sender: No OFD packet to send [18:34:30]OFD Sender: No OFD packet to send [18:34:35]OFD Sender: No OFD packet to send [18:34:40]OFD Sender: No OFD packet to send [18:34:45]OFD Sender: No OFD packet to send [18:34:50]OFD Sender: No OFD packet to send [18:34:55]OFD Sender: No OFD packet to send [18:35:00]OFD Sender: No OFD packet to send [18:35:05]OFD Sender: No OFD packet to send [18:35:10]OFD Sender: No OFD packet to send [18:35:15]OFD Sender: No OFD packet to send [18:35:20]OFD Sender: No OFD packet to send [18:35:25]OFD Sender: No OFD packet to send [18:35:30]OFD Sender: No OFD packet to send [18:35:35]OFD Sender: No OFD packet to send [18:35:40]OFD Sender: No OFD packet to send [18:35:45]OFD Sender: No OFD packet to send [18:35:50]OFD Sender: No OFD packet to send [18:35:55]OFD Sender: No OFD packet to send [18:36:00]OFD Sender: No OFD packet to send [18:36:05]OFD Sender: No OFD packet to send [18:36:10]OFD Sender: No OFD packet to send [18:36:15]OFD Sender: No OFD packet to send [18:36:20]OFD Sender: No OFD packet to send [18:36:25]OFD Sender: No OFD packet to send [18:36:30]OFD Sender: No OFD packet to send [18:36:35]OFD Sender: No OFD packet to send [18:36:40]OFD Sender: No OFD packet to send [18:36:45]OFD Sender: No OFD packet to send [18:36:50]OFD Sender: No OFD packet to send [18:36:55]OFD Sender: No OFD packet to send [18:37:00]OFD Sender: No OFD packet to send [18:37:05]OFD Sender: No OFD packet to send [18:37:10]OFD Sender: No OFD packet to send [18:37:13]accept exits with 9 [18:37:13]New connection [18:37:13]New thread 3067489636 created [18:37:13]Thread 3067346276 joined [18:37:13]Waiting for new connection... [18:37:13] Sock 9.Parse request [18:37:13]Sock 9.Check first char [18:37:13]Sock 9.First char is OK [18:37:13]request: POST /json_proto HTTP/1.0 [18:37:13]Method: POST [18:37:13]URL: /json_proto [18:37:14]Method is POST - this is cgi request [18:37:14]url: /json_proto [18:37:14]query_string will be loaded in cgi processing [18:37:14]execute_cgi json_proto POST (null) [18:37:14]execute_cgi path=json_proto method=POST [18:37:14]POST find Content-Length [18:37:14]Host: 172.17.51.3:8080 [18:37:14]Content-Length: 682 [18:37:14]Content-Type: application/json [18:37:14] [18:37:14]POST finish read [18:37:14]Found Content-Length = 682 [18:37:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342842", "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" ] } } [18:37:14]execute_script... [18:37: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)342842", "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" ] } } [18:37:14]POST & json_proto [18:37:14]process_json_proto [18:37:14]json parsed OK: [18:37:14]protocol is kg_v1.0 [18:37:14]action value=close_receipt [18:37:14]process_action close_receipt [18:37:14]cmd_close_receipt [18:37:14]MH_GetDate [18:37:14]Write to MH i2c: F0 00 00 28 0B 22 [18:37:14]Write i2c OK [18:37:14]MH_I2C_Read... [18:37:14]Read from MH i2c: F0 [18:37:14]MH_I2C_Read... [18:37:14]Read from MH i2c: F0 09 00 [18:37:14]MH_I2C_Read... [18:37:14]Read from MH i2c: F0 09 00 28 0B 00 DA 4D 15 67 04 C1 95 66 8E [18:37:14]GetLastDocTimeStamp 1729448858 [18:37:14]current date 1729449434 [18:37:14]FM_GetShiftState [18:37:14]SAM_PROTO_GetShiftState [18:37:14]wFMCommunicate request_size=4 [18:37:14]MH_SAM_APDU [18:37:14]CAPDU: 80 13 01 00 [18:37:14]Write to MH i2c: E2 08 00 29 0B 80 13 01 00 00 00 00 00 B1 [18:37:14]Write i2c OK [18:37:14]MH_I2C_Read... [18:37:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:37:14]Read from MH i2c: E2 [18:37:14]MH_I2C_Read... [18:37:14]Read from MH i2c: E2 0E 00 [18:37:14]MH_I2C_Read... [18:37:14]Read from MH i2c: E2 0E 00 29 0B 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 97 [18:37:14]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [18:37:14]wFMCommunicate OK [18:37:14]SAM_PROTO_GetShiftState done [18:37:14]FM_GetShiftState done [18:37:14]opened in 1729384718 [18:37:14]opened+sec_in_day 1729471118 [18:37:14]quantity*price = 100015 [18:37:14]sum+1 = 100017 [18:37: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 СНО: Общий режим Чек 222 20.10.2024 18:37 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30440 ФПД: 117162936260897 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T183714&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30440&fm=117162936260897&tin=02508201610067®Number=0000000000186857&sum=100000 [18:37:15]StoreToDocumentArchive [18:37:15]shift 114 fd 30440 [18:37:15]save to /storage/0114/doc_00030440 [18:37:15]save last doc name /storage/0114/doc_00030440 to /storage/kkm_last_doc_name [18:37:15]save OK [18:37:15]Clear old archive folders... [18:37:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:37:15]tlvbuf is 01DBE690 [18:37:15]SAM_PROTO_ClearQueue [18:37:15]wFMCommunicate request_size=4 [18:37:15]MH_SAM_APDU [18:37:15]CAPDU: 80 09 00 00 [18:37:15]Write to MH i2c: E2 08 00 36 0B 80 09 00 00 00 00 00 00 B3 [18:37:15]Write i2c OK [18:37:15]MH_I2C_Read... [18:37:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:37:15]Read from MH i2c: E2 [18:37:15]MH_I2C_Read... [18:37:15]Read from MH i2c: E2 03 00 [18:37:15]MH_I2C_Read... [18:37:15]Read from MH i2c: E2 03 00 36 0B 00 90 00 B5 [18:37:15]RAPDU: 90 00 [18:37:15]wFMCommunicate OK [18:37:15]SAM_PROTO_ClearQueue done [18:37:15]KKMCreateOFDPacket [18:37:15]OFDProtocolAddRootSTLVToBuf [18:37:15]FM_MakeSignedData [18:37:15]FM_MakeSignedData [18:37:15]SAM_PROTO_SignData [18:37:15]wFMCommunicate request_size=4 [18:37:15]MH_SAM_APDU [18:37:15]CAPDU: 80 0D 01 02 [18:37:15]Write to MH i2c: E2 08 00 37 0B 80 0D 01 02 00 00 00 00 BB [18:37:15]Write i2c OK [18:37:15]MH_I2C_Read... [18:37:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:37:15]Read from MH i2c: E2 [18:37:15]MH_I2C_Read... [18:37:15]Read from MH i2c: E2 03 00 [18:37:15]MH_I2C_Read... [18:37:15]Read from MH i2c: E2 03 00 37 0B 00 90 00 B6 [18:37:15]RAPDU: 90 00 [18:37:15]wFMCommunicate OK [18:37:15]wFMCommunicate request_size=255 [18:37:15]MH_SAM_APDU [18:37: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 DE 00 00 00 F4 03 04 00 DA 4D 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 6A [18:37:15]Write to MH i2c: E2 02 01 38 0B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 DE 00 00 00 F4 03 04 00 DA 4D 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 6A 00 00 01 [18:37:15]Write i2c OK [18:37:15]MH_I2C_Read... [18:37:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:37:15]Read from MH i2c: E2 [18:37:15]MH_I2C_Read... [18:37:15]Read from MH i2c: E2 03 00 [18:37:15]MH_I2C_Read... [18:37:15]Read from MH i2c: E2 03 00 38 0B 00 90 00 B7 [18:37:15]RAPDU: 90 00 [18:37:15]wFMCommunicate OK [18:37:15]wFMCommunicate request_size=10 [18:37:15]MH_SAM_APDU [18:37:15]CAPDU: 80 0D 02 02 05 8F 1F 32 59 21 [18:37:15]Write to MH i2c: E2 0D 00 39 0B 80 0D 02 02 05 00 8F 1F 32 59 21 00 00 22 [18:37:15]Write i2c OK [18:37:15]MH_I2C_Read... [18:37:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:37:15]Read from MH i2c: E2 [18:37:15]MH_I2C_Read... [18:37:15]Read from MH i2c: E2 03 00 [18:37:15]MH_I2C_Read... [18:37:15]Read from MH i2c: E2 03 00 39 0B 00 90 00 B8 [18:37:15]RAPDU: 90 00 [18:37:15]wFMCommunicate OK [18:37:15]wFMCommunicate request_size=4 [18:37:15]MH_SAM_APDU [18:37:15]CAPDU: 80 0D 03 02 [18:37:15]Write to MH i2c: E2 08 00 3A 0B 80 0D 03 02 00 00 00 00 C0 [18:37:15]Write i2c OK [18:37:15]MH_I2C_Read... [18:37:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:37:15]Read from MH i2c: E2 [18:37:15]MH_I2C_Read... [18:37:15]Read from MH i2c: E2 0B 00 [18:37:15]MH_I2C_Read... [18:37:15]Read from MH i2c: E2 0B 00 3A 0B 00 69 10 65 45 05 7D 06 08 90 00 74 [18:37:15]RAPDU: 69 10 65 45 05 7D 06 08 90 00 [18:37:15]wFMCommunicate OK [18:37:15]SAM_PROTO_SignData done [18:37:15]FM_MakeSignedData done [18:37:15]CreateOFDProtocolMessage [18:37:15]wFMCommunicate request_size=4 [18:37:15]MH_SAM_APDU [18:37:15]CAPDU: 80 11 00 00 [18:37:15]Write to MH i2c: E2 08 00 3B 0B 80 11 00 00 00 00 00 00 C0 [18:37:15]Write i2c OK [18:37:15]MH_I2C_Read... [18:37:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:37:15]Read from MH i2c: E2 [18:37:15]MH_I2C_Read... [18:37:15]Read from MH i2c: E2 17 00 [18:37:15]MH_I2C_Read... [18:37:15]Read from MH i2c: E2 17 00 3B 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 0E [18:37:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [18:37:15]wFMCommunicate OK [18:37:15]CreateOFDProtocolMessage done [18:37:15]OFDSenderStorePacket 30440 [18:37:15]StoreOFDPacket docnum=30440 [18:37: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 ED 1D 07 01 44 C2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 DE 00 00 00 F4 03 04 00 DA 4D 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 6A 8F 1F 32 59 21 69 10 65 45 05 7D 06 08 [18:37:15]CheckFolder [18:37:15]dirname=/storage/ofd_packets [18:37:15]CheckFolder done [18:37:15]ProducePacketName [18:37:15]name=ofd_packets/00030440 [18:37:15]NVStorageSaveData ofd_packets/00030440 [18:37:15]File name is /storage/ofd_packets/00030440 [18:37:15]Write 301 bytes [18:37:15]NVStorageSaveData done [18:37:15]OFDSenderStorePacket done [18:37:15]KKMCreateOFDPacket done [18:37:15]NVStorageSaveData kkm_last_timestamp [18:37:15]File name is /storage/kkm_last_timestamp [18:37:15]Write 4 bytes [18:37:15]NVStorageSaveData done [18:37:15]ExternCall_PrintAddStr [18:37:15]wPrintStart [18:37:15]Write to MH i2c: 01 00 00 3C 0B 47 [18:37:15]Write i2c OK [18:37:15]MH_I2C_Read... [18:37:15]Read from MH i2c: 01 [18:37:15]MH_I2C_Read... [18:37:15]Read from MH i2c: 01 07 00 [18:37:15]MH_I2C_Read... [18:37:15]Read from MH i2c: 01 07 00 3C 0B 00 00 00 00 00 FF 0F 5C [18:37:15]RasterBufferAndPrint [18:37:15]line Счет N : (1)342842 [18:37:15]line ИНН: 02508201610067 [18:37:15]line Контрольно-Кассовый Чек [18:37:15]line ПРОДАЖА [18:37:15]line ТРК (МРК, ГНК) : 33 [18:37:15]line Товар: 2710124130 [18:37:15]line Аи-92-К-2 [18:37:15]line 14.950 * 66.90 [18:37:15]line = 1000.16 [18:37:15]line НДС 12% НСП 1% [18:37:15]line > о реализуемом товаре [18:37:15]line ОКРУГЛЕНИЕ: -0.16 [18:37:15]line ИТОГО: 1000.00 [18:37:15]line Внесено: 1000.00 [18:37:15]line СДАЧА: 0.00 [18:37:15]line НСП 1% : 8.85 [18:37:15]line НДС 12% : 106.21 [18:37:15]line Наличными: 1000.00 [18:37:15]line Безнал.: 0.00 [18:37:15]line Место: АЗС № 78 "Партнер Нефть" [18:37:15]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [18:37:15]line СНО: Общий режим [18:37:15]line Чек 222 20.10.2024 18:37 [18:37:15]line Смена: 114 ФФД: 1.0 [18:37:15]line ЗНМ: 0300000137 [18:37:15]line РНМ: 0000000000186857 [18:37:15]line Версия ККМ: v1.0 [18:37:15]line ФМ: 0000000002094219 [18:37:15]line ФД: 30440 [18:37:15]line ФПД: 117162936260897 [18:37:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T183714&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30440&fm=117162936260897&tin=02508201610067®Number=0000000000186857&sum=100000 [18:37:16]OFD Sender: Processing packet 30440 [packets to send 10, broken 9] [18:37:16]ProducePacketName [18:37:16]name=ofd_packets/00030440 [18:37:16]OFD Sender: To server: pG, [18:37:16]CommunicateWithHost lk.salyk.kg:30040 [18:37:16]ConnectInit lk.salyk.kg [18:37:16]written 0, free lines is 4095 [18:37:16]Connected sock=10 [18:37: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 ED 1D 07 01 44 C2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 DE 00 00 00 F4 03 04 00 DA 4D 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 6A 8F 1F 32 59 21 69 10 65 45 05 7D 06 08 [18:37: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 33 9F 47 00 A3 B0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 E8 76 00 00 F4 03 04 00 5D F8 14 67 B6 04 01 00 00 85 AE 3F 37 31 8A 81 FC [18:37:16]CommunicateWithHost err = 0 [18:37:16]CheckOFDResponse [18:37:16]1017 (14) - 77093643461234 [18:37:16]1041 (16) - 0000000002094219 [18:37:16]1040 (4) - 30440 [18:37:16]1012 (4) - 20.10.2024 12:32 [18:37:16]1206 (1) - 0 [18:37:16]OFD Sender: Remove packet 30440 [18:37:16]ProducePacketName [18:37:16]name=ofd_packets/00030440 [18:37:16]NVStorageDeleteData [18:37:16]Write to MH i2c: 01 00 00 67 0B 72 [18:37:16]Write i2c OK [18:37:16]MH_I2C_Read... [18:37:16]Read from MH i2c: 01 [18:37:16]MH_I2C_Read... [18:37:16]Read from MH i2c: 01 07 00 [18:37:16]MH_I2C_Read... [18:37:16]Read from MH i2c: 01 07 00 67 0B 00 00 00 00 00 F5 0C 7A [18:37:16]RasterBufferAndPrint [18:37:16]line [18:37:16]line [18:37:16]line [18:37:16]line [18:37:16]line [18:37:16]written 0, free lines is 3323 [18:37:16]MH_Cut [18:37:16]Write to MH i2c: D1 01 00 6E 0B 01 4B [18:37:16]Write i2c OK [18:37:16]MH_I2C_Read... [18:37:16]Read from MH i2c: D1 [18:37:16]MH_I2C_Read... [18:37:16]Read from MH i2c: D1 01 00 [18:37:16]MH_I2C_Read... [18:37:16]Read from MH i2c: D1 01 00 6E 0B 00 4A [18:37:16]Write to MH i2c: 01 00 00 6F 0B 7A [18:37:16]Write i2c OK [18:37:16]MH_I2C_Read... [18:37:16]OFD Sender: No OFD packet to send [18:37:17]*** Cut start [18:37:17]*** Partial cut [18:37:17]*** CUTSNS_PIN = 1 [18:37:17]*** CUTSNS_PIN = 0 [18:37:17]*** Brake cut motor [18:37:17]Read from MH i2c: 01 [18:37:17]MH_I2C_Read... [18:37:17]*** Stop cut motor [18:37:17]*** Cut end [18:37:17]Read from MH i2c: 01 07 00 [18:37:17]MH_I2C_Read... [18:37:17]Read from MH i2c: 01 07 00 6F 0B 00 00 00 00 00 FF 0F 8F [18:37:17]process_action close_receipt done [18:37:17]requested_data is exist [18:37:17]produce_requested_data [18:37:17]requested_item fm.sn is exist - process it [18:37:17]wFMCommunicate request_size=4 [18:37:17]MH_SAM_APDU [18:37:17]CAPDU: 80 11 00 00 [18:37:17]Write to MH i2c: E2 08 00 70 0B 80 11 00 00 00 00 00 00 F5 [18:37:17]Write i2c OK [18:37:17]MH_I2C_Read... [18:37:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:37:17]Read from MH i2c: E2 [18:37:17]MH_I2C_Read... [18:37:17]Read from MH i2c: E2 17 00 [18:37:17]MH_I2C_Read... [18:37:17]Read from MH i2c: E2 17 00 70 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 43 [18:37:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [18:37:17]wFMCommunicate OK [18:37:17]requested_item fd.num is exist - process it [18:37:17]SAM_PROTO_GetFieldsCounters [18:37:17]wFMCommunicate request_size=4 [18:37:17]MH_SAM_APDU [18:37:17]CAPDU: 80 13 00 00 [18:37:17]Write to MH i2c: E2 08 00 71 0B 80 13 00 00 00 00 00 00 F8 [18:37:17]Write i2c OK [18:37:17]MH_I2C_Read... [18:37:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:37:17]Read from MH i2c: E2 [18:37:17]MH_I2C_Read... [18:37:17]Read from MH i2c: E2 62 00 [18:37:17]MH_I2C_Read... [18:37:17]Read from MH i2c: E2 62 00 71 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 88 [18:37: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 E8 76 00 00 0E 04 04 00 72 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 [18:37:17]wFMCommunicate OK [18:37:17]SAM_PROTO_GetFieldsCounters done [18:37:17]requested_item shift.num is exist - process it [18:37:17]requested_item shift.opened is exist - process it [18:37:17]req_shift_opened [18:37:17]FM_GetShiftState [18:37:17]SAM_PROTO_GetShiftState [18:37:17]wFMCommunicate request_size=4 [18:37:17]MH_SAM_APDU [18:37:17]CAPDU: 80 13 01 00 [18:37:17]Write to MH i2c: E2 08 00 72 0B 80 13 01 00 00 00 00 00 FA [18:37:17]Write i2c OK [18:37:17]MH_I2C_Read... [18:37:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:37:18]Read from MH i2c: E2 [18:37:18]MH_I2C_Read... [18:37:18]Read from MH i2c: E2 0E 00 [18:37:18]MH_I2C_Read... [18:37:18]Read from MH i2c: E2 0E 00 72 0B 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 E0 [18:37:18]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [18:37:18]wFMCommunicate OK [18:37:18]SAM_PROTO_GetShiftState done [18:37:18]FM_GetShiftState done [18:37:18]req_shift_opened done [18:37:18]requested_item shift.open_date is exist - process it [18:37:18]req_shift_open_date [18:37:18]req_shift_open_date done [18:37:18]produce_requested_data done [18:37:18]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30440,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [18:37:18]process_action_free close_receipt [18:37:18]json_value_free [18:37:18]json_value_free done [18:37:18]process_json_proto returns [18:37:18]Send response to host [18:37:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30440,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [18:37:18]free response buf [18:37:18]execute_script done [18:37:18]execute_script returns [18:37:18]free content buf [18:37:18]Sock 9.Close socket [18:37:18]Sock 9.Thread stoped [18:37:21]OFD Sender: No OFD packet to send [18:37:26]OFD Sender: No OFD packet to send [18:37:31]OFD Sender: No OFD packet to send [18:37:36]OFD Sender: No OFD packet to send [18:37:41]OFD Sender: No OFD packet to send [18:37:46]OFD Sender: No OFD packet to send [18:37:51]OFD Sender: No OFD packet to send [18:37:56]OFD Sender: No OFD packet to send [18:38:01]OFD Sender: No OFD packet to send [18:38:06]OFD Sender: No OFD packet to send [18:38:11]OFD Sender: No OFD packet to send [18:38:16]OFD Sender: No OFD packet to send [18:38:21]OFD Sender: No OFD packet to send [18:38:26]OFD Sender: No OFD packet to send [18:38:31]OFD Sender: No OFD packet to send [18:38:36]OFD Sender: No OFD packet to send [18:38:41]OFD Sender: No OFD packet to send [18:38:46]OFD Sender: No OFD packet to send [18:38:51]OFD Sender: No OFD packet to send [18:38:56]OFD Sender: No OFD packet to send [18:39:01]OFD Sender: No OFD packet to send [18:39:06]OFD Sender: No OFD packet to send [18:39:11]OFD Sender: No OFD packet to send [18:39:16]OFD Sender: No OFD packet to send [18:39:21]OFD Sender: No OFD packet to send [18:39:26]OFD Sender: No OFD packet to send [18:39:31]OFD Sender: No OFD packet to send [18:39:36]OFD Sender: No OFD packet to send [18:39:41]OFD Sender: No OFD packet to send [18:39:46]OFD Sender: No OFD packet to send [18:39:51]OFD Sender: No OFD packet to send [18:39:56]OFD Sender: No OFD packet to send [18:40:01]OFD Sender: No OFD packet to send [18:40:06]OFD Sender: No OFD packet to send [18:40:11]OFD Sender: No OFD packet to send [18:40:16]OFD Sender: No OFD packet to send [18:40:21]OFD Sender: No OFD packet to send [18:40:26]OFD Sender: No OFD packet to send [18:40:32]OFD Sender: No OFD packet to send [18:40:37]OFD Sender: No OFD packet to send [18:40:42]OFD Sender: No OFD packet to send [18:40:47]OFD Sender: No OFD packet to send [18:40:52]OFD Sender: No OFD packet to send [18:40:57]OFD Sender: No OFD packet to send [18:41:02]OFD Sender: No OFD packet to send [18:41:07]OFD Sender: No OFD packet to send [18:41:12]OFD Sender: No OFD packet to send [18:41:17]OFD Sender: No OFD packet to send [18:41:22]OFD Sender: No OFD packet to send [18:41:27]OFD Sender: No OFD packet to send [18:41:32]OFD Sender: No OFD packet to send [18:41:37]OFD Sender: No OFD packet to send [18:41:42]OFD Sender: No OFD packet to send [18:41:47]OFD Sender: No OFD packet to send [18:41:52]OFD Sender: No OFD packet to send [18:41:57]OFD Sender: No OFD packet to send [18:42:02]OFD Sender: No OFD packet to send [18:42:07]OFD Sender: No OFD packet to send [18:42:12]OFD Sender: No OFD packet to send [18:42:17]OFD Sender: No OFD packet to send [18:42:22]OFD Sender: No OFD packet to send [18:42:27]OFD Sender: No OFD packet to send [18:42:32]OFD Sender: No OFD packet to send [18:42:37]OFD Sender: No OFD packet to send [18:42:42]OFD Sender: No OFD packet to send [18:42:47]OFD Sender: No OFD packet to send [18:42:52]OFD Sender: No OFD packet to send [18:42:57]OFD Sender: No OFD packet to send [18:43:02]OFD Sender: No OFD packet to send [18:43:07]OFD Sender: No OFD packet to send [18:43:12]OFD Sender: No OFD packet to send [18:43:17]OFD Sender: No OFD packet to send [18:43:22]OFD Sender: No OFD packet to send [18:43:27]OFD Sender: No OFD packet to send [18:43:32]OFD Sender: No OFD packet to send [18:43:37]OFD Sender: No OFD packet to send [18:43:38]accept exits with 7 [18:43:38]New connection [18:43:38]New thread 3067346276 created [18:43:38]Thread 3067489636 joined [18:43:38]Waiting for new connection... [18:43:38] Sock 7.Parse request [18:43:38]Sock 7.Check first char [18:43:38]Sock 7.First char is OK [18:43:38]request: POST /json_proto HTTP/1.0 [18:43:38]Method: POST [18:43:38]URL: /json_proto [18:43:38]Method is POST - this is cgi request [18:43:38]url: /json_proto [18:43:38]query_string will be loaded in cgi processing [18:43:38]execute_cgi json_proto POST (null) [18:43:38]execute_cgi path=json_proto method=POST [18:43:38]POST find Content-Length [18:43:38]Host: 172.17.51.3:8080 [18:43:38]Content-Length: 840 [18:43:38]Content-Type: application/json [18:43:38] [18:43:38]POST finish read [18:43:38]Found Content-Length = 840 [18:43:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342843", "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" : 9.440, "sum" : 700.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 700.45 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:43:38]execute_script... [18:43: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)342843", "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" : 9.440, "sum" : 700.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 700.45 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:43:38]POST & json_proto [18:43:38]process_json_proto [18:43:38]json parsed OK: [18:43:38]protocol is kg_v1.0 [18:43:38]action value=close_receipt [18:43:38]process_action close_receipt [18:43:38]cmd_close_receipt [18:43:38]MH_GetDate [18:43:38]Write to MH i2c: F0 00 00 73 0B 6D [18:43:38]Write i2c OK [18:43:38]MH_I2C_Read... [18:43:38]Read from MH i2c: F0 [18:43:38]MH_I2C_Read... [18:43:38]Read from MH i2c: F0 09 00 [18:43:38]MH_I2C_Read... [18:43:38]Read from MH i2c: F0 09 00 73 0B 00 5B 4F 15 67 04 C1 95 66 5C [18:43:38]GetLastDocTimeStamp 1729449434 [18:43:38]current date 1729449819 [18:43:38]FM_GetShiftState [18:43:38]SAM_PROTO_GetShiftState [18:43:38]wFMCommunicate request_size=4 [18:43:38]MH_SAM_APDU [18:43:38]CAPDU: 80 13 01 00 [18:43:38]Write to MH i2c: E2 08 00 74 0B 80 13 01 00 00 00 00 00 FC [18:43:38]Write i2c OK [18:43:38]MH_I2C_Read... [18:43:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:43:38]Read from MH i2c: E2 [18:43:38]MH_I2C_Read... [18:43:38]Read from MH i2c: E2 0E 00 [18:43:38]MH_I2C_Read... [18:43:38]Read from MH i2c: E2 0E 00 74 0B 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 E2 [18:43:38]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [18:43:38]wFMCommunicate OK [18:43:38]SAM_PROTO_GetShiftState done [18:43:38]FM_GetShiftState done [18:43:38]opened in 1729384718 [18:43:38]opened+sec_in_day 1729471118 [18:43:38]quantity*price = 70044 [18:43:38]sum+1 = 70046 [18:43:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 700.45 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 0.00 Безнал.: 700.45 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 223 20.10.2024 18:43 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Платежная система: АКБ Кыргызстан ФМ: 0000000002094219 ФД: 30441 ФПД: 261963375619786 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T184339&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30441&fm=261963375619786&tin=02508201610067®Number=0000000000186857&sum=70045 [18:43:39]StoreToDocumentArchive [18:43:39]shift 114 fd 30441 [18:43:39]save to /storage/0114/doc_00030441 [18:43:39]save last doc name /storage/0114/doc_00030441 to /storage/kkm_last_doc_name [18:43:39]save OK [18:43:39]Clear old archive folders... [18:43:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:43:39]tlvbuf is B6F443B0 [18:43:39]SAM_PROTO_ClearQueue [18:43:39]wFMCommunicate request_size=4 [18:43:39]MH_SAM_APDU [18:43:39]CAPDU: 80 09 00 00 [18:43:39]Write to MH i2c: E2 08 00 81 0B 80 09 00 00 00 00 00 00 FE [18:43:39]Write i2c OK [18:43:39]MH_I2C_Read... [18:43:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:43:39]Read from MH i2c: E2 [18:43:39]MH_I2C_Read... [18:43:39]Read from MH i2c: E2 03 00 [18:43:39]MH_I2C_Read... [18:43:39]Read from MH i2c: E2 03 00 81 0B 00 90 00 00 [18:43:39]RAPDU: 90 00 [18:43:39]wFMCommunicate OK [18:43:39]SAM_PROTO_ClearQueue done [18:43:39]KKMCreateOFDPacket [18:43:39]OFDProtocolAddRootSTLVToBuf [18:43:39]FM_MakeSignedData [18:43:39]FM_MakeSignedData [18:43:39]SAM_PROTO_SignData [18:43:39]wFMCommunicate request_size=4 [18:43:39]MH_SAM_APDU [18:43:39]CAPDU: 80 0D 01 02 [18:43:39]Write to MH i2c: E2 08 00 82 0B 80 0D 01 02 00 00 00 00 06 [18:43:39]Write i2c OK [18:43:39]MH_I2C_Read... [18:43:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:43:39]Read from MH i2c: E2 [18:43:39]MH_I2C_Read... [18:43:39]Read from MH i2c: E2 03 00 [18:43:39]MH_I2C_Read... [18:43:39]Read from MH i2c: E2 03 00 82 0B 00 90 00 01 [18:43:39]RAPDU: 90 00 [18:43:39]wFMCommunicate OK [18:43:39]wFMCommunicate request_size=255 [18:43:39]MH_SAM_APDU [18:43: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 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 9D 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 9D 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 5B 4F 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 EE [18:43:39]Write to MH i2c: E2 02 01 83 0B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 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 9D 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 9D 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 5B 4F 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 EE 00 00 9D [18:43:39]Write i2c OK [18:43:39]MH_I2C_Read... [18:43:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:43:40]Read from MH i2c: E2 [18:43:40]MH_I2C_Read... [18:43:40]Read from MH i2c: E2 03 00 [18:43:40]MH_I2C_Read... [18:43:40]Read from MH i2c: E2 03 00 83 0B 00 90 00 02 [18:43:40]RAPDU: 90 00 [18:43:40]wFMCommunicate OK [18:43:40]wFMCommunicate request_size=10 [18:43:40]MH_SAM_APDU [18:43:40]CAPDU: 80 0D 02 02 05 41 19 F2 AE CA [18:43:40]Write to MH i2c: E2 0D 00 84 0B 80 0D 02 02 05 00 41 19 F2 AE CA 00 00 D7 [18:43:40]Write i2c OK [18:43:40]MH_I2C_Read... [18:43:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:43:40]Read from MH i2c: E2 [18:43:40]MH_I2C_Read... [18:43:40]Read from MH i2c: E2 03 00 [18:43:40]MH_I2C_Read... [18:43:40]Read from MH i2c: E2 03 00 84 0B 00 90 00 03 [18:43:40]RAPDU: 90 00 [18:43:40]wFMCommunicate OK [18:43:40]wFMCommunicate request_size=4 [18:43:40]MH_SAM_APDU [18:43:40]CAPDU: 80 0D 03 02 [18:43:40]Write to MH i2c: E2 08 00 85 0B 80 0D 03 02 00 00 00 00 0B [18:43:40]Write i2c OK [18:43:40]MH_I2C_Read... [18:43:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:43:40]Read from MH i2c: E2 [18:43:40]MH_I2C_Read... [18:43:40]Read from MH i2c: E2 0B 00 [18:43:40]MH_I2C_Read... [18:43:40]Read from MH i2c: E2 0B 00 85 0B 00 E7 05 75 C3 2A 0E 5A 01 90 00 C3 [18:43:40]RAPDU: E7 05 75 C3 2A 0E 5A 01 90 00 [18:43:40]wFMCommunicate OK [18:43:40]SAM_PROTO_SignData done [18:43:40]FM_MakeSignedData done [18:43:40]CreateOFDProtocolMessage [18:43:40]wFMCommunicate request_size=4 [18:43:40]MH_SAM_APDU [18:43:40]CAPDU: 80 11 00 00 [18:43:40]Write to MH i2c: E2 08 00 86 0B 80 11 00 00 00 00 00 00 0B [18:43:40]Write i2c OK [18:43:40]MH_I2C_Read... [18:43:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:43:40]Read from MH i2c: E2 [18:43:40]MH_I2C_Read... [18:43:40]Read from MH i2c: E2 17 00 [18:43:40]MH_I2C_Read... [18:43:40]Read from MH i2c: E2 17 00 86 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 59 [18:43: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:43:40]wFMCommunicate OK [18:43:40]CreateOFDProtocolMessage done [18:43:40]OFDSenderStorePacket 30441 [18:43:40]StoreOFDPacket docnum=30441 [18:43: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 F4 15 07 01 7D 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 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 9D 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 9D 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 5B 4F 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 EE 41 19 F2 AE CA E7 05 75 C3 2A 0E 5A 01 [18:43:40]CheckFolder [18:43:40]dirname=/storage/ofd_packets [18:43:40]CheckFolder done [18:43:40]ProducePacketName [18:43:40]name=ofd_packets/00030441 [18:43:40]NVStorageSaveData ofd_packets/00030441 [18:43:40]File name is /storage/ofd_packets/00030441 [18:43:40]Write 301 bytes [18:43:40]NVStorageSaveData done [18:43:40]OFDSenderStorePacket done [18:43:40]KKMCreateOFDPacket done [18:43:40]NVStorageSaveData kkm_last_timestamp [18:43:40]File name is /storage/kkm_last_timestamp [18:43:40]Write 4 bytes [18:43:40]NVStorageSaveData done [18:43:40]ExternCall_PrintAddStr [18:43:40]wPrintStart [18:43:40]Write to MH i2c: 01 00 00 87 0B 92 [18:43:40]Write i2c OK [18:43:40]MH_I2C_Read... [18:43:40]Read from MH i2c: 01 [18:43:40]MH_I2C_Read... [18:43:40]Read from MH i2c: 01 07 00 [18:43:40]MH_I2C_Read... [18:43:40]Read from MH i2c: 01 07 00 87 0B 00 00 00 00 00 FF 0F A7 [18:43:40]RasterBufferAndPrint [18:43:40]line Счет N : (1)342843 [18:43:40]line ИНН: 02508201610067 [18:43:40]line Контрольно-Кассовый Чек [18:43:40]line ПРОДАЖА [18:43:40]line ТРК (МРК, ГНК) : 52 [18:43:40]line Товар: 2710124500 [18:43:40]line Аи-95-К-3 [18:43:40]line 9.440 * 74.20 [18:43:40]line = 700.45 [18:43:40]line НДС 12% НСП 1% [18:43:40]line > о реализуемом товаре [18:43:40]line ИТОГО: 700.45 [18:43:40]line НСП 1% : 6.20 [18:43:40]line НДС 12% : 74.38 [18:43:40]line Наличными: 0.00 [18:43:40]line Безнал.: 700.45 [18:43:40]line Место: АЗС № 78 "Партнер Нефть" [18:43:40]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [18:43:40]line СНО: Общий режим [18:43:40]line Чек 223 20.10.2024 18:43 [18:43:40]line Смена: 114 ФФД: 1.0 [18:43:40]line ЗНМ: 0300000137 [18:43:40]line РНМ: 0000000000186857 [18:43:40]line Версия ККМ: v1.0 [18:43:40]line Платежная система: АКБ Кыргызстан [18:43:40]line ФМ: 0000000002094219 [18:43:40]line ФД: 30441 [18:43:40]line ФПД: 261963375619786 [18:43:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T184339&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30441&fm=261963375619786&tin=02508201610067®Number=0000000000186857&sum=70045 [18:43:40]OFD Sender: Processing packet 30441 [packets to send 10, broken 9] [18:43:40]ProducePacketName [18:43:40]name=ofd_packets/00030441 [18:43:40]OFD Sender: To server: pG, [18:43:40]CommunicateWithHost lk.salyk.kg:30040 [18:43:40]ConnectInit lk.salyk.kg [18:43:40]written 0, free lines is 4095 [18:43:40]Connected sock=10 [18:43: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 F4 15 07 01 7D 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 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 9D 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 9D 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 5B 4F 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 EE 41 19 F2 AE CA E7 05 75 C3 2A 0E 5A 01 [18:43: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 0A 6C 47 00 A8 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 E9 76 00 00 F4 03 04 00 DE F9 14 67 B6 04 01 00 00 3C 91 D1 DE A2 A6 7F 34 [18:43:40]CommunicateWithHost err = 0 [18:43:40]CheckOFDResponse [18:43:40]1017 (14) - 77093643461234 [18:43:40]1041 (16) - 0000000002094219 [18:43:40]1040 (4) - 30441 [18:43:40]1012 (4) - 20.10.2024 12:38 [18:43:40]1206 (1) - 0 [18:43:40]OFD Sender: Remove packet 30441 [18:43:40]ProducePacketName [18:43:40]name=ofd_packets/00030441 [18:43:40]NVStorageDeleteData [18:43:40]Write to MH i2c: 01 00 00 B1 0B BC [18:43:40]Write i2c OK [18:43:40]MH_I2C_Read... [18:43:40]Read from MH i2c: 01 [18:43:40]MH_I2C_Read... [18:43:40]Read from MH i2c: 01 07 00 [18:43:40]MH_I2C_Read... [18:43:40]Read from MH i2c: 01 07 00 B1 0B 00 00 00 00 00 F8 0C C7 [18:43:40]RasterBufferAndPrint [18:43:40]line [18:43:40]line [18:43:40]line [18:43:40]line [18:43:40]line [18:43:40]written 0, free lines is 3327 [18:43:40]MH_Cut [18:43:40]Write to MH i2c: D1 01 00 B8 0B 01 95 [18:43:40]Write i2c OK [18:43:40]MH_I2C_Read... [18:43:40]Read from MH i2c: D1 [18:43:40]MH_I2C_Read... [18:43:40]Read from MH i2c: D1 01 00 [18:43:40]MH_I2C_Read... [18:43:40]Read from MH i2c: D1 01 00 B8 0B 00 94 [18:43:40]Write to MH i2c: 01 00 00 B9 0B C4 [18:43:40]Write i2c OK [18:43:40]MH_I2C_Read... [18:43:41]OFD Sender: No OFD packet to send [18:43:41]*** Cut start [18:43:41]*** Partial cut [18:43:41]*** CUTSNS_PIN = 1 [18:43:41]*** CUTSNS_PIN = 0 [18:43:41]*** Brake cut motor [18:43:42]Read from MH i2c: 01 [18:43:42]MH_I2C_Read... [18:43:42]*** Stop cut motor [18:43:42]*** Cut end [18:43:42]Read from MH i2c: 01 07 00 [18:43:42]MH_I2C_Read... [18:43:42]Read from MH i2c: 01 07 00 B9 0B 00 00 00 00 00 FF 0F D9 [18:43:42]process_action close_receipt done [18:43:42]requested_data is exist [18:43:42]produce_requested_data [18:43:42]requested_item fm.sn is exist - process it [18:43:42]wFMCommunicate request_size=4 [18:43:42]MH_SAM_APDU [18:43:42]CAPDU: 80 11 00 00 [18:43:42]Write to MH i2c: E2 08 00 BA 0B 80 11 00 00 00 00 00 00 3F [18:43:42]Write i2c OK [18:43:42]MH_I2C_Read... [18:43:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:43:42]Read from MH i2c: E2 [18:43:42]MH_I2C_Read... [18:43:42]Read from MH i2c: E2 17 00 [18:43:42]MH_I2C_Read... [18:43:42]Read from MH i2c: E2 17 00 BA 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 8D [18:43: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:43:42]wFMCommunicate OK [18:43:42]requested_item fd.num is exist - process it [18:43:42]SAM_PROTO_GetFieldsCounters [18:43:42]wFMCommunicate request_size=4 [18:43:42]MH_SAM_APDU [18:43:42]CAPDU: 80 13 00 00 [18:43:42]Write to MH i2c: E2 08 00 BB 0B 80 13 00 00 00 00 00 00 42 [18:43:42]Write i2c OK [18:43:42]MH_I2C_Read... [18:43:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:43:42]Read from MH i2c: E2 [18:43:42]MH_I2C_Read... [18:43:42]Read from MH i2c: E2 62 00 [18:43:42]MH_I2C_Read... [18:43:42]Read from MH i2c: E2 62 00 BB 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 D6 [18:43: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 E9 76 00 00 0E 04 04 00 72 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 [18:43:42]wFMCommunicate OK [18:43:42]SAM_PROTO_GetFieldsCounters done [18:43:42]requested_item shift.num is exist - process it [18:43:42]requested_item shift.opened is exist - process it [18:43:42]req_shift_opened [18:43:42]FM_GetShiftState [18:43:42]SAM_PROTO_GetShiftState [18:43:42]wFMCommunicate request_size=4 [18:43:42]MH_SAM_APDU [18:43:42]CAPDU: 80 13 01 00 [18:43:42]Write to MH i2c: E2 08 00 BC 0B 80 13 01 00 00 00 00 00 44 [18:43:42]Write i2c OK [18:43:42]MH_I2C_Read... [18:43:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:43:42]Read from MH i2c: E2 [18:43:42]MH_I2C_Read... [18:43:42]Read from MH i2c: E2 0E 00 [18:43:42]MH_I2C_Read... [18:43:42]Read from MH i2c: E2 0E 00 BC 0B 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 2A [18:43:42]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [18:43:42]wFMCommunicate OK [18:43:42]SAM_PROTO_GetShiftState done [18:43:42]FM_GetShiftState done [18:43:42]req_shift_opened done [18:43:42]requested_item shift.open_date is exist - process it [18:43:42]req_shift_open_date [18:43:42]req_shift_open_date done [18:43:42]produce_requested_data done [18:43:42]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30441,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [18:43:42]process_action_free close_receipt [18:43:42]json_value_free [18:43:42]json_value_free done [18:43:42]process_json_proto returns [18:43:42]Send response to host [18:43:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30441,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [18:43:42]free response buf [18:43:42]execute_script done [18:43:42]execute_script returns [18:43:42]free content buf [18:43:42]Sock 7.Close socket [18:43:42]Sock 7.Thread stoped [18:43:46]OFD Sender: No OFD packet to send [18:43:50]accept exits with 9 [18:43:50]New connection [18:43:50]New thread 3067489636 created [18:43:50]Thread 3067346276 joined [18:43:50]Waiting for new connection... [18:43:50] Sock 9.Parse request [18:43:50]Sock 9.Check first char [18:43:50]Sock 9.First char is OK [18:43:50]request: POST /json_proto HTTP/1.0 [18:43:50]Method: POST [18:43:50]URL: /json_proto [18:43:50]Method is POST - this is cgi request [18:43:50]url: /json_proto [18:43:50]query_string will be loaded in cgi processing [18:43:50]execute_cgi json_proto POST (null) [18:43:50]execute_cgi path=json_proto method=POST [18:43:50]POST find Content-Length [18:43:50]Host: 172.17.51.3:8080 [18:43:50]Content-Length: 675 [18:43:50]Content-Type: application/json [18:43:50] [18:43:50]POST finish read [18:43:50]Found Content-Length = 675 [18:43:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342844", "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" : 10.500, "sum" : 800.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:43:50]execute_script... [18:43:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342844", "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" : 10.500, "sum" : 800.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:43:50]POST & json_proto [18:43:50]process_json_proto [18:43:50]json parsed OK: [18:43:50]protocol is kg_v1.0 [18:43:50]action value=close_receipt [18:43:50]process_action close_receipt [18:43:50]cmd_close_receipt [18:43:50]MH_GetDate [18:43:50]Write to MH i2c: F0 00 00 BD 0B B7 [18:43:50]Write i2c OK [18:43:50]MH_I2C_Read... [18:43:50]Read from MH i2c: F0 [18:43:50]MH_I2C_Read... [18:43:50]Read from MH i2c: F0 09 00 [18:43:50]MH_I2C_Read... [18:43:50]Read from MH i2c: F0 09 00 BD 0B 00 66 4F 15 67 04 C1 95 66 B1 [18:43:50]GetLastDocTimeStamp 1729449819 [18:43:50]current date 1729449830 [18:43:50]FM_GetShiftState [18:43:50]SAM_PROTO_GetShiftState [18:43:50]wFMCommunicate request_size=4 [18:43:50]MH_SAM_APDU [18:43:50]CAPDU: 80 13 01 00 [18:43:50]Write to MH i2c: E2 08 00 BE 0B 80 13 01 00 00 00 00 00 46 [18:43:50]Write i2c OK [18:43:50]MH_I2C_Read... [18:43:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:43:50]Read from MH i2c: E2 [18:43:50]MH_I2C_Read... [18:43:50]Read from MH i2c: E2 0E 00 [18:43:50]MH_I2C_Read... [18:43:50]Read from MH i2c: E2 0E 00 BE 0B 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 2C [18:43:50]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [18:43:50]wFMCommunicate OK [18:43:50]SAM_PROTO_GetShiftState done [18:43:50]FM_GetShiftState done [18:43:50]opened in 1729384718 [18:43:50]opened+sec_in_day 1729471118 [18:43:50]quantity*price = 80010 [18:43:50]sum+1 = 80011 [18:43:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 224 20.10.2024 18:43 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30442 ФПД: 194143053046083 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T184351&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30442&fm=194143053046083&tin=02508201610067®Number=0000000000186857&sum=80000 [18:43:51]StoreToDocumentArchive [18:43:51]shift 114 fd 30442 [18:43:51]save to /storage/0114/doc_00030442 [18:43:51]save last doc name /storage/0114/doc_00030442 to /storage/kkm_last_doc_name [18:43:51]save OK [18:43:51]Clear old archive folders... [18:43:51]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:43:51]tlvbuf is 01DE2600 [18:43:51]SAM_PROTO_ClearQueue [18:43:51]wFMCommunicate request_size=4 [18:43:51]MH_SAM_APDU [18:43:51]CAPDU: 80 09 00 00 [18:43:51]Write to MH i2c: E2 08 00 CB 0B 80 09 00 00 00 00 00 00 48 [18:43:51]Write i2c OK [18:43:51]MH_I2C_Read... [18:43:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:43:51]Read from MH i2c: E2 [18:43:51]MH_I2C_Read... [18:43:51]Read from MH i2c: E2 03 00 [18:43:51]MH_I2C_Read... [18:43:51]Read from MH i2c: E2 03 00 CB 0B 00 90 00 4A [18:43:51]RAPDU: 90 00 [18:43:51]wFMCommunicate OK [18:43:51]SAM_PROTO_ClearQueue done [18:43:51]KKMCreateOFDPacket [18:43:51]OFDProtocolAddRootSTLVToBuf [18:43:51]FM_MakeSignedData [18:43:51]FM_MakeSignedData [18:43:51]SAM_PROTO_SignData [18:43:51]wFMCommunicate request_size=4 [18:43:51]MH_SAM_APDU [18:43:51]CAPDU: 80 0D 01 02 [18:43:51]Write to MH i2c: E2 08 00 CC 0B 80 0D 01 02 00 00 00 00 50 [18:43:51]Write i2c OK [18:43:51]MH_I2C_Read... [18:43:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:43:51]Read from MH i2c: E2 [18:43:51]MH_I2C_Read... [18:43:51]Read from MH i2c: E2 03 00 [18:43:51]MH_I2C_Read... [18:43:51]Read from MH i2c: E2 03 00 CC 0B 00 90 00 4B [18:43:51]RAPDU: 90 00 [18:43:51]wFMCommunicate OK [18:43:51]wFMCommunicate request_size=255 [18:43:51]MH_SAM_APDU [18:43:51]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 67 4F 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 B0 92 73 B6 [18:43:51]Write to MH i2c: E2 02 01 CD 0B 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 67 4F 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 B0 92 73 B6 00 00 59 [18:43:51]Write i2c OK [18:43:51]MH_I2C_Read... [18:43:52]Read from MH i2c: E2 [18:43:52]MH_I2C_Read... [18:43:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:43:52]Read from MH i2c: E2 03 00 [18:43:52]MH_I2C_Read... [18:43:52]Read from MH i2c: E2 03 00 CD 0B 00 90 00 4C [18:43:52]RAPDU: 90 00 [18:43:52]wFMCommunicate OK [18:43:52]wFMCommunicate request_size=7 [18:43:52]MH_SAM_APDU [18:43:52]CAPDU: 80 0D 02 02 02 61 43 [18:43:52]Write to MH i2c: E2 0A 00 CE 0B 80 0D 02 02 02 00 61 43 00 00 FB [18:43:52]Write i2c OK [18:43:52]MH_I2C_Read... [18:43:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:43:52]Read from MH i2c: E2 [18:43:52]MH_I2C_Read... [18:43:52]Read from MH i2c: E2 03 00 [18:43:52]MH_I2C_Read... [18:43:52]Read from MH i2c: E2 03 00 CE 0B 00 90 00 4D [18:43:52]RAPDU: 90 00 [18:43:52]wFMCommunicate OK [18:43:52]wFMCommunicate request_size=4 [18:43:52]MH_SAM_APDU [18:43:52]CAPDU: 80 0D 03 02 [18:43:52]Write to MH i2c: E2 08 00 CF 0B 80 0D 03 02 00 00 00 00 55 [18:43:52]Write i2c OK [18:43:52]MH_I2C_Read... [18:43:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:43:52]Read from MH i2c: E2 [18:43:52]MH_I2C_Read... [18:43:52]Read from MH i2c: E2 0B 00 [18:43:52]MH_I2C_Read... [18:43:52]Read from MH i2c: E2 0B 00 CF 0B 00 A1 44 50 5C EC E9 EB E9 90 00 90 [18:43:52]RAPDU: A1 44 50 5C EC E9 EB E9 90 00 [18:43:52]wFMCommunicate OK [18:43:52]SAM_PROTO_SignData done [18:43:52]FM_MakeSignedData done [18:43:52]CreateOFDProtocolMessage [18:43:52]wFMCommunicate request_size=4 [18:43:52]MH_SAM_APDU [18:43:52]CAPDU: 80 11 00 00 [18:43:52]Write to MH i2c: E2 08 00 D0 0B 80 11 00 00 00 00 00 00 55 [18:43:52]Write i2c OK [18:43:52]MH_I2C_Read... [18:43:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:43:52]Read from MH i2c: E2 [18:43:52]MH_I2C_Read... [18:43:52]Read from MH i2c: E2 17 00 [18:43:52]MH_I2C_Read... [18:43:52]Read from MH i2c: E2 17 00 D0 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 A3 [18:43:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [18:43:52]wFMCommunicate OK [18:43:52]CreateOFDProtocolMessage done [18:43:52]OFDSenderStorePacket 30442 [18:43:52]StoreOFDPacket docnum=30442 [18:43: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 0C 01 00 00 DA E5 04 01 F0 46 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 67 4F 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 B0 92 73 B6 61 43 A1 44 50 5C EC E9 EB E9 [18:43:52]CheckFolder [18:43:52]dirname=/storage/ofd_packets [18:43:52]CheckFolder done [18:43:52]ProducePacketName [18:43:52]name=ofd_packets/00030442 [18:43:52]NVStorageSaveData ofd_packets/00030442 [18:43:52]File name is /storage/ofd_packets/00030442 [18:43:52]Write 298 bytes [18:43:52]NVStorageSaveData done [18:43:52]OFDSenderStorePacket done [18:43:52]KKMCreateOFDPacket done [18:43:52]NVStorageSaveData kkm_last_timestamp [18:43:52]File name is /storage/kkm_last_timestamp [18:43:52]Write 4 bytes [18:43:52]NVStorageSaveData done [18:43:52]ExternCall_PrintAddStr [18:43:52]wPrintStart [18:43:52]Write to MH i2c: 01 00 00 D1 0B DC [18:43:52]Write i2c OK [18:43:52]MH_I2C_Read... [18:43:52]Read from MH i2c: 01 [18:43:52]MH_I2C_Read... [18:43:52]Read from MH i2c: 01 07 00 [18:43:52]MH_I2C_Read... [18:43:52]Read from MH i2c: 01 07 00 D1 0B 00 00 00 00 00 FF 0F F1 [18:43:52]RasterBufferAndPrint [18:43:52]line Счет N : (1)342844 [18:43:52]line ИНН: 02508201610067 [18:43:52]line Контрольно-Кассовый Чек [18:43:52]line ПРОДАЖА [18:43:52]line ТРК (МРК, ГНК) : 64 [18:43:52]line Товар: 2710194210 [18:43:52]line ДТ-К-2 [18:43:52]line 10.500 * 76.20 [18:43:52]line = 800.10 [18:43:52]line НДС 12% НСП 1% [18:43:52]line > о реализуемом товаре [18:43:52]line ОКРУГЛЕНИЕ: -0.10 [18:43:52]line ИТОГО: 800.00 [18:43:52]line Внесено: 800.00 [18:43:52]line СДАЧА: 0.00 [18:43:52]line НСП 1% : 7.08 [18:43:52]line НДС 12% : 84.97 [18:43:52]line Наличными: 800.00 [18:43:52]line Безнал.: 0.00 [18:43:52]line Место: АЗС № 78 "Партнер Нефть" [18:43:52]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [18:43:52]line СНО: Общий режим [18:43:52]line Чек 224 20.10.2024 18:43 [18:43:52]line Смена: 114 ФФД: 1.0 [18:43:52]line ЗНМ: 0300000137 [18:43:52]line РНМ: 0000000000186857 [18:43:52]line Версия ККМ: v1.0 [18:43:52]line ФМ: 0000000002094219 [18:43:52]line ФД: 30442 [18:43:52]line ФПД: 194143053046083 [18:43:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T184351&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30442&fm=194143053046083&tin=02508201610067®Number=0000000000186857&sum=80000 [18:43:52]written 0, free lines is 4095 [18:43:52]OFD Sender: Processing packet 30442 [packets to send 10, broken 9] [18:43:52]ProducePacketName [18:43:52]name=ofd_packets/00030442 [18:43:52]OFD Sender: To server: pG, [18:43:52]CommunicateWithHost lk.salyk.kg:30040 [18:43:52]ConnectInit lk.salyk.kg [18:43:52]Connected sock=10 [18:43: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 0C 01 00 00 DA E5 04 01 F0 46 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 67 4F 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 B0 92 73 B6 61 43 A1 44 50 5C EC E9 EB E9 [18:43: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 7D 5F 47 00 51 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 EA 76 00 00 F4 03 04 00 E9 F9 14 67 B6 04 01 00 00 F6 EA 48 54 6E 56 B0 E4 [18:43:52]CommunicateWithHost err = 0 [18:43:52]CheckOFDResponse [18:43:52]1017 (14) - 77093643461234 [18:43:52]1041 (16) - 0000000002094219 [18:43:52]1040 (4) - 30442 [18:43:52]1012 (4) - 20.10.2024 12:39 [18:43:52]1206 (1) - 0 [18:43:52]OFD Sender: Remove packet 30442 [18:43:52]ProducePacketName [18:43:52]name=ofd_packets/00030442 [18:43:52]NVStorageDeleteData [18:43:52]Write to MH i2c: 01 00 00 FC 0B 07 [18:43:52]Write i2c OK [18:43:52]MH_I2C_Read... [18:43:52]Read from MH i2c: 01 [18:43:52]MH_I2C_Read... [18:43:52]Read from MH i2c: 01 07 00 [18:43:52]MH_I2C_Read... [18:43:52]Read from MH i2c: 01 07 00 FC 0B 00 00 00 00 00 ED 0C 07 [18:43:52]RasterBufferAndPrint [18:43:52]line [18:43:52]line [18:43:52]line [18:43:52]line [18:43:52]line [18:43:52]written 0, free lines is 3318 [18:43:52]MH_Cut [18:43:52]Write to MH i2c: D1 01 00 03 0C 01 E1 [18:43:52]Write i2c OK [18:43:52]MH_I2C_Read... [18:43:52]Read from MH i2c: D1 [18:43:52]MH_I2C_Read... [18:43:52]Read from MH i2c: D1 01 00 [18:43:52]MH_I2C_Read... [18:43:52]Read from MH i2c: D1 01 00 03 0C 00 E0 [18:43:52]Write to MH i2c: 01 00 00 04 0C 10 [18:43:52]Write i2c OK [18:43:52]MH_I2C_Read... [18:43:53]OFD Sender: No OFD packet to send [18:43:53]*** Cut start [18:43:53]*** Partial cut [18:43:53]*** CUTSNS_PIN = 1 [18:43:53]*** CUTSNS_PIN = 0 [18:43:53]*** Brake cut motor [18:43:53]Read from MH i2c: 01 [18:43:53]MH_I2C_Read... [18:43:53]*** Stop cut motor [18:43:53]*** Cut end [18:43:53]Read from MH i2c: 01 07 00 [18:43:53]MH_I2C_Read... [18:43:53]Read from MH i2c: 01 07 00 04 0C 00 00 00 00 00 FF 0F 25 [18:43:53]process_action close_receipt done [18:43:53]requested_data is exist [18:43:53]produce_requested_data [18:43:53]requested_item fm.sn is exist - process it [18:43:53]wFMCommunicate request_size=4 [18:43:53]MH_SAM_APDU [18:43:53]CAPDU: 80 11 00 00 [18:43:53]Write to MH i2c: E2 08 00 05 0C 80 11 00 00 00 00 00 00 8B [18:43:53]Write i2c OK [18:43:53]MH_I2C_Read... [18:43:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:43:53]Read from MH i2c: E2 [18:43:53]MH_I2C_Read... [18:43:53]Read from MH i2c: E2 17 00 [18:43:53]MH_I2C_Read... [18:43:53]Read from MH i2c: E2 17 00 05 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 D9 [18:43: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:43:53]wFMCommunicate OK [18:43:53]requested_item fd.num is exist - process it [18:43:53]SAM_PROTO_GetFieldsCounters [18:43:53]wFMCommunicate request_size=4 [18:43:53]MH_SAM_APDU [18:43:53]CAPDU: 80 13 00 00 [18:43:53]Write to MH i2c: E2 08 00 06 0C 80 13 00 00 00 00 00 00 8E [18:43:53]Write i2c OK [18:43:53]MH_I2C_Read... [18:43:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:43:54]Read from MH i2c: E2 [18:43:54]MH_I2C_Read... [18:43:54]Read from MH i2c: E2 62 00 [18:43:54]MH_I2C_Read... [18:43:54]Read from MH i2c: E2 62 00 06 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 26 [18:43: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 EA 76 00 00 0E 04 04 00 72 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 [18:43:54]wFMCommunicate OK [18:43:54]SAM_PROTO_GetFieldsCounters done [18:43:54]requested_item shift.num is exist - process it [18:43:54]requested_item shift.opened is exist - process it [18:43:54]req_shift_opened [18:43:54]FM_GetShiftState [18:43:54]SAM_PROTO_GetShiftState [18:43:54]wFMCommunicate request_size=4 [18:43:54]MH_SAM_APDU [18:43:54]CAPDU: 80 13 01 00 [18:43:54]Write to MH i2c: E2 08 00 07 0C 80 13 01 00 00 00 00 00 90 [18:43:54]Write i2c OK [18:43:54]MH_I2C_Read... [18:43:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:43:54]Read from MH i2c: E2 [18:43:54]MH_I2C_Read... [18:43:54]Read from MH i2c: E2 0E 00 [18:43:54]MH_I2C_Read... [18:43:54]Read from MH i2c: E2 0E 00 07 0C 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 76 [18:43:54]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [18:43:54]wFMCommunicate OK [18:43:54]SAM_PROTO_GetShiftState done [18:43:54]FM_GetShiftState done [18:43:54]req_shift_opened done [18:43:54]requested_item shift.open_date is exist - process it [18:43:54]req_shift_open_date [18:43:54]req_shift_open_date done [18:43:54]produce_requested_data done [18:43:54]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30442,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [18:43:54]process_action_free close_receipt [18:43:54]json_value_free [18:43:54]json_value_free done [18:43:54]process_json_proto returns [18:43:54]Send response to host [18:43:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30442,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [18:43:54]free response buf [18:43:54]execute_script done [18:43:54]execute_script returns [18:43:54]free content buf [18:43:54]Sock 9.Close socket [18:43:54]Sock 9.Thread stoped [18:43:58]OFD Sender: No OFD packet to send [18:44:03]OFD Sender: No OFD packet to send [18:44:08]OFD Sender: No OFD packet to send [18:44:13]OFD Sender: No OFD packet to send [18:44:18]OFD Sender: No OFD packet to send [18:44:23]OFD Sender: No OFD packet to send [18:44:28]OFD Sender: No OFD packet to send [18:44:33]OFD Sender: No OFD packet to send [18:44:38]OFD Sender: No OFD packet to send [18:44:43]OFD Sender: No OFD packet to send [18:44:48]OFD Sender: No OFD packet to send [18:44:53]OFD Sender: No OFD packet to send [18:44:58]OFD Sender: No OFD packet to send [18:45:03]OFD Sender: No OFD packet to send [18:45:08]OFD Sender: No OFD packet to send [18:45:13]OFD Sender: No OFD packet to send [18:45:18]OFD Sender: No OFD packet to send [18:45:23]OFD Sender: No OFD packet to send [18:45:28]OFD Sender: No OFD packet to send [18:45:33]OFD Sender: No OFD packet to send [18:45:38]OFD Sender: No OFD packet to send [18:45:43]OFD Sender: No OFD packet to send [18:45:48]OFD Sender: No OFD packet to send [18:45:53]OFD Sender: No OFD packet to send [18:45:53]accept exits with 7 [18:45:53]New connection [18:45:53]New thread 3067346276 created [18:45:53]Thread 3067489636 joined [18:45:53]Waiting for new connection... [18:45:53] Sock 7.Parse request [18:45:53]Sock 7.Check first char [18:45:53]Sock 7.First char is OK [18:45:53]request: POST /json_proto HTTP/1.0 [18:45:53]Method: POST [18:45:53]URL: /json_proto [18:45:53]Method is POST - this is cgi request [18:45:53]url: /json_proto [18:45:53]query_string will be loaded in cgi processing [18:45:53]execute_cgi json_proto POST (null) [18:45:53]execute_cgi path=json_proto method=POST [18:45:53]POST find Content-Length [18:45:53]Host: 172.17.51.3:8080 [18:45:53]Content-Length: 682 [18:45:53]Content-Type: application/json [18:45:53] [18:45:53]POST finish read [18:45:53]Found Content-Length = 682 [18:45:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342845", "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" : 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" ] } } [18:45:53]execute_script... [18:45: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)342845", "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" : 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" ] } } [18:45:53]POST & json_proto [18:45:53]process_json_proto [18:45:53]json parsed OK: [18:45:53]protocol is kg_v1.0 [18:45:53]action value=close_receipt [18:45:53]process_action close_receipt [18:45:53]cmd_close_receipt [18:45:53]MH_GetDate [18:45:53]Write to MH i2c: F0 00 00 08 0C 03 [18:45:53]Write i2c OK [18:45:53]MH_I2C_Read... [18:45:53]Read from MH i2c: F0 [18:45:53]MH_I2C_Read... [18:45:53]Read from MH i2c: F0 09 00 [18:45:53]MH_I2C_Read... [18:45:53]Read from MH i2c: F0 09 00 08 0C 00 E1 4F 15 67 04 C1 95 66 78 [18:45:53]GetLastDocTimeStamp 1729449831 [18:45:53]current date 1729449953 [18:45:53]FM_GetShiftState [18:45:53]SAM_PROTO_GetShiftState [18:45:53]wFMCommunicate request_size=4 [18:45:53]MH_SAM_APDU [18:45:53]CAPDU: 80 13 01 00 [18:45:53]Write to MH i2c: E2 08 00 09 0C 80 13 01 00 00 00 00 00 92 [18:45:53]Write i2c OK [18:45:53]MH_I2C_Read... [18:45:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:45:53]Read from MH i2c: E2 [18:45:53]MH_I2C_Read... [18:45:53]Read from MH i2c: E2 0E 00 [18:45:53]MH_I2C_Read... [18:45:53]Read from MH i2c: E2 0E 00 09 0C 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 78 [18:45:53]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [18:45:53]wFMCommunicate OK [18:45:53]SAM_PROTO_GetShiftState done [18:45:53]FM_GetShiftState done [18:45:53]opened in 1729384718 [18:45:53]opened+sec_in_day 1729471118 [18:45:53]quantity*price = 200043 [18:45:53]sum+1 = 200044 [18:45:53]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 СНО: Общий режим Чек 225 20.10.2024 18:45 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30443 ФПД: 107070333649964 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T184553&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30443&fm=107070333649964&tin=02508201610067®Number=0000000000186857&sum=200000 [18:45:54]StoreToDocumentArchive [18:45:54]shift 114 fd 30443 [18:45:54]save to /storage/0114/doc_00030443 [18:45:54]save last doc name /storage/0114/doc_00030443 to /storage/kkm_last_doc_name [18:45:54]save OK [18:45:54]Clear old archive folders... [18:45:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:45:54]tlvbuf is B6F44740 [18:45:54]SAM_PROTO_ClearQueue [18:45:54]wFMCommunicate request_size=4 [18:45:54]MH_SAM_APDU [18:45:54]CAPDU: 80 09 00 00 [18:45:54]Write to MH i2c: E2 08 00 16 0C 80 09 00 00 00 00 00 00 94 [18:45:54]Write i2c OK [18:45:54]MH_I2C_Read... [18:45:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:45:54]Read from MH i2c: E2 [18:45:54]MH_I2C_Read... [18:45:54]Read from MH i2c: E2 03 00 [18:45:54]MH_I2C_Read... [18:45:54]Read from MH i2c: E2 03 00 16 0C 00 90 00 96 [18:45:54]RAPDU: 90 00 [18:45:54]wFMCommunicate OK [18:45:54]SAM_PROTO_ClearQueue done [18:45:54]KKMCreateOFDPacket [18:45:54]OFDProtocolAddRootSTLVToBuf [18:45:54]FM_MakeSignedData [18:45:54]FM_MakeSignedData [18:45:54]SAM_PROTO_SignData [18:45:54]wFMCommunicate request_size=4 [18:45:54]MH_SAM_APDU [18:45:54]CAPDU: 80 0D 01 02 [18:45:54]Write to MH i2c: E2 08 00 17 0C 80 0D 01 02 00 00 00 00 9C [18:45:54]Write i2c OK [18:45:54]MH_I2C_Read... [18:45:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:45:54]Read from MH i2c: E2 [18:45:54]MH_I2C_Read... [18:45:54]Read from MH i2c: E2 03 00 [18:45:54]MH_I2C_Read... [18:45:54]Read from MH i2c: E2 03 00 17 0C 00 90 00 97 [18:45:54]RAPDU: 90 00 [18:45:54]wFMCommunicate OK [18:45:54]wFMCommunicate request_size=255 [18:45:54]MH_SAM_APDU [18:45:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 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 E1 00 00 00 F4 03 04 00 E1 4F 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 61 [18:45:54]Write to MH i2c: E2 02 01 18 0C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 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 E1 00 00 00 F4 03 04 00 E1 4F 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 61 00 00 97 [18:45:54]Write i2c OK [18:45:54]MH_I2C_Read... [18:45:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:45:54]Read from MH i2c: E2 [18:45:54]MH_I2C_Read... [18:45:54]Read from MH i2c: E2 03 00 [18:45:54]MH_I2C_Read... [18:45:54]Read from MH i2c: E2 03 00 18 0C 00 90 00 98 [18:45:54]RAPDU: 90 00 [18:45:54]wFMCommunicate OK [18:45:54]wFMCommunicate request_size=10 [18:45:54]MH_SAM_APDU [18:45:54]CAPDU: 80 0D 02 02 05 61 41 34 04 2C [18:45:54]Write to MH i2c: E2 0D 00 19 0C 80 0D 02 02 05 00 61 41 34 04 2C 00 00 AF [18:45:54]Write i2c OK [18:45:54]MH_I2C_Read... [18:45:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:45:54]Read from MH i2c: E2 [18:45:54]MH_I2C_Read... [18:45:54]Read from MH i2c: E2 03 00 [18:45:54]MH_I2C_Read... [18:45:54]Read from MH i2c: E2 03 00 19 0C 00 90 00 99 [18:45:54]RAPDU: 90 00 [18:45:54]wFMCommunicate OK [18:45:54]wFMCommunicate request_size=4 [18:45:54]MH_SAM_APDU [18:45:54]CAPDU: 80 0D 03 02 [18:45:54]Write to MH i2c: E2 08 00 1A 0C 80 0D 03 02 00 00 00 00 A1 [18:45:54]Write i2c OK [18:45:54]MH_I2C_Read... [18:45:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:45:54]Read from MH i2c: E2 [18:45:54]MH_I2C_Read... [18:45:54]Read from MH i2c: E2 0B 00 [18:45:54]MH_I2C_Read... [18:45:54]Read from MH i2c: E2 0B 00 1A 0C 00 AC 30 28 67 03 79 03 94 90 00 20 [18:45:54]RAPDU: AC 30 28 67 03 79 03 94 90 00 [18:45:54]wFMCommunicate OK [18:45:54]SAM_PROTO_SignData done [18:45:54]FM_MakeSignedData done [18:45:54]CreateOFDProtocolMessage [18:45:54]wFMCommunicate request_size=4 [18:45:54]MH_SAM_APDU [18:45:54]CAPDU: 80 11 00 00 [18:45:54]Write to MH i2c: E2 08 00 1B 0C 80 11 00 00 00 00 00 00 A1 [18:45:54]Write i2c OK [18:45:54]MH_I2C_Read... [18:45:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:45:54]Read from MH i2c: E2 [18:45:54]MH_I2C_Read... [18:45:54]Read from MH i2c: E2 17 00 [18:45:54]MH_I2C_Read... [18:45:54]Read from MH i2c: E2 17 00 1B 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 EF [18:45:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [18:45:54]wFMCommunicate OK [18:45:54]CreateOFDProtocolMessage done [18:45:54]OFDSenderStorePacket 30443 [18:45:54]StoreOFDPacket docnum=30443 [18:45: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 C2 01 07 01 38 13 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 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 E1 00 00 00 F4 03 04 00 E1 4F 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 61 61 41 34 04 2C AC 30 28 67 03 79 03 94 [18:45:54]CheckFolder [18:45:54]dirname=/storage/ofd_packets [18:45:54]CheckFolder done [18:45:54]ProducePacketName [18:45:54]name=ofd_packets/00030443 [18:45:54]NVStorageSaveData ofd_packets/00030443 [18:45:54]File name is /storage/ofd_packets/00030443 [18:45:54]Write 301 bytes [18:45:54]NVStorageSaveData done [18:45:54]OFDSenderStorePacket done [18:45:54]KKMCreateOFDPacket done [18:45:54]NVStorageSaveData kkm_last_timestamp [18:45:54]File name is /storage/kkm_last_timestamp [18:45:54]Write 4 bytes [18:45:54]NVStorageSaveData done [18:45:54]ExternCall_PrintAddStr [18:45:54]wPrintStart [18:45:54]Write to MH i2c: 01 00 00 1C 0C 28 [18:45:54]Write i2c OK [18:45:54]MH_I2C_Read... [18:45:54]Read from MH i2c: 01 [18:45:54]MH_I2C_Read... [18:45:54]Read from MH i2c: 01 07 00 [18:45:54]MH_I2C_Read... [18:45:54]Read from MH i2c: 01 07 00 1C 0C 00 00 00 00 00 FF 0F 3D [18:45:54]RasterBufferAndPrint [18:45:54]line Счет N : (1)342845 [18:45:54]line ИНН: 02508201610067 [18:45:54]line Контрольно-Кассовый Чек [18:45:54]line ПРОДАЖА [18:45:54]line ТРК (МРК, ГНК) : 52 [18:45:54]line Товар: 2710124500 [18:45:54]line Аи-95-К-3 [18:45:54]line 26.960 * 74.20 [18:45:54]line = 2000.43 [18:45:54]line НДС 12% НСП 1% [18:45:54]line > о реализуемом товаре [18:45:54]line ОКРУГЛЕНИЕ: -0.43 [18:45:54]line ИТОГО: 2000.00 [18:45:54]line Внесено: 2000.00 [18:45:54]line СДАЧА: 0.00 [18:45:54]line НСП 1% : 17.70 [18:45:54]line НДС 12% : 212.43 [18:45:54]line Наличными: 2000.00 [18:45:54]line Безнал.: 0.00 [18:45:54]line Место: АЗС № 78 "Партнер Нефть" [18:45:54]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [18:45:54]line СНО: Общий режим [18:45:54]line Чек 225 20.10.2024 18:45 [18:45:54]line Смена: 114 ФФД: 1.0 [18:45:54]line ЗНМ: 0300000137 [18:45:54]line РНМ: 0000000000186857 [18:45:54]line Версия ККМ: v1.0 [18:45:54]line ФМ: 0000000002094219 [18:45:54]line ФД: 30443 [18:45:54]line ФПД: 107070333649964 [18:45:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T184553&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30443&fm=107070333649964&tin=02508201610067®Number=0000000000186857&sum=200000 [18:45:55]written 0, free lines is 4095 [18:45:55]OFD Sender: Processing packet 30443 [packets to send 10, broken 9] [18:45:55]ProducePacketName [18:45:55]name=ofd_packets/00030443 [18:45:55]OFD Sender: To server: pG, [18:45:55]CommunicateWithHost lk.salyk.kg:30040 [18:45:55]ConnectInit lk.salyk.kg [18:45:55]Connected sock=11 [18:45: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 C2 01 07 01 38 13 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 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 E1 00 00 00 F4 03 04 00 E1 4F 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 61 61 41 34 04 2C AC 30 28 67 03 79 03 94 [18:45: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 A1 F1 47 00 FD 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 EB 76 00 00 F4 03 04 00 64 FA 14 67 B6 04 01 00 00 0D 3D FD CC A0 E3 53 78 [18:45:55]CommunicateWithHost err = 0 [18:45:55]CheckOFDResponse [18:45:55]1017 (14) - 77093643461234 [18:45:55]1041 (16) - 0000000002094219 [18:45:55]1040 (4) - 30443 [18:45:55]1012 (4) - 20.10.2024 12:41 [18:45:55]1206 (1) - 0 [18:45:55]OFD Sender: Remove packet 30443 [18:45:55]ProducePacketName [18:45:55]name=ofd_packets/00030443 [18:45:55]NVStorageDeleteData [18:45:55]Write to MH i2c: 01 00 00 47 0C 53 [18:45:55]Write i2c OK [18:45:55]MH_I2C_Read... [18:45:55]Read from MH i2c: 01 [18:45:55]MH_I2C_Read... [18:45:55]Read from MH i2c: 01 07 00 [18:45:55]MH_I2C_Read... [18:45:55]Read from MH i2c: 01 07 00 47 0C 00 00 00 00 00 F6 0C 5C [18:45:55]RasterBufferAndPrint [18:45:55]line [18:45:55]line [18:45:55]line [18:45:55]line [18:45:55]line [18:45:55]written 0, free lines is 3324 [18:45:55]MH_Cut [18:45:55]Write to MH i2c: D1 01 00 4E 0C 01 2C [18:45:55]Write i2c OK [18:45:55]MH_I2C_Read... [18:45:55]Read from MH i2c: D1 [18:45:55]MH_I2C_Read... [18:45:55]Read from MH i2c: D1 01 00 [18:45:55]MH_I2C_Read... [18:45:55]Read from MH i2c: D1 01 00 4E 0C 00 2B [18:45:55]Write to MH i2c: 01 00 00 4F 0C 5B [18:45:55]Write i2c OK [18:45:55]MH_I2C_Read... [18:45:55]OFD Sender: No OFD packet to send [18:45:56]*** Cut start [18:45:56]*** Partial cut [18:45:56]*** CUTSNS_PIN = 1 [18:45:56]*** CUTSNS_PIN = 0 [18:45:56]*** Brake cut motor [18:45:56]Read from MH i2c: 01 [18:45:56]MH_I2C_Read... [18:45:56]*** Stop cut motor [18:45:56]*** Cut end [18:45:56]Read from MH i2c: 01 07 00 [18:45:56]MH_I2C_Read... [18:45:56]Read from MH i2c: 01 07 00 4F 0C 00 00 00 00 00 FF 0F 70 [18:45:56]process_action close_receipt done [18:45:56]requested_data is exist [18:45:56]produce_requested_data [18:45:56]requested_item fm.sn is exist - process it [18:45:56]wFMCommunicate request_size=4 [18:45:56]MH_SAM_APDU [18:45:56]CAPDU: 80 11 00 00 [18:45:56]Write to MH i2c: E2 08 00 50 0C 80 11 00 00 00 00 00 00 D6 [18:45:56]Write i2c OK [18:45:56]MH_I2C_Read... [18:45:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:45:56]Read from MH i2c: E2 [18:45:56]MH_I2C_Read... [18:45:56]Read from MH i2c: E2 17 00 [18:45:56]MH_I2C_Read... [18:45:56]Read from MH i2c: E2 17 00 50 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 24 [18:45:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [18:45:56]wFMCommunicate OK [18:45:56]requested_item fd.num is exist - process it [18:45:56]SAM_PROTO_GetFieldsCounters [18:45:56]wFMCommunicate request_size=4 [18:45:56]MH_SAM_APDU [18:45:56]CAPDU: 80 13 00 00 [18:45:56]Write to MH i2c: E2 08 00 51 0C 80 13 00 00 00 00 00 00 D9 [18:45:56]Write i2c OK [18:45:56]MH_I2C_Read... [18:45:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:45:56]Read from MH i2c: E2 [18:45:56]MH_I2C_Read... [18:45:56]Read from MH i2c: E2 62 00 [18:45:56]MH_I2C_Read... [18:45:56]Read from MH i2c: E2 62 00 51 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 75 [18:45: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 EB 76 00 00 0E 04 04 00 72 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 [18:45:56]wFMCommunicate OK [18:45:56]SAM_PROTO_GetFieldsCounters done [18:45:56]requested_item shift.num is exist - process it [18:45:56]requested_item shift.opened is exist - process it [18:45:56]req_shift_opened [18:45:56]FM_GetShiftState [18:45:56]SAM_PROTO_GetShiftState [18:45:56]wFMCommunicate request_size=4 [18:45:56]MH_SAM_APDU [18:45:56]CAPDU: 80 13 01 00 [18:45:56]Write to MH i2c: E2 08 00 52 0C 80 13 01 00 00 00 00 00 DB [18:45:56]Write i2c OK [18:45:56]MH_I2C_Read... [18:45:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:45:56]Read from MH i2c: E2 [18:45:56]MH_I2C_Read... [18:45:56]Read from MH i2c: E2 0E 00 [18:45:56]MH_I2C_Read... [18:45:56]Read from MH i2c: E2 0E 00 52 0C 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 C1 [18:45:56]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [18:45:56]wFMCommunicate OK [18:45:56]SAM_PROTO_GetShiftState done [18:45:56]FM_GetShiftState done [18:45:56]req_shift_opened done [18:45:56]requested_item shift.open_date is exist - process it [18:45:56]req_shift_open_date [18:45:56]req_shift_open_date done [18:45:56]produce_requested_data done [18:45:56]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30443,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [18:45:56]process_action_free close_receipt [18:45:56]json_value_free [18:45:56]json_value_free done [18:45:56]process_json_proto returns [18:45:56]Send response to host [18:45:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30443,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [18:45:56]free response buf [18:45:56]execute_script done [18:45:56]execute_script returns [18:45:56]free content buf [18:45:56]Sock 7.Close socket [18:45:56]Sock 7.Thread stoped [18:46:00]OFD Sender: No OFD packet to send [18:46:05]OFD Sender: No OFD packet to send [18:46:10]OFD Sender: No OFD packet to send [18:46:15]OFD Sender: No OFD packet to send [18:46:20]OFD Sender: No OFD packet to send [18:46:25]OFD Sender: No OFD packet to send [18:46:30]OFD Sender: No OFD packet to send [18:46:35]OFD Sender: No OFD packet to send [18:46:40]OFD Sender: No OFD packet to send [18:46:45]OFD Sender: No OFD packet to send [18:46:50]OFD Sender: No OFD packet to send [18:46:55]OFD Sender: No OFD packet to send [18:47:00]OFD Sender: No OFD packet to send [18:47:05]OFD Sender: No OFD packet to send [18:47:10]OFD Sender: No OFD packet to send [18:47:15]OFD Sender: No OFD packet to send [18:47:20]OFD Sender: No OFD packet to send [18:47:25]OFD Sender: No OFD packet to send [18:47:30]OFD Sender: No OFD packet to send [18:47:35]OFD Sender: No OFD packet to send [18:47:40]OFD Sender: No OFD packet to send [18:47:45]OFD Sender: No OFD packet to send [18:47:50]OFD Sender: No OFD packet to send [18:47:55]OFD Sender: No OFD packet to send [18:48:00]OFD Sender: No OFD packet to send [18:48:05]OFD Sender: No OFD packet to send [18:48:10]OFD Sender: No OFD packet to send [18:48:15]OFD Sender: No OFD packet to send [18:48:20]OFD Sender: No OFD packet to send [18:48:25]OFD Sender: No OFD packet to send [18:48:30]OFD Sender: No OFD packet to send [18:48:35]OFD Sender: No OFD packet to send [18:48:40]OFD Sender: No OFD packet to send [18:48:45]OFD Sender: No OFD packet to send [18:48:50]OFD Sender: No OFD packet to send [18:48:55]OFD Sender: No OFD packet to send [18:49:00]OFD Sender: No OFD packet to send [18:49:05]OFD Sender: No OFD packet to send [18:49:08]accept exits with 9 [18:49:08]New connection [18:49:08]New thread 3067489636 created [18:49:08]Thread 3067346276 joined [18:49:08]Waiting for new connection... [18:49:08] Sock 9.Parse request [18:49:08]Sock 9.Check first char [18:49:08]Sock 9.First char is OK [18:49:08]request: POST /json_proto HTTP/1.0 [18:49:08]Method: POST [18:49:08]URL: /json_proto [18:49:08]Method is POST - this is cgi request [18:49:08]url: /json_proto [18:49:08]query_string will be loaded in cgi processing [18:49:08]execute_cgi json_proto POST (null) [18:49:08]execute_cgi path=json_proto method=POST [18:49:08]POST find Content-Length [18:49:08]Host: 172.17.51.3:8080 [18:49:08]Content-Length: 677 [18:49:08]Content-Type: application/json [18:49:08] [18:49:08]POST finish read [18:49:08]Found Content-Length = 677 [18:49:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342846", "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" ] } } [18:49:08]execute_script... [18:49: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)342846", "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" ] } } [18:49:08]POST & json_proto [18:49:08]process_json_proto [18:49:08]json parsed OK: [18:49:08]protocol is kg_v1.0 [18:49:08]action value=close_receipt [18:49:08]process_action close_receipt [18:49:08]cmd_close_receipt [18:49:08]MH_GetDate [18:49:08]Write to MH i2c: F0 00 00 53 0C 4E [18:49:08]Write i2c OK [18:49:08]MH_I2C_Read... [18:49:08]Read from MH i2c: F0 [18:49:08]MH_I2C_Read... [18:49:08]Read from MH i2c: F0 09 00 [18:49:08]MH_I2C_Read... [18:49:08]Read from MH i2c: F0 09 00 53 0C 00 A4 50 15 67 04 C1 95 66 87 [18:49:08]GetLastDocTimeStamp 1729449953 [18:49:08]current date 1729450148 [18:49:08]FM_GetShiftState [18:49:08]SAM_PROTO_GetShiftState [18:49:08]wFMCommunicate request_size=4 [18:49:08]MH_SAM_APDU [18:49:08]CAPDU: 80 13 01 00 [18:49:08]Write to MH i2c: E2 08 00 54 0C 80 13 01 00 00 00 00 00 DD [18:49:08]Write i2c OK [18:49:08]MH_I2C_Read... [18:49:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:49:08]Read from MH i2c: E2 [18:49:08]MH_I2C_Read... [18:49:08]Read from MH i2c: E2 0E 00 [18:49:08]MH_I2C_Read... [18:49:08]Read from MH i2c: E2 0E 00 54 0C 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 C3 [18:49:08]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [18:49:08]wFMCommunicate OK [18:49:08]SAM_PROTO_GetShiftState done [18:49:08]FM_GetShiftState done [18:49:08]opened in 1729384718 [18:49:08]opened+sec_in_day 1729471118 [18:49:08]quantity*price = 30038 [18:49:08]sum+1 = 30039 [18:49:08]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 СНО: Общий режим Чек 226 20.10.2024 18:49 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30444 ФПД: 277910712847261 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T184908&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30444&fm=277910712847261&tin=02508201610067®Number=0000000000186857&sum=30000 [18:49:09]StoreToDocumentArchive [18:49:09]shift 114 fd 30444 [18:49:09]save to /storage/0114/doc_00030444 [18:49:09]save last doc name /storage/0114/doc_00030444 to /storage/kkm_last_doc_name [18:49:09]save OK [18:49:09]Clear old archive folders... [18:49:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:49:09]tlvbuf is B6F443D0 [18:49:09]SAM_PROTO_ClearQueue [18:49:09]wFMCommunicate request_size=4 [18:49:09]MH_SAM_APDU [18:49:09]CAPDU: 80 09 00 00 [18:49:09]Write to MH i2c: E2 08 00 61 0C 80 09 00 00 00 00 00 00 DF [18:49:09]Write i2c OK [18:49:09]MH_I2C_Read... [18:49:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:49:09]Read from MH i2c: E2 [18:49:09]MH_I2C_Read... [18:49:09]Read from MH i2c: E2 03 00 [18:49:09]MH_I2C_Read... [18:49:09]Read from MH i2c: E2 03 00 61 0C 00 90 00 E1 [18:49:09]RAPDU: 90 00 [18:49:09]wFMCommunicate OK [18:49:09]SAM_PROTO_ClearQueue done [18:49:09]KKMCreateOFDPacket [18:49:09]OFDProtocolAddRootSTLVToBuf [18:49:09]FM_MakeSignedData [18:49:09]FM_MakeSignedData [18:49:09]SAM_PROTO_SignData [18:49:09]wFMCommunicate request_size=4 [18:49:09]MH_SAM_APDU [18:49:09]CAPDU: 80 0D 01 02 [18:49:09]Write to MH i2c: E2 08 00 62 0C 80 0D 01 02 00 00 00 00 E7 [18:49:09]Write i2c OK [18:49:09]MH_I2C_Read... [18:49:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:49:09]Read from MH i2c: E2 [18:49:09]MH_I2C_Read... [18:49:09]Read from MH i2c: E2 03 00 [18:49:09]MH_I2C_Read... [18:49:09]Read from MH i2c: E2 03 00 62 0C 00 90 00 E2 [18:49:09]RAPDU: 90 00 [18:49:09]wFMCommunicate OK [18:49:09]wFMCommunicate request_size=255 [18:49:09]MH_SAM_APDU [18:49: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 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 E2 00 00 00 F4 03 04 00 A4 50 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 FC [18:49:09]Write to MH i2c: E2 02 01 63 0C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 E2 00 00 00 F4 03 04 00 A4 50 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 FC 00 00 8E [18:49:09]Write i2c OK [18:49:09]MH_I2C_Read... [18:49:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:49:09]Read from MH i2c: E2 [18:49:09]MH_I2C_Read... [18:49:09]Read from MH i2c: E2 03 00 [18:49:09]MH_I2C_Read... [18:49:09]Read from MH i2c: E2 03 00 63 0C 00 90 00 E3 [18:49:09]RAPDU: 90 00 [18:49:09]wFMCommunicate OK [18:49:09]wFMCommunicate request_size=10 [18:49:09]MH_SAM_APDU [18:49:09]CAPDU: 80 0D 02 02 05 C2 21 51 8B 9D [18:49:09]Write to MH i2c: E2 0D 00 64 0C 80 0D 02 02 05 00 C2 21 51 8B 9D 00 00 50 [18:49:09]Write i2c OK [18:49:09]MH_I2C_Read... [18:49:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:49:09]Read from MH i2c: E2 [18:49:09]MH_I2C_Read... [18:49:09]Read from MH i2c: E2 03 00 [18:49:09]MH_I2C_Read... [18:49:09]Read from MH i2c: E2 03 00 64 0C 00 90 00 E4 [18:49:09]RAPDU: 90 00 [18:49:09]wFMCommunicate OK [18:49:09]wFMCommunicate request_size=4 [18:49:09]MH_SAM_APDU [18:49:09]CAPDU: 80 0D 03 02 [18:49:09]Write to MH i2c: E2 08 00 65 0C 80 0D 03 02 00 00 00 00 EC [18:49:09]Write i2c OK [18:49:09]MH_I2C_Read... [18:49:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:49:10]Read from MH i2c: E2 [18:49:10]MH_I2C_Read... [18:49:10]Read from MH i2c: E2 0B 00 [18:49:10]MH_I2C_Read... [18:49:10]Read from MH i2c: E2 0B 00 65 0C 00 9D EF 37 8E CB 6F 57 A3 90 00 72 [18:49:10]RAPDU: 9D EF 37 8E CB 6F 57 A3 90 00 [18:49:10]wFMCommunicate OK [18:49:10]SAM_PROTO_SignData done [18:49:10]FM_MakeSignedData done [18:49:10]CreateOFDProtocolMessage [18:49:10]wFMCommunicate request_size=4 [18:49:10]MH_SAM_APDU [18:49:10]CAPDU: 80 11 00 00 [18:49:10]Write to MH i2c: E2 08 00 66 0C 80 11 00 00 00 00 00 00 EC [18:49:10]Write i2c OK [18:49:10]MH_I2C_Read... [18:49:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:49:10]Read from MH i2c: E2 [18:49:10]MH_I2C_Read... [18:49:10]Read from MH i2c: E2 17 00 [18:49:10]MH_I2C_Read... [18:49:10]Read from MH i2c: E2 17 00 66 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 3A [18:49: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:49:10]wFMCommunicate OK [18:49:10]CreateOFDProtocolMessage done [18:49:10]OFDSenderStorePacket 30444 [18:49:10]StoreOFDPacket docnum=30444 [18:49: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 6A 6F 07 01 06 F7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 E2 00 00 00 F4 03 04 00 A4 50 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 FC C2 21 51 8B 9D 9D EF 37 8E CB 6F 57 A3 [18:49:10]CheckFolder [18:49:10]dirname=/storage/ofd_packets [18:49:10]CheckFolder done [18:49:10]ProducePacketName [18:49:10]name=ofd_packets/00030444 [18:49:10]NVStorageSaveData ofd_packets/00030444 [18:49:10]File name is /storage/ofd_packets/00030444 [18:49:10]Write 301 bytes [18:49:10]NVStorageSaveData done [18:49:10]OFDSenderStorePacket done [18:49:10]KKMCreateOFDPacket done [18:49:10]NVStorageSaveData kkm_last_timestamp [18:49:10]File name is /storage/kkm_last_timestamp [18:49:10]Write 4 bytes [18:49:10]NVStorageSaveData done [18:49:10]ExternCall_PrintAddStr [18:49:10]wPrintStart [18:49:10]Write to MH i2c: 01 00 00 67 0C 73 [18:49:10]Write i2c OK [18:49:10]MH_I2C_Read... [18:49:10]Read from MH i2c: 01 [18:49:10]MH_I2C_Read... [18:49:10]Read from MH i2c: 01 07 00 [18:49:10]MH_I2C_Read... [18:49:10]Read from MH i2c: 01 07 00 67 0C 00 00 00 00 00 FF 0F 88 [18:49:10]RasterBufferAndPrint [18:49:10]line Счет N : (1)342846 [18:49:10]line ИНН: 02508201610067 [18:49:10]line Контрольно-Кассовый Чек [18:49:10]line ПРОДАЖА [18:49:10]line ТРК (МРК, ГНК) : 53 [18:49:10]line Товар: 2710124130 [18:49:10]line Аи-92-К-2 [18:49:10]line 4.490 * 66.90 [18:49:10]line = 300.38 [18:49:10]line НДС 12% НСП 1% [18:49:10]line > о реализуемом товаре [18:49:10]line ОКРУГЛЕНИЕ: -0.38 [18:49:10]line ИТОГО: 300.00 [18:49:10]line Внесено: 300.00 [18:49:10]line СДАЧА: 0.00 [18:49:10]line НСП 1% : 2.66 [18:49:10]line НДС 12% : 31.90 [18:49:10]line Наличными: 300.00 [18:49:10]line Безнал.: 0.00 [18:49:10]line Место: АЗС № 78 "Партнер Нефть" [18:49:10]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [18:49:10]line СНО: Общий режим [18:49:10]line Чек 226 20.10.2024 18:49 [18:49:10]line Смена: 114 ФФД: 1.0 [18:49:10]line ЗНМ: 0300000137 [18:49:10]line РНМ: 0000000000186857 [18:49:10]line Версия ККМ: v1.0 [18:49:10]line ФМ: 0000000002094219 [18:49:10]line ФД: 30444 [18:49:10]line ФПД: 277910712847261 [18:49:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T184908&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30444&fm=277910712847261&tin=02508201610067®Number=0000000000186857&sum=30000 [18:49:10]OFD Sender: Processing packet 30444 [packets to send 10, broken 9] [18:49:10]ProducePacketName [18:49:10]name=ofd_packets/00030444 [18:49:10]OFD Sender: To server: pG, [18:49:10]CommunicateWithHost lk.salyk.kg:30040 [18:49:10]ConnectInit lk.salyk.kg [18:49:10]written 0, free lines is 4095 [18:49:10]Connected sock=11 [18:49: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 6A 6F 07 01 06 F7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 E2 00 00 00 F4 03 04 00 A4 50 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 FC C2 21 51 8B 9D 9D EF 37 8E CB 6F 57 A3 [18:49: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 BD 28 47 00 2B CA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 EC 76 00 00 F4 03 04 00 28 FB 14 67 B6 04 01 00 00 D3 F2 19 9C 64 0E D9 3A [18:49:10]CommunicateWithHost err = 0 [18:49:10]CheckOFDResponse [18:49:10]1017 (14) - 77093643461234 [18:49:10]1041 (16) - 0000000002094219 [18:49:10]1040 (4) - 30444 [18:49:10]1012 (4) - 20.10.2024 12:44 [18:49:10]1206 (1) - 0 [18:49:10]OFD Sender: Remove packet 30444 [18:49:10]ProducePacketName [18:49:10]name=ofd_packets/00030444 [18:49:10]NVStorageDeleteData [18:49:10]Write to MH i2c: 01 00 00 92 0C 9E [18:49:10]Write i2c OK [18:49:10]MH_I2C_Read... [18:49:10]Read from MH i2c: 01 [18:49:10]MH_I2C_Read... [18:49:10]Read from MH i2c: 01 07 00 [18:49:10]MH_I2C_Read... [18:49:10]Read from MH i2c: 01 07 00 92 0C 00 00 00 00 00 ED 0C 9E [18:49:10]RasterBufferAndPrint [18:49:10]line [18:49:10]line [18:49:10]line [18:49:10]line [18:49:10]line [18:49:10]written 0, free lines is 3315 [18:49:10]MH_Cut [18:49:10]Write to MH i2c: D1 01 00 99 0C 01 77 [18:49:10]Write i2c OK [18:49:10]MH_I2C_Read... [18:49:10]Read from MH i2c: D1 [18:49:10]MH_I2C_Read... [18:49:10]Read from MH i2c: D1 01 00 [18:49:10]MH_I2C_Read... [18:49:10]Read from MH i2c: D1 01 00 99 0C 00 76 [18:49:10]Write to MH i2c: 01 00 00 9A 0C A6 [18:49:10]Write i2c OK [18:49:10]MH_I2C_Read... [18:49:11]OFD Sender: No OFD packet to send [18:49:11]*** Cut start [18:49:11]*** Partial cut [18:49:11]*** CUTSNS_PIN = 1 [18:49:11]*** CUTSNS_PIN = 0 [18:49:11]*** Brake cut motor [18:49:12]Read from MH i2c: 01 [18:49:12]MH_I2C_Read... [18:49:12]*** Stop cut motor [18:49:12]*** Cut end [18:49:12]Read from MH i2c: 01 07 00 [18:49:12]MH_I2C_Read... [18:49:12]Read from MH i2c: 01 07 00 9A 0C 00 00 00 00 00 FF 0F BB [18:49:12]process_action close_receipt done [18:49:12]requested_data is exist [18:49:12]produce_requested_data [18:49:12]requested_item fm.sn is exist - process it [18:49:12]wFMCommunicate request_size=4 [18:49:12]MH_SAM_APDU [18:49:12]CAPDU: 80 11 00 00 [18:49:12]Write to MH i2c: E2 08 00 9B 0C 80 11 00 00 00 00 00 00 21 [18:49:12]Write i2c OK [18:49:12]MH_I2C_Read... [18:49:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:49:12]Read from MH i2c: E2 [18:49:12]MH_I2C_Read... [18:49:12]Read from MH i2c: E2 17 00 [18:49:12]MH_I2C_Read... [18:49:12]Read from MH i2c: E2 17 00 9B 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 6F [18:49: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:49:12]wFMCommunicate OK [18:49:12]requested_item fd.num is exist - process it [18:49:12]SAM_PROTO_GetFieldsCounters [18:49:12]wFMCommunicate request_size=4 [18:49:12]MH_SAM_APDU [18:49:12]CAPDU: 80 13 00 00 [18:49:12]Write to MH i2c: E2 08 00 9C 0C 80 13 00 00 00 00 00 00 24 [18:49:12]Write i2c OK [18:49:12]MH_I2C_Read... [18:49:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:49:12]Read from MH i2c: E2 [18:49:12]MH_I2C_Read... [18:49:12]Read from MH i2c: E2 62 00 [18:49:12]MH_I2C_Read... [18:49:12]Read from MH i2c: E2 62 00 9C 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 C4 [18:49: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 EC 76 00 00 0E 04 04 00 72 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 [18:49:12]wFMCommunicate OK [18:49:12]SAM_PROTO_GetFieldsCounters done [18:49:12]requested_item shift.num is exist - process it [18:49:12]requested_item shift.opened is exist - process it [18:49:12]req_shift_opened [18:49:12]FM_GetShiftState [18:49:12]SAM_PROTO_GetShiftState [18:49:12]wFMCommunicate request_size=4 [18:49:12]MH_SAM_APDU [18:49:12]CAPDU: 80 13 01 00 [18:49:12]Write to MH i2c: E2 08 00 9D 0C 80 13 01 00 00 00 00 00 26 [18:49:12]Write i2c OK [18:49:12]MH_I2C_Read... [18:49:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:49:12]Read from MH i2c: E2 [18:49:12]MH_I2C_Read... [18:49:12]Read from MH i2c: E2 0E 00 [18:49:12]MH_I2C_Read... [18:49:12]Read from MH i2c: E2 0E 00 9D 0C 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 0C [18:49:12]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [18:49:12]wFMCommunicate OK [18:49:12]SAM_PROTO_GetShiftState done [18:49:12]FM_GetShiftState done [18:49:12]req_shift_opened done [18:49:12]requested_item shift.open_date is exist - process it [18:49:12]req_shift_open_date [18:49:12]req_shift_open_date done [18:49:12]produce_requested_data done [18:49:12]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30444,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [18:49:12]process_action_free close_receipt [18:49:12]json_value_free [18:49:12]json_value_free done [18:49:12]process_json_proto returns [18:49:12]Send response to host [18:49:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30444,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [18:49:12]free response buf [18:49:12]execute_script done [18:49:12]execute_script returns [18:49:12]free content buf [18:49:12]Sock 9.Close socket [18:49:12]Sock 9.Thread stoped [18:49:16]OFD Sender: No OFD packet to send [18:49:21]OFD Sender: No OFD packet to send [18:49:26]OFD Sender: No OFD packet to send [18:49:31]OFD Sender: No OFD packet to send [18:49:36]OFD Sender: No OFD packet to send [18:49:41]OFD Sender: No OFD packet to send [18:49:46]OFD Sender: No OFD packet to send [18:49:51]OFD Sender: No OFD packet to send [18:49:56]OFD Sender: No OFD packet to send [18:50:01]OFD Sender: No OFD packet to send [18:50:06]OFD Sender: No OFD packet to send [18:50:11]OFD Sender: No OFD packet to send [18:50:16]OFD Sender: No OFD packet to send [18:50:21]OFD Sender: No OFD packet to send [18:50:26]OFD Sender: No OFD packet to send [18:50:31]OFD Sender: No OFD packet to send [18:50:36]OFD Sender: No OFD packet to send [18:50:41]OFD Sender: No OFD packet to send [18:50:46]OFD Sender: No OFD packet to send [18:50:51]OFD Sender: No OFD packet to send [18:50:56]OFD Sender: No OFD packet to send [18:51:01]OFD Sender: No OFD packet to send [18:51:06]OFD Sender: No OFD packet to send [18:51:11]OFD Sender: No OFD packet to send [18:51:16]OFD Sender: No OFD packet to send [18:51:21]OFD Sender: No OFD packet to send [18:51:26]OFD Sender: No OFD packet to send [18:51:31]OFD Sender: No OFD packet to send [18:51:36]OFD Sender: No OFD packet to send [18:51:41]OFD Sender: No OFD packet to send [18:51:46]OFD Sender: No OFD packet to send [18:51:51]OFD Sender: No OFD packet to send [18:51:56]OFD Sender: No OFD packet to send [18:52:01]OFD Sender: No OFD packet to send [18:52:06]OFD Sender: No OFD packet to send [18:52:11]OFD Sender: No OFD packet to send [18:52:16]OFD Sender: No OFD packet to send [18:52:21]OFD Sender: No OFD packet to send [18:52:26]OFD Sender: No OFD packet to send [18:52:31]OFD Sender: No OFD packet to send [18:52:36]OFD Sender: No OFD packet to send [18:52:41]OFD Sender: No OFD packet to send [18:52:46]OFD Sender: No OFD packet to send [18:52:51]OFD Sender: No OFD packet to send [18:52:56]OFD Sender: No OFD packet to send [18:53:01]OFD Sender: No OFD packet to send [18:53:06]OFD Sender: No OFD packet to send [18:53:11]OFD Sender: No OFD packet to send [18:53:16]OFD Sender: No OFD packet to send [18:53:21]OFD Sender: No OFD packet to send [18:53:26]OFD Sender: No OFD packet to send [18:53:31]OFD Sender: No OFD packet to send [18:53:36]OFD Sender: No OFD packet to send [18:53:41]OFD Sender: No OFD packet to send [18:53:46]OFD Sender: No OFD packet to send [18:53:51]OFD Sender: No OFD packet to send [18:53:56]OFD Sender: No OFD packet to send [18:54:01]OFD Sender: No OFD packet to send [18:54:06]OFD Sender: No OFD packet to send [18:54:11]OFD Sender: No OFD packet to send [18:54:16]OFD Sender: No OFD packet to send [18:54:21]OFD Sender: No OFD packet to send [18:54:26]OFD Sender: No OFD packet to send [18:54:31]OFD Sender: No OFD packet to send [18:54:36]OFD Sender: No OFD packet to send [18:54:41]OFD Sender: No OFD packet to send [18:54:46]OFD Sender: No OFD packet to send [18:54:51]OFD Sender: No OFD packet to send [18:54:56]OFD Sender: No OFD packet to send [18:55:01]OFD Sender: No OFD packet to send [18:55:06]OFD Sender: No OFD packet to send [18:55:11]OFD Sender: No OFD packet to send [18:55:16]OFD Sender: No OFD packet to send [18:55:21]OFD Sender: No OFD packet to send [18:55:26]OFD Sender: No OFD packet to send [18:55:31]OFD Sender: No OFD packet to send [18:55:36]OFD Sender: No OFD packet to send [18:55:41]OFD Sender: No OFD packet to send [18:55:46]OFD Sender: No OFD packet to send [18:55:51]OFD Sender: No OFD packet to send [18:55:56]OFD Sender: No OFD packet to send [18:56:01]OFD Sender: No OFD packet to send [18:56:06]accept exits with 7 [18:56:06]New connection [18:56:06]New thread 3067346276 created [18:56:06]Thread 3067489636 joined [18:56:06]Waiting for new connection... [18:56:06] Sock 7.Parse request [18:56:06]Sock 7.Check first char [18:56:06]Sock 7.First char is OK [18:56:06]request: POST /json_proto HTTP/1.0 [18:56:06]Method: POST [18:56:06]URL: /json_proto [18:56:06]Method is POST - this is cgi request [18:56:06]url: /json_proto [18:56:06]query_string will be loaded in cgi processing [18:56:06]execute_cgi json_proto POST (null) [18:56:06]execute_cgi path=json_proto method=POST [18:56:06]POST find Content-Length [18:56:06]Host: 172.17.51.3:8080 [18:56:06]Content-Length: 688 [18:56:06]Content-Type: application/json [18:56:06] [18:56:06]POST finish read [18:56:06]Found Content-Length = 688 [18:56:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342847", "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" : 45.340, "sum" : 3500.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3500.00, "total" : 3500.00, "payments": [ { "type": 0, "sum" : 3500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:56:06]execute_script... [18:56:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342847", "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" : 45.340, "sum" : 3500.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3500.00, "total" : 3500.00, "payments": [ { "type": 0, "sum" : 3500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:56:06]POST & json_proto [18:56:06]process_json_proto [18:56:06]json parsed OK: [18:56:06]protocol is kg_v1.0 [18:56:06]action value=close_receipt [18:56:06]process_action close_receipt [18:56:06]cmd_close_receipt [18:56:06]MH_GetDate [18:56:06]Write to MH i2c: F0 00 00 9E 0C 99 [18:56:06]Write i2c OK [18:56:06]MH_I2C_Read... [18:56:06]Read from MH i2c: F0 [18:56:06]MH_I2C_Read... [18:56:06]Read from MH i2c: F0 09 00 [18:56:06]MH_I2C_Read... [18:56:06]Read from MH i2c: F0 09 00 9E 0C 00 46 52 15 67 04 C1 95 66 76 [18:56:06]GetLastDocTimeStamp 1729450148 [18:56:06]current date 1729450566 [18:56:06]FM_GetShiftState [18:56:06]SAM_PROTO_GetShiftState [18:56:06]wFMCommunicate request_size=4 [18:56:06]MH_SAM_APDU [18:56:06]CAPDU: 80 13 01 00 [18:56:06]Write to MH i2c: E2 08 00 9F 0C 80 13 01 00 00 00 00 00 28 [18:56:06]Write i2c OK [18:56:06]MH_I2C_Read... [18:56:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:56:06]Read from MH i2c: E2 [18:56:06]MH_I2C_Read... [18:56:06]Read from MH i2c: E2 0E 00 [18:56:06]MH_I2C_Read... [18:56:06]Read from MH i2c: E2 0E 00 9F 0C 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 0E [18:56:06]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [18:56:06]wFMCommunicate OK [18:56:06]SAM_PROTO_GetShiftState done [18:56:06]FM_GetShiftState done [18:56:06]opened in 1729384718 [18:56:06]opened+sec_in_day 1729471118 [18:56:06]quantity*price = 350024 [18:56:06]sum+1 = 350026 [18:56:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 3500.00 Внесено: 3500.00 СДАЧА: 0.00 НСП 1% : 30.98 НДС 12% : 371.71 Наличными: 3500.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 227 20.10.2024 18:56 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30445 ФПД: 250833333764488 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T185606&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30445&fm=250833333764488&tin=02508201610067®Number=0000000000186857&sum=350000 [18:56:07]StoreToDocumentArchive [18:56:07]shift 114 fd 30445 [18:56:07]save to /storage/0114/doc_00030445 [18:56:07]save last doc name /storage/0114/doc_00030445 to /storage/kkm_last_doc_name [18:56:07]save OK [18:56:07]Clear old archive folders... [18:56:07]ProcessDocumentItem done err = 0, tmpTLVsize=257 [18:56:07]tlvbuf is B6F442A0 [18:56:07]SAM_PROTO_ClearQueue [18:56:07]wFMCommunicate request_size=4 [18:56:07]MH_SAM_APDU [18:56:07]CAPDU: 80 09 00 00 [18:56:07]Write to MH i2c: E2 08 00 AC 0C 80 09 00 00 00 00 00 00 2A [18:56:07]Write i2c OK [18:56:07]MH_I2C_Read... [18:56:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:56:07]Read from MH i2c: E2 [18:56:07]MH_I2C_Read... [18:56:07]Read from MH i2c: E2 03 00 [18:56:07]MH_I2C_Read... [18:56:07]Read from MH i2c: E2 03 00 AC 0C 00 90 00 2C [18:56:07]RAPDU: 90 00 [18:56:07]wFMCommunicate OK [18:56:07]SAM_PROTO_ClearQueue done [18:56:07]KKMCreateOFDPacket [18:56:07]OFDProtocolAddRootSTLVToBuf [18:56:07]FM_MakeSignedData [18:56:07]FM_MakeSignedData [18:56:07]SAM_PROTO_SignData [18:56:07]wFMCommunicate request_size=4 [18:56:07]MH_SAM_APDU [18:56:07]CAPDU: 80 0D 01 02 [18:56:07]Write to MH i2c: E2 08 00 AD 0C 80 0D 01 02 00 00 00 00 32 [18:56:07]Write i2c OK [18:56:07]MH_I2C_Read... [18:56:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:56:07]Read from MH i2c: E2 [18:56:07]MH_I2C_Read... [18:56:07]Read from MH i2c: E2 03 00 [18:56:07]MH_I2C_Read... [18:56:07]Read from MH i2c: E2 03 00 AD 0C 00 90 00 2D [18:56:07]RAPDU: 90 00 [18:56:07]wFMCommunicate OK [18:56:07]wFMCommunicate request_size=255 [18:56:07]MH_SAM_APDU [18:56: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 1C B1 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 49 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 91 00 00 00 00 07 04 06 00 30 57 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 46 52 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 [18:56:07]Write to MH i2c: E2 02 01 AE 0C 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 1C B1 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 49 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 91 00 00 00 00 07 04 06 00 30 57 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 46 52 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 00 30 [18:56:07]Write i2c OK [18:56:07]MH_I2C_Read... [18:56:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:56:07]Read from MH i2c: E2 [18:56:07]MH_I2C_Read... [18:56:07]Read from MH i2c: E2 03 00 [18:56:07]MH_I2C_Read... [18:56:07]Read from MH i2c: E2 03 00 AE 0C 00 90 00 2E [18:56:07]RAPDU: 90 00 [18:56:07]wFMCommunicate OK [18:56:07]wFMCommunicate request_size=16 [18:56:07]MH_SAM_APDU [18:56:07]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 E4 21 AF C1 C1 88 [18:56:07]Write to MH i2c: E2 13 00 AF 0C 80 0D 02 02 0B 00 00 35 04 06 00 E4 21 AF C1 C1 88 00 00 48 [18:56:07]Write i2c OK [18:56:07]MH_I2C_Read... [18:56:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:56:07]Read from MH i2c: E2 [18:56:07]MH_I2C_Read... [18:56:07]Read from MH i2c: E2 03 00 [18:56:07]MH_I2C_Read... [18:56:07]Read from MH i2c: E2 03 00 AF 0C 00 90 00 2F [18:56:07]RAPDU: 90 00 [18:56:07]wFMCommunicate OK [18:56:07]wFMCommunicate request_size=4 [18:56:07]MH_SAM_APDU [18:56:07]CAPDU: 80 0D 03 02 [18:56:07]Write to MH i2c: E2 08 00 B0 0C 80 0D 03 02 00 00 00 00 37 [18:56:07]Write i2c OK [18:56:07]MH_I2C_Read... [18:56:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:56:07]Read from MH i2c: E2 [18:56:07]MH_I2C_Read... [18:56:07]Read from MH i2c: E2 0B 00 [18:56:07]MH_I2C_Read... [18:56:07]Read from MH i2c: E2 0B 00 B0 0C 00 2F 62 94 F2 4B 3E E4 29 90 00 E5 [18:56:07]RAPDU: 2F 62 94 F2 4B 3E E4 29 90 00 [18:56:07]wFMCommunicate OK [18:56:07]SAM_PROTO_SignData done [18:56:07]FM_MakeSignedData done [18:56:07]CreateOFDProtocolMessage [18:56:07]wFMCommunicate request_size=4 [18:56:07]MH_SAM_APDU [18:56:07]CAPDU: 80 11 00 00 [18:56:07]Write to MH i2c: E2 08 00 B1 0C 80 11 00 00 00 00 00 00 37 [18:56:07]Write i2c OK [18:56:07]MH_I2C_Read... [18:56:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:56:07]Read from MH i2c: E2 [18:56:07]MH_I2C_Read... [18:56:07]Read from MH i2c: E2 17 00 [18:56:07]MH_I2C_Read... [18:56:07]Read from MH i2c: E2 17 00 B1 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 85 [18:56: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:56:07]wFMCommunicate OK [18:56:07]CreateOFDProtocolMessage done [18:56:07]OFDSenderStorePacket 30445 [18:56:07]StoreOFDPacket docnum=30445 [18:56: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 15 01 00 00 BC DE 0D 01 50 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 1C B1 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 49 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 91 00 00 00 00 07 04 06 00 30 57 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 46 52 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 E4 21 AF C1 C1 88 2F 62 94 F2 4B 3E E4 29 [18:56:07]CheckFolder [18:56:07]dirname=/storage/ofd_packets [18:56:07]CheckFolder done [18:56:07]ProducePacketName [18:56:07]name=ofd_packets/00030445 [18:56:07]NVStorageSaveData ofd_packets/00030445 [18:56:07]File name is /storage/ofd_packets/00030445 [18:56:07]Write 307 bytes [18:56:07]NVStorageSaveData done [18:56:07]OFDSenderStorePacket done [18:56:07]KKMCreateOFDPacket done [18:56:07]NVStorageSaveData kkm_last_timestamp [18:56:07]File name is /storage/kkm_last_timestamp [18:56:07]Write 4 bytes [18:56:07]NVStorageSaveData done [18:56:07]ExternCall_PrintAddStr [18:56:07]wPrintStart [18:56:07]Write to MH i2c: 01 00 00 B2 0C BE [18:56:07]Write i2c OK [18:56:07]MH_I2C_Read... [18:56:07]Read from MH i2c: 01 [18:56:07]MH_I2C_Read... [18:56:07]Read from MH i2c: 01 07 00 [18:56:07]MH_I2C_Read... [18:56:07]Read from MH i2c: 01 07 00 B2 0C 00 00 00 00 00 FF 0F D3 [18:56:07]RasterBufferAndPrint [18:56:07]line Счет N : (1)342847 [18:56:07]line ИНН: 02508201610067 [18:56:07]line Контрольно-Кассовый Чек [18:56:07]line ПРОДАЖА [18:56:07]line ТРК (МРК, ГНК) : 51 [18:56:07]line Товар: 2710194210 [18:56:07]line D-ENERGY Дт-К-2 [18:56:07]line 45.340 * 77.20 [18:56:07]line = 3500.25 [18:56:07]line НДС 12% НСП 1% [18:56:07]line > о реализуемом товаре [18:56:07]line ОКРУГЛЕНИЕ: -0.25 [18:56:07]line ИТОГО: 3500.00 [18:56:07]line Внесено: 3500.00 [18:56:07]line СДАЧА: 0.00 [18:56:07]line НСП 1% : 30.98 [18:56:07]line НДС 12% : 371.71 [18:56:07]line Наличными: 3500.00 [18:56:07]line Безнал.: 0.00 [18:56:07]line Место: АЗС № 78 "Партнер Нефть" [18:56:07]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [18:56:07]line СНО: Общий режим [18:56:07]line Чек 227 20.10.2024 18:56 [18:56:07]line Смена: 114 ФФД: 1.0 [18:56:07]line ЗНМ: 0300000137 [18:56:07]line РНМ: 0000000000186857 [18:56:07]line Версия ККМ: v1.0 [18:56:07]line ФМ: 0000000002094219 [18:56:07]line ФД: 30445 [18:56:07]line ФПД: 250833333764488 [18:56:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T185606&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30445&fm=250833333764488&tin=02508201610067®Number=0000000000186857&sum=350000 [18:56:08]OFD Sender: Processing packet 30445 [packets to send 10, broken 9] [18:56:08]ProducePacketName [18:56:08]name=ofd_packets/00030445 [18:56:08]OFD Sender: To server: pG, [18:56:08]CommunicateWithHost lk.salyk.kg:30040 [18:56:08]ConnectInit lk.salyk.kg [18:56:08]written 0, free lines is 4095 [18:56:08]Connected sock=10 [18:56: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 BC DE 0D 01 50 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 1C B1 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 49 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 91 00 00 00 00 07 04 06 00 30 57 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 46 52 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 E4 21 AF C1 C1 88 2F 62 94 F2 4B 3E E4 29 [18:56: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 8C 70 47 00 B0 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 ED 76 00 00 F4 03 04 00 C9 FC 14 67 B6 04 01 00 00 0C 60 14 DD 49 24 13 09 [18:56:08]CommunicateWithHost err = 0 [18:56:08]CheckOFDResponse [18:56:08]1017 (14) - 77093643461234 [18:56:08]1041 (16) - 0000000002094219 [18:56:08]1040 (4) - 30445 [18:56:08]1012 (4) - 20.10.2024 12:51 [18:56:08]1206 (1) - 0 [18:56:08]OFD Sender: Remove packet 30445 [18:56:08]ProducePacketName [18:56:08]name=ofd_packets/00030445 [18:56:08]NVStorageDeleteData [18:56:08]Write to MH i2c: 01 00 00 DD 0C E9 [18:56:08]Write i2c OK [18:56:08]MH_I2C_Read... [18:56:08]Read from MH i2c: 01 [18:56:08]MH_I2C_Read... [18:56:08]Read from MH i2c: 01 07 00 [18:56:08]MH_I2C_Read... [18:56:08]Read from MH i2c: 01 07 00 DD 0C 00 00 00 00 00 F5 0C F1 [18:56:08]RasterBufferAndPrint [18:56:08]line [18:56:08]line [18:56:08]line [18:56:08]line [18:56:08]line [18:56:08]written 0, free lines is 3323 [18:56:08]MH_Cut [18:56:08]Write to MH i2c: D1 01 00 E4 0C 01 C2 [18:56:08]Write i2c OK [18:56:08]MH_I2C_Read... [18:56:08]Read from MH i2c: D1 [18:56:08]MH_I2C_Read... [18:56:08]Read from MH i2c: D1 01 00 [18:56:08]MH_I2C_Read... [18:56:08]Read from MH i2c: D1 01 00 E4 0C 00 C1 [18:56:08]Write to MH i2c: 01 00 00 E5 0C F1 [18:56:08]Write i2c OK [18:56:08]MH_I2C_Read... [18:56:09]OFD Sender: No OFD packet to send [18:56:09]*** Cut start [18:56:09]*** Partial cut [18:56:09]*** CUTSNS_PIN = 1 [18:56:09]*** CUTSNS_PIN = 0 [18:56:09]*** Brake cut motor [18:56:09]Read from MH i2c: 01 [18:56:09]MH_I2C_Read... [18:56:10]*** Stop cut motor [18:56:10]*** Cut end [18:56:10]Read from MH i2c: 01 07 00 [18:56:10]MH_I2C_Read... [18:56:10]Read from MH i2c: 01 07 00 E5 0C 00 00 00 00 00 FF 0F 06 [18:56:10]process_action close_receipt done [18:56:10]requested_data is exist [18:56:10]produce_requested_data [18:56:10]requested_item fm.sn is exist - process it [18:56:10]wFMCommunicate request_size=4 [18:56:10]MH_SAM_APDU [18:56:10]CAPDU: 80 11 00 00 [18:56:10]Write to MH i2c: E2 08 00 E6 0C 80 11 00 00 00 00 00 00 6C [18:56:10]Write i2c OK [18:56:10]MH_I2C_Read... [18:56:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:56:10]Read from MH i2c: E2 [18:56:10]MH_I2C_Read... [18:56:10]Read from MH i2c: E2 17 00 [18:56:10]MH_I2C_Read... [18:56:10]Read from MH i2c: E2 17 00 E6 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 BA [18:56: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:56:10]wFMCommunicate OK [18:56:10]requested_item fd.num is exist - process it [18:56:10]SAM_PROTO_GetFieldsCounters [18:56:10]wFMCommunicate request_size=4 [18:56:10]MH_SAM_APDU [18:56:10]CAPDU: 80 13 00 00 [18:56:10]Write to MH i2c: E2 08 00 E7 0C 80 13 00 00 00 00 00 00 6F [18:56:10]Write i2c OK [18:56:10]MH_I2C_Read... [18:56:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:56:10]Read from MH i2c: E2 [18:56:10]MH_I2C_Read... [18:56:10]Read from MH i2c: E2 62 00 [18:56:10]MH_I2C_Read... [18:56:10]Read from MH i2c: E2 62 00 E7 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 13 [18:56: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 ED 76 00 00 0E 04 04 00 72 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 [18:56:10]wFMCommunicate OK [18:56:10]SAM_PROTO_GetFieldsCounters done [18:56:10]requested_item shift.num is exist - process it [18:56:10]requested_item shift.opened is exist - process it [18:56:10]req_shift_opened [18:56:10]FM_GetShiftState [18:56:10]SAM_PROTO_GetShiftState [18:56:10]wFMCommunicate request_size=4 [18:56:10]MH_SAM_APDU [18:56:10]CAPDU: 80 13 01 00 [18:56:10]Write to MH i2c: E2 08 00 E8 0C 80 13 01 00 00 00 00 00 71 [18:56:10]Write i2c OK [18:56:10]MH_I2C_Read... [18:56:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:56:10]Read from MH i2c: E2 [18:56:10]MH_I2C_Read... [18:56:10]Read from MH i2c: E2 0E 00 [18:56:10]MH_I2C_Read... [18:56:10]Read from MH i2c: E2 0E 00 E8 0C 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 57 [18:56:10]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [18:56:10]wFMCommunicate OK [18:56:10]SAM_PROTO_GetShiftState done [18:56:10]FM_GetShiftState done [18:56:10]req_shift_opened done [18:56:10]requested_item shift.open_date is exist - process it [18:56:10]req_shift_open_date [18:56:10]req_shift_open_date done [18:56:10]produce_requested_data done [18:56:10]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30445,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [18:56:10]process_action_free close_receipt [18:56:10]json_value_free [18:56:10]json_value_free done [18:56:10]process_json_proto returns [18:56:10]Send response to host [18:56:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30445,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [18:56:10]free response buf [18:56:10]execute_script done [18:56:10]execute_script returns [18:56:10]free content buf [18:56:10]Sock 7.Close socket [18:56:10]Sock 7.Thread stoped [18:56:14]OFD Sender: No OFD packet to send [18:56:19]OFD Sender: No OFD packet to send [18:56:24]OFD Sender: No OFD packet to send [18:56:29]OFD Sender: No OFD packet to send [18:56:34]OFD Sender: No OFD packet to send [18:56:39]OFD Sender: No OFD packet to send [18:56:44]OFD Sender: No OFD packet to send [18:56:49]OFD Sender: No OFD packet to send [18:56:54]OFD Sender: No OFD packet to send [18:56:59]OFD Sender: No OFD packet to send [18:57:04]OFD Sender: No OFD packet to send [18:57:09]OFD Sender: No OFD packet to send [18:57:14]OFD Sender: No OFD packet to send [18:57:19]OFD Sender: No OFD packet to send [18:57:24]OFD Sender: No OFD packet to send [18:57:29]OFD Sender: No OFD packet to send [18:57:34]OFD Sender: No OFD packet to send [18:57:39]OFD Sender: No OFD packet to send [18:57:44]OFD Sender: No OFD packet to send [18:57:49]OFD Sender: No OFD packet to send [18:57:54]OFD Sender: No OFD packet to send [18:57:59]OFD Sender: No OFD packet to send [18:58:04]OFD Sender: No OFD packet to send [18:58:09]OFD Sender: No OFD packet to send [18:58:14]OFD Sender: No OFD packet to send [18:58:19]OFD Sender: No OFD packet to send [18:58:24]OFD Sender: No OFD packet to send [18:58:29]OFD Sender: No OFD packet to send [18:58:34]OFD Sender: No OFD packet to send [18:58:39]OFD Sender: No OFD packet to send [18:58:44]OFD Sender: No OFD packet to send [18:58:49]OFD Sender: No OFD packet to send [18:58:54]OFD Sender: No OFD packet to send [18:58:59]OFD Sender: No OFD packet to send [18:59:04]OFD Sender: No OFD packet to send [18:59:09]OFD Sender: No OFD packet to send [18:59:14]OFD Sender: No OFD packet to send [18:59:19]OFD Sender: No OFD packet to send [18:59:24]OFD Sender: No OFD packet to send [18:59:29]OFD Sender: No OFD packet to send [18:59:34]OFD Sender: No OFD packet to send [18:59:39]OFD Sender: No OFD packet to send [18:59:44]OFD Sender: No OFD packet to send [18:59:49]OFD Sender: No OFD packet to send [18:59:54]OFD Sender: No OFD packet to send [18:59:59]OFD Sender: No OFD packet to send [19:00:04]OFD Sender: No OFD packet to send [19:00:09]OFD Sender: No OFD packet to send [19:00:14]OFD Sender: No OFD packet to send [19:00:19]OFD Sender: No OFD packet to send [19:00:24]OFD Sender: No OFD packet to send [19:00:29]OFD Sender: No OFD packet to send [19:00:34]OFD Sender: No OFD packet to send [19:00:39]OFD Sender: No OFD packet to send [19:00:44]OFD Sender: No OFD packet to send [19:00:49]OFD Sender: No OFD packet to send [19:00:54]OFD Sender: No OFD packet to send [19:00:59]OFD Sender: No OFD packet to send [19:01:04]OFD Sender: No OFD packet to send [19:01:04]accept exits with 9 [19:01:04]New connection [19:01:04]New thread 3067489636 created [19:01:04]Thread 3067346276 joined [19:01:04]Waiting for new connection... [19:01:04] Sock 9.Parse request [19:01:04]Sock 9.Check first char [19:01:04]Sock 9.First char is OK [19:01:04]request: POST /json_proto HTTP/1.0 [19:01:04]Method: POST [19:01:04]URL: /json_proto [19:01:04]Method is POST - this is cgi request [19:01:04]url: /json_proto [19:01:04]query_string will be loaded in cgi processing [19:01:04]execute_cgi json_proto POST (null) [19:01:04]execute_cgi path=json_proto method=POST [19:01:04]POST find Content-Length [19:01:04]Host: 172.17.51.3:8080 [19:01:04]Content-Length: 677 [19:01:04]Content-Type: application/json [19:01:04] [19:01:04]POST finish read [19:01:04]Found Content-Length = 677 [19:01:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342849", "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.640, "sum" : 310.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 310.00, "total" : 310.00, "payments": [ { "type": 0, "sum" : 310.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:01:04]execute_script... [19:01:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342849", "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.640, "sum" : 310.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 310.00, "total" : 310.00, "payments": [ { "type": 0, "sum" : 310.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:01:04]POST & json_proto [19:01:04]process_json_proto [19:01:04]json parsed OK: [19:01:04]protocol is kg_v1.0 [19:01:04]action value=close_receipt [19:01:04]process_action close_receipt [19:01:04]cmd_close_receipt [19:01:04]MH_GetDate [19:01:04]Write to MH i2c: F0 00 00 E9 0C E4 [19:01:04]Write i2c OK [19:01:04]MH_I2C_Read... [19:01:04]Read from MH i2c: F0 [19:01:04]MH_I2C_Read... [19:01:04]Read from MH i2c: F0 09 00 [19:01:04]MH_I2C_Read... [19:01:04]Read from MH i2c: F0 09 00 E9 0C 00 71 53 15 67 04 C1 95 66 ED [19:01:04]GetLastDocTimeStamp 1729450566 [19:01:04]current date 1729450865 [19:01:04]FM_GetShiftState [19:01:04]SAM_PROTO_GetShiftState [19:01:04]wFMCommunicate request_size=4 [19:01:04]MH_SAM_APDU [19:01:04]CAPDU: 80 13 01 00 [19:01:04]Write to MH i2c: E2 08 00 EA 0C 80 13 01 00 00 00 00 00 73 [19:01:04]Write i2c OK [19:01:04]MH_I2C_Read... [19:01:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:01:04]Read from MH i2c: E2 [19:01:04]MH_I2C_Read... [19:01:04]Read from MH i2c: E2 0E 00 [19:01:04]MH_I2C_Read... [19:01:04]Read from MH i2c: E2 0E 00 EA 0C 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 59 [19:01:04]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [19:01:04]wFMCommunicate OK [19:01:04]SAM_PROTO_GetShiftState done [19:01:04]FM_GetShiftState done [19:01:04]opened in 1729384718 [19:01:04]opened+sec_in_day 1729471118 [19:01:04]quantity*price = 31041 [19:01:04]sum+1 = 31043 [19:01:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 310.00 Внесено: 310.00 СДАЧА: 0.00 НСП 1% : 2.75 НДС 12% : 32.96 Наличными: 310.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 228 20.10.2024 19:01 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30446 ФПД: 33901193899306 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T190105&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30446&fm=33901193899306&tin=02508201610067®Number=0000000000186857&sum=31000 [19:01:05]StoreToDocumentArchive [19:01:05]shift 114 fd 30446 [19:01:05]save to /storage/0114/doc_00030446 [19:01:05]save last doc name /storage/0114/doc_00030446 to /storage/kkm_last_doc_name [19:01:05]save OK [19:01:05]Clear old archive folders... [19:01:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:01:05]tlvbuf is B6F44ED0 [19:01:05]SAM_PROTO_ClearQueue [19:01:05]wFMCommunicate request_size=4 [19:01:05]MH_SAM_APDU [19:01:05]CAPDU: 80 09 00 00 [19:01:05]Write to MH i2c: E2 08 00 F7 0C 80 09 00 00 00 00 00 00 75 [19:01:05]Write i2c OK [19:01:05]MH_I2C_Read... [19:01:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:01:05]Read from MH i2c: E2 [19:01:05]MH_I2C_Read... [19:01:05]Read from MH i2c: E2 03 00 [19:01:05]MH_I2C_Read... [19:01:05]Read from MH i2c: E2 03 00 F7 0C 00 90 00 77 [19:01:05]RAPDU: 90 00 [19:01:05]wFMCommunicate OK [19:01:05]SAM_PROTO_ClearQueue done [19:01:05]KKMCreateOFDPacket [19:01:05]OFDProtocolAddRootSTLVToBuf [19:01:05]FM_MakeSignedData [19:01:05]FM_MakeSignedData [19:01:05]SAM_PROTO_SignData [19:01:05]wFMCommunicate request_size=4 [19:01:05]MH_SAM_APDU [19:01:05]CAPDU: 80 0D 01 02 [19:01:05]Write to MH i2c: E2 08 00 F8 0C 80 0D 01 02 00 00 00 00 7D [19:01:05]Write i2c OK [19:01:05]MH_I2C_Read... [19:01:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:01:05]Read from MH i2c: E2 [19:01:05]MH_I2C_Read... [19:01:05]Read from MH i2c: E2 03 00 [19:01:05]MH_I2C_Read... [19:01:05]Read from MH i2c: E2 03 00 F8 0C 00 90 00 78 [19:01:05]RAPDU: 90 00 [19:01:05]wFMCommunicate OK [19:01:05]wFMCommunicate request_size=255 [19:01:05]MH_SAM_APDU [19:01:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 20 12 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 42 79 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E0 0C 00 00 00 00 07 04 06 00 18 79 00 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 71 53 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 1E [19:01:05]Write to MH i2c: E2 02 01 F9 0C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 20 12 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 42 79 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E0 0C 00 00 00 00 07 04 06 00 18 79 00 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 71 53 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 1E 00 00 EC [19:01:05]Write i2c OK [19:01:05]MH_I2C_Read... [19:01:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:01:05]Read from MH i2c: E2 [19:01:05]MH_I2C_Read... [19:01:05]Read from MH i2c: E2 03 00 [19:01:05]MH_I2C_Read... [19:01:05]Read from MH i2c: E2 03 00 F9 0C 00 90 00 79 [19:01:05]RAPDU: 90 00 [19:01:05]wFMCommunicate OK [19:01:05]wFMCommunicate request_size=10 [19:01:05]MH_SAM_APDU [19:01:05]CAPDU: 80 0D 02 02 05 D5 3C 9E AD 2A [19:01:05]Write to MH i2c: E2 0D 00 FA 0C 80 0D 02 02 05 00 D5 3C 9E AD 2A 00 00 10 [19:01:05]Write i2c OK [19:01:05]MH_I2C_Read... [19:01:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:01:06]Read from MH i2c: E2 [19:01:06]MH_I2C_Read... [19:01:06]Read from MH i2c: E2 03 00 [19:01:06]MH_I2C_Read... [19:01:06]Read from MH i2c: E2 03 00 FA 0C 00 90 00 7A [19:01:06]RAPDU: 90 00 [19:01:06]wFMCommunicate OK [19:01:06]wFMCommunicate request_size=4 [19:01:06]MH_SAM_APDU [19:01:06]CAPDU: 80 0D 03 02 [19:01:06]Write to MH i2c: E2 08 00 FB 0C 80 0D 03 02 00 00 00 00 82 [19:01:06]Write i2c OK [19:01:06]MH_I2C_Read... [19:01:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:01:06]Read from MH i2c: E2 [19:01:06]MH_I2C_Read... [19:01:06]Read from MH i2c: E2 0B 00 [19:01:06]MH_I2C_Read... [19:01:06]Read from MH i2c: E2 0B 00 FB 0C 00 32 CB 2B 77 19 E1 64 8C 90 00 0C [19:01:06]RAPDU: 32 CB 2B 77 19 E1 64 8C 90 00 [19:01:06]wFMCommunicate OK [19:01:06]SAM_PROTO_SignData done [19:01:06]FM_MakeSignedData done [19:01:06]CreateOFDProtocolMessage [19:01:06]wFMCommunicate request_size=4 [19:01:06]MH_SAM_APDU [19:01:06]CAPDU: 80 11 00 00 [19:01:06]Write to MH i2c: E2 08 00 FC 0C 80 11 00 00 00 00 00 00 82 [19:01:06]Write i2c OK [19:01:06]MH_I2C_Read... [19:01:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:01:06]Read from MH i2c: E2 [19:01:06]MH_I2C_Read... [19:01:06]Read from MH i2c: E2 17 00 [19:01:06]MH_I2C_Read... [19:01:06]Read from MH i2c: E2 17 00 FC 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 D0 [19:01:06]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:06]wFMCommunicate OK [19:01:06]CreateOFDProtocolMessage done [19:01:06]OFDSenderStorePacket 30446 [19:01:06]StoreOFDPacket docnum=30446 [19:01: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 A5 9F 07 01 16 56 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 12 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 42 79 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E0 0C 00 00 00 00 07 04 06 00 18 79 00 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 71 53 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 1E D5 3C 9E AD 2A 32 CB 2B 77 19 E1 64 8C [19:01:06]CheckFolder [19:01:06]dirname=/storage/ofd_packets [19:01:06]CheckFolder done [19:01:06]ProducePacketName [19:01:06]name=ofd_packets/00030446 [19:01:06]NVStorageSaveData ofd_packets/00030446 [19:01:06]File name is /storage/ofd_packets/00030446 [19:01:06]Write 301 bytes [19:01:06]NVStorageSaveData done [19:01:06]OFDSenderStorePacket done [19:01:06]KKMCreateOFDPacket done [19:01:06]NVStorageSaveData kkm_last_timestamp [19:01:06]File name is /storage/kkm_last_timestamp [19:01:06]Write 4 bytes [19:01:06]NVStorageSaveData done [19:01:06]ExternCall_PrintAddStr [19:01:06]wPrintStart [19:01:06]Write to MH i2c: 01 00 00 FD 0C 09 [19:01:06]Write i2c OK [19:01:06]MH_I2C_Read... [19:01:06]Read from MH i2c: 01 [19:01:06]MH_I2C_Read... [19:01:06]Read from MH i2c: 01 07 00 [19:01:06]MH_I2C_Read... [19:01:06]Read from MH i2c: 01 07 00 FD 0C 00 00 00 00 00 FF 0F 1E [19:01:06]RasterBufferAndPrint [19:01:06]line Счет N : (1)342849 [19:01:06]line ИНН: 02508201610067 [19:01:06]line Контрольно-Кассовый Чек [19:01:06]line ПРОДАЖА [19:01:06]line ТРК (МРК, ГНК) : 53 [19:01:06]line Товар: 2710124130 [19:01:06]line Аи-92-К-2 [19:01:06]line 4.640 * 66.90 [19:01:06]line = 310.42 [19:01:06]line НДС 12% НСП 1% [19:01:06]line > о реализуемом товаре [19:01:06]line ОКРУГЛЕНИЕ: -0.42 [19:01:06]line ИТОГО: 310.00 [19:01:06]line Внесено: 310.00 [19:01:06]line СДАЧА: 0.00 [19:01:06]line НСП 1% : 2.75 [19:01:06]line НДС 12% : 32.96 [19:01:06]line Наличными: 310.00 [19:01:06]line Безнал.: 0.00 [19:01:06]line Место: АЗС № 78 "Партнер Нефть" [19:01:06]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [19:01:06]line СНО: Общий режим [19:01:06]line Чек 228 20.10.2024 19:01 [19:01:06]line Смена: 114 ФФД: 1.0 [19:01:06]line ЗНМ: 0300000137 [19:01:06]line РНМ: 0000000000186857 [19:01:06]line Версия ККМ: v1.0 [19:01:06]line ФМ: 0000000002094219 [19:01:06]line ФД: 30446 [19:01:06]line ФПД: 33901193899306 [19:01:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T190105&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30446&fm=33901193899306&tin=02508201610067®Number=0000000000186857&sum=31000 [19:01:06]OFD Sender: Processing packet 30446 [packets to send 10, broken 9] [19:01:06]ProducePacketName [19:01:06]name=ofd_packets/00030446 [19:01:06]OFD Sender: To server: pG, [19:01:06]CommunicateWithHost lk.salyk.kg:30040 [19:01:06]ConnectInit lk.salyk.kg [19:01:06]written 0, free lines is 4095 [19:01:06]Connected sock=10 [19:01: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 A5 9F 07 01 16 56 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 12 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 42 79 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E0 0C 00 00 00 00 07 04 06 00 18 79 00 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 71 53 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 1E D5 3C 9E AD 2A 32 CB 2B 77 19 E1 64 8C [19:01: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 83 94 47 00 11 2B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 EE 76 00 00 F4 03 04 00 F4 FD 14 67 B6 04 01 00 00 E6 59 84 26 F8 1E 31 27 [19:01:06]CommunicateWithHost err = 0 [19:01:06]CheckOFDResponse [19:01:06]1017 (14) - 77093643461234 [19:01:06]1041 (16) - 0000000002094219 [19:01:06]1040 (4) - 30446 [19:01:06]1012 (4) - 20.10.2024 12:56 [19:01:06]1206 (1) - 0 [19:01:06]OFD Sender: Remove packet 30446 [19:01:06]ProducePacketName [19:01:06]name=ofd_packets/00030446 [19:01:06]NVStorageDeleteData [19:01:06]Write to MH i2c: 01 00 00 28 0D 35 [19:01:06]Write i2c OK [19:01:06]MH_I2C_Read... [19:01:06]Read from MH i2c: 01 [19:01:06]MH_I2C_Read... [19:01:06]Read from MH i2c: 01 07 00 [19:01:06]MH_I2C_Read... [19:01:06]Read from MH i2c: 01 07 00 28 0D 00 00 00 00 00 EC 0C 34 [19:01:06]RasterBufferAndPrint [19:01:06]line [19:01:06]line [19:01:06]line [19:01:06]line [19:01:06]line [19:01:06]written 0, free lines is 3314 [19:01:06]MH_Cut [19:01:06]Write to MH i2c: D1 01 00 2F 0D 01 0E [19:01:06]Write i2c OK [19:01:06]MH_I2C_Read... [19:01:06]Read from MH i2c: D1 [19:01:06]MH_I2C_Read... [19:01:06]Read from MH i2c: D1 01 00 [19:01:06]MH_I2C_Read... [19:01:06]Read from MH i2c: D1 01 00 2F 0D 00 0D [19:01:06]Write to MH i2c: 01 00 00 30 0D 3D [19:01:06]Write i2c OK [19:01:06]MH_I2C_Read... [19:01:07]OFD Sender: No OFD packet to send [19:01:07]*** Cut start [19:01:07]*** Partial cut [19:01:07]*** CUTSNS_PIN = 1 [19:01:07]*** CUTSNS_PIN = 0 [19:01:07]*** Brake cut motor [19:01:08]Read from MH i2c: 01 [19:01:08]MH_I2C_Read... [19:01:08]*** Stop cut motor [19:01:08]*** Cut end [19:01:08]Read from MH i2c: 01 07 00 [19:01:08]MH_I2C_Read... [19:01:08]Read from MH i2c: 01 07 00 30 0D 00 00 00 00 00 FF 0F 52 [19:01:08]process_action close_receipt done [19:01:08]requested_data is exist [19:01:08]produce_requested_data [19:01:08]requested_item fm.sn is exist - process it [19:01:08]wFMCommunicate request_size=4 [19:01:08]MH_SAM_APDU [19:01:08]CAPDU: 80 11 00 00 [19:01:08]Write to MH i2c: E2 08 00 31 0D 80 11 00 00 00 00 00 00 B8 [19:01:08]Write i2c OK [19:01:08]MH_I2C_Read... [19:01:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:01:08]Read from MH i2c: E2 [19:01:08]MH_I2C_Read... [19:01:08]Read from MH i2c: E2 17 00 [19:01:08]MH_I2C_Read... [19:01:08]Read from MH i2c: E2 17 00 31 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 06 [19:01: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:01:08]wFMCommunicate OK [19:01:08]requested_item fd.num is exist - process it [19:01:08]SAM_PROTO_GetFieldsCounters [19:01:08]wFMCommunicate request_size=4 [19:01:08]MH_SAM_APDU [19:01:08]CAPDU: 80 13 00 00 [19:01:08]Write to MH i2c: E2 08 00 32 0D 80 13 00 00 00 00 00 00 BB [19:01:08]Write i2c OK [19:01:08]MH_I2C_Read... [19:01:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:01:08]Read from MH i2c: E2 [19:01:08]MH_I2C_Read... [19:01:08]Read from MH i2c: E2 62 00 [19:01:08]MH_I2C_Read... [19:01:08]Read from MH i2c: E2 62 00 32 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 63 [19:01: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 EE 76 00 00 0E 04 04 00 72 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:01:08]wFMCommunicate OK [19:01:08]SAM_PROTO_GetFieldsCounters done [19:01:08]requested_item shift.num is exist - process it [19:01:08]requested_item shift.opened is exist - process it [19:01:08]req_shift_opened [19:01:08]FM_GetShiftState [19:01:08]SAM_PROTO_GetShiftState [19:01:08]wFMCommunicate request_size=4 [19:01:08]MH_SAM_APDU [19:01:08]CAPDU: 80 13 01 00 [19:01:08]Write to MH i2c: E2 08 00 33 0D 80 13 01 00 00 00 00 00 BD [19:01:08]Write i2c OK [19:01:08]MH_I2C_Read... [19:01:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:01:08]Read from MH i2c: E2 [19:01:08]MH_I2C_Read... [19:01:08]Read from MH i2c: E2 0E 00 [19:01:08]MH_I2C_Read... [19:01:08]Read from MH i2c: E2 0E 00 33 0D 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 A3 [19:01:08]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [19:01:08]wFMCommunicate OK [19:01:08]SAM_PROTO_GetShiftState done [19:01:08]FM_GetShiftState done [19:01:08]req_shift_opened done [19:01:08]requested_item shift.open_date is exist - process it [19:01:08]req_shift_open_date [19:01:08]req_shift_open_date done [19:01:08]produce_requested_data done [19:01:08]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30446,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [19:01:08]process_action_free close_receipt [19:01:08]json_value_free [19:01:08]json_value_free done [19:01:08]process_json_proto returns [19:01:08]Send response to host [19:01:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30446,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [19:01:08]free response buf [19:01:08]execute_script done [19:01:08]execute_script returns [19:01:08]free content buf [19:01:08]Sock 9.Close socket [19:01:08]Sock 9.Thread stoped [19:01:12]OFD Sender: No OFD packet to send [19:01:17]OFD Sender: No OFD packet to send [19:01:22]OFD Sender: No OFD packet to send [19:01:27]OFD Sender: No OFD packet to send [19:01:28]accept exits with 7 [19:01:28]New connection [19:01:28]New thread 3067346276 created [19:01:28]Thread 3067489636 joined [19:01:28]Waiting for new connection... [19:01:28] Sock 7.Parse request [19:01:28]Sock 7.Check first char [19:01:28]Sock 7.First char is OK [19:01:28]request: POST /json_proto HTTP/1.0 [19:01:28]Method: POST [19:01:28]URL: /json_proto [19:01:28]Method is POST - this is cgi request [19:01:28]url: /json_proto [19:01:28]query_string will be loaded in cgi processing [19:01:28]execute_cgi json_proto POST (null) [19:01:28]execute_cgi path=json_proto method=POST [19:01:28]POST find Content-Length [19:01:28]Host: 172.17.51.3:8080 [19:01:28]Content-Length: 677 [19:01:28]Content-Type: application/json [19:01:28] [19:01:28]POST finish read [19:01:28]Found Content-Length = 677 [19:01:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342850", "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" ] } } [19:01:28]execute_script... [19:01: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)342850", "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" ] } } [19:01:28]POST & json_proto [19:01:28]process_json_proto [19:01:28]json parsed OK: [19:01:28]protocol is kg_v1.0 [19:01:28]action value=close_receipt [19:01:28]process_action close_receipt [19:01:28]cmd_close_receipt [19:01:28]MH_GetDate [19:01:28]Write to MH i2c: F0 00 00 34 0D 30 [19:01:28]Write i2c OK [19:01:28]MH_I2C_Read... [19:01:28]Read from MH i2c: F0 [19:01:28]MH_I2C_Read... [19:01:28]Read from MH i2c: F0 09 00 [19:01:28]MH_I2C_Read... [19:01:28]Read from MH i2c: F0 09 00 34 0D 00 89 53 15 67 04 C1 95 66 51 [19:01:28]GetLastDocTimeStamp 1729450865 [19:01:28]current date 1729450889 [19:01:28]FM_GetShiftState [19:01:28]SAM_PROTO_GetShiftState [19:01:28]wFMCommunicate request_size=4 [19:01:28]MH_SAM_APDU [19:01:28]CAPDU: 80 13 01 00 [19:01:28]Write to MH i2c: E2 08 00 35 0D 80 13 01 00 00 00 00 00 BF [19:01:28]Write i2c OK [19:01:28]MH_I2C_Read... [19:01:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:01:28]Read from MH i2c: E2 [19:01:28]MH_I2C_Read... [19:01:28]Read from MH i2c: E2 0E 00 [19:01:28]MH_I2C_Read... [19:01:28]Read from MH i2c: E2 0E 00 35 0D 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 A5 [19:01:28]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [19:01:28]wFMCommunicate OK [19:01:28]SAM_PROTO_GetShiftState done [19:01:28]FM_GetShiftState done [19:01:28]opened in 1729384718 [19:01:28]opened+sec_in_day 1729471118 [19:01:28]quantity*price = 20003 [19:01:28]sum+1 = 20004 [19:01: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 СНО: Общий режим Чек 229 20.10.2024 19:01 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30447 ФПД: 18167517567448 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T190129&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30447&fm=18167517567448&tin=02508201610067®Number=0000000000186857&sum=20000 [19:01:29]StoreToDocumentArchive [19:01:29]shift 114 fd 30447 [19:01:29]save to /storage/0114/doc_00030447 [19:01:29]save last doc name /storage/0114/doc_00030447 to /storage/kkm_last_doc_name [19:01:29]save OK [19:01:29]Clear old archive folders... [19:01:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:01:29]tlvbuf is 01E2D610 [19:01:29]SAM_PROTO_ClearQueue [19:01:29]wFMCommunicate request_size=4 [19:01:29]MH_SAM_APDU [19:01:29]CAPDU: 80 09 00 00 [19:01:29]Write to MH i2c: E2 08 00 42 0D 80 09 00 00 00 00 00 00 C1 [19:01:29]Write i2c OK [19:01:29]MH_I2C_Read... [19:01:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:01:29]Read from MH i2c: E2 [19:01:29]MH_I2C_Read... [19:01:29]Read from MH i2c: E2 03 00 [19:01:29]MH_I2C_Read... [19:01:29]Read from MH i2c: E2 03 00 42 0D 00 90 00 C3 [19:01:29]RAPDU: 90 00 [19:01:29]wFMCommunicate OK [19:01:29]SAM_PROTO_ClearQueue done [19:01:29]KKMCreateOFDPacket [19:01:29]OFDProtocolAddRootSTLVToBuf [19:01:29]FM_MakeSignedData [19:01:29]FM_MakeSignedData [19:01:29]SAM_PROTO_SignData [19:01:29]wFMCommunicate request_size=4 [19:01:29]MH_SAM_APDU [19:01:29]CAPDU: 80 0D 01 02 [19:01:29]Write to MH i2c: E2 08 00 43 0D 80 0D 01 02 00 00 00 00 C9 [19:01:29]Write i2c OK [19:01:29]MH_I2C_Read... [19:01:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:01:29]Read from MH i2c: E2 [19:01:29]MH_I2C_Read... [19:01:29]Read from MH i2c: E2 03 00 [19:01:29]MH_I2C_Read... [19:01:29]Read from MH i2c: E2 03 00 43 0D 00 90 00 C4 [19:01:29]RAPDU: 90 00 [19:01:29]wFMCommunicate OK [19:01:29]wFMCommunicate request_size=255 [19:01:29]MH_SAM_APDU [19:01: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 E5 00 00 00 F4 03 04 00 89 53 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 10 [19:01:29]Write to MH i2c: E2 02 01 44 0D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 E5 00 00 00 F4 03 04 00 89 53 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 10 00 00 40 [19:01:29]Write i2c OK [19:01:29]MH_I2C_Read... [19:01:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:01:30]Read from MH i2c: E2 [19:01:30]MH_I2C_Read... [19:01:30]Read from MH i2c: E2 03 00 [19:01:30]MH_I2C_Read... [19:01:30]Read from MH i2c: E2 03 00 44 0D 00 90 00 C5 [19:01:30]RAPDU: 90 00 [19:01:30]wFMCommunicate OK [19:01:30]wFMCommunicate request_size=10 [19:01:30]MH_SAM_APDU [19:01:30]CAPDU: 80 0D 02 02 05 85 F4 6E 59 D8 [19:01:30]Write to MH i2c: E2 0D 00 45 0D 80 0D 02 02 05 00 85 F4 6E 59 D8 00 00 EE [19:01:30]Write i2c OK [19:01:30]MH_I2C_Read... [19:01:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:01:30]Read from MH i2c: E2 [19:01:30]MH_I2C_Read... [19:01:30]Read from MH i2c: E2 03 00 [19:01:30]MH_I2C_Read... [19:01:30]Read from MH i2c: E2 03 00 45 0D 00 90 00 C6 [19:01:30]RAPDU: 90 00 [19:01:30]wFMCommunicate OK [19:01:30]wFMCommunicate request_size=4 [19:01:30]MH_SAM_APDU [19:01:30]CAPDU: 80 0D 03 02 [19:01:30]Write to MH i2c: E2 08 00 46 0D 80 0D 03 02 00 00 00 00 CE [19:01:30]Write i2c OK [19:01:30]MH_I2C_Read... [19:01:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:01:30]Read from MH i2c: E2 [19:01:30]MH_I2C_Read... [19:01:30]Read from MH i2c: E2 0B 00 [19:01:30]MH_I2C_Read... [19:01:30]Read from MH i2c: E2 0B 00 46 0D 00 90 11 5B 44 26 AD BC A2 90 00 40 [19:01:30]RAPDU: 90 11 5B 44 26 AD BC A2 90 00 [19:01:30]wFMCommunicate OK [19:01:30]SAM_PROTO_SignData done [19:01:30]FM_MakeSignedData done [19:01:30]CreateOFDProtocolMessage [19:01:30]wFMCommunicate request_size=4 [19:01:30]MH_SAM_APDU [19:01:30]CAPDU: 80 11 00 00 [19:01:30]Write to MH i2c: E2 08 00 47 0D 80 11 00 00 00 00 00 00 CE [19:01:30]Write i2c OK [19:01:30]MH_I2C_Read... [19:01:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:01:30]Read from MH i2c: E2 [19:01:30]MH_I2C_Read... [19:01:30]Read from MH i2c: E2 17 00 [19:01:30]MH_I2C_Read... [19:01:30]Read from MH i2c: E2 17 00 47 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 1C [19:01: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:01:30]wFMCommunicate OK [19:01:30]CreateOFDProtocolMessage done [19:01:30]OFDSenderStorePacket 30447 [19:01:30]StoreOFDPacket docnum=30447 [19:01: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 90 03 07 01 8F 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 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 E5 00 00 00 F4 03 04 00 89 53 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 10 85 F4 6E 59 D8 90 11 5B 44 26 AD BC A2 [19:01:30]CheckFolder [19:01:30]dirname=/storage/ofd_packets [19:01:30]CheckFolder done [19:01:30]ProducePacketName [19:01:30]name=ofd_packets/00030447 [19:01:30]NVStorageSaveData ofd_packets/00030447 [19:01:30]File name is /storage/ofd_packets/00030447 [19:01:30]Write 301 bytes [19:01:30]NVStorageSaveData done [19:01:30]OFDSenderStorePacket done [19:01:30]KKMCreateOFDPacket done [19:01:30]NVStorageSaveData kkm_last_timestamp [19:01:30]File name is /storage/kkm_last_timestamp [19:01:30]Write 4 bytes [19:01:30]NVStorageSaveData done [19:01:30]ExternCall_PrintAddStr [19:01:30]wPrintStart [19:01:30]Write to MH i2c: 01 00 00 48 0D 55 [19:01:30]Write i2c OK [19:01:30]MH_I2C_Read... [19:01:30]Read from MH i2c: 01 [19:01:30]MH_I2C_Read... [19:01:30]Read from MH i2c: 01 07 00 [19:01:30]MH_I2C_Read... [19:01:30]Read from MH i2c: 01 07 00 48 0D 00 00 00 00 00 FF 0F 6A [19:01:30]RasterBufferAndPrint [19:01:30]line Счет N : (1)342850 [19:01:30]line ИНН: 02508201610067 [19:01:30]line Контрольно-Кассовый Чек [19:01:30]line ПРОДАЖА [19:01:30]line ТРК (МРК, ГНК) : 43 [19:01:30]line Товар: 2710124130 [19:01:30]line Аи-92-К-2 [19:01:30]line 2.990 * 66.90 [19:01:30]line = 200.03 [19:01:30]line НДС 12% НСП 1% [19:01:30]line > о реализуемом товаре [19:01:30]line ОКРУГЛЕНИЕ: -0.03 [19:01:30]line ИТОГО: 200.00 [19:01:30]line Внесено: 200.00 [19:01:30]line СДАЧА: 0.00 [19:01:30]line НСП 1% : 1.77 [19:01:30]line НДС 12% : 21.24 [19:01:30]line Наличными: 200.00 [19:01:30]line Безнал.: 0.00 [19:01:30]line Место: АЗС № 78 "Партнер Нефть" [19:01:30]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [19:01:30]line СНО: Общий режим [19:01:30]line Чек 229 20.10.2024 19:01 [19:01:30]line Смена: 114 ФФД: 1.0 [19:01:30]line ЗНМ: 0300000137 [19:01:30]line РНМ: 0000000000186857 [19:01:30]line Версия ККМ: v1.0 [19:01:30]line ФМ: 0000000002094219 [19:01:30]line ФД: 30447 [19:01:30]line ФПД: 18167517567448 [19:01:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T190129&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30447&fm=18167517567448&tin=02508201610067®Number=0000000000186857&sum=20000 [19:01:30]written 0, free lines is 4095 [19:01:30]OFD Sender: Processing packet 30447 [packets to send 10, broken 9] [19:01:30]ProducePacketName [19:01:30]name=ofd_packets/00030447 [19:01:30]OFD Sender: To server: pG, [19:01:30]CommunicateWithHost lk.salyk.kg:30040 [19:01:30]ConnectInit lk.salyk.kg [19:01:30]Connected sock=10 [19:01: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 90 03 07 01 8F 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 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 E5 00 00 00 F4 03 04 00 89 53 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 10 85 F4 6E 59 D8 90 11 5B 44 26 AD BC A2 [19:01: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 D3 CB 47 00 EF 1B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 EF 76 00 00 F4 03 04 00 0C FE 14 67 B6 04 01 00 00 48 7D 34 ED A5 5D A0 AE [19:01:30]CommunicateWithHost err = 0 [19:01:30]CheckOFDResponse [19:01:30]1017 (14) - 77093643461234 [19:01:30]1041 (16) - 0000000002094219 [19:01:30]1040 (4) - 30447 [19:01:30]1012 (4) - 20.10.2024 12:56 [19:01:30]1206 (1) - 0 [19:01:30]OFD Sender: Remove packet 30447 [19:01:30]ProducePacketName [19:01:30]name=ofd_packets/00030447 [19:01:30]NVStorageDeleteData [19:01:31]Write to MH i2c: 01 00 00 73 0D 80 [19:01:31]Write i2c OK [19:01:31]MH_I2C_Read... [19:01:31]Read from MH i2c: 01 [19:01:31]MH_I2C_Read... [19:01:31]Read from MH i2c: 01 07 00 [19:01:31]MH_I2C_Read... [19:01:31]Read from MH i2c: 01 07 00 73 0D 00 00 00 00 00 E8 0C 7B [19:01:31]RasterBufferAndPrint [19:01:31]line [19:01:31]line [19:01:31]line [19:01:31]line [19:01:31]line [19:01:31]written 0, free lines is 3310 [19:01:31]MH_Cut [19:01:31]Write to MH i2c: D1 01 00 7A 0D 01 59 [19:01:31]Write i2c OK [19:01:31]MH_I2C_Read... [19:01:31]Read from MH i2c: D1 [19:01:31]MH_I2C_Read... [19:01:31]Read from MH i2c: D1 01 00 [19:01:31]MH_I2C_Read... [19:01:31]Read from MH i2c: D1 01 00 7A 0D 00 58 [19:01:31]Write to MH i2c: 01 00 00 7B 0D 88 [19:01:31]Write i2c OK [19:01:31]MH_I2C_Read... [19:01:31]OFD Sender: No OFD packet to send [19:01:31]*** Cut start [19:01:31]*** Partial cut [19:01:31]*** CUTSNS_PIN = 1 [19:01:31]*** CUTSNS_PIN = 0 [19:01:31]*** Brake cut motor [19:01:32]Read from MH i2c: 01 [19:01:32]MH_I2C_Read... [19:01:32]*** Stop cut motor [19:01:32]*** Cut end [19:01:32]Read from MH i2c: 01 07 00 [19:01:32]MH_I2C_Read... [19:01:32]Read from MH i2c: 01 07 00 7B 0D 00 00 00 00 00 FF 0F 9D [19:01:32]process_action close_receipt done [19:01:32]requested_data is exist [19:01:32]produce_requested_data [19:01:32]requested_item fm.sn is exist - process it [19:01:32]wFMCommunicate request_size=4 [19:01:32]MH_SAM_APDU [19:01:32]CAPDU: 80 11 00 00 [19:01:32]Write to MH i2c: E2 08 00 7C 0D 80 11 00 00 00 00 00 00 03 [19:01:32]Write i2c OK [19:01:32]MH_I2C_Read... [19:01:32]Read from MH i2c: E2 [19:01:32]MH_I2C_Read... [19:01:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:01:32]Read from MH i2c: E2 17 00 [19:01:32]MH_I2C_Read... [19:01:32]Read from MH i2c: E2 17 00 7C 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 51 [19:01: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:01:32]wFMCommunicate OK [19:01:32]requested_item fd.num is exist - process it [19:01:32]SAM_PROTO_GetFieldsCounters [19:01:32]wFMCommunicate request_size=4 [19:01:32]MH_SAM_APDU [19:01:32]CAPDU: 80 13 00 00 [19:01:32]Write to MH i2c: E2 08 00 7D 0D 80 13 00 00 00 00 00 00 06 [19:01:32]Write i2c OK [19:01:32]MH_I2C_Read... [19:01:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:01:32]Read from MH i2c: E2 [19:01:32]MH_I2C_Read... [19:01:32]Read from MH i2c: E2 62 00 [19:01:32]MH_I2C_Read... [19:01:32]Read from MH i2c: E2 62 00 7D 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 B2 [19:01: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 EF 76 00 00 0E 04 04 00 72 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:01:32]wFMCommunicate OK [19:01:32]SAM_PROTO_GetFieldsCounters done [19:01:32]requested_item shift.num is exist - process it [19:01:32]requested_item shift.opened is exist - process it [19:01:32]req_shift_opened [19:01:32]FM_GetShiftState [19:01:32]SAM_PROTO_GetShiftState [19:01:32]wFMCommunicate request_size=4 [19:01:32]MH_SAM_APDU [19:01:32]CAPDU: 80 13 01 00 [19:01:32]Write to MH i2c: E2 08 00 7E 0D 80 13 01 00 00 00 00 00 08 [19:01:32]Write i2c OK [19:01:32]MH_I2C_Read... [19:01:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:01:32]Read from MH i2c: E2 [19:01:32]MH_I2C_Read... [19:01:32]Read from MH i2c: E2 0E 00 [19:01:32]MH_I2C_Read... [19:01:32]Read from MH i2c: E2 0E 00 7E 0D 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 EE [19:01:32]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [19:01:32]wFMCommunicate OK [19:01:32]SAM_PROTO_GetShiftState done [19:01:32]FM_GetShiftState done [19:01:32]req_shift_opened done [19:01:32]requested_item shift.open_date is exist - process it [19:01:32]req_shift_open_date [19:01:32]req_shift_open_date done [19:01:32]produce_requested_data done [19:01:32]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30447,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [19:01:32]process_action_free close_receipt [19:01:32]json_value_free [19:01:32]json_value_free done [19:01:32]process_json_proto returns [19:01:32]Send response to host [19:01:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30447,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [19:01:32]free response buf [19:01:32]execute_script done [19:01:32]execute_script returns [19:01:32]free content buf [19:01:32]Sock 7.Close socket [19:01:32]Sock 7.Thread stoped [19:01:36]OFD Sender: No OFD packet to send [19:01:41]OFD Sender: No OFD packet to send [19:01:46]OFD Sender: No OFD packet to send [19:01:51]OFD Sender: No OFD packet to send [19:01:56]OFD Sender: No OFD packet to send [19:02:01]OFD Sender: No OFD packet to send [19:02:06]OFD Sender: No OFD packet to send [19:02:11]OFD Sender: No OFD packet to send [19:02:16]OFD Sender: No OFD packet to send [19:02:20]accept exits with 9 [19:02:20]New connection [19:02:20]New thread 3067489636 created [19:02:20]Thread 3067346276 joined [19:02:20]Waiting for new connection... [19:02:20] Sock 9.Parse request [19:02:20]Sock 9.Check first char [19:02:20]Sock 9.First char is OK [19:02:20]request: POST /json_proto HTTP/1.0 [19:02:20]Method: POST [19:02:20]URL: /json_proto [19:02:20]Method is POST - this is cgi request [19:02:20]url: /json_proto [19:02:20]query_string will be loaded in cgi processing [19:02:20]execute_cgi json_proto POST (null) [19:02:20]execute_cgi path=json_proto method=POST [19:02:20]POST find Content-Length [19:02:20]Host: 172.17.51.3:8080 [19:02:20]Content-Length: 682 [19:02:20]Content-Type: application/json [19:02:20] [19:02:20]POST finish read [19:02:20]Found Content-Length = 682 [19:02:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342851", "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" ] } } [19:02:20]execute_script... [19:02: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)342851", "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" ] } } [19:02:20]POST & json_proto [19:02:20]process_json_proto [19:02:20]json parsed OK: [19:02:20]protocol is kg_v1.0 [19:02:20]action value=close_receipt [19:02:20]process_action close_receipt [19:02:20]cmd_close_receipt [19:02:20]MH_GetDate [19:02:20]Write to MH i2c: F0 00 00 7F 0D 7B [19:02:20]Write i2c OK [19:02:20]MH_I2C_Read... [19:02:20]Read from MH i2c: F0 [19:02:20]MH_I2C_Read... [19:02:20]Read from MH i2c: F0 09 00 [19:02:20]MH_I2C_Read... [19:02:20]Read from MH i2c: F0 09 00 7F 0D 00 BC 53 15 67 04 C1 95 66 CF [19:02:20]GetLastDocTimeStamp 1729450889 [19:02:20]current date 1729450940 [19:02:20]FM_GetShiftState [19:02:20]SAM_PROTO_GetShiftState [19:02:20]wFMCommunicate request_size=4 [19:02:20]MH_SAM_APDU [19:02:20]CAPDU: 80 13 01 00 [19:02:20]Write to MH i2c: E2 08 00 80 0D 80 13 01 00 00 00 00 00 0A [19:02:20]Write i2c OK [19:02:20]MH_I2C_Read... [19:02:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:02:20]Read from MH i2c: E2 [19:02:20]MH_I2C_Read... [19:02:20]Read from MH i2c: E2 0E 00 [19:02:20]MH_I2C_Read... [19:02:20]Read from MH i2c: E2 0E 00 80 0D 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 F0 [19:02:20]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [19:02:20]wFMCommunicate OK [19:02:20]SAM_PROTO_GetShiftState done [19:02:20]FM_GetShiftState done [19:02:20]opened in 1729384718 [19:02:20]opened+sec_in_day 1729471118 [19:02:20]quantity*price = 100015 [19:02:20]sum+1 = 100017 [19:02:20]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 СНО: Общий режим Чек 230 20.10.2024 19:02 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30448 ФПД: 270082043878075 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T190220&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30448&fm=270082043878075&tin=02508201610067®Number=0000000000186857&sum=100000 [19:02:21]StoreToDocumentArchive [19:02:21]shift 114 fd 30448 [19:02:21]save to /storage/0114/doc_00030448 [19:02:21]save last doc name /storage/0114/doc_00030448 to /storage/kkm_last_doc_name [19:02:21]save OK [19:02:21]Clear old archive folders... [19:02:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:02:21]tlvbuf is B6FDB950 [19:02:21]SAM_PROTO_ClearQueue [19:02:21]wFMCommunicate request_size=4 [19:02:21]MH_SAM_APDU [19:02:21]CAPDU: 80 09 00 00 [19:02:21]Write to MH i2c: E2 08 00 8D 0D 80 09 00 00 00 00 00 00 0C [19:02:21]Write i2c OK [19:02:21]MH_I2C_Read... [19:02:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:02:21]Read from MH i2c: E2 [19:02:21]MH_I2C_Read... [19:02:21]Read from MH i2c: E2 03 00 [19:02:21]MH_I2C_Read... [19:02:21]Read from MH i2c: E2 03 00 8D 0D 00 90 00 0E [19:02:21]RAPDU: 90 00 [19:02:21]wFMCommunicate OK [19:02:21]SAM_PROTO_ClearQueue done [19:02:21]KKMCreateOFDPacket [19:02:21]OFDProtocolAddRootSTLVToBuf [19:02:21]FM_MakeSignedData [19:02:21]FM_MakeSignedData [19:02:21]SAM_PROTO_SignData [19:02:21]wFMCommunicate request_size=4 [19:02:21]MH_SAM_APDU [19:02:21]CAPDU: 80 0D 01 02 [19:02:21]Write to MH i2c: E2 08 00 8E 0D 80 0D 01 02 00 00 00 00 14 [19:02:21]Write i2c OK [19:02:21]MH_I2C_Read... [19:02:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:02:21]Read from MH i2c: E2 [19:02:21]MH_I2C_Read... [19:02:21]Read from MH i2c: E2 03 00 [19:02:21]MH_I2C_Read... [19:02:21]Read from MH i2c: E2 03 00 8E 0D 00 90 00 0F [19:02:21]RAPDU: 90 00 [19:02:21]wFMCommunicate OK [19:02:21]wFMCommunicate request_size=255 [19:02:21]MH_SAM_APDU [19:02: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 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 E6 00 00 00 F4 03 04 00 BC 53 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 F5 [19:02:21]Write to MH i2c: E2 02 01 8F 0D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 E6 00 00 00 F4 03 04 00 BC 53 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 F5 00 00 DD [19:02:21]Write i2c OK [19:02:21]MH_I2C_Read... [19:02:21]OFD Sender: No OFD packet to send [19:02:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:02:21]Read from MH i2c: E2 [19:02:21]MH_I2C_Read... [19:02:21]Read from MH i2c: E2 03 00 [19:02:21]MH_I2C_Read... [19:02:21]Read from MH i2c: E2 03 00 8F 0D 00 90 00 10 [19:02:21]RAPDU: 90 00 [19:02:21]wFMCommunicate OK [19:02:21]wFMCommunicate request_size=10 [19:02:21]MH_SAM_APDU [19:02:21]CAPDU: 80 0D 02 02 05 A3 60 49 1A BB [19:02:21]Write to MH i2c: E2 0D 00 90 0D 80 0D 02 02 05 00 A3 60 49 1A BB 00 00 42 [19:02:21]Write i2c OK [19:02:21]MH_I2C_Read... [19:02:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:02:21]Read from MH i2c: E2 [19:02:21]MH_I2C_Read... [19:02:21]Read from MH i2c: E2 03 00 [19:02:21]MH_I2C_Read... [19:02:21]Read from MH i2c: E2 03 00 90 0D 00 90 00 11 [19:02:21]RAPDU: 90 00 [19:02:21]wFMCommunicate OK [19:02:21]wFMCommunicate request_size=4 [19:02:21]MH_SAM_APDU [19:02:21]CAPDU: 80 0D 03 02 [19:02:21]Write to MH i2c: E2 08 00 91 0D 80 0D 03 02 00 00 00 00 19 [19:02:21]Write i2c OK [19:02:21]MH_I2C_Read... [19:02:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:02:21]Read from MH i2c: E2 [19:02:21]MH_I2C_Read... [19:02:21]Read from MH i2c: E2 0B 00 [19:02:21]MH_I2C_Read... [19:02:21]Read from MH i2c: E2 0B 00 91 0D 00 7B F1 87 BA BF A7 AE E5 90 00 C0 [19:02:21]RAPDU: 7B F1 87 BA BF A7 AE E5 90 00 [19:02:21]wFMCommunicate OK [19:02:21]SAM_PROTO_SignData done [19:02:21]FM_MakeSignedData done [19:02:21]CreateOFDProtocolMessage [19:02:21]wFMCommunicate request_size=4 [19:02:21]MH_SAM_APDU [19:02:21]CAPDU: 80 11 00 00 [19:02:21]Write to MH i2c: E2 08 00 92 0D 80 11 00 00 00 00 00 00 19 [19:02:21]Write i2c OK [19:02:21]MH_I2C_Read... [19:02:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:02:21]Read from MH i2c: E2 [19:02:21]MH_I2C_Read... [19:02:21]Read from MH i2c: E2 17 00 [19:02:21]MH_I2C_Read... [19:02:21]Read from MH i2c: E2 17 00 92 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 67 [19:02:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [19:02:21]wFMCommunicate OK [19:02:21]CreateOFDProtocolMessage done [19:02:21]OFDSenderStorePacket 30448 [19:02:21]StoreOFDPacket docnum=30448 [19:02: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 DE A5 07 01 2C 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 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 E6 00 00 00 F4 03 04 00 BC 53 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 F5 A3 60 49 1A BB 7B F1 87 BA BF A7 AE E5 [19:02:21]CheckFolder [19:02:21]dirname=/storage/ofd_packets [19:02:21]CheckFolder done [19:02:21]ProducePacketName [19:02:21]name=ofd_packets/00030448 [19:02:21]NVStorageSaveData ofd_packets/00030448 [19:02:21]File name is /storage/ofd_packets/00030448 [19:02:21]Write 301 bytes [19:02:21]NVStorageSaveData done [19:02:21]OFDSenderStorePacket done [19:02:21]KKMCreateOFDPacket done [19:02:21]NVStorageSaveData kkm_last_timestamp [19:02:21]File name is /storage/kkm_last_timestamp [19:02:21]Write 4 bytes [19:02:21]NVStorageSaveData done [19:02:21]ExternCall_PrintAddStr [19:02:21]wPrintStart [19:02:21]Write to MH i2c: 01 00 00 93 0D A0 [19:02:21]Write i2c OK [19:02:21]MH_I2C_Read... [19:02:21]Read from MH i2c: 01 [19:02:21]MH_I2C_Read... [19:02:21]Read from MH i2c: 01 07 00 [19:02:21]MH_I2C_Read... [19:02:21]Read from MH i2c: 01 07 00 93 0D 00 00 00 00 00 FF 0F B5 [19:02:21]RasterBufferAndPrint [19:02:21]line Счет N : (1)342851 [19:02:21]line ИНН: 02508201610067 [19:02:21]line Контрольно-Кассовый Чек [19:02:21]line ПРОДАЖА [19:02:21]line ТРК (МРК, ГНК) : 63 [19:02:21]line Товар: 2710124130 [19:02:21]line Аи-92-К-2 [19:02:21]line 14.950 * 66.90 [19:02:21]line = 1000.16 [19:02:21]line НДС 12% НСП 1% [19:02:21]line > о реализуемом товаре [19:02:21]line ОКРУГЛЕНИЕ: -0.16 [19:02:21]line ИТОГО: 1000.00 [19:02:21]line Внесено: 1000.00 [19:02:21]line СДАЧА: 0.00 [19:02:21]line НСП 1% : 8.85 [19:02:21]line НДС 12% : 106.21 [19:02:21]line Наличными: 1000.00 [19:02:21]line Безнал.: 0.00 [19:02:21]line Место: АЗС № 78 "Партнер Нефть" [19:02:21]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [19:02:21]line СНО: Общий режим [19:02:21]line Чек 230 20.10.2024 19:02 [19:02:21]line Смена: 114 ФФД: 1.0 [19:02:21]line ЗНМ: 0300000137 [19:02:21]line РНМ: 0000000000186857 [19:02:21]line Версия ККМ: v1.0 [19:02:21]line ФМ: 0000000002094219 [19:02:21]line ФД: 30448 [19:02:21]line ФПД: 270082043878075 [19:02:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T190220&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30448&fm=270082043878075&tin=02508201610067®Number=0000000000186857&sum=100000 [19:02:22]OFD Sender: Processing packet 30448 [packets to send 10, broken 9] [19:02:22]ProducePacketName [19:02:22]name=ofd_packets/00030448 [19:02:22]OFD Sender: To server: pG, [19:02:22]CommunicateWithHost lk.salyk.kg:30040 [19:02:22]ConnectInit lk.salyk.kg [19:02:22]written 0, free lines is 4095 [19:02:22]Connected sock=10 [19:02: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 DE A5 07 01 2C 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 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 E6 00 00 00 F4 03 04 00 BC 53 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 F5 A3 60 49 1A BB 7B F1 87 BA BF A7 AE E5 [19:02: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 34 76 47 00 31 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 F0 76 00 00 F4 03 04 00 3F FE 14 67 B6 04 01 00 00 61 1B E6 93 64 CA D6 DB [19:02:22]CommunicateWithHost err = 0 [19:02:22]CheckOFDResponse [19:02:22]1017 (14) - 77093643461234 [19:02:22]1041 (16) - 0000000002094219 [19:02:22]1040 (4) - 30448 [19:02:22]1012 (4) - 20.10.2024 12:57 [19:02:22]1206 (1) - 0 [19:02:22]OFD Sender: Remove packet 30448 [19:02:22]ProducePacketName [19:02:22]name=ofd_packets/00030448 [19:02:22]NVStorageDeleteData [19:02:22]Write to MH i2c: 01 00 00 BE 0D CB [19:02:22]Write i2c OK [19:02:22]MH_I2C_Read... [19:02:22]Read from MH i2c: 01 [19:02:22]MH_I2C_Read... [19:02:22]Read from MH i2c: 01 07 00 [19:02:22]MH_I2C_Read... [19:02:22]Read from MH i2c: 01 07 00 BE 0D 00 00 00 00 00 F3 0C D1 [19:02:22]RasterBufferAndPrint [19:02:22]line [19:02:22]line [19:02:22]line [19:02:22]line [19:02:22]line [19:02:22]written 0, free lines is 3321 [19:02:22]MH_Cut [19:02:22]Write to MH i2c: D1 01 00 C5 0D 01 A4 [19:02:22]Write i2c OK [19:02:22]MH_I2C_Read... [19:02:22]Read from MH i2c: D1 [19:02:22]MH_I2C_Read... [19:02:22]Read from MH i2c: D1 01 00 [19:02:22]MH_I2C_Read... [19:02:22]Read from MH i2c: D1 01 00 C5 0D 00 A3 [19:02:22]Write to MH i2c: 01 00 00 C6 0D D3 [19:02:22]Write i2c OK [19:02:22]MH_I2C_Read... [19:02:22]OFD Sender: No OFD packet to send [19:02:23]*** Cut start [19:02:23]*** Partial cut [19:02:23]*** CUTSNS_PIN = 1 [19:02:23]*** CUTSNS_PIN = 0 [19:02:23]*** Brake cut motor [19:02:23]Read from MH i2c: 01 [19:02:23]MH_I2C_Read... [19:02:23]*** Stop cut motor [19:02:23]*** Cut end [19:02:23]Read from MH i2c: 01 07 00 [19:02:23]MH_I2C_Read... [19:02:23]Read from MH i2c: 01 07 00 C6 0D 00 00 00 00 00 FF 0F E8 [19:02:23]process_action close_receipt done [19:02:23]requested_data is exist [19:02:23]produce_requested_data [19:02:23]requested_item fm.sn is exist - process it [19:02:23]wFMCommunicate request_size=4 [19:02:23]MH_SAM_APDU [19:02:23]CAPDU: 80 11 00 00 [19:02:23]Write to MH i2c: E2 08 00 C7 0D 80 11 00 00 00 00 00 00 4E [19:02:23]Write i2c OK [19:02:23]MH_I2C_Read... [19:02:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:02:23]Read from MH i2c: E2 [19:02:23]MH_I2C_Read... [19:02:23]Read from MH i2c: E2 17 00 [19:02:23]MH_I2C_Read... [19:02:23]Read from MH i2c: E2 17 00 C7 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 9C [19:02:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [19:02:23]wFMCommunicate OK [19:02:23]requested_item fd.num is exist - process it [19:02:23]SAM_PROTO_GetFieldsCounters [19:02:23]wFMCommunicate request_size=4 [19:02:23]MH_SAM_APDU [19:02:23]CAPDU: 80 13 00 00 [19:02:23]Write to MH i2c: E2 08 00 C8 0D 80 13 00 00 00 00 00 00 51 [19:02:23]Write i2c OK [19:02:23]MH_I2C_Read... [19:02:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:02:23]Read from MH i2c: E2 [19:02:23]MH_I2C_Read... [19:02:23]Read from MH i2c: E2 62 00 [19:02:23]MH_I2C_Read... [19:02:23]Read from MH i2c: E2 62 00 C8 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 01 [19:02: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 F0 76 00 00 0E 04 04 00 72 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:02:23]wFMCommunicate OK [19:02:23]SAM_PROTO_GetFieldsCounters done [19:02:23]requested_item shift.num is exist - process it [19:02:23]requested_item shift.opened is exist - process it [19:02:23]req_shift_opened [19:02:23]FM_GetShiftState [19:02:23]SAM_PROTO_GetShiftState [19:02:23]wFMCommunicate request_size=4 [19:02:23]MH_SAM_APDU [19:02:23]CAPDU: 80 13 01 00 [19:02:23]Write to MH i2c: E2 08 00 C9 0D 80 13 01 00 00 00 00 00 53 [19:02:23]Write i2c OK [19:02:23]MH_I2C_Read... [19:02:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:02:24]Read from MH i2c: E2 [19:02:24]MH_I2C_Read... [19:02:24]Read from MH i2c: E2 0E 00 [19:02:24]MH_I2C_Read... [19:02:24]Read from MH i2c: E2 0E 00 C9 0D 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 39 [19:02:24]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [19:02:24]wFMCommunicate OK [19:02:24]SAM_PROTO_GetShiftState done [19:02:24]FM_GetShiftState done [19:02:24]req_shift_opened done [19:02:24]requested_item shift.open_date is exist - process it [19:02:24]req_shift_open_date [19:02:24]req_shift_open_date done [19:02:24]produce_requested_data done [19:02:24]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30448,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [19:02:24]process_action_free close_receipt [19:02:24]json_value_free [19:02:24]json_value_free done [19:02:24]process_json_proto returns [19:02:24]Send response to host [19:02:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30448,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [19:02:24]free response buf [19:02:24]execute_script done [19:02:24]execute_script returns [19:02:24]free content buf [19:02:24]Sock 9.Close socket [19:02:24]Sock 9.Thread stoped [19:02:27]OFD Sender: No OFD packet to send [19:02:32]OFD Sender: No OFD packet to send [19:02:37]OFD Sender: No OFD packet to send [19:02:42]OFD Sender: No OFD packet to send [19:02:47]OFD Sender: No OFD packet to send [19:02:52]OFD Sender: No OFD packet to send [19:02:57]OFD Sender: No OFD packet to send [19:03:02]OFD Sender: No OFD packet to send [19:03:07]OFD Sender: No OFD packet to send [19:03:12]OFD Sender: No OFD packet to send [19:03:17]OFD Sender: No OFD packet to send [19:03:19]accept exits with 7 [19:03:19]New connection [19:03:19]New thread 3067346276 created [19:03:19]Thread 3067489636 joined [19:03:19]Waiting for new connection... [19:03:19] Sock 7.Parse request [19:03:19]Sock 7.Check first char [19:03:19]Sock 7.First char is OK [19:03:19]request: POST /json_proto HTTP/1.0 [19:03:19]Method: POST [19:03:19]URL: /json_proto [19:03:19]Method is POST - this is cgi request [19:03:19]url: /json_proto [19:03:19]query_string will be loaded in cgi processing [19:03:19]execute_cgi json_proto POST (null) [19:03:19]execute_cgi path=json_proto method=POST [19:03:19]POST find Content-Length [19:03:19]Host: 172.17.51.3:8080 [19:03:19]Content-Length: 688 [19:03:19]Content-Type: application/json [19:03:19] [19:03:19]POST finish read [19:03:19]Found Content-Length = 688 [19:03:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342852", "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" ] } } [19:03:19]execute_script... [19:03: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)342852", "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" ] } } [19:03:19]POST & json_proto [19:03:19]process_json_proto [19:03:19]json parsed OK: [19:03:19]protocol is kg_v1.0 [19:03:19]action value=close_receipt [19:03:19]process_action close_receipt [19:03:19]cmd_close_receipt [19:03:19]MH_GetDate [19:03:19]Write to MH i2c: F0 00 00 CA 0D C6 [19:03:19]Write i2c OK [19:03:19]MH_I2C_Read... [19:03:19]Read from MH i2c: F0 [19:03:19]MH_I2C_Read... [19:03:19]Read from MH i2c: F0 09 00 [19:03:19]MH_I2C_Read... [19:03:19]Read from MH i2c: F0 09 00 CA 0D 00 F7 53 15 67 04 C1 95 66 55 [19:03:19]GetLastDocTimeStamp 1729450940 [19:03:19]current date 1729450999 [19:03:19]FM_GetShiftState [19:03:19]SAM_PROTO_GetShiftState [19:03:19]wFMCommunicate request_size=4 [19:03:19]MH_SAM_APDU [19:03:19]CAPDU: 80 13 01 00 [19:03:19]Write to MH i2c: E2 08 00 CB 0D 80 13 01 00 00 00 00 00 55 [19:03:19]Write i2c OK [19:03:19]MH_I2C_Read... [19:03:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:03:19]Read from MH i2c: E2 [19:03:19]MH_I2C_Read... [19:03:19]Read from MH i2c: E2 0E 00 [19:03:19]MH_I2C_Read... [19:03:19]Read from MH i2c: E2 0E 00 CB 0D 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 3B [19:03:19]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [19:03:19]wFMCommunicate OK [19:03:19]SAM_PROTO_GetShiftState done [19:03:19]FM_GetShiftState done [19:03:19]opened in 1729384718 [19:03:19]opened+sec_in_day 1729471118 [19:03:19]quantity*price = 100051 [19:03:19]sum+1 = 100052 [19:03:19]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 СНО: Общий режим Чек 231 20.10.2024 19:03 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30449 ФПД: 66012646625919 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T190319&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30449&fm=66012646625919&tin=02508201610067®Number=0000000000186857&sum=100000 [19:03:20]StoreToDocumentArchive [19:03:20]shift 114 fd 30449 [19:03:20]save to /storage/0114/doc_00030449 [19:03:20]save last doc name /storage/0114/doc_00030449 to /storage/kkm_last_doc_name [19:03:20]save OK [19:03:20]Clear old archive folders... [19:03:20]ProcessDocumentItem done err = 0, tmpTLVsize=257 [19:03:20]tlvbuf is 01E2DFB0 [19:03:20]SAM_PROTO_ClearQueue [19:03:20]wFMCommunicate request_size=4 [19:03:20]MH_SAM_APDU [19:03:20]CAPDU: 80 09 00 00 [19:03:20]Write to MH i2c: E2 08 00 D8 0D 80 09 00 00 00 00 00 00 57 [19:03:20]Write i2c OK [19:03:20]MH_I2C_Read... [19:03:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:03:20]Read from MH i2c: E2 [19:03:20]MH_I2C_Read... [19:03:20]Read from MH i2c: E2 03 00 [19:03:20]MH_I2C_Read... [19:03:20]Read from MH i2c: E2 03 00 D8 0D 00 90 00 59 [19:03:20]RAPDU: 90 00 [19:03:20]wFMCommunicate OK [19:03:20]SAM_PROTO_ClearQueue done [19:03:20]KKMCreateOFDPacket [19:03:20]OFDProtocolAddRootSTLVToBuf [19:03:20]FM_MakeSignedData [19:03:20]FM_MakeSignedData [19:03:20]SAM_PROTO_SignData [19:03:20]wFMCommunicate request_size=4 [19:03:20]MH_SAM_APDU [19:03:20]CAPDU: 80 0D 01 02 [19:03:20]Write to MH i2c: E2 08 00 D9 0D 80 0D 01 02 00 00 00 00 5F [19:03:20]Write i2c OK [19:03:20]MH_I2C_Read... [19:03:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:03:20]Read from MH i2c: E2 [19:03:20]MH_I2C_Read... [19:03:20]Read from MH i2c: E2 03 00 [19:03:20]MH_I2C_Read... [19:03:20]Read from MH i2c: E2 03 00 D9 0D 00 90 00 5A [19:03:20]RAPDU: 90 00 [19:03:20]wFMCommunicate OK [19:03:20]wFMCommunicate request_size=255 [19:03:20]MH_SAM_APDU [19:03:20]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 E7 00 00 00 F4 03 04 00 F7 53 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 [19:03:20]Write to MH i2c: E2 02 01 DA 0D 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 E7 00 00 00 F4 03 04 00 F7 53 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 00 3F [19:03:20]Write i2c OK [19:03:20]MH_I2C_Read... [19:03:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:03:20]Read from MH i2c: E2 [19:03:20]MH_I2C_Read... [19:03:20]Read from MH i2c: E2 03 00 [19:03:20]MH_I2C_Read... [19:03:20]Read from MH i2c: E2 03 00 DA 0D 00 90 00 5B [19:03:20]RAPDU: 90 00 [19:03:20]wFMCommunicate OK [19:03:20]wFMCommunicate request_size=16 [19:03:20]MH_SAM_APDU [19:03:20]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 3C 09 C4 5A 52 7F [19:03:20]Write to MH i2c: E2 13 00 DB 0D 80 0D 02 02 0B 00 00 35 04 06 00 3C 09 C4 5A 52 7F 00 00 EB [19:03:20]Write i2c OK [19:03:20]MH_I2C_Read... [19:03:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:03:20]Read from MH i2c: E2 [19:03:20]MH_I2C_Read... [19:03:20]Read from MH i2c: E2 03 00 [19:03:20]MH_I2C_Read... [19:03:20]Read from MH i2c: E2 03 00 DB 0D 00 90 00 5C [19:03:20]RAPDU: 90 00 [19:03:20]wFMCommunicate OK [19:03:20]wFMCommunicate request_size=4 [19:03:20]MH_SAM_APDU [19:03:20]CAPDU: 80 0D 03 02 [19:03:20]Write to MH i2c: E2 08 00 DC 0D 80 0D 03 02 00 00 00 00 64 [19:03:20]Write i2c OK [19:03:20]MH_I2C_Read... [19:03:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:03:20]Read from MH i2c: E2 [19:03:20]MH_I2C_Read... [19:03:20]Read from MH i2c: E2 0B 00 [19:03:20]MH_I2C_Read... [19:03:20]Read from MH i2c: E2 0B 00 DC 0D 00 6B 14 45 54 11 9B 34 6D 90 00 CA [19:03:20]RAPDU: 6B 14 45 54 11 9B 34 6D 90 00 [19:03:20]wFMCommunicate OK [19:03:20]SAM_PROTO_SignData done [19:03:20]FM_MakeSignedData done [19:03:20]CreateOFDProtocolMessage [19:03:20]wFMCommunicate request_size=4 [19:03:20]MH_SAM_APDU [19:03:20]CAPDU: 80 11 00 00 [19:03:20]Write to MH i2c: E2 08 00 DD 0D 80 11 00 00 00 00 00 00 64 [19:03:20]Write i2c OK [19:03:20]MH_I2C_Read... [19:03:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:03:20]Read from MH i2c: E2 [19:03:20]MH_I2C_Read... [19:03:20]Read from MH i2c: E2 17 00 [19:03:20]MH_I2C_Read... [19:03:20]Read from MH i2c: E2 17 00 DD 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 B2 [19:03:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [19:03:20]wFMCommunicate OK [19:03:20]CreateOFDProtocolMessage done [19:03:20]OFDSenderStorePacket 30449 [19:03:20]StoreOFDPacket docnum=30449 [19:03: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 15 01 00 00 0B 44 0D 01 11 58 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 E7 00 00 00 F4 03 04 00 F7 53 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 3C 09 C4 5A 52 7F 6B 14 45 54 11 9B 34 6D [19:03:20]CheckFolder [19:03:20]dirname=/storage/ofd_packets [19:03:20]CheckFolder done [19:03:20]ProducePacketName [19:03:20]name=ofd_packets/00030449 [19:03:20]NVStorageSaveData ofd_packets/00030449 [19:03:20]File name is /storage/ofd_packets/00030449 [19:03:20]Write 307 bytes [19:03:20]NVStorageSaveData done [19:03:20]OFDSenderStorePacket done [19:03:20]KKMCreateOFDPacket done [19:03:20]NVStorageSaveData kkm_last_timestamp [19:03:20]File name is /storage/kkm_last_timestamp [19:03:20]Write 4 bytes [19:03:20]NVStorageSaveData done [19:03:20]ExternCall_PrintAddStr [19:03:20]wPrintStart [19:03:20]Write to MH i2c: 01 00 00 DE 0D EB [19:03:20]Write i2c OK [19:03:20]MH_I2C_Read... [19:03:20]Read from MH i2c: 01 [19:03:20]MH_I2C_Read... [19:03:20]Read from MH i2c: 01 07 00 [19:03:20]MH_I2C_Read... [19:03:20]Read from MH i2c: 01 07 00 DE 0D 00 00 00 00 00 FF 0F 00 [19:03:20]RasterBufferAndPrint [19:03:20]line Счет N : (1)342852 [19:03:20]line ИНН: 02508201610067 [19:03:20]line Контрольно-Кассовый Чек [19:03:20]line ПРОДАЖА [19:03:20]line ТРК (МРК, ГНК) : 51 [19:03:20]line Товар: 2710194210 [19:03:20]line D-ENERGY Дт-К-2 [19:03:20]line 12.960 * 77.20 [19:03:20]line = 1000.51 [19:03:20]line НДС 12% НСП 1% [19:03:20]line > о реализуемом товаре [19:03:20]line ОКРУГЛЕНИЕ: -0.51 [19:03:20]line ИТОГО: 1000.00 [19:03:20]line Внесено: 1000.00 [19:03:20]line СДАЧА: 0.00 [19:03:20]line НСП 1% : 8.85 [19:03:20]line НДС 12% : 106.25 [19:03:20]line Наличными: 1000.00 [19:03:20]line Безнал.: 0.00 [19:03:20]line Место: АЗС № 78 "Партнер Нефть" [19:03:20]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [19:03:20]line СНО: Общий режим [19:03:20]line Чек 231 20.10.2024 19:03 [19:03:20]line Смена: 114 ФФД: 1.0 [19:03:20]line ЗНМ: 0300000137 [19:03:20]line РНМ: 0000000000186857 [19:03:20]line Версия ККМ: v1.0 [19:03:20]line ФМ: 0000000002094219 [19:03:20]line ФД: 30449 [19:03:20]line ФПД: 66012646625919 [19:03:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T190319&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30449&fm=66012646625919&tin=02508201610067®Number=0000000000186857&sum=100000 [19:03:21]OFD Sender: Processing packet 30449 [packets to send 10, broken 9] [19:03:21]ProducePacketName [19:03:21]name=ofd_packets/00030449 [19:03:21]OFD Sender: To server: pG, [19:03:21]CommunicateWithHost lk.salyk.kg:30040 [19:03:21]ConnectInit lk.salyk.kg [19:03:21]written 0, free lines is 4095 [19:03:21]Connected sock=11 [19:03: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 15 01 00 00 0B 44 0D 01 11 58 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 E7 00 00 00 F4 03 04 00 F7 53 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 3C 09 C4 5A 52 7F 6B 14 45 54 11 9B 34 6D [19:03: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 43 75 47 00 C1 93 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 F1 76 00 00 F4 03 04 00 7A FE 14 67 B6 04 01 00 00 41 A2 59 BA D3 B0 1E 21 [19:03:21]CommunicateWithHost err = 0 [19:03:21]CheckOFDResponse [19:03:21]1017 (14) - 77093643461234 [19:03:21]1041 (16) - 0000000002094219 [19:03:21]1040 (4) - 30449 [19:03:21]1012 (4) - 20.10.2024 12:58 [19:03:21]1206 (1) - 0 [19:03:21]OFD Sender: Remove packet 30449 [19:03:21]ProducePacketName [19:03:21]name=ofd_packets/00030449 [19:03:21]NVStorageDeleteData [19:03:21]Write to MH i2c: 01 00 00 09 0E 17 [19:03:21]Write i2c OK [19:03:21]MH_I2C_Read... [19:03:21]Read from MH i2c: 01 [19:03:21]MH_I2C_Read... [19:03:21]Read from MH i2c: 01 07 00 [19:03:21]MH_I2C_Read... [19:03:21]Read from MH i2c: 01 07 00 09 0E 00 00 00 00 00 F0 0C 1A [19:03:21]RasterBufferAndPrint [19:03:21]line [19:03:21]line [19:03:21]line [19:03:21]line [19:03:21]line [19:03:21]written 0, free lines is 3318 [19:03:21]MH_Cut [19:03:21]Write to MH i2c: D1 01 00 10 0E 01 F0 [19:03:21]Write i2c OK [19:03:21]MH_I2C_Read... [19:03:21]Read from MH i2c: D1 [19:03:21]MH_I2C_Read... [19:03:21]Read from MH i2c: D1 01 00 [19:03:21]MH_I2C_Read... [19:03:21]Read from MH i2c: D1 01 00 10 0E 00 EF [19:03:21]Write to MH i2c: 01 00 00 11 0E 1F [19:03:21]Write i2c OK [19:03:21]MH_I2C_Read... [19:03:22]OFD Sender: No OFD packet to send [19:03:22]*** Cut start [19:03:22]*** Partial cut [19:03:22]*** CUTSNS_PIN = 1 [19:03:22]*** CUTSNS_PIN = 0 [19:03:22]*** Brake cut motor [19:03:22]Read from MH i2c: 01 [19:03:23]MH_I2C_Read... [19:03:23]*** Stop cut motor [19:03:23]*** Cut end [19:03:23]Read from MH i2c: 01 07 00 [19:03:23]MH_I2C_Read... [19:03:23]Read from MH i2c: 01 07 00 11 0E 00 00 00 00 00 FF 0F 34 [19:03:23]process_action close_receipt done [19:03:23]requested_data is exist [19:03:23]produce_requested_data [19:03:23]requested_item fm.sn is exist - process it [19:03:23]wFMCommunicate request_size=4 [19:03:23]MH_SAM_APDU [19:03:23]CAPDU: 80 11 00 00 [19:03:23]Write to MH i2c: E2 08 00 12 0E 80 11 00 00 00 00 00 00 9A [19:03:23]Write i2c OK [19:03:23]MH_I2C_Read... [19:03:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:03:23]Read from MH i2c: E2 [19:03:23]MH_I2C_Read... [19:03:23]Read from MH i2c: E2 17 00 [19:03:23]MH_I2C_Read... [19:03:23]Read from MH i2c: E2 17 00 12 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 E8 [19:03:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [19:03:23]wFMCommunicate OK [19:03:23]requested_item fd.num is exist - process it [19:03:23]SAM_PROTO_GetFieldsCounters [19:03:23]wFMCommunicate request_size=4 [19:03:23]MH_SAM_APDU [19:03:23]CAPDU: 80 13 00 00 [19:03:23]Write to MH i2c: E2 08 00 13 0E 80 13 00 00 00 00 00 00 9D [19:03:23]Write i2c OK [19:03:23]MH_I2C_Read... [19:03:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:03:23]Read from MH i2c: E2 [19:03:23]MH_I2C_Read... [19:03:23]Read from MH i2c: E2 62 00 [19:03:23]MH_I2C_Read... [19:03:23]Read from MH i2c: E2 62 00 13 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 51 [19:03: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 F1 76 00 00 0E 04 04 00 72 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:03:23]wFMCommunicate OK [19:03:23]SAM_PROTO_GetFieldsCounters done [19:03:23]requested_item shift.num is exist - process it [19:03:23]requested_item shift.opened is exist - process it [19:03:23]req_shift_opened [19:03:23]FM_GetShiftState [19:03:23]SAM_PROTO_GetShiftState [19:03:23]wFMCommunicate request_size=4 [19:03:23]MH_SAM_APDU [19:03:23]CAPDU: 80 13 01 00 [19:03:23]Write to MH i2c: E2 08 00 14 0E 80 13 01 00 00 00 00 00 9F [19:03:23]Write i2c OK [19:03:23]MH_I2C_Read... [19:03:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:03:23]Read from MH i2c: E2 [19:03:23]MH_I2C_Read... [19:03:23]Read from MH i2c: E2 0E 00 [19:03:23]MH_I2C_Read... [19:03:23]Read from MH i2c: E2 0E 00 14 0E 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 85 [19:03:23]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [19:03:23]wFMCommunicate OK [19:03:23]SAM_PROTO_GetShiftState done [19:03:23]FM_GetShiftState done [19:03:23]req_shift_opened done [19:03:23]requested_item shift.open_date is exist - process it [19:03:23]req_shift_open_date [19:03:23]req_shift_open_date done [19:03:23]produce_requested_data done [19:03:23]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30449,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [19:03:23]process_action_free close_receipt [19:03:23]json_value_free [19:03:23]json_value_free done [19:03:23]process_json_proto returns [19:03:23]Send response to host [19:03:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30449,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [19:03:23]free response buf [19:03:23]execute_script done [19:03:23]execute_script returns [19:03:23]free content buf [19:03:23]Sock 7.Close socket [19:03:23]Sock 7.Thread stoped [19:03:27]OFD Sender: No OFD packet to send [19:03:32]OFD Sender: No OFD packet to send [19:03:37]OFD Sender: No OFD packet to send [19:03:42]OFD Sender: No OFD packet to send [19:03:47]OFD Sender: No OFD packet to send [19:03:52]OFD Sender: No OFD packet to send [19:03:57]accept exits with 9 [19:03:57]New connection [19:03:57]New thread 3067489636 created [19:03:57]Thread 3067346276 joined [19:03:57]Waiting for new connection... [19:03:57] Sock 9.Parse request [19:03:57]Sock 9.Check first char [19:03:57]Sock 9.First char is OK [19:03:57]request: POST /json_proto HTTP/1.0 [19:03:57]Method: POST [19:03:57]URL: /json_proto [19:03:57]Method is POST - this is cgi request [19:03:57]url: /json_proto [19:03:57]query_string will be loaded in cgi processing [19:03:57]execute_cgi json_proto POST (null) [19:03:57]execute_cgi path=json_proto method=POST [19:03:57]POST find Content-Length [19:03:57]Host: 172.17.51.3:8080 [19:03:57]Content-Length: 677 [19:03:57]Content-Type: application/json [19:03:57] [19:03:57]POST finish read [19:03:57]Found Content-Length = 677 [19:03:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342853", "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.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" ] } } [19:03:57]execute_script... [19:03:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342853", "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.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" ] } } [19:03:57]POST & json_proto [19:03:57]process_json_proto [19:03:57]json parsed OK: [19:03:57]protocol is kg_v1.0 [19:03:57]action value=close_receipt [19:03:57]process_action close_receipt [19:03:57]cmd_close_receipt [19:03:57]MH_GetDate [19:03:57]Write to MH i2c: F0 00 00 15 0E 12 [19:03:57]Write i2c OK [19:03:57]MH_I2C_Read... [19:03:57]Read from MH i2c: F0 [19:03:57]MH_I2C_Read... [19:03:57]Read from MH i2c: F0 09 00 [19:03:57]MH_I2C_Read... [19:03:57]Read from MH i2c: F0 09 00 15 0E 00 1D 54 15 67 04 C1 95 66 C8 [19:03:57]GetLastDocTimeStamp 1729450999 [19:03:57]current date 1729451037 [19:03:57]FM_GetShiftState [19:03:57]SAM_PROTO_GetShiftState [19:03:57]wFMCommunicate request_size=4 [19:03:57]MH_SAM_APDU [19:03:57]CAPDU: 80 13 01 00 [19:03:57]Write to MH i2c: E2 08 00 16 0E 80 13 01 00 00 00 00 00 A1 [19:03:57]Write i2c OK [19:03:57]MH_I2C_Read... [19:03:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:03:57]Read from MH i2c: E2 [19:03:57]MH_I2C_Read... [19:03:57]Read from MH i2c: E2 0E 00 [19:03:57]MH_I2C_Read... [19:03:57]Read from MH i2c: E2 0E 00 16 0E 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 87 [19:03:57]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [19:03:57]wFMCommunicate OK [19:03:57]SAM_PROTO_GetShiftState done [19:03:57]FM_GetShiftState done [19:03:57]opened in 1729384718 [19:03:57]opened+sec_in_day 1729471118 [19:03:57]quantity*price = 32045 [19:03:57]sum+1 = 32046 [19:03:57]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 СНО: Общий режим Чек 232 20.10.2024 19:03 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30450 ФПД: 59781021134501 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T190357&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30450&fm=59781021134501&tin=02508201610067®Number=0000000000186857&sum=32000 [19:03:58]StoreToDocumentArchive [19:03:58]shift 114 fd 30450 [19:03:58]save to /storage/0114/doc_00030450 [19:03:58]save last doc name /storage/0114/doc_00030450 to /storage/kkm_last_doc_name [19:03:58]save OK [19:03:58]Clear old archive folders... [19:03:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:03:58]tlvbuf is 01E13280 [19:03:58]SAM_PROTO_ClearQueue [19:03:58]wFMCommunicate request_size=4 [19:03:58]MH_SAM_APDU [19:03:58]CAPDU: 80 09 00 00 [19:03:58]Write to MH i2c: E2 08 00 23 0E 80 09 00 00 00 00 00 00 A3 [19:03:58]Write i2c OK [19:03:58]MH_I2C_Read... [19:03:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:03:58]Read from MH i2c: E2 [19:03:58]MH_I2C_Read... [19:03:58]Read from MH i2c: E2 03 00 [19:03:58]MH_I2C_Read... [19:03:58]Read from MH i2c: E2 03 00 23 0E 00 90 00 A5 [19:03:58]RAPDU: 90 00 [19:03:58]wFMCommunicate OK [19:03:58]SAM_PROTO_ClearQueue done [19:03:58]KKMCreateOFDPacket [19:03:58]OFDProtocolAddRootSTLVToBuf [19:03:58]FM_MakeSignedData [19:03:58]FM_MakeSignedData [19:03:58]SAM_PROTO_SignData [19:03:58]wFMCommunicate request_size=4 [19:03:58]MH_SAM_APDU [19:03:58]CAPDU: 80 0D 01 02 [19:03:58]Write to MH i2c: E2 08 00 24 0E 80 0D 01 02 00 00 00 00 AB [19:03:58]Write i2c OK [19:03:58]MH_I2C_Read... [19:03:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:03:58]Read from MH i2c: E2 [19:03:58]MH_I2C_Read... [19:03:58]Read from MH i2c: E2 03 00 [19:03:58]MH_I2C_Read... [19:03:58]Read from MH i2c: E2 03 00 24 0E 00 90 00 A6 [19:03:58]RAPDU: 90 00 [19:03:58]wFMCommunicate OK [19:03:58]wFMCommunicate request_size=255 [19:03:58]MH_SAM_APDU [19:03:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 B6 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 E8 00 00 00 F4 03 04 00 1D 54 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 36 [19:03:58]Write to MH i2c: E2 02 01 25 0E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 E8 00 00 00 F4 03 04 00 1D 54 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 36 00 00 B9 [19:03:58]Write i2c OK [19:03:58]MH_I2C_Read... [19:03:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:03:58]Read from MH i2c: E2 [19:03:58]MH_I2C_Read... [19:03:58]Read from MH i2c: E2 03 00 [19:03:58]MH_I2C_Read... [19:03:58]Read from MH i2c: E2 03 00 25 0E 00 90 00 A7 [19:03:58]RAPDU: 90 00 [19:03:58]wFMCommunicate OK [19:03:58]wFMCommunicate request_size=10 [19:03:58]MH_SAM_APDU [19:03:58]CAPDU: 80 0D 02 02 05 5E DA 87 6E A5 [19:03:58]Write to MH i2c: E2 0D 00 26 0E 80 0D 02 02 05 00 5E DA 87 6E A5 00 00 8A [19:03:58]Write i2c OK [19:03:58]MH_I2C_Read... [19:03:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:03:58]Read from MH i2c: E2 [19:03:58]MH_I2C_Read... [19:03:58]Read from MH i2c: E2 03 00 [19:03:58]MH_I2C_Read... [19:03:58]Read from MH i2c: E2 03 00 26 0E 00 90 00 A8 [19:03:58]RAPDU: 90 00 [19:03:58]wFMCommunicate OK [19:03:58]wFMCommunicate request_size=4 [19:03:58]MH_SAM_APDU [19:03:58]CAPDU: 80 0D 03 02 [19:03:58]Write to MH i2c: E2 08 00 27 0E 80 0D 03 02 00 00 00 00 B0 [19:03:58]Write i2c OK [19:03:58]MH_I2C_Read... [19:03:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:03:58]Read from MH i2c: E2 [19:03:58]MH_I2C_Read... [19:03:58]Read from MH i2c: E2 0B 00 [19:03:58]MH_I2C_Read... [19:03:58]Read from MH i2c: E2 0B 00 27 0E 00 3D B2 2E D4 15 2E B7 DB 90 00 77 [19:03:58]RAPDU: 3D B2 2E D4 15 2E B7 DB 90 00 [19:03:58]wFMCommunicate OK [19:03:58]SAM_PROTO_SignData done [19:03:58]FM_MakeSignedData done [19:03:58]CreateOFDProtocolMessage [19:03:58]wFMCommunicate request_size=4 [19:03:58]MH_SAM_APDU [19:03:58]CAPDU: 80 11 00 00 [19:03:58]Write to MH i2c: E2 08 00 28 0E 80 11 00 00 00 00 00 00 B0 [19:03:58]Write i2c OK [19:03:58]MH_I2C_Read... [19:03:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:03:58]Read from MH i2c: E2 [19:03:58]MH_I2C_Read... [19:03:58]Read from MH i2c: E2 17 00 [19:03:58]MH_I2C_Read... [19:03:58]Read from MH i2c: E2 17 00 28 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 FE [19:03:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [19:03:58]wFMCommunicate OK [19:03:58]CreateOFDProtocolMessage done [19:03:58]OFDSenderStorePacket 30450 [19:03:58]StoreOFDPacket docnum=30450 [19:03: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 A6 1D 07 01 A2 91 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 E8 00 00 00 F4 03 04 00 1D 54 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 36 5E DA 87 6E A5 3D B2 2E D4 15 2E B7 DB [19:03:58]CheckFolder [19:03:58]dirname=/storage/ofd_packets [19:03:58]CheckFolder done [19:03:58]ProducePacketName [19:03:58]name=ofd_packets/00030450 [19:03:58]NVStorageSaveData ofd_packets/00030450 [19:03:58]File name is /storage/ofd_packets/00030450 [19:03:58]Write 301 bytes [19:03:58]NVStorageSaveData done [19:03:58]OFDSenderStorePacket done [19:03:58]KKMCreateOFDPacket done [19:03:58]NVStorageSaveData kkm_last_timestamp [19:03:58]File name is /storage/kkm_last_timestamp [19:03:58]Write 4 bytes [19:03:58]NVStorageSaveData done [19:03:58]ExternCall_PrintAddStr [19:03:58]wPrintStart [19:03:58]Write to MH i2c: 01 00 00 29 0E 37 [19:03:58]Write i2c OK [19:03:58]MH_I2C_Read... [19:03:58]Read from MH i2c: 01 [19:03:58]MH_I2C_Read... [19:03:58]Read from MH i2c: 01 07 00 [19:03:58]MH_I2C_Read... [19:03:58]Read from MH i2c: 01 07 00 29 0E 00 00 00 00 00 FF 0F 4C [19:03:58]RasterBufferAndPrint [19:03:58]line Счет N : (1)342853 [19:03:58]line ИНН: 02508201610067 [19:03:58]line Контрольно-Кассовый Чек [19:03:58]line ПРОДАЖА [19:03:58]line ТРК (МРК, ГНК) : 33 [19:03:58]line Товар: 2710124130 [19:03:58]line Аи-92-К-2 [19:03:58]line 4.790 * 66.90 [19:03:58]line = 320.45 [19:03:58]line НДС 12% НСП 1% [19:03:58]line > о реализуемом товаре [19:03:58]line ОКРУГЛЕНИЕ: -0.45 [19:03:58]line ИТОГО: 320.00 [19:03:58]line Внесено: 320.00 [19:03:58]line СДАЧА: 0.00 [19:03:58]line НСП 1% : 2.84 [19:03:58]line НДС 12% : 34.03 [19:03:58]line Наличными: 320.00 [19:03:58]line Безнал.: 0.00 [19:03:58]line Место: АЗС № 78 "Партнер Нефть" [19:03:58]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [19:03:58]line СНО: Общий режим [19:03:58]line Чек 232 20.10.2024 19:03 [19:03:58]line Смена: 114 ФФД: 1.0 [19:03:58]line ЗНМ: 0300000137 [19:03:58]line РНМ: 0000000000186857 [19:03:58]line Версия ККМ: v1.0 [19:03:58]line ФМ: 0000000002094219 [19:03:58]line ФД: 30450 [19:03:59]line ФПД: 59781021134501 [19:03:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T190357&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30450&fm=59781021134501&tin=02508201610067®Number=0000000000186857&sum=32000 [19:03:59]OFD Sender: Processing packet 30450 [packets to send 10, broken 9] [19:03:59]ProducePacketName [19:03:59]name=ofd_packets/00030450 [19:03:59]OFD Sender: To server: pG, [19:03:59]CommunicateWithHost lk.salyk.kg:30040 [19:03:59]ConnectInit lk.salyk.kg [19:03:59]written 0, free lines is 4095 [19:03:59]Connected sock=10 [19:03: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 A6 1D 07 01 A2 91 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 E8 00 00 00 F4 03 04 00 1D 54 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 36 5E DA 87 6E A5 3D B2 2E D4 15 2E B7 DB [19:03: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 87 72 47 00 C8 3F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 F2 76 00 00 F4 03 04 00 A0 FE 14 67 B6 04 01 00 00 BC 27 9A 78 99 74 36 D1 [19:03:59]CommunicateWithHost err = 0 [19:03:59]CheckOFDResponse [19:03:59]1017 (14) - 77093643461234 [19:03:59]1041 (16) - 0000000002094219 [19:03:59]1040 (4) - 30450 [19:03:59]1012 (4) - 20.10.2024 12:59 [19:03:59]1206 (1) - 0 [19:03:59]OFD Sender: Remove packet 30450 [19:03:59]ProducePacketName [19:03:59]name=ofd_packets/00030450 [19:03:59]NVStorageDeleteData [19:03:59]Write to MH i2c: 01 00 00 54 0E 62 [19:03:59]Write i2c OK [19:03:59]MH_I2C_Read... [19:03:59]Read from MH i2c: 01 [19:03:59]MH_I2C_Read... [19:03:59]Read from MH i2c: 01 07 00 [19:03:59]MH_I2C_Read... [19:03:59]Read from MH i2c: 01 07 00 54 0E 00 00 00 00 00 E6 0C 5B [19:03:59]RasterBufferAndPrint [19:03:59]line [19:03:59]line [19:03:59]line [19:03:59]line [19:03:59]line [19:03:59]written 0, free lines is 3309 [19:03:59]MH_Cut [19:03:59]Write to MH i2c: D1 01 00 5B 0E 01 3B [19:03:59]Write i2c OK [19:03:59]MH_I2C_Read... [19:03:59]Read from MH i2c: D1 [19:03:59]MH_I2C_Read... [19:03:59]Read from MH i2c: D1 01 00 [19:03:59]MH_I2C_Read... [19:03:59]Read from MH i2c: D1 01 00 5B 0E 00 3A [19:03:59]Write to MH i2c: 01 00 00 5C 0E 6A [19:03:59]Write i2c OK [19:03:59]MH_I2C_Read... [19:03:59]OFD Sender: No OFD packet to send [19:04:00]*** Cut start [19:04:00]*** Partial cut [19:04:00]*** CUTSNS_PIN = 1 [19:04:00]*** CUTSNS_PIN = 0 [19:04:00]*** Brake cut motor [19:04:00]Read from MH i2c: 01 [19:04:00]MH_I2C_Read... [19:04:00]*** Stop cut motor [19:04:00]*** Cut end [19:04:00]Read from MH i2c: 01 07 00 [19:04:00]MH_I2C_Read... [19:04:00]Read from MH i2c: 01 07 00 5C 0E 00 00 00 00 00 FF 0F 7F [19:04:00]process_action close_receipt done [19:04:00]requested_data is exist [19:04:00]produce_requested_data [19:04:00]requested_item fm.sn is exist - process it [19:04:00]wFMCommunicate request_size=4 [19:04:00]MH_SAM_APDU [19:04:00]CAPDU: 80 11 00 00 [19:04:00]Write to MH i2c: E2 08 00 5D 0E 80 11 00 00 00 00 00 00 E5 [19:04:00]Write i2c OK [19:04:00]MH_I2C_Read... [19:04:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:04:00]Read from MH i2c: E2 [19:04:00]MH_I2C_Read... [19:04:00]Read from MH i2c: E2 17 00 [19:04:00]MH_I2C_Read... [19:04:00]Read from MH i2c: E2 17 00 5D 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 33 [19:04: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:04:00]wFMCommunicate OK [19:04:00]requested_item fd.num is exist - process it [19:04:00]SAM_PROTO_GetFieldsCounters [19:04:00]wFMCommunicate request_size=4 [19:04:00]MH_SAM_APDU [19:04:00]CAPDU: 80 13 00 00 [19:04:00]Write to MH i2c: E2 08 00 5E 0E 80 13 00 00 00 00 00 00 E8 [19:04:00]Write i2c OK [19:04:00]MH_I2C_Read... [19:04:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:04:00]Read from MH i2c: E2 [19:04:00]MH_I2C_Read... [19:04:00]Read from MH i2c: E2 62 00 [19:04:00]MH_I2C_Read... [19:04:00]Read from MH i2c: E2 62 00 5E 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 A0 [19:04: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 F2 76 00 00 0E 04 04 00 72 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:04:00]wFMCommunicate OK [19:04:00]SAM_PROTO_GetFieldsCounters done [19:04:00]requested_item shift.num is exist - process it [19:04:00]requested_item shift.opened is exist - process it [19:04:00]req_shift_opened [19:04:00]FM_GetShiftState [19:04:00]SAM_PROTO_GetShiftState [19:04:00]wFMCommunicate request_size=4 [19:04:00]MH_SAM_APDU [19:04:00]CAPDU: 80 13 01 00 [19:04:00]Write to MH i2c: E2 08 00 5F 0E 80 13 01 00 00 00 00 00 EA [19:04:00]Write i2c OK [19:04:00]MH_I2C_Read... [19:04:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:04:01]Read from MH i2c: E2 [19:04:01]MH_I2C_Read... [19:04:01]Read from MH i2c: E2 0E 00 [19:04:01]MH_I2C_Read... [19:04:01]Read from MH i2c: E2 0E 00 5F 0E 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 D0 [19:04:01]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [19:04:01]wFMCommunicate OK [19:04:01]SAM_PROTO_GetShiftState done [19:04:01]FM_GetShiftState done [19:04:01]req_shift_opened done [19:04:01]requested_item shift.open_date is exist - process it [19:04:01]req_shift_open_date [19:04:01]req_shift_open_date done [19:04:01]produce_requested_data done [19:04:01]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30450,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [19:04:01]process_action_free close_receipt [19:04:01]json_value_free [19:04:01]json_value_free done [19:04:01]process_json_proto returns [19:04:01]Send response to host [19:04:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30450,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [19:04:01]free response buf [19:04:01]execute_script done [19:04:01]execute_script returns [19:04:01]free content buf [19:04:01]Sock 9.Close socket [19:04:01]Sock 9.Thread stoped [19:04:04]OFD Sender: No OFD packet to send [19:04:09]OFD Sender: No OFD packet to send [19:04:14]OFD Sender: No OFD packet to send [19:04:19]OFD Sender: No OFD packet to send [19:04:24]OFD Sender: No OFD packet to send [19:04:29]OFD Sender: No OFD packet to send [19:04:34]OFD Sender: No OFD packet to send [19:04:39]OFD Sender: No OFD packet to send [19:04:44]OFD Sender: No OFD packet to send [19:04:49]OFD Sender: No OFD packet to send [19:04:54]OFD Sender: No OFD packet to send [19:04:59]OFD Sender: No OFD packet to send [19:05:04]OFD Sender: No OFD packet to send [19:05:09]OFD Sender: No OFD packet to send [19:05:14]OFD Sender: No OFD packet to send [19:05:19]OFD Sender: No OFD packet to send [19:05:24]OFD Sender: No OFD packet to send [19:05:29]OFD Sender: No OFD packet to send [19:05:34]OFD Sender: No OFD packet to send [19:05:37]accept exits with 7 [19:05:37]New connection [19:05:37]New thread 3067346276 created [19:05:37]Thread 3067489636 joined [19:05:37]Waiting for new connection... [19:05:37] Sock 7.Parse request [19:05:37]Sock 7.Check first char [19:05:37]Sock 7.First char is OK [19:05:37]request: POST /json_proto HTTP/1.0 [19:05:37]Method: POST [19:05:37]URL: /json_proto [19:05:37]Method is POST - this is cgi request [19:05:37]url: /json_proto [19:05:37]query_string will be loaded in cgi processing [19:05:37]execute_cgi json_proto POST (null) [19:05:37]execute_cgi path=json_proto method=POST [19:05:37]POST find Content-Length [19:05:37]Host: 172.17.51.3:8080 [19:05:37]Content-Length: 688 [19:05:37]Content-Type: application/json [19:05:37] [19:05:37]POST finish read [19:05:37]Found Content-Length = 688 [19:05:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342854", "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" ] } } [19:05:37]execute_script... [19:05: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)342854", "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" ] } } [19:05:37]POST & json_proto [19:05:37]process_json_proto [19:05:37]json parsed OK: [19:05:37]protocol is kg_v1.0 [19:05:37]action value=close_receipt [19:05:37]process_action close_receipt [19:05:37]cmd_close_receipt [19:05:37]MH_GetDate [19:05:37]Write to MH i2c: F0 00 00 60 0E 5D [19:05:37]Write i2c OK [19:05:37]MH_I2C_Read... [19:05:37]Read from MH i2c: F0 [19:05:37]MH_I2C_Read... [19:05:37]Read from MH i2c: F0 09 00 [19:05:37]MH_I2C_Read... [19:05:37]Read from MH i2c: F0 09 00 60 0E 00 82 54 15 67 04 C1 95 66 78 [19:05:37]GetLastDocTimeStamp 1729451037 [19:05:37]current date 1729451138 [19:05:37]FM_GetShiftState [19:05:37]SAM_PROTO_GetShiftState [19:05:37]wFMCommunicate request_size=4 [19:05:37]MH_SAM_APDU [19:05:37]CAPDU: 80 13 01 00 [19:05:37]Write to MH i2c: E2 08 00 61 0E 80 13 01 00 00 00 00 00 EC [19:05:37]Write i2c OK [19:05:37]MH_I2C_Read... [19:05:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:05:37]Read from MH i2c: E2 [19:05:37]MH_I2C_Read... [19:05:37]Read from MH i2c: E2 0E 00 [19:05:37]MH_I2C_Read... [19:05:37]Read from MH i2c: E2 0E 00 61 0E 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 D2 [19:05:37]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [19:05:37]wFMCommunicate OK [19:05:37]SAM_PROTO_GetShiftState done [19:05:37]FM_GetShiftState done [19:05:37]opened in 1729384718 [19:05:37]opened+sec_in_day 1729471118 [19:05:37]quantity*price = 300076 [19:05:37]sum+1 = 300077 [19:05:37]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 СНО: Общий режим Чек 233 20.10.2024 19:05 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30451 ФПД: 225500125726751 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T190538&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30451&fm=225500125726751&tin=02508201610067®Number=0000000000186857&sum=300000 [19:05:39]StoreToDocumentArchive [19:05:39]shift 114 fd 30451 [19:05:39]save to /storage/0114/doc_00030451 [19:05:39]save last doc name /storage/0114/doc_00030451 to /storage/kkm_last_doc_name [19:05:39]save OK [19:05:39]Clear old archive folders... [19:05:39]ProcessDocumentItem done err = 0, tmpTLVsize=257 [19:05:39]tlvbuf is B6F5D790 [19:05:39]SAM_PROTO_ClearQueue [19:05:39]wFMCommunicate request_size=4 [19:05:39]MH_SAM_APDU [19:05:39]CAPDU: 80 09 00 00 [19:05:39]Write to MH i2c: E2 08 00 6E 0E 80 09 00 00 00 00 00 00 EE [19:05:39]Write i2c OK [19:05:39]MH_I2C_Read... [19:05:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:05:39]Read from MH i2c: E2 [19:05:39]MH_I2C_Read... [19:05:39]Read from MH i2c: E2 03 00 [19:05:39]MH_I2C_Read... [19:05:39]Read from MH i2c: E2 03 00 6E 0E 00 90 00 F0 [19:05:39]RAPDU: 90 00 [19:05:39]wFMCommunicate OK [19:05:39]SAM_PROTO_ClearQueue done [19:05:39]KKMCreateOFDPacket [19:05:39]OFDProtocolAddRootSTLVToBuf [19:05:39]FM_MakeSignedData [19:05:39]FM_MakeSignedData [19:05:39]SAM_PROTO_SignData [19:05:39]wFMCommunicate request_size=4 [19:05:39]MH_SAM_APDU [19:05:39]CAPDU: 80 0D 01 02 [19:05:39]Write to MH i2c: E2 08 00 6F 0E 80 0D 01 02 00 00 00 00 F6 [19:05:39]Write i2c OK [19:05:39]MH_I2C_Read... [19:05:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:05:39]Read from MH i2c: E2 [19:05:39]MH_I2C_Read... [19:05:39]Read from MH i2c: E2 03 00 [19:05:39]MH_I2C_Read... [19:05:39]Read from MH i2c: E2 03 00 6F 0E 00 90 00 F1 [19:05:39]RAPDU: 90 00 [19:05:39]wFMCommunicate OK [19:05:39]wFMCommunicate request_size=255 [19:05:39]MH_SAM_APDU [19:05:39]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 E9 00 00 00 F4 03 04 00 82 54 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 [19:05:39]Write to MH i2c: E2 02 01 70 0E 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 E9 00 00 00 F4 03 04 00 82 54 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 00 48 [19:05:39]Write i2c OK [19:05:39]MH_I2C_Read... [19:05:39]Read from MH i2c: E2 [19:05:39]MH_I2C_Read... [19:05:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:05:39]Read from MH i2c: E2 03 00 [19:05:39]MH_I2C_Read... [19:05:39]Read from MH i2c: E2 03 00 70 0E 00 90 00 F2 [19:05:39]RAPDU: 90 00 [19:05:39]wFMCommunicate OK [19:05:39]wFMCommunicate request_size=16 [19:05:39]MH_SAM_APDU [19:05:39]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 CD 17 56 E4 08 1F [19:05:39]Write to MH i2c: E2 13 00 71 0E 80 0D 02 02 0B 00 00 35 04 06 00 CD 17 56 E4 08 1F 00 00 93 [19:05:39]Write i2c OK [19:05:39]MH_I2C_Read... [19:05:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:05:39]Read from MH i2c: E2 [19:05:39]MH_I2C_Read... [19:05:39]Read from MH i2c: E2 03 00 [19:05:39]MH_I2C_Read... [19:05:39]Read from MH i2c: E2 03 00 71 0E 00 90 00 F3 [19:05:39]RAPDU: 90 00 [19:05:39]wFMCommunicate OK [19:05:39]wFMCommunicate request_size=4 [19:05:39]MH_SAM_APDU [19:05:39]CAPDU: 80 0D 03 02 [19:05:39]Write to MH i2c: E2 08 00 72 0E 80 0D 03 02 00 00 00 00 FB [19:05:39]Write i2c OK [19:05:39]MH_I2C_Read... [19:05:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:05:39]Read from MH i2c: E2 [19:05:39]MH_I2C_Read... [19:05:39]Read from MH i2c: E2 0B 00 [19:05:39]MH_I2C_Read... [19:05:39]Read from MH i2c: E2 0B 00 72 0E 00 34 E5 57 AE 87 EC FE C4 90 00 4F [19:05:39]RAPDU: 34 E5 57 AE 87 EC FE C4 90 00 [19:05:39]wFMCommunicate OK [19:05:39]SAM_PROTO_SignData done [19:05:39]FM_MakeSignedData done [19:05:39]CreateOFDProtocolMessage [19:05:39]wFMCommunicate request_size=4 [19:05:39]MH_SAM_APDU [19:05:39]CAPDU: 80 11 00 00 [19:05:39]Write to MH i2c: E2 08 00 73 0E 80 11 00 00 00 00 00 00 FB [19:05:39]Write i2c OK [19:05:39]MH_I2C_Read... [19:05:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:05:39]Read from MH i2c: E2 [19:05:39]MH_I2C_Read... [19:05:39]Read from MH i2c: E2 17 00 [19:05:39]MH_I2C_Read... [19:05:39]Read from MH i2c: E2 17 00 73 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 49 [19:05: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:05:39]wFMCommunicate OK [19:05:39]CreateOFDProtocolMessage done [19:05:39]OFDSenderStorePacket 30451 [19:05:39]StoreOFDPacket docnum=30451 [19:05: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 96 C7 0D 01 07 7B 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 E9 00 00 00 F4 03 04 00 82 54 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 CD 17 56 E4 08 1F 34 E5 57 AE 87 EC FE C4 [19:05:39]CheckFolder [19:05:39]dirname=/storage/ofd_packets [19:05:39]CheckFolder done [19:05:39]ProducePacketName [19:05:39]name=ofd_packets/00030451 [19:05:39]NVStorageSaveData ofd_packets/00030451 [19:05:39]File name is /storage/ofd_packets/00030451 [19:05:39]Write 307 bytes [19:05:39]NVStorageSaveData done [19:05:39]OFDSenderStorePacket done [19:05:39]KKMCreateOFDPacket done [19:05:39]NVStorageSaveData kkm_last_timestamp [19:05:39]File name is /storage/kkm_last_timestamp [19:05:39]Write 4 bytes [19:05:39]NVStorageSaveData done [19:05:39]ExternCall_PrintAddStr [19:05:39]wPrintStart [19:05:39]Write to MH i2c: 01 00 00 74 0E 82 [19:05:39]Write i2c OK [19:05:39]MH_I2C_Read... [19:05:39]Read from MH i2c: 01 [19:05:39]MH_I2C_Read... [19:05:39]Read from MH i2c: 01 07 00 [19:05:39]MH_I2C_Read... [19:05:39]Read from MH i2c: 01 07 00 74 0E 00 00 00 00 00 FF 0F 97 [19:05:39]RasterBufferAndPrint [19:05:39]line Счет N : (1)342854 [19:05:39]line ИНН: 02508201610067 [19:05:39]line Контрольно-Кассовый Чек [19:05:39]line ПРОДАЖА [19:05:39]line ТРК (МРК, ГНК) : 51 [19:05:39]line Товар: 2710194210 [19:05:39]line D-ENERGY Дт-К-2 [19:05:39]line 38.870 * 77.20 [19:05:39]line = 3000.76 [19:05:39]line НДС 12% НСП 1% [19:05:39]line > о реализуемом товаре [19:05:39]line ОКРУГЛЕНИЕ: -0.76 [19:05:39]line ИТОГО: 3000.00 [19:05:39]line Внесено: 3000.00 [19:05:39]line СДАЧА: 0.00 [19:05:39]line НСП 1% : 26.55 [19:05:39]line НДС 12% : 318.66 [19:05:39]line Наличными: 3000.00 [19:05:39]line Безнал.: 0.00 [19:05:39]line Место: АЗС № 78 "Партнер Нефть" [19:05:39]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [19:05:39]line СНО: Общий режим [19:05:39]line Чек 233 20.10.2024 19:05 [19:05:39]line Смена: 114 ФФД: 1.0 [19:05:39]line ЗНМ: 0300000137 [19:05:39]line РНМ: 0000000000186857 [19:05:39]line Версия ККМ: v1.0 [19:05:39]line ФМ: 0000000002094219 [19:05:39]line ФД: 30451 [19:05:39]line ФПД: 225500125726751 [19:05:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T190538&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30451&fm=225500125726751&tin=02508201610067®Number=0000000000186857&sum=300000 [19:05:39]OFD Sender: Processing packet 30451 [packets to send 10, broken 9] [19:05:39]ProducePacketName [19:05:39]name=ofd_packets/00030451 [19:05:39]OFD Sender: To server: pG, [19:05:39]CommunicateWithHost lk.salyk.kg:30040 [19:05:39]ConnectInit lk.salyk.kg [19:05:39]written 0, free lines is 4095 [19:05:39]Connected sock=10 [19:05: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 96 C7 0D 01 07 7B 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 E9 00 00 00 F4 03 04 00 82 54 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 CD 17 56 E4 08 1F 34 E5 57 AE 87 EC FE C4 [19:05: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 B4 E1 47 00 C2 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 F3 76 00 00 F4 03 04 00 05 FF 14 67 B6 04 01 00 00 0E 0D 73 E9 F0 C9 B1 EE [19:05:40]CommunicateWithHost err = 0 [19:05:40]CheckOFDResponse [19:05:40]1017 (14) - 77093643461234 [19:05:40]1041 (16) - 0000000002094219 [19:05:40]1040 (4) - 30451 [19:05:40]1012 (4) - 20.10.2024 13:00 [19:05:40]1206 (1) - 0 [19:05:40]OFD Sender: Remove packet 30451 [19:05:40]ProducePacketName [19:05:40]name=ofd_packets/00030451 [19:05:40]NVStorageDeleteData [19:05:40]Write to MH i2c: 01 00 00 9F 0E AD [19:05:40]Write i2c OK [19:05:40]MH_I2C_Read... [19:05:40]Read from MH i2c: 01 [19:05:40]MH_I2C_Read... [19:05:40]Read from MH i2c: 01 07 00 [19:05:40]MH_I2C_Read... [19:05:40]Read from MH i2c: 01 07 00 9F 0E 00 00 00 00 00 F1 0C B1 [19:05:40]RasterBufferAndPrint [19:05:40]line [19:05:40]line [19:05:40]line [19:05:40]line [19:05:40]line [19:05:40]written 0, free lines is 3319 [19:05:40]MH_Cut [19:05:40]Write to MH i2c: D1 01 00 A6 0E 01 86 [19:05:40]Write i2c OK [19:05:40]MH_I2C_Read... [19:05:40]Read from MH i2c: D1 [19:05:40]MH_I2C_Read... [19:05:40]Read from MH i2c: D1 01 00 [19:05:40]MH_I2C_Read... [19:05:40]Read from MH i2c: D1 01 00 A6 0E 00 85 [19:05:40]Write to MH i2c: 01 00 00 A7 0E B5 [19:05:40]Write i2c OK [19:05:40]MH_I2C_Read... [19:05:40]OFD Sender: No OFD packet to send [19:05:40]*** Cut start [19:05:40]*** Partial cut [19:05:40]*** CUTSNS_PIN = 1 [19:05:41]*** CUTSNS_PIN = 0 [19:05:41]*** Brake cut motor [19:05:41]Read from MH i2c: 01 [19:05:41]MH_I2C_Read... [19:05:41]*** Stop cut motor [19:05:41]*** Cut end [19:05:41]Read from MH i2c: 01 07 00 [19:05:41]MH_I2C_Read... [19:05:41]Read from MH i2c: 01 07 00 A7 0E 00 00 00 00 00 FF 0F CA [19:05:41]process_action close_receipt done [19:05:41]requested_data is exist [19:05:41]produce_requested_data [19:05:41]requested_item fm.sn is exist - process it [19:05:41]wFMCommunicate request_size=4 [19:05:41]MH_SAM_APDU [19:05:41]CAPDU: 80 11 00 00 [19:05:41]Write to MH i2c: E2 08 00 A8 0E 80 11 00 00 00 00 00 00 30 [19:05:41]Write i2c OK [19:05:41]MH_I2C_Read... [19:05:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:05:41]Read from MH i2c: E2 [19:05:41]MH_I2C_Read... [19:05:41]Read from MH i2c: E2 17 00 [19:05:41]MH_I2C_Read... [19:05:41]Read from MH i2c: E2 17 00 A8 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 7E [19:05: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:05:41]wFMCommunicate OK [19:05:41]requested_item fd.num is exist - process it [19:05:41]SAM_PROTO_GetFieldsCounters [19:05:41]wFMCommunicate request_size=4 [19:05:41]MH_SAM_APDU [19:05:41]CAPDU: 80 13 00 00 [19:05:41]Write to MH i2c: E2 08 00 A9 0E 80 13 00 00 00 00 00 00 33 [19:05:41]Write i2c OK [19:05:41]MH_I2C_Read... [19:05:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:05:41]Read from MH i2c: E2 [19:05:41]MH_I2C_Read... [19:05:41]Read from MH i2c: E2 62 00 [19:05:41]MH_I2C_Read... [19:05:41]Read from MH i2c: E2 62 00 A9 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 EF [19:05: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 F3 76 00 00 0E 04 04 00 72 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:05:41]wFMCommunicate OK [19:05:41]SAM_PROTO_GetFieldsCounters done [19:05:41]requested_item shift.num is exist - process it [19:05:41]requested_item shift.opened is exist - process it [19:05:41]req_shift_opened [19:05:41]FM_GetShiftState [19:05:41]SAM_PROTO_GetShiftState [19:05:41]wFMCommunicate request_size=4 [19:05:41]MH_SAM_APDU [19:05:41]CAPDU: 80 13 01 00 [19:05:41]Write to MH i2c: E2 08 00 AA 0E 80 13 01 00 00 00 00 00 35 [19:05:41]Write i2c OK [19:05:41]MH_I2C_Read... [19:05:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:05:41]Read from MH i2c: E2 [19:05:41]MH_I2C_Read... [19:05:41]Read from MH i2c: E2 0E 00 [19:05:41]MH_I2C_Read... [19:05:41]Read from MH i2c: E2 0E 00 AA 0E 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 1B [19:05:41]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [19:05:41]wFMCommunicate OK [19:05:41]SAM_PROTO_GetShiftState done [19:05:41]FM_GetShiftState done [19:05:41]req_shift_opened done [19:05:41]requested_item shift.open_date is exist - process it [19:05:41]req_shift_open_date [19:05:41]req_shift_open_date done [19:05:41]produce_requested_data done [19:05:41]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30451,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [19:05:41]process_action_free close_receipt [19:05:41]json_value_free [19:05:41]json_value_free done [19:05:41]process_json_proto returns [19:05:41]Send response to host [19:05:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30451,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [19:05:41]free response buf [19:05:41]execute_script done [19:05:41]execute_script returns [19:05:41]free content buf [19:05:41]Sock 7.Close socket [19:05:41]Sock 7.Thread stoped [19:05:45]OFD Sender: No OFD packet to send [19:05:50]OFD Sender: No OFD packet to send [19:05:55]OFD Sender: No OFD packet to send [19:06:00]OFD Sender: No OFD packet to send [19:06:05]OFD Sender: No OFD packet to send [19:06:10]OFD Sender: No OFD packet to send [19:06:15]OFD Sender: No OFD packet to send [19:06:20]OFD Sender: No OFD packet to send [19:06:25]OFD Sender: No OFD packet to send [19:06:30]OFD Sender: No OFD packet to send [19:06:35]OFD Sender: No OFD packet to send [19:06:40]OFD Sender: No OFD packet to send [19:06:45]OFD Sender: No OFD packet to send [19:06:50]OFD Sender: No OFD packet to send [19:06:55]OFD Sender: No OFD packet to send [19:07:00]OFD Sender: No OFD packet to send [19:07:05]OFD Sender: No OFD packet to send [19:07:10]OFD Sender: No OFD packet to send [19:07:15]OFD Sender: No OFD packet to send [19:07:20]OFD Sender: No OFD packet to send [19:07:25]OFD Sender: No OFD packet to send [19:07:30]OFD Sender: No OFD packet to send [19:07:35]OFD Sender: No OFD packet to send [19:07:40]OFD Sender: No OFD packet to send [19:07:45]OFD Sender: No OFD packet to send [19:07:50]OFD Sender: No OFD packet to send [19:07:55]OFD Sender: No OFD packet to send [19:08:00]OFD Sender: No OFD packet to send [19:08:05]OFD Sender: No OFD packet to send [19:08:10]OFD Sender: No OFD packet to send [19:08:15]OFD Sender: No OFD packet to send [19:08:20]OFD Sender: No OFD packet to send [19:08:25]OFD Sender: No OFD packet to send [19:08:30]OFD Sender: No OFD packet to send [19:08:35]OFD Sender: No OFD packet to send [19:08:40]OFD Sender: No OFD packet to send [19:08:45]OFD Sender: No OFD packet to send [19:08:50]OFD Sender: No OFD packet to send [19:08:55]OFD Sender: No OFD packet to send [19:09:00]OFD Sender: No OFD packet to send [19:09:05]OFD Sender: No OFD packet to send [19:09:09]accept exits with 9 [19:09:09]New connection [19:09:09]New thread 3067489636 created [19:09:09]Thread 3067346276 joined [19:09:09]Waiting for new connection... [19:09:09] Sock 9.Parse request [19:09:09]Sock 9.Check first char [19:09:09]Sock 9.First char is OK [19:09:09]request: POST /json_proto HTTP/1.0 [19:09:09]Method: POST [19:09:09]URL: /json_proto [19:09:09]Method is POST - this is cgi request [19:09:09]url: /json_proto [19:09:09]query_string will be loaded in cgi processing [19:09:09]execute_cgi json_proto POST (null) [19:09:09]execute_cgi path=json_proto method=POST [19:09:09]POST find Content-Length [19:09:09]Host: 172.17.51.3:8080 [19:09:09]Content-Length: 678 [19:09:09]Content-Type: application/json [19:09:09] [19:09:09]POST finish read [19:09:09]Found Content-Length = 678 [19:09:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342855", "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" ] } } [19:09:09]execute_script... [19:09:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342855", "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" ] } } [19:09:09]POST & json_proto [19:09:09]process_json_proto [19:09:09]json parsed OK: [19:09:09]protocol is kg_v1.0 [19:09:09]action value=close_receipt [19:09:09]process_action close_receipt [19:09:09]cmd_close_receipt [19:09:09]MH_GetDate [19:09:09]Write to MH i2c: F0 00 00 AB 0E A8 [19:09:09]Write i2c OK [19:09:09]MH_I2C_Read... [19:09:09]Read from MH i2c: F0 [19:09:09]MH_I2C_Read... [19:09:09]Read from MH i2c: F0 09 00 [19:09:09]MH_I2C_Read... [19:09:09]Read from MH i2c: F0 09 00 AB 0E 00 55 55 15 67 04 C1 95 66 97 [19:09:09]GetLastDocTimeStamp 1729451138 [19:09:09]current date 1729451349 [19:09:09]FM_GetShiftState [19:09:09]SAM_PROTO_GetShiftState [19:09:09]wFMCommunicate request_size=4 [19:09:09]MH_SAM_APDU [19:09:09]CAPDU: 80 13 01 00 [19:09:09]Write to MH i2c: E2 08 00 AC 0E 80 13 01 00 00 00 00 00 37 [19:09:09]Write i2c OK [19:09:09]MH_I2C_Read... [19:09:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:09:09]Read from MH i2c: E2 [19:09:09]MH_I2C_Read... [19:09:09]Read from MH i2c: E2 0E 00 [19:09:09]MH_I2C_Read... [19:09:09]Read from MH i2c: E2 0E 00 AC 0E 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 1D [19:09:09]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [19:09:09]wFMCommunicate OK [19:09:09]SAM_PROTO_GetShiftState done [19:09:09]FM_GetShiftState done [19:09:09]opened in 1729384718 [19:09:09]opened+sec_in_day 1729471118 [19:09:09]quantity*price = 70044 [19:09:09]sum+1 = 70045 [19:09:09]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 СНО: Общий режим Чек 234 20.10.2024 19:09 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30452 ФПД: 133275723489866 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T190909&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30452&fm=133275723489866&tin=02508201610067®Number=0000000000186857&sum=70000 [19:09:10]StoreToDocumentArchive [19:09:10]shift 114 fd 30452 [19:09:10]save to /storage/0114/doc_00030452 [19:09:10]save last doc name /storage/0114/doc_00030452 to /storage/kkm_last_doc_name [19:09:10]save OK [19:09:10]Clear old archive folders... [19:09:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:09:10]tlvbuf is B6F440E0 [19:09:10]SAM_PROTO_ClearQueue [19:09:10]wFMCommunicate request_size=4 [19:09:10]MH_SAM_APDU [19:09:10]CAPDU: 80 09 00 00 [19:09:10]Write to MH i2c: E2 08 00 B9 0E 80 09 00 00 00 00 00 00 39 [19:09:10]Write i2c OK [19:09:10]MH_I2C_Read... [19:09:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:09:10]Read from MH i2c: E2 [19:09:10]MH_I2C_Read... [19:09:10]Read from MH i2c: E2 03 00 [19:09:10]MH_I2C_Read... [19:09:10]Read from MH i2c: E2 03 00 B9 0E 00 90 00 3B [19:09:10]RAPDU: 90 00 [19:09:10]wFMCommunicate OK [19:09:10]SAM_PROTO_ClearQueue done [19:09:10]KKMCreateOFDPacket [19:09:10]OFDProtocolAddRootSTLVToBuf [19:09:10]FM_MakeSignedData [19:09:10]FM_MakeSignedData [19:09:10]SAM_PROTO_SignData [19:09:10]wFMCommunicate request_size=4 [19:09:10]MH_SAM_APDU [19:09:10]CAPDU: 80 0D 01 02 [19:09:10]Write to MH i2c: E2 08 00 BA 0E 80 0D 01 02 00 00 00 00 41 [19:09:10]Write i2c OK [19:09:10]MH_I2C_Read... [19:09:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:09:10]Read from MH i2c: E2 [19:09:10]MH_I2C_Read... [19:09:10]Read from MH i2c: E2 03 00 [19:09:10]MH_I2C_Read... [19:09:10]Read from MH i2c: E2 03 00 BA 0E 00 90 00 3C [19:09:10]RAPDU: 90 00 [19:09:10]wFMCommunicate OK [19:09:10]wFMCommunicate request_size=255 [19:09:10]MH_SAM_APDU [19:09: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 EA 00 00 00 F4 03 04 00 55 55 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 79 [19:09:10]Write to MH i2c: E2 02 01 BB 0E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 EA 00 00 00 F4 03 04 00 55 55 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 79 00 00 47 [19:09:10]Write i2c OK [19:09:10]MH_I2C_Read... [19:09:10]Read from MH i2c: E2 [19:09:10]MH_I2C_Read... [19:09:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:09:10]Read from MH i2c: E2 03 00 [19:09:10]MH_I2C_Read... [19:09:10]Read from MH i2c: E2 03 00 BB 0E 00 90 00 3D [19:09:10]RAPDU: 90 00 [19:09:10]wFMCommunicate OK [19:09:10]wFMCommunicate request_size=10 [19:09:10]MH_SAM_APDU [19:09:10]CAPDU: 80 0D 02 02 05 36 AC 27 E2 4A [19:09:10]Write to MH i2c: E2 0D 00 BC 0E 80 0D 02 02 05 00 36 AC 27 E2 4A 00 00 83 [19:09:10]Write i2c OK [19:09:10]MH_I2C_Read... [19:09:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:09:10]Read from MH i2c: E2 [19:09:10]MH_I2C_Read... [19:09:10]Read from MH i2c: E2 03 00 [19:09:10]MH_I2C_Read... [19:09:10]Read from MH i2c: E2 03 00 BC 0E 00 90 00 3E [19:09:10]RAPDU: 90 00 [19:09:10]wFMCommunicate OK [19:09:10]wFMCommunicate request_size=4 [19:09:10]MH_SAM_APDU [19:09:10]CAPDU: 80 0D 03 02 [19:09:10]Write to MH i2c: E2 08 00 BD 0E 80 0D 03 02 00 00 00 00 46 [19:09:10]Write i2c OK [19:09:10]MH_I2C_Read... [19:09:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:09:10]Read from MH i2c: E2 [19:09:10]MH_I2C_Read... [19:09:10]Read from MH i2c: E2 0B 00 [19:09:10]MH_I2C_Read... [19:09:10]Read from MH i2c: E2 0B 00 BD 0E 00 62 25 E5 D1 94 CB 1B E8 90 00 E6 [19:09:10]RAPDU: 62 25 E5 D1 94 CB 1B E8 90 00 [19:09:10]wFMCommunicate OK [19:09:10]SAM_PROTO_SignData done [19:09:10]FM_MakeSignedData done [19:09:10]CreateOFDProtocolMessage [19:09:10]wFMCommunicate request_size=4 [19:09:10]MH_SAM_APDU [19:09:10]CAPDU: 80 11 00 00 [19:09:10]Write to MH i2c: E2 08 00 BE 0E 80 11 00 00 00 00 00 00 46 [19:09:10]Write i2c OK [19:09:10]MH_I2C_Read... [19:09:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:09:10]Read from MH i2c: E2 [19:09:10]MH_I2C_Read... [19:09:10]Read from MH i2c: E2 17 00 [19:09:10]MH_I2C_Read... [19:09:10]Read from MH i2c: E2 17 00 BE 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 94 [19:09: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:09:10]wFMCommunicate OK [19:09:10]CreateOFDProtocolMessage done [19:09:10]OFDSenderStorePacket 30452 [19:09:10]StoreOFDPacket docnum=30452 [19:09: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 BD 4B 07 01 2D 96 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 EA 00 00 00 F4 03 04 00 55 55 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 79 36 AC 27 E2 4A 62 25 E5 D1 94 CB 1B E8 [19:09:10]CheckFolder [19:09:10]dirname=/storage/ofd_packets [19:09:10]CheckFolder done [19:09:10]ProducePacketName [19:09:10]name=ofd_packets/00030452 [19:09:10]NVStorageSaveData ofd_packets/00030452 [19:09:10]File name is /storage/ofd_packets/00030452 [19:09:10]Write 301 bytes [19:09:10]NVStorageSaveData done [19:09:10]OFDSenderStorePacket done [19:09:10]KKMCreateOFDPacket done [19:09:10]NVStorageSaveData kkm_last_timestamp [19:09:10]File name is /storage/kkm_last_timestamp [19:09:10]Write 4 bytes [19:09:10]NVStorageSaveData done [19:09:10]ExternCall_PrintAddStr [19:09:10]wPrintStart [19:09:10]Write to MH i2c: 01 00 00 BF 0E CD [19:09:10]Write i2c OK [19:09:10]MH_I2C_Read... [19:09:10]Read from MH i2c: 01 [19:09:10]MH_I2C_Read... [19:09:10]Read from MH i2c: 01 07 00 [19:09:10]MH_I2C_Read... [19:09:10]Read from MH i2c: 01 07 00 BF 0E 00 00 00 00 00 FF 0F E2 [19:09:10]RasterBufferAndPrint [19:09:10]line Счет N : (1)342855 [19:09:10]line ИНН: 02508201610067 [19:09:10]line Контрольно-Кассовый Чек [19:09:10]line ПРОДАЖА [19:09:10]line ТРК (МРК, ГНК) : 33 [19:09:10]line Товар: 2710124130 [19:09:10]line Аи-92-К-2 [19:09:10]line 10.470 * 66.90 [19:09:10]line = 700.44 [19:09:10]line НДС 12% НСП 1% [19:09:10]line > о реализуемом товаре [19:09:10]line ОКРУГЛЕНИЕ: -0.44 [19:09:10]line ИТОГО: 700.00 [19:09:10]line Внесено: 700.00 [19:09:10]line СДАЧА: 0.00 [19:09:10]line НСП 1% : 6.20 [19:09:10]line НДС 12% : 74.38 [19:09:10]line Наличными: 700.00 [19:09:10]line Безнал.: 0.00 [19:09:10]line Место: АЗС № 78 "Партнер Нефть" [19:09:10]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [19:09:10]line СНО: Общий режим [19:09:10]line Чек 234 20.10.2024 19:09 [19:09:10]line Смена: 114 ФФД: 1.0 [19:09:10]line ЗНМ: 0300000137 [19:09:10]line РНМ: 0000000000186857 [19:09:10]line Версия ККМ: v1.0 [19:09:10]line ФМ: 0000000002094219 [19:09:11]line ФД: 30452 [19:09:11]line ФПД: 133275723489866 [19:09:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T190909&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30452&fm=133275723489866&tin=02508201610067®Number=0000000000186857&sum=70000 [19:09:11]OFD Sender: Processing packet 30452 [packets to send 10, broken 9] [19:09:11]ProducePacketName [19:09:11]name=ofd_packets/00030452 [19:09:11]OFD Sender: To server: pG, [19:09:11]CommunicateWithHost lk.salyk.kg:30040 [19:09:11]ConnectInit lk.salyk.kg [19:09:11]written 0, free lines is 4095 [19:09:11]Connected sock=10 [19:09: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 BD 4B 07 01 2D 96 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 EA 00 00 00 F4 03 04 00 55 55 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 79 36 AC 27 E2 4A 62 25 E5 D1 94 CB 1B E8 [19:09: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 A5 77 47 00 FC 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 F4 76 00 00 F4 03 04 00 D8 FF 14 67 B6 04 01 00 00 81 8C A0 47 CF 97 9C 14 [19:09:11]CommunicateWithHost err = 0 [19:09:11]CheckOFDResponse [19:09:11]1017 (14) - 77093643461234 [19:09:11]1041 (16) - 0000000002094219 [19:09:11]1040 (4) - 30452 [19:09:11]1012 (4) - 20.10.2024 13:04 [19:09:11]1206 (1) - 0 [19:09:11]OFD Sender: Remove packet 30452 [19:09:11]ProducePacketName [19:09:11]name=ofd_packets/00030452 [19:09:11]NVStorageDeleteData [19:09:11]Write to MH i2c: 01 00 00 EA 0E F8 [19:09:11]Write i2c OK [19:09:11]MH_I2C_Read... [19:09:11]Read from MH i2c: 01 [19:09:11]MH_I2C_Read... [19:09:11]Read from MH i2c: 01 07 00 [19:09:11]MH_I2C_Read... [19:09:11]Read from MH i2c: 01 07 00 EA 0E 00 00 00 00 00 E5 0C F0 [19:09:11]RasterBufferAndPrint [19:09:11]line [19:09:11]line [19:09:11]line [19:09:11]line [19:09:11]line [19:09:11]written 0, free lines is 3307 [19:09:11]MH_Cut [19:09:11]Write to MH i2c: D1 01 00 F1 0E 01 D1 [19:09:11]Write i2c OK [19:09:11]MH_I2C_Read... [19:09:11]Read from MH i2c: D1 [19:09:11]MH_I2C_Read... [19:09:11]Read from MH i2c: D1 01 00 [19:09:11]MH_I2C_Read... [19:09:11]Read from MH i2c: D1 01 00 F1 0E 00 D0 [19:09:11]Write to MH i2c: 01 00 00 F2 0E 00 [19:09:11]Write i2c OK [19:09:11]MH_I2C_Read... [19:09:11]OFD Sender: No OFD packet to send [19:09:12]*** Cut start [19:09:12]*** Partial cut [19:09:12]*** CUTSNS_PIN = 1 [19:09:12]*** CUTSNS_PIN = 0 [19:09:12]*** Brake cut motor [19:09:12]Read from MH i2c: 01 [19:09:12]MH_I2C_Read... [19:09:12]*** Stop cut motor [19:09:12]*** Cut end [19:09:12]Read from MH i2c: 01 07 00 [19:09:12]MH_I2C_Read... [19:09:12]Read from MH i2c: 01 07 00 F2 0E 00 00 00 00 00 FF 0F 15 [19:09:12]process_action close_receipt done [19:09:12]requested_data is exist [19:09:12]produce_requested_data [19:09:12]requested_item fm.sn is exist - process it [19:09:12]wFMCommunicate request_size=4 [19:09:12]MH_SAM_APDU [19:09:12]CAPDU: 80 11 00 00 [19:09:12]Write to MH i2c: E2 08 00 F3 0E 80 11 00 00 00 00 00 00 7B [19:09:12]Write i2c OK [19:09:12]MH_I2C_Read... [19:09:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:09:12]Read from MH i2c: E2 [19:09:12]MH_I2C_Read... [19:09:12]Read from MH i2c: E2 17 00 [19:09:12]MH_I2C_Read... [19:09:12]Read from MH i2c: E2 17 00 F3 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 C9 [19:09:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [19:09:12]wFMCommunicate OK [19:09:12]requested_item fd.num is exist - process it [19:09:12]SAM_PROTO_GetFieldsCounters [19:09:12]wFMCommunicate request_size=4 [19:09:12]MH_SAM_APDU [19:09:12]CAPDU: 80 13 00 00 [19:09:12]Write to MH i2c: E2 08 00 F4 0E 80 13 00 00 00 00 00 00 7E [19:09:12]Write i2c OK [19:09:12]MH_I2C_Read... [19:09:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:09:12]Read from MH i2c: E2 [19:09:12]MH_I2C_Read... [19:09:12]Read from MH i2c: E2 62 00 [19:09:12]MH_I2C_Read... [19:09:12]Read from MH i2c: E2 62 00 F4 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 3E [19:09: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 F4 76 00 00 0E 04 04 00 72 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:09:13]wFMCommunicate OK [19:09:13]SAM_PROTO_GetFieldsCounters done [19:09:13]requested_item shift.num is exist - process it [19:09:13]requested_item shift.opened is exist - process it [19:09:13]req_shift_opened [19:09:13]FM_GetShiftState [19:09:13]SAM_PROTO_GetShiftState [19:09:13]wFMCommunicate request_size=4 [19:09:13]MH_SAM_APDU [19:09:13]CAPDU: 80 13 01 00 [19:09:13]Write to MH i2c: E2 08 00 F5 0E 80 13 01 00 00 00 00 00 80 [19:09:13]Write i2c OK [19:09:13]MH_I2C_Read... [19:09:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:09:13]Read from MH i2c: E2 [19:09:13]MH_I2C_Read... [19:09:13]Read from MH i2c: E2 0E 00 [19:09:13]MH_I2C_Read... [19:09:13]Read from MH i2c: E2 0E 00 F5 0E 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 66 [19:09:13]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [19:09:13]wFMCommunicate OK [19:09:13]SAM_PROTO_GetShiftState done [19:09:13]FM_GetShiftState done [19:09:13]req_shift_opened done [19:09:13]requested_item shift.open_date is exist - process it [19:09:13]req_shift_open_date [19:09:13]req_shift_open_date done [19:09:13]produce_requested_data done [19:09:13]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30452,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [19:09:13]process_action_free close_receipt [19:09:13]json_value_free [19:09:13]json_value_free done [19:09:13]process_json_proto returns [19:09:13]Send response to host [19:09:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30452,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [19:09:13]free response buf [19:09:13]execute_script done [19:09:13]execute_script returns [19:09:13]free content buf [19:09:13]Sock 9.Close socket [19:09:13]Sock 9.Thread stoped [19:09:16]OFD Sender: No OFD packet to send [19:09:21]OFD Sender: No OFD packet to send [19:09:26]OFD Sender: No OFD packet to send [19:09:31]OFD Sender: No OFD packet to send [19:09:36]OFD Sender: No OFD packet to send [19:09:41]OFD Sender: No OFD packet to send [19:09:46]OFD Sender: No OFD packet to send [19:09:51]OFD Sender: No OFD packet to send [19:09:56]OFD Sender: No OFD packet to send [19:10:01]OFD Sender: No OFD packet to send [19:10:06]OFD Sender: No OFD packet to send [19:10:11]OFD Sender: No OFD packet to send [19:10:16]OFD Sender: No OFD packet to send [19:10:21]OFD Sender: No OFD packet to send [19:10:26]OFD Sender: No OFD packet to send [19:10:31]OFD Sender: No OFD packet to send [19:10:36]OFD Sender: No OFD packet to send [19:10:41]OFD Sender: No OFD packet to send [19:10:46]OFD Sender: No OFD packet to send [19:10:51]OFD Sender: No OFD packet to send [19:10:57]OFD Sender: No OFD packet to send [19:11:02]OFD Sender: No OFD packet to send [19:11:07]OFD Sender: No OFD packet to send [19:11:12]OFD Sender: No OFD packet to send [19:11:17]OFD Sender: No OFD packet to send [19:11:22]OFD Sender: No OFD packet to send [19:11:27]OFD Sender: No OFD packet to send [19:11:32]OFD Sender: No OFD packet to send [19:11:37]OFD Sender: No OFD packet to send [19:11:42]OFD Sender: No OFD packet to send [19:11:47]OFD Sender: No OFD packet to send [19:11:52]OFD Sender: No OFD packet to send [19:11:57]OFD Sender: No OFD packet to send [19:12:02]OFD Sender: No OFD packet to send [19:12:07]OFD Sender: No OFD packet to send [19:12:12]OFD Sender: No OFD packet to send [19:12:17]OFD Sender: No OFD packet to send [19:12:22]OFD Sender: No OFD packet to send [19:12:27]OFD Sender: No OFD packet to send [19:12:32]OFD Sender: No OFD packet to send [19:12:37]OFD Sender: No OFD packet to send [19:12:40]accept exits with 7 [19:12:40]New connection [19:12:40]New thread 3067346276 created [19:12:40]Thread 3067489636 joined [19:12:40]Waiting for new connection... [19:12:40] Sock 7.Parse request [19:12:40]Sock 7.Check first char [19:12:40]Sock 7.First char is OK [19:12:40]request: POST /json_proto HTTP/1.0 [19:12:40]Method: POST [19:12:40]URL: /json_proto [19:12:40]Method is POST - this is cgi request [19:12:40]url: /json_proto [19:12:40]query_string will be loaded in cgi processing [19:12:40]execute_cgi json_proto POST (null) [19:12:40]execute_cgi path=json_proto method=POST [19:12:40]POST find Content-Length [19:12:40]Host: 172.17.51.3:8080 [19:12:40]Content-Length: 682 [19:12:40]Content-Type: application/json [19:12:40] [19:12:40]POST finish read [19:12:40]Found Content-Length = 682 [19:12:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342856", "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" ] } } [19:12:40]execute_script... [19:12:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342856", "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" ] } } [19:12:40]POST & json_proto [19:12:40]process_json_proto [19:12:40]json parsed OK: [19:12:40]protocol is kg_v1.0 [19:12:40]action value=close_receipt [19:12:40]process_action close_receipt [19:12:40]cmd_close_receipt [19:12:40]MH_GetDate [19:12:40]Write to MH i2c: F0 00 00 F6 0E F3 [19:12:40]Write i2c OK [19:12:40]MH_I2C_Read... [19:12:40]Read from MH i2c: F0 [19:12:40]MH_I2C_Read... [19:12:40]Read from MH i2c: F0 09 00 [19:12:40]MH_I2C_Read... [19:12:40]Read from MH i2c: F0 09 00 F6 0E 00 29 56 15 67 04 C1 95 66 B7 [19:12:40]GetLastDocTimeStamp 1729451349 [19:12:40]current date 1729451561 [19:12:40]FM_GetShiftState [19:12:40]SAM_PROTO_GetShiftState [19:12:40]wFMCommunicate request_size=4 [19:12:40]MH_SAM_APDU [19:12:40]CAPDU: 80 13 01 00 [19:12:40]Write to MH i2c: E2 08 00 F7 0E 80 13 01 00 00 00 00 00 82 [19:12:40]Write i2c OK [19:12:40]MH_I2C_Read... [19:12:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:12:41]Read from MH i2c: E2 [19:12:41]MH_I2C_Read... [19:12:41]Read from MH i2c: E2 0E 00 [19:12:41]MH_I2C_Read... [19:12:41]Read from MH i2c: E2 0E 00 F7 0E 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 68 [19:12:41]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [19:12:41]wFMCommunicate OK [19:12:41]SAM_PROTO_GetShiftState done [19:12:41]FM_GetShiftState done [19:12:41]opened in 1729384718 [19:12:41]opened+sec_in_day 1729471118 [19:12:41]quantity*price = 100015 [19:12:41]sum+1 = 100017 [19:12:41]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 СНО: Общий режим Чек 235 20.10.2024 19:12 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30453 ФПД: 241742441701624 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T191241&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30453&fm=241742441701624&tin=02508201610067®Number=0000000000186857&sum=100000 [19:12:42]StoreToDocumentArchive [19:12:42]shift 114 fd 30453 [19:12:42]save to /storage/0114/doc_00030453 [19:12:42]save last doc name /storage/0114/doc_00030453 to /storage/kkm_last_doc_name [19:12:42]save OK [19:12:42]Clear old archive folders... [19:12:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:12:42]tlvbuf is 01E0CAA0 [19:12:42]SAM_PROTO_ClearQueue [19:12:42]wFMCommunicate request_size=4 [19:12:42]MH_SAM_APDU [19:12:42]CAPDU: 80 09 00 00 [19:12:42]Write to MH i2c: E2 08 00 04 0F 80 09 00 00 00 00 00 00 85 [19:12:42]Write i2c OK [19:12:42]MH_I2C_Read... [19:12:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:12:42]Read from MH i2c: E2 [19:12:42]MH_I2C_Read... [19:12:42]Read from MH i2c: E2 03 00 [19:12:42]MH_I2C_Read... [19:12:42]Read from MH i2c: E2 03 00 04 0F 00 90 00 87 [19:12:42]RAPDU: 90 00 [19:12:42]wFMCommunicate OK [19:12:42]SAM_PROTO_ClearQueue done [19:12:42]KKMCreateOFDPacket [19:12:42]OFDProtocolAddRootSTLVToBuf [19:12:42]FM_MakeSignedData [19:12:42]FM_MakeSignedData [19:12:42]SAM_PROTO_SignData [19:12:42]wFMCommunicate request_size=4 [19:12:42]MH_SAM_APDU [19:12:42]CAPDU: 80 0D 01 02 [19:12:42]Write to MH i2c: E2 08 00 05 0F 80 0D 01 02 00 00 00 00 8D [19:12:42]Write i2c OK [19:12:42]MH_I2C_Read... [19:12:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:12:42]Read from MH i2c: E2 [19:12:42]MH_I2C_Read... [19:12:42]Read from MH i2c: E2 03 00 [19:12:42]MH_I2C_Read... [19:12:42]Read from MH i2c: E2 03 00 05 0F 00 90 00 88 [19:12:42]RAPDU: 90 00 [19:12:42]wFMCommunicate OK [19:12:42]wFMCommunicate request_size=255 [19:12:42]MH_SAM_APDU [19:12:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 EB 00 00 00 F4 03 04 00 29 56 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 DB [19:12:42]Write to MH i2c: E2 02 01 06 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 EB 00 00 00 F4 03 04 00 29 56 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 DB 00 00 B6 [19:12:42]Write i2c OK [19:12:42]MH_I2C_Read... [19:12:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:12:42]Read from MH i2c: E2 [19:12:42]MH_I2C_Read... [19:12:42]Read from MH i2c: E2 03 00 [19:12:42]MH_I2C_Read... [19:12:42]Read from MH i2c: E2 03 00 06 0F 00 90 00 89 [19:12:42]RAPDU: 90 00 [19:12:42]wFMCommunicate OK [19:12:42]wFMCommunicate request_size=10 [19:12:42]MH_SAM_APDU [19:12:42]CAPDU: 80 0D 02 02 05 DD 0C 5D 60 F8 [19:12:42]Write to MH i2c: E2 0D 00 07 0F 80 0D 02 02 05 00 DD 0C 5D 60 F8 00 00 38 [19:12:42]Write i2c OK [19:12:42]MH_I2C_Read... [19:12:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:12:42]Read from MH i2c: E2 [19:12:42]MH_I2C_Read... [19:12:42]Read from MH i2c: E2 03 00 [19:12:42]MH_I2C_Read... [19:12:42]Read from MH i2c: E2 03 00 07 0F 00 90 00 8A [19:12:42]RAPDU: 90 00 [19:12:42]wFMCommunicate OK [19:12:42]wFMCommunicate request_size=4 [19:12:42]MH_SAM_APDU [19:12:42]CAPDU: 80 0D 03 02 [19:12:42]Write to MH i2c: E2 08 00 08 0F 80 0D 03 02 00 00 00 00 92 [19:12:42]Write i2c OK [19:12:42]MH_I2C_Read... [19:12:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:12:42]Read from MH i2c: E2 [19:12:42]MH_I2C_Read... [19:12:42]Read from MH i2c: E2 0B 00 [19:12:42]MH_I2C_Read... [19:12:42]Read from MH i2c: E2 0B 00 08 0F 00 EB 77 5B CD 2A 73 96 C5 90 00 15 [19:12:42]RAPDU: EB 77 5B CD 2A 73 96 C5 90 00 [19:12:42]wFMCommunicate OK [19:12:42]SAM_PROTO_SignData done [19:12:42]FM_MakeSignedData done [19:12:42]CreateOFDProtocolMessage [19:12:42]wFMCommunicate request_size=4 [19:12:42]MH_SAM_APDU [19:12:42]CAPDU: 80 11 00 00 [19:12:42]Write to MH i2c: E2 08 00 09 0F 80 11 00 00 00 00 00 00 92 [19:12:42]Write i2c OK [19:12:42]MH_I2C_Read... [19:12:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:12:42]Read from MH i2c: E2 [19:12:42]MH_I2C_Read... [19:12:42]Read from MH i2c: E2 17 00 [19:12:42]MH_I2C_Read... [19:12:42]Read from MH i2c: E2 17 00 09 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 E0 [19:12:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [19:12:42]wFMCommunicate OK [19:12:42]CreateOFDProtocolMessage done [19:12:42]OFDSenderStorePacket 30453 [19:12:42]StoreOFDPacket docnum=30453 [19:12: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 91 E3 07 01 AB 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 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 EB 00 00 00 F4 03 04 00 29 56 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 DB DD 0C 5D 60 F8 EB 77 5B CD 2A 73 96 C5 [19:12:42]CheckFolder [19:12:42]dirname=/storage/ofd_packets [19:12:42]CheckFolder done [19:12:42]ProducePacketName [19:12:42]name=ofd_packets/00030453 [19:12:42]NVStorageSaveData ofd_packets/00030453 [19:12:42]File name is /storage/ofd_packets/00030453 [19:12:42]Write 301 bytes [19:12:42]NVStorageSaveData done [19:12:42]OFDSenderStorePacket done [19:12:42]KKMCreateOFDPacket done [19:12:42]NVStorageSaveData kkm_last_timestamp [19:12:42]File name is /storage/kkm_last_timestamp [19:12:42]Write 4 bytes [19:12:42]NVStorageSaveData done [19:12:42]ExternCall_PrintAddStr [19:12:42]wPrintStart [19:12:42]Write to MH i2c: 01 00 00 0A 0F 19 [19:12:42]Write i2c OK [19:12:42]MH_I2C_Read... [19:12:42]Read from MH i2c: 01 [19:12:42]MH_I2C_Read... [19:12:42]Read from MH i2c: 01 07 00 [19:12:42]MH_I2C_Read... [19:12:42]Read from MH i2c: 01 07 00 0A 0F 00 00 00 00 00 FF 0F 2E [19:12:42]RasterBufferAndPrint [19:12:42]line Счет N : (1)342856 [19:12:42]line ИНН: 02508201610067 [19:12:42]line Контрольно-Кассовый Чек [19:12:42]line ПРОДАЖА [19:12:42]line ТРК (МРК, ГНК) : 63 [19:12:42]line Товар: 2710124130 [19:12:42]line Аи-92-К-2 [19:12:42]line 14.950 * 66.90 [19:12:42]line = 1000.16 [19:12:42]line НДС 12% НСП 1% [19:12:42]line > о реализуемом товаре [19:12:42]line ОКРУГЛЕНИЕ: -0.16 [19:12:42]line ИТОГО: 1000.00 [19:12:42]line Внесено: 1000.00 [19:12:42]line СДАЧА: 0.00 [19:12:42]line НСП 1% : 8.85 [19:12:42]line НДС 12% : 106.21 [19:12:42]line Наличными: 1000.00 [19:12:42]line Безнал.: 0.00 [19:12:42]line Место: АЗС № 78 "Партнер Нефть" [19:12:42]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [19:12:42]line СНО: Общий режим [19:12:42]line Чек 235 20.10.2024 19:12 [19:12:42]line Смена: 114 ФФД: 1.0 [19:12:42]line ЗНМ: 0300000137 [19:12:42]line РНМ: 0000000000186857 [19:12:42]line Версия ККМ: v1.0 [19:12:42]line ФМ: 0000000002094219 [19:12:42]line ФД: 30453 [19:12:42]line ФПД: 241742441701624 [19:12:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T191241&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30453&fm=241742441701624&tin=02508201610067®Number=0000000000186857&sum=100000 [19:12:42]OFD Sender: Processing packet 30453 [packets to send 10, broken 9] [19:12:42]ProducePacketName [19:12:42]name=ofd_packets/00030453 [19:12:42]OFD Sender: To server: pG, [19:12:42]CommunicateWithHost lk.salyk.kg:30040 [19:12:42]ConnectInit lk.salyk.kg [19:12:42]written 0, free lines is 4095 [19:12:43]Connected sock=10 [19:12: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 91 E3 07 01 AB 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 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 EB 00 00 00 F4 03 04 00 29 56 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 DB DD 0C 5D 60 F8 EB 77 5B CD 2A 73 96 C5 [19:12: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 4C 5B 47 00 23 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 F5 76 00 00 F4 03 04 00 AC 00 15 67 B6 04 01 00 00 C8 D9 98 D8 69 C5 67 1F [19:12:43]CommunicateWithHost err = 0 [19:12:43]CheckOFDResponse [19:12:43]1017 (14) - 77093643461234 [19:12:43]1041 (16) - 0000000002094219 [19:12:43]1040 (4) - 30453 [19:12:43]1012 (4) - 20.10.2024 13:07 [19:12:43]1206 (1) - 0 [19:12:43]OFD Sender: Remove packet 30453 [19:12:43]ProducePacketName [19:12:43]name=ofd_packets/00030453 [19:12:43]NVStorageDeleteData [19:12:43]Write to MH i2c: 01 00 00 35 0F 44 [19:12:43]Write i2c OK [19:12:43]MH_I2C_Read... [19:12:43]Read from MH i2c: 01 [19:12:43]MH_I2C_Read... [19:12:43]Read from MH i2c: 01 07 00 [19:12:43]MH_I2C_Read... [19:12:43]Read from MH i2c: 01 07 00 35 0F 00 00 00 00 00 EC 0C 43 [19:12:43]RasterBufferAndPrint [19:12:43]line [19:12:43]line [19:12:43]line [19:12:43]line [19:12:43]line [19:12:43]written 0, free lines is 3314 [19:12:43]MH_Cut [19:12:43]Write to MH i2c: D1 01 00 3C 0F 01 1D [19:12:43]Write i2c OK [19:12:43]MH_I2C_Read... [19:12:43]Read from MH i2c: D1 [19:12:43]MH_I2C_Read... [19:12:43]Read from MH i2c: D1 01 00 [19:12:43]MH_I2C_Read... [19:12:43]Read from MH i2c: D1 01 00 3C 0F 00 1C [19:12:43]Write to MH i2c: 01 00 00 3D 0F 4C [19:12:43]Write i2c OK [19:12:43]MH_I2C_Read... [19:12:43]OFD Sender: No OFD packet to send [19:12:44]*** Cut start [19:12:44]*** Partial cut [19:12:44]*** CUTSNS_PIN = 1 [19:12:44]*** CUTSNS_PIN = 0 [19:12:44]*** Brake cut motor [19:12:44]Read from MH i2c: 01 [19:12:44]MH_I2C_Read... [19:12:44]*** Stop cut motor [19:12:44]*** Cut end [19:12:44]Read from MH i2c: 01 07 00 [19:12:44]MH_I2C_Read... [19:12:44]Read from MH i2c: 01 07 00 3D 0F 00 00 00 00 00 FF 0F 61 [19:12:44]process_action close_receipt done [19:12:44]requested_data is exist [19:12:44]produce_requested_data [19:12:44]requested_item fm.sn is exist - process it [19:12:44]wFMCommunicate request_size=4 [19:12:44]MH_SAM_APDU [19:12:44]CAPDU: 80 11 00 00 [19:12:44]Write to MH i2c: E2 08 00 3E 0F 80 11 00 00 00 00 00 00 C7 [19:12:44]Write i2c OK [19:12:44]MH_I2C_Read... [19:12:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:12:44]Read from MH i2c: E2 [19:12:44]MH_I2C_Read... [19:12:44]Read from MH i2c: E2 17 00 [19:12:44]MH_I2C_Read... [19:12:44]Read from MH i2c: E2 17 00 3E 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 15 [19:12: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:12:44]wFMCommunicate OK [19:12:44]requested_item fd.num is exist - process it [19:12:44]SAM_PROTO_GetFieldsCounters [19:12:44]wFMCommunicate request_size=4 [19:12:44]MH_SAM_APDU [19:12:44]CAPDU: 80 13 00 00 [19:12:44]Write to MH i2c: E2 08 00 3F 0F 80 13 00 00 00 00 00 00 CA [19:12:44]Write i2c OK [19:12:44]MH_I2C_Read... [19:12:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:12:44]Read from MH i2c: E2 [19:12:44]MH_I2C_Read... [19:12:44]Read from MH i2c: E2 62 00 [19:12:44]MH_I2C_Read... [19:12:44]Read from MH i2c: E2 62 00 3F 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 8E [19:12: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 F5 76 00 00 0E 04 04 00 72 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:12:44]wFMCommunicate OK [19:12:44]SAM_PROTO_GetFieldsCounters done [19:12:44]requested_item shift.num is exist - process it [19:12:44]requested_item shift.opened is exist - process it [19:12:44]req_shift_opened [19:12:44]FM_GetShiftState [19:12:44]SAM_PROTO_GetShiftState [19:12:44]wFMCommunicate request_size=4 [19:12:44]MH_SAM_APDU [19:12:44]CAPDU: 80 13 01 00 [19:12:44]Write to MH i2c: E2 08 00 40 0F 80 13 01 00 00 00 00 00 CC [19:12:44]Write i2c OK [19:12:44]MH_I2C_Read... [19:12:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:12:44]Read from MH i2c: E2 [19:12:44]MH_I2C_Read... [19:12:44]Read from MH i2c: E2 0E 00 [19:12:44]MH_I2C_Read... [19:12:44]Read from MH i2c: E2 0E 00 40 0F 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 B2 [19:12:44]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [19:12:44]wFMCommunicate OK [19:12:44]SAM_PROTO_GetShiftState done [19:12:44]FM_GetShiftState done [19:12:44]req_shift_opened done [19:12:44]requested_item shift.open_date is exist - process it [19:12:44]req_shift_open_date [19:12:44]req_shift_open_date done [19:12:44]produce_requested_data done [19:12:44]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30453,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [19:12:44]process_action_free close_receipt [19:12:44]json_value_free [19:12:44]json_value_free done [19:12:44]process_json_proto returns [19:12:44]Send response to host [19:12:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30453,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [19:12:44]free response buf [19:12:44]execute_script done [19:12:44]execute_script returns [19:12:44]free content buf [19:12:44]Sock 7.Close socket [19:12:44]Sock 7.Thread stoped [19:12:48]OFD Sender: No OFD packet to send [19:12:53]OFD Sender: No OFD packet to send [19:12:58]OFD Sender: No OFD packet to send [19:13:03]OFD Sender: No OFD packet to send [19:13:08]OFD Sender: No OFD packet to send [19:13:13]OFD Sender: No OFD packet to send [19:13:18]OFD Sender: No OFD packet to send [19:13:23]OFD Sender: No OFD packet to send [19:13:28]OFD Sender: No OFD packet to send [19:13:33]OFD Sender: No OFD packet to send [19:13:38]OFD Sender: No OFD packet to send [19:13:43]OFD Sender: No OFD packet to send [19:13:48]OFD Sender: No OFD packet to send [19:13:53]OFD Sender: No OFD packet to send [19:13:58]OFD Sender: No OFD packet to send [19:14:03]OFD Sender: No OFD packet to send [19:14:08]OFD Sender: No OFD packet to send [19:14:13]OFD Sender: No OFD packet to send [19:14:18]OFD Sender: No OFD packet to send [19:14:23]OFD Sender: No OFD packet to send [19:14:28]OFD Sender: No OFD packet to send [19:14:33]OFD Sender: No OFD packet to send [19:14:38]OFD Sender: No OFD packet to send [19:14:43]OFD Sender: No OFD packet to send [19:14:48]OFD Sender: No OFD packet to send [19:14:53]OFD Sender: No OFD packet to send [19:14:58]OFD Sender: No OFD packet to send [19:15:03]OFD Sender: No OFD packet to send [19:15:08]OFD Sender: No OFD packet to send [19:15:13]OFD Sender: No OFD packet to send [19:15:15]accept exits with 9 [19:15:15]New connection [19:15:15]New thread 3067489636 created [19:15:15]Thread 3067346276 joined [19:15:15]Waiting for new connection... [19:15:15] Sock 9.Parse request [19:15:15]Sock 9.Check first char [19:15:15]Sock 9.First char is OK [19:15:15]request: POST /json_proto HTTP/1.0 [19:15:15]Method: POST [19:15:15]URL: /json_proto [19:15:15]Method is POST - this is cgi request [19:15:15]url: /json_proto [19:15:15]query_string will be loaded in cgi processing [19:15:15]execute_cgi json_proto POST (null) [19:15:15]execute_cgi path=json_proto method=POST [19:15:15]POST find Content-Length [19:15:15]Host: 172.17.51.3:8080 [19:15:15]Content-Length: 677 [19:15:15]Content-Type: application/json [19:15:15] [19:15:15]POST finish read [19:15:15]Found Content-Length = 677 [19:15:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342857", "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" ] } } [19:15:15]execute_script... [19:15: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)342857", "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" ] } } [19:15:15]POST & json_proto [19:15:15]process_json_proto [19:15:15]json parsed OK: [19:15:15]protocol is kg_v1.0 [19:15:15]action value=close_receipt [19:15:15]process_action close_receipt [19:15:15]cmd_close_receipt [19:15:15]MH_GetDate [19:15:15]Write to MH i2c: F0 00 00 41 0F 3F [19:15:15]Write i2c OK [19:15:15]MH_I2C_Read... [19:15:15]Read from MH i2c: F0 [19:15:15]MH_I2C_Read... [19:15:15]Read from MH i2c: F0 09 00 [19:15:15]MH_I2C_Read... [19:15:15]Read from MH i2c: F0 09 00 41 0F 00 C4 56 15 67 04 C1 95 66 9E [19:15:15]GetLastDocTimeStamp 1729451561 [19:15:15]current date 1729451716 [19:15:15]FM_GetShiftState [19:15:15]SAM_PROTO_GetShiftState [19:15:15]wFMCommunicate request_size=4 [19:15:15]MH_SAM_APDU [19:15:15]CAPDU: 80 13 01 00 [19:15:15]Write to MH i2c: E2 08 00 42 0F 80 13 01 00 00 00 00 00 CE [19:15:15]Write i2c OK [19:15:15]MH_I2C_Read... [19:15:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:15:15]Read from MH i2c: E2 [19:15:15]MH_I2C_Read... [19:15:15]Read from MH i2c: E2 0E 00 [19:15:15]MH_I2C_Read... [19:15:15]Read from MH i2c: E2 0E 00 42 0F 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 B4 [19:15:15]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [19:15:15]wFMCommunicate OK [19:15:15]SAM_PROTO_GetShiftState done [19:15:15]FM_GetShiftState done [19:15:15]opened in 1729384718 [19:15:15]opened+sec_in_day 1729471118 [19:15:15]quantity*price = 20003 [19:15:15]sum+1 = 20004 [19:15:15]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 СНО: Общий режим Чек 236 20.10.2024 19:15 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30454 ФПД: 158626276583626 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T191516&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30454&fm=158626276583626&tin=02508201610067®Number=0000000000186857&sum=20000 [19:15:17]StoreToDocumentArchive [19:15:17]shift 114 fd 30454 [19:15:17]save to /storage/0114/doc_00030454 [19:15:17]save last doc name /storage/0114/doc_00030454 to /storage/kkm_last_doc_name [19:15:17]save OK [19:15:17]Clear old archive folders... [19:15:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:15:17]tlvbuf is 01E2D510 [19:15:17]SAM_PROTO_ClearQueue [19:15:17]wFMCommunicate request_size=4 [19:15:17]MH_SAM_APDU [19:15:17]CAPDU: 80 09 00 00 [19:15:17]Write to MH i2c: E2 08 00 4F 0F 80 09 00 00 00 00 00 00 D0 [19:15:17]Write i2c OK [19:15:17]MH_I2C_Read... [19:15:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:15:17]Read from MH i2c: E2 [19:15:17]MH_I2C_Read... [19:15:17]Read from MH i2c: E2 03 00 [19:15:17]MH_I2C_Read... [19:15:17]Read from MH i2c: E2 03 00 4F 0F 00 90 00 D2 [19:15:17]RAPDU: 90 00 [19:15:17]wFMCommunicate OK [19:15:17]SAM_PROTO_ClearQueue done [19:15:17]KKMCreateOFDPacket [19:15:17]OFDProtocolAddRootSTLVToBuf [19:15:17]FM_MakeSignedData [19:15:17]FM_MakeSignedData [19:15:17]SAM_PROTO_SignData [19:15:17]wFMCommunicate request_size=4 [19:15:17]MH_SAM_APDU [19:15:17]CAPDU: 80 0D 01 02 [19:15:17]Write to MH i2c: E2 08 00 50 0F 80 0D 01 02 00 00 00 00 D8 [19:15:17]Write i2c OK [19:15:17]MH_I2C_Read... [19:15:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:15:17]Read from MH i2c: E2 [19:15:17]MH_I2C_Read... [19:15:17]Read from MH i2c: E2 03 00 [19:15:17]MH_I2C_Read... [19:15:17]Read from MH i2c: E2 03 00 50 0F 00 90 00 D3 [19:15:17]RAPDU: 90 00 [19:15:17]wFMCommunicate OK [19:15:17]wFMCommunicate request_size=255 [19:15:17]MH_SAM_APDU [19:15: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 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 EC 00 00 00 F4 03 04 00 C4 56 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 90 [19:15:17]Write to MH i2c: E2 02 01 51 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 EC 00 00 00 F4 03 04 00 C4 56 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 90 00 00 1B [19:15:17]Write i2c OK [19:15:17]MH_I2C_Read... [19:15:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:15:17]Read from MH i2c: E2 [19:15:17]MH_I2C_Read... [19:15:17]Read from MH i2c: E2 03 00 [19:15:17]MH_I2C_Read... [19:15:17]Read from MH i2c: E2 03 00 51 0F 00 90 00 D4 [19:15:17]RAPDU: 90 00 [19:15:17]wFMCommunicate OK [19:15:17]wFMCommunicate request_size=10 [19:15:17]MH_SAM_APDU [19:15:17]CAPDU: 80 0D 02 02 05 45 0E DE 28 CA [19:15:17]Write to MH i2c: E2 0D 00 52 0F 80 0D 02 02 05 00 45 0E DE 28 CA 00 00 08 [19:15:17]Write i2c OK [19:15:17]MH_I2C_Read... [19:15:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:15:17]Read from MH i2c: E2 [19:15:17]MH_I2C_Read... [19:15:17]Read from MH i2c: E2 03 00 [19:15:17]MH_I2C_Read... [19:15:17]Read from MH i2c: E2 03 00 52 0F 00 90 00 D5 [19:15:17]RAPDU: 90 00 [19:15:17]wFMCommunicate OK [19:15:17]wFMCommunicate request_size=4 [19:15:17]MH_SAM_APDU [19:15:17]CAPDU: 80 0D 03 02 [19:15:17]Write to MH i2c: E2 08 00 53 0F 80 0D 03 02 00 00 00 00 DD [19:15:17]Write i2c OK [19:15:17]MH_I2C_Read... [19:15:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:15:17]Read from MH i2c: E2 [19:15:17]MH_I2C_Read... [19:15:17]Read from MH i2c: E2 0B 00 [19:15:17]MH_I2C_Read... [19:15:17]Read from MH i2c: E2 0B 00 53 0F 00 9C E4 42 C2 B6 F1 4D CD 90 00 23 [19:15:17]RAPDU: 9C E4 42 C2 B6 F1 4D CD 90 00 [19:15:17]wFMCommunicate OK [19:15:17]SAM_PROTO_SignData done [19:15:17]FM_MakeSignedData done [19:15:17]CreateOFDProtocolMessage [19:15:17]wFMCommunicate request_size=4 [19:15:17]MH_SAM_APDU [19:15:17]CAPDU: 80 11 00 00 [19:15:17]Write to MH i2c: E2 08 00 54 0F 80 11 00 00 00 00 00 00 DD [19:15:17]Write i2c OK [19:15:17]MH_I2C_Read... [19:15:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:15:17]Read from MH i2c: E2 [19:15:17]MH_I2C_Read... [19:15:17]Read from MH i2c: E2 17 00 [19:15:17]MH_I2C_Read... [19:15:17]Read from MH i2c: E2 17 00 54 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 2B [19:15:17]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:17]wFMCommunicate OK [19:15:17]CreateOFDProtocolMessage done [19:15:17]OFDSenderStorePacket 30454 [19:15:17]StoreOFDPacket docnum=30454 [19:15: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 85 9D 07 01 FB 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 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 EC 00 00 00 F4 03 04 00 C4 56 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 90 45 0E DE 28 CA 9C E4 42 C2 B6 F1 4D CD [19:15:17]CheckFolder [19:15:17]dirname=/storage/ofd_packets [19:15:17]CheckFolder done [19:15:17]ProducePacketName [19:15:17]name=ofd_packets/00030454 [19:15:17]NVStorageSaveData ofd_packets/00030454 [19:15:17]File name is /storage/ofd_packets/00030454 [19:15:17]Write 301 bytes [19:15:17]NVStorageSaveData done [19:15:17]OFDSenderStorePacket done [19:15:17]KKMCreateOFDPacket done [19:15:17]NVStorageSaveData kkm_last_timestamp [19:15:17]File name is /storage/kkm_last_timestamp [19:15:17]Write 4 bytes [19:15:17]NVStorageSaveData done [19:15:17]ExternCall_PrintAddStr [19:15:17]wPrintStart [19:15:17]Write to MH i2c: 01 00 00 55 0F 64 [19:15:17]Write i2c OK [19:15:17]MH_I2C_Read... [19:15:17]Read from MH i2c: 01 [19:15:17]MH_I2C_Read... [19:15:17]Read from MH i2c: 01 07 00 [19:15:17]MH_I2C_Read... [19:15:17]Read from MH i2c: 01 07 00 55 0F 00 00 00 00 00 FF 0F 79 [19:15:17]RasterBufferAndPrint [19:15:17]line Счет N : (1)342857 [19:15:17]line ИНН: 02508201610067 [19:15:17]line Контрольно-Кассовый Чек [19:15:17]line ПРОДАЖА [19:15:17]line ТРК (МРК, ГНК) : 53 [19:15:17]line Товар: 2710124130 [19:15:17]line Аи-92-К-2 [19:15:17]line 2.990 * 66.90 [19:15:17]line = 200.03 [19:15:17]line НДС 12% НСП 1% [19:15:17]line > о реализуемом товаре [19:15:17]line ОКРУГЛЕНИЕ: -0.03 [19:15:17]line ИТОГО: 200.00 [19:15:17]line Внесено: 200.00 [19:15:17]line СДАЧА: 0.00 [19:15:17]line НСП 1% : 1.77 [19:15:17]line НДС 12% : 21.24 [19:15:17]line Наличными: 200.00 [19:15:17]line Безнал.: 0.00 [19:15:17]line Место: АЗС № 78 "Партнер Нефть" [19:15:17]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [19:15:17]line СНО: Общий режим [19:15:17]line Чек 236 20.10.2024 19:15 [19:15:17]line Смена: 114 ФФД: 1.0 [19:15:17]line ЗНМ: 0300000137 [19:15:17]line РНМ: 0000000000186857 [19:15:17]line Версия ККМ: v1.0 [19:15:17]line ФМ: 0000000002094219 [19:15:17]line ФД: 30454 [19:15:17]line ФПД: 158626276583626 [19:15:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T191516&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30454&fm=158626276583626&tin=02508201610067®Number=0000000000186857&sum=20000 [19:15:17]OFD Sender: Processing packet 30454 [packets to send 10, broken 9] [19:15:17]ProducePacketName [19:15:17]name=ofd_packets/00030454 [19:15:17]OFD Sender: To server: pG, [19:15:17]CommunicateWithHost lk.salyk.kg:30040 [19:15:17]ConnectInit lk.salyk.kg [19:15:17]written 0, free lines is 4095 [19:15:18]Connected sock=10 [19:15: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 85 9D 07 01 FB 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 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 EC 00 00 00 F4 03 04 00 C4 56 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 90 45 0E DE 28 CA 9C E4 42 C2 B6 F1 4D CD [19:15: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 1C E9 47 00 4E CA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 F6 76 00 00 F4 03 04 00 47 01 15 67 B6 04 01 00 00 52 65 B8 B9 9E F7 43 CB [19:15:18]CommunicateWithHost err = 0 [19:15:18]CheckOFDResponse [19:15:18]1017 (14) - 77093643461234 [19:15:18]1041 (16) - 0000000002094219 [19:15:18]1040 (4) - 30454 [19:15:18]1012 (4) - 20.10.2024 13:10 [19:15:18]1206 (1) - 0 [19:15:18]OFD Sender: Remove packet 30454 [19:15:18]ProducePacketName [19:15:18]name=ofd_packets/00030454 [19:15:18]NVStorageDeleteData [19:15:18]Write to MH i2c: 01 00 00 80 0F 8F [19:15:18]Write i2c OK [19:15:18]MH_I2C_Read... [19:15:18]Read from MH i2c: 01 [19:15:18]MH_I2C_Read... [19:15:18]Read from MH i2c: 01 07 00 [19:15:18]MH_I2C_Read... [19:15:18]Read from MH i2c: 01 07 00 80 0F 00 00 00 00 00 E4 0C 86 [19:15:18]RasterBufferAndPrint [19:15:18]line [19:15:18]line [19:15:18]line [19:15:18]line [19:15:18]line [19:15:18]written 0, free lines is 3306 [19:15:18]MH_Cut [19:15:18]Write to MH i2c: D1 01 00 87 0F 01 68 [19:15:18]Write i2c OK [19:15:18]MH_I2C_Read... [19:15:18]Read from MH i2c: D1 [19:15:18]MH_I2C_Read... [19:15:18]Read from MH i2c: D1 01 00 [19:15:18]MH_I2C_Read... [19:15:18]Read from MH i2c: D1 01 00 87 0F 00 67 [19:15:18]Write to MH i2c: 01 00 00 88 0F 97 [19:15:18]Write i2c OK [19:15:18]MH_I2C_Read... [19:15:18]OFD Sender: No OFD packet to send [19:15:19]*** Cut start [19:15:19]*** Partial cut [19:15:19]*** CUTSNS_PIN = 1 [19:15:19]*** CUTSNS_PIN = 0 [19:15:19]*** Brake cut motor [19:15:19]Read from MH i2c: 01 [19:15:19]MH_I2C_Read... [19:15:19]*** Stop cut motor [19:15:19]*** Cut end [19:15:19]Read from MH i2c: 01 07 00 [19:15:19]MH_I2C_Read... [19:15:19]Read from MH i2c: 01 07 00 88 0F 00 00 00 00 00 FF 0F AC [19:15:19]process_action close_receipt done [19:15:19]requested_data is exist [19:15:19]produce_requested_data [19:15:19]requested_item fm.sn is exist - process it [19:15:19]wFMCommunicate request_size=4 [19:15:19]MH_SAM_APDU [19:15:19]CAPDU: 80 11 00 00 [19:15:19]Write to MH i2c: E2 08 00 89 0F 80 11 00 00 00 00 00 00 12 [19:15:19]Write i2c OK [19:15:19]MH_I2C_Read... [19:15:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:15:19]Read from MH i2c: E2 [19:15:19]MH_I2C_Read... [19:15:19]Read from MH i2c: E2 17 00 [19:15:19]MH_I2C_Read... [19:15:19]Read from MH i2c: E2 17 00 89 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 60 [19:15:19]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:19]wFMCommunicate OK [19:15:19]requested_item fd.num is exist - process it [19:15:19]SAM_PROTO_GetFieldsCounters [19:15:19]wFMCommunicate request_size=4 [19:15:19]MH_SAM_APDU [19:15:19]CAPDU: 80 13 00 00 [19:15:19]Write to MH i2c: E2 08 00 8A 0F 80 13 00 00 00 00 00 00 15 [19:15:19]Write i2c OK [19:15:19]MH_I2C_Read... [19:15:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:15:19]Read from MH i2c: E2 [19:15:19]MH_I2C_Read... [19:15:19]Read from MH i2c: E2 62 00 [19:15:19]MH_I2C_Read... [19:15:19]Read from MH i2c: E2 62 00 8A 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 DD [19:15: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 F6 76 00 00 0E 04 04 00 72 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 [19:15:19]wFMCommunicate OK [19:15:19]SAM_PROTO_GetFieldsCounters done [19:15:19]requested_item shift.num is exist - process it [19:15:19]requested_item shift.opened is exist - process it [19:15:19]req_shift_opened [19:15:19]FM_GetShiftState [19:15:19]SAM_PROTO_GetShiftState [19:15:19]wFMCommunicate request_size=4 [19:15:19]MH_SAM_APDU [19:15:19]CAPDU: 80 13 01 00 [19:15:19]Write to MH i2c: E2 08 00 8B 0F 80 13 01 00 00 00 00 00 17 [19:15:19]Write i2c OK [19:15:19]MH_I2C_Read... [19:15:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:15:19]Read from MH i2c: E2 [19:15:19]MH_I2C_Read... [19:15:19]Read from MH i2c: E2 0E 00 [19:15:19]MH_I2C_Read... [19:15:19]Read from MH i2c: E2 0E 00 8B 0F 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 FD [19:15:19]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [19:15:19]wFMCommunicate OK [19:15:19]SAM_PROTO_GetShiftState done [19:15:19]FM_GetShiftState done [19:15:19]req_shift_opened done [19:15:19]requested_item shift.open_date is exist - process it [19:15:19]req_shift_open_date [19:15:19]req_shift_open_date done [19:15:19]produce_requested_data done [19:15:19]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30454,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [19:15:19]process_action_free close_receipt [19:15:19]json_value_free [19:15:19]json_value_free done [19:15:19]process_json_proto returns [19:15:19]Send response to host [19:15:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30454,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [19:15:19]free response buf [19:15:19]execute_script done [19:15:19]execute_script returns [19:15:19]free content buf [19:15:19]Sock 9.Close socket [19:15:19]Sock 9.Thread stoped [19:15:23]OFD Sender: No OFD packet to send [19:15:28]OFD Sender: No OFD packet to send [19:15:33]OFD Sender: No OFD packet to send [19:15:38]OFD Sender: No OFD packet to send [19:15:43]OFD Sender: No OFD packet to send [19:15:48]OFD Sender: No OFD packet to send [19:15:53]OFD Sender: No OFD packet to send [19:15:58]OFD Sender: No OFD packet to send [19:16:03]OFD Sender: No OFD packet to send [19:16:08]OFD Sender: No OFD packet to send [19:16:13]OFD Sender: No OFD packet to send [19:16:18]OFD Sender: No OFD packet to send [19:16:23]OFD Sender: No OFD packet to send [19:16:28]OFD Sender: No OFD packet to send [19:16:33]OFD Sender: No OFD packet to send [19:16:38]OFD Sender: No OFD packet to send [19:16:43]OFD Sender: No OFD packet to send [19:16:48]OFD Sender: No OFD packet to send [19:16:53]OFD Sender: No OFD packet to send [19:16:58]OFD Sender: No OFD packet to send [19:17:03]OFD Sender: No OFD packet to send [19:17:08]OFD Sender: No OFD packet to send [19:17:13]OFD Sender: No OFD packet to send [19:17:18]OFD Sender: No OFD packet to send [19:17:23]OFD Sender: No OFD packet to send [19:17:28]OFD Sender: No OFD packet to send [19:17:33]OFD Sender: No OFD packet to send [19:17:38]OFD Sender: No OFD packet to send [19:17:43]OFD Sender: No OFD packet to send [19:17:48]OFD Sender: No OFD packet to send [19:17:53]OFD Sender: No OFD packet to send [19:17:58]OFD Sender: No OFD packet to send [19:18:03]OFD Sender: No OFD packet to send [19:18:08]OFD Sender: No OFD packet to send [19:18:13]OFD Sender: No OFD packet to send [19:18:18]OFD Sender: No OFD packet to send [19:18:23]OFD Sender: No OFD packet to send [19:18:28]OFD Sender: No OFD packet to send [19:18:33]OFD Sender: No OFD packet to send [19:18:38]OFD Sender: No OFD packet to send [19:18:43]OFD Sender: No OFD packet to send [19:18:48]OFD Sender: No OFD packet to send [19:18:53]OFD Sender: No OFD packet to send [19:18:58]OFD Sender: No OFD packet to send [19:19:03]OFD Sender: No OFD packet to send [19:19:08]OFD Sender: No OFD packet to send [19:19:13]OFD Sender: No OFD packet to send [19:19:18]OFD Sender: No OFD packet to send [19:19:24]OFD Sender: No OFD packet to send [19:19:29]OFD Sender: No OFD packet to send [19:19:34]OFD Sender: No OFD packet to send [19:19:39]OFD Sender: No OFD packet to send [19:19:44]OFD Sender: No OFD packet to send [19:19:49]OFD Sender: No OFD packet to send [19:19:54]OFD Sender: No OFD packet to send [19:19:59]OFD Sender: No OFD packet to send [19:20:04]OFD Sender: No OFD packet to send [19:20:09]OFD Sender: No OFD packet to send [19:20:14]OFD Sender: No OFD packet to send [19:20:19]OFD Sender: No OFD packet to send [19:20:24]OFD Sender: No OFD packet to send [19:20:29]OFD Sender: No OFD packet to send [19:20:34]OFD Sender: No OFD packet to send [19:20:39]OFD Sender: No OFD packet to send [19:20:44]OFD Sender: No OFD packet to send [19:20:49]OFD Sender: No OFD packet to send [19:20:54]OFD Sender: No OFD packet to send [19:20:59]OFD Sender: No OFD packet to send [19:21:04]OFD Sender: No OFD packet to send [19:21:09]OFD Sender: No OFD packet to send [19:21:14]OFD Sender: No OFD packet to send [19:21:19]OFD Sender: No OFD packet to send [19:21:24]OFD Sender: No OFD packet to send [19:21:29]OFD Sender: No OFD packet to send [19:21:34]OFD Sender: No OFD packet to send [19:21:39]OFD Sender: No OFD packet to send [19:21:44]OFD Sender: No OFD packet to send [19:21:49]OFD Sender: No OFD packet to send [19:21:54]OFD Sender: No OFD packet to send [19:21:59]OFD Sender: No OFD packet to send [19:22:04]OFD Sender: No OFD packet to send [19:22:09]OFD Sender: No OFD packet to send [19:22:14]OFD Sender: No OFD packet to send [19:22:19]OFD Sender: No OFD packet to send [19:22:24]OFD Sender: No OFD packet to send [19:22:29]OFD Sender: No OFD packet to send [19:22:34]OFD Sender: No OFD packet to send [19:22:36]accept exits with 7 [19:22:36]New connection [19:22:36]New thread 3067346276 created [19:22:36]Thread 3067489636 joined [19:22:36]Waiting for new connection... [19:22:36] Sock 7.Parse request [19:22:36]Sock 7.Check first char [19:22:36]Sock 7.First char is OK [19:22:36]request: POST /json_proto HTTP/1.0 [19:22:36]Method: POST [19:22:36]URL: /json_proto [19:22:36]Method is POST - this is cgi request [19:22:36]url: /json_proto [19:22:36]query_string will be loaded in cgi processing [19:22:36]execute_cgi json_proto POST (null) [19:22:36]execute_cgi path=json_proto method=POST [19:22:36]POST find Content-Length [19:22:36]Host: 172.17.51.3:8080 [19:22:36]Content-Length: 677 [19:22:36]Content-Type: application/json [19:22:36] [19:22:36]POST finish read [19:22:36]Found Content-Length = 677 [19:22:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342858", "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" ] } } [19:22:36]execute_script... [19:22: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)342858", "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" ] } } [19:22:36]POST & json_proto [19:22:36]process_json_proto [19:22:36]json parsed OK: [19:22:36]protocol is kg_v1.0 [19:22:36]action value=close_receipt [19:22:36]process_action close_receipt [19:22:36]cmd_close_receipt [19:22:36]MH_GetDate [19:22:36]Write to MH i2c: F0 00 00 8C 0F 8A [19:22:36]Write i2c OK [19:22:36]MH_I2C_Read... [19:22:36]Read from MH i2c: F0 [19:22:36]MH_I2C_Read... [19:22:36]Read from MH i2c: F0 09 00 [19:22:36]MH_I2C_Read... [19:22:36]Read from MH i2c: F0 09 00 8C 0F 00 7C 58 15 67 04 C1 95 66 A3 [19:22:36]GetLastDocTimeStamp 1729451716 [19:22:36]current date 1729452156 [19:22:36]FM_GetShiftState [19:22:36]SAM_PROTO_GetShiftState [19:22:36]wFMCommunicate request_size=4 [19:22:36]MH_SAM_APDU [19:22:36]CAPDU: 80 13 01 00 [19:22:36]Write to MH i2c: E2 08 00 8D 0F 80 13 01 00 00 00 00 00 19 [19:22:36]Write i2c OK [19:22:36]MH_I2C_Read... [19:22:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:22:36]Read from MH i2c: E2 [19:22:36]MH_I2C_Read... [19:22:36]Read from MH i2c: E2 0E 00 [19:22:36]MH_I2C_Read... [19:22:36]Read from MH i2c: E2 0E 00 8D 0F 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 FF [19:22:36]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [19:22:36]wFMCommunicate OK [19:22:36]SAM_PROTO_GetShiftState done [19:22:36]FM_GetShiftState done [19:22:36]opened in 1729384718 [19:22:36]opened+sec_in_day 1729471118 [19:22:36]quantity*price = 15052 [19:22:36]sum+1 = 15054 [19:22:36]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 СНО: Общий режим Чек 237 20.10.2024 19:22 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30455 ФПД: 191963768283864 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T192236&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30455&fm=191963768283864&tin=02508201610067®Number=0000000000186857&sum=15000 [19:22:37]StoreToDocumentArchive [19:22:37]shift 114 fd 30455 [19:22:37]save to /storage/0114/doc_00030455 [19:22:37]save last doc name /storage/0114/doc_00030455 to /storage/kkm_last_doc_name [19:22:37]save OK [19:22:37]Clear old archive folders... [19:22:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:22:37]tlvbuf is 01E0C820 [19:22:37]SAM_PROTO_ClearQueue [19:22:37]wFMCommunicate request_size=4 [19:22:37]MH_SAM_APDU [19:22:37]CAPDU: 80 09 00 00 [19:22:37]Write to MH i2c: E2 08 00 9A 0F 80 09 00 00 00 00 00 00 1B [19:22:37]Write i2c OK [19:22:37]MH_I2C_Read... [19:22:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:22:37]Read from MH i2c: E2 [19:22:37]MH_I2C_Read... [19:22:37]Read from MH i2c: E2 03 00 [19:22:37]MH_I2C_Read... [19:22:37]Read from MH i2c: E2 03 00 9A 0F 00 90 00 1D [19:22:37]RAPDU: 90 00 [19:22:37]wFMCommunicate OK [19:22:37]SAM_PROTO_ClearQueue done [19:22:37]KKMCreateOFDPacket [19:22:37]OFDProtocolAddRootSTLVToBuf [19:22:37]FM_MakeSignedData [19:22:37]FM_MakeSignedData [19:22:37]SAM_PROTO_SignData [19:22:37]wFMCommunicate request_size=4 [19:22:37]MH_SAM_APDU [19:22:37]CAPDU: 80 0D 01 02 [19:22:37]Write to MH i2c: E2 08 00 9B 0F 80 0D 01 02 00 00 00 00 23 [19:22:37]Write i2c OK [19:22:37]MH_I2C_Read... [19:22:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:22:37]Read from MH i2c: E2 [19:22:37]MH_I2C_Read... [19:22:37]Read from MH i2c: E2 03 00 [19:22:37]MH_I2C_Read... [19:22:37]Read from MH i2c: E2 03 00 9B 0F 00 90 00 1E [19:22:37]RAPDU: 90 00 [19:22:37]wFMCommunicate OK [19:22:37]wFMCommunicate request_size=255 [19:22:37]MH_SAM_APDU [19:22: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 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 ED 00 00 00 F4 03 04 00 7C 58 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 AE [19:22:37]Write to MH i2c: E2 02 01 9C 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 ED 00 00 00 F4 03 04 00 7C 58 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 AE 00 00 7B [19:22:37]Write i2c OK [19:22:37]MH_I2C_Read... [19:22:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:22:37]Read from MH i2c: E2 [19:22:37]MH_I2C_Read... [19:22:37]Read from MH i2c: E2 03 00 [19:22:37]MH_I2C_Read... [19:22:37]Read from MH i2c: E2 03 00 9C 0F 00 90 00 1F [19:22:37]RAPDU: 90 00 [19:22:37]wFMCommunicate OK [19:22:37]wFMCommunicate request_size=10 [19:22:37]MH_SAM_APDU [19:22:37]CAPDU: 80 0D 02 02 05 97 0C 37 E2 D8 [19:22:37]Write to MH i2c: E2 0D 00 9D 0F 80 0D 02 02 05 00 97 0C 37 E2 D8 00 00 C4 [19:22:37]Write i2c OK [19:22:37]MH_I2C_Read... [19:22:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:22:37]Read from MH i2c: E2 [19:22:37]MH_I2C_Read... [19:22:37]Read from MH i2c: E2 03 00 [19:22:37]MH_I2C_Read... [19:22:37]Read from MH i2c: E2 03 00 9D 0F 00 90 00 20 [19:22:37]RAPDU: 90 00 [19:22:37]wFMCommunicate OK [19:22:37]wFMCommunicate request_size=4 [19:22:37]MH_SAM_APDU [19:22:37]CAPDU: 80 0D 03 02 [19:22:37]Write to MH i2c: E2 08 00 9E 0F 80 0D 03 02 00 00 00 00 28 [19:22:37]Write i2c OK [19:22:37]MH_I2C_Read... [19:22:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:22:37]Read from MH i2c: E2 [19:22:37]MH_I2C_Read... [19:22:37]Read from MH i2c: E2 0B 00 [19:22:37]MH_I2C_Read... [19:22:37]Read from MH i2c: E2 0B 00 9E 0F 00 37 8A 5B 03 AF 47 6C 8E 90 00 38 [19:22:37]RAPDU: 37 8A 5B 03 AF 47 6C 8E 90 00 [19:22:37]wFMCommunicate OK [19:22:37]SAM_PROTO_SignData done [19:22:37]FM_MakeSignedData done [19:22:37]CreateOFDProtocolMessage [19:22:37]wFMCommunicate request_size=4 [19:22:37]MH_SAM_APDU [19:22:37]CAPDU: 80 11 00 00 [19:22:37]Write to MH i2c: E2 08 00 9F 0F 80 11 00 00 00 00 00 00 28 [19:22:37]Write i2c OK [19:22:37]MH_I2C_Read... [19:22:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:22:37]Read from MH i2c: E2 [19:22:37]MH_I2C_Read... [19:22:37]Read from MH i2c: E2 17 00 [19:22:37]MH_I2C_Read... [19:22:37]Read from MH i2c: E2 17 00 9F 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 76 [19: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 [19:22:37]wFMCommunicate OK [19:22:37]CreateOFDProtocolMessage done [19:22:37]OFDSenderStorePacket 30455 [19:22:37]StoreOFDPacket docnum=30455 [19:22: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 F1 83 07 01 CD 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 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 ED 00 00 00 F4 03 04 00 7C 58 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 AE 97 0C 37 E2 D8 37 8A 5B 03 AF 47 6C 8E [19:22:37]CheckFolder [19:22:37]dirname=/storage/ofd_packets [19:22:37]CheckFolder done [19:22:37]ProducePacketName [19:22:37]name=ofd_packets/00030455 [19:22:37]NVStorageSaveData ofd_packets/00030455 [19:22:37]File name is /storage/ofd_packets/00030455 [19:22:37]Write 301 bytes [19:22:37]NVStorageSaveData done [19:22:37]OFDSenderStorePacket done [19:22:37]KKMCreateOFDPacket done [19:22:37]NVStorageSaveData kkm_last_timestamp [19:22:37]File name is /storage/kkm_last_timestamp [19:22:37]Write 4 bytes [19:22:37]NVStorageSaveData done [19:22:37]ExternCall_PrintAddStr [19:22:37]wPrintStart [19:22:37]Write to MH i2c: 01 00 00 A0 0F AF [19:22:37]Write i2c OK [19:22:37]MH_I2C_Read... [19:22:37]Read from MH i2c: 01 [19:22:37]MH_I2C_Read... [19:22:37]Read from MH i2c: 01 07 00 [19:22:37]MH_I2C_Read... [19:22:37]Read from MH i2c: 01 07 00 A0 0F 00 00 00 00 00 FF 0F C4 [19:22:37]RasterBufferAndPrint [19:22:37]line Счет N : (1)342858 [19:22:37]line ИНН: 02508201610067 [19:22:37]line Контрольно-Кассовый Чек [19:22:37]line ПРОДАЖА [19:22:37]line ТРК (МРК, ГНК) : 63 [19:22:37]line Товар: 2710124130 [19:22:37]line Аи-92-К-2 [19:22:37]line 2.250 * 66.90 [19:22:37]line = 150.53 [19:22:37]line НДС 12% НСП 1% [19:22:37]line > о реализуемом товаре [19:22:37]line ОКРУГЛЕНИЕ: -0.53 [19:22:37]line ИТОГО: 150.00 [19:22:37]line Внесено: 150.00 [19:22:37]line СДАЧА: 0.00 [19:22:37]line НСП 1% : 1.33 [19:22:37]line НДС 12% : 15.98 [19:22:37]line Наличными: 150.00 [19:22:37]line Безнал.: 0.00 [19:22:37]line Место: АЗС № 78 "Партнер Нефть" [19:22:37]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [19:22:37]line СНО: Общий режим [19:22:37]line Чек 237 20.10.2024 19:22 [19:22:37]line Смена: 114 ФФД: 1.0 [19:22:37]line ЗНМ: 0300000137 [19:22:37]line РНМ: 0000000000186857 [19:22:37]line Версия ККМ: v1.0 [19:22:37]line ФМ: 0000000002094219 [19:22:37]line ФД: 30455 [19:22:37]line ФПД: 191963768283864 [19:22:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T192236&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30455&fm=191963768283864&tin=02508201610067®Number=0000000000186857&sum=15000 [19:22:38]OFD Sender: Processing packet 30455 [packets to send 10, broken 9] [19:22:38]ProducePacketName [19:22:38]name=ofd_packets/00030455 [19:22:38]OFD Sender: To server: pG, [19:22:38]CommunicateWithHost lk.salyk.kg:30040 [19:22:38]ConnectInit lk.salyk.kg [19:22:38]written 0, free lines is 4095 [19:22:38]Connected sock=10 [19:22: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 F1 83 07 01 CD 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 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 ED 00 00 00 F4 03 04 00 7C 58 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 AE 97 0C 37 E2 D8 37 8A 5B 03 AF 47 6C 8E [19:22: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 FB A1 47 00 16 24 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 F7 76 00 00 F4 03 04 00 00 03 15 67 B6 04 01 00 00 69 E7 C0 47 98 A9 EF 8C [19:22:38]CommunicateWithHost err = 0 [19:22:38]CheckOFDResponse [19:22:38]1017 (14) - 77093643461234 [19:22:38]1041 (16) - 0000000002094219 [19:22:38]1040 (4) - 30455 [19:22:38]1012 (4) - 20.10.2024 13:17 [19:22:38]1206 (1) - 0 [19:22:38]OFD Sender: Remove packet 30455 [19:22:38]ProducePacketName [19:22:38]name=ofd_packets/00030455 [19:22:38]NVStorageDeleteData [19:22:38]Write to MH i2c: 01 00 00 CB 0F DA [19:22:38]Write i2c OK [19:22:38]MH_I2C_Read... [19:22:38]Read from MH i2c: 01 [19:22:38]MH_I2C_Read... [19:22:38]Read from MH i2c: 01 07 00 [19:22:38]MH_I2C_Read... [19:22:38]Read from MH i2c: 01 07 00 CB 0F 00 00 00 00 00 F0 0C DD [19:22:38]RasterBufferAndPrint [19:22:38]line [19:22:38]line [19:22:38]line [19:22:38]line [19:22:38]line [19:22:38]written 0, free lines is 3318 [19:22:38]MH_Cut [19:22:38]Write to MH i2c: D1 01 00 D2 0F 01 B3 [19:22:38]Write i2c OK [19:22:38]MH_I2C_Read... [19:22:38]Read from MH i2c: D1 [19:22:38]MH_I2C_Read... [19:22:38]Read from MH i2c: D1 01 00 [19:22:38]MH_I2C_Read... [19:22:38]Read from MH i2c: D1 01 00 D2 0F 00 B2 [19:22:38]Write to MH i2c: 01 00 00 D3 0F E2 [19:22:38]Write i2c OK [19:22:38]MH_I2C_Read... [19:22:39]OFD Sender: No OFD packet to send [19:22:39]*** Cut start [19:22:39]*** Partial cut [19:22:39]*** CUTSNS_PIN = 1 [19:22:39]*** CUTSNS_PIN = 0 [19:22:39]*** Brake cut motor [19:22:40]Read from MH i2c: 01 [19:22:40]MH_I2C_Read... [19:22:40]*** Stop cut motor [19:22:40]*** Cut end [19:22:40]Read from MH i2c: 01 07 00 [19:22:40]MH_I2C_Read... [19:22:40]Read from MH i2c: 01 07 00 D3 0F 00 00 00 00 00 FF 0F F7 [19:22:40]process_action close_receipt done [19:22:40]requested_data is exist [19:22:40]produce_requested_data [19:22:40]requested_item fm.sn is exist - process it [19:22:40]wFMCommunicate request_size=4 [19:22:40]MH_SAM_APDU [19:22:40]CAPDU: 80 11 00 00 [19:22:40]Write to MH i2c: E2 08 00 D4 0F 80 11 00 00 00 00 00 00 5D [19:22:40]Write i2c OK [19:22:40]MH_I2C_Read... [19:22:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:22:40]Read from MH i2c: E2 [19:22:40]MH_I2C_Read... [19:22:40]Read from MH i2c: E2 17 00 [19:22:40]MH_I2C_Read... [19:22:40]Read from MH i2c: E2 17 00 D4 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 AB [19:22: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:22:40]wFMCommunicate OK [19:22:40]requested_item fd.num is exist - process it [19:22:40]SAM_PROTO_GetFieldsCounters [19:22:40]wFMCommunicate request_size=4 [19:22:40]MH_SAM_APDU [19:22:40]CAPDU: 80 13 00 00 [19:22:40]Write to MH i2c: E2 08 00 D5 0F 80 13 00 00 00 00 00 00 60 [19:22:40]Write i2c OK [19:22:40]MH_I2C_Read... [19:22:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:22:40]Read from MH i2c: E2 [19:22:40]MH_I2C_Read... [19:22:40]Read from MH i2c: E2 62 00 [19:22:40]MH_I2C_Read... [19:22:40]Read from MH i2c: E2 62 00 D5 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 2C [19:22: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 F7 76 00 00 0E 04 04 00 72 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 [19:22:40]wFMCommunicate OK [19:22:40]SAM_PROTO_GetFieldsCounters done [19:22:40]requested_item shift.num is exist - process it [19:22:40]requested_item shift.opened is exist - process it [19:22:40]req_shift_opened [19:22:40]FM_GetShiftState [19:22:40]SAM_PROTO_GetShiftState [19:22:40]wFMCommunicate request_size=4 [19:22:40]MH_SAM_APDU [19:22:40]CAPDU: 80 13 01 00 [19:22:40]Write to MH i2c: E2 08 00 D6 0F 80 13 01 00 00 00 00 00 62 [19:22:40]Write i2c OK [19:22:40]MH_I2C_Read... [19:22:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:22:40]Read from MH i2c: E2 [19:22:40]MH_I2C_Read... [19:22:40]Read from MH i2c: E2 0E 00 [19:22:40]MH_I2C_Read... [19:22:40]Read from MH i2c: E2 0E 00 D6 0F 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 48 [19:22:40]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [19:22:40]wFMCommunicate OK [19:22:40]SAM_PROTO_GetShiftState done [19:22:40]FM_GetShiftState done [19:22:40]req_shift_opened done [19:22:40]requested_item shift.open_date is exist - process it [19:22:40]req_shift_open_date [19:22:40]req_shift_open_date done [19:22:40]produce_requested_data done [19:22:40]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30455,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [19:22:40]process_action_free close_receipt [19:22:40]json_value_free [19:22:40]json_value_free done [19:22:40]process_json_proto returns [19:22:40]Send response to host [19:22:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30455,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [19:22:40]free response buf [19:22:40]execute_script done [19:22:40]execute_script returns [19:22:40]free content buf [19:22:40]Sock 7.Close socket [19:22:40]Sock 7.Thread stoped [19:22:44]OFD Sender: No OFD packet to send [19:22:49]OFD Sender: No OFD packet to send [19:22:54]OFD Sender: No OFD packet to send [19:22:59]OFD Sender: No OFD packet to send [19:23:04]OFD Sender: No OFD packet to send [19:23:09]OFD Sender: No OFD packet to send [19:23:14]OFD Sender: No OFD packet to send [19:23:19]OFD Sender: No OFD packet to send [19:23:24]OFD Sender: No OFD packet to send [19:23:29]OFD Sender: No OFD packet to send [19:23:34]OFD Sender: No OFD packet to send [19:23:39]OFD Sender: No OFD packet to send [19:23:44]OFD Sender: No OFD packet to send [19:23:49]OFD Sender: No OFD packet to send [19:23:54]OFD Sender: No OFD packet to send [19:23:59]OFD Sender: No OFD packet to send [19:24:04]OFD Sender: No OFD packet to send [19:24:09]OFD Sender: No OFD packet to send [19:24:11]accept exits with 9 [19:24:11]New connection [19:24:11]New thread 3067489636 created [19:24:11]Thread 3067346276 joined [19:24:11]Waiting for new connection... [19:24:11] Sock 9.Parse request [19:24:11]Sock 9.Check first char [19:24:11]Sock 9.First char is OK [19:24:11]request: POST /json_proto HTTP/1.0 [19:24:11]Method: POST [19:24:11]URL: /json_proto [19:24:11]Method is POST - this is cgi request [19:24:11]url: /json_proto [19:24:11]query_string will be loaded in cgi processing [19:24:11]execute_cgi json_proto POST (null) [19:24:11]execute_cgi path=json_proto method=POST [19:24:11]POST find Content-Length [19:24:11]Host: 172.17.51.3:8080 [19:24:11]Content-Length: 677 [19:24:11]Content-Type: application/json [19:24:11] [19:24:11]POST finish read [19:24:11]Found Content-Length = 677 [19:24:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342859", "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" ] } } [19:24:11]execute_script... [19:24: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)342859", "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" ] } } [19:24:11]POST & json_proto [19:24:11]process_json_proto [19:24:11]json parsed OK: [19:24:11]protocol is kg_v1.0 [19:24:11]action value=close_receipt [19:24:11]process_action close_receipt [19:24:11]cmd_close_receipt [19:24:11]MH_GetDate [19:24:11]Write to MH i2c: F0 00 00 D7 0F D5 [19:24:11]Write i2c OK [19:24:11]MH_I2C_Read... [19:24:11]Read from MH i2c: F0 [19:24:11]MH_I2C_Read... [19:24:11]Read from MH i2c: F0 09 00 [19:24:11]MH_I2C_Read... [19:24:11]Read from MH i2c: F0 09 00 D7 0F 00 DB 58 15 67 04 C1 95 66 4D [19:24:11]GetLastDocTimeStamp 1729452156 [19:24:11]current date 1729452251 [19:24:11]FM_GetShiftState [19:24:11]SAM_PROTO_GetShiftState [19:24:11]wFMCommunicate request_size=4 [19:24:11]MH_SAM_APDU [19:24:11]CAPDU: 80 13 01 00 [19:24:11]Write to MH i2c: E2 08 00 D8 0F 80 13 01 00 00 00 00 00 64 [19:24:11]Write i2c OK [19:24:11]MH_I2C_Read... [19:24:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:24:11]Read from MH i2c: E2 [19:24:11]MH_I2C_Read... [19:24:11]Read from MH i2c: E2 0E 00 [19:24:11]MH_I2C_Read... [19:24:11]Read from MH i2c: E2 0E 00 D8 0F 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 4A [19:24:11]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [19:24:11]wFMCommunicate OK [19:24:11]SAM_PROTO_GetShiftState done [19:24:11]FM_GetShiftState done [19:24:11]opened in 1729384718 [19:24:11]opened+sec_in_day 1729471118 [19:24:11]quantity*price = 50041 [19:24:11]sum+1 = 50042 [19:24: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 СНО: Общий режим Чек 238 20.10.2024 19:24 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30456 ФПД: 111385117325899 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T192411&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30456&fm=111385117325899&tin=02508201610067®Number=0000000000186857&sum=50000 [19:24:12]StoreToDocumentArchive [19:24:12]shift 114 fd 30456 [19:24:12]save to /storage/0114/doc_00030456 [19:24:12]save last doc name /storage/0114/doc_00030456 to /storage/kkm_last_doc_name [19:24:12]save OK [19:24:12]Clear old archive folders... [19:24:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:24:12]tlvbuf is 01E0C090 [19:24:12]SAM_PROTO_ClearQueue [19:24:12]wFMCommunicate request_size=4 [19:24:12]MH_SAM_APDU [19:24:12]CAPDU: 80 09 00 00 [19:24:12]Write to MH i2c: E2 08 00 E5 0F 80 09 00 00 00 00 00 00 66 [19:24:12]Write i2c OK [19:24:12]MH_I2C_Read... [19:24:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:24:12]Read from MH i2c: E2 [19:24:12]MH_I2C_Read... [19:24:12]Read from MH i2c: E2 03 00 [19:24:12]MH_I2C_Read... [19:24:12]Read from MH i2c: E2 03 00 E5 0F 00 90 00 68 [19:24:12]RAPDU: 90 00 [19:24:12]wFMCommunicate OK [19:24:12]SAM_PROTO_ClearQueue done [19:24:12]KKMCreateOFDPacket [19:24:12]OFDProtocolAddRootSTLVToBuf [19:24:12]FM_MakeSignedData [19:24:12]FM_MakeSignedData [19:24:12]SAM_PROTO_SignData [19:24:12]wFMCommunicate request_size=4 [19:24:12]MH_SAM_APDU [19:24:12]CAPDU: 80 0D 01 02 [19:24:12]Write to MH i2c: E2 08 00 E6 0F 80 0D 01 02 00 00 00 00 6E [19:24:12]Write i2c OK [19:24:12]MH_I2C_Read... [19:24:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:24:12]Read from MH i2c: E2 [19:24:12]MH_I2C_Read... [19:24:12]Read from MH i2c: E2 03 00 [19:24:12]MH_I2C_Read... [19:24:12]Read from MH i2c: E2 03 00 E6 0F 00 90 00 69 [19:24:12]RAPDU: 90 00 [19:24:12]wFMCommunicate OK [19:24:12]wFMCommunicate request_size=255 [19:24:12]MH_SAM_APDU [19:24: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 EE 00 00 00 F4 03 04 00 DB 58 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 65 [19:24:12]Write to MH i2c: E2 02 01 E7 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 EE 00 00 00 F4 03 04 00 DB 58 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 65 00 00 E1 [19:24:12]Write i2c OK [19:24:12]MH_I2C_Read... [19:24:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:24:12]Read from MH i2c: E2 [19:24:12]MH_I2C_Read... [19:24:12]Read from MH i2c: E2 03 00 [19:24:12]MH_I2C_Read... [19:24:12]Read from MH i2c: E2 03 00 E7 0F 00 90 00 6A [19:24:12]RAPDU: 90 00 [19:24:12]wFMCommunicate OK [19:24:12]wFMCommunicate request_size=10 [19:24:12]MH_SAM_APDU [19:24:12]CAPDU: 80 0D 02 02 05 4D DE 59 FA 4B [19:24:12]Write to MH i2c: E2 0D 00 E8 0F 80 0D 02 02 05 00 4D DE 59 FA 4B 00 00 44 [19:24:12]Write i2c OK [19:24:12]MH_I2C_Read... [19:24:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:24:12]Read from MH i2c: E2 [19:24:12]MH_I2C_Read... [19:24:12]Read from MH i2c: E2 03 00 [19:24:12]MH_I2C_Read... [19:24:12]Read from MH i2c: E2 03 00 E8 0F 00 90 00 6B [19:24:12]RAPDU: 90 00 [19:24:12]wFMCommunicate OK [19:24:12]wFMCommunicate request_size=4 [19:24:12]MH_SAM_APDU [19:24:12]CAPDU: 80 0D 03 02 [19:24:12]Write to MH i2c: E2 08 00 E9 0F 80 0D 03 02 00 00 00 00 73 [19:24:12]Write i2c OK [19:24:12]MH_I2C_Read... [19:24:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:24:12]Read from MH i2c: E2 [19:24:12]MH_I2C_Read... [19:24:12]Read from MH i2c: E2 0B 00 [19:24:12]MH_I2C_Read... [19:24:12]Read from MH i2c: E2 0B 00 E9 0F 00 B4 D1 CB 11 1E B6 AF 75 90 00 CD [19:24:12]RAPDU: B4 D1 CB 11 1E B6 AF 75 90 00 [19:24:12]wFMCommunicate OK [19:24:12]SAM_PROTO_SignData done [19:24:12]FM_MakeSignedData done [19:24:12]CreateOFDProtocolMessage [19:24:12]wFMCommunicate request_size=4 [19:24:12]MH_SAM_APDU [19:24:12]CAPDU: 80 11 00 00 [19:24:12]Write to MH i2c: E2 08 00 EA 0F 80 11 00 00 00 00 00 00 73 [19:24:12]Write i2c OK [19:24:12]MH_I2C_Read... [19:24:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:24:12]Read from MH i2c: E2 [19:24:12]MH_I2C_Read... [19:24:12]Read from MH i2c: E2 17 00 [19:24:12]MH_I2C_Read... [19:24:12]Read from MH i2c: E2 17 00 EA 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 C1 [19:24:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [19:24:12]wFMCommunicate OK [19:24:12]CreateOFDProtocolMessage done [19:24:12]OFDSenderStorePacket 30456 [19:24:12]StoreOFDPacket docnum=30456 [19:24: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 D1 84 07 01 85 6D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 EE 00 00 00 F4 03 04 00 DB 58 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 65 4D DE 59 FA 4B B4 D1 CB 11 1E B6 AF 75 [19:24:12]CheckFolder [19:24:12]dirname=/storage/ofd_packets [19:24:12]CheckFolder done [19:24:12]ProducePacketName [19:24:12]name=ofd_packets/00030456 [19:24:12]NVStorageSaveData ofd_packets/00030456 [19:24:12]File name is /storage/ofd_packets/00030456 [19:24:12]Write 301 bytes [19:24:12]NVStorageSaveData done [19:24:12]OFDSenderStorePacket done [19:24:12]KKMCreateOFDPacket done [19:24:12]NVStorageSaveData kkm_last_timestamp [19:24:12]File name is /storage/kkm_last_timestamp [19:24:12]Write 4 bytes [19:24:12]NVStorageSaveData done [19:24:12]ExternCall_PrintAddStr [19:24:12]wPrintStart [19:24:12]Write to MH i2c: 01 00 00 EB 0F FA [19:24:12]Write i2c OK [19:24:12]MH_I2C_Read... [19:24:12]Read from MH i2c: 01 [19:24:12]MH_I2C_Read... [19:24:12]Read from MH i2c: 01 07 00 [19:24:12]MH_I2C_Read... [19:24:12]Read from MH i2c: 01 07 00 EB 0F 00 00 00 00 00 FF 0F 0F [19:24:12]RasterBufferAndPrint [19:24:12]line Счет N : (1)342859 [19:24:12]line ИНН: 02508201610067 [19:24:12]line Контрольно-Кассовый Чек [19:24:12]line ПРОДАЖА [19:24:12]line ТРК (МРК, ГНК) : 53 [19:24:12]line Товар: 2710124130 [19:24:12]line Аи-92-К-2 [19:24:12]line 7.480 * 66.90 [19:24:12]line = 500.41 [19:24:12]line НДС 12% НСП 1% [19:24:12]line > о реализуемом товаре [19:24:12]line ОКРУГЛЕНИЕ: -0.41 [19:24:12]line ИТОГО: 500.00 [19:24:12]line Внесено: 500.00 [19:24:12]line СДАЧА: 0.00 [19:24:12]line НСП 1% : 4.43 [19:24:12]line НДС 12% : 53.14 [19:24:12]line Наличными: 500.00 [19:24:12]line Безнал.: 0.00 [19:24:12]line Место: АЗС № 78 "Партнер Нефть" [19:24:12]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [19:24:12]line СНО: Общий режим [19:24:12]line Чек 238 20.10.2024 19:24 [19:24:12]line Смена: 114 ФФД: 1.0 [19:24:12]line ЗНМ: 0300000137 [19:24:12]line РНМ: 0000000000186857 [19:24:12]line Версия ККМ: v1.0 [19:24:12]line ФМ: 0000000002094219 [19:24:12]line ФД: 30456 [19:24:12]line ФПД: 111385117325899 [19:24:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T192411&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30456&fm=111385117325899&tin=02508201610067®Number=0000000000186857&sum=50000 [19:24:13]OFD Sender: Processing packet 30456 [packets to send 10, broken 9] [19:24:13]ProducePacketName [19:24:13]name=ofd_packets/00030456 [19:24:13]OFD Sender: To server: pG, [19:24:13]CommunicateWithHost lk.salyk.kg:30040 [19:24:13]ConnectInit lk.salyk.kg [19:24:13]written 0, free lines is 4095 [19:24:13]Connected sock=10 [19:24: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 D1 84 07 01 85 6D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 EE 00 00 00 F4 03 04 00 DB 58 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 65 4D DE 59 FA 4B B4 D1 CB 11 1E B6 AF 75 [19:24: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 90 BE 47 00 BF 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 F8 76 00 00 F4 03 04 00 5E 03 15 67 B6 04 01 00 00 BC 05 AF AD A4 3A 12 35 [19:24:13]CommunicateWithHost err = 0 [19:24:13]CheckOFDResponse [19:24:13]1017 (14) - 77093643461234 [19:24:13]1041 (16) - 0000000002094219 [19:24:13]1040 (4) - 30456 [19:24:13]1012 (4) - 20.10.2024 13:19 [19:24:13]1206 (1) - 0 [19:24:13]OFD Sender: Remove packet 30456 [19:24:13]ProducePacketName [19:24:13]name=ofd_packets/00030456 [19:24:13]NVStorageDeleteData [19:24:13]Write to MH i2c: 01 00 00 16 10 26 [19:24:13]Write i2c OK [19:24:13]MH_I2C_Read... [19:24:13]Read from MH i2c: 01 [19:24:13]MH_I2C_Read... [19:24:13]Read from MH i2c: 01 07 00 [19:24:13]MH_I2C_Read... [19:24:13]Read from MH i2c: 01 07 00 16 10 00 00 00 00 00 EB 0C 24 [19:24:13]RasterBufferAndPrint [19:24:13]line [19:24:13]line [19:24:13]line [19:24:13]line [19:24:13]line [19:24:13]written 0, free lines is 3313 [19:24:13]MH_Cut [19:24:13]Write to MH i2c: D1 01 00 1D 10 01 FF [19:24:13]Write i2c OK [19:24:13]MH_I2C_Read... [19:24:13]Read from MH i2c: D1 [19:24:13]MH_I2C_Read... [19:24:13]Read from MH i2c: D1 01 00 [19:24:13]MH_I2C_Read... [19:24:13]Read from MH i2c: D1 01 00 1D 10 00 FE [19:24:13]Write to MH i2c: 01 00 00 1E 10 2E [19:24:13]Write i2c OK [19:24:13]MH_I2C_Read... [19:24:14]OFD Sender: No OFD packet to send [19:24:14]*** Cut start [19:24:14]*** Partial cut [19:24:14]*** CUTSNS_PIN = 1 [19:24:14]*** CUTSNS_PIN = 0 [19:24:14]*** Brake cut motor [19:24:14]Read from MH i2c: 01 [19:24:14]MH_I2C_Read... [19:24:14]*** Stop cut motor [19:24:14]*** Cut end [19:24:14]Read from MH i2c: 01 07 00 [19:24:14]MH_I2C_Read... [19:24:14]Read from MH i2c: 01 07 00 1E 10 00 00 00 00 00 FF 0F 43 [19:24:14]process_action close_receipt done [19:24:14]requested_data is exist [19:24:14]produce_requested_data [19:24:14]requested_item fm.sn is exist - process it [19:24:14]wFMCommunicate request_size=4 [19:24:14]MH_SAM_APDU [19:24:14]CAPDU: 80 11 00 00 [19:24:14]Write to MH i2c: E2 08 00 1F 10 80 11 00 00 00 00 00 00 A9 [19:24:14]Write i2c OK [19:24:14]MH_I2C_Read... [19:24:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:24:15]Read from MH i2c: E2 [19:24:15]MH_I2C_Read... [19:24:15]Read from MH i2c: E2 17 00 [19:24:15]MH_I2C_Read... [19:24:15]Read from MH i2c: E2 17 00 1F 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 F7 [19: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 [19:24:15]wFMCommunicate OK [19:24:15]requested_item fd.num is exist - process it [19:24:15]SAM_PROTO_GetFieldsCounters [19:24:15]wFMCommunicate request_size=4 [19:24:15]MH_SAM_APDU [19:24:15]CAPDU: 80 13 00 00 [19:24:15]Write to MH i2c: E2 08 00 20 10 80 13 00 00 00 00 00 00 AC [19:24:15]Write i2c OK [19:24:15]MH_I2C_Read... [19:24:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:24:15]Read from MH i2c: E2 [19:24:15]MH_I2C_Read... [19:24:15]Read from MH i2c: E2 62 00 [19:24:15]MH_I2C_Read... [19:24:15]Read from MH i2c: E2 62 00 20 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 7C [19:24: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 F8 76 00 00 0E 04 04 00 72 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 [19:24:15]wFMCommunicate OK [19:24:15]SAM_PROTO_GetFieldsCounters done [19:24:15]requested_item shift.num is exist - process it [19:24:15]requested_item shift.opened is exist - process it [19:24:15]req_shift_opened [19:24:15]FM_GetShiftState [19:24:15]SAM_PROTO_GetShiftState [19:24:15]wFMCommunicate request_size=4 [19:24:15]MH_SAM_APDU [19:24:15]CAPDU: 80 13 01 00 [19:24:15]Write to MH i2c: E2 08 00 21 10 80 13 01 00 00 00 00 00 AE [19:24:15]Write i2c OK [19:24:15]MH_I2C_Read... [19:24:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:24:15]Read from MH i2c: E2 [19:24:15]MH_I2C_Read... [19:24:15]Read from MH i2c: E2 0E 00 [19:24:15]MH_I2C_Read... [19:24:15]Read from MH i2c: E2 0E 00 21 10 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 94 [19:24:15]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [19:24:15]wFMCommunicate OK [19:24:15]SAM_PROTO_GetShiftState done [19:24:15]FM_GetShiftState done [19:24:15]req_shift_opened done [19:24:15]requested_item shift.open_date is exist - process it [19:24:15]req_shift_open_date [19:24:15]req_shift_open_date done [19:24:15]produce_requested_data done [19:24:15]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30456,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [19:24:15]process_action_free close_receipt [19:24:15]json_value_free [19:24:15]json_value_free done [19:24:15]process_json_proto returns [19:24:15]Send response to host [19:24:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30456,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [19:24:15]free response buf [19:24:15]execute_script done [19:24:15]execute_script returns [19:24:15]free content buf [19:24:15]Sock 9.Close socket [19:24:15]Sock 9.Thread stoped [19:24:19]OFD Sender: No OFD packet to send [19:24:24]OFD Sender: No OFD packet to send [19:24:29]OFD Sender: No OFD packet to send [19:24:34]OFD Sender: No OFD packet to send [19:24:39]OFD Sender: No OFD packet to send [19:24:44]OFD Sender: No OFD packet to send [19:24:49]OFD Sender: No OFD packet to send [19:24:54]OFD Sender: No OFD packet to send [19:24:59]OFD Sender: No OFD packet to send [19:25:04]OFD Sender: No OFD packet to send [19:25:09]OFD Sender: No OFD packet to send [19:25:14]OFD Sender: No OFD packet to send [19:25:19]OFD Sender: No OFD packet to send [19:25:24]OFD Sender: No OFD packet to send [19:25:29]OFD Sender: No OFD packet to send [19:25:34]OFD Sender: No OFD packet to send [19:25:39]OFD Sender: No OFD packet to send [19:25:44]OFD Sender: No OFD packet to send [19:25:49]OFD Sender: No OFD packet to send [19:25:54]OFD Sender: No OFD packet to send [19:25:59]OFD Sender: No OFD packet to send [19:26:04]OFD Sender: No OFD packet to send [19:26:09]OFD Sender: No OFD packet to send [19:26:14]OFD Sender: No OFD packet to send [19:26:19]OFD Sender: No OFD packet to send [19:26:24]OFD Sender: No OFD packet to send [19:26:29]OFD Sender: No OFD packet to send [19:26:34]OFD Sender: No OFD packet to send [19:26:39]OFD Sender: No OFD packet to send [19:26:44]OFD Sender: No OFD packet to send [19:26:49]OFD Sender: No OFD packet to send [19:26:54]OFD Sender: No OFD packet to send [19:26:59]OFD Sender: No OFD packet to send [19:27:04]OFD Sender: No OFD packet to send [19:27:09]OFD Sender: No OFD packet to send [19:27:14]OFD Sender: No OFD packet to send [19:27:19]OFD Sender: No OFD packet to send [19:27:24]OFD Sender: No OFD packet to send [19:27:29]OFD Sender: No OFD packet to send [19:27:34]OFD Sender: No OFD packet to send [19:27:39]OFD Sender: No OFD packet to send [19:27:44]OFD Sender: No OFD packet to send [19:27:49]OFD Sender: No OFD packet to send [19:27:54]OFD Sender: No OFD packet to send [19:27:59]OFD Sender: No OFD packet to send [19:28:04]OFD Sender: No OFD packet to send [19:28:09]OFD Sender: No OFD packet to send [19:28:14]OFD Sender: No OFD packet to send [19:28:19]OFD Sender: No OFD packet to send [19:28:24]OFD Sender: No OFD packet to send [19:28:29]OFD Sender: No OFD packet to send [19:28:34]OFD Sender: No OFD packet to send [19:28:39]OFD Sender: No OFD packet to send [19:28:44]OFD Sender: No OFD packet to send [19:28:49]OFD Sender: No OFD packet to send [19:28:54]OFD Sender: No OFD packet to send [19:28:59]OFD Sender: No OFD packet to send [19:29:01]accept exits with 7 [19:29:01]New connection [19:29:01]New thread 3067346276 created [19:29:01]Thread 3067489636 joined [19:29:01]Waiting for new connection... [19:29:01] Sock 7.Parse request [19:29:01]Sock 7.Check first char [19:29:01]Sock 7.First char is OK [19:29:01]request: POST /json_proto HTTP/1.0 [19:29:01]Method: POST [19:29:01]URL: /json_proto [19:29:01]Method is POST - this is cgi request [19:29:01]url: /json_proto [19:29:01]query_string will be loaded in cgi processing [19:29:01]execute_cgi json_proto POST (null) [19:29:01]execute_cgi path=json_proto method=POST [19:29:01]POST find Content-Length [19:29:01]Host: 172.17.51.3:8080 [19:29:01]Content-Length: 840 [19:29:01]Content-Type: application/json [19:29:01] [19:29:01]POST finish read [19:29:01]Found Content-Length = 840 [19:29:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342860", "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 }]} ], "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" ] } } [19:29:01]execute_script... [19:29: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)342860", "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 }]} ], "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" ] } } [19:29:01]POST & json_proto [19:29:01]process_json_proto [19:29:01]json parsed OK: [19:29:01]protocol is kg_v1.0 [19:29:01]action value=close_receipt [19:29:01]process_action close_receipt [19:29:01]cmd_close_receipt [19:29:01]MH_GetDate [19:29:01]Write to MH i2c: F0 00 00 22 10 21 [19:29:01]Write i2c OK [19:29:01]MH_I2C_Read... [19:29:01]Read from MH i2c: F0 [19:29:01]MH_I2C_Read... [19:29:01]Read from MH i2c: F0 09 00 [19:29:01]MH_I2C_Read... [19:29:01]Read from MH i2c: F0 09 00 22 10 00 FE 59 15 67 04 C1 95 66 BD [19:29:01]GetLastDocTimeStamp 1729452251 [19:29:01]current date 1729452542 [19:29:01]FM_GetShiftState [19:29:01]SAM_PROTO_GetShiftState [19:29:01]wFMCommunicate request_size=4 [19:29:01]MH_SAM_APDU [19:29:01]CAPDU: 80 13 01 00 [19:29:01]Write to MH i2c: E2 08 00 23 10 80 13 01 00 00 00 00 00 B0 [19:29:01]Write i2c OK [19:29:01]MH_I2C_Read... [19:29:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:29:01]Read from MH i2c: E2 [19:29:01]MH_I2C_Read... [19:29:01]Read from MH i2c: E2 0E 00 [19:29:01]MH_I2C_Read... [19:29:01]Read from MH i2c: E2 0E 00 23 10 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 96 [19:29:01]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [19:29:01]wFMCommunicate OK [19:29:01]SAM_PROTO_GetShiftState done [19:29:01]FM_GetShiftState done [19:29:01]opened in 1729384718 [19:29:01]opened+sec_in_day 1729471118 [19:29:01]quantity*price = 50041 [19:29:01]sum+1 = 50042 [19:29:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 239 20.10.2024 19:29 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Платежная система: АКБ Кыргызстан ФМ: 0000000002094219 ФД: 30457 ФПД: 55399888987317 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T192902&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30457&fm=55399888987317&tin=02508201610067®Number=0000000000186857&sum=50041 [19:29:02]StoreToDocumentArchive [19:29:02]shift 114 fd 30457 [19:29:02]save to /storage/0114/doc_00030457 [19:29:02]save last doc name /storage/0114/doc_00030457 to /storage/kkm_last_doc_name [19:29:02]save OK [19:29:02]Clear old archive folders... [19:29:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:29:02]tlvbuf is B6F442A0 [19:29:02]SAM_PROTO_ClearQueue [19:29:02]wFMCommunicate request_size=4 [19:29:02]MH_SAM_APDU [19:29:02]CAPDU: 80 09 00 00 [19:29:02]Write to MH i2c: E2 08 00 30 10 80 09 00 00 00 00 00 00 B2 [19:29:02]Write i2c OK [19:29:02]MH_I2C_Read... [19:29:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:29:02]Read from MH i2c: E2 [19:29:02]MH_I2C_Read... [19:29:02]Read from MH i2c: E2 03 00 [19:29:02]MH_I2C_Read... [19:29:02]Read from MH i2c: E2 03 00 30 10 00 90 00 B4 [19:29:02]RAPDU: 90 00 [19:29:02]wFMCommunicate OK [19:29:02]SAM_PROTO_ClearQueue done [19:29:02]KKMCreateOFDPacket [19:29:02]OFDProtocolAddRootSTLVToBuf [19:29:02]FM_MakeSignedData [19:29:02]FM_MakeSignedData [19:29:02]SAM_PROTO_SignData [19:29:02]wFMCommunicate request_size=4 [19:29:02]MH_SAM_APDU [19:29:02]CAPDU: 80 0D 01 02 [19:29:02]Write to MH i2c: E2 08 00 31 10 80 0D 01 02 00 00 00 00 BA [19:29:02]Write i2c OK [19:29:02]MH_I2C_Read... [19:29:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:29:02]Read from MH i2c: E2 [19:29:02]MH_I2C_Read... [19:29:02]Read from MH i2c: E2 03 00 [19:29:02]MH_I2C_Read... [19:29:02]Read from MH i2c: E2 03 00 31 10 00 90 00 B5 [19:29:02]RAPDU: 90 00 [19:29:02]wFMCommunicate OK [19:29:02]wFMCommunicate request_size=255 [19:29:02]MH_SAM_APDU [19:29:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 EF 00 00 00 F4 03 04 00 FE 59 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 32 [19:29:02]Write to MH i2c: E2 02 01 32 10 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 EF 00 00 00 F4 03 04 00 FE 59 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 32 00 00 72 [19:29:02]Write i2c OK [19:29:02]MH_I2C_Read... [19:29:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:29:03]Read from MH i2c: E2 [19:29:03]MH_I2C_Read... [19:29:03]Read from MH i2c: E2 03 00 [19:29:03]MH_I2C_Read... [19:29:03]Read from MH i2c: E2 03 00 32 10 00 90 00 B6 [19:29:03]RAPDU: 90 00 [19:29:03]wFMCommunicate OK [19:29:03]wFMCommunicate request_size=10 [19:29:03]MH_SAM_APDU [19:29:03]CAPDU: 80 0D 02 02 05 62 CA B4 24 B5 [19:29:03]Write to MH i2c: E2 0D 00 33 10 80 0D 02 02 05 00 62 CA B4 24 B5 00 00 80 [19:29:03]Write i2c OK [19:29:03]MH_I2C_Read... [19:29:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:29:03]Read from MH i2c: E2 [19:29:03]MH_I2C_Read... [19:29:03]Read from MH i2c: E2 03 00 [19:29:03]MH_I2C_Read... [19:29:03]Read from MH i2c: E2 03 00 33 10 00 90 00 B7 [19:29:03]RAPDU: 90 00 [19:29:03]wFMCommunicate OK [19:29:03]wFMCommunicate request_size=4 [19:29:03]MH_SAM_APDU [19:29:03]CAPDU: 80 0D 03 02 [19:29:03]Write to MH i2c: E2 08 00 34 10 80 0D 03 02 00 00 00 00 BF [19:29:03]Write i2c OK [19:29:03]MH_I2C_Read... [19:29:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:29:03]Read from MH i2c: E2 [19:29:03]MH_I2C_Read... [19:29:03]Read from MH i2c: E2 0B 00 [19:29:03]MH_I2C_Read... [19:29:03]Read from MH i2c: E2 0B 00 34 10 00 68 FF 32 9F 66 D6 B9 3D 90 00 2A [19:29:03]RAPDU: 68 FF 32 9F 66 D6 B9 3D 90 00 [19:29:03]wFMCommunicate OK [19:29:03]SAM_PROTO_SignData done [19:29:03]FM_MakeSignedData done [19:29:03]CreateOFDProtocolMessage [19:29:03]wFMCommunicate request_size=4 [19:29:03]MH_SAM_APDU [19:29:03]CAPDU: 80 11 00 00 [19:29:03]Write to MH i2c: E2 08 00 35 10 80 11 00 00 00 00 00 00 BF [19:29:03]Write i2c OK [19:29:03]MH_I2C_Read... [19:29:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:29:03]Read from MH i2c: E2 [19:29:03]MH_I2C_Read... [19:29:03]Read from MH i2c: E2 17 00 [19:29:03]MH_I2C_Read... [19:29:03]Read from MH i2c: E2 17 00 35 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 0D [19:29:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [19:29:03]wFMCommunicate OK [19:29:03]CreateOFDProtocolMessage done [19:29:03]OFDSenderStorePacket 30457 [19:29:03]StoreOFDPacket docnum=30457 [19:29: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 0F 01 00 00 69 47 07 01 A0 A1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 EF 00 00 00 F4 03 04 00 FE 59 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 32 62 CA B4 24 B5 68 FF 32 9F 66 D6 B9 3D [19:29:03]CheckFolder [19:29:03]dirname=/storage/ofd_packets [19:29:03]CheckFolder done [19:29:03]ProducePacketName [19:29:03]name=ofd_packets/00030457 [19:29:03]NVStorageSaveData ofd_packets/00030457 [19:29:03]File name is /storage/ofd_packets/00030457 [19:29:03]Write 301 bytes [19:29:03]NVStorageSaveData done [19:29:03]OFDSenderStorePacket done [19:29:03]KKMCreateOFDPacket done [19:29:03]NVStorageSaveData kkm_last_timestamp [19:29:03]File name is /storage/kkm_last_timestamp [19:29:03]Write 4 bytes [19:29:03]NVStorageSaveData done [19:29:03]ExternCall_PrintAddStr [19:29:03]wPrintStart [19:29:03]Write to MH i2c: 01 00 00 36 10 46 [19:29:03]Write i2c OK [19:29:03]MH_I2C_Read... [19:29:03]Read from MH i2c: 01 [19:29:03]MH_I2C_Read... [19:29:03]Read from MH i2c: 01 07 00 [19:29:03]MH_I2C_Read... [19:29:03]Read from MH i2c: 01 07 00 36 10 00 00 00 00 00 FF 0F 5B [19:29:03]RasterBufferAndPrint [19:29:03]line Счет N : (1)342860 [19:29:03]line ИНН: 02508201610067 [19:29:03]line Контрольно-Кассовый Чек [19:29:03]line ПРОДАЖА [19:29:03]line ТРК (МРК, ГНК) : 53 [19:29:03]line Товар: 2710124130 [19:29:03]line Аи-92-К-2 [19:29:03]line 7.480 * 66.90 [19:29:03]line = 500.41 [19:29:03]line НДС 12% НСП 1% [19:29:03]line > о реализуемом товаре [19:29:03]line ИТОГО: 500.41 [19:29:03]line НСП 1% : 4.43 [19:29:03]line НДС 12% : 53.14 [19:29:03]line Наличными: 0.00 [19:29:03]line Безнал.: 500.41 [19:29:03]line Место: АЗС № 78 "Партнер Нефть" [19:29:03]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [19:29:03]line СНО: Общий режим [19:29:03]line Чек 239 20.10.2024 19:29 [19:29:03]line Смена: 114 ФФД: 1.0 [19:29:03]line ЗНМ: 0300000137 [19:29:03]line РНМ: 0000000000186857 [19:29:03]line Версия ККМ: v1.0 [19:29:03]line Платежная система: АКБ Кыргызстан [19:29:03]line ФМ: 0000000002094219 [19:29:03]line ФД: 30457 [19:29:03]line ФПД: 55399888987317 [19:29:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T192902&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30457&fm=55399888987317&tin=02508201610067®Number=0000000000186857&sum=50041 [19:29:03]OFD Sender: Processing packet 30457 [packets to send 10, broken 9] [19:29:03]ProducePacketName [19:29:03]name=ofd_packets/00030457 [19:29:03]OFD Sender: To server: pG, [19:29:03]CommunicateWithHost lk.salyk.kg:30040 [19:29:03]ConnectInit lk.salyk.kg [19:29:03]written 0, free lines is 4095 [19:29:03]Connected sock=10 [19:29: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 0F 01 00 00 69 47 07 01 A0 A1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 EF 00 00 00 F4 03 04 00 FE 59 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 32 62 CA B4 24 B5 68 FF 32 9F 66 D6 B9 3D [19:29: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 51 F8 47 00 FC 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 F9 76 00 00 F4 03 04 00 81 04 15 67 B6 04 01 00 00 26 30 C6 00 D4 BD 88 9C [19:29:03]CommunicateWithHost err = 0 [19:29:03]CheckOFDResponse [19:29:03]1017 (14) - 77093643461234 [19:29:03]1041 (16) - 0000000002094219 [19:29:03]1040 (4) - 30457 [19:29:03]1012 (4) - 20.10.2024 13:24 [19:29:03]1206 (1) - 0 [19:29:03]OFD Sender: Remove packet 30457 [19:29:03]ProducePacketName [19:29:03]name=ofd_packets/00030457 [19:29:03]NVStorageDeleteData [19:29:04]Write to MH i2c: 01 00 00 60 10 70 [19:29:04]Write i2c OK [19:29:04]MH_I2C_Read... [19:29:04]Read from MH i2c: 01 [19:29:04]MH_I2C_Read... [19:29:04]Read from MH i2c: 01 07 00 [19:29:04]MH_I2C_Read... [19:29:04]Read from MH i2c: 01 07 00 60 10 00 00 00 00 00 FE 0C 81 [19:29:04]RasterBufferAndPrint [19:29:04]line [19:29:04]line [19:29:04]line [19:29:04]line [19:29:04]line [19:29:04]written 0, free lines is 3335 [19:29:04]MH_Cut [19:29:04]Write to MH i2c: D1 01 00 67 10 01 49 [19:29:04]Write i2c OK [19:29:04]MH_I2C_Read... [19:29:04]Read from MH i2c: D1 [19:29:04]MH_I2C_Read... [19:29:04]Read from MH i2c: D1 01 00 [19:29:04]MH_I2C_Read... [19:29:04]Read from MH i2c: D1 01 00 67 10 00 48 [19:29:04]Write to MH i2c: 01 00 00 68 10 78 [19:29:04]Write i2c OK [19:29:04]MH_I2C_Read... [19:29:04]OFD Sender: No OFD packet to send [19:29:04]*** Cut start [19:29:04]*** Partial cut [19:29:04]*** CUTSNS_PIN = 1 [19:29:04]*** CUTSNS_PIN = 0 [19:29:04]*** Brake cut motor [19:29:05]Read from MH i2c: 01 [19:29:05]MH_I2C_Read... [19:29:05]*** Stop cut motor [19:29:05]*** Cut end [19:29:05]Read from MH i2c: 01 07 00 [19:29:05]MH_I2C_Read... [19:29:05]Read from MH i2c: 01 07 00 68 10 00 00 00 00 00 FF 0F 8D [19:29:05]process_action close_receipt done [19:29:05]requested_data is exist [19:29:05]produce_requested_data [19:29:05]requested_item fm.sn is exist - process it [19:29:05]wFMCommunicate request_size=4 [19:29:05]MH_SAM_APDU [19:29:05]CAPDU: 80 11 00 00 [19:29:05]Write to MH i2c: E2 08 00 69 10 80 11 00 00 00 00 00 00 F3 [19:29:05]Write i2c OK [19:29:05]MH_I2C_Read... [19:29:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:29:05]Read from MH i2c: E2 [19:29:05]MH_I2C_Read... [19:29:05]Read from MH i2c: E2 17 00 [19:29:05]MH_I2C_Read... [19:29:05]Read from MH i2c: E2 17 00 69 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 41 [19:29:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [19:29:05]wFMCommunicate OK [19:29:05]requested_item fd.num is exist - process it [19:29:05]SAM_PROTO_GetFieldsCounters [19:29:05]wFMCommunicate request_size=4 [19:29:05]MH_SAM_APDU [19:29:05]CAPDU: 80 13 00 00 [19:29:05]Write to MH i2c: E2 08 00 6A 10 80 13 00 00 00 00 00 00 F6 [19:29:05]Write i2c OK [19:29:05]MH_I2C_Read... [19:29:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:29:05]Read from MH i2c: E2 [19:29:05]MH_I2C_Read... [19:29:05]Read from MH i2c: E2 62 00 [19:29:05]MH_I2C_Read... [19:29:05]Read from MH i2c: E2 62 00 6A 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 CA [19:29: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 F9 76 00 00 0E 04 04 00 72 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 [19:29:05]wFMCommunicate OK [19:29:05]SAM_PROTO_GetFieldsCounters done [19:29:05]requested_item shift.num is exist - process it [19:29:05]requested_item shift.opened is exist - process it [19:29:05]req_shift_opened [19:29:05]FM_GetShiftState [19:29:05]SAM_PROTO_GetShiftState [19:29:05]wFMCommunicate request_size=4 [19:29:05]MH_SAM_APDU [19:29:05]CAPDU: 80 13 01 00 [19:29:05]Write to MH i2c: E2 08 00 6B 10 80 13 01 00 00 00 00 00 F8 [19:29:05]Write i2c OK [19:29:05]MH_I2C_Read... [19:29:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:29:05]Read from MH i2c: E2 [19:29:05]MH_I2C_Read... [19:29:05]Read from MH i2c: E2 0E 00 [19:29:05]MH_I2C_Read... [19:29:05]Read from MH i2c: E2 0E 00 6B 10 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 DE [19:29:05]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [19:29:05]wFMCommunicate OK [19:29:05]SAM_PROTO_GetShiftState done [19:29:05]FM_GetShiftState done [19:29:05]req_shift_opened done [19:29:05]requested_item shift.open_date is exist - process it [19:29:05]req_shift_open_date [19:29:05]req_shift_open_date done [19:29:05]produce_requested_data done [19:29:05]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30457,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [19:29:05]process_action_free close_receipt [19:29:05]json_value_free [19:29:05]json_value_free done [19:29:05]process_json_proto returns [19:29:05]Send response to host [19:29:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30457,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [19:29:05]free response buf [19:29:05]execute_script done [19:29:05]execute_script returns [19:29:05]free content buf [19:29:05]Sock 7.Close socket [19:29:05]Sock 7.Thread stoped [19:29:09]OFD Sender: No OFD packet to send [19:29:14]OFD Sender: No OFD packet to send [19:29:19]OFD Sender: No OFD packet to send [19:29:24]OFD Sender: No OFD packet to send [19:29:29]OFD Sender: No OFD packet to send [19:29:34]OFD Sender: No OFD packet to send [19:29:39]OFD Sender: No OFD packet to send [19:29:44]OFD Sender: No OFD packet to send [19:29:49]OFD Sender: No OFD packet to send [19:29:54]OFD Sender: No OFD packet to send [19:29:59]OFD Sender: No OFD packet to send [19:30:04]OFD Sender: No OFD packet to send [19:30:09]OFD Sender: No OFD packet to send [19:30:14]OFD Sender: No OFD packet to send [19:30:19]OFD Sender: No OFD packet to send [19:30:24]OFD Sender: No OFD packet to send [19:30:29]OFD Sender: No OFD packet to send [19:30:34]OFD Sender: No OFD packet to send [19:30:39]OFD Sender: No OFD packet to send [19:30:44]OFD Sender: No OFD packet to send [19:30:49]OFD Sender: No OFD packet to send [19:30:54]OFD Sender: No OFD packet to send [19:30:59]OFD Sender: No OFD packet to send [19:31:04]OFD Sender: No OFD packet to send [19:31:09]OFD Sender: No OFD packet to send [19:31:14]OFD Sender: No OFD packet to send [19:31:19]OFD Sender: No OFD packet to send [19:31:24]OFD Sender: No OFD packet to send [19:31:25]accept exits with 9 [19:31:25]New connection [19:31:25]New thread 3067489636 created [19:31:25]Thread 3067346276 joined [19:31:25]Waiting for new connection... [19:31:25] Sock 9.Parse request [19:31:25]Sock 9.Check first char [19:31:25]Sock 9.First char is OK [19:31:25]request: POST /json_proto HTTP/1.0 [19:31:25]Method: POST [19:31:25]URL: /json_proto [19:31:25]Method is POST - this is cgi request [19:31:25]url: /json_proto [19:31:25]query_string will be loaded in cgi processing [19:31:25]execute_cgi json_proto POST (null) [19:31:25]execute_cgi path=json_proto method=POST [19:31:25]POST find Content-Length [19:31:25]Host: 172.17.51.3:8080 [19:31:25]Content-Length: 682 [19:31:25]Content-Type: application/json [19:31:25] [19:31:25]POST finish read [19:31:25]Found Content-Length = 682 [19:31:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342861", "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" ] } } [19:31:25]execute_script... [19:31: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)342861", "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" ] } } [19:31:25]POST & json_proto [19:31:25]process_json_proto [19:31:25]json parsed OK: [19:31:25]protocol is kg_v1.0 [19:31:25]action value=close_receipt [19:31:25]process_action close_receipt [19:31:25]cmd_close_receipt [19:31:25]MH_GetDate [19:31:25]Write to MH i2c: F0 00 00 6C 10 6B [19:31:25]Write i2c OK [19:31:25]MH_I2C_Read... [19:31:25]Read from MH i2c: F0 [19:31:25]MH_I2C_Read... [19:31:25]Read from MH i2c: F0 09 00 [19:31:25]MH_I2C_Read... [19:31:25]Read from MH i2c: F0 09 00 6C 10 00 8D 5A 15 67 04 C1 95 66 97 [19:31:25]GetLastDocTimeStamp 1729452542 [19:31:25]current date 1729452685 [19:31:25]FM_GetShiftState [19:31:25]SAM_PROTO_GetShiftState [19:31:25]wFMCommunicate request_size=4 [19:31:25]MH_SAM_APDU [19:31:25]CAPDU: 80 13 01 00 [19:31:25]Write to MH i2c: E2 08 00 6D 10 80 13 01 00 00 00 00 00 FA [19:31:25]Write i2c OK [19:31:25]MH_I2C_Read... [19:31:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:31:25]Read from MH i2c: E2 [19:31:25]MH_I2C_Read... [19:31:25]Read from MH i2c: E2 0E 00 [19:31:25]MH_I2C_Read... [19:31:25]Read from MH i2c: E2 0E 00 6D 10 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 E0 [19:31:25]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [19:31:25]wFMCommunicate OK [19:31:25]SAM_PROTO_GetShiftState done [19:31:25]FM_GetShiftState done [19:31:25]opened in 1729384718 [19:31:25]opened+sec_in_day 1729471118 [19:31:25]quantity*price = 100021 [19:31:25]sum+1 = 100023 [19:31:25]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 СНО: Общий режим Чек 240 20.10.2024 19:31 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30458 ФПД: 28176651633774 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T193125&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30458&fm=28176651633774&tin=02508201610067®Number=0000000000186857&sum=100000 [19:31:26]StoreToDocumentArchive [19:31:26]shift 114 fd 30458 [19:31:26]save to /storage/0114/doc_00030458 [19:31:26]save last doc name /storage/0114/doc_00030458 to /storage/kkm_last_doc_name [19:31:26]save OK [19:31:26]Clear old archive folders... [19:31:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:31:26]tlvbuf is B6F2B210 [19:31:26]SAM_PROTO_ClearQueue [19:31:26]wFMCommunicate request_size=4 [19:31:26]MH_SAM_APDU [19:31:26]CAPDU: 80 09 00 00 [19:31:26]Write to MH i2c: E2 08 00 7A 10 80 09 00 00 00 00 00 00 FC [19:31:26]Write i2c OK [19:31:26]MH_I2C_Read... [19:31:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:31:26]Read from MH i2c: E2 [19:31:26]MH_I2C_Read... [19:31:26]Read from MH i2c: E2 03 00 [19:31:26]MH_I2C_Read... [19:31:26]Read from MH i2c: E2 03 00 7A 10 00 90 00 FE [19:31:26]RAPDU: 90 00 [19:31:26]wFMCommunicate OK [19:31:26]SAM_PROTO_ClearQueue done [19:31:26]KKMCreateOFDPacket [19:31:26]OFDProtocolAddRootSTLVToBuf [19:31:26]FM_MakeSignedData [19:31:26]FM_MakeSignedData [19:31:26]SAM_PROTO_SignData [19:31:26]wFMCommunicate request_size=4 [19:31:26]MH_SAM_APDU [19:31:26]CAPDU: 80 0D 01 02 [19:31:26]Write to MH i2c: E2 08 00 7B 10 80 0D 01 02 00 00 00 00 04 [19:31:26]Write i2c OK [19:31:26]MH_I2C_Read... [19:31:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:31:26]Read from MH i2c: E2 [19:31:26]MH_I2C_Read... [19:31:26]Read from MH i2c: E2 03 00 [19:31:26]MH_I2C_Read... [19:31:26]Read from MH i2c: E2 03 00 7B 10 00 90 00 FF [19:31:26]RAPDU: 90 00 [19:31:26]wFMCommunicate OK [19:31:26]wFMCommunicate request_size=255 [19:31:26]MH_SAM_APDU [19:31:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 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 F0 00 00 00 F4 03 04 00 8D 5A 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 19 [19:31:26]Write to MH i2c: E2 02 01 7C 10 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 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 F0 00 00 00 F4 03 04 00 8D 5A 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 19 00 00 01 [19:31:26]Write i2c OK [19:31:26]MH_I2C_Read... [19:31:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:31:26]Read from MH i2c: E2 [19:31:26]MH_I2C_Read... [19:31:26]Read from MH i2c: E2 03 00 [19:31:26]MH_I2C_Read... [19:31:26]Read from MH i2c: E2 03 00 7C 10 00 90 00 00 [19:31:26]RAPDU: 90 00 [19:31:26]wFMCommunicate OK [19:31:26]wFMCommunicate request_size=10 [19:31:26]MH_SAM_APDU [19:31:26]CAPDU: 80 0D 02 02 05 A0 63 4F C4 6E [19:31:26]Write to MH i2c: E2 0D 00 7D 10 80 0D 02 02 05 00 A0 63 4F C4 6E 00 00 95 [19:31:26]Write i2c OK [19:31:26]MH_I2C_Read... [19:31:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:31:26]Read from MH i2c: E2 [19:31:26]MH_I2C_Read... [19:31:26]Read from MH i2c: E2 03 00 [19:31:26]MH_I2C_Read... [19:31:26]Read from MH i2c: E2 03 00 7D 10 00 90 00 01 [19:31:26]RAPDU: 90 00 [19:31:26]wFMCommunicate OK [19:31:26]wFMCommunicate request_size=4 [19:31:26]MH_SAM_APDU [19:31:26]CAPDU: 80 0D 03 02 [19:31:26]Write to MH i2c: E2 08 00 7E 10 80 0D 03 02 00 00 00 00 09 [19:31:26]Write i2c OK [19:31:26]MH_I2C_Read... [19:31:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:31:26]Read from MH i2c: E2 [19:31:26]MH_I2C_Read... [19:31:26]Read from MH i2c: E2 0B 00 [19:31:26]MH_I2C_Read... [19:31:26]Read from MH i2c: E2 0B 00 7E 10 00 3E 43 B3 EA 8E 27 94 18 90 00 89 [19:31:26]RAPDU: 3E 43 B3 EA 8E 27 94 18 90 00 [19:31:26]wFMCommunicate OK [19:31:26]SAM_PROTO_SignData done [19:31:26]FM_MakeSignedData done [19:31:26]CreateOFDProtocolMessage [19:31:26]wFMCommunicate request_size=4 [19:31:26]MH_SAM_APDU [19:31:26]CAPDU: 80 11 00 00 [19:31:26]Write to MH i2c: E2 08 00 7F 10 80 11 00 00 00 00 00 00 09 [19:31:26]Write i2c OK [19:31:26]MH_I2C_Read... [19:31:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:31:26]Read from MH i2c: E2 [19:31:26]MH_I2C_Read... [19:31:26]Read from MH i2c: E2 17 00 [19:31:26]MH_I2C_Read... [19:31:26]Read from MH i2c: E2 17 00 7F 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 57 [19:31:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [19:31:26]wFMCommunicate OK [19:31:26]CreateOFDProtocolMessage done [19:31:26]OFDSenderStorePacket 30458 [19:31:26]StoreOFDPacket docnum=30458 [19:31: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 F5 A3 07 01 DF 64 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 F0 00 00 00 F4 03 04 00 8D 5A 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 19 A0 63 4F C4 6E 3E 43 B3 EA 8E 27 94 18 [19:31:26]CheckFolder [19:31:26]dirname=/storage/ofd_packets [19:31:26]CheckFolder done [19:31:26]ProducePacketName [19:31:26]name=ofd_packets/00030458 [19:31:26]NVStorageSaveData ofd_packets/00030458 [19:31:26]File name is /storage/ofd_packets/00030458 [19:31:26]Write 301 bytes [19:31:26]NVStorageSaveData done [19:31:26]OFDSenderStorePacket done [19:31:26]KKMCreateOFDPacket done [19:31:26]NVStorageSaveData kkm_last_timestamp [19:31:26]File name is /storage/kkm_last_timestamp [19:31:26]Write 4 bytes [19:31:26]NVStorageSaveData done [19:31:26]ExternCall_PrintAddStr [19:31:26]wPrintStart [19:31:26]Write to MH i2c: 01 00 00 80 10 90 [19:31:26]Write i2c OK [19:31:26]MH_I2C_Read... [19:31:26]Read from MH i2c: 01 [19:31:26]MH_I2C_Read... [19:31:26]Read from MH i2c: 01 07 00 [19:31:26]MH_I2C_Read... [19:31:26]Read from MH i2c: 01 07 00 80 10 00 00 00 00 00 FF 0F A5 [19:31:26]RasterBufferAndPrint [19:31:26]line Счет N : (1)342861 [19:31:26]line ИНН: 02508201610067 [19:31:26]line Контрольно-Кассовый Чек [19:31:26]line ПРОДАЖА [19:31:26]line ТРК (МРК, ГНК) : 32 [19:31:26]line Товар: 2710124500 [19:31:26]line Аи-95-К-3 [19:31:26]line 13.480 * 74.20 [19:31:26]line = 1000.22 [19:31:26]line НДС 12% НСП 1% [19:31:26]line > о реализуемом товаре [19:31:26]line ОКРУГЛЕНИЕ: -0.22 [19:31:26]line ИТОГО: 1000.00 [19:31:26]line Внесено: 1000.00 [19:31:26]line СДАЧА: 0.00 [19:31:26]line НСП 1% : 8.85 [19:31:26]line НДС 12% : 106.22 [19:31:26]line Наличными: 1000.00 [19:31:26]line Безнал.: 0.00 [19:31:26]line Место: АЗС № 78 "Партнер Нефть" [19:31:26]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [19:31:26]line СНО: Общий режим [19:31:26]line Чек 240 20.10.2024 19:31 [19:31:26]line Смена: 114 ФФД: 1.0 [19:31:26]line ЗНМ: 0300000137 [19:31:26]line РНМ: 0000000000186857 [19:31:26]line Версия ККМ: v1.0 [19:31:26]line ФМ: 0000000002094219 [19:31:26]line ФД: 30458 [19:31:26]line ФПД: 28176651633774 [19:31:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T193125&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30458&fm=28176651633774&tin=02508201610067®Number=0000000000186857&sum=100000 [19:31:27]OFD Sender: Processing packet 30458 [packets to send 10, broken 9] [19:31:27]ProducePacketName [19:31:27]name=ofd_packets/00030458 [19:31:27]OFD Sender: To server: pG, [19:31:27]CommunicateWithHost lk.salyk.kg:30040 [19:31:27]ConnectInit lk.salyk.kg [19:31:27]written 0, free lines is 4095 [19:31:27]Write to MH i2c: 01 00 00 AB 10 BB [19:31:27]Write i2c OK [19:31:27]MH_I2C_Read... [19:31:27]Read from MH i2c: 01 [19:31:27]MH_I2C_Read... [19:31:27]Read from MH i2c: 01 07 00 [19:31:27]MH_I2C_Read... [19:31:27]Read from MH i2c: 01 07 00 AB 10 00 00 00 00 00 ED 0C BB [19:31:27]RasterBufferAndPrint [19:31:27]line [19:31:27]line [19:31:27]line [19:31:27]line [19:31:27]line [19:31:27]written 0, free lines is 3315 [19:31:27]MH_Cut [19:31:27]Write to MH i2c: D1 01 00 B2 10 01 94 [19:31:27]Write i2c OK [19:31:27]MH_I2C_Read... [19:31:27]Read from MH i2c: D1 [19:31:27]MH_I2C_Read... [19:31:27]Read from MH i2c: D1 01 00 [19:31:27]MH_I2C_Read... [19:31:27]Read from MH i2c: D1 01 00 B2 10 00 93 [19:31:27]Write to MH i2c: 01 00 00 B3 10 C3 [19:31:27]Write i2c OK [19:31:27]MH_I2C_Read... [19:31:28]*** Cut start [19:31:28]*** Partial cut [19:31:28]*** CUTSNS_PIN = 1 [19:31:28]*** CUTSNS_PIN = 0 [19:31:28]*** Brake cut motor [19:31:28]Read from MH i2c: 01 [19:31:28]MH_I2C_Read... [19:31:28]*** Stop cut motor [19:31:28]*** Cut end [19:31:28]Read from MH i2c: 01 07 00 [19:31:28]MH_I2C_Read... [19:31:28]Read from MH i2c: 01 07 00 B3 10 00 00 00 00 00 FF 0F D8 [19:31:28]process_action close_receipt done [19:31:28]requested_data is exist [19:31:28]produce_requested_data [19:31:28]requested_item fm.sn is exist - process it [19:31:28]wFMCommunicate request_size=4 [19:31:28]MH_SAM_APDU [19:31:28]CAPDU: 80 11 00 00 [19:31:28]Write to MH i2c: E2 08 00 B4 10 80 11 00 00 00 00 00 00 3E [19:31:28]Write i2c OK [19:31:28]MH_I2C_Read... [19:31:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:31:28]Read from MH i2c: E2 [19:31:28]MH_I2C_Read... [19:31:28]Read from MH i2c: E2 17 00 [19:31:28]MH_I2C_Read... [19:31:28]Read from MH i2c: E2 17 00 B4 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 8C [19:31:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [19:31:28]wFMCommunicate OK [19:31:28]requested_item fd.num is exist - process it [19:31:28]SAM_PROTO_GetFieldsCounters [19:31:28]wFMCommunicate request_size=4 [19:31:28]MH_SAM_APDU [19:31:28]CAPDU: 80 13 00 00 [19:31:28]Write to MH i2c: E2 08 00 B5 10 80 13 00 00 00 00 00 00 41 [19:31:28]Write i2c OK [19:31:28]MH_I2C_Read... [19:31:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:31:28]Read from MH i2c: E2 [19:31:28]MH_I2C_Read... [19:31:28]Read from MH i2c: E2 62 00 [19:31:28]MH_I2C_Read... [19:31:28]Read from MH i2c: E2 62 00 B5 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 19 [19:31: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 FA 76 00 00 0E 04 04 00 72 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 [19:31:28]wFMCommunicate OK [19:31:28]SAM_PROTO_GetFieldsCounters done [19:31:28]requested_item shift.num is exist - process it [19:31:28]requested_item shift.opened is exist - process it [19:31:28]req_shift_opened [19:31:28]FM_GetShiftState [19:31:28]SAM_PROTO_GetShiftState [19:31:28]wFMCommunicate request_size=4 [19:31:28]MH_SAM_APDU [19:31:28]CAPDU: 80 13 01 00 [19:31:28]Write to MH i2c: E2 08 00 B6 10 80 13 01 00 00 00 00 00 43 [19:31:28]Write i2c OK [19:31:28]MH_I2C_Read... [19:31:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:31:29]Read from MH i2c: E2 [19:31:29]MH_I2C_Read... [19:31:29]Read from MH i2c: E2 0E 00 [19:31:29]MH_I2C_Read... [19:31:29]Read from MH i2c: E2 0E 00 B6 10 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 29 [19:31:29]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [19:31:29]wFMCommunicate OK [19:31:29]SAM_PROTO_GetShiftState done [19:31:29]FM_GetShiftState done [19:31:29]req_shift_opened done [19:31:29]requested_item shift.open_date is exist - process it [19:31:29]req_shift_open_date [19:31:29]req_shift_open_date done [19:31:29]produce_requested_data done [19:31:29]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30458,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [19:31:29]process_action_free close_receipt [19:31:29]json_value_free [19:31:29]json_value_free done [19:31:29]process_json_proto returns [19:31:29]Send response to host [19:31:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30458,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [19:31:29]free response buf [19:31:29]execute_script done [19:31:29]execute_script returns [19:31:29]free content buf [19:31:29]Sock 9.Close socket [19:31:29]Sock 9.Thread stoped [19:32:21]accept exits with 7 [19:32:21]New connection [19:32:21]New thread 3067346276 created [19:32:21]Thread 3067489636 joined [19:32:21]Waiting for new connection... [19:32:21] Sock 7.Parse request [19:32:21]Sock 7.Check first char [19:32:21]Sock 7.First char is OK [19:32:21]request: POST /json_proto HTTP/1.0 [19:32:21]Method: POST [19:32:21]URL: /json_proto [19:32:21]Method is POST - this is cgi request [19:32:21]url: /json_proto [19:32:21]query_string will be loaded in cgi processing [19:32:21]execute_cgi json_proto POST (null) [19:32:21]execute_cgi path=json_proto method=POST [19:32:21]POST find Content-Length [19:32:21]Host: 172.17.51.3:8080 [19:32:21]Content-Length: 682 [19:32:21]Content-Type: application/json [19:32:21] [19:32:21]POST finish read [19:32:21]Found Content-Length = 682 [19:32:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342862", "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" ] } } [19:32:21]execute_script... [19:32: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)342862", "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" ] } } [19:32:21]POST & json_proto [19:32:21]process_json_proto [19:32:21]json parsed OK: [19:32:21]protocol is kg_v1.0 [19:32:21]action value=close_receipt [19:32:21]process_action close_receipt [19:32:21]cmd_close_receipt [19:32:21]MH_GetDate [19:32:21]Write to MH i2c: F0 00 00 B7 10 B6 [19:32:21]Write i2c OK [19:32:21]MH_I2C_Read... [19:32:21]Read from MH i2c: F0 [19:32:21]MH_I2C_Read... [19:32:21]Read from MH i2c: F0 09 00 [19:32:21]MH_I2C_Read... [19:32:21]Read from MH i2c: F0 09 00 B7 10 00 C5 5A 15 67 04 C1 95 66 1A [19:32:21]GetLastDocTimeStamp 1729452685 [19:32:21]current date 1729452741 [19:32:21]FM_GetShiftState [19:32:21]SAM_PROTO_GetShiftState [19:32:21]wFMCommunicate request_size=4 [19:32:21]MH_SAM_APDU [19:32:21]CAPDU: 80 13 01 00 [19:32:21]Write to MH i2c: E2 08 00 B8 10 80 13 01 00 00 00 00 00 45 [19:32:21]Write i2c OK [19:32:21]MH_I2C_Read... [19:32:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:32:21]Read from MH i2c: E2 [19:32:21]MH_I2C_Read... [19:32:21]Read from MH i2c: E2 0E 00 [19:32:21]MH_I2C_Read... [19:32:21]Read from MH i2c: E2 0E 00 B8 10 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 2B [19:32:21]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [19:32:21]wFMCommunicate OK [19:32:21]SAM_PROTO_GetShiftState done [19:32:21]FM_GetShiftState done [19:32:21]opened in 1729384718 [19:32:21]opened+sec_in_day 1729471118 [19:32:21]quantity*price = 100021 [19:32:21]sum+1 = 100023 [19:32: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 СНО: Общий режим Чек 241 20.10.2024 19:32 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30459 ФПД: 180880107412882 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T193221&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30459&fm=180880107412882&tin=02508201610067®Number=0000000000186857&sum=100000 [19:32:22]StoreToDocumentArchive [19:32:22]shift 114 fd 30459 [19:32:22]save to /storage/0114/doc_00030459 [19:32:22]save last doc name /storage/0114/doc_00030459 to /storage/kkm_last_doc_name [19:32:22]save OK [19:32:22]Clear old archive folders... [19:32:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:32:22]tlvbuf is 01DB2420 [19:32:22]SAM_PROTO_ClearQueue [19:32:22]wFMCommunicate request_size=4 [19:32:22]MH_SAM_APDU [19:32:22]CAPDU: 80 09 00 00 [19:32:22]Write to MH i2c: E2 08 00 C5 10 80 09 00 00 00 00 00 00 47 [19:32:22]Write i2c OK [19:32:22]MH_I2C_Read... [19:32:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:32:22]Read from MH i2c: E2 [19:32:22]MH_I2C_Read... [19:32:22]Read from MH i2c: E2 03 00 [19:32:22]MH_I2C_Read... [19:32:22]Read from MH i2c: E2 03 00 C5 10 00 90 00 49 [19:32:22]RAPDU: 90 00 [19:32:22]wFMCommunicate OK [19:32:22]SAM_PROTO_ClearQueue done [19:32:22]KKMCreateOFDPacket [19:32:22]OFDProtocolAddRootSTLVToBuf [19:32:22]FM_MakeSignedData [19:32:22]FM_MakeSignedData [19:32:22]SAM_PROTO_SignData [19:32:22]wFMCommunicate request_size=4 [19:32:22]MH_SAM_APDU [19:32:22]CAPDU: 80 0D 01 02 [19:32:22]Write to MH i2c: E2 08 00 C6 10 80 0D 01 02 00 00 00 00 4F [19:32:22]Write i2c OK [19:32:22]MH_I2C_Read... [19:32:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:32:22]Read from MH i2c: E2 [19:32:22]MH_I2C_Read... [19:32:22]Read from MH i2c: E2 03 00 [19:32:22]MH_I2C_Read... [19:32:22]Read from MH i2c: E2 03 00 C6 10 00 90 00 4A [19:32:22]RAPDU: 90 00 [19:32:22]wFMCommunicate OK [19:32:22]wFMCommunicate request_size=255 [19:32:22]MH_SAM_APDU [19:32: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 F1 00 00 00 F4 03 04 00 C5 5A 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 A4 [19:32:22]Write to MH i2c: E2 02 01 C7 10 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 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 F1 00 00 00 F4 03 04 00 C5 5A 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 A4 00 00 11 [19:32:22]Write i2c OK [19:32:22]MH_I2C_Read... [19:32:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:32:22]Read from MH i2c: E2 [19:32:22]MH_I2C_Read... [19:32:22]Read from MH i2c: E2 03 00 [19:32:22]MH_I2C_Read... [19:32:22]Read from MH i2c: E2 03 00 C7 10 00 90 00 4B [19:32:22]RAPDU: 90 00 [19:32:22]wFMCommunicate OK [19:32:22]wFMCommunicate request_size=10 [19:32:22]MH_SAM_APDU [19:32:22]CAPDU: 80 0D 02 02 05 82 6E 8C 9D 92 [19:32:22]Write to MH i2c: E2 0D 00 C8 10 80 0D 02 02 05 00 82 6E 8C 9D 92 00 00 07 [19:32:22]Write i2c OK [19:32:22]MH_I2C_Read... [19:32:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:32:22]Read from MH i2c: E2 [19:32:22]MH_I2C_Read... [19:32:22]Read from MH i2c: E2 03 00 [19:32:22]MH_I2C_Read... [19:32:22]Read from MH i2c: E2 03 00 C8 10 00 90 00 4C [19:32:22]RAPDU: 90 00 [19:32:22]wFMCommunicate OK [19:32:22]wFMCommunicate request_size=4 [19:32:22]MH_SAM_APDU [19:32:22]CAPDU: 80 0D 03 02 [19:32:22]Write to MH i2c: E2 08 00 C9 10 80 0D 03 02 00 00 00 00 54 [19:32:22]Write i2c OK [19:32:22]MH_I2C_Read... [19:32:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:32:22]Read from MH i2c: E2 [19:32:22]MH_I2C_Read... [19:32:22]Read from MH i2c: E2 0B 00 [19:32:22]MH_I2C_Read... [19:32:22]Read from MH i2c: E2 0B 00 C9 10 00 7A F7 98 96 08 4F 0B 0B 90 00 61 [19:32:22]RAPDU: 7A F7 98 96 08 4F 0B 0B 90 00 [19:32:22]wFMCommunicate OK [19:32:22]SAM_PROTO_SignData done [19:32:22]FM_MakeSignedData done [19:32:22]CreateOFDProtocolMessage [19:32:22]wFMCommunicate request_size=4 [19:32:22]MH_SAM_APDU [19:32:22]CAPDU: 80 11 00 00 [19:32:22]Write to MH i2c: E2 08 00 CA 10 80 11 00 00 00 00 00 00 54 [19:32:22]Write i2c OK [19:32:22]MH_I2C_Read... [19:32:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:32:22]Read from MH i2c: E2 [19:32:22]MH_I2C_Read... [19:32:22]Read from MH i2c: E2 17 00 [19:32:22]MH_I2C_Read... [19:32:22]Read from MH i2c: E2 17 00 CA 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 A2 [19:32:22]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:22]wFMCommunicate OK [19:32:22]CreateOFDProtocolMessage done [19:32:22]OFDSenderStorePacket 30459 [19:32:22]StoreOFDPacket docnum=30459 [19:32: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 C4 F2 07 01 1E 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 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 F1 00 00 00 F4 03 04 00 C5 5A 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 A4 82 6E 8C 9D 92 7A F7 98 96 08 4F 0B 0B [19:32:22]CheckFolder [19:32:22]dirname=/storage/ofd_packets [19:32:22]CheckFolder done [19:32:22]ProducePacketName [19:32:22]name=ofd_packets/00030459 [19:32:22]NVStorageSaveData ofd_packets/00030459 [19:32:22]File name is /storage/ofd_packets/00030459 [19:32:22]Write 301 bytes [19:32:22]NVStorageSaveData done [19:32:22]OFDSenderStorePacket done [19:32:22]KKMCreateOFDPacket done [19:32:22]NVStorageSaveData kkm_last_timestamp [19:32:22]File name is /storage/kkm_last_timestamp [19:32:22]Write 4 bytes [19:32:22]NVStorageSaveData done [19:32:22]ExternCall_PrintAddStr [19:32:22]wPrintStart [19:32:22]Write to MH i2c: 01 00 00 CB 10 DB [19:32:22]Write i2c OK [19:32:22]MH_I2C_Read... [19:32:22]Read from MH i2c: 01 [19:32:22]MH_I2C_Read... [19:32:22]Read from MH i2c: 01 07 00 [19:32:22]MH_I2C_Read... [19:32:22]Read from MH i2c: 01 07 00 CB 10 00 00 00 00 00 FF 0F F0 [19:32:22]RasterBufferAndPrint [19:32:22]line Счет N : (1)342862 [19:32:22]line ИНН: 02508201610067 [19:32:22]line Контрольно-Кассовый Чек [19:32:22]line ПРОДАЖА [19:32:22]line ТРК (МРК, ГНК) : 62 [19:32:22]line Товар: 2710124500 [19:32:22]line Аи-95-К-3 [19:32:22]line 13.480 * 74.20 [19:32:22]line = 1000.22 [19:32:22]line НДС 12% НСП 1% [19:32:22]line > о реализуемом товаре [19:32:22]line ОКРУГЛЕНИЕ: -0.22 [19:32:22]line ИТОГО: 1000.00 [19:32:22]line Внесено: 1000.00 [19:32:22]line СДАЧА: 0.00 [19:32:22]line НСП 1% : 8.85 [19:32:22]line НДС 12% : 106.22 [19:32:22]line Наличными: 1000.00 [19:32:22]line Безнал.: 0.00 [19:32:22]line Место: АЗС № 78 "Партнер Нефть" [19:32:22]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [19:32:22]line СНО: Общий режим [19:32:22]line Чек 241 20.10.2024 19:32 [19:32:22]line Смена: 114 ФФД: 1.0 [19:32:22]line ЗНМ: 0300000137 [19:32:22]line РНМ: 0000000000186857 [19:32:22]line Версия ККМ: v1.0 [19:32:22]line ФМ: 0000000002094219 [19:32:22]line ФД: 30459 [19:32:22]line ФПД: 180880107412882 [19:32:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T193221&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30459&fm=180880107412882&tin=02508201610067®Number=0000000000186857&sum=100000 [19:32:23]written 0, free lines is 4095 [19:32:23]Write to MH i2c: 01 00 00 F6 10 06 [19:32:23]Write i2c OK [19:32:23]MH_I2C_Read... [19:32:23]Read from MH i2c: 01 [19:32:23]MH_I2C_Read... [19:32:23]Read from MH i2c: 01 07 00 [19:32:23]MH_I2C_Read... [19:32:23]Read from MH i2c: 01 07 00 F6 10 00 00 00 00 00 F1 0C 0A [19:32:23]RasterBufferAndPrint [19:32:23]line [19:32:23]line [19:32:23]line [19:32:23]line [19:32:23]line [19:32:23]written 0, free lines is 3319 [19:32:23]MH_Cut [19:32:23]Write to MH i2c: D1 01 00 FD 10 01 DF [19:32:23]Write i2c OK [19:32:23]MH_I2C_Read... [19:32:23]Read from MH i2c: D1 [19:32:23]MH_I2C_Read... [19:32:23]Read from MH i2c: D1 01 00 [19:32:23]MH_I2C_Read... [19:32:23]Read from MH i2c: D1 01 00 FD 10 00 DE [19:32:23]Write to MH i2c: 01 00 00 FE 10 0E [19:32:23]Write i2c OK [19:32:23]MH_I2C_Read... [19:32:24]*** Cut start [19:32:24]*** Partial cut [19:32:24]*** CUTSNS_PIN = 1 [19:32:24]*** CUTSNS_PIN = 0 [19:32:24]*** Brake cut motor [19:32:24]Read from MH i2c: 01 [19:32:24]MH_I2C_Read... [19:32:24]*** Stop cut motor [19:32:24]*** Cut end [19:32:24]Read from MH i2c: 01 07 00 [19:32:24]MH_I2C_Read... [19:32:24]Read from MH i2c: 01 07 00 FE 10 00 00 00 00 00 FF 0F 23 [19:32:24]process_action close_receipt done [19:32:24]requested_data is exist [19:32:24]produce_requested_data [19:32:24]requested_item fm.sn is exist - process it [19:32:24]wFMCommunicate request_size=4 [19:32:24]MH_SAM_APDU [19:32:24]CAPDU: 80 11 00 00 [19:32:24]Write to MH i2c: E2 08 00 FF 10 80 11 00 00 00 00 00 00 89 [19:32:24]Write i2c OK [19:32:24]MH_I2C_Read... [19:32:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:32:24]Read from MH i2c: E2 [19:32:24]MH_I2C_Read... [19:32:24]Read from MH i2c: E2 17 00 [19:32:24]MH_I2C_Read... [19:32:24]Read from MH i2c: E2 17 00 FF 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 D7 [19:32:24]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:24]wFMCommunicate OK [19:32:24]requested_item fd.num is exist - process it [19:32:24]SAM_PROTO_GetFieldsCounters [19:32:24]wFMCommunicate request_size=4 [19:32:24]MH_SAM_APDU [19:32:24]CAPDU: 80 13 00 00 [19:32:24]Write to MH i2c: E2 08 00 00 11 80 13 00 00 00 00 00 00 8D [19:32:24]Write i2c OK [19:32:24]MH_I2C_Read... [19:32:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:32:25]Read from MH i2c: E2 [19:32:25]MH_I2C_Read... [19:32:25]Read from MH i2c: E2 62 00 [19:32:25]MH_I2C_Read... [19:32:25]Read from MH i2c: E2 62 00 00 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 69 [19:32: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 FB 76 00 00 0E 04 04 00 72 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 [19:32:25]wFMCommunicate OK [19:32:25]SAM_PROTO_GetFieldsCounters done [19:32:25]requested_item shift.num is exist - process it [19:32:25]requested_item shift.opened is exist - process it [19:32:25]req_shift_opened [19:32:25]FM_GetShiftState [19:32:25]SAM_PROTO_GetShiftState [19:32:25]wFMCommunicate request_size=4 [19:32:25]MH_SAM_APDU [19:32:25]CAPDU: 80 13 01 00 [19:32:25]Write to MH i2c: E2 08 00 01 11 80 13 01 00 00 00 00 00 8F [19:32:25]Write i2c OK [19:32:25]MH_I2C_Read... [19:32:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:32:25]Read from MH i2c: E2 [19:32:25]MH_I2C_Read... [19:32:25]Read from MH i2c: E2 0E 00 [19:32:25]MH_I2C_Read... [19:32:25]Read from MH i2c: E2 0E 00 01 11 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 75 [19:32:25]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [19:32:25]wFMCommunicate OK [19:32:25]SAM_PROTO_GetShiftState done [19:32:25]FM_GetShiftState done [19:32:25]req_shift_opened done [19:32:25]requested_item shift.open_date is exist - process it [19:32:25]req_shift_open_date [19:32:25]req_shift_open_date done [19:32:25]produce_requested_data done [19:32:25]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30459,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [19:32:25]process_action_free close_receipt [19:32:25]json_value_free [19:32:25]json_value_free done [19:32:25]process_json_proto returns [19:32:25]Send response to host [19:32:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30459,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [19:32:25]free response buf [19:32:25]execute_script done [19:32:25]execute_script returns [19:32:25]free content buf [19:32:25]Sock 7.Close socket [19:32:25]Sock 7.Thread stoped [19:33:03]accept exits with 9 [19:33:03]New connection [19:33:03]New thread 3067489636 created [19:33:03]Thread 3067346276 joined [19:33:03]Waiting for new connection... [19:33:03] Sock 9.Parse request [19:33:03]Sock 9.Check first char [19:33:03]Sock 9.First char is OK [19:33:03]request: POST /json_proto HTTP/1.0 [19:33:03]Method: POST [19:33:03]URL: /json_proto [19:33:03]Method is POST - this is cgi request [19:33:03]url: /json_proto [19:33:03]query_string will be loaded in cgi processing [19:33:03]execute_cgi json_proto POST (null) [19:33:03]execute_cgi path=json_proto method=POST [19:33:03]POST find Content-Length [19:33:03]Host: 172.17.51.3:8080 [19:33:03]Content-Length: 677 [19:33:03]Content-Type: application/json [19:33:03] [19:33:03]POST finish read [19:33:03]Found Content-Length = 677 [19:33:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342863", "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" ] } } [19:33:03]execute_script... [19:33: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)342863", "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" ] } } [19:33:03]POST & json_proto [19:33:03]process_json_proto [19:33:03]json parsed OK: [19:33:03]protocol is kg_v1.0 [19:33:03]action value=close_receipt [19:33:03]process_action close_receipt [19:33:03]cmd_close_receipt [19:33:03]MH_GetDate [19:33:03]Write to MH i2c: F0 00 00 02 11 02 [19:33:03]Write i2c OK [19:33:03]MH_I2C_Read... [19:33:03]Read from MH i2c: F0 [19:33:03]MH_I2C_Read... [19:33:03]Read from MH i2c: F0 09 00 [19:33:03]MH_I2C_Read... [19:33:03]Read from MH i2c: F0 09 00 02 11 00 EF 5A 15 67 04 C1 95 66 90 [19:33:03]GetLastDocTimeStamp 1729452741 [19:33:03]current date 1729452783 [19:33:03]FM_GetShiftState [19:33:03]SAM_PROTO_GetShiftState [19:33:03]wFMCommunicate request_size=4 [19:33:03]MH_SAM_APDU [19:33:03]CAPDU: 80 13 01 00 [19:33:03]Write to MH i2c: E2 08 00 03 11 80 13 01 00 00 00 00 00 91 [19:33:03]Write i2c OK [19:33:03]MH_I2C_Read... [19:33:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:33:03]Read from MH i2c: E2 [19:33:03]MH_I2C_Read... [19:33:03]Read from MH i2c: E2 0E 00 [19:33:03]MH_I2C_Read... [19:33:03]Read from MH i2c: E2 0E 00 03 11 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 77 [19:33:03]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [19:33:03]wFMCommunicate OK [19:33:03]SAM_PROTO_GetShiftState done [19:33:03]FM_GetShiftState done [19:33:03]opened in 1729384718 [19:33:03]opened+sec_in_day 1729471118 [19:33:03]quantity*price = 50041 [19:33:03]sum+1 = 50042 [19:33:03]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 СНО: Общий режим Чек 242 20.10.2024 19:33 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30460 ФПД: 185726333326813 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T193303&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30460&fm=185726333326813&tin=02508201610067®Number=0000000000186857&sum=50000 [19:33:04]StoreToDocumentArchive [19:33:04]shift 114 fd 30460 [19:33:04]save to /storage/0114/doc_00030460 [19:33:04]save last doc name /storage/0114/doc_00030460 to /storage/kkm_last_doc_name [19:33:04]save OK [19:33:04]Clear old archive folders... [19:33:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:33:04]tlvbuf is 01E0EA30 [19:33:04]SAM_PROTO_ClearQueue [19:33:04]wFMCommunicate request_size=4 [19:33:04]MH_SAM_APDU [19:33:04]CAPDU: 80 09 00 00 [19:33:04]Write to MH i2c: E2 08 00 10 11 80 09 00 00 00 00 00 00 93 [19:33:04]Write i2c OK [19:33:04]MH_I2C_Read... [19:33:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:33:04]Read from MH i2c: E2 [19:33:04]MH_I2C_Read... [19:33:04]Read from MH i2c: E2 03 00 [19:33:04]MH_I2C_Read... [19:33:04]Read from MH i2c: E2 03 00 10 11 00 90 00 95 [19:33:04]RAPDU: 90 00 [19:33:04]wFMCommunicate OK [19:33:04]SAM_PROTO_ClearQueue done [19:33:04]KKMCreateOFDPacket [19:33:04]OFDProtocolAddRootSTLVToBuf [19:33:04]FM_MakeSignedData [19:33:04]FM_MakeSignedData [19:33:04]SAM_PROTO_SignData [19:33:04]wFMCommunicate request_size=4 [19:33:04]MH_SAM_APDU [19:33:04]CAPDU: 80 0D 01 02 [19:33:04]Write to MH i2c: E2 08 00 11 11 80 0D 01 02 00 00 00 00 9B [19:33:04]Write i2c OK [19:33:04]MH_I2C_Read... [19:33:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:33:04]Read from MH i2c: E2 [19:33:04]MH_I2C_Read... [19:33:04]Read from MH i2c: E2 03 00 [19:33:04]MH_I2C_Read... [19:33:04]Read from MH i2c: E2 03 00 11 11 00 90 00 96 [19:33:04]RAPDU: 90 00 [19:33:04]wFMCommunicate OK [19:33:04]wFMCommunicate request_size=255 [19:33:04]MH_SAM_APDU [19:33: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 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 F2 00 00 00 F4 03 04 00 EF 5A 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 A8 [19:33:04]Write to MH i2c: E2 02 01 12 11 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 F2 00 00 00 F4 03 04 00 EF 5A 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 A8 00 00 6F [19:33:04]Write i2c OK [19:33:04]MH_I2C_Read... [19:33:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:33:04]Read from MH i2c: E2 [19:33:04]MH_I2C_Read... [19:33:04]Read from MH i2c: E2 03 00 [19:33:04]MH_I2C_Read... [19:33:04]Read from MH i2c: E2 03 00 12 11 00 90 00 97 [19:33:04]RAPDU: 90 00 [19:33:04]wFMCommunicate OK [19:33:04]wFMCommunicate request_size=10 [19:33:04]MH_SAM_APDU [19:33:04]CAPDU: 80 0D 02 02 05 EA C8 1F 95 DD [19:33:04]Write to MH i2c: E2 0D 00 13 11 80 0D 02 02 05 00 EA C8 1F 95 DD 00 00 EB [19:33:04]Write i2c OK [19:33:04]MH_I2C_Read... [19:33:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:33:04]Read from MH i2c: E2 [19:33:04]MH_I2C_Read... [19:33:04]Read from MH i2c: E2 03 00 [19:33:04]MH_I2C_Read... [19:33:04]Read from MH i2c: E2 03 00 13 11 00 90 00 98 [19:33:04]RAPDU: 90 00 [19:33:04]wFMCommunicate OK [19:33:04]wFMCommunicate request_size=4 [19:33:04]MH_SAM_APDU [19:33:04]CAPDU: 80 0D 03 02 [19:33:04]Write to MH i2c: E2 08 00 14 11 80 0D 03 02 00 00 00 00 A0 [19:33:04]Write i2c OK [19:33:04]MH_I2C_Read... [19:33:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:33:04]Read from MH i2c: E2 [19:33:04]MH_I2C_Read... [19:33:04]Read from MH i2c: E2 0B 00 [19:33:04]MH_I2C_Read... [19:33:04]Read from MH i2c: E2 0B 00 14 11 00 BC 0C EA DE BE 03 B9 83 90 00 2E [19:33:04]RAPDU: BC 0C EA DE BE 03 B9 83 90 00 [19:33:04]wFMCommunicate OK [19:33:04]SAM_PROTO_SignData done [19:33:04]FM_MakeSignedData done [19:33:04]CreateOFDProtocolMessage [19:33:04]wFMCommunicate request_size=4 [19:33:04]MH_SAM_APDU [19:33:04]CAPDU: 80 11 00 00 [19:33:04]Write to MH i2c: E2 08 00 15 11 80 11 00 00 00 00 00 00 A0 [19:33:04]Write i2c OK [19:33:04]MH_I2C_Read... [19:33:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:33:04]Read from MH i2c: E2 [19:33:04]MH_I2C_Read... [19:33:04]Read from MH i2c: E2 17 00 [19:33:04]MH_I2C_Read... [19:33:04]Read from MH i2c: E2 17 00 15 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 EE [19:33:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [19:33:04]wFMCommunicate OK [19:33:04]CreateOFDProtocolMessage done [19:33:04]OFDSenderStorePacket 30460 [19:33:04]StoreOFDPacket docnum=30460 [19:33: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 77 74 07 01 41 B0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 F2 00 00 00 F4 03 04 00 EF 5A 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 A8 EA C8 1F 95 DD BC 0C EA DE BE 03 B9 83 [19:33:04]CheckFolder [19:33:04]dirname=/storage/ofd_packets [19:33:04]CheckFolder done [19:33:04]ProducePacketName [19:33:04]name=ofd_packets/00030460 [19:33:04]NVStorageSaveData ofd_packets/00030460 [19:33:04]File name is /storage/ofd_packets/00030460 [19:33:04]Write 301 bytes [19:33:04]NVStorageSaveData done [19:33:04]OFDSenderStorePacket done [19:33:04]KKMCreateOFDPacket done [19:33:04]NVStorageSaveData kkm_last_timestamp [19:33:04]File name is /storage/kkm_last_timestamp [19:33:04]Write 4 bytes [19:33:04]NVStorageSaveData done [19:33:04]ExternCall_PrintAddStr [19:33:04]wPrintStart [19:33:04]Write to MH i2c: 01 00 00 16 11 27 [19:33:04]Write i2c OK [19:33:04]MH_I2C_Read... [19:33:04]Read from MH i2c: 01 [19:33:04]MH_I2C_Read... [19:33:04]Read from MH i2c: 01 07 00 [19:33:04]MH_I2C_Read... [19:33:04]Read from MH i2c: 01 07 00 16 11 00 00 00 00 00 FF 0F 3C [19:33:04]RasterBufferAndPrint [19:33:04]line Счет N : (1)342863 [19:33:04]line ИНН: 02508201610067 [19:33:04]line Контрольно-Кассовый Чек [19:33:04]line ПРОДАЖА [19:33:04]line ТРК (МРК, ГНК) : 53 [19:33:04]line Товар: 2710124130 [19:33:04]line Аи-92-К-2 [19:33:04]line 7.480 * 66.90 [19:33:04]line = 500.41 [19:33:04]line НДС 12% НСП 1% [19:33:04]line > о реализуемом товаре [19:33:04]line ОКРУГЛЕНИЕ: -0.41 [19:33:04]line ИТОГО: 500.00 [19:33:04]line Внесено: 500.00 [19:33:04]line СДАЧА: 0.00 [19:33:04]line НСП 1% : 4.43 [19:33:04]line НДС 12% : 53.14 [19:33:04]line Наличными: 500.00 [19:33:04]line Безнал.: 0.00 [19:33:04]line Место: АЗС № 78 "Партнер Нефть" [19:33:04]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [19:33:04]line СНО: Общий режим [19:33:04]line Чек 242 20.10.2024 19:33 [19:33:04]line Смена: 114 ФФД: 1.0 [19:33:04]line ЗНМ: 0300000137 [19:33:04]line РНМ: 0000000000186857 [19:33:04]line Версия ККМ: v1.0 [19:33:04]line ФМ: 0000000002094219 [19:33:04]line ФД: 30460 [19:33:05]line ФПД: 185726333326813 [19:33:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T193303&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30460&fm=185726333326813&tin=02508201610067®Number=0000000000186857&sum=50000 [19:33:05]written 0, free lines is 4095 [19:33:05]Write to MH i2c: 01 00 00 41 11 52 [19:33:05]Write i2c OK [19:33:05]MH_I2C_Read... [19:33:05]Read from MH i2c: 01 [19:33:05]MH_I2C_Read... [19:33:05]Read from MH i2c: 01 07 00 [19:33:05]MH_I2C_Read... [19:33:05]Read from MH i2c: 01 07 00 41 11 00 00 00 00 00 E5 0C 4A [19:33:05]RasterBufferAndPrint [19:33:05]line [19:33:05]line [19:33:05]line [19:33:05]line [19:33:05]line [19:33:05]written 0, free lines is 3307 [19:33:05]MH_Cut [19:33:05]Write to MH i2c: D1 01 00 48 11 01 2B [19:33:05]Write i2c OK [19:33:05]MH_I2C_Read... [19:33:05]Read from MH i2c: D1 [19:33:05]MH_I2C_Read... [19:33:05]Read from MH i2c: D1 01 00 [19:33:05]MH_I2C_Read... [19:33:05]Read from MH i2c: D1 01 00 48 11 00 2A [19:33:05]Write to MH i2c: 01 00 00 49 11 5A [19:33:05]Write i2c OK [19:33:05]MH_I2C_Read... [19:33:06]*** Cut start [19:33:06]*** Partial cut [19:33:06]*** CUTSNS_PIN = 1 [19:33:06]*** CUTSNS_PIN = 0 [19:33:06]*** Brake cut motor [19:33:06]Read from MH i2c: 01 [19:33:06]MH_I2C_Read... [19:33:06]*** Stop cut motor [19:33:06]*** Cut end [19:33:06]Read from MH i2c: 01 07 00 [19:33:06]MH_I2C_Read... [19:33:06]Read from MH i2c: 01 07 00 49 11 00 00 00 00 00 FF 0F 6F [19:33:06]process_action close_receipt done [19:33:06]requested_data is exist [19:33:06]produce_requested_data [19:33:06]requested_item fm.sn is exist - process it [19:33:06]wFMCommunicate request_size=4 [19:33:06]MH_SAM_APDU [19:33:06]CAPDU: 80 11 00 00 [19:33:06]Write to MH i2c: E2 08 00 4A 11 80 11 00 00 00 00 00 00 D5 [19:33:06]Write i2c OK [19:33:06]MH_I2C_Read... [19:33:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:33:06]Read from MH i2c: E2 [19:33:06]MH_I2C_Read... [19:33:06]Read from MH i2c: E2 17 00 [19:33:06]MH_I2C_Read... [19:33:06]Read from MH i2c: E2 17 00 4A 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 23 [19:33:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [19:33:06]wFMCommunicate OK [19:33:06]requested_item fd.num is exist - process it [19:33:06]SAM_PROTO_GetFieldsCounters [19:33:06]wFMCommunicate request_size=4 [19:33:06]MH_SAM_APDU [19:33:06]CAPDU: 80 13 00 00 [19:33:06]Write to MH i2c: E2 08 00 4B 11 80 13 00 00 00 00 00 00 D8 [19:33:06]Write i2c OK [19:33:06]MH_I2C_Read... [19:33:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:33:06]Read from MH i2c: E2 [19:33:06]MH_I2C_Read... [19:33:06]Read from MH i2c: E2 62 00 [19:33:06]MH_I2C_Read... [19:33:06]Read from MH i2c: E2 62 00 4B 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 B8 [19:33: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 FC 76 00 00 0E 04 04 00 72 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 [19:33:07]wFMCommunicate OK [19:33:07]SAM_PROTO_GetFieldsCounters done [19:33:07]requested_item shift.num is exist - process it [19:33:07]requested_item shift.opened is exist - process it [19:33:07]req_shift_opened [19:33:07]FM_GetShiftState [19:33:07]SAM_PROTO_GetShiftState [19:33:07]wFMCommunicate request_size=4 [19:33:07]MH_SAM_APDU [19:33:07]CAPDU: 80 13 01 00 [19:33:07]Write to MH i2c: E2 08 00 4C 11 80 13 01 00 00 00 00 00 DA [19:33:07]Write i2c OK [19:33:07]MH_I2C_Read... [19:33:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:33:07]Read from MH i2c: E2 [19:33:07]MH_I2C_Read... [19:33:07]Read from MH i2c: E2 0E 00 [19:33:07]MH_I2C_Read... [19:33:07]Read from MH i2c: E2 0E 00 4C 11 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 C0 [19:33:07]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [19:33:07]wFMCommunicate OK [19:33:07]SAM_PROTO_GetShiftState done [19:33:07]FM_GetShiftState done [19:33:07]req_shift_opened done [19:33:07]requested_item shift.open_date is exist - process it [19:33:07]req_shift_open_date [19:33:07]req_shift_open_date done [19:33:07]produce_requested_data done [19:33:07]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30460,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [19:33:07]process_action_free close_receipt [19:33:07]json_value_free [19:33:07]json_value_free done [19:33:07]process_json_proto returns [19:33:07]Send response to host [19:33:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30460,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [19:33:07]free response buf [19:33:07]execute_script done [19:33:07]execute_script returns [19:33:07]free content buf [19:33:07]Sock 9.Close socket [19:33:07]Sock 9.Thread stoped [19:33:38]ConnectInit Can't connect to host [19:33:38]CommunicateWithHost connect error [19:33:38]CommunicateWithHost err = -1 [19:33:38]OFD Sender: Server communicate error [19:33:38]OFD Sender: Processing packet 30458 [packets to send 12, broken 9] [19:33:38]ProducePacketName [19:33:38]name=ofd_packets/00030458 [19:33:38]OFD Sender: To server: pG, [19:33:38]CommunicateWithHost lk.salyk.kg:30040 [19:33:38]ConnectInit lk.salyk.kg [19:33:38]Connected sock=9 [19:33: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 F5 A3 07 01 DF 64 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 F0 00 00 00 F4 03 04 00 8D 5A 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 19 A0 63 4F C4 6E 3E 43 B3 EA 8E 27 94 18 [19:33: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 67 47 00 9A 38 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 FA 76 00 00 F4 03 04 00 93 05 15 67 B6 04 01 00 00 97 DA 46 C9 1A 56 1B C3 [19:33:38]CommunicateWithHost err = 0 [19:33:38]CheckOFDResponse [19:33:38]1017 (14) - 77093643461234 [19:33:38]1041 (16) - 0000000002094219 [19:33:38]1040 (4) - 30458 [19:33:38]1012 (4) - 20.10.2024 13:28 [19:33:38]1206 (1) - 0 [19:33:38]OFD Sender: Remove packet 30458 [19:33:38]ProducePacketName [19:33:38]name=ofd_packets/00030458 [19:33:38]NVStorageDeleteData [19:33:38]OFD Sender: Processing packet 30459 [packets to send 11, broken 9] [19:33:38]ProducePacketName [19:33:38]name=ofd_packets/00030459 [19:33:38]OFD Sender: To server: pG, [19:33:38]CommunicateWithHost lk.salyk.kg:30040 [19:33:38]ConnectInit lk.salyk.kg [19:33:38]Connected sock=9 [19:33: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 C4 F2 07 01 1E 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 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 F1 00 00 00 F4 03 04 00 C5 5A 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 A4 82 6E 8C 9D 92 7A F7 98 96 08 4F 0B 0B [19:33: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 94 91 47 00 B4 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 FB 76 00 00 F4 03 04 00 94 05 15 67 B6 04 01 00 00 14 6E 87 02 57 7A 89 79 [19:33:39]CommunicateWithHost err = 0 [19:33:39]CheckOFDResponse [19:33:39]1017 (14) - 77093643461234 [19:33:39]1041 (16) - 0000000002094219 [19:33:39]1040 (4) - 30459 [19:33:39]1012 (4) - 20.10.2024 13:28 [19:33:39]1206 (1) - 0 [19:33:39]OFD Sender: Remove packet 30459 [19:33:39]ProducePacketName [19:33:39]name=ofd_packets/00030459 [19:33:39]NVStorageDeleteData [19:33:39]OFD Sender: Processing packet 30460 [packets to send 10, broken 9] [19:33:39]ProducePacketName [19:33:39]name=ofd_packets/00030460 [19:33:39]OFD Sender: To server: pG, [19:33:39]CommunicateWithHost lk.salyk.kg:30040 [19:33:39]ConnectInit lk.salyk.kg [19:33:39]Connected sock=10 [19:33: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 77 74 07 01 41 B0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 F2 00 00 00 F4 03 04 00 EF 5A 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 A8 EA C8 1F 95 DD BC 0C EA DE BE 03 B9 83 [19:33: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 B5 52 47 00 7C 7C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 FC 76 00 00 F4 03 04 00 95 05 15 67 B6 04 01 00 00 DA E0 87 42 47 11 81 FB [19:33:40]CommunicateWithHost err = 0 [19:33:40]CheckOFDResponse [19:33:40]1017 (14) - 77093643461234 [19:33:40]1041 (16) - 0000000002094219 [19:33:40]1040 (4) - 30460 [19:33:40]1012 (4) - 20.10.2024 13:28 [19:33:40]1206 (1) - 0 [19:33:40]OFD Sender: Remove packet 30460 [19:33:40]ProducePacketName [19:33:40]name=ofd_packets/00030460 [19:33:40]NVStorageDeleteData [19:33:40]OFD Sender: No OFD packet to send [19:33:45]OFD Sender: No OFD packet to send [19:33:50]OFD Sender: No OFD packet to send [19:33:55]OFD Sender: No OFD packet to send [19:34:00]OFD Sender: No OFD packet to send [19:34:05]OFD Sender: No OFD packet to send [19:34:10]OFD Sender: No OFD packet to send [19:34:15]OFD Sender: No OFD packet to send [19:34:20]OFD Sender: No OFD packet to send [19:34:25]OFD Sender: No OFD packet to send [19:34:30]OFD Sender: No OFD packet to send [19:34:35]OFD Sender: No OFD packet to send [19:34:40]OFD Sender: No OFD packet to send [19:34:45]OFD Sender: No OFD packet to send [19:34:50]OFD Sender: No OFD packet to send [19:34:55]OFD Sender: No OFD packet to send [19:35:00]OFD Sender: No OFD packet to send [19:35:05]OFD Sender: No OFD packet to send [19:35:10]OFD Sender: No OFD packet to send [19:35:15]OFD Sender: No OFD packet to send [19:35:16]accept exits with 7 [19:35:16]New connection [19:35:16]New thread 3067346276 created [19:35:16]Thread 3067489636 joined [19:35:16]Waiting for new connection... [19:35:16] Sock 7.Parse request [19:35:16]Sock 7.Check first char [19:35:16]Sock 7.First char is OK [19:35:16]request: POST /json_proto HTTP/1.0 [19:35:16]Method: POST [19:35:16]URL: /json_proto [19:35:16]Method is POST - this is cgi request [19:35:16]url: /json_proto [19:35:16]query_string will be loaded in cgi processing [19:35:16]execute_cgi json_proto POST (null) [19:35:16]execute_cgi path=json_proto method=POST [19:35:16]POST find Content-Length [19:35:16]Host: 172.17.51.3:8080 [19:35:16]Content-Length: 843 [19:35:16]Content-Type: application/json [19:35:16] [19:35:16]POST finish read [19:35:16]Found Content-Length = 843 [19:35:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342864", "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" ] } } [19:35:16]execute_script... [19:35:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342864", "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" ] } } [19:35:16]POST & json_proto [19:35:16]process_json_proto [19:35:16]json parsed OK: [19:35:16]protocol is kg_v1.0 [19:35:16]action value=close_receipt [19:35:16]process_action close_receipt [19:35:16]cmd_close_receipt [19:35:16]MH_GetDate [19:35:16]Write to MH i2c: F0 00 00 4D 11 4D [19:35:16]Write i2c OK [19:35:16]MH_I2C_Read... [19:35:16]Read from MH i2c: F0 [19:35:16]MH_I2C_Read... [19:35:16]Read from MH i2c: F0 09 00 [19:35:16]MH_I2C_Read... [19:35:16]Read from MH i2c: F0 09 00 4D 11 00 75 5B 15 67 04 C1 95 66 62 [19:35:16]GetLastDocTimeStamp 1729452783 [19:35:16]current date 1729452917 [19:35:16]FM_GetShiftState [19:35:16]SAM_PROTO_GetShiftState [19:35:16]wFMCommunicate request_size=4 [19:35:16]MH_SAM_APDU [19:35:16]CAPDU: 80 13 01 00 [19:35:16]Write to MH i2c: E2 08 00 4E 11 80 13 01 00 00 00 00 00 DC [19:35:16]Write i2c OK [19:35:16]MH_I2C_Read... [19:35:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:35:16]Read from MH i2c: E2 [19:35:16]MH_I2C_Read... [19:35:16]Read from MH i2c: E2 0E 00 [19:35:16]MH_I2C_Read... [19:35:16]Read from MH i2c: E2 0E 00 4E 11 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 C2 [19:35:16]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [19:35:16]wFMCommunicate OK [19:35:16]SAM_PROTO_GetShiftState done [19:35:16]FM_GetShiftState done [19:35:16]opened in 1729384718 [19:35:16]opened+sec_in_day 1729471118 [19:35:16]quantity*price = 100015 [19:35:16]sum+1 = 100017 [19:35:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 243 20.10.2024 19:35 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Платежная система: АКБ Кыргызстан ФМ: 0000000002094219 ФД: 30461 ФПД: 7059767707380 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T193517&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30461&fm=7059767707380&tin=02508201610067®Number=0000000000186857&sum=100016 [19:35:18]StoreToDocumentArchive [19:35:18]shift 114 fd 30461 [19:35:18]save to /storage/0114/doc_00030461 [19:35:18]save last doc name /storage/0114/doc_00030461 to /storage/kkm_last_doc_name [19:35:18]save OK [19:35:18]Clear old archive folders... [19:35:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:35:18]tlvbuf is B6F2B250 [19:35:18]SAM_PROTO_ClearQueue [19:35:18]wFMCommunicate request_size=4 [19:35:18]MH_SAM_APDU [19:35:18]CAPDU: 80 09 00 00 [19:35:18]Write to MH i2c: E2 08 00 5B 11 80 09 00 00 00 00 00 00 DE [19:35:18]Write i2c OK [19:35:18]MH_I2C_Read... [19:35:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:35:18]Read from MH i2c: E2 [19:35:18]MH_I2C_Read... [19:35:18]Read from MH i2c: E2 03 00 [19:35:18]MH_I2C_Read... [19:35:18]Read from MH i2c: E2 03 00 5B 11 00 90 00 E0 [19:35:18]RAPDU: 90 00 [19:35:18]wFMCommunicate OK [19:35:18]SAM_PROTO_ClearQueue done [19:35:18]KKMCreateOFDPacket [19:35:18]OFDProtocolAddRootSTLVToBuf [19:35:18]FM_MakeSignedData [19:35:18]FM_MakeSignedData [19:35:18]SAM_PROTO_SignData [19:35:18]wFMCommunicate request_size=4 [19:35:18]MH_SAM_APDU [19:35:18]CAPDU: 80 0D 01 02 [19:35:18]Write to MH i2c: E2 08 00 5C 11 80 0D 01 02 00 00 00 00 E6 [19:35:18]Write i2c OK [19:35:18]MH_I2C_Read... [19:35:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:35:18]Read from MH i2c: E2 [19:35:18]MH_I2C_Read... [19:35:18]Read from MH i2c: E2 03 00 [19:35:18]MH_I2C_Read... [19:35:18]Read from MH i2c: E2 03 00 5C 11 00 90 00 E1 [19:35:18]RAPDU: 90 00 [19:35:18]wFMCommunicate OK [19:35:18]wFMCommunicate request_size=255 [19:35:18]MH_SAM_APDU [19:35: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 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 F3 00 00 00 F4 03 04 00 75 5B 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 06 [19:35:18]Write to MH i2c: E2 02 01 5D 11 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 F3 00 00 00 F4 03 04 00 75 5B 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 06 00 00 BB [19:35:18]Write i2c OK [19:35:18]MH_I2C_Read... [19:35:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:35:18]Read from MH i2c: E2 [19:35:18]MH_I2C_Read... [19:35:18]Read from MH i2c: E2 03 00 [19:35:18]MH_I2C_Read... [19:35:18]Read from MH i2c: E2 03 00 5D 11 00 90 00 E2 [19:35:18]RAPDU: 90 00 [19:35:18]wFMCommunicate OK [19:35:18]wFMCommunicate request_size=10 [19:35:18]MH_SAM_APDU [19:35:18]CAPDU: 80 0D 02 02 05 6B BA F2 46 F4 [19:35:18]Write to MH i2c: E2 0D 00 5E 11 80 0D 02 02 05 00 6B BA F2 46 F4 00 00 44 [19:35:18]Write i2c OK [19:35:18]MH_I2C_Read... [19:35:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:35:18]Read from MH i2c: E2 [19:35:18]MH_I2C_Read... [19:35:18]Read from MH i2c: E2 03 00 [19:35:18]MH_I2C_Read... [19:35:18]Read from MH i2c: E2 03 00 5E 11 00 90 00 E3 [19:35:18]RAPDU: 90 00 [19:35:18]wFMCommunicate OK [19:35:18]wFMCommunicate request_size=4 [19:35:18]MH_SAM_APDU [19:35:18]CAPDU: 80 0D 03 02 [19:35:18]Write to MH i2c: E2 08 00 5F 11 80 0D 03 02 00 00 00 00 EB [19:35:18]Write i2c OK [19:35:18]MH_I2C_Read... [19:35:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:35:18]Read from MH i2c: E2 [19:35:18]MH_I2C_Read... [19:35:18]Read from MH i2c: E2 0B 00 [19:35:18]MH_I2C_Read... [19:35:18]Read from MH i2c: E2 0B 00 5F 11 00 93 5C 48 D0 1B C8 DD 59 90 00 0C [19:35:18]RAPDU: 93 5C 48 D0 1B C8 DD 59 90 00 [19:35:18]wFMCommunicate OK [19:35:18]SAM_PROTO_SignData done [19:35:18]FM_MakeSignedData done [19:35:18]CreateOFDProtocolMessage [19:35:18]wFMCommunicate request_size=4 [19:35:18]MH_SAM_APDU [19:35:18]CAPDU: 80 11 00 00 [19:35:18]Write to MH i2c: E2 08 00 60 11 80 11 00 00 00 00 00 00 EB [19:35:18]Write i2c OK [19:35:18]MH_I2C_Read... [19:35:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:35:18]Read from MH i2c: E2 [19:35:18]MH_I2C_Read... [19:35:18]Read from MH i2c: E2 17 00 [19:35:18]MH_I2C_Read... [19:35:18]Read from MH i2c: E2 17 00 60 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 39 [19:35:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [19:35:18]wFMCommunicate OK [19:35:18]CreateOFDProtocolMessage done [19:35:18]OFDSenderStorePacket 30461 [19:35:18]StoreOFDPacket docnum=30461 [19:35: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 02 97 07 01 5E A8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 F3 00 00 00 F4 03 04 00 75 5B 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 06 6B BA F2 46 F4 93 5C 48 D0 1B C8 DD 59 [19:35:18]CheckFolder [19:35:18]dirname=/storage/ofd_packets [19:35:18]CheckFolder done [19:35:18]ProducePacketName [19:35:18]name=ofd_packets/00030461 [19:35:18]NVStorageSaveData ofd_packets/00030461 [19:35:18]File name is /storage/ofd_packets/00030461 [19:35:18]Write 301 bytes [19:35:18]NVStorageSaveData done [19:35:18]OFDSenderStorePacket done [19:35:18]KKMCreateOFDPacket done [19:35:18]NVStorageSaveData kkm_last_timestamp [19:35:18]File name is /storage/kkm_last_timestamp [19:35:18]Write 4 bytes [19:35:18]NVStorageSaveData done [19:35:18]ExternCall_PrintAddStr [19:35:18]wPrintStart [19:35:18]Write to MH i2c: 01 00 00 61 11 72 [19:35:18]Write i2c OK [19:35:18]MH_I2C_Read... [19:35:18]Read from MH i2c: 01 [19:35:18]MH_I2C_Read... [19:35:18]Read from MH i2c: 01 07 00 [19:35:18]MH_I2C_Read... [19:35:18]Read from MH i2c: 01 07 00 61 11 00 00 00 00 00 FF 0F 87 [19:35:18]RasterBufferAndPrint [19:35:18]line Счет N : (1)342864 [19:35:18]line ИНН: 02508201610067 [19:35:18]line Контрольно-Кассовый Чек [19:35:18]line ПРОДАЖА [19:35:18]line ТРК (МРК, ГНК) : 43 [19:35:18]line Товар: 2710124130 [19:35:18]line Аи-92-К-2 [19:35:18]line 14.950 * 66.90 [19:35:18]line = 1000.16 [19:35:18]line НДС 12% НСП 1% [19:35:18]line > о реализуемом товаре [19:35:18]line ИТОГО: 1000.16 [19:35:18]line НСП 1% : 8.85 [19:35:18]line НДС 12% : 106.21 [19:35:18]line Наличными: 0.00 [19:35:18]line Безнал.: 1000.16 [19:35:18]line Место: АЗС № 78 "Партнер Нефть" [19:35:18]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [19:35:18]line СНО: Общий режим [19:35:18]line Чек 243 20.10.2024 19:35 [19:35:18]line Смена: 114 ФФД: 1.0 [19:35:18]line ЗНМ: 0300000137 [19:35:18]line РНМ: 0000000000186857 [19:35:18]line Версия ККМ: v1.0 [19:35:18]line Платежная система: АКБ Кыргызстан [19:35:18]line ФМ: 0000000002094219 [19:35:18]line ФД: 30461 [19:35:18]line ФПД: 7059767707380 [19:35:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T193517&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30461&fm=7059767707380&tin=02508201610067®Number=0000000000186857&sum=100016 [19:35:18]OFD Sender: Processing packet 30461 [packets to send 10, broken 9] [19:35:18]ProducePacketName [19:35:18]name=ofd_packets/00030461 [19:35:18]OFD Sender: To server: pG, [19:35:18]CommunicateWithHost lk.salyk.kg:30040 [19:35:18]ConnectInit lk.salyk.kg [19:35:18]written 0, free lines is 4095 [19:35:18]Connected sock=10 [19:35: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 02 97 07 01 5E A8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 F3 00 00 00 F4 03 04 00 75 5B 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 06 6B BA F2 46 F4 93 5C 48 D0 1B C8 DD 59 [19:35: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 EE 82 47 00 D4 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 FD 76 00 00 F4 03 04 00 F8 05 15 67 B6 04 01 00 00 86 89 6E A7 05 57 9D 9E [19:35:19]CommunicateWithHost err = 0 [19:35:19]CheckOFDResponse [19:35:19]1017 (14) - 77093643461234 [19:35:19]1041 (16) - 0000000002094219 [19:35:19]1040 (4) - 30461 [19:35:19]1012 (4) - 20.10.2024 13:30 [19:35:19]1206 (1) - 0 [19:35:19]OFD Sender: Remove packet 30461 [19:35:19]ProducePacketName [19:35:19]name=ofd_packets/00030461 [19:35:19]NVStorageDeleteData [19:35:19]Write to MH i2c: 01 00 00 8B 11 9C [19:35:19]Write i2c OK [19:35:19]MH_I2C_Read... [19:35:19]Read from MH i2c: 01 [19:35:19]MH_I2C_Read... [19:35:19]Read from MH i2c: 01 07 00 [19:35:19]MH_I2C_Read... [19:35:19]Read from MH i2c: 01 07 00 8B 11 00 00 00 00 00 0A 0D BA [19:35:19]RasterBufferAndPrint [19:35:19]line [19:35:19]line [19:35:19]line [19:35:19]line [19:35:19]line [19:35:19]written 0, free lines is 3344 [19:35:19]MH_Cut [19:35:19]Write to MH i2c: D1 01 00 92 11 01 75 [19:35:19]Write i2c OK [19:35:19]MH_I2C_Read... [19:35:19]Read from MH i2c: D1 [19:35:19]MH_I2C_Read... [19:35:19]Read from MH i2c: D1 01 00 [19:35:19]MH_I2C_Read... [19:35:19]Read from MH i2c: D1 01 00 92 11 00 74 [19:35:19]Write to MH i2c: 01 00 00 93 11 A4 [19:35:19]Write i2c OK [19:35:19]MH_I2C_Read... [19:35:19]OFD Sender: No OFD packet to send [19:35:20]*** Cut start [19:35:20]*** Partial cut [19:35:20]*** CUTSNS_PIN = 1 [19:35:20]*** CUTSNS_PIN = 0 [19:35:20]*** Brake cut motor [19:35:20]Read from MH i2c: 01 [19:35:20]MH_I2C_Read... [19:35:20]*** Stop cut motor [19:35:20]*** Cut end [19:35:20]Read from MH i2c: 01 07 00 [19:35:20]MH_I2C_Read... [19:35:20]Read from MH i2c: 01 07 00 93 11 00 00 00 00 00 FF 0F B9 [19:35:20]process_action close_receipt done [19:35:20]requested_data is exist [19:35:20]produce_requested_data [19:35:20]requested_item fm.sn is exist - process it [19:35:20]wFMCommunicate request_size=4 [19:35:20]MH_SAM_APDU [19:35:20]CAPDU: 80 11 00 00 [19:35:20]Write to MH i2c: E2 08 00 94 11 80 11 00 00 00 00 00 00 1F [19:35:20]Write i2c OK [19:35:20]MH_I2C_Read... [19:35:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:35:20]Read from MH i2c: E2 [19:35:20]MH_I2C_Read... [19:35:20]Read from MH i2c: E2 17 00 [19:35:20]MH_I2C_Read... [19:35:20]Read from MH i2c: E2 17 00 94 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 6D [19:35:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [19:35:20]wFMCommunicate OK [19:35:20]requested_item fd.num is exist - process it [19:35:20]SAM_PROTO_GetFieldsCounters [19:35:20]wFMCommunicate request_size=4 [19:35:20]MH_SAM_APDU [19:35:20]CAPDU: 80 13 00 00 [19:35:20]Write to MH i2c: E2 08 00 95 11 80 13 00 00 00 00 00 00 22 [19:35:20]Write i2c OK [19:35:20]MH_I2C_Read... [19:35:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:35:20]Read from MH i2c: E2 [19:35:20]MH_I2C_Read... [19:35:20]Read from MH i2c: E2 62 00 [19:35:20]MH_I2C_Read... [19:35:20]Read from MH i2c: E2 62 00 95 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 06 [19:35: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 FD 76 00 00 0E 04 04 00 72 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 [19:35:20]wFMCommunicate OK [19:35:20]SAM_PROTO_GetFieldsCounters done [19:35:20]requested_item shift.num is exist - process it [19:35:20]requested_item shift.opened is exist - process it [19:35:20]req_shift_opened [19:35:20]FM_GetShiftState [19:35:20]SAM_PROTO_GetShiftState [19:35:20]wFMCommunicate request_size=4 [19:35:20]MH_SAM_APDU [19:35:20]CAPDU: 80 13 01 00 [19:35:20]Write to MH i2c: E2 08 00 96 11 80 13 01 00 00 00 00 00 24 [19:35:20]Write i2c OK [19:35:20]MH_I2C_Read... [19:35:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:35:20]Read from MH i2c: E2 [19:35:20]MH_I2C_Read... [19:35:20]Read from MH i2c: E2 0E 00 [19:35:20]MH_I2C_Read... [19:35:20]Read from MH i2c: E2 0E 00 96 11 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 0A [19:35:20]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [19:35:20]wFMCommunicate OK [19:35:20]SAM_PROTO_GetShiftState done [19:35:20]FM_GetShiftState done [19:35:20]req_shift_opened done [19:35:20]requested_item shift.open_date is exist - process it [19:35:20]req_shift_open_date [19:35:20]req_shift_open_date done [19:35:20]produce_requested_data done [19:35:20]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30461,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [19:35:20]process_action_free close_receipt [19:35:20]json_value_free [19:35:20]json_value_free done [19:35:20]process_json_proto returns [19:35:20]Send response to host [19:35:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30461,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [19:35:20]free response buf [19:35:20]execute_script done [19:35:20]execute_script returns [19:35:20]free content buf [19:35:20]Sock 7.Close socket [19:35:20]Sock 7.Thread stoped [19:35:24]OFD Sender: No OFD packet to send [19:35:29]OFD Sender: No OFD packet to send [19:35:34]OFD Sender: No OFD packet to send [19:35:39]OFD Sender: No OFD packet to send [19:35:44]OFD Sender: No OFD packet to send [19:35:49]OFD Sender: No OFD packet to send [19:35:54]OFD Sender: No OFD packet to send [19:35:59]OFD Sender: No OFD packet to send [19:36:04]OFD Sender: No OFD packet to send [19:36:09]OFD Sender: No OFD packet to send [19:36: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:45]accept exits with 9 [19:36:45]New connection [19:36:45]New thread 3067489636 created [19:36:45]Thread 3067346276 joined [19:36:45]Waiting for new connection... [19:36:45] Sock 9.Parse request [19:36:45]Sock 9.Check first char [19:36:45]Sock 9.First char is OK [19:36:45]request: POST /json_proto HTTP/1.0 [19:36:45]Method: POST [19:36:45]URL: /json_proto [19:36:45]Method is POST - this is cgi request [19:36:45]url: /json_proto [19:36:45]query_string will be loaded in cgi processing [19:36:45]execute_cgi json_proto POST (null) [19:36:45]execute_cgi path=json_proto method=POST [19:36:45]POST find Content-Length [19:36:45]Host: 172.17.51.3:8080 [19:36:45]Content-Length: 688 [19:36:45]Content-Type: application/json [19:36:45] [19:36:45]POST finish read [19:36:45]Found Content-Length = 688 [19:36:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342865", "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" ] } } [19:36:45]execute_script... [19:36: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)342865", "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" ] } } [19:36:45]POST & json_proto [19:36:45]process_json_proto [19:36:45]json parsed OK: [19:36:45]protocol is kg_v1.0 [19:36:45]action value=close_receipt [19:36:45]process_action close_receipt [19:36:45]cmd_close_receipt [19:36:45]MH_GetDate [19:36:45]Write to MH i2c: F0 00 00 97 11 97 [19:36:45]Write i2c OK [19:36:45]MH_I2C_Read... [19:36:45]Read from MH i2c: F0 [19:36:45]MH_I2C_Read... [19:36:45]Read from MH i2c: F0 09 00 [19:36:45]MH_I2C_Read... [19:36:45]Read from MH i2c: F0 09 00 97 11 00 CE 5B 15 67 04 C1 95 66 05 [19:36:45]GetLastDocTimeStamp 1729452917 [19:36:45]current date 1729453006 [19:36:45]FM_GetShiftState [19:36:45]SAM_PROTO_GetShiftState [19:36:45]wFMCommunicate request_size=4 [19:36:45]MH_SAM_APDU [19:36:45]CAPDU: 80 13 01 00 [19:36:45]Write to MH i2c: E2 08 00 98 11 80 13 01 00 00 00 00 00 26 [19:36:45]Write i2c OK [19:36:45]MH_I2C_Read... [19:36:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:36:45]Read from MH i2c: E2 [19:36:45]MH_I2C_Read... [19:36:45]Read from MH i2c: E2 0E 00 [19:36:45]MH_I2C_Read... [19:36:45]Read from MH i2c: E2 0E 00 98 11 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 0C [19:36:45]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [19:36:45]wFMCommunicate OK [19:36:45]SAM_PROTO_GetShiftState done [19:36:45]FM_GetShiftState done [19:36:45]opened in 1729384718 [19:36:45]opened+sec_in_day 1729471118 [19:36:45]quantity*price = 150076 [19:36:45]sum+1 = 150078 [19:36:45]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 СНО: Общий режим Чек 244 20.10.2024 19:36 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30462 ФПД: 81663548835442 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T193646&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30462&fm=81663548835442&tin=02508201610067®Number=0000000000186857&sum=150000 [19:36:47]StoreToDocumentArchive [19:36:47]shift 114 fd 30462 [19:36:47]save to /storage/0114/doc_00030462 [19:36:47]save last doc name /storage/0114/doc_00030462 to /storage/kkm_last_doc_name [19:36:47]save OK [19:36:47]Clear old archive folders... [19:36:47]ProcessDocumentItem done err = 0, tmpTLVsize=257 [19:36:47]tlvbuf is 01E06100 [19:36:47]SAM_PROTO_ClearQueue [19:36:47]wFMCommunicate request_size=4 [19:36:47]MH_SAM_APDU [19:36:47]CAPDU: 80 09 00 00 [19:36:47]Write to MH i2c: E2 08 00 A5 11 80 09 00 00 00 00 00 00 28 [19:36:47]Write i2c OK [19:36:47]MH_I2C_Read... [19:36:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:36:47]Read from MH i2c: E2 [19:36:47]MH_I2C_Read... [19:36:47]Read from MH i2c: E2 03 00 [19:36:47]MH_I2C_Read... [19:36:47]Read from MH i2c: E2 03 00 A5 11 00 90 00 2A [19:36:47]RAPDU: 90 00 [19:36:47]wFMCommunicate OK [19:36:47]SAM_PROTO_ClearQueue done [19:36:47]KKMCreateOFDPacket [19:36:47]OFDProtocolAddRootSTLVToBuf [19:36:47]FM_MakeSignedData [19:36:47]FM_MakeSignedData [19:36:47]SAM_PROTO_SignData [19:36:47]wFMCommunicate request_size=4 [19:36:47]MH_SAM_APDU [19:36:47]CAPDU: 80 0D 01 02 [19:36:47]Write to MH i2c: E2 08 00 A6 11 80 0D 01 02 00 00 00 00 30 [19:36:47]Write i2c OK [19:36:47]MH_I2C_Read... [19:36:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:36:47]Read from MH i2c: E2 [19:36:47]MH_I2C_Read... [19:36:47]Read from MH i2c: E2 03 00 [19:36:47]MH_I2C_Read... [19:36:47]Read from MH i2c: E2 03 00 A6 11 00 90 00 2B [19:36:47]RAPDU: 90 00 [19:36:47]wFMCommunicate OK [19:36:47]wFMCommunicate request_size=255 [19:36:47]MH_SAM_APDU [19:36: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 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 F4 00 00 00 F4 03 04 00 CE 5B 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 [19:36:47]Write to MH i2c: E2 02 01 A7 11 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 F4 00 00 00 F4 03 04 00 CE 5B 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 00 5B [19:36:47]Write i2c OK [19:36:47]MH_I2C_Read... [19:36:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:36:47]Read from MH i2c: E2 [19:36:47]MH_I2C_Read... [19:36:47]Read from MH i2c: E2 03 00 [19:36:47]MH_I2C_Read... [19:36:47]Read from MH i2c: E2 03 00 A7 11 00 90 00 2C [19:36:47]RAPDU: 90 00 [19:36:47]wFMCommunicate OK [19:36:47]wFMCommunicate request_size=16 [19:36:47]MH_SAM_APDU [19:36:47]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 4A 45 C6 D1 C6 72 [19:36:47]Write to MH i2c: E2 13 00 A8 11 80 0D 02 02 0B 00 00 35 04 06 00 4A 45 C6 D1 C6 72 00 00 E6 [19:36:47]Write i2c OK [19:36:47]MH_I2C_Read... [19:36:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:36:47]Read from MH i2c: E2 [19:36:47]MH_I2C_Read... [19:36:47]Read from MH i2c: E2 03 00 [19:36:47]MH_I2C_Read... [19:36:47]Read from MH i2c: E2 03 00 A8 11 00 90 00 2D [19:36:47]RAPDU: 90 00 [19:36:47]wFMCommunicate OK [19:36:47]wFMCommunicate request_size=4 [19:36:47]MH_SAM_APDU [19:36:47]CAPDU: 80 0D 03 02 [19:36:47]Write to MH i2c: E2 08 00 A9 11 80 0D 03 02 00 00 00 00 35 [19:36:47]Write i2c OK [19:36:47]MH_I2C_Read... [19:36:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:36:47]Read from MH i2c: E2 [19:36:47]MH_I2C_Read... [19:36:47]Read from MH i2c: E2 0B 00 [19:36:47]MH_I2C_Read... [19:36:47]Read from MH i2c: E2 0B 00 A9 11 00 BB A9 DD 98 F4 3A 3A 19 90 00 90 [19:36:47]RAPDU: BB A9 DD 98 F4 3A 3A 19 90 00 [19:36:47]wFMCommunicate OK [19:36:47]SAM_PROTO_SignData done [19:36:47]FM_MakeSignedData done [19:36:47]CreateOFDProtocolMessage [19:36:47]wFMCommunicate request_size=4 [19:36:47]MH_SAM_APDU [19:36:47]CAPDU: 80 11 00 00 [19:36:47]Write to MH i2c: E2 08 00 AA 11 80 11 00 00 00 00 00 00 35 [19:36:47]Write i2c OK [19:36:47]MH_I2C_Read... [19:36:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:36:47]Read from MH i2c: E2 [19:36:47]MH_I2C_Read... [19:36:47]Read from MH i2c: E2 17 00 [19:36:47]MH_I2C_Read... [19:36:47]Read from MH i2c: E2 17 00 AA 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 83 [19:36: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:36:47]wFMCommunicate OK [19:36:47]CreateOFDProtocolMessage done [19:36:47]OFDSenderStorePacket 30462 [19:36:47]StoreOFDPacket docnum=30462 [19:36: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 15 01 00 00 31 95 0D 01 62 FF 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 F4 00 00 00 F4 03 04 00 CE 5B 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 4A 45 C6 D1 C6 72 BB A9 DD 98 F4 3A 3A 19 [19:36:47]CheckFolder [19:36:47]dirname=/storage/ofd_packets [19:36:47]CheckFolder done [19:36:47]ProducePacketName [19:36:47]name=ofd_packets/00030462 [19:36:47]NVStorageSaveData ofd_packets/00030462 [19:36:47]File name is /storage/ofd_packets/00030462 [19:36:47]Write 307 bytes [19:36:47]NVStorageSaveData done [19:36:47]OFDSenderStorePacket done [19:36:47]KKMCreateOFDPacket done [19:36:47]NVStorageSaveData kkm_last_timestamp [19:36:47]File name is /storage/kkm_last_timestamp [19:36:47]Write 4 bytes [19:36:47]NVStorageSaveData done [19:36:47]ExternCall_PrintAddStr [19:36:47]wPrintStart [19:36:47]Write to MH i2c: 01 00 00 AB 11 BC [19:36:47]Write i2c OK [19:36:47]MH_I2C_Read... [19:36:47]Read from MH i2c: 01 [19:36:47]MH_I2C_Read... [19:36:47]Read from MH i2c: 01 07 00 [19:36:47]MH_I2C_Read... [19:36:47]Read from MH i2c: 01 07 00 AB 11 00 00 00 00 00 FF 0F D1 [19:36:47]RasterBufferAndPrint [19:36:47]line Счет N : (1)342865 [19:36:47]line ИНН: 02508201610067 [19:36:47]line Контрольно-Кассовый Чек [19:36:47]line ПРОДАЖА [19:36:47]line ТРК (МРК, ГНК) : 51 [19:36:47]line Товар: 2710194210 [19:36:47]line D-ENERGY Дт-К-2 [19:36:47]line 19.440 * 77.20 [19:36:47]line = 1500.77 [19:36:47]line НДС 12% НСП 1% [19:36:47]line > о реализуемом товаре [19:36:47]line ОКРУГЛЕНИЕ: -0.77 [19:36:47]line ИТОГО: 1500.00 [19:36:47]line Внесено: 1500.00 [19:36:47]line СДАЧА: 0.00 [19:36:47]line НСП 1% : 13.28 [19:36:47]line НДС 12% : 159.37 [19:36:47]line Наличными: 1500.00 [19:36:47]line Безнал.: 0.00 [19:36:47]line Место: АЗС № 78 "Партнер Нефть" [19:36:47]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [19:36:47]line СНО: Общий режим [19:36:47]line Чек 244 20.10.2024 19:36 [19:36:47]line Смена: 114 ФФД: 1.0 [19:36:47]line ЗНМ: 0300000137 [19:36:47]line РНМ: 0000000000186857 [19:36:47]line Версия ККМ: v1.0 [19:36:47]line ФМ: 0000000002094219 [19:36:47]line ФД: 30462 [19:36:47]line ФПД: 81663548835442 [19:36:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T193646&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30462&fm=81663548835442&tin=02508201610067®Number=0000000000186857&sum=150000 [19:36:47]OFD Sender: Processing packet 30462 [packets to send 10, broken 9] [19:36:47]ProducePacketName [19:36:47]name=ofd_packets/00030462 [19:36:47]OFD Sender: To server: pG, [19:36:47]CommunicateWithHost lk.salyk.kg:30040 [19:36:47]ConnectInit lk.salyk.kg [19:36:47]written 0, free lines is 4095 [19:36:48]Connected sock=10 [19:36: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 31 95 0D 01 62 FF 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 F4 00 00 00 F4 03 04 00 CE 5B 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 4A 45 C6 D1 C6 72 BB A9 DD 98 F4 3A 3A 19 [19:36: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 E9 4F 47 00 07 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 FE 76 00 00 F4 03 04 00 51 06 15 67 B6 04 01 00 00 80 FA 86 FC A3 D1 07 8F [19:36:48]CommunicateWithHost err = 0 [19:36:48]CheckOFDResponse [19:36:48]1017 (14) - 77093643461234 [19:36:48]1041 (16) - 0000000002094219 [19:36:48]1040 (4) - 30462 [19:36:48]1012 (4) - 20.10.2024 13:32 [19:36:48]1206 (1) - 0 [19:36:48]OFD Sender: Remove packet 30462 [19:36:48]ProducePacketName [19:36:48]name=ofd_packets/00030462 [19:36:48]NVStorageDeleteData [19:36:48]Write to MH i2c: 01 00 00 D6 11 E7 [19:36:48]Write i2c OK [19:36:48]MH_I2C_Read... [19:36:48]Read from MH i2c: 01 [19:36:48]MH_I2C_Read... [19:36:48]Read from MH i2c: 01 07 00 [19:36:48]MH_I2C_Read... [19:36:48]Read from MH i2c: 01 07 00 D6 11 00 00 00 00 00 FF 0C F9 [19:36:48]RasterBufferAndPrint [19:36:48]line [19:36:48]line [19:36:48]line [19:36:48]line [19:36:48]line [19:36:48]written 0, free lines is 3333 [19:36:48]MH_Cut [19:36:48]Write to MH i2c: D1 01 00 DD 11 01 C0 [19:36:48]Write i2c OK [19:36:48]MH_I2C_Read... [19:36:48]Read from MH i2c: D1 [19:36:48]MH_I2C_Read... [19:36:48]Read from MH i2c: D1 01 00 [19:36:48]MH_I2C_Read... [19:36:48]Read from MH i2c: D1 01 00 DD 11 00 BF [19:36:48]Write to MH i2c: 01 00 00 DE 11 EF [19:36:48]Write i2c OK [19:36:48]MH_I2C_Read... [19:36:48]OFD Sender: No OFD packet to send [19:36:49]*** Cut start [19:36:49]*** Partial cut [19:36:49]*** CUTSNS_PIN = 1 [19:36:49]*** CUTSNS_PIN = 0 [19:36:49]*** Brake cut motor [19:36:49]Read from MH i2c: 01 [19:36:49]MH_I2C_Read... [19:36:49]*** Stop cut motor [19:36:49]*** Cut end [19:36:49]Read from MH i2c: 01 07 00 [19:36:49]MH_I2C_Read... [19:36:49]Read from MH i2c: 01 07 00 DE 11 00 00 00 00 00 FF 0F 04 [19:36:49]process_action close_receipt done [19:36:49]requested_data is exist [19:36:49]produce_requested_data [19:36:49]requested_item fm.sn is exist - process it [19:36:49]wFMCommunicate request_size=4 [19:36:49]MH_SAM_APDU [19:36:49]CAPDU: 80 11 00 00 [19:36:49]Write to MH i2c: E2 08 00 DF 11 80 11 00 00 00 00 00 00 6A [19:36:49]Write i2c OK [19:36:49]MH_I2C_Read... [19:36:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:36:49]Read from MH i2c: E2 [19:36:49]MH_I2C_Read... [19:36:49]Read from MH i2c: E2 17 00 [19:36:49]MH_I2C_Read... [19:36:49]Read from MH i2c: E2 17 00 DF 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 B8 [19:36: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:36:49]wFMCommunicate OK [19:36:49]requested_item fd.num is exist - process it [19:36:49]SAM_PROTO_GetFieldsCounters [19:36:49]wFMCommunicate request_size=4 [19:36:49]MH_SAM_APDU [19:36:49]CAPDU: 80 13 00 00 [19:36:49]Write to MH i2c: E2 08 00 E0 11 80 13 00 00 00 00 00 00 6D [19:36:49]Write i2c OK [19:36:49]MH_I2C_Read... [19:36:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:36:49]Read from MH i2c: E2 [19:36:49]MH_I2C_Read... [19:36:49]Read from MH i2c: E2 62 00 [19:36:49]MH_I2C_Read... [19:36:49]Read from MH i2c: E2 62 00 E0 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 55 [19:36: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 FE 76 00 00 0E 04 04 00 72 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 [19:36:49]wFMCommunicate OK [19:36:49]SAM_PROTO_GetFieldsCounters done [19:36:49]requested_item shift.num is exist - process it [19:36:49]requested_item shift.opened is exist - process it [19:36:49]req_shift_opened [19:36:49]FM_GetShiftState [19:36:49]SAM_PROTO_GetShiftState [19:36:49]wFMCommunicate request_size=4 [19:36:49]MH_SAM_APDU [19:36:49]CAPDU: 80 13 01 00 [19:36:49]Write to MH i2c: E2 08 00 E1 11 80 13 01 00 00 00 00 00 6F [19:36:49]Write i2c OK [19:36:49]MH_I2C_Read... [19:36:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:36:49]Read from MH i2c: E2 [19:36:49]MH_I2C_Read... [19:36:49]Read from MH i2c: E2 0E 00 [19:36:49]MH_I2C_Read... [19:36:49]Read from MH i2c: E2 0E 00 E1 11 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 55 [19:36:49]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [19:36:49]wFMCommunicate OK [19:36:49]SAM_PROTO_GetShiftState done [19:36:49]FM_GetShiftState done [19:36:49]req_shift_opened done [19:36:49]requested_item shift.open_date is exist - process it [19:36:49]req_shift_open_date [19:36:49]req_shift_open_date done [19:36:49]produce_requested_data done [19:36:49]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30462,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [19:36:49]process_action_free close_receipt [19:36:49]json_value_free [19:36:49]json_value_free done [19:36:49]process_json_proto returns [19:36:49]Send response to host [19:36:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30462,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [19:36:49]free response buf [19:36:49]execute_script done [19:36:49]execute_script returns [19:36:49]free content buf [19:36:49]Sock 9.Close socket [19:36:49]Sock 9.Thread stoped [19:36:53]OFD Sender: No OFD packet to send [19:36:58]OFD Sender: No OFD packet to send [19:37:03]OFD Sender: No OFD packet to send [19:37:08]OFD Sender: No OFD packet to send [19:37:13]OFD Sender: No OFD packet to send [19:37:18]OFD Sender: No OFD packet to send [19:37:23]OFD Sender: No OFD packet to send [19:37:28]OFD Sender: No OFD packet to send [19:37:33]OFD Sender: No OFD packet to send [19:37:38]OFD Sender: No OFD packet to send [19:37:43]OFD Sender: No OFD packet to send [19:37:48]OFD Sender: No OFD packet to send [19:37:53]OFD Sender: No OFD packet to send [19:37:58]OFD Sender: No OFD packet to send [19:38:03]OFD Sender: No OFD packet to send [19:38:08]OFD Sender: No OFD packet to send [19:38:13]OFD Sender: No OFD packet to send [19:38:18]OFD Sender: No OFD packet to send [19:38:23]OFD Sender: No OFD packet to send [19:38:28]OFD Sender: No OFD packet to send [19:38:33]OFD Sender: No OFD packet to send [19:38:38]OFD Sender: No OFD packet to send [19:38:43]OFD Sender: No OFD packet to send [19:38:48]OFD Sender: No OFD packet to send [19:38:53]OFD Sender: No OFD packet to send [19:38:58]OFD Sender: No OFD packet to send [19:39:03]OFD Sender: No OFD packet to send [19:39:08]OFD Sender: No OFD packet to send [19:39:13]OFD Sender: No OFD packet to send [19:39:18]OFD Sender: No OFD packet to send [19:39:23]OFD Sender: No OFD packet to send [19:39:28]OFD Sender: No OFD packet to send [19:39:33]OFD Sender: No OFD packet to send [19:39:38]OFD Sender: No OFD packet to send [19:39:43]OFD Sender: No OFD packet to send [19:39:48]OFD Sender: No OFD packet to send [19:39:53]OFD Sender: No OFD packet to send [19:39:58]OFD Sender: No OFD packet to send [19:40:03]OFD Sender: No OFD packet to send [19:40:08]OFD Sender: No OFD packet to send [19:40:12]accept exits with 7 [19:40:12]New connection [19:40:12]New thread 3067346276 created [19:40:12]Thread 3067489636 joined [19:40:12]Waiting for new connection... [19:40:12] Sock 7.Parse request [19:40:12]Sock 7.Check first char [19:40:12]Sock 7.First char is OK [19:40:12]request: POST /json_proto HTTP/1.0 [19:40:12]Method: POST [19:40:12]URL: /json_proto [19:40:12]Method is POST - this is cgi request [19:40:12]url: /json_proto [19:40:12]query_string will be loaded in cgi processing [19:40:12]execute_cgi json_proto POST (null) [19:40:12]execute_cgi path=json_proto method=POST [19:40:12]POST find Content-Length [19:40:12]Host: 172.17.51.3:8080 [19:40:12]Content-Length: 837 [19:40:12]Content-Type: application/json [19:40:12] [19:40:12]POST finish read [19:40:12]Found Content-Length = 837 [19:40:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342866", "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.250, "sum" : 400.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 400.05 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:40:12]execute_script... [19:40:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342866", "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.250, "sum" : 400.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 400.05 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:40:12]POST & json_proto [19:40:12]process_json_proto [19:40:12]json parsed OK: [19:40:12]protocol is kg_v1.0 [19:40:12]action value=close_receipt [19:40:12]process_action close_receipt [19:40:12]cmd_close_receipt [19:40:12]MH_GetDate [19:40:12]Write to MH i2c: F0 00 00 E2 11 E2 [19:40:12]Write i2c OK [19:40:12]MH_I2C_Read... [19:40:12]Read from MH i2c: F0 [19:40:12]MH_I2C_Read... [19:40:12]Read from MH i2c: F0 09 00 [19:40:12]MH_I2C_Read... [19:40:12]Read from MH i2c: F0 09 00 E2 11 00 9C 5C 15 67 04 C1 95 66 1F [19:40:12]GetLastDocTimeStamp 1729453006 [19:40:12]current date 1729453212 [19:40:12]FM_GetShiftState [19:40:12]SAM_PROTO_GetShiftState [19:40:12]wFMCommunicate request_size=4 [19:40:12]MH_SAM_APDU [19:40:12]CAPDU: 80 13 01 00 [19:40:12]Write to MH i2c: E2 08 00 E3 11 80 13 01 00 00 00 00 00 71 [19:40:12]Write i2c OK [19:40:12]MH_I2C_Read... [19:40:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:40:12]Read from MH i2c: E2 [19:40:12]MH_I2C_Read... [19:40:12]Read from MH i2c: E2 0E 00 [19:40:12]MH_I2C_Read... [19:40:12]Read from MH i2c: E2 0E 00 E3 11 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 57 [19:40:12]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [19:40:12]wFMCommunicate OK [19:40:12]SAM_PROTO_GetShiftState done [19:40:12]FM_GetShiftState done [19:40:12]opened in 1729384718 [19:40:12]opened+sec_in_day 1729471118 [19:40:12]quantity*price = 40005 [19:40:12]sum+1 = 40006 [19:40:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 400.05 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 0.00 Безнал.: 400.05 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 245 20.10.2024 19:40 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Платежная система: АКБ Кыргызстан ФМ: 0000000002094219 ФД: 30463 ФПД: 180895843003990 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T194012&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30463&fm=180895843003990&tin=02508201610067®Number=0000000000186857&sum=40005 [19:40:13]StoreToDocumentArchive [19:40:13]shift 114 fd 30463 [19:40:13]save to /storage/0114/doc_00030463 [19:40:13]save last doc name /storage/0114/doc_00030463 to /storage/kkm_last_doc_name [19:40:13]save OK [19:40:13]Clear old archive folders... [19:40:13]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:40:13]tlvbuf is 01E060C0 [19:40:13]SAM_PROTO_ClearQueue [19:40:13]wFMCommunicate request_size=4 [19:40:13]MH_SAM_APDU [19:40:13]CAPDU: 80 09 00 00 [19:40:13]Write to MH i2c: E2 08 00 F0 11 80 09 00 00 00 00 00 00 73 [19:40:13]Write i2c OK [19:40:13]MH_I2C_Read... [19:40:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:40:13]Read from MH i2c: E2 [19:40:13]MH_I2C_Read... [19:40:13]Read from MH i2c: E2 03 00 [19:40:13]MH_I2C_Read... [19:40:13]Read from MH i2c: E2 03 00 F0 11 00 90 00 75 [19:40:13]RAPDU: 90 00 [19:40:13]wFMCommunicate OK [19:40:13]SAM_PROTO_ClearQueue done [19:40:13]KKMCreateOFDPacket [19:40:13]OFDProtocolAddRootSTLVToBuf [19:40:13]FM_MakeSignedData [19:40:13]FM_MakeSignedData [19:40:13]SAM_PROTO_SignData [19:40:13]wFMCommunicate request_size=4 [19:40:13]MH_SAM_APDU [19:40:13]CAPDU: 80 0D 01 02 [19:40:13]Write to MH i2c: E2 08 00 F1 11 80 0D 01 02 00 00 00 00 7B [19:40:13]Write i2c OK [19:40:13]MH_I2C_Read... [19:40:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:40:13]Read from MH i2c: E2 [19:40:13]MH_I2C_Read... [19:40:13]Read from MH i2c: E2 03 00 [19:40:13]MH_I2C_Read... [19:40:13]Read from MH i2c: E2 03 00 F1 11 00 90 00 76 [19:40:13]RAPDU: 90 00 [19:40:13]wFMCommunicate OK [19:40:13]wFMCommunicate request_size=255 [19:40:13]MH_SAM_APDU [19:40: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 45 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 45 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 9C 5C 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 A4 86 18 76 [19:40:13]Write to MH i2c: E2 02 01 F2 11 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 45 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 45 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 9C 5C 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 A4 86 18 76 00 00 07 [19:40:13]Write i2c OK [19:40:13]MH_I2C_Read... [19:40:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:40:13]Read from MH i2c: E2 [19:40:13]MH_I2C_Read... [19:40:13]Read from MH i2c: E2 03 00 [19:40:13]MH_I2C_Read... [19:40:13]Read from MH i2c: E2 03 00 F2 11 00 90 00 77 [19:40:13]RAPDU: 90 00 [19:40:13]wFMCommunicate OK [19:40:13]wFMCommunicate request_size=7 [19:40:13]MH_SAM_APDU [19:40:13]CAPDU: 80 0D 02 02 02 AE 56 [19:40:13]Write to MH i2c: E2 0A 00 F3 11 80 0D 02 02 02 00 AE 56 00 00 86 [19:40:13]Write i2c OK [19:40:13]MH_I2C_Read... [19:40:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:40:13]Read from MH i2c: E2 [19:40:13]MH_I2C_Read... [19:40:13]Read from MH i2c: E2 03 00 [19:40:13]MH_I2C_Read... [19:40:13]Read from MH i2c: E2 03 00 F3 11 00 90 00 78 [19:40:13]RAPDU: 90 00 [19:40:13]wFMCommunicate OK [19:40:13]wFMCommunicate request_size=4 [19:40:13]MH_SAM_APDU [19:40:13]CAPDU: 80 0D 03 02 [19:40:13]Write to MH i2c: E2 08 00 F4 11 80 0D 03 02 00 00 00 00 80 [19:40:13]Write i2c OK [19:40:13]MH_I2C_Read... [19:40:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:40:13]Read from MH i2c: E2 [19:40:13]MH_I2C_Read... [19:40:13]Read from MH i2c: E2 0B 00 [19:40:13]MH_I2C_Read... [19:40:13]Read from MH i2c: E2 0B 00 F4 11 00 02 A1 DB 0F 2B B4 E6 A6 90 00 79 [19:40:13]RAPDU: 02 A1 DB 0F 2B B4 E6 A6 90 00 [19:40:13]wFMCommunicate OK [19:40:13]SAM_PROTO_SignData done [19:40:13]FM_MakeSignedData done [19:40:13]CreateOFDProtocolMessage [19:40:13]wFMCommunicate request_size=4 [19:40:13]MH_SAM_APDU [19:40:13]CAPDU: 80 11 00 00 [19:40:13]Write to MH i2c: E2 08 00 F5 11 80 11 00 00 00 00 00 00 80 [19:40:13]Write i2c OK [19:40:13]MH_I2C_Read... [19:40:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:40:13]Read from MH i2c: E2 [19:40:13]MH_I2C_Read... [19:40:13]Read from MH i2c: E2 17 00 [19:40:13]MH_I2C_Read... [19:40:13]Read from MH i2c: E2 17 00 F5 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 CE [19:40: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:40:13]wFMCommunicate OK [19:40:13]CreateOFDProtocolMessage done [19:40:13]OFDSenderStorePacket 30463 [19:40:13]StoreOFDPacket docnum=30463 [19:40: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 5E 38 04 01 BD 08 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 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 45 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 45 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 9C 5C 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 A4 86 18 76 AE 56 02 A1 DB 0F 2B B4 E6 A6 [19:40:13]CheckFolder [19:40:13]dirname=/storage/ofd_packets [19:40:13]CheckFolder done [19:40:13]ProducePacketName [19:40:13]name=ofd_packets/00030463 [19:40:13]NVStorageSaveData ofd_packets/00030463 [19:40:13]File name is /storage/ofd_packets/00030463 [19:40:13]Write 298 bytes [19:40:13]NVStorageSaveData done [19:40:13]OFDSenderStorePacket done [19:40:13]KKMCreateOFDPacket done [19:40:13]NVStorageSaveData kkm_last_timestamp [19:40:13]File name is /storage/kkm_last_timestamp [19:40:13]Write 4 bytes [19:40:13]NVStorageSaveData done [19:40:13]ExternCall_PrintAddStr [19:40:13]wPrintStart [19:40:13]Write to MH i2c: 01 00 00 F6 11 07 [19:40:13]Write i2c OK [19:40:13]MH_I2C_Read... [19:40:13]Read from MH i2c: 01 [19:40:13]MH_I2C_Read... [19:40:13]Read from MH i2c: 01 07 00 [19:40:13]MH_I2C_Read... [19:40:13]Read from MH i2c: 01 07 00 F6 11 00 00 00 00 00 FF 0F 1C [19:40:13]RasterBufferAndPrint [19:40:13]line Счет N : (1)342866 [19:40:13]line ИНН: 02508201610067 [19:40:13]line Контрольно-Кассовый Чек [19:40:13]line ПРОДАЖА [19:40:13]line ТРК (МРК, ГНК) : 54 [19:40:13]line Товар: 2710194210 [19:40:13]line ДТ-К-2 [19:40:13]line 5.250 * 76.20 [19:40:13]line = 400.05 [19:40:13]line НДС 12% НСП 1% [19:40:13]line > о реализуемом товаре [19:40:13]line ИТОГО: 400.05 [19:40:13]line НСП 1% : 3.54 [19:40:13]line НДС 12% : 42.48 [19:40:13]line Наличными: 0.00 [19:40:13]line Безнал.: 400.05 [19:40:13]line Место: АЗС № 78 "Партнер Нефть" [19:40:13]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [19:40:13]line СНО: Общий режим [19:40:13]line Чек 245 20.10.2024 19:40 [19:40:13]line Смена: 114 ФФД: 1.0 [19:40:13]line ЗНМ: 0300000137 [19:40:13]line РНМ: 0000000000186857 [19:40:13]line Версия ККМ: v1.0 [19:40:13]line Платежная система: АКБ Кыргызстан [19:40:13]line ФМ: 0000000002094219 [19:40:13]line ФД: 30463 [19:40:13]line ФПД: 180895843003990 [19:40:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T194012&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30463&fm=180895843003990&tin=02508201610067®Number=0000000000186857&sum=40005 [19:40:14]OFD Sender: Processing packet 30463 [packets to send 10, broken 9] [19:40:14]ProducePacketName [19:40:14]name=ofd_packets/00030463 [19:40:14]OFD Sender: To server: pG, [19:40:14]CommunicateWithHost lk.salyk.kg:30040 [19:40:14]ConnectInit lk.salyk.kg [19:40:14]written 0, free lines is 4095 [19:40:14]Connected sock=10 [19:40: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 5E 38 04 01 BD 08 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 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 45 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 45 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 9C 5C 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 76 00 00 35 04 06 00 A4 86 18 76 AE 56 02 A1 DB 0F 2B B4 E6 A6 [19:40: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 FC 47 00 2C 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 FF 76 00 00 F4 03 04 00 1F 07 15 67 B6 04 01 00 00 D0 41 72 50 48 B0 FA 93 [19:40:14]CommunicateWithHost err = 0 [19:40:14]CheckOFDResponse [19:40:14]1017 (14) - 77093643461234 [19:40:14]1041 (16) - 0000000002094219 [19:40:14]1040 (4) - 30463 [19:40:14]1012 (4) - 20.10.2024 13:35 [19:40:14]1206 (1) - 0 [19:40:14]OFD Sender: Remove packet 30463 [19:40:14]ProducePacketName [19:40:14]name=ofd_packets/00030463 [19:40:14]NVStorageDeleteData [19:40:14]Write to MH i2c: 01 00 00 20 12 32 [19:40:14]Write i2c OK [19:40:14]MH_I2C_Read... [19:40:14]Read from MH i2c: 01 [19:40:14]MH_I2C_Read... [19:40:14]Read from MH i2c: 01 07 00 [19:40:14]MH_I2C_Read... [19:40:14]Read from MH i2c: 01 07 00 20 12 00 00 00 00 00 02 0D 48 [19:40:14]RasterBufferAndPrint [19:40:14]line [19:40:14]line [19:40:14]line [19:40:14]line [19:40:14]line [19:40:14]written 0, free lines is 3336 [19:40:14]MH_Cut [19:40:14]Write to MH i2c: D1 01 00 27 12 01 0B [19:40:14]Write i2c OK [19:40:14]MH_I2C_Read... [19:40:14]Read from MH i2c: D1 [19:40:14]MH_I2C_Read... [19:40:14]Read from MH i2c: D1 01 00 [19:40:14]MH_I2C_Read... [19:40:14]Read from MH i2c: D1 01 00 27 12 00 0A [19:40:14]Write to MH i2c: 01 00 00 28 12 3A [19:40:14]Write i2c OK [19:40:14]MH_I2C_Read... [19:40:14]OFD Sender: No OFD packet to send [19:40:15]*** Cut start [19:40:15]*** Partial cut [19:40:15]*** CUTSNS_PIN = 1 [19:40:15]*** CUTSNS_PIN = 0 [19:40:15]*** Brake cut motor [19:40:15]Read from MH i2c: 01 [19:40:15]MH_I2C_Read... [19:40:15]*** Stop cut motor [19:40:15]*** Cut end [19:40:15]Read from MH i2c: 01 07 00 [19:40:15]MH_I2C_Read... [19:40:15]Read from MH i2c: 01 07 00 28 12 00 00 00 00 00 FF 0F 4F [19:40:15]process_action close_receipt done [19:40:15]requested_data is exist [19:40:15]produce_requested_data [19:40:15]requested_item fm.sn is exist - process it [19:40:15]wFMCommunicate request_size=4 [19:40:15]MH_SAM_APDU [19:40:15]CAPDU: 80 11 00 00 [19:40:15]Write to MH i2c: E2 08 00 29 12 80 11 00 00 00 00 00 00 B5 [19:40:15]Write i2c OK [19:40:15]MH_I2C_Read... [19:40:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:40:15]Read from MH i2c: E2 [19:40:15]MH_I2C_Read... [19:40:15]Read from MH i2c: E2 17 00 [19:40:15]MH_I2C_Read... [19:40:15]Read from MH i2c: E2 17 00 29 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 03 [19:40:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [19:40:15]wFMCommunicate OK [19:40:15]requested_item fd.num is exist - process it [19:40:15]SAM_PROTO_GetFieldsCounters [19:40:15]wFMCommunicate request_size=4 [19:40:15]MH_SAM_APDU [19:40:15]CAPDU: 80 13 00 00 [19:40:15]Write to MH i2c: E2 08 00 2A 12 80 13 00 00 00 00 00 00 B8 [19:40:15]Write i2c OK [19:40:15]MH_I2C_Read... [19:40:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:40:16]Read from MH i2c: E2 [19:40:16]MH_I2C_Read... [19:40:16]Read from MH i2c: E2 62 00 [19:40:16]MH_I2C_Read... [19:40:16]Read from MH i2c: E2 62 00 2A 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 76 00 00 0E 04 04 00 72 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 A4 [19:40: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 FF 76 00 00 0E 04 04 00 72 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 [19:40:16]wFMCommunicate OK [19:40:16]SAM_PROTO_GetFieldsCounters done [19:40:16]requested_item shift.num is exist - process it [19:40:16]requested_item shift.opened is exist - process it [19:40:16]req_shift_opened [19:40:16]FM_GetShiftState [19:40:16]SAM_PROTO_GetShiftState [19:40:16]wFMCommunicate request_size=4 [19:40:16]MH_SAM_APDU [19:40:16]CAPDU: 80 13 01 00 [19:40:16]Write to MH i2c: E2 08 00 2B 12 80 13 01 00 00 00 00 00 BA [19:40:16]Write i2c OK [19:40:16]MH_I2C_Read... [19:40:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:40:16]Read from MH i2c: E2 [19:40:16]MH_I2C_Read... [19:40:16]Read from MH i2c: E2 0E 00 [19:40:16]MH_I2C_Read... [19:40:16]Read from MH i2c: E2 0E 00 2B 12 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 A0 [19:40:16]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [19:40:16]wFMCommunicate OK [19:40:16]SAM_PROTO_GetShiftState done [19:40:16]FM_GetShiftState done [19:40:16]req_shift_opened done [19:40:16]requested_item shift.open_date is exist - process it [19:40:16]req_shift_open_date [19:40:16]req_shift_open_date done [19:40:16]produce_requested_data done [19:40:16]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30463,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [19:40:16]process_action_free close_receipt [19:40:16]json_value_free [19:40:16]json_value_free done [19:40:16]process_json_proto returns [19:40:16]Send response to host [19:40:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30463,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [19:40:16]free response buf [19:40:16]execute_script done [19:40:16]execute_script returns [19:40:16]free content buf [19:40:16]Sock 7.Close socket [19:40:16]Sock 7.Thread stoped [19:40:19]OFD Sender: No OFD packet to send [19:40:24]OFD Sender: No OFD packet to send [19:40:29]OFD Sender: No OFD packet to send [19:40:34]OFD Sender: No OFD packet to send [19:40:39]OFD Sender: No OFD packet to send [19:40:44]OFD Sender: No OFD packet to send [19:40:49]OFD Sender: No OFD packet to send [19:40:54]OFD Sender: No OFD packet to send [19:40:59]OFD Sender: No OFD packet to send [19:41:04]OFD Sender: No OFD packet to send [19:41:09]OFD Sender: No OFD packet to send [19:41:14]OFD Sender: No OFD packet to send [19:41:19]OFD Sender: No OFD packet to send [19:41:24]OFD Sender: No OFD packet to send [19:41:29]OFD Sender: No OFD packet to send [19:41:34]OFD Sender: No OFD packet to send [19:41:39]OFD Sender: No OFD packet to send [19:41:44]OFD Sender: No OFD packet to send [19:41:49]OFD Sender: No OFD packet to send [19:41:54]OFD Sender: No OFD packet to send [19:41:59]OFD Sender: No OFD packet to send [19:42:04]OFD Sender: No OFD packet to send [19:42:09]OFD Sender: No OFD packet to send [19:42:14]OFD Sender: No OFD packet to send [19:42:19]OFD Sender: No OFD packet to send [19:42:24]OFD Sender: No OFD packet to send [19:42:29]OFD Sender: No OFD packet to send [19:42:34]OFD Sender: No OFD packet to send [19:42:39]OFD Sender: No OFD packet to send [19:42:44]OFD Sender: No OFD packet to send [19:42:49]OFD Sender: No OFD packet to send [19:42:54]OFD Sender: No OFD packet to send [19:42:59]OFD Sender: No OFD packet to send [19:43:04]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:38]accept exits with 9 [19:45:38]New connection [19:45:38]New thread 3067489636 created [19:45:38]Thread 3067346276 joined [19:45:38]Waiting for new connection... [19:45:38] Sock 9.Parse request [19:45:38]Sock 9.Check first char [19:45:38]Sock 9.First char is OK [19:45:38]request: POST /json_proto HTTP/1.0 [19:45:38]Method: POST [19:45:38]URL: /json_proto [19:45:38]Method is POST - this is cgi request [19:45:38]url: /json_proto [19:45:38]query_string will be loaded in cgi processing [19:45:38]execute_cgi json_proto POST (null) [19:45:38]execute_cgi path=json_proto method=POST [19:45:38]POST find Content-Length [19:45:38]Host: 172.17.51.3:8080 [19:45:38]Content-Length: 677 [19:45:38]Content-Type: application/json [19:45:38] [19:45:38]POST finish read [19:45:38]Found Content-Length = 677 [19:45:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342867", "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.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" ] } } [19:45:38]execute_script... [19:45: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)342867", "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.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" ] } } [19:45:38]POST & json_proto [19:45:38]process_json_proto [19:45:38]json parsed OK: [19:45:38]protocol is kg_v1.0 [19:45:38]action value=close_receipt [19:45:38]process_action close_receipt [19:45:38]cmd_close_receipt [19:45:38]MH_GetDate [19:45:38]Write to MH i2c: F0 00 00 2C 12 2D [19:45:38]Write i2c OK [19:45:38]MH_I2C_Read... [19:45:38]Read from MH i2c: F0 [19:45:38]MH_I2C_Read... [19:45:38]Read from MH i2c: F0 09 00 [19:45:38]MH_I2C_Read... [19:45:38]Read from MH i2c: F0 09 00 2C 12 00 E3 5D 15 67 04 C1 95 66 B2 [19:45:38]GetLastDocTimeStamp 1729453212 [19:45:38]current date 1729453539 [19:45:38]FM_GetShiftState [19:45:38]SAM_PROTO_GetShiftState [19:45:38]wFMCommunicate request_size=4 [19:45:38]MH_SAM_APDU [19:45:38]CAPDU: 80 13 01 00 [19:45:38]Write to MH i2c: E2 08 00 2D 12 80 13 01 00 00 00 00 00 BC [19:45:38]Write i2c OK [19:45:38]MH_I2C_Read... [19:45:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:45:38]Read from MH i2c: E2 [19:45:38]MH_I2C_Read... [19:45:38]Read from MH i2c: E2 0E 00 [19:45:38]MH_I2C_Read... [19:45:38]Read from MH i2c: E2 0E 00 2D 12 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 A2 [19:45:38]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [19:45:38]wFMCommunicate OK [19:45:38]SAM_PROTO_GetShiftState done [19:45:38]FM_GetShiftState done [19:45:38]opened in 1729384718 [19:45:38]opened+sec_in_day 1729471118 [19:45:38]quantity*price = 27027 [19:45:38]sum+1 = 27029 [19:45:38]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 СНО: Общий режим Чек 246 20.10.2024 19:45 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30464 ФПД: 143038971908433 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T194539&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30464&fm=143038971908433&tin=02508201610067®Number=0000000000186857&sum=27000 [19:45:39]StoreToDocumentArchive [19:45:39]shift 114 fd 30464 [19:45:39]save to /storage/0114/doc_00030464 [19:45:39]save last doc name /storage/0114/doc_00030464 to /storage/kkm_last_doc_name [19:45:39]save OK [19:45:39]Clear old archive folders... [19:45:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:45:39]tlvbuf is 01E2AE80 [19:45:39]SAM_PROTO_ClearQueue [19:45:39]wFMCommunicate request_size=4 [19:45:39]MH_SAM_APDU [19:45:39]CAPDU: 80 09 00 00 [19:45:39]Write to MH i2c: E2 08 00 3A 12 80 09 00 00 00 00 00 00 BE [19:45:39]Write i2c OK [19:45:39]MH_I2C_Read... [19:45:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:45:40]Read from MH i2c: E2 [19:45:40]MH_I2C_Read... [19:45:40]Read from MH i2c: E2 03 00 [19:45:40]MH_I2C_Read... [19:45:40]Read from MH i2c: E2 03 00 3A 12 00 90 00 C0 [19:45:40]RAPDU: 90 00 [19:45:40]wFMCommunicate OK [19:45:40]SAM_PROTO_ClearQueue done [19:45:40]KKMCreateOFDPacket [19:45:40]OFDProtocolAddRootSTLVToBuf [19:45:40]FM_MakeSignedData [19:45:40]FM_MakeSignedData [19:45:40]SAM_PROTO_SignData [19:45:40]wFMCommunicate request_size=4 [19:45:40]MH_SAM_APDU [19:45:40]CAPDU: 80 0D 01 02 [19:45:40]Write to MH i2c: E2 08 00 3B 12 80 0D 01 02 00 00 00 00 C6 [19:45:40]Write i2c OK [19:45:40]MH_I2C_Read... [19:45:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:45:40]Read from MH i2c: E2 [19:45:40]MH_I2C_Read... [19:45:40]Read from MH i2c: E2 03 00 [19:45:40]MH_I2C_Read... [19:45:40]Read from MH i2c: E2 03 00 3B 12 00 90 00 C1 [19:45:40]RAPDU: 90 00 [19:45:40]wFMCommunicate OK [19:45:40]wFMCommunicate request_size=255 [19:45:40]MH_SAM_APDU [19:45: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 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 F6 00 00 00 F4 03 04 00 E3 5D 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 77 00 00 35 04 06 00 82 [19:45:40]Write to MH i2c: E2 02 01 3C 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 F6 00 00 00 F4 03 04 00 E3 5D 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 77 00 00 35 04 06 00 82 00 00 F1 [19:45:40]Write i2c OK [19:45:40]MH_I2C_Read... [19:45:40]OFD Sender: No OFD packet to send [19:45:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:45:40]Read from MH i2c: E2 [19:45:40]MH_I2C_Read... [19:45:40]Read from MH i2c: E2 03 00 [19:45:40]MH_I2C_Read... [19:45:40]Read from MH i2c: E2 03 00 3C 12 00 90 00 C2 [19:45:40]RAPDU: 90 00 [19:45:40]wFMCommunicate OK [19:45:40]wFMCommunicate request_size=10 [19:45:40]MH_SAM_APDU [19:45:40]CAPDU: 80 0D 02 02 05 17 DB 1C 11 51 [19:45:40]Write to MH i2c: E2 0D 00 3D 12 80 0D 02 02 05 00 17 DB 1C 11 51 00 00 43 [19:45:40]Write i2c OK [19:45:40]MH_I2C_Read... [19:45:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:45:40]Read from MH i2c: E2 [19:45:40]MH_I2C_Read... [19:45:40]Read from MH i2c: E2 03 00 [19:45:40]MH_I2C_Read... [19:45:40]Read from MH i2c: E2 03 00 3D 12 00 90 00 C3 [19:45:40]RAPDU: 90 00 [19:45:40]wFMCommunicate OK [19:45:40]wFMCommunicate request_size=4 [19:45:40]MH_SAM_APDU [19:45:40]CAPDU: 80 0D 03 02 [19:45:40]Write to MH i2c: E2 08 00 3E 12 80 0D 03 02 00 00 00 00 CB [19:45:40]Write i2c OK [19:45:40]MH_I2C_Read... [19:45:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:45:40]Read from MH i2c: E2 [19:45:40]MH_I2C_Read... [19:45:40]Read from MH i2c: E2 0B 00 [19:45:40]MH_I2C_Read... [19:45:40]Read from MH i2c: E2 0B 00 3E 12 00 7C 54 AC E7 E2 7E D2 3F 90 00 A0 [19:45:40]RAPDU: 7C 54 AC E7 E2 7E D2 3F 90 00 [19:45:40]wFMCommunicate OK [19:45:40]SAM_PROTO_SignData done [19:45:40]FM_MakeSignedData done [19:45:40]CreateOFDProtocolMessage [19:45:40]wFMCommunicate request_size=4 [19:45:40]MH_SAM_APDU [19:45:40]CAPDU: 80 11 00 00 [19:45:40]Write to MH i2c: E2 08 00 3F 12 80 11 00 00 00 00 00 00 CB [19:45:40]Write i2c OK [19:45:40]MH_I2C_Read... [19:45:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:45:40]Read from MH i2c: E2 [19:45:40]MH_I2C_Read... [19:45:40]Read from MH i2c: E2 17 00 [19:45:40]MH_I2C_Read... [19:45:40]Read from MH i2c: E2 17 00 3F 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 19 [19:45: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:45:40]wFMCommunicate OK [19:45:40]CreateOFDProtocolMessage done [19:45:40]OFDSenderStorePacket 30464 [19:45:40]StoreOFDPacket docnum=30464 [19:45: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 F4 1C 07 01 8C A4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 F6 00 00 00 F4 03 04 00 E3 5D 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 77 00 00 35 04 06 00 82 17 DB 1C 11 51 7C 54 AC E7 E2 7E D2 3F [19:45:40]CheckFolder [19:45:40]dirname=/storage/ofd_packets [19:45:40]CheckFolder done [19:45:40]ProducePacketName [19:45:40]name=ofd_packets/00030464 [19:45:40]NVStorageSaveData ofd_packets/00030464 [19:45:40]File name is /storage/ofd_packets/00030464 [19:45:40]Write 301 bytes [19:45:40]NVStorageSaveData done [19:45:40]OFDSenderStorePacket done [19:45:40]KKMCreateOFDPacket done [19:45:40]NVStorageSaveData kkm_last_timestamp [19:45:40]File name is /storage/kkm_last_timestamp [19:45:40]Write 4 bytes [19:45:40]NVStorageSaveData done [19:45:40]ExternCall_PrintAddStr [19:45:40]wPrintStart [19:45:40]Write to MH i2c: 01 00 00 40 12 52 [19:45:40]Write i2c OK [19:45:40]MH_I2C_Read... [19:45:40]Read from MH i2c: 01 [19:45:40]MH_I2C_Read... [19:45:40]Read from MH i2c: 01 07 00 [19:45:40]MH_I2C_Read... [19:45:40]Read from MH i2c: 01 07 00 40 12 00 00 00 00 00 FF 0F 67 [19:45:40]RasterBufferAndPrint [19:45:40]line Счет N : (1)342867 [19:45:40]line ИНН: 02508201610067 [19:45:40]line Контрольно-Кассовый Чек [19:45:40]line ПРОДАЖА [19:45:40]line ТРК (МРК, ГНК) : 63 [19:45:40]line Товар: 2710124130 [19:45:40]line Аи-92-К-2 [19:45:40]line 4.040 * 66.90 [19:45:40]line = 270.28 [19:45:40]line НДС 12% НСП 1% [19:45:40]line > о реализуемом товаре [19:45:40]line ОКРУГЛЕНИЕ: -0.28 [19:45:40]line ИТОГО: 270.00 [19:45:40]line Внесено: 270.00 [19:45:40]line СДАЧА: 0.00 [19:45:40]line НСП 1% : 2.39 [19:45:40]line НДС 12% : 28.70 [19:45:40]line Наличными: 270.00 [19:45:40]line Безнал.: 0.00 [19:45:40]line Место: АЗС № 78 "Партнер Нефть" [19:45:40]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [19:45:40]line СНО: Общий режим [19:45:40]line Чек 246 20.10.2024 19:45 [19:45:40]line Смена: 114 ФФД: 1.0 [19:45:40]line ЗНМ: 0300000137 [19:45:40]line РНМ: 0000000000186857 [19:45:40]line Версия ККМ: v1.0 [19:45:40]line ФМ: 0000000002094219 [19:45:40]line ФД: 30464 [19:45:40]line ФПД: 143038971908433 [19:45:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T194539&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30464&fm=143038971908433&tin=02508201610067®Number=0000000000186857&sum=27000 [19:45:40]OFD Sender: Processing packet 30464 [packets to send 10, broken 9] [19:45:40]ProducePacketName [19:45:40]name=ofd_packets/00030464 [19:45:40]OFD Sender: To server: pG, [19:45:40]CommunicateWithHost lk.salyk.kg:30040 [19:45:40]ConnectInit lk.salyk.kg [19:45:40]written 0, free lines is 4095 [19:45:40]Connected sock=10 [19:45: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 F4 1C 07 01 8C A4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 F6 00 00 00 F4 03 04 00 E3 5D 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 77 00 00 35 04 06 00 82 17 DB 1C 11 51 7C 54 AC E7 E2 7E D2 3F [19:45: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 EE 81 47 00 20 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 00 77 00 00 F4 03 04 00 66 08 15 67 B6 04 01 00 00 57 86 C4 C1 E7 9D 80 0A [19:45:41]CommunicateWithHost err = 0 [19:45:41]CheckOFDResponse [19:45:41]1017 (14) - 77093643461234 [19:45:41]1041 (16) - 0000000002094219 [19:45:41]1040 (4) - 30464 [19:45:41]1012 (4) - 20.10.2024 13:40 [19:45:41]1206 (1) - 0 [19:45:41]OFD Sender: Remove packet 30464 [19:45:41]ProducePacketName [19:45:41]name=ofd_packets/00030464 [19:45:41]NVStorageDeleteData [19:45:41]Write to MH i2c: 01 00 00 6B 12 7D [19:45:41]Write i2c OK [19:45:41]MH_I2C_Read... [19:45:41]Read from MH i2c: 01 [19:45:41]MH_I2C_Read... [19:45:41]Read from MH i2c: 01 07 00 [19:45:41]MH_I2C_Read... [19:45:41]Read from MH i2c: 01 07 00 6B 12 00 00 00 00 00 F3 0C 83 [19:45:41]RasterBufferAndPrint [19:45:41]line [19:45:41]line [19:45:41]line [19:45:41]line [19:45:41]line [19:45:41]written 0, free lines is 3321 [19:45:41]MH_Cut [19:45:41]Write to MH i2c: D1 01 00 72 12 01 56 [19:45:41]Write i2c OK [19:45:41]MH_I2C_Read... [19:45:41]Read from MH i2c: D1 [19:45:41]MH_I2C_Read... [19:45:41]Read from MH i2c: D1 01 00 [19:45:41]MH_I2C_Read... [19:45:41]Read from MH i2c: D1 01 00 72 12 00 55 [19:45:41]Write to MH i2c: 01 00 00 73 12 85 [19:45:41]Write i2c OK [19:45:41]MH_I2C_Read... [19:45:41]OFD Sender: No OFD packet to send [19:45:42]*** Cut start [19:45:42]*** Partial cut [19:45:42]*** CUTSNS_PIN = 1 [19:45:42]*** CUTSNS_PIN = 0 [19:45:42]*** Brake cut motor [19:45:42]Read from MH i2c: 01 [19:45:42]MH_I2C_Read... [19:45:42]*** Stop cut motor [19:45:42]*** Cut end [19:45:42]Read from MH i2c: 01 07 00 [19:45:42]MH_I2C_Read... [19:45:42]Read from MH i2c: 01 07 00 73 12 00 00 00 00 00 FF 0F 9A [19:45:42]process_action close_receipt done [19:45:42]requested_data is exist [19:45:42]produce_requested_data [19:45:42]requested_item fm.sn is exist - process it [19:45:42]wFMCommunicate request_size=4 [19:45:42]MH_SAM_APDU [19:45:42]CAPDU: 80 11 00 00 [19:45:42]Write to MH i2c: E2 08 00 74 12 80 11 00 00 00 00 00 00 00 [19:45:42]Write i2c OK [19:45:42]MH_I2C_Read... [19:45:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:45:42]Read from MH i2c: E2 [19:45:42]MH_I2C_Read... [19:45:42]Read from MH i2c: E2 17 00 [19:45:42]MH_I2C_Read... [19:45:42]Read from MH i2c: E2 17 00 74 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 4E [19:45:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [19:45:42]wFMCommunicate OK [19:45:42]requested_item fd.num is exist - process it [19:45:42]SAM_PROTO_GetFieldsCounters [19:45:42]wFMCommunicate request_size=4 [19:45:42]MH_SAM_APDU [19:45:42]CAPDU: 80 13 00 00 [19:45:42]Write to MH i2c: E2 08 00 75 12 80 13 00 00 00 00 00 00 03 [19:45:42]Write i2c OK [19:45:42]MH_I2C_Read... [19:45:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:45:42]Read from MH i2c: E2 [19:45:42]MH_I2C_Read... [19:45:42]Read from MH i2c: E2 62 00 [19:45:42]MH_I2C_Read... [19:45:42]Read from MH i2c: E2 62 00 75 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 77 00 00 0E 04 04 00 72 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 F4 [19:45: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 00 77 00 00 0E 04 04 00 72 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 [19:45:42]wFMCommunicate OK [19:45:42]SAM_PROTO_GetFieldsCounters done [19:45:42]requested_item shift.num is exist - process it [19:45:42]requested_item shift.opened is exist - process it [19:45:42]req_shift_opened [19:45:42]FM_GetShiftState [19:45:42]SAM_PROTO_GetShiftState [19:45:42]wFMCommunicate request_size=4 [19:45:42]MH_SAM_APDU [19:45:42]CAPDU: 80 13 01 00 [19:45:42]Write to MH i2c: E2 08 00 76 12 80 13 01 00 00 00 00 00 05 [19:45:42]Write i2c OK [19:45:42]MH_I2C_Read... [19:45:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:45:42]Read from MH i2c: E2 [19:45:42]MH_I2C_Read... [19:45:42]Read from MH i2c: E2 0E 00 [19:45:42]MH_I2C_Read... [19:45:42]Read from MH i2c: E2 0E 00 76 12 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 EB [19:45:42]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [19:45:42]wFMCommunicate OK [19:45:42]SAM_PROTO_GetShiftState done [19:45:42]FM_GetShiftState done [19:45:42]req_shift_opened done [19:45:42]requested_item shift.open_date is exist - process it [19:45:42]req_shift_open_date [19:45:42]req_shift_open_date done [19:45:42]produce_requested_data done [19:45:42]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30464,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [19:45:42]process_action_free close_receipt [19:45:42]json_value_free [19:45:42]json_value_free done [19:45:42]process_json_proto returns [19:45:42]Send response to host [19:45:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30464,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [19:45:42]free response buf [19:45:42]execute_script done [19:45:42]execute_script returns [19:45:42]free content buf [19:45:42]Sock 9.Close socket [19:45:42]Sock 9.Thread stoped [19:45:46]OFD Sender: No OFD packet to send [19:45:51]OFD Sender: No OFD packet to send [19:45:56]OFD Sender: No OFD packet to send [19:46:01]OFD Sender: No OFD packet to send [19:46:06]OFD Sender: No OFD packet to send [19:46:11]OFD Sender: No OFD packet to send [19:46:16]OFD Sender: No OFD packet to send [19:46:21]OFD Sender: No OFD packet to send [19:46:26]OFD Sender: No OFD packet to send [19:46:31]OFD Sender: No OFD packet to send [19:46:36]OFD Sender: No OFD packet to send [19:46:41]OFD Sender: No OFD packet to send [19:46:46]OFD Sender: No OFD packet to send [19:46:50]accept exits with 7 [19:46:50]New connection [19:46:50]New thread 3067346276 created [19:46:50]Thread 3067489636 joined [19:46:50]Waiting for new connection... [19:46:50] Sock 7.Parse request [19:46:50]Sock 7.Check first char [19:46:50]Sock 7.First char is OK [19:46:50]request: POST /json_proto HTTP/1.0 [19:46:50]Method: POST [19:46:50]URL: /json_proto [19:46:50]Method is POST - this is cgi request [19:46:50]url: /json_proto [19:46:50]query_string will be loaded in cgi processing [19:46:50]execute_cgi json_proto POST (null) [19:46:50]execute_cgi path=json_proto method=POST [19:46:50]POST find Content-Length [19:46:50]Host: 172.17.51.3:8080 [19:46:50]Content-Length: 677 [19:46:50]Content-Type: application/json [19:46:50] [19:46:50]POST finish read [19:46:50]Found Content-Length = 677 [19:46:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342868", "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" : 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" ] } } [19:46:50]execute_script... [19:46: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)342868", "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" : 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" ] } } [19:46:50]POST & json_proto [19:46:50]process_json_proto [19:46:50]json parsed OK: [19:46:50]protocol is kg_v1.0 [19:46:50]action value=close_receipt [19:46:50]process_action close_receipt [19:46:50]cmd_close_receipt [19:46:50]MH_GetDate [19:46:50]Write to MH i2c: F0 00 00 77 12 78 [19:46:50]Write i2c OK [19:46:50]MH_I2C_Read... [19:46:50]Read from MH i2c: F0 [19:46:50]MH_I2C_Read... [19:46:50]Read from MH i2c: F0 09 00 [19:46:50]MH_I2C_Read... [19:46:50]Read from MH i2c: F0 09 00 77 12 00 2B 5E 15 67 04 C1 95 66 46 [19:46:50]GetLastDocTimeStamp 1729453539 [19:46:50]current date 1729453611 [19:46:50]FM_GetShiftState [19:46:50]SAM_PROTO_GetShiftState [19:46:50]wFMCommunicate request_size=4 [19:46:50]MH_SAM_APDU [19:46:50]CAPDU: 80 13 01 00 [19:46:50]Write to MH i2c: E2 08 00 78 12 80 13 01 00 00 00 00 00 07 [19:46:50]Write i2c OK [19:46:50]MH_I2C_Read... [19:46:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:46:50]Read from MH i2c: E2 [19:46:50]MH_I2C_Read... [19:46:50]Read from MH i2c: E2 0E 00 [19:46:50]MH_I2C_Read... [19:46:50]Read from MH i2c: E2 0E 00 78 12 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 ED [19:46:50]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [19:46:50]wFMCommunicate OK [19:46:50]SAM_PROTO_GetShiftState done [19:46:50]FM_GetShiftState done [19:46:50]opened in 1729384718 [19:46:50]opened+sec_in_day 1729471118 [19:46:50]quantity*price = 70044 [19:46:50]sum+1 = 70046 [19:46:50]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 СНО: Общий режим Чек 247 20.10.2024 19:46 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30465 ФПД: 163776272741492 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T194651&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30465&fm=163776272741492&tin=02508201610067®Number=0000000000186857&sum=70000 [19:46:51]StoreToDocumentArchive [19:46:51]shift 114 fd 30465 [19:46:51]save to /storage/0114/doc_00030465 [19:46:51]save last doc name /storage/0114/doc_00030465 to /storage/kkm_last_doc_name [19:46:51]save OK [19:46:51]Clear old archive folders... [19:46:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:46:51]tlvbuf is 01E2ADA0 [19:46:51]SAM_PROTO_ClearQueue [19:46:51]wFMCommunicate request_size=4 [19:46:51]MH_SAM_APDU [19:46:51]CAPDU: 80 09 00 00 [19:46:51]Write to MH i2c: E2 08 00 85 12 80 09 00 00 00 00 00 00 09 [19:46:51]Write i2c OK [19:46:51]MH_I2C_Read... [19:46:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:46:51]Read from MH i2c: E2 [19:46:51]MH_I2C_Read... [19:46:51]Read from MH i2c: E2 03 00 [19:46:51]MH_I2C_Read... [19:46:51]Read from MH i2c: E2 03 00 85 12 00 90 00 0B [19:46:51]RAPDU: 90 00 [19:46:51]wFMCommunicate OK [19:46:51]SAM_PROTO_ClearQueue done [19:46:51]KKMCreateOFDPacket [19:46:51]OFDProtocolAddRootSTLVToBuf [19:46:51]FM_MakeSignedData [19:46:51]FM_MakeSignedData [19:46:51]SAM_PROTO_SignData [19:46:51]wFMCommunicate request_size=4 [19:46:51]MH_SAM_APDU [19:46:51]CAPDU: 80 0D 01 02 [19:46:51]Write to MH i2c: E2 08 00 86 12 80 0D 01 02 00 00 00 00 11 [19:46:51]Write i2c OK [19:46:51]MH_I2C_Read... [19:46:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:46:51]Read from MH i2c: E2 [19:46:51]MH_I2C_Read... [19:46:51]Read from MH i2c: E2 03 00 [19:46:51]MH_I2C_Read... [19:46:51]Read from MH i2c: E2 03 00 86 12 00 90 00 0C [19:46:51]RAPDU: 90 00 [19:46:51]wFMCommunicate OK [19:46:51]wFMCommunicate request_size=255 [19:46:51]MH_SAM_APDU [19:46:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 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 F7 00 00 00 F4 03 04 00 2B 5E 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 77 00 00 35 04 06 00 94 [19:46:51]Write to MH i2c: E2 02 01 87 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 F7 00 00 00 F4 03 04 00 2B 5E 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 77 00 00 35 04 06 00 94 00 00 04 [19:46:51]Write i2c OK [19:46:51]MH_I2C_Read... [19:46:51]OFD Sender: No OFD packet to send [19:46:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:46:51]Read from MH i2c: E2 [19:46:51]MH_I2C_Read... [19:46:51]Read from MH i2c: E2 03 00 [19:46:51]MH_I2C_Read... [19:46:51]Read from MH i2c: E2 03 00 87 12 00 90 00 0D [19:46:51]RAPDU: 90 00 [19:46:51]wFMCommunicate OK [19:46:51]wFMCommunicate request_size=10 [19:46:51]MH_SAM_APDU [19:46:51]CAPDU: 80 0D 02 02 05 F4 22 8F 34 74 [19:46:51]Write to MH i2c: E2 0D 00 88 12 80 0D 02 02 05 00 F4 22 8F 34 74 00 00 6B [19:46:51]Write i2c OK [19:46:51]MH_I2C_Read... [19:46:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:46:52]Read from MH i2c: E2 [19:46:52]MH_I2C_Read... [19:46:52]Read from MH i2c: E2 03 00 [19:46:52]MH_I2C_Read... [19:46:52]Read from MH i2c: E2 03 00 88 12 00 90 00 0E [19:46:52]RAPDU: 90 00 [19:46:52]wFMCommunicate OK [19:46:52]wFMCommunicate request_size=4 [19:46:52]MH_SAM_APDU [19:46:52]CAPDU: 80 0D 03 02 [19:46:52]Write to MH i2c: E2 08 00 89 12 80 0D 03 02 00 00 00 00 16 [19:46:52]Write i2c OK [19:46:52]MH_I2C_Read... [19:46:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:46:52]Read from MH i2c: E2 [19:46:52]MH_I2C_Read... [19:46:52]Read from MH i2c: E2 0B 00 [19:46:52]MH_I2C_Read... [19:46:52]Read from MH i2c: E2 0B 00 89 12 00 99 0F E3 DA DB C1 CF 9B 90 00 82 [19:46:52]RAPDU: 99 0F E3 DA DB C1 CF 9B 90 00 [19:46:52]wFMCommunicate OK [19:46:52]SAM_PROTO_SignData done [19:46:52]FM_MakeSignedData done [19:46:52]CreateOFDProtocolMessage [19:46:52]wFMCommunicate request_size=4 [19:46:52]MH_SAM_APDU [19:46:52]CAPDU: 80 11 00 00 [19:46:52]Write to MH i2c: E2 08 00 8A 12 80 11 00 00 00 00 00 00 16 [19:46:52]Write i2c OK [19:46:52]MH_I2C_Read... [19:46:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:46:52]Read from MH i2c: E2 [19:46:52]MH_I2C_Read... [19:46:52]Read from MH i2c: E2 17 00 [19:46:52]MH_I2C_Read... [19:46:52]Read from MH i2c: E2 17 00 8A 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 64 [19:46:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [19:46:52]wFMCommunicate OK [19:46:52]CreateOFDProtocolMessage done [19:46:52]OFDSenderStorePacket 30465 [19:46:52]StoreOFDPacket docnum=30465 [19:46: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 88 81 07 01 B5 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 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 F7 00 00 00 F4 03 04 00 2B 5E 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 77 00 00 35 04 06 00 94 F4 22 8F 34 74 99 0F E3 DA DB C1 CF 9B [19:46:52]CheckFolder [19:46:52]dirname=/storage/ofd_packets [19:46:52]CheckFolder done [19:46:52]ProducePacketName [19:46:52]name=ofd_packets/00030465 [19:46:52]NVStorageSaveData ofd_packets/00030465 [19:46:52]File name is /storage/ofd_packets/00030465 [19:46:52]Write 301 bytes [19:46:52]NVStorageSaveData done [19:46:52]OFDSenderStorePacket done [19:46:52]KKMCreateOFDPacket done [19:46:52]NVStorageSaveData kkm_last_timestamp [19:46:52]File name is /storage/kkm_last_timestamp [19:46:52]Write 4 bytes [19:46:52]NVStorageSaveData done [19:46:52]ExternCall_PrintAddStr [19:46:52]wPrintStart [19:46:52]Write to MH i2c: 01 00 00 8B 12 9D [19:46:52]Write i2c OK [19:46:52]MH_I2C_Read... [19:46:52]Read from MH i2c: 01 [19:46:52]MH_I2C_Read... [19:46:52]Read from MH i2c: 01 07 00 [19:46:52]MH_I2C_Read... [19:46:52]Read from MH i2c: 01 07 00 8B 12 00 00 00 00 00 FF 0F B2 [19:46:52]RasterBufferAndPrint [19:46:52]line Счет N : (1)342868 [19:46:52]line ИНН: 02508201610067 [19:46:52]line Контрольно-Кассовый Чек [19:46:52]line ПРОДАЖА [19:46:52]line ТРК (МРК, ГНК) : 32 [19:46:52]line Товар: 2710124500 [19:46:52]line Аи-95-К-3 [19:46:52]line 9.440 * 74.20 [19:46:52]line = 700.45 [19:46:52]line НДС 12% НСП 1% [19:46:52]line > о реализуемом товаре [19:46:52]line ОКРУГЛЕНИЕ: -0.45 [19:46:52]line ИТОГО: 700.00 [19:46:52]line Внесено: 700.00 [19:46:52]line СДАЧА: 0.00 [19:46:52]line НСП 1% : 6.20 [19:46:52]line НДС 12% : 74.38 [19:46:52]line Наличными: 700.00 [19:46:52]line Безнал.: 0.00 [19:46:52]line Место: АЗС № 78 "Партнер Нефть" [19:46:52]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [19:46:52]line СНО: Общий режим [19:46:52]line Чек 247 20.10.2024 19:46 [19:46:52]line Смена: 114 ФФД: 1.0 [19:46:52]line ЗНМ: 0300000137 [19:46:52]line РНМ: 0000000000186857 [19:46:52]line Версия ККМ: v1.0 [19:46:52]line ФМ: 0000000002094219 [19:46:52]line ФД: 30465 [19:46:52]line ФПД: 163776272741492 [19:46:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T194651&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30465&fm=163776272741492&tin=02508201610067®Number=0000000000186857&sum=70000 [19:46:52]OFD Sender: Processing packet 30465 [packets to send 10, broken 9] [19:46:52]ProducePacketName [19:46:52]name=ofd_packets/00030465 [19:46:52]OFD Sender: To server: pG, [19:46:52]CommunicateWithHost lk.salyk.kg:30040 [19:46:52]ConnectInit lk.salyk.kg [19:46:52]written 0, free lines is 4095 [19:46:52]Connected sock=10 [19:46: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 88 81 07 01 B5 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 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 F7 00 00 00 F4 03 04 00 2B 5E 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 77 00 00 35 04 06 00 94 F4 22 8F 34 74 99 0F E3 DA DB C1 CF 9B [19:46: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 F2 67 47 00 56 5C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 01 77 00 00 F4 03 04 00 AE 08 15 67 B6 04 01 00 00 DA 84 35 7F 69 D6 C5 F0 [19:46:52]CommunicateWithHost err = 0 [19:46:52]CheckOFDResponse [19:46:52]1017 (14) - 77093643461234 [19:46:52]1041 (16) - 0000000002094219 [19:46:52]1040 (4) - 30465 [19:46:52]1012 (4) - 20.10.2024 13:42 [19:46:52]1206 (1) - 0 [19:46:52]OFD Sender: Remove packet 30465 [19:46:52]ProducePacketName [19:46:52]name=ofd_packets/00030465 [19:46:52]NVStorageDeleteData [19:46:52]Write to MH i2c: 01 00 00 B6 12 C8 [19:46:52]Write i2c OK [19:46:52]MH_I2C_Read... [19:46:52]Read from MH i2c: 01 [19:46:52]MH_I2C_Read... [19:46:52]Read from MH i2c: 01 07 00 [19:46:52]MH_I2C_Read... [19:46:52]Read from MH i2c: 01 07 00 B6 12 00 00 00 00 00 E8 0C C3 [19:46:52]RasterBufferAndPrint [19:46:52]line [19:46:52]line [19:46:52]line [19:46:52]line [19:46:52]line [19:46:52]written 0, free lines is 3310 [19:46:52]MH_Cut [19:46:52]Write to MH i2c: D1 01 00 BD 12 01 A1 [19:46:52]Write i2c OK [19:46:52]MH_I2C_Read... [19:46:52]Read from MH i2c: D1 [19:46:52]MH_I2C_Read... [19:46:52]Read from MH i2c: D1 01 00 [19:46:52]MH_I2C_Read... [19:46:52]Read from MH i2c: D1 01 00 BD 12 00 A0 [19:46:52]Write to MH i2c: 01 00 00 BE 12 D0 [19:46:52]Write i2c OK [19:46:52]MH_I2C_Read... [19:46:53]OFD Sender: No OFD packet to send [19:46:53]*** Cut start [19:46:53]*** Partial cut [19:46:53]*** CUTSNS_PIN = 1 [19:46:53]*** CUTSNS_PIN = 0 [19:46:53]*** Brake cut motor [19:46:54]Read from MH i2c: 01 [19:46:54]MH_I2C_Read... [19:46:54]*** Stop cut motor [19:46:54]*** Cut end [19:46:54]Read from MH i2c: 01 07 00 [19:46:54]MH_I2C_Read... [19:46:54]Read from MH i2c: 01 07 00 BE 12 00 00 00 00 00 FF 0F E5 [19:46:54]process_action close_receipt done [19:46:54]requested_data is exist [19:46:54]produce_requested_data [19:46:54]requested_item fm.sn is exist - process it [19:46:54]wFMCommunicate request_size=4 [19:46:54]MH_SAM_APDU [19:46:54]CAPDU: 80 11 00 00 [19:46:54]Write to MH i2c: E2 08 00 BF 12 80 11 00 00 00 00 00 00 4B [19:46:54]Write i2c OK [19:46:54]MH_I2C_Read... [19:46:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:46:54]Read from MH i2c: E2 [19:46:54]MH_I2C_Read... [19:46:54]Read from MH i2c: E2 17 00 [19:46:54]MH_I2C_Read... [19:46:54]Read from MH i2c: E2 17 00 BF 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 99 [19:46:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [19:46:54]wFMCommunicate OK [19:46:54]requested_item fd.num is exist - process it [19:46:54]SAM_PROTO_GetFieldsCounters [19:46:54]wFMCommunicate request_size=4 [19:46:54]MH_SAM_APDU [19:46:54]CAPDU: 80 13 00 00 [19:46:54]Write to MH i2c: E2 08 00 C0 12 80 13 00 00 00 00 00 00 4E [19:46:54]Write i2c OK [19:46:54]MH_I2C_Read... [19:46:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:46:54]Read from MH i2c: E2 [19:46:54]MH_I2C_Read... [19:46:54]Read from MH i2c: E2 62 00 [19:46:54]MH_I2C_Read... [19:46:54]Read from MH i2c: E2 62 00 C0 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 77 00 00 0E 04 04 00 72 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 43 [19:46: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 01 77 00 00 0E 04 04 00 72 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 [19:46:54]wFMCommunicate OK [19:46:54]SAM_PROTO_GetFieldsCounters done [19:46:54]requested_item shift.num is exist - process it [19:46:54]requested_item shift.opened is exist - process it [19:46:54]req_shift_opened [19:46:54]FM_GetShiftState [19:46:54]SAM_PROTO_GetShiftState [19:46:54]wFMCommunicate request_size=4 [19:46:54]MH_SAM_APDU [19:46:54]CAPDU: 80 13 01 00 [19:46:54]Write to MH i2c: E2 08 00 C1 12 80 13 01 00 00 00 00 00 50 [19:46:54]Write i2c OK [19:46:54]MH_I2C_Read... [19:46:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:46:54]Read from MH i2c: E2 [19:46:54]MH_I2C_Read... [19:46:54]Read from MH i2c: E2 0E 00 [19:46:54]MH_I2C_Read... [19:46:54]Read from MH i2c: E2 0E 00 C1 12 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 36 [19:46:54]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [19:46:54]wFMCommunicate OK [19:46:54]SAM_PROTO_GetShiftState done [19:46:54]FM_GetShiftState done [19:46:54]req_shift_opened done [19:46:54]requested_item shift.open_date is exist - process it [19:46:54]req_shift_open_date [19:46:54]req_shift_open_date done [19:46:54]produce_requested_data done [19:46:54]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30465,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [19:46:54]process_action_free close_receipt [19:46:54]json_value_free [19:46:54]json_value_free done [19:46:54]process_json_proto returns [19:46:54]Send response to host [19:46:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30465,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [19:46:54]free response buf [19:46:54]execute_script done [19:46:54]execute_script returns [19:46:54]free content buf [19:46:54]Sock 7.Close socket [19:46:54]Sock 7.Thread stoped [19:46:58]OFD Sender: No OFD packet to send [19:47:03]OFD Sender: No OFD packet to send [19:47:08]OFD Sender: No OFD packet to send [19:47:13]OFD Sender: No OFD packet to send [19:47:18]OFD Sender: No OFD packet to send [19:47:23]OFD Sender: No OFD packet to send [19:47:28]OFD Sender: No OFD packet to send [19:47:33]OFD Sender: No OFD packet to send [19:47:38]OFD Sender: No OFD packet to send [19:47:43]OFD Sender: No OFD packet to send [19:47:48]OFD Sender: No OFD packet to send [19:47:53]OFD Sender: No OFD packet to send [19:47:58]OFD Sender: No OFD packet to send [19:48:03]OFD Sender: No OFD packet to send [19:48:08]OFD Sender: No OFD packet to send [19:48:13]OFD Sender: No OFD packet to send [19:48:18]OFD Sender: No OFD packet to send [19:48:23]OFD Sender: No OFD packet to send [19:48:28]OFD Sender: No OFD packet to send [19:48:33]OFD Sender: No OFD packet to send [19:48:38]OFD Sender: No OFD packet to send [19:48:43]OFD Sender: No OFD packet to send [19:48:48]OFD Sender: No OFD packet to send [19:48:53]OFD Sender: No OFD packet to send [19:48:58]OFD Sender: No OFD packet to send [19:49:03]OFD Sender: No OFD packet to send [19:49:08]OFD Sender: No OFD packet to send [19:49:13]OFD Sender: No OFD packet to send [19:49:18]OFD Sender: No OFD packet to send [19:49:23]OFD Sender: No OFD packet to send [19:49:28]OFD Sender: No OFD packet to send [19:49:33]OFD Sender: No OFD packet to send [19:49:38]OFD Sender: No OFD packet to send [19:49:43]OFD Sender: No OFD packet to send [19:49:48]OFD Sender: No OFD packet to send [19:49:53]OFD Sender: No OFD packet to send [19:49:58]OFD Sender: No OFD packet to send [19:50:03]OFD Sender: No OFD packet to send [19:50:08]OFD Sender: No OFD packet to send [19:50:13]OFD Sender: No OFD packet to send [19:50:18]OFD Sender: No OFD packet to send [19:50:23]OFD Sender: No OFD packet to send [19:50:28]OFD Sender: No OFD packet to send [19:50:33]OFD Sender: No OFD packet to send [19:50:38]OFD Sender: No OFD packet to send [19:50:43]OFD Sender: No OFD packet to send [19:50:48]OFD Sender: No OFD packet to send [19:50:53]OFD Sender: No OFD packet to send [19:50:58]OFD Sender: No OFD packet to send [19:51:03]OFD Sender: No OFD packet to send [19:51:08]OFD Sender: No OFD packet to send [19:51:13]OFD Sender: No OFD packet to send [19:51:18]OFD Sender: No OFD packet to send [19:51:23]OFD Sender: No OFD packet to send [19:51:28]OFD Sender: No OFD packet to send [19:51:33]OFD Sender: No OFD packet to send [19:51:38]OFD Sender: No OFD packet to send [19:51:43]OFD Sender: No OFD packet to send [19:51:48]OFD Sender: No OFD packet to send [19:51:53]OFD Sender: No OFD packet to send [19:51:58]OFD Sender: No OFD packet to send [19:52:03]OFD Sender: No OFD packet to send [19:52:08]OFD Sender: No OFD packet to send [19:52:13]OFD Sender: No OFD packet to send [19:52:18]OFD Sender: No OFD packet to send [19:52:23]OFD Sender: No OFD packet to send [19:52:28]OFD Sender: No OFD packet to send [19:52:33]OFD Sender: No OFD packet to send [19:52:38]OFD Sender: No OFD packet to send [19:52:43]OFD Sender: No OFD packet to send [19:52:48]OFD Sender: No OFD packet to send [19:52:53]OFD Sender: No OFD packet to send [19:52:58]OFD Sender: No OFD packet to send [19:53:03]OFD Sender: No OFD packet to send [19:53:08]OFD Sender: No OFD packet to send [19:53:13]OFD Sender: No OFD packet to send [19:53:18]OFD Sender: No OFD packet to send [19:53:23]OFD Sender: No OFD packet to send [19:53:28]OFD Sender: No OFD packet to send [19:53:33]OFD Sender: No OFD packet to send [19:53:38]OFD Sender: No OFD packet to send [19:53:43]OFD Sender: No OFD packet to send [19:53:48]OFD Sender: No OFD packet to send [19:53:53]OFD Sender: No OFD packet to send [19:53:58]OFD Sender: No OFD packet to send [19:54:03]OFD Sender: No OFD packet to send [19:54:08]OFD Sender: No OFD packet to send [19:54:13]OFD Sender: No OFD packet to send [19:54:18]OFD Sender: No OFD packet to send [19:54:23]OFD Sender: No OFD packet to send [19:54:28]OFD Sender: No OFD packet to send [19:54:33]OFD Sender: No OFD packet to send [19:54:38]OFD Sender: No OFD packet to send [19:54:43]OFD Sender: No OFD packet to send [19:54:48]OFD Sender: No OFD packet to send [19:54:53]OFD Sender: No OFD packet to send [19:54:58]OFD Sender: No OFD packet to send [19:55:03]OFD Sender: No OFD packet to send [19:55:08]OFD Sender: No OFD packet to send [19:55:13]OFD Sender: No OFD packet to send [19:55:18]OFD Sender: No OFD packet to send [19:55:21]accept exits with 9 [19:55:21]New connection [19:55:21]New thread 3067489636 created [19:55:21]Thread 3067346276 joined [19:55:21]Waiting for new connection... [19:55:21] Sock 9.Parse request [19:55:21]Sock 9.Check first char [19:55:21]Sock 9.First char is OK [19:55:21]request: POST /json_proto HTTP/1.0 [19:55:21]Method: POST [19:55:21]URL: /json_proto [19:55:21]Method is POST - this is cgi request [19:55:21]url: /json_proto [19:55:21]query_string will be loaded in cgi processing [19:55:21]execute_cgi json_proto POST (null) [19:55:21]execute_cgi path=json_proto method=POST [19:55:21]POST find Content-Length [19:55:21]Host: 172.17.51.3:8080 [19:55:21]Content-Length: 674 [19:55:21]Content-Type: application/json [19:55:21] [19:55:21]POST finish read [19:55:21]Found Content-Length = 674 [19:55:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342870", "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" : 2.630, "sum" : 200.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:55:21]execute_script... [19:55:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342870", "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" : 2.630, "sum" : 200.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:55:21]POST & json_proto [19:55:21]process_json_proto [19:55:21]json parsed OK: [19:55:21]protocol is kg_v1.0 [19:55:21]action value=close_receipt [19:55:21]process_action close_receipt [19:55:21]cmd_close_receipt [19:55:21]MH_GetDate [19:55:21]Write to MH i2c: F0 00 00 C2 12 C3 [19:55:21]Write i2c OK [19:55:21]MH_I2C_Read... [19:55:21]Read from MH i2c: F0 [19:55:21]MH_I2C_Read... [19:55:21]Read from MH i2c: F0 09 00 [19:55:21]MH_I2C_Read... [19:55:21]Read from MH i2c: F0 09 00 C2 12 00 2A 60 15 67 04 C1 95 66 92 [19:55:21]GetLastDocTimeStamp 1729453611 [19:55:21]current date 1729454122 [19:55:21]FM_GetShiftState [19:55:21]SAM_PROTO_GetShiftState [19:55:21]wFMCommunicate request_size=4 [19:55:21]MH_SAM_APDU [19:55:21]CAPDU: 80 13 01 00 [19:55:21]Write to MH i2c: E2 08 00 C3 12 80 13 01 00 00 00 00 00 52 [19:55:21]Write i2c OK [19:55:21]MH_I2C_Read... [19:55:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:55:22]Read from MH i2c: E2 [19:55:22]MH_I2C_Read... [19:55:22]Read from MH i2c: E2 0E 00 [19:55:22]MH_I2C_Read... [19:55:22]Read from MH i2c: E2 0E 00 C3 12 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 38 [19:55:22]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [19:55:22]wFMCommunicate OK [19:55:22]SAM_PROTO_GetShiftState done [19:55:22]FM_GetShiftState done [19:55:22]opened in 1729384718 [19:55:22]opened+sec_in_day 1729471118 [19:55:22]quantity*price = 20040 [19:55:22]sum+1 = 20042 [19:55:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.28 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 248 20.10.2024 19:55 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30466 ФПД: 102522491061618 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T195522&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30466&fm=102522491061618&tin=02508201610067®Number=0000000000186857&sum=20000 [19:55:23]StoreToDocumentArchive [19:55:23]shift 114 fd 30466 [19:55:23]save to /storage/0114/doc_00030466 [19:55:23]save last doc name /storage/0114/doc_00030466 to /storage/kkm_last_doc_name [19:55:23]save OK [19:55:23]Clear old archive folders... [19:55:23]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:55:23]tlvbuf is 01DB63B0 [19:55:23]SAM_PROTO_ClearQueue [19:55:23]wFMCommunicate request_size=4 [19:55:23]MH_SAM_APDU [19:55:23]CAPDU: 80 09 00 00 [19:55:23]Write to MH i2c: E2 08 00 D0 12 80 09 00 00 00 00 00 00 54 [19:55:23]Write i2c OK [19:55:23]MH_I2C_Read... [19:55:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:55:23]Read from MH i2c: E2 [19:55:23]MH_I2C_Read... [19:55:23]Read from MH i2c: E2 03 00 [19:55:23]MH_I2C_Read... [19:55:23]Read from MH i2c: E2 03 00 D0 12 00 90 00 56 [19:55:23]RAPDU: 90 00 [19:55:23]wFMCommunicate OK [19:55:23]SAM_PROTO_ClearQueue done [19:55:23]KKMCreateOFDPacket [19:55:23]OFDProtocolAddRootSTLVToBuf [19:55:23]FM_MakeSignedData [19:55:23]FM_MakeSignedData [19:55:23]SAM_PROTO_SignData [19:55:23]wFMCommunicate request_size=4 [19:55:23]MH_SAM_APDU [19:55:23]CAPDU: 80 0D 01 02 [19:55:23]Write to MH i2c: E2 08 00 D1 12 80 0D 01 02 00 00 00 00 5C [19:55:23]Write i2c OK [19:55:23]MH_I2C_Read... [19:55:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:55:23]Read from MH i2c: E2 [19:55:23]MH_I2C_Read... [19:55:23]Read from MH i2c: E2 03 00 [19:55:23]MH_I2C_Read... [19:55:23]Read from MH i2c: E2 03 00 D1 12 00 90 00 57 [19:55:23]RAPDU: 90 00 [19:55:23]wFMCommunicate OK [19:55:23]wFMCommunicate request_size=255 [19:55:23]MH_SAM_APDU [19:55:23]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 46 0A 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 49 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 2A 60 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 77 00 00 35 04 06 00 5D 3E 60 A9 [19:55:23]Write to MH i2c: E2 02 01 D2 12 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 46 0A 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 49 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 2A 60 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 77 00 00 35 04 06 00 5D 3E 60 A9 00 00 F5 [19:55:23]Write i2c OK [19:55:23]MH_I2C_Read... [19:55:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:55:23]Read from MH i2c: E2 [19:55:23]MH_I2C_Read... [19:55:23]Read from MH i2c: E2 03 00 [19:55:23]MH_I2C_Read... [19:55:23]Read from MH i2c: E2 03 00 D2 12 00 90 00 58 [19:55:23]RAPDU: 90 00 [19:55:23]wFMCommunicate OK [19:55:23]wFMCommunicate request_size=7 [19:55:23]MH_SAM_APDU [19:55:23]CAPDU: 80 0D 02 02 02 45 72 [19:55:23]Write to MH i2c: E2 0A 00 D3 12 80 0D 02 02 02 00 45 72 00 00 1A [19:55:23]Write i2c OK [19:55:23]MH_I2C_Read... [19:55:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:55:23]Read from MH i2c: E2 [19:55:23]MH_I2C_Read... [19:55:23]Read from MH i2c: E2 03 00 [19:55:23]MH_I2C_Read... [19:55:23]Read from MH i2c: E2 03 00 D3 12 00 90 00 59 [19:55:23]RAPDU: 90 00 [19:55:23]wFMCommunicate OK [19:55:23]wFMCommunicate request_size=4 [19:55:23]MH_SAM_APDU [19:55:23]CAPDU: 80 0D 03 02 [19:55:23]Write to MH i2c: E2 08 00 D4 12 80 0D 03 02 00 00 00 00 61 [19:55:23]Write i2c OK [19:55:23]MH_I2C_Read... [19:55:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:55:23]Read from MH i2c: E2 [19:55:23]MH_I2C_Read... [19:55:23]Read from MH i2c: E2 0B 00 [19:55:23]MH_I2C_Read... [19:55:23]Read from MH i2c: E2 0B 00 D4 12 00 55 0F A5 3E 8B 4E B9 94 90 00 CF [19:55:23]RAPDU: 55 0F A5 3E 8B 4E B9 94 90 00 [19:55:23]wFMCommunicate OK [19:55:23]SAM_PROTO_SignData done [19:55:23]FM_MakeSignedData done [19:55:23]CreateOFDProtocolMessage [19:55:23]wFMCommunicate request_size=4 [19:55:23]MH_SAM_APDU [19:55:23]CAPDU: 80 11 00 00 [19:55:23]Write to MH i2c: E2 08 00 D5 12 80 11 00 00 00 00 00 00 61 [19:55:23]Write i2c OK [19:55:23]MH_I2C_Read... [19:55:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:55:23]Read from MH i2c: E2 [19:55:23]MH_I2C_Read... [19:55:23]Read from MH i2c: E2 17 00 [19:55:23]MH_I2C_Read... [19:55:23]Read from MH i2c: E2 17 00 D5 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 AF [19:55:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [19:55:23]wFMCommunicate OK [19:55:23]CreateOFDProtocolMessage done [19:55:23]OFDSenderStorePacket 30466 [19:55:23]StoreOFDPacket docnum=30466 [19:55: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 86 0E 04 01 16 45 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 46 0A 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 49 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 2A 60 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 77 00 00 35 04 06 00 5D 3E 60 A9 45 72 55 0F A5 3E 8B 4E B9 94 [19:55:23]CheckFolder [19:55:23]dirname=/storage/ofd_packets [19:55:23]CheckFolder done [19:55:23]ProducePacketName [19:55:23]name=ofd_packets/00030466 [19:55:23]NVStorageSaveData ofd_packets/00030466 [19:55:23]File name is /storage/ofd_packets/00030466 [19:55:23]Write 298 bytes [19:55:23]NVStorageSaveData done [19:55:23]OFDSenderStorePacket done [19:55:23]KKMCreateOFDPacket done [19:55:23]NVStorageSaveData kkm_last_timestamp [19:55:23]File name is /storage/kkm_last_timestamp [19:55:23]Write 4 bytes [19:55:23]NVStorageSaveData done [19:55:23]OFD Sender: Processing packet 30466 [packets to send 10, broken 9] [19:55:23]ProducePacketName [19:55:23]name=ofd_packets/00030466 [19:55:23]OFD Sender: To server: pG, [19:55:23]CommunicateWithHost lk.salyk.kg:30040 [19:55:23]ConnectInit lk.salyk.kg [19:55:23]ExternCall_PrintAddStr [19:55:23]wPrintStart [19:55:23]Write to MH i2c: 01 00 00 D6 12 E8 [19:55:23]Write i2c OK [19:55:23]MH_I2C_Read... [19:55:23]Read from MH i2c: 01 [19:55:23]MH_I2C_Read... [19:55:23]Read from MH i2c: 01 07 00 [19:55:23]MH_I2C_Read... [19:55:23]Read from MH i2c: 01 07 00 D6 12 00 00 00 00 00 FF 0F FD [19:55:23]RasterBufferAndPrint [19:55:23]line Счет N : (1)342870 [19:55:23]line ИНН: 02508201610067 [19:55:23]line Контрольно-Кассовый Чек [19:55:23]line ПРОДАЖА [19:55:23]line ТРК (МРК, ГНК) : 44 [19:55:23]line Товар: 2710194210 [19:55:23]line ДТ-К-2 [19:55:23]line 2.630 * 76.20 [19:55:23]line = 200.41 [19:55:23]line НДС 12% НСП 1% [19:55:23]line > о реализуемом товаре [19:55:23]line ОКРУГЛЕНИЕ: -0.41 [19:55:23]line ИТОГО: 200.00 [19:55:23]line Внесено: 200.00 [19:55:23]line СДАЧА: 0.00 [19:55:23]line НСП 1% : 1.77 [19:55:23]line НДС 12% : 21.28 [19:55:23]line Наличными: 200.00 [19:55:23]line Безнал.: 0.00 [19:55:23]line Место: АЗС № 78 "Партнер Нефть" [19:55:23]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [19:55:23]line СНО: Общий режим [19:55:23]line Чек 248 20.10.2024 19:55 [19:55:23]line Смена: 114 ФФД: 1.0 [19:55:23]line ЗНМ: 0300000137 [19:55:23]line РНМ: 0000000000186857 [19:55:23]line Версия ККМ: v1.0 [19:55:23]line ФМ: 0000000002094219 [19:55:23]line ФД: 30466 [19:55:23]line ФПД: 102522491061618 [19:55:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T195522&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30466&fm=102522491061618&tin=02508201610067®Number=0000000000186857&sum=20000 [19:55:23]Connected sock=11 [19:55: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 86 0E 04 01 16 45 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 46 0A 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 49 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 2A 60 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 77 00 00 35 04 06 00 5D 3E 60 A9 45 72 55 0F A5 3E 8B 4E B9 94 [19:55:24]written 0, free lines is 4095 [19:55: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 8B 99 47 00 64 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 02 77 00 00 F4 03 04 00 AD 0A 15 67 B6 04 01 00 00 45 14 45 80 EF D0 C0 84 [19:55:24]CommunicateWithHost err = 0 [19:55:24]CheckOFDResponse [19:55:24]1017 (14) - 77093643461234 [19:55:24]1041 (16) - 0000000002094219 [19:55:24]1040 (4) - 30466 [19:55:24]1012 (4) - 20.10.2024 13:50 [19:55:24]1206 (1) - 0 [19:55:24]OFD Sender: Remove packet 30466 [19:55:24]ProducePacketName [19:55:24]name=ofd_packets/00030466 [19:55:24]NVStorageDeleteData [19:55:24]Write to MH i2c: 01 00 00 01 13 14 [19:55:24]Write i2c OK [19:55:24]MH_I2C_Read... [19:55:24]Read from MH i2c: 01 [19:55:24]MH_I2C_Read... [19:55:24]Read from MH i2c: 01 07 00 [19:55:24]MH_I2C_Read... [19:55:24]Read from MH i2c: 01 07 00 01 13 00 00 00 00 00 DC 0C 03 [19:55:24]RasterBufferAndPrint [19:55:24]line [19:55:24]line [19:55:24]line [19:55:24]line [19:55:24]line [19:55:24]written 0, free lines is 3298 [19:55:24]MH_Cut [19:55:24]Write to MH i2c: D1 01 00 08 13 01 ED [19:55:24]Write i2c OK [19:55:24]MH_I2C_Read... [19:55:24]Read from MH i2c: D1 [19:55:24]MH_I2C_Read... [19:55:24]Read from MH i2c: D1 01 00 [19:55:24]MH_I2C_Read... [19:55:24]Read from MH i2c: D1 01 00 08 13 00 EC [19:55:24]Write to MH i2c: 01 00 00 09 13 1C [19:55:24]Write i2c OK [19:55:24]MH_I2C_Read... [19:55:24]OFD Sender: No OFD packet to send [19:55:25]*** Cut start [19:55:25]*** Partial cut [19:55:25]*** CUTSNS_PIN = 1 [19:55:25]*** CUTSNS_PIN = 0 [19:55:25]*** Brake cut motor [19:55:25]Read from MH i2c: 01 [19:55:25]MH_I2C_Read... [19:55:25]*** Stop cut motor [19:55:25]*** Cut end [19:55:25]Read from MH i2c: 01 07 00 [19:55:25]MH_I2C_Read... [19:55:25]Read from MH i2c: 01 07 00 09 13 00 00 00 00 00 FF 0F 31 [19:55:25]process_action close_receipt done [19:55:25]requested_data is exist [19:55:25]produce_requested_data [19:55:25]requested_item fm.sn is exist - process it [19:55:25]wFMCommunicate request_size=4 [19:55:25]MH_SAM_APDU [19:55:25]CAPDU: 80 11 00 00 [19:55:25]Write to MH i2c: E2 08 00 0A 13 80 11 00 00 00 00 00 00 97 [19:55:25]Write i2c OK [19:55:25]MH_I2C_Read... [19:55:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:55:25]Read from MH i2c: E2 [19:55:25]MH_I2C_Read... [19:55:25]Read from MH i2c: E2 17 00 [19:55:25]MH_I2C_Read... [19:55:25]Read from MH i2c: E2 17 00 0A 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 E5 [19:55:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [19:55:25]wFMCommunicate OK [19:55:25]requested_item fd.num is exist - process it [19:55:25]SAM_PROTO_GetFieldsCounters [19:55:25]wFMCommunicate request_size=4 [19:55:25]MH_SAM_APDU [19:55:25]CAPDU: 80 13 00 00 [19:55:25]Write to MH i2c: E2 08 00 0B 13 80 13 00 00 00 00 00 00 9A [19:55:25]Write i2c OK [19:55:25]MH_I2C_Read... [19:55:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:55:25]Read from MH i2c: E2 [19:55:25]MH_I2C_Read... [19:55:25]Read from MH i2c: E2 62 00 [19:55:25]MH_I2C_Read... [19:55:25]Read from MH i2c: E2 62 00 0B 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 77 00 00 0E 04 04 00 72 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 93 [19:55: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 02 77 00 00 0E 04 04 00 72 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 [19:55:25]wFMCommunicate OK [19:55:25]SAM_PROTO_GetFieldsCounters done [19:55:25]requested_item shift.num is exist - process it [19:55:25]requested_item shift.opened is exist - process it [19:55:25]req_shift_opened [19:55:25]FM_GetShiftState [19:55:25]SAM_PROTO_GetShiftState [19:55:25]wFMCommunicate request_size=4 [19:55:25]MH_SAM_APDU [19:55:25]CAPDU: 80 13 01 00 [19:55:25]Write to MH i2c: E2 08 00 0C 13 80 13 01 00 00 00 00 00 9C [19:55:25]Write i2c OK [19:55:25]MH_I2C_Read... [19:55:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:55:25]Read from MH i2c: E2 [19:55:25]MH_I2C_Read... [19:55:25]Read from MH i2c: E2 0E 00 [19:55:25]MH_I2C_Read... [19:55:25]Read from MH i2c: E2 0E 00 0C 13 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 82 [19:55:25]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [19:55:25]wFMCommunicate OK [19:55:25]SAM_PROTO_GetShiftState done [19:55:25]FM_GetShiftState done [19:55:25]req_shift_opened done [19:55:25]requested_item shift.open_date is exist - process it [19:55:25]req_shift_open_date [19:55:25]req_shift_open_date done [19:55:25]produce_requested_data done [19:55:25]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30466,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [19:55:25]process_action_free close_receipt [19:55:25]json_value_free [19:55:25]json_value_free done [19:55:25]process_json_proto returns [19:55:25]Send response to host [19:55:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30466,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [19:55:25]free response buf [19:55:25]execute_script done [19:55:25]execute_script returns [19:55:25]free content buf [19:55:25]Sock 9.Close socket [19:55:25]Sock 9.Thread stoped [19:55:29]OFD Sender: No OFD packet to send [19:55:34]OFD Sender: No OFD packet to send [19:55:39]OFD Sender: No OFD packet to send [19:55:44]OFD Sender: No OFD packet to send [19:55:49]OFD Sender: No OFD packet to send [19:55:54]OFD Sender: No OFD packet to send [19:55:59]OFD Sender: No OFD packet to send [19:56:04]OFD Sender: No OFD packet to send [19:56:09]OFD Sender: No OFD packet to send [19:56:14]accept exits with 7 [19:56:14]New connection [19:56:14]New thread 3067346276 created [19:56:14]Thread 3067489636 joined [19:56:14]Waiting for new connection... [19:56:14] Sock 7.Parse request [19:56:14]Sock 7.Check first char [19:56:14]Sock 7.First char is OK [19:56:14]request: POST /json_proto HTTP/1.0 [19:56:14]Method: POST [19:56:14]URL: /json_proto [19:56:14]Method is POST - this is cgi request [19:56:14]url: /json_proto [19:56:14]query_string will be loaded in cgi processing [19:56:14]execute_cgi json_proto POST (null) [19:56:14]execute_cgi path=json_proto method=POST [19:56:14]POST find Content-Length [19:56:14]Host: 172.17.51.3:8080 [19:56:14]Content-Length: 838 [19:56:14]Content-Type: application/json [19:56:14] [19:56:14]POST finish read [19:56:14]Found Content-Length = 838 [19:56:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342871", "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" : 10.500, "sum" : 800.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 800.10 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:56:14]execute_script... [19:56: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)342871", "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" : 10.500, "sum" : 800.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 800.10 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:56:14]POST & json_proto [19:56:14]process_json_proto [19:56:14]json parsed OK: [19:56:14]protocol is kg_v1.0 [19:56:14]action value=close_receipt [19:56:14]process_action close_receipt [19:56:14]cmd_close_receipt [19:56:14]MH_GetDate [19:56:14]Write to MH i2c: F0 00 00 0D 13 0F [19:56:14]Write i2c OK [19:56:14]MH_I2C_Read... [19:56:14]Read from MH i2c: F0 [19:56:14]MH_I2C_Read... [19:56:14]Read from MH i2c: F0 09 00 [19:56:14]MH_I2C_Read... [19:56:14]Read from MH i2c: F0 09 00 0D 13 00 5F 60 15 67 04 C1 95 66 13 [19:56:14]GetLastDocTimeStamp 1729454122 [19:56:14]current date 1729454175 [19:56:14]FM_GetShiftState [19:56:14]SAM_PROTO_GetShiftState [19:56:14]wFMCommunicate request_size=4 [19:56:14]MH_SAM_APDU [19:56:14]CAPDU: 80 13 01 00 [19:56:14]Write to MH i2c: E2 08 00 0E 13 80 13 01 00 00 00 00 00 9E [19:56:14]Write i2c OK [19:56:14]MH_I2C_Read... [19:56:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:56:14]Read from MH i2c: E2 [19:56:14]MH_I2C_Read... [19:56:14]Read from MH i2c: E2 0E 00 [19:56:14]MH_I2C_Read... [19:56:14]Read from MH i2c: E2 0E 00 0E 13 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 84 [19:56:14]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [19:56:14]wFMCommunicate OK [19:56:14]SAM_PROTO_GetShiftState done [19:56:14]FM_GetShiftState done [19:56:14]opened in 1729384718 [19:56:14]opened+sec_in_day 1729471118 [19:56:14]quantity*price = 80010 [19:56:14]sum+1 = 80011 [19:56:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 800.10 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 0.00 Безнал.: 800.10 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 249 20.10.2024 19:56 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Платежная система: АКБ Кыргызстан ФМ: 0000000002094219 ФД: 30467 ФПД: 67841062509888 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T195615&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30467&fm=67841062509888&tin=02508201610067®Number=0000000000186857&sum=80010 [19:56:15]StoreToDocumentArchive [19:56:15]shift 114 fd 30467 [19:56:15]save to /storage/0114/doc_00030467 [19:56:15]save last doc name /storage/0114/doc_00030467 to /storage/kkm_last_doc_name [19:56:15]save OK [19:56:15]Clear old archive folders... [19:56:15]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:56:15]tlvbuf is 01DEA310 [19:56:15]SAM_PROTO_ClearQueue [19:56:15]wFMCommunicate request_size=4 [19:56:15]MH_SAM_APDU [19:56:15]CAPDU: 80 09 00 00 [19:56:15]Write to MH i2c: E2 08 00 1B 13 80 09 00 00 00 00 00 00 A0 [19:56:15]Write i2c OK [19:56:15]MH_I2C_Read... [19:56:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:56:15]Read from MH i2c: E2 [19:56:15]MH_I2C_Read... [19:56:15]Read from MH i2c: E2 03 00 [19:56:15]MH_I2C_Read... [19:56:15]Read from MH i2c: E2 03 00 1B 13 00 90 00 A2 [19:56:15]RAPDU: 90 00 [19:56:15]wFMCommunicate OK [19:56:15]SAM_PROTO_ClearQueue done [19:56:15]KKMCreateOFDPacket [19:56:15]OFDProtocolAddRootSTLVToBuf [19:56:15]FM_MakeSignedData [19:56:15]FM_MakeSignedData [19:56:15]SAM_PROTO_SignData [19:56:15]wFMCommunicate request_size=4 [19:56:15]MH_SAM_APDU [19:56:15]CAPDU: 80 0D 01 02 [19:56:15]Write to MH i2c: E2 08 00 1C 13 80 0D 01 02 00 00 00 00 A8 [19:56:15]Write i2c OK [19:56:15]MH_I2C_Read... [19:56:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:56:15]Read from MH i2c: E2 [19:56:15]MH_I2C_Read... [19:56:15]Read from MH i2c: E2 03 00 [19:56:15]MH_I2C_Read... [19:56:15]Read from MH i2c: E2 03 00 1C 13 00 90 00 A3 [19:56:15]RAPDU: 90 00 [19:56:15]wFMCommunicate OK [19:56:15]wFMCommunicate request_size=255 [19:56:15]MH_SAM_APDU [19:56:15]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8A 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8A 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 F9 00 00 00 F4 03 04 00 5F 60 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 77 00 00 35 04 06 00 3D B3 7A 6E [19:56:15]Write to MH i2c: E2 02 01 1D 13 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8A 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8A 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 F9 00 00 00 F4 03 04 00 5F 60 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 77 00 00 35 04 06 00 3D B3 7A 6E 00 00 6E [19:56:15]Write i2c OK [19:56:15]MH_I2C_Read... [19:56:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:56:15]Read from MH i2c: E2 [19:56:15]MH_I2C_Read... [19:56:15]Read from MH i2c: E2 03 00 [19:56:15]MH_I2C_Read... [19:56:15]Read from MH i2c: E2 03 00 1D 13 00 90 00 A4 [19:56:15]RAPDU: 90 00 [19:56:15]wFMCommunicate OK [19:56:15]wFMCommunicate request_size=7 [19:56:15]MH_SAM_APDU [19:56:15]CAPDU: 80 0D 02 02 02 9D 40 [19:56:15]Write to MH i2c: E2 0A 00 1E 13 80 0D 02 02 02 00 9D 40 00 00 8C [19:56:16]Write i2c OK [19:56:16]MH_I2C_Read... [19:56:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:56:16]Read from MH i2c: E2 [19:56:16]MH_I2C_Read... [19:56:16]Read from MH i2c: E2 03 00 [19:56:16]MH_I2C_Read... [19:56:16]Read from MH i2c: E2 03 00 1E 13 00 90 00 A5 [19:56:16]RAPDU: 90 00 [19:56:16]wFMCommunicate OK [19:56:16]wFMCommunicate request_size=4 [19:56:16]MH_SAM_APDU [19:56:16]CAPDU: 80 0D 03 02 [19:56:16]Write to MH i2c: E2 08 00 1F 13 80 0D 03 02 00 00 00 00 AD [19:56:16]Write i2c OK [19:56:16]MH_I2C_Read... [19:56:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:56:16]Read from MH i2c: E2 [19:56:16]MH_I2C_Read... [19:56:16]Read from MH i2c: E2 0B 00 [19:56:16]MH_I2C_Read... [19:56:16]Read from MH i2c: E2 0B 00 1F 13 00 E5 2D 2E 93 1A 43 7D CA 90 00 25 [19:56:16]RAPDU: E5 2D 2E 93 1A 43 7D CA 90 00 [19:56:16]wFMCommunicate OK [19:56:16]SAM_PROTO_SignData done [19:56:16]FM_MakeSignedData done [19:56:16]CreateOFDProtocolMessage [19:56:16]wFMCommunicate request_size=4 [19:56:16]MH_SAM_APDU [19:56:16]CAPDU: 80 11 00 00 [19:56:16]Write to MH i2c: E2 08 00 20 13 80 11 00 00 00 00 00 00 AD [19:56:16]Write i2c OK [19:56:16]MH_I2C_Read... [19:56:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:56:16]Read from MH i2c: E2 [19:56:16]MH_I2C_Read... [19:56:16]Read from MH i2c: E2 17 00 [19:56:16]MH_I2C_Read... [19:56:16]Read from MH i2c: E2 17 00 20 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 FB [19:56: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:56:16]wFMCommunicate OK [19:56:16]CreateOFDProtocolMessage done [19:56:16]OFDSenderStorePacket 30467 [19:56:16]StoreOFDPacket docnum=30467 [19:56: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 97 F4 04 01 9D F0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 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 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8A 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8A 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 F9 00 00 00 F4 03 04 00 5F 60 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 77 00 00 35 04 06 00 3D B3 7A 6E 9D 40 E5 2D 2E 93 1A 43 7D CA [19:56:16]CheckFolder [19:56:16]dirname=/storage/ofd_packets [19:56:16]CheckFolder done [19:56:16]ProducePacketName [19:56:16]name=ofd_packets/00030467 [19:56:16]NVStorageSaveData ofd_packets/00030467 [19:56:16]File name is /storage/ofd_packets/00030467 [19:56:16]Write 298 bytes [19:56:16]NVStorageSaveData done [19:56:16]OFDSenderStorePacket done [19:56:16]KKMCreateOFDPacket done [19:56:16]NVStorageSaveData kkm_last_timestamp [19:56:16]File name is /storage/kkm_last_timestamp [19:56:16]Write 4 bytes [19:56:16]NVStorageSaveData done [19:56:16]ExternCall_PrintAddStr [19:56:16]wPrintStart [19:56:16]Write to MH i2c: 01 00 00 21 13 34 [19:56:16]Write i2c OK [19:56:16]MH_I2C_Read... [19:56:16]Read from MH i2c: 01 [19:56:16]MH_I2C_Read... [19:56:16]Read from MH i2c: 01 07 00 [19:56:16]MH_I2C_Read... [19:56:16]Read from MH i2c: 01 07 00 21 13 00 00 00 00 00 FF 0F 49 [19:56:16]RasterBufferAndPrint [19:56:16]line Счет N : (1)342871 [19:56:16]line ИНН: 02508201610067 [19:56:16]line Контрольно-Кассовый Чек [19:56:16]line ПРОДАЖА [19:56:16]line ТРК (МРК, ГНК) : 34 [19:56:16]line Товар: 2710194210 [19:56:16]line ДТ-К-2 [19:56:16]line 10.500 * 76.20 [19:56:16]line = 800.10 [19:56:16]line НДС 12% НСП 1% [19:56:16]line > о реализуемом товаре [19:56:16]line ИТОГО: 800.10 [19:56:16]line НСП 1% : 7.08 [19:56:16]line НДС 12% : 84.97 [19:56:16]line Наличными: 0.00 [19:56:16]line Безнал.: 800.10 [19:56:16]line Место: АЗС № 78 "Партнер Нефть" [19:56:16]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [19:56:16]line СНО: Общий режим [19:56:16]line Чек 249 20.10.2024 19:56 [19:56:16]line Смена: 114 ФФД: 1.0 [19:56:16]line ЗНМ: 0300000137 [19:56:16]line РНМ: 0000000000186857 [19:56:16]line Версия ККМ: v1.0 [19:56:16]line Платежная система: АКБ Кыргызстан [19:56:16]line ФМ: 0000000002094219 [19:56:16]line ФД: 30467 [19:56:16]line ФПД: 67841062509888 [19:56:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T195615&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30467&fm=67841062509888&tin=02508201610067®Number=0000000000186857&sum=80010 [19:56:16]OFD Sender: Processing packet 30467 [packets to send 10, broken 9] [19:56:16]ProducePacketName [19:56:16]name=ofd_packets/00030467 [19:56:16]OFD Sender: To server: pG, [19:56:16]CommunicateWithHost lk.salyk.kg:30040 [19:56:16]ConnectInit lk.salyk.kg [19:56:16]written 0, free lines is 4095 [19:56:16]Connected sock=10 [19:56: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 97 F4 04 01 9D F0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 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 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8A 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8A 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 F9 00 00 00 F4 03 04 00 5F 60 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 77 00 00 35 04 06 00 3D B3 7A 6E 9D 40 E5 2D 2E 93 1A 43 7D CA [19:56: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 0E CD 47 00 79 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 03 77 00 00 F4 03 04 00 E2 0A 15 67 B6 04 01 00 00 95 11 40 5C 84 A9 2A B3 [19:56:16]CommunicateWithHost err = 0 [19:56:16]CheckOFDResponse [19:56:16]1017 (14) - 77093643461234 [19:56:16]1041 (16) - 0000000002094219 [19:56:16]1040 (4) - 30467 [19:56:16]1012 (4) - 20.10.2024 13:51 [19:56:16]1206 (1) - 0 [19:56:16]OFD Sender: Remove packet 30467 [19:56:16]ProducePacketName [19:56:16]name=ofd_packets/00030467 [19:56:16]NVStorageDeleteData [19:56:16]Write to MH i2c: 01 00 00 4B 13 5E [19:56:16]Write i2c OK [19:56:16]MH_I2C_Read... [19:56:16]Read from MH i2c: 01 [19:56:16]MH_I2C_Read... [19:56:16]Read from MH i2c: 01 07 00 [19:56:16]MH_I2C_Read... [19:56:16]Read from MH i2c: 01 07 00 4B 13 00 00 00 00 00 FB 0C 6C [19:56:16]RasterBufferAndPrint [19:56:16]line [19:56:16]line [19:56:16]line [19:56:16]line [19:56:16]line [19:56:16]written 0, free lines is 3329 [19:56:16]MH_Cut [19:56:16]Write to MH i2c: D1 01 00 52 13 01 37 [19:56:16]Write i2c OK [19:56:16]MH_I2C_Read... [19:56:16]Read from MH i2c: D1 [19:56:16]MH_I2C_Read... [19:56:16]Read from MH i2c: D1 01 00 [19:56:16]MH_I2C_Read... [19:56:16]Read from MH i2c: D1 01 00 52 13 00 36 [19:56:16]Write to MH i2c: 01 00 00 53 13 66 [19:56:16]Write i2c OK [19:56:16]MH_I2C_Read... [19:56:17]OFD Sender: No OFD packet to send [19:56:17]*** Cut start [19:56:17]*** Partial cut [19:56:17]*** CUTSNS_PIN = 1 [19:56:17]*** CUTSNS_PIN = 0 [19:56:17]*** Brake cut motor [19:56:18]Read from MH i2c: 01 [19:56:18]MH_I2C_Read... [19:56:18]*** Stop cut motor [19:56:18]*** Cut end [19:56:18]Read from MH i2c: 01 07 00 [19:56:18]MH_I2C_Read... [19:56:18]Read from MH i2c: 01 07 00 53 13 00 00 00 00 00 FF 0F 7B [19:56:18]process_action close_receipt done [19:56:18]requested_data is exist [19:56:18]produce_requested_data [19:56:18]requested_item fm.sn is exist - process it [19:56:18]wFMCommunicate request_size=4 [19:56:18]MH_SAM_APDU [19:56:18]CAPDU: 80 11 00 00 [19:56:18]Write to MH i2c: E2 08 00 54 13 80 11 00 00 00 00 00 00 E1 [19:56:18]Write i2c OK [19:56:18]MH_I2C_Read... [19:56:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:56:18]Read from MH i2c: E2 [19:56:18]MH_I2C_Read... [19:56:18]Read from MH i2c: E2 17 00 [19:56:18]MH_I2C_Read... [19:56:18]Read from MH i2c: E2 17 00 54 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 2F [19: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 [19:56:18]wFMCommunicate OK [19:56:18]requested_item fd.num is exist - process it [19:56:18]SAM_PROTO_GetFieldsCounters [19:56:18]wFMCommunicate request_size=4 [19:56:18]MH_SAM_APDU [19:56:18]CAPDU: 80 13 00 00 [19:56:18]Write to MH i2c: E2 08 00 55 13 80 13 00 00 00 00 00 00 E4 [19:56:18]Write i2c OK [19:56:18]MH_I2C_Read... [19:56:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:56:18]Read from MH i2c: E2 [19:56:18]MH_I2C_Read... [19:56:18]Read from MH i2c: E2 62 00 [19:56:18]MH_I2C_Read... [19:56:18]Read from MH i2c: E2 62 00 55 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 77 00 00 0E 04 04 00 72 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 E1 [19:56: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 03 77 00 00 0E 04 04 00 72 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 [19:56:18]wFMCommunicate OK [19:56:18]SAM_PROTO_GetFieldsCounters done [19:56:18]requested_item shift.num is exist - process it [19:56:18]requested_item shift.opened is exist - process it [19:56:18]req_shift_opened [19:56:18]FM_GetShiftState [19:56:18]SAM_PROTO_GetShiftState [19:56:18]wFMCommunicate request_size=4 [19:56:18]MH_SAM_APDU [19:56:18]CAPDU: 80 13 01 00 [19:56:18]Write to MH i2c: E2 08 00 56 13 80 13 01 00 00 00 00 00 E6 [19:56:18]Write i2c OK [19:56:18]MH_I2C_Read... [19:56:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:56:18]Read from MH i2c: E2 [19:56:18]MH_I2C_Read... [19:56:18]Read from MH i2c: E2 0E 00 [19:56:18]MH_I2C_Read... [19:56:18]Read from MH i2c: E2 0E 00 56 13 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 CC [19:56:18]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [19:56:18]wFMCommunicate OK [19:56:18]SAM_PROTO_GetShiftState done [19:56:18]FM_GetShiftState done [19:56:18]req_shift_opened done [19:56:18]requested_item shift.open_date is exist - process it [19:56:18]req_shift_open_date [19:56:18]req_shift_open_date done [19:56:18]produce_requested_data done [19:56:18]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30467,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [19:56:18]process_action_free close_receipt [19:56:18]json_value_free [19:56:18]json_value_free done [19:56:18]process_json_proto returns [19:56:18]Send response to host [19:56:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30467,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [19:56:18]free response buf [19:56:18]execute_script done [19:56:18]execute_script returns [19:56:18]free content buf [19:56:18]Sock 7.Close socket [19:56:18]Sock 7.Thread stoped [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:18]accept exits with 9 [19:57:18]New connection [19:57:18]New thread 3067489636 created [19:57:18]Thread 3067346276 joined [19:57:18]Waiting for new connection... [19:57:18] Sock 9.Parse request [19:57:18]Sock 9.Check first char [19:57:18]Sock 9.First char is OK [19:57:18]request: POST /json_proto HTTP/1.0 [19:57:18]Method: POST [19:57:18]URL: /json_proto [19:57:18]Method is POST - this is cgi request [19:57:18]url: /json_proto [19:57:18]query_string will be loaded in cgi processing [19:57:18]execute_cgi json_proto POST (null) [19:57:18]execute_cgi path=json_proto method=POST [19:57:18]POST find Content-Length [19:57:18]Host: 172.17.51.3:8080 [19:57:18]Content-Length: 677 [19:57:18]Content-Type: application/json [19:57:18] [19:57:18]POST finish read [19:57:18]Found Content-Length = 677 [19:57:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342872", "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" ] } } [19:57:18]execute_script... [19:57: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)342872", "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" ] } } [19:57:18]POST & json_proto [19:57:18]process_json_proto [19:57:18]json parsed OK: [19:57:18]protocol is kg_v1.0 [19:57:18]action value=close_receipt [19:57:18]process_action close_receipt [19:57:18]cmd_close_receipt [19:57:18]MH_GetDate [19:57:18]Write to MH i2c: F0 00 00 57 13 59 [19:57:18]Write i2c OK [19:57:18]MH_I2C_Read... [19:57:18]Read from MH i2c: F0 [19:57:18]MH_I2C_Read... [19:57:18]Read from MH i2c: F0 09 00 [19:57:18]MH_I2C_Read... [19:57:18]Read from MH i2c: F0 09 00 57 13 00 9E 60 15 67 04 C1 95 66 9C [19:57:18]GetLastDocTimeStamp 1729454175 [19:57:18]current date 1729454238 [19:57:18]FM_GetShiftState [19:57:18]SAM_PROTO_GetShiftState [19:57:18]wFMCommunicate request_size=4 [19:57:18]MH_SAM_APDU [19:57:18]CAPDU: 80 13 01 00 [19:57:18]Write to MH i2c: E2 08 00 58 13 80 13 01 00 00 00 00 00 E8 [19:57:18]Write i2c OK [19:57:18]MH_I2C_Read... [19:57:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:57:18]Read from MH i2c: E2 [19:57:18]MH_I2C_Read... [19:57:18]Read from MH i2c: E2 0E 00 [19:57:18]MH_I2C_Read... [19:57:18]Read from MH i2c: E2 0E 00 58 13 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 CE [19:57:18]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [19:57:18]wFMCommunicate OK [19:57:18]SAM_PROTO_GetShiftState done [19:57:18]FM_GetShiftState done [19:57:18]opened in 1729384718 [19:57:18]opened+sec_in_day 1729471118 [19:57:18]quantity*price = 20003 [19:57:18]sum+1 = 20004 [19:57:18]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 СНО: Общий режим Чек 250 20.10.2024 19:57 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30468 ФПД: 215811568244074 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T195718&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30468&fm=215811568244074&tin=02508201610067®Number=0000000000186857&sum=20000 [19:57:19]StoreToDocumentArchive [19:57:19]shift 114 fd 30468 [19:57:19]save to /storage/0114/doc_00030468 [19:57:19]save last doc name /storage/0114/doc_00030468 to /storage/kkm_last_doc_name [19:57:19]save OK [19:57:19]Clear old archive folders... [19:57:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:57:19]tlvbuf is B6F5D970 [19:57:19]SAM_PROTO_ClearQueue [19:57:19]wFMCommunicate request_size=4 [19:57:19]MH_SAM_APDU [19:57:19]CAPDU: 80 09 00 00 [19:57:19]Write to MH i2c: E2 08 00 65 13 80 09 00 00 00 00 00 00 EA [19:57:19]Write i2c OK [19:57:19]MH_I2C_Read... [19:57:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:57:19]Read from MH i2c: E2 [19:57:19]MH_I2C_Read... [19:57:19]Read from MH i2c: E2 03 00 [19:57:19]MH_I2C_Read... [19:57:19]Read from MH i2c: E2 03 00 65 13 00 90 00 EC [19:57:19]RAPDU: 90 00 [19:57:19]wFMCommunicate OK [19:57:19]SAM_PROTO_ClearQueue done [19:57:19]KKMCreateOFDPacket [19:57:19]OFDProtocolAddRootSTLVToBuf [19:57:19]FM_MakeSignedData [19:57:19]FM_MakeSignedData [19:57:19]SAM_PROTO_SignData [19:57:19]wFMCommunicate request_size=4 [19:57:19]MH_SAM_APDU [19:57:19]CAPDU: 80 0D 01 02 [19:57:19]Write to MH i2c: E2 08 00 66 13 80 0D 01 02 00 00 00 00 F2 [19:57:19]Write i2c OK [19:57:19]MH_I2C_Read... [19:57:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:57:19]Read from MH i2c: E2 [19:57:19]MH_I2C_Read... [19:57:19]Read from MH i2c: E2 03 00 [19:57:19]MH_I2C_Read... [19:57:19]Read from MH i2c: E2 03 00 66 13 00 90 00 ED [19:57:19]RAPDU: 90 00 [19:57:19]wFMCommunicate OK [19:57:19]wFMCommunicate request_size=255 [19:57:19]MH_SAM_APDU [19:57:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 FA 00 00 00 F4 03 04 00 9E 60 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 77 00 00 35 04 06 00 C4 [19:57:19]Write to MH i2c: E2 02 01 67 13 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 FA 00 00 00 F4 03 04 00 9E 60 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 77 00 00 35 04 06 00 C4 00 00 6A [19:57:19]Write i2c OK [19:57:19]MH_I2C_Read... [19:57:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:57:19]Read from MH i2c: E2 [19:57:19]MH_I2C_Read... [19:57:19]Read from MH i2c: E2 03 00 [19:57:19]MH_I2C_Read... [19:57:19]Read from MH i2c: E2 03 00 67 13 00 90 00 EE [19:57:19]RAPDU: 90 00 [19:57:19]wFMCommunicate OK [19:57:19]wFMCommunicate request_size=10 [19:57:19]MH_SAM_APDU [19:57:19]CAPDU: 80 0D 02 02 05 47 8B DD 15 6A [19:57:19]Write to MH i2c: E2 0D 00 68 13 80 0D 02 02 05 00 47 8B DD 15 6A 00 00 2D [19:57:19]Write i2c OK [19:57:19]MH_I2C_Read... [19:57:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:57:19]Read from MH i2c: E2 [19:57:19]MH_I2C_Read... [19:57:19]Read from MH i2c: E2 03 00 [19:57:19]MH_I2C_Read... [19:57:19]Read from MH i2c: E2 03 00 68 13 00 90 00 EF [19:57:19]RAPDU: 90 00 [19:57:19]wFMCommunicate OK [19:57:19]wFMCommunicate request_size=4 [19:57:19]MH_SAM_APDU [19:57:19]CAPDU: 80 0D 03 02 [19:57:19]Write to MH i2c: E2 08 00 69 13 80 0D 03 02 00 00 00 00 F7 [19:57:19]Write i2c OK [19:57:19]MH_I2C_Read... [19:57:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:57:19]Read from MH i2c: E2 [19:57:19]MH_I2C_Read... [19:57:19]Read from MH i2c: E2 0B 00 [19:57:19]MH_I2C_Read... [19:57:19]Read from MH i2c: E2 0B 00 69 13 00 3D 4C 8A BA E8 0C BE FA 90 00 71 [19:57:19]RAPDU: 3D 4C 8A BA E8 0C BE FA 90 00 [19:57:19]wFMCommunicate OK [19:57:19]SAM_PROTO_SignData done [19:57:19]FM_MakeSignedData done [19:57:19]CreateOFDProtocolMessage [19:57:19]wFMCommunicate request_size=4 [19:57:19]MH_SAM_APDU [19:57:19]CAPDU: 80 11 00 00 [19:57:19]Write to MH i2c: E2 08 00 6A 13 80 11 00 00 00 00 00 00 F7 [19:57:19]Write i2c OK [19:57:19]MH_I2C_Read... [19:57:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:57:19]Read from MH i2c: E2 [19:57:19]MH_I2C_Read... [19:57:19]Read from MH i2c: E2 17 00 [19:57:19]MH_I2C_Read... [19:57:19]Read from MH i2c: E2 17 00 6A 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 45 [19:57:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [19:57:19]wFMCommunicate OK [19:57:19]CreateOFDProtocolMessage done [19:57:19]OFDSenderStorePacket 30468 [19:57:19]StoreOFDPacket docnum=30468 [19:57: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 E9 8A 07 01 CE 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 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 FA 00 00 00 F4 03 04 00 9E 60 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 77 00 00 35 04 06 00 C4 47 8B DD 15 6A 3D 4C 8A BA E8 0C BE FA [19:57:19]CheckFolder [19:57:19]dirname=/storage/ofd_packets [19:57:19]CheckFolder done [19:57:19]ProducePacketName [19:57:19]name=ofd_packets/00030468 [19:57:19]NVStorageSaveData ofd_packets/00030468 [19:57:19]File name is /storage/ofd_packets/00030468 [19:57:19]Write 301 bytes [19:57:19]NVStorageSaveData done [19:57:19]OFDSenderStorePacket done [19:57:19]KKMCreateOFDPacket done [19:57:19]NVStorageSaveData kkm_last_timestamp [19:57:19]File name is /storage/kkm_last_timestamp [19:57:19]Write 4 bytes [19:57:19]NVStorageSaveData done [19:57:19]ExternCall_PrintAddStr [19:57:19]wPrintStart [19:57:19]Write to MH i2c: 01 00 00 6B 13 7E [19:57:19]Write i2c OK [19:57:19]MH_I2C_Read... [19:57:19]Read from MH i2c: 01 [19:57:19]MH_I2C_Read... [19:57:19]Read from MH i2c: 01 07 00 [19:57:19]MH_I2C_Read... [19:57:19]Read from MH i2c: 01 07 00 6B 13 00 00 00 00 00 FF 0F 93 [19:57:19]RasterBufferAndPrint [19:57:19]line Счет N : (1)342872 [19:57:19]line ИНН: 02508201610067 [19:57:19]line Контрольно-Кассовый Чек [19:57:19]line ПРОДАЖА [19:57:19]line ТРК (МРК, ГНК) : 33 [19:57:19]line Товар: 2710124130 [19:57:19]line Аи-92-К-2 [19:57:19]line 2.990 * 66.90 [19:57:19]line = 200.03 [19:57:19]line НДС 12% НСП 1% [19:57:19]line > о реализуемом товаре [19:57:19]line ОКРУГЛЕНИЕ: -0.03 [19:57:19]line ИТОГО: 200.00 [19:57:19]line Внесено: 200.00 [19:57:19]line СДАЧА: 0.00 [19:57:19]line НСП 1% : 1.77 [19:57:19]line НДС 12% : 21.24 [19:57:19]line Наличными: 200.00 [19:57:19]line Безнал.: 0.00 [19:57:19]line Место: АЗС № 78 "Партнер Нефть" [19:57:19]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [19:57:19]line СНО: Общий режим [19:57:19]line Чек 250 20.10.2024 19:57 [19:57:19]line Смена: 114 ФФД: 1.0 [19:57:19]line ЗНМ: 0300000137 [19:57:19]line РНМ: 0000000000186857 [19:57:19]line Версия ККМ: v1.0 [19:57:19]line ФМ: 0000000002094219 [19:57:19]line ФД: 30468 [19:57:19]line ФПД: 215811568244074 [19:57:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T195718&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30468&fm=215811568244074&tin=02508201610067®Number=0000000000186857&sum=20000 [19:57:20]OFD Sender: Processing packet 30468 [packets to send 10, broken 9] [19:57:20]ProducePacketName [19:57:20]name=ofd_packets/00030468 [19:57:20]OFD Sender: To server: pG, [19:57:20]CommunicateWithHost lk.salyk.kg:30040 [19:57:20]ConnectInit lk.salyk.kg [19:57:20]written 0, free lines is 4095 [19:57:20]Connected sock=10 [19:57: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 E9 8A 07 01 CE 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 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 FA 00 00 00 F4 03 04 00 9E 60 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 77 00 00 35 04 06 00 C4 47 8B DD 15 6A 3D 4C 8A BA E8 0C BE FA [19:57: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 96 CF 47 00 58 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 04 77 00 00 F4 03 04 00 21 0B 15 67 B6 04 01 00 00 F5 6C 94 FF 3F E5 ED 6D [19:57:20]CommunicateWithHost err = 0 [19:57:20]CheckOFDResponse [19:57:20]1017 (14) - 77093643461234 [19:57:20]1041 (16) - 0000000002094219 [19:57:20]1040 (4) - 30468 [19:57:20]1012 (4) - 20.10.2024 13:52 [19:57:20]1206 (1) - 0 [19:57:20]OFD Sender: Remove packet 30468 [19:57:20]ProducePacketName [19:57:20]name=ofd_packets/00030468 [19:57:20]NVStorageDeleteData [19:57:20]Write to MH i2c: 01 00 00 96 13 A9 [19:57:20]Write i2c OK [19:57:20]MH_I2C_Read... [19:57:20]Read from MH i2c: 01 [19:57:20]MH_I2C_Read... [19:57:20]Read from MH i2c: 01 07 00 [19:57:20]MH_I2C_Read... [19:57:20]Read from MH i2c: 01 07 00 96 13 00 00 00 00 00 F2 0C AE [19:57:20]RasterBufferAndPrint [19:57:20]line [19:57:20]line [19:57:20]line [19:57:20]line [19:57:20]line [19:57:20]written 0, free lines is 3320 [19:57:20]MH_Cut [19:57:20]Write to MH i2c: D1 01 00 9D 13 01 82 [19:57:20]Write i2c OK [19:57:20]MH_I2C_Read... [19:57:20]Read from MH i2c: D1 [19:57:20]MH_I2C_Read... [19:57:20]Read from MH i2c: D1 01 00 [19:57:20]MH_I2C_Read... [19:57:20]Read from MH i2c: D1 01 00 9D 13 00 81 [19:57:20]Write to MH i2c: 01 00 00 9E 13 B1 [19:57:20]Write i2c OK [19:57:20]MH_I2C_Read... [19:57:20]OFD Sender: No OFD packet to send [19:57:21]*** Cut start [19:57:21]*** Partial cut [19:57:21]*** CUTSNS_PIN = 1 [19:57:21]*** CUTSNS_PIN = 0 [19:57:21]*** Brake cut motor [19:57:21]Read from MH i2c: 01 [19:57:21]MH_I2C_Read... [19:57:21]*** Stop cut motor [19:57:21]*** Cut end [19:57:21]Read from MH i2c: 01 07 00 [19:57:21]MH_I2C_Read... [19:57:21]Read from MH i2c: 01 07 00 9E 13 00 00 00 00 00 FF 0F C6 [19:57:21]process_action close_receipt done [19:57:21]requested_data is exist [19:57:21]produce_requested_data [19:57:21]requested_item fm.sn is exist - process it [19:57:21]wFMCommunicate request_size=4 [19:57:21]MH_SAM_APDU [19:57:21]CAPDU: 80 11 00 00 [19:57:21]Write to MH i2c: E2 08 00 9F 13 80 11 00 00 00 00 00 00 2C [19:57:21]Write i2c OK [19:57:21]MH_I2C_Read... [19:57:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:57:21]Read from MH i2c: E2 [19:57:21]MH_I2C_Read... [19:57:21]Read from MH i2c: E2 17 00 [19:57:21]MH_I2C_Read... [19:57:21]Read from MH i2c: E2 17 00 9F 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 7A [19:57:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [19:57:21]wFMCommunicate OK [19:57:21]requested_item fd.num is exist - process it [19:57:21]SAM_PROTO_GetFieldsCounters [19:57:21]wFMCommunicate request_size=4 [19:57:21]MH_SAM_APDU [19:57:21]CAPDU: 80 13 00 00 [19:57:21]Write to MH i2c: E2 08 00 A0 13 80 13 00 00 00 00 00 00 2F [19:57:21]Write i2c OK [19:57:21]MH_I2C_Read... [19:57:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:57:22]Read from MH i2c: E2 [19:57:22]MH_I2C_Read... [19:57:22]Read from MH i2c: E2 62 00 [19:57:22]MH_I2C_Read... [19:57:22]Read from MH i2c: E2 62 00 A0 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 77 00 00 0E 04 04 00 72 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 30 [19:57: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 04 77 00 00 0E 04 04 00 72 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 [19:57:22]wFMCommunicate OK [19:57:22]SAM_PROTO_GetFieldsCounters done [19:57:22]requested_item shift.num is exist - process it [19:57:22]requested_item shift.opened is exist - process it [19:57:22]req_shift_opened [19:57:22]FM_GetShiftState [19:57:22]SAM_PROTO_GetShiftState [19:57:22]wFMCommunicate request_size=4 [19:57:22]MH_SAM_APDU [19:57:22]CAPDU: 80 13 01 00 [19:57:22]Write to MH i2c: E2 08 00 A1 13 80 13 01 00 00 00 00 00 31 [19:57:22]Write i2c OK [19:57:22]MH_I2C_Read... [19:57:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:57:22]Read from MH i2c: E2 [19:57:22]MH_I2C_Read... [19:57:22]Read from MH i2c: E2 0E 00 [19:57:22]MH_I2C_Read... [19:57:22]Read from MH i2c: E2 0E 00 A1 13 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 17 [19:57:22]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [19:57:22]wFMCommunicate OK [19:57:22]SAM_PROTO_GetShiftState done [19:57:22]FM_GetShiftState done [19:57:22]req_shift_opened done [19:57:22]requested_item shift.open_date is exist - process it [19:57:22]req_shift_open_date [19:57:22]req_shift_open_date done [19:57:22]produce_requested_data done [19:57:22]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30468,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [19:57:22]process_action_free close_receipt [19:57:22]json_value_free [19:57:22]json_value_free done [19:57:22]process_json_proto returns [19:57:22]Send response to host [19:57:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30468,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [19:57:22]free response buf [19:57:22]execute_script done [19:57:22]execute_script returns [19:57:22]free content buf [19:57:22]Sock 9.Close socket [19:57:22]Sock 9.Thread stoped [19:57:25]OFD Sender: No OFD packet to send [19:57:30]OFD Sender: No OFD packet to send [19:57:35]OFD Sender: No OFD packet to send [19:57:40]OFD Sender: No OFD packet to send [19:57:45]OFD Sender: No OFD packet to send [19:57:50]OFD Sender: No OFD packet to send [19:57:55]OFD Sender: No OFD packet to send [19:58:00]OFD Sender: No OFD packet to send [19:58:05]OFD Sender: No OFD packet to send [19:58:10]OFD Sender: No OFD packet to send [19:58:15]OFD Sender: No OFD packet to send [19:58:20]OFD Sender: No OFD packet to send [19:58:25]OFD Sender: No OFD packet to send [19:58:30]OFD Sender: No OFD packet to send [19:58:35]OFD Sender: No OFD packet to send [19:58:40]OFD Sender: No OFD packet to send [19:58:46]OFD Sender: No OFD packet to send [19:58:51]OFD Sender: No OFD packet to send [19:58:56]OFD Sender: No OFD packet to send [19:59:01]OFD Sender: No OFD packet to send [19:59:06]OFD Sender: No OFD packet to send [19:59:11]OFD Sender: No OFD packet to send [19:59:16]OFD Sender: No OFD packet to send [19:59:21]OFD Sender: No OFD packet to send [19:59:26]OFD Sender: No OFD packet to send [19:59:31]OFD Sender: No OFD packet to send [19:59:36]OFD Sender: No OFD packet to send [19:59:41]OFD Sender: No OFD packet to send [19:59:46]OFD Sender: No OFD packet to send [19:59:51]OFD Sender: No OFD packet to send [19:59:56]OFD Sender: No OFD packet to send [20:00:01]OFD Sender: No OFD packet to send [20:00:06]OFD Sender: No OFD packet to send [20:00:11]OFD Sender: No OFD packet to send [20:00:16]OFD Sender: No OFD packet to send [20:00:21]OFD Sender: No OFD packet to send [20:00:26]OFD Sender: No OFD packet to send [20:00:31]OFD Sender: No OFD packet to send [20:00:36]OFD Sender: No OFD packet to send [20:00:41]OFD Sender: No OFD packet to send [20:00:46]OFD Sender: No OFD packet to send [20:00:51]OFD Sender: No OFD packet to send [20:00:56]OFD Sender: No OFD packet to send [20:01:01]OFD Sender: No OFD packet to send [20:01:06]OFD Sender: No OFD packet to send [20:01:11]OFD Sender: No OFD packet to send [20:01:16]OFD Sender: No OFD packet to send [20:01:21]OFD Sender: No OFD packet to send [20:01:24]accept exits with 7 [20:01:24]New connection [20:01:24]New thread 3067346276 created [20:01:24]Thread 3067489636 joined [20:01:24]Waiting for new connection... [20:01:24] Sock 7.Parse request [20:01:24]Sock 7.Check first char [20:01:24]Sock 7.First char is OK [20:01:24]request: POST /json_proto HTTP/1.0 [20:01:24]Method: POST [20:01:24]URL: /json_proto [20:01:24]Method is POST - this is cgi request [20:01:24]url: /json_proto [20:01:24]query_string will be loaded in cgi processing [20:01:24]execute_cgi json_proto POST (null) [20:01:24]execute_cgi path=json_proto method=POST [20:01:24]POST find Content-Length [20:01:24]Host: 172.17.51.3:8080 [20:01:24]Content-Length: 688 [20:01:24]Content-Type: application/json [20:01:24] [20:01:24]POST finish read [20:01:24]Found Content-Length = 688 [20:01:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342873", "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" ] } } [20:01:24]execute_script... [20:01: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)342873", "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" ] } } [20:01:24]POST & json_proto [20:01:24]process_json_proto [20:01:24]json parsed OK: [20:01:24]protocol is kg_v1.0 [20:01:24]action value=close_receipt [20:01:24]process_action close_receipt [20:01:24]cmd_close_receipt [20:01:24]MH_GetDate [20:01:24]Write to MH i2c: F0 00 00 A2 13 A4 [20:01:24]Write i2c OK [20:01:24]MH_I2C_Read... [20:01:24]Read from MH i2c: F0 [20:01:24]MH_I2C_Read... [20:01:24]Read from MH i2c: F0 09 00 [20:01:24]MH_I2C_Read... [20:01:24]Read from MH i2c: F0 09 00 A2 13 00 95 61 15 67 04 C1 95 66 DF [20:01:24]GetLastDocTimeStamp 1729454238 [20:01:24]current date 1729454485 [20:01:24]FM_GetShiftState [20:01:24]SAM_PROTO_GetShiftState [20:01:24]wFMCommunicate request_size=4 [20:01:24]MH_SAM_APDU [20:01:24]CAPDU: 80 13 01 00 [20:01:24]Write to MH i2c: E2 08 00 A3 13 80 13 01 00 00 00 00 00 33 [20:01:24]Write i2c OK [20:01:24]MH_I2C_Read... [20:01:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:01:24]Read from MH i2c: E2 [20:01:24]MH_I2C_Read... [20:01:24]Read from MH i2c: E2 0E 00 [20:01:24]MH_I2C_Read... [20:01:24]Read from MH i2c: E2 0E 00 A3 13 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 19 [20:01:24]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [20:01:24]wFMCommunicate OK [20:01:24]SAM_PROTO_GetShiftState done [20:01:24]FM_GetShiftState done [20:01:24]opened in 1729384718 [20:01:24]opened+sec_in_day 1729471118 [20:01:24]quantity*price = 200025 [20:01:24]sum+1 = 200026 [20:01:24]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 СНО: Общий режим Чек 251 20.10.2024 20:01 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30469 ФПД: 86379252084633 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T200125&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30469&fm=86379252084633&tin=02508201610067®Number=0000000000186857&sum=200000 [20:01:25]StoreToDocumentArchive [20:01:25]shift 114 fd 30469 [20:01:25]save to /storage/0114/doc_00030469 [20:01:26]save last doc name /storage/0114/doc_00030469 to /storage/kkm_last_doc_name [20:01:26]save OK [20:01:26]Clear old archive folders... [20:01:26]ProcessDocumentItem done err = 0, tmpTLVsize=257 [20:01:26]tlvbuf is B6F5D760 [20:01:26]SAM_PROTO_ClearQueue [20:01:26]wFMCommunicate request_size=4 [20:01:26]MH_SAM_APDU [20:01:26]CAPDU: 80 09 00 00 [20:01:26]Write to MH i2c: E2 08 00 B0 13 80 09 00 00 00 00 00 00 35 [20:01:26]Write i2c OK [20:01:26]MH_I2C_Read... [20:01:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:01:26]Read from MH i2c: E2 [20:01:26]MH_I2C_Read... [20:01:26]Read from MH i2c: E2 03 00 [20:01:26]MH_I2C_Read... [20:01:26]Read from MH i2c: E2 03 00 B0 13 00 90 00 37 [20:01:26]RAPDU: 90 00 [20:01:26]wFMCommunicate OK [20:01:26]SAM_PROTO_ClearQueue done [20:01:26]KKMCreateOFDPacket [20:01:26]OFDProtocolAddRootSTLVToBuf [20:01:26]FM_MakeSignedData [20:01:26]FM_MakeSignedData [20:01:26]SAM_PROTO_SignData [20:01:26]wFMCommunicate request_size=4 [20:01:26]MH_SAM_APDU [20:01:26]CAPDU: 80 0D 01 02 [20:01:26]Write to MH i2c: E2 08 00 B1 13 80 0D 01 02 00 00 00 00 3D [20:01:26]Write i2c OK [20:01:26]MH_I2C_Read... [20:01:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:01:26]Read from MH i2c: E2 [20:01:26]MH_I2C_Read... [20:01:26]Read from MH i2c: E2 03 00 [20:01:26]MH_I2C_Read... [20:01:26]Read from MH i2c: E2 03 00 B1 13 00 90 00 38 [20:01:26]RAPDU: 90 00 [20:01:26]wFMCommunicate OK [20:01:26]wFMCommunicate request_size=255 [20:01:26]MH_SAM_APDU [20:01:26]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 FB 00 00 00 F4 03 04 00 95 61 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 77 00 [20:01:26]Write to MH i2c: E2 02 01 B2 13 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 FB 00 00 00 F4 03 04 00 95 61 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 77 00 00 00 36 [20:01:26]Write i2c OK [20:01:26]MH_I2C_Read... [20:01:26]OFD Sender: No OFD packet to send [20:01:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:01:26]Read from MH i2c: E2 [20:01:26]MH_I2C_Read... [20:01:26]Read from MH i2c: E2 03 00 [20:01:26]MH_I2C_Read... [20:01:26]Read from MH i2c: E2 03 00 B2 13 00 90 00 39 [20:01:26]RAPDU: 90 00 [20:01:26]wFMCommunicate OK [20:01:26]wFMCommunicate request_size=16 [20:01:26]MH_SAM_APDU [20:01:26]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 4E 8F BC A2 EF 99 [20:01:26]Write to MH i2c: E2 13 00 B3 13 80 0D 02 02 0B 00 00 35 04 06 00 4E 8F BC A2 EF 99 00 00 58 [20:01:26]Write i2c OK [20:01:26]MH_I2C_Read... [20:01:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:01:26]Read from MH i2c: E2 [20:01:26]MH_I2C_Read... [20:01:26]Read from MH i2c: E2 03 00 [20:01:26]MH_I2C_Read... [20:01:26]Read from MH i2c: E2 03 00 B3 13 00 90 00 3A [20:01:26]RAPDU: 90 00 [20:01:26]wFMCommunicate OK [20:01:26]wFMCommunicate request_size=4 [20:01:26]MH_SAM_APDU [20:01:26]CAPDU: 80 0D 03 02 [20:01:26]Write to MH i2c: E2 08 00 B4 13 80 0D 03 02 00 00 00 00 42 [20:01:26]Write i2c OK [20:01:26]MH_I2C_Read... [20:01:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:01:26]Read from MH i2c: E2 [20:01:26]MH_I2C_Read... [20:01:26]Read from MH i2c: E2 0B 00 [20:01:26]MH_I2C_Read... [20:01:26]Read from MH i2c: E2 0B 00 B4 13 00 E0 66 0A B6 13 A9 37 04 90 00 40 [20:01:26]RAPDU: E0 66 0A B6 13 A9 37 04 90 00 [20:01:26]wFMCommunicate OK [20:01:26]SAM_PROTO_SignData done [20:01:26]FM_MakeSignedData done [20:01:26]CreateOFDProtocolMessage [20:01:26]wFMCommunicate request_size=4 [20:01:26]MH_SAM_APDU [20:01:26]CAPDU: 80 11 00 00 [20:01:26]Write to MH i2c: E2 08 00 B5 13 80 11 00 00 00 00 00 00 42 [20:01:26]Write i2c OK [20:01:26]MH_I2C_Read... [20:01:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:01:26]Read from MH i2c: E2 [20:01:26]MH_I2C_Read... [20:01:26]Read from MH i2c: E2 17 00 [20:01:26]MH_I2C_Read... [20:01:26]Read from MH i2c: E2 17 00 B5 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 90 [20:01: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:01:26]wFMCommunicate OK [20:01:26]CreateOFDProtocolMessage done [20:01:26]OFDSenderStorePacket 30469 [20:01:26]StoreOFDPacket docnum=30469 [20:01: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 DD 5E 0D 01 36 C2 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 FB 00 00 00 F4 03 04 00 95 61 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 77 00 00 35 04 06 00 4E 8F BC A2 EF 99 E0 66 0A B6 13 A9 37 04 [20:01:26]CheckFolder [20:01:26]dirname=/storage/ofd_packets [20:01:26]CheckFolder done [20:01:26]ProducePacketName [20:01:26]name=ofd_packets/00030469 [20:01:26]NVStorageSaveData ofd_packets/00030469 [20:01:26]File name is /storage/ofd_packets/00030469 [20:01:26]Write 307 bytes [20:01:26]NVStorageSaveData done [20:01:26]OFDSenderStorePacket done [20:01:26]KKMCreateOFDPacket done [20:01:26]NVStorageSaveData kkm_last_timestamp [20:01:26]File name is /storage/kkm_last_timestamp [20:01:26]Write 4 bytes [20:01:26]NVStorageSaveData done [20:01:26]ExternCall_PrintAddStr [20:01:26]wPrintStart [20:01:26]Write to MH i2c: 01 00 00 B6 13 C9 [20:01:26]Write i2c OK [20:01:26]MH_I2C_Read... [20:01:26]Read from MH i2c: 01 [20:01:26]MH_I2C_Read... [20:01:26]Read from MH i2c: 01 07 00 [20:01:26]MH_I2C_Read... [20:01:26]Read from MH i2c: 01 07 00 B6 13 00 00 00 00 00 FF 0F DE [20:01:26]RasterBufferAndPrint [20:01:26]line Счет N : (1)342873 [20:01:26]line ИНН: 02508201610067 [20:01:26]line Контрольно-Кассовый Чек [20:01:26]line ПРОДАЖА [20:01:26]line ТРК (МРК, ГНК) : 61 [20:01:26]line Товар: 2710194210 [20:01:26]line D-ENERGY Дт-К-2 [20:01:26]line 25.910 * 77.20 [20:01:26]line = 2000.25 [20:01:26]line НДС 12% НСП 1% [20:01:26]line > о реализуемом товаре [20:01:26]line ОКРУГЛЕНИЕ: -0.25 [20:01:26]line ИТОГО: 2000.00 [20:01:26]line Внесено: 2000.00 [20:01:26]line СДАЧА: 0.00 [20:01:26]line НСП 1% : 17.70 [20:01:26]line НДС 12% : 212.42 [20:01:26]line Наличными: 2000.00 [20:01:26]line Безнал.: 0.00 [20:01:26]line Место: АЗС № 78 "Партнер Нефть" [20:01:26]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [20:01:26]line СНО: Общий режим [20:01:26]line Чек 251 20.10.2024 20:01 [20:01:26]line Смена: 114 ФФД: 1.0 [20:01:26]line ЗНМ: 0300000137 [20:01:26]line РНМ: 0000000000186857 [20:01:26]line Версия ККМ: v1.0 [20:01:26]line ФМ: 0000000002094219 [20:01:26]line ФД: 30469 [20:01:26]line ФПД: 86379252084633 [20:01:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T200125&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30469&fm=86379252084633&tin=02508201610067®Number=0000000000186857&sum=200000 [20:01:26]OFD Sender: Processing packet 30469 [packets to send 10, broken 9] [20:01:26]ProducePacketName [20:01:26]name=ofd_packets/00030469 [20:01:26]OFD Sender: To server: pG, [20:01:26]CommunicateWithHost lk.salyk.kg:30040 [20:01:26]ConnectInit lk.salyk.kg [20:01:26]written 0, free lines is 4095 [20:01:26]Connected sock=10 [20:01: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 DD 5E 0D 01 36 C2 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 FB 00 00 00 F4 03 04 00 95 61 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 77 00 00 35 04 06 00 4E 8F BC A2 EF 99 E0 66 0A B6 13 A9 37 04 [20:01: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 6B 85 47 00 CF 3C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 05 77 00 00 F4 03 04 00 18 0C 15 67 B6 04 01 00 00 EB F0 CE 83 D0 DE 26 2D [20:01:27]CommunicateWithHost err = 0 [20:01:27]CheckOFDResponse [20:01:27]1017 (14) - 77093643461234 [20:01:27]1041 (16) - 0000000002094219 [20:01:27]1040 (4) - 30469 [20:01:27]1012 (4) - 20.10.2024 13:56 [20:01:27]1206 (1) - 0 [20:01:27]OFD Sender: Remove packet 30469 [20:01:27]ProducePacketName [20:01:27]name=ofd_packets/00030469 [20:01:27]NVStorageDeleteData [20:01:27]Write to MH i2c: 01 00 00 E1 13 F4 [20:01:27]Write i2c OK [20:01:27]MH_I2C_Read... [20:01:27]Read from MH i2c: 01 [20:01:27]MH_I2C_Read... [20:01:27]Read from MH i2c: 01 07 00 [20:01:27]MH_I2C_Read... [20:01:27]Read from MH i2c: 01 07 00 E1 13 00 00 00 00 00 F9 0C 00 [20:01:27]RasterBufferAndPrint [20:01:27]line [20:01:27]line [20:01:27]line [20:01:27]line [20:01:27]line [20:01:27]written 0, free lines is 3328 [20:01:27]MH_Cut [20:01:27]Write to MH i2c: D1 01 00 E8 13 01 CD [20:01:27]Write i2c OK [20:01:27]MH_I2C_Read... [20:01:27]Read from MH i2c: D1 [20:01:27]MH_I2C_Read... [20:01:27]Read from MH i2c: D1 01 00 [20:01:27]MH_I2C_Read... [20:01:27]Read from MH i2c: D1 01 00 E8 13 00 CC [20:01:27]Write to MH i2c: 01 00 00 E9 13 FC [20:01:27]Write i2c OK [20:01:27]MH_I2C_Read... [20:01:27]OFD Sender: No OFD packet to send [20:01:28]*** Cut start [20:01:28]*** Partial cut [20:01:28]*** CUTSNS_PIN = 1 [20:01:28]*** CUTSNS_PIN = 0 [20:01:28]*** Brake cut motor [20:01:28]Read from MH i2c: 01 [20:01:28]MH_I2C_Read... [20:01:28]*** Stop cut motor [20:01:28]*** Cut end [20:01:28]Read from MH i2c: 01 07 00 [20:01:28]MH_I2C_Read... [20:01:28]Read from MH i2c: 01 07 00 E9 13 00 00 00 00 00 FF 0F 11 [20:01:28]process_action close_receipt done [20:01:28]requested_data is exist [20:01:28]produce_requested_data [20:01:28]requested_item fm.sn is exist - process it [20:01:28]wFMCommunicate request_size=4 [20:01:28]MH_SAM_APDU [20:01:28]CAPDU: 80 11 00 00 [20:01:28]Write to MH i2c: E2 08 00 EA 13 80 11 00 00 00 00 00 00 77 [20:01:28]Write i2c OK [20:01:28]MH_I2C_Read... [20:01:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:01:28]Read from MH i2c: E2 [20:01:28]MH_I2C_Read... [20:01:28]Read from MH i2c: E2 17 00 [20:01:28]MH_I2C_Read... [20:01:28]Read from MH i2c: E2 17 00 EA 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 C5 [20:01: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:01:28]wFMCommunicate OK [20:01:28]requested_item fd.num is exist - process it [20:01:28]SAM_PROTO_GetFieldsCounters [20:01:28]wFMCommunicate request_size=4 [20:01:28]MH_SAM_APDU [20:01:28]CAPDU: 80 13 00 00 [20:01:28]Write to MH i2c: E2 08 00 EB 13 80 13 00 00 00 00 00 00 7A [20:01:28]Write i2c OK [20:01:28]MH_I2C_Read... [20:01:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:01:28]Read from MH i2c: E2 [20:01:28]MH_I2C_Read... [20:01:28]Read from MH i2c: E2 62 00 [20:01:28]MH_I2C_Read... [20:01:28]Read from MH i2c: E2 62 00 EB 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 77 00 00 0E 04 04 00 72 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 7F [20:01: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 05 77 00 00 0E 04 04 00 72 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 [20:01:28]wFMCommunicate OK [20:01:28]SAM_PROTO_GetFieldsCounters done [20:01:28]requested_item shift.num is exist - process it [20:01:28]requested_item shift.opened is exist - process it [20:01:28]req_shift_opened [20:01:28]FM_GetShiftState [20:01:28]SAM_PROTO_GetShiftState [20:01:28]wFMCommunicate request_size=4 [20:01:28]MH_SAM_APDU [20:01:28]CAPDU: 80 13 01 00 [20:01:28]Write to MH i2c: E2 08 00 EC 13 80 13 01 00 00 00 00 00 7C [20:01:28]Write i2c OK [20:01:28]MH_I2C_Read... [20:01:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:01:28]Read from MH i2c: E2 [20:01:28]MH_I2C_Read... [20:01:28]Read from MH i2c: E2 0E 00 [20:01:28]MH_I2C_Read... [20:01:28]Read from MH i2c: E2 0E 00 EC 13 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 62 [20:01:28]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [20:01:28]wFMCommunicate OK [20:01:28]SAM_PROTO_GetShiftState done [20:01:28]FM_GetShiftState done [20:01:28]req_shift_opened done [20:01:28]requested_item shift.open_date is exist - process it [20:01:28]req_shift_open_date [20:01:28]req_shift_open_date done [20:01:28]produce_requested_data done [20:01:28]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30469,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [20:01:28]process_action_free close_receipt [20:01:28]json_value_free [20:01:28]json_value_free done [20:01:28]process_json_proto returns [20:01:28]Send response to host [20:01:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30469,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [20:01:28]free response buf [20:01:28]execute_script done [20:01:28]execute_script returns [20:01:28]free content buf [20:01:28]Sock 7.Close socket [20:01:28]Sock 7.Thread stoped [20:01:32]OFD Sender: No OFD packet to send [20:01:37]OFD Sender: No OFD packet to send [20:01:42]OFD Sender: No OFD packet to send [20:01:47]OFD Sender: No OFD packet to send [20:01:52]OFD Sender: No OFD packet to send [20:01:57]OFD Sender: No OFD packet to send [20:02:02]OFD Sender: No OFD packet to send [20:02:07]OFD Sender: No OFD packet to send [20:02:12]OFD Sender: No OFD packet to send [20:02:17]OFD Sender: No OFD packet to send [20:02:22]OFD Sender: No OFD packet to send [20:02:27]OFD Sender: No OFD packet to send [20:02:32]OFD Sender: No OFD packet to send [20:02:37]OFD Sender: No OFD packet to send [20:02:42]OFD Sender: No OFD packet to send [20:02:47]OFD Sender: No OFD packet to send [20:02:52]OFD Sender: No OFD packet to send [20:02:57]OFD Sender: No OFD packet to send [20:03:02]OFD Sender: No OFD packet to send [20:03:07]OFD Sender: No OFD packet to send [20:03:12]OFD Sender: No OFD packet to send [20:03:17]OFD Sender: No OFD packet to send [20:03:22]OFD Sender: No OFD packet to send [20:03:27]OFD Sender: No OFD packet to send [20:03:32]OFD Sender: No OFD packet to send [20:03:37]OFD Sender: No OFD packet to send [20:03:42]OFD Sender: No OFD packet to send [20:03:47]OFD Sender: No OFD packet to send [20:03:52]OFD Sender: No OFD packet to send [20:03:57]OFD Sender: No OFD packet to send [20:04:02]OFD Sender: No OFD packet to send [20:04:07]OFD Sender: No OFD packet to send [20:04:12]OFD Sender: No OFD packet to send [20:04:17]OFD Sender: No OFD packet to send [20:04:22]OFD Sender: No OFD packet to send [20:04:27]OFD Sender: No OFD packet to send [20:04:32]OFD Sender: No OFD packet to send [20:04:37]OFD Sender: No OFD packet to send [20:04:42]OFD Sender: No OFD packet to send [20:04:47]OFD Sender: No OFD packet to send [20:04:52]OFD Sender: No OFD packet to send [20:04:57]OFD Sender: No OFD packet to send [20:05:02]OFD Sender: No OFD packet to send [20:05:07]OFD Sender: No OFD packet to send [20:05:12]OFD Sender: No OFD packet to send [20:05:17]OFD Sender: No OFD packet to send [20:05:22]OFD Sender: No OFD packet to send [20:05:27]OFD Sender: No OFD packet to send [20:05:32]OFD Sender: No OFD packet to send [20:05:37]OFD Sender: No OFD packet to send [20:05:42]OFD Sender: No OFD packet to send [20:05:47]OFD Sender: No OFD packet to send [20:05:52]OFD Sender: No OFD packet to send [20:05:57]OFD Sender: No OFD packet to send [20:06:02]OFD Sender: No OFD packet to send [20:06:07]OFD Sender: No OFD packet to send [20:06:12]OFD Sender: No OFD packet to send [20:06:17]OFD Sender: No OFD packet to send [20:06:22]OFD Sender: No OFD packet to send [20:06:27]OFD Sender: No OFD packet to send [20:06:32]OFD Sender: No OFD packet to send [20:06:37]OFD Sender: No OFD packet to send [20:06:42]OFD Sender: No OFD packet to send [20:06:47]OFD Sender: No OFD packet to send [20:06:52]OFD Sender: No OFD packet to send [20:06:57]OFD Sender: No OFD packet to send [20:07:00]accept exits with 9 [20:07:00]New connection [20:07:00]New thread 3067489636 created [20:07:00]Thread 3067346276 joined [20:07:00]Waiting for new connection... [20:07:00] Sock 9.Parse request [20:07:00]Sock 9.Check first char [20:07:00]Sock 9.First char is OK [20:07:00]request: POST /json_proto HTTP/1.0 [20:07:00]Method: POST [20:07:00]URL: /json_proto [20:07:00]Method is POST - this is cgi request [20:07:00]url: /json_proto [20:07:00]query_string will be loaded in cgi processing [20:07:00]execute_cgi json_proto POST (null) [20:07:00]execute_cgi path=json_proto method=POST [20:07:00]POST find Content-Length [20:07:00]Host: 172.17.51.3:8080 [20:07:00]Content-Length: 671 [20:07:00]Content-Type: application/json [20:07:00] [20:07:00]POST finish read [20:07:00]Found Content-Length = 671 [20:07:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342874", "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" : 0.010, "sum" : 0.67, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 0.00, "payments": [ { "type": 0, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:07:00]execute_script... [20:07:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342874", "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" : 0.010, "sum" : 0.67, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 0.00, "payments": [ { "type": 0, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:07:00]POST & json_proto [20:07:00]process_json_proto [20:07:00]json parsed OK: [20:07:00]protocol is kg_v1.0 [20:07:00]action value=close_receipt [20:07:00]process_action close_receipt [20:07:00]cmd_close_receipt [20:07:00]MH_GetDate [20:07:00]Write to MH i2c: F0 00 00 ED 13 EF [20:07:00]Write i2c OK [20:07:00]MH_I2C_Read... [20:07:00]Read from MH i2c: F0 [20:07:00]MH_I2C_Read... [20:07:00]Read from MH i2c: F0 09 00 [20:07:00]MH_I2C_Read... [20:07:00]Read from MH i2c: F0 09 00 ED 13 00 E5 62 15 67 04 C1 95 66 7B [20:07:00]GetLastDocTimeStamp 1729454485 [20:07:00]current date 1729454821 [20:07:00]FM_GetShiftState [20:07:00]SAM_PROTO_GetShiftState [20:07:00]wFMCommunicate request_size=4 [20:07:00]MH_SAM_APDU [20:07:00]CAPDU: 80 13 01 00 [20:07:00]Write to MH i2c: E2 08 00 EE 13 80 13 01 00 00 00 00 00 7E [20:07:00]Write i2c OK [20:07:00]MH_I2C_Read... [20:07:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:07:00]Read from MH i2c: E2 [20:07:00]MH_I2C_Read... [20:07:00]Read from MH i2c: E2 0E 00 [20:07:00]MH_I2C_Read... [20:07:00]Read from MH i2c: E2 0E 00 EE 13 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 64 [20:07:00]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [20:07:00]wFMCommunicate OK [20:07:00]SAM_PROTO_GetShiftState done [20:07:00]FM_GetShiftState done [20:07:00]opened in 1729384718 [20:07:00]opened+sec_in_day 1729471118 [20:07:00]quantity*price = 66 [20:07:00]sum+1 = 68 [20:07:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.67 ИТОГО: 0.00 Внесено: 400.00 СДАЧА: 400.00 НСП 1% : 0.01 НДС 12% : 0.07 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 252 20.10.2024 20:07 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30470 ФПД: 110855788388935 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T200701&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30470&fm=110855788388935&tin=02508201610067®Number=0000000000186857&sum=0 [20:07:01]StoreToDocumentArchive [20:07:01]shift 114 fd 30470 [20:07:01]save to /storage/0114/doc_00030470 [20:07:01]save last doc name /storage/0114/doc_00030470 to /storage/kkm_last_doc_name [20:07:01]save OK [20:07:01]Clear old archive folders... [20:07:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:07:01]tlvbuf is 01DCBF70 [20:07:01]SAM_PROTO_ClearQueue [20:07:01]wFMCommunicate request_size=4 [20:07:01]MH_SAM_APDU [20:07:01]CAPDU: 80 09 00 00 [20:07:01]Write to MH i2c: E2 08 00 FB 13 80 09 00 00 00 00 00 00 80 [20:07:02]Write i2c OK [20:07:02]MH_I2C_Read... [20:07:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:07:02]Read from MH i2c: E2 [20:07:02]MH_I2C_Read... [20:07:02]Read from MH i2c: E2 03 00 [20:07:02]MH_I2C_Read... [20:07:02]Read from MH i2c: E2 03 00 FB 13 00 90 00 82 [20:07:02]RAPDU: 90 00 [20:07:02]wFMCommunicate OK [20:07:02]SAM_PROTO_ClearQueue done [20:07:02]KKMCreateOFDPacket [20:07:02]OFDProtocolAddRootSTLVToBuf [20:07:02]FM_MakeSignedData [20:07:02]FM_MakeSignedData [20:07:02]SAM_PROTO_SignData [20:07:02]wFMCommunicate request_size=4 [20:07:02]MH_SAM_APDU [20:07:02]CAPDU: 80 0D 01 02 [20:07:02]Write to MH i2c: E2 08 00 FC 13 80 0D 01 02 00 00 00 00 88 [20:07:02]Write i2c OK [20:07:02]MH_I2C_Read... [20:07:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:07:02]Read from MH i2c: E2 [20:07:02]MH_I2C_Read... [20:07:02]Read from MH i2c: E2 03 00 [20:07:02]MH_I2C_Read... [20:07:02]Read from MH i2c: E2 03 00 FC 13 00 90 00 83 [20:07:02]RAPDU: 90 00 [20:07:02]wFMCommunicate OK [20:07:02]wFMCommunicate request_size=255 [20:07:02]MH_SAM_APDU [20:07:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 0A 00 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 43 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 07 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 E5 62 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 77 00 00 35 04 06 00 64 [20:07:02]Write to MH i2c: E2 02 01 FD 13 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 0A 00 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 43 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 07 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 E5 62 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 77 00 00 35 04 06 00 64 00 00 37 [20:07:02]Write i2c OK [20:07:02]MH_I2C_Read... [20:07:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:07:02]Read from MH i2c: E2 [20:07:02]MH_I2C_Read... [20:07:02]Read from MH i2c: E2 03 00 [20:07:02]MH_I2C_Read... [20:07:02]Read from MH i2c: E2 03 00 FD 13 00 90 00 84 [20:07:02]RAPDU: 90 00 [20:07:02]wFMCommunicate OK [20:07:02]wFMCommunicate request_size=10 [20:07:02]MH_SAM_APDU [20:07:02]CAPDU: 80 0D 02 02 05 D2 9F E3 62 47 [20:07:02]Write to MH i2c: E2 0D 00 FE 13 80 0D 02 02 05 00 D2 9F E3 62 47 00 00 92 [20:07:02]Write i2c OK [20:07:02]MH_I2C_Read... [20:07:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:07:02]Read from MH i2c: E2 [20:07:02]MH_I2C_Read... [20:07:02]Read from MH i2c: E2 03 00 [20:07:02]MH_I2C_Read... [20:07:02]Read from MH i2c: E2 03 00 FE 13 00 90 00 85 [20:07:02]RAPDU: 90 00 [20:07:02]wFMCommunicate OK [20:07:02]wFMCommunicate request_size=4 [20:07:02]MH_SAM_APDU [20:07:02]CAPDU: 80 0D 03 02 [20:07:02]Write to MH i2c: E2 08 00 FF 13 80 0D 03 02 00 00 00 00 8D [20:07:02]Write i2c OK [20:07:02]MH_I2C_Read... [20:07:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:07:02]Read from MH i2c: E2 [20:07:02]MH_I2C_Read... [20:07:02]Read from MH i2c: E2 0B 00 [20:07:02]MH_I2C_Read... [20:07:02]Read from MH i2c: E2 0B 00 FF 13 00 5F 68 DC D4 E1 49 72 0A 90 00 AB [20:07:02]RAPDU: 5F 68 DC D4 E1 49 72 0A 90 00 [20:07:02]wFMCommunicate OK [20:07:02]SAM_PROTO_SignData done [20:07:02]FM_MakeSignedData done [20:07:02]CreateOFDProtocolMessage [20:07:02]wFMCommunicate request_size=4 [20:07:02]MH_SAM_APDU [20:07:02]CAPDU: 80 11 00 00 [20:07:02]Write to MH i2c: E2 08 00 00 14 80 11 00 00 00 00 00 00 8E [20:07:02]Write i2c OK [20:07:02]MH_I2C_Read... [20:07:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:07:02]Read from MH i2c: E2 [20:07:02]MH_I2C_Read... [20:07:02]Read from MH i2c: E2 17 00 [20:07:02]MH_I2C_Read... [20:07:02]Read from MH i2c: E2 17 00 00 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 DC [20:07:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [20:07:02]wFMCommunicate OK [20:07:02]CreateOFDProtocolMessage done [20:07:02]OFDSenderStorePacket 30470 [20:07:02]StoreOFDPacket docnum=30470 [20:07: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 3A C3 07 01 C7 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 0A 00 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 43 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 07 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 E5 62 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 77 00 00 35 04 06 00 64 D2 9F E3 62 47 5F 68 DC D4 E1 49 72 0A [20:07:02]CheckFolder [20:07:02]dirname=/storage/ofd_packets [20:07:02]CheckFolder done [20:07:02]ProducePacketName [20:07:02]name=ofd_packets/00030470 [20:07:02]NVStorageSaveData ofd_packets/00030470 [20:07:02]File name is /storage/ofd_packets/00030470 [20:07:02]Write 301 bytes [20:07:02]NVStorageSaveData done [20:07:02]OFDSenderStorePacket done [20:07:02]KKMCreateOFDPacket done [20:07:02]NVStorageSaveData kkm_last_timestamp [20:07:02]File name is /storage/kkm_last_timestamp [20:07:02]Write 4 bytes [20:07:02]NVStorageSaveData done [20:07:02]ExternCall_PrintAddStr [20:07:02]wPrintStart [20:07:02]Write to MH i2c: 01 00 00 01 14 15 [20:07:02]Write i2c OK [20:07:02]MH_I2C_Read... [20:07:02]Read from MH i2c: 01 [20:07:02]MH_I2C_Read... [20:07:02]Read from MH i2c: 01 07 00 [20:07:02]MH_I2C_Read... [20:07:02]Read from MH i2c: 01 07 00 01 14 00 00 00 00 00 FF 0F 2A [20:07:02]RasterBufferAndPrint [20:07:02]line Счет N : (1)342874 [20:07:02]line ИНН: 02508201610067 [20:07:02]line Контрольно-Кассовый Чек [20:07:02]line ПРОДАЖА [20:07:02]line ТРК (МРК, ГНК) : 53 [20:07:02]line Товар: 2710124130 [20:07:02]line Аи-92-К-2 [20:07:02]line 0.010 * 66.90 [20:07:02]line = 0.67 [20:07:02]line НДС 12% НСП 1% [20:07:02]line > о реализуемом товаре [20:07:02]line ОКРУГЛЕНИЕ: -0.67 [20:07:02]line ИТОГО: 0.00 [20:07:02]line Внесено: 400.00 [20:07:02]line СДАЧА: 400.00 [20:07:02]line НСП 1% : 0.01 [20:07:02]line НДС 12% : 0.07 [20:07:02]line Наличными: 0.00 [20:07:02]line Безнал.: 0.00 [20:07:02]line Место: АЗС № 78 "Партнер Нефть" [20:07:02]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [20:07:02]line СНО: Общий режим [20:07:02]line Чек 252 20.10.2024 20:07 [20:07:02]line Смена: 114 ФФД: 1.0 [20:07:02]line ЗНМ: 0300000137 [20:07:02]line РНМ: 0000000000186857 [20:07:02]line Версия ККМ: v1.0 [20:07:02]line ФМ: 0000000002094219 [20:07:02]line ФД: 30470 [20:07:02]line ФПД: 110855788388935 [20:07:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T200701&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30470&fm=110855788388935&tin=02508201610067®Number=0000000000186857&sum=0 [20:07:02]OFD Sender: Processing packet 30470 [packets to send 10, broken 9] [20:07:02]ProducePacketName [20:07:02]name=ofd_packets/00030470 [20:07:02]OFD Sender: To server: pG, [20:07:02]CommunicateWithHost lk.salyk.kg:30040 [20:07:02]ConnectInit lk.salyk.kg [20:07:02]written 0, free lines is 4095 [20:07:02]Connected sock=10 [20:07: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 3A C3 07 01 C7 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 0A 00 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 43 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 07 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 E5 62 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 77 00 00 35 04 06 00 64 D2 9F E3 62 47 5F 68 DC D4 E1 49 72 0A [20:07: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 34 E0 47 00 FE 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 06 77 00 00 F4 03 04 00 68 0D 15 67 B6 04 01 00 00 AC FC E7 3D 1A 62 6F 7C [20:07:03]CommunicateWithHost err = 0 [20:07:03]CheckOFDResponse [20:07:03]1017 (14) - 77093643461234 [20:07:03]1041 (16) - 0000000002094219 [20:07:03]1040 (4) - 30470 [20:07:03]1012 (4) - 20.10.2024 14:02 [20:07:03]1206 (1) - 0 [20:07:03]OFD Sender: Remove packet 30470 [20:07:03]ProducePacketName [20:07:03]name=ofd_packets/00030470 [20:07:03]NVStorageDeleteData [20:07:03]Write to MH i2c: 01 00 00 2C 14 40 [20:07:03]Write i2c OK [20:07:03]MH_I2C_Read... [20:07:03]Read from MH i2c: 01 [20:07:03]MH_I2C_Read... [20:07:03]Read from MH i2c: 01 07 00 [20:07:03]MH_I2C_Read... [20:07:03]Read from MH i2c: 01 07 00 2C 14 00 00 00 00 00 ED 0C 40 [20:07:03]RasterBufferAndPrint [20:07:03]line [20:07:03]line [20:07:03]line [20:07:03]line [20:07:03]line [20:07:03]written 0, free lines is 3316 [20:07:03]MH_Cut [20:07:03]Write to MH i2c: D1 01 00 33 14 01 19 [20:07:03]Write i2c OK [20:07:03]MH_I2C_Read... [20:07:03]Read from MH i2c: D1 [20:07:03]MH_I2C_Read... [20:07:03]Read from MH i2c: D1 01 00 [20:07:03]MH_I2C_Read... [20:07:03]Read from MH i2c: D1 01 00 33 14 00 18 [20:07:03]Write to MH i2c: 01 00 00 34 14 48 [20:07:03]Write i2c OK [20:07:03]MH_I2C_Read... [20:07:03]OFD Sender: No OFD packet to send [20:07:03]*** Cut start [20:07:03]*** Partial cut [20:07:03]*** CUTSNS_PIN = 1 [20:07:03]*** CUTSNS_PIN = 0 [20:07:04]*** Brake cut motor [20:07:04]Read from MH i2c: 01 [20:07:04]MH_I2C_Read... [20:07:04]*** Stop cut motor [20:07:04]*** Cut end [20:07:04]Read from MH i2c: 01 07 00 [20:07:04]MH_I2C_Read... [20:07:04]Read from MH i2c: 01 07 00 34 14 00 00 00 00 00 FF 0F 5D [20:07:04]process_action close_receipt done [20:07:04]requested_data is exist [20:07:04]produce_requested_data [20:07:04]requested_item fm.sn is exist - process it [20:07:04]wFMCommunicate request_size=4 [20:07:04]MH_SAM_APDU [20:07:04]CAPDU: 80 11 00 00 [20:07:04]Write to MH i2c: E2 08 00 35 14 80 11 00 00 00 00 00 00 C3 [20:07:04]Write i2c OK [20:07:04]MH_I2C_Read... [20:07:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:07:04]Read from MH i2c: E2 [20:07:04]MH_I2C_Read... [20:07:04]Read from MH i2c: E2 17 00 [20:07:04]MH_I2C_Read... [20:07:04]Read from MH i2c: E2 17 00 35 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 11 [20:07:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [20:07:04]wFMCommunicate OK [20:07:04]requested_item fd.num is exist - process it [20:07:04]SAM_PROTO_GetFieldsCounters [20:07:04]wFMCommunicate request_size=4 [20:07:04]MH_SAM_APDU [20:07:04]CAPDU: 80 13 00 00 [20:07:04]Write to MH i2c: E2 08 00 36 14 80 13 00 00 00 00 00 00 C6 [20:07:04]Write i2c OK [20:07:04]MH_I2C_Read... [20:07:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:07:04]Read from MH i2c: E2 [20:07:04]MH_I2C_Read... [20:07:04]Read from MH i2c: E2 62 00 [20:07:04]MH_I2C_Read... [20:07:04]Read from MH i2c: E2 62 00 36 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 77 00 00 0E 04 04 00 72 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 CF [20:07: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 06 77 00 00 0E 04 04 00 72 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 [20:07:04]wFMCommunicate OK [20:07:04]SAM_PROTO_GetFieldsCounters done [20:07:04]requested_item shift.num is exist - process it [20:07:04]requested_item shift.opened is exist - process it [20:07:04]req_shift_opened [20:07:04]FM_GetShiftState [20:07:04]SAM_PROTO_GetShiftState [20:07:04]wFMCommunicate request_size=4 [20:07:04]MH_SAM_APDU [20:07:04]CAPDU: 80 13 01 00 [20:07:04]Write to MH i2c: E2 08 00 37 14 80 13 01 00 00 00 00 00 C8 [20:07:04]Write i2c OK [20:07:04]MH_I2C_Read... [20:07:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:07:04]Read from MH i2c: E2 [20:07:04]MH_I2C_Read... [20:07:04]Read from MH i2c: E2 0E 00 [20:07:04]MH_I2C_Read... [20:07:04]Read from MH i2c: E2 0E 00 37 14 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 AE [20:07:04]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [20:07:04]wFMCommunicate OK [20:07:04]SAM_PROTO_GetShiftState done [20:07:04]FM_GetShiftState done [20:07:04]req_shift_opened done [20:07:04]requested_item shift.open_date is exist - process it [20:07:04]req_shift_open_date [20:07:04]req_shift_open_date done [20:07:04]produce_requested_data done [20:07:04]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30470,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [20:07:04]process_action_free close_receipt [20:07:04]json_value_free [20:07:04]json_value_free done [20:07:04]process_json_proto returns [20:07:04]Send response to host [20:07:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30470,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [20:07:04]free response buf [20:07:04]execute_script done [20:07:04]execute_script returns [20:07:04]free content buf [20:07:04]Sock 9.Close socket [20:07:04]Sock 9.Thread stoped [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:54]accept exits with 7 [20:07:54]New connection [20:07:54]New thread 3067346276 created [20:07:54]Thread 3067489636 joined [20:07:54]Waiting for new connection... [20:07:54] Sock 7.Parse request [20:07:54]Sock 7.Check first char [20:07:54]Sock 7.First char is OK [20:07:54]request: POST /json_proto HTTP/1.0 [20:07:54]Method: POST [20:07:54]URL: /json_proto [20:07:54]Method is POST - this is cgi request [20:07:54]url: /json_proto [20:07:54]query_string will be loaded in cgi processing [20:07:54]execute_cgi json_proto POST (null) [20:07:54]execute_cgi path=json_proto method=POST [20:07:54]POST find Content-Length [20:07:54]Host: 172.17.51.3:8080 [20:07:54]Content-Length: 677 [20:07:54]Content-Type: application/json [20:07:54] [20:07:54]POST finish read [20:07:54]Found Content-Length = 677 [20:07:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342876", "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" ] } } [20:07:54]execute_script... [20:07: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)342876", "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" ] } } [20:07:54]POST & json_proto [20:07:54]process_json_proto [20:07:54]json parsed OK: [20:07:54]protocol is kg_v1.0 [20:07:54]action value=close_receipt [20:07:54]process_action close_receipt [20:07:54]cmd_close_receipt [20:07:54]MH_GetDate [20:07:54]Write to MH i2c: F0 00 00 38 14 3B [20:07:54]Write i2c OK [20:07:54]MH_I2C_Read... [20:07:54]Read from MH i2c: F0 [20:07:54]MH_I2C_Read... [20:07:54]Read from MH i2c: F0 09 00 [20:07:54]MH_I2C_Read... [20:07:54]Read from MH i2c: F0 09 00 38 14 00 1B 63 15 67 04 C1 95 66 FE [20:07:54]GetLastDocTimeStamp 1729454821 [20:07:54]current date 1729454875 [20:07:54]FM_GetShiftState [20:07:54]SAM_PROTO_GetShiftState [20:07:54]wFMCommunicate request_size=4 [20:07:54]MH_SAM_APDU [20:07:54]CAPDU: 80 13 01 00 [20:07:54]Write to MH i2c: E2 08 00 39 14 80 13 01 00 00 00 00 00 CA [20:07:54]Write i2c OK [20:07:54]MH_I2C_Read... [20:07:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:07:54]Read from MH i2c: E2 [20:07:54]MH_I2C_Read... [20:07:54]Read from MH i2c: E2 0E 00 [20:07:54]MH_I2C_Read... [20:07:54]Read from MH i2c: E2 0E 00 39 14 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 B0 [20:07:54]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [20:07:54]wFMCommunicate OK [20:07:54]SAM_PROTO_GetShiftState done [20:07:54]FM_GetShiftState done [20:07:54]opened in 1729384718 [20:07:54]opened+sec_in_day 1729471118 [20:07:54]quantity*price = 40006 [20:07:54]sum+1 = 40007 [20:07:54]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 СНО: Общий режим Чек 253 20.10.2024 20:07 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30471 ФПД: 237178400514971 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T200755&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30471&fm=237178400514971&tin=02508201610067®Number=0000000000186857&sum=40000 [20:07:55]StoreToDocumentArchive [20:07:55]shift 114 fd 30471 [20:07:55]save to /storage/0114/doc_00030471 [20:07:55]save last doc name /storage/0114/doc_00030471 to /storage/kkm_last_doc_name [20:07:55]save OK [20:07:55]Clear old archive folders... [20:07:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:07:55]tlvbuf is 01E05F20 [20:07:55]SAM_PROTO_ClearQueue [20:07:55]wFMCommunicate request_size=4 [20:07:55]MH_SAM_APDU [20:07:55]CAPDU: 80 09 00 00 [20:07:55]Write to MH i2c: E2 08 00 46 14 80 09 00 00 00 00 00 00 CC [20:07:55]Write i2c OK [20:07:55]MH_I2C_Read... [20:07:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:07:55]Read from MH i2c: E2 [20:07:55]MH_I2C_Read... [20:07:55]Read from MH i2c: E2 03 00 [20:07:55]MH_I2C_Read... [20:07:55]Read from MH i2c: E2 03 00 46 14 00 90 00 CE [20:07:55]RAPDU: 90 00 [20:07:55]wFMCommunicate OK [20:07:55]SAM_PROTO_ClearQueue done [20:07:55]KKMCreateOFDPacket [20:07:55]OFDProtocolAddRootSTLVToBuf [20:07:55]FM_MakeSignedData [20:07:55]FM_MakeSignedData [20:07:55]SAM_PROTO_SignData [20:07:55]wFMCommunicate request_size=4 [20:07:55]MH_SAM_APDU [20:07:55]CAPDU: 80 0D 01 02 [20:07:55]Write to MH i2c: E2 08 00 47 14 80 0D 01 02 00 00 00 00 D4 [20:07:55]Write i2c OK [20:07:55]MH_I2C_Read... [20:07:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:07:55]Read from MH i2c: E2 [20:07:55]MH_I2C_Read... [20:07:55]Read from MH i2c: E2 03 00 [20:07:55]MH_I2C_Read... [20:07:55]Read from MH i2c: E2 03 00 47 14 00 90 00 CF [20:07:55]RAPDU: 90 00 [20:07:55]wFMCommunicate OK [20:07:55]wFMCommunicate request_size=255 [20:07:55]MH_SAM_APDU [20:07: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 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 FD 00 00 00 F4 03 04 00 1B 63 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 77 00 00 35 04 06 00 D7 [20:07:55]Write to MH i2c: E2 02 01 48 14 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 FD 00 00 00 F4 03 04 00 1B 63 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 77 00 00 35 04 06 00 D7 00 00 F2 [20:07:55]Write i2c OK [20:07:55]MH_I2C_Read... [20:07:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:07:55]Read from MH i2c: E2 [20:07:55]MH_I2C_Read... [20:07:55]Read from MH i2c: E2 03 00 [20:07:55]MH_I2C_Read... [20:07:55]Read from MH i2c: E2 03 00 48 14 00 90 00 D0 [20:07:55]RAPDU: 90 00 [20:07:55]wFMCommunicate OK [20:07:55]wFMCommunicate request_size=10 [20:07:55]MH_SAM_APDU [20:07:55]CAPDU: 80 0D 02 02 05 B6 66 4F A3 9B [20:07:55]Write to MH i2c: E2 0D 00 49 14 80 0D 02 02 05 00 B6 66 4F A3 9B 00 00 8A [20:07:55]Write i2c OK [20:07:55]MH_I2C_Read... [20:07:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:07:55]Read from MH i2c: E2 [20:07:55]MH_I2C_Read... [20:07:55]Read from MH i2c: E2 03 00 [20:07:55]MH_I2C_Read... [20:07:55]Read from MH i2c: E2 03 00 49 14 00 90 00 D1 [20:07:55]RAPDU: 90 00 [20:07:55]wFMCommunicate OK [20:07:55]wFMCommunicate request_size=4 [20:07:55]MH_SAM_APDU [20:07:55]CAPDU: 80 0D 03 02 [20:07:55]Write to MH i2c: E2 08 00 4A 14 80 0D 03 02 00 00 00 00 D9 [20:07:55]Write i2c OK [20:07:55]MH_I2C_Read... [20:07:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:07:55]Read from MH i2c: E2 [20:07:55]MH_I2C_Read... [20:07:55]Read from MH i2c: E2 0B 00 [20:07:55]MH_I2C_Read... [20:07:55]Read from MH i2c: E2 0B 00 4A 14 00 EA 7C C7 8E 68 E6 38 E5 90 00 00 [20:07:56]RAPDU: EA 7C C7 8E 68 E6 38 E5 90 00 [20:07:56]wFMCommunicate OK [20:07:56]SAM_PROTO_SignData done [20:07:56]FM_MakeSignedData done [20:07:56]CreateOFDProtocolMessage [20:07:56]wFMCommunicate request_size=4 [20:07:56]MH_SAM_APDU [20:07:56]CAPDU: 80 11 00 00 [20:07:56]Write to MH i2c: E2 08 00 4B 14 80 11 00 00 00 00 00 00 D9 [20:07:56]Write i2c OK [20:07:56]MH_I2C_Read... [20:07:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:07:56]Read from MH i2c: E2 [20:07:56]MH_I2C_Read... [20:07:56]Read from MH i2c: E2 17 00 [20:07:56]MH_I2C_Read... [20:07:56]Read from MH i2c: E2 17 00 4B 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 27 [20:07:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [20:07:56]wFMCommunicate OK [20:07:56]CreateOFDProtocolMessage done [20:07:56]OFDSenderStorePacket 30471 [20:07:56]StoreOFDPacket docnum=30471 [20:07: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 04 0B 07 01 FA 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 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 FD 00 00 00 F4 03 04 00 1B 63 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 77 00 00 35 04 06 00 D7 B6 66 4F A3 9B EA 7C C7 8E 68 E6 38 E5 [20:07:56]CheckFolder [20:07:56]dirname=/storage/ofd_packets [20:07:56]CheckFolder done [20:07:56]ProducePacketName [20:07:56]name=ofd_packets/00030471 [20:07:56]NVStorageSaveData ofd_packets/00030471 [20:07:56]File name is /storage/ofd_packets/00030471 [20:07:56]Write 301 bytes [20:07:56]NVStorageSaveData done [20:07:56]OFDSenderStorePacket done [20:07:56]KKMCreateOFDPacket done [20:07:56]NVStorageSaveData kkm_last_timestamp [20:07:56]File name is /storage/kkm_last_timestamp [20:07:56]Write 4 bytes [20:07:56]NVStorageSaveData done [20:07:56]ExternCall_PrintAddStr [20:07:56]wPrintStart [20:07:56]Write to MH i2c: 01 00 00 4C 14 60 [20:07:56]Write i2c OK [20:07:56]MH_I2C_Read... [20:07:56]Read from MH i2c: 01 [20:07:56]MH_I2C_Read... [20:07:56]Read from MH i2c: 01 07 00 [20:07:56]MH_I2C_Read... [20:07:56]Read from MH i2c: 01 07 00 4C 14 00 00 00 00 00 FF 0F 75 [20:07:56]RasterBufferAndPrint [20:07:56]line Счет N : (1)342876 [20:07:56]line ИНН: 02508201610067 [20:07:56]line Контрольно-Кассовый Чек [20:07:56]line ПРОДАЖА [20:07:56]line ТРК (МРК, ГНК) : 53 [20:07:56]line Товар: 2710124130 [20:07:56]line Аи-92-К-2 [20:07:56]line 5.980 * 66.90 [20:07:56]line = 400.06 [20:07:56]line НДС 12% НСП 1% [20:07:56]line > о реализуемом товаре [20:07:56]line ОКРУГЛЕНИЕ: -0.06 [20:07:56]line ИТОГО: 400.00 [20:07:56]line Внесено: 400.00 [20:07:56]line СДАЧА: 0.00 [20:07:56]line НСП 1% : 3.54 [20:07:56]line НДС 12% : 42.48 [20:07:56]line Наличными: 400.00 [20:07:56]line Безнал.: 0.00 [20:07:56]line Место: АЗС № 78 "Партнер Нефть" [20:07:56]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [20:07:56]line СНО: Общий режим [20:07:56]line Чек 253 20.10.2024 20:07 [20:07:56]line Смена: 114 ФФД: 1.0 [20:07:56]line ЗНМ: 0300000137 [20:07:56]line РНМ: 0000000000186857 [20:07:56]line Версия ККМ: v1.0 [20:07:56]line ФМ: 0000000002094219 [20:07:56]line ФД: 30471 [20:07:56]line ФПД: 237178400514971 [20:07:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T200755&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30471&fm=237178400514971&tin=02508201610067®Number=0000000000186857&sum=40000 [20:07:56]OFD Sender: Processing packet 30471 [packets to send 10, broken 9] [20:07:56]ProducePacketName [20:07:56]name=ofd_packets/00030471 [20:07:56]OFD Sender: To server: pG, [20:07:56]CommunicateWithHost lk.salyk.kg:30040 [20:07:56]ConnectInit lk.salyk.kg [20:07:56]written 0, free lines is 4095 [20:07:56]Connected sock=10 [20:07: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 04 0B 07 01 FA 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 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 FD 00 00 00 F4 03 04 00 1B 63 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 77 00 00 35 04 06 00 D7 B6 66 4F A3 9B EA 7C C7 8E 68 E6 38 E5 [20:07: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 0E 38 47 00 DC 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 07 77 00 00 F4 03 04 00 9E 0D 15 67 B6 04 01 00 00 59 A6 81 1D AF 8A D8 16 [20:07:56]CommunicateWithHost err = 0 [20:07:56]CheckOFDResponse [20:07:56]1017 (14) - 77093643461234 [20:07:56]1041 (16) - 0000000002094219 [20:07:56]1040 (4) - 30471 [20:07:56]1012 (4) - 20.10.2024 14:03 [20:07:56]1206 (1) - 0 [20:07:56]OFD Sender: Remove packet 30471 [20:07:56]ProducePacketName [20:07:56]name=ofd_packets/00030471 [20:07:56]NVStorageDeleteData [20:07:56]Write to MH i2c: 01 00 00 77 14 8B [20:07:56]Write i2c OK [20:07:56]MH_I2C_Read... [20:07:56]Read from MH i2c: 01 [20:07:56]MH_I2C_Read... [20:07:56]Read from MH i2c: 01 07 00 [20:07:56]MH_I2C_Read... [20:07:56]Read from MH i2c: 01 07 00 77 14 00 00 00 00 00 E4 0C 82 [20:07:56]RasterBufferAndPrint [20:07:56]line [20:07:56]line [20:07:56]line [20:07:56]line [20:07:56]line [20:07:56]written 0, free lines is 3306 [20:07:56]MH_Cut [20:07:56]Write to MH i2c: D1 01 00 7E 14 01 64 [20:07:56]Write i2c OK [20:07:56]MH_I2C_Read... [20:07:56]Read from MH i2c: D1 [20:07:56]MH_I2C_Read... [20:07:56]Read from MH i2c: D1 01 00 [20:07:56]MH_I2C_Read... [20:07:56]Read from MH i2c: D1 01 00 7E 14 00 63 [20:07:56]Write to MH i2c: 01 00 00 7F 14 93 [20:07:56]Write i2c OK [20:07:56]MH_I2C_Read... [20:07:57]OFD Sender: No OFD packet to send [20:07:57]*** Cut start [20:07:57]*** Partial cut [20:07:57]*** CUTSNS_PIN = 1 [20:07:57]*** CUTSNS_PIN = 0 [20:07:57]*** Brake cut motor [20:07:58]Read from MH i2c: 01 [20:07:58]MH_I2C_Read... [20:07:58]*** Stop cut motor [20:07:58]*** Cut end [20:07:58]Read from MH i2c: 01 07 00 [20:07:58]MH_I2C_Read... [20:07:58]Read from MH i2c: 01 07 00 7F 14 00 00 00 00 00 FF 0F A8 [20:07:58]process_action close_receipt done [20:07:58]requested_data is exist [20:07:58]produce_requested_data [20:07:58]requested_item fm.sn is exist - process it [20:07:58]wFMCommunicate request_size=4 [20:07:58]MH_SAM_APDU [20:07:58]CAPDU: 80 11 00 00 [20:07:58]Write to MH i2c: E2 08 00 80 14 80 11 00 00 00 00 00 00 0E [20:07:58]Write i2c OK [20:07:58]MH_I2C_Read... [20:07:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:07:58]Read from MH i2c: E2 [20:07:58]MH_I2C_Read... [20:07:58]Read from MH i2c: E2 17 00 [20:07:58]MH_I2C_Read... [20:07:58]Read from MH i2c: E2 17 00 80 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 5C [20:07: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:07:58]wFMCommunicate OK [20:07:58]requested_item fd.num is exist - process it [20:07:58]SAM_PROTO_GetFieldsCounters [20:07:58]wFMCommunicate request_size=4 [20:07:58]MH_SAM_APDU [20:07:58]CAPDU: 80 13 00 00 [20:07:58]Write to MH i2c: E2 08 00 81 14 80 13 00 00 00 00 00 00 11 [20:07:58]Write i2c OK [20:07:58]MH_I2C_Read... [20:07:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:07:58]Read from MH i2c: E2 [20:07:58]MH_I2C_Read... [20:07:58]Read from MH i2c: E2 62 00 [20:07:58]MH_I2C_Read... [20:07:58]Read from MH i2c: E2 62 00 81 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 77 00 00 0E 04 04 00 72 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 1E [20:07: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 07 77 00 00 0E 04 04 00 72 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 [20:07:58]wFMCommunicate OK [20:07:58]SAM_PROTO_GetFieldsCounters done [20:07:58]requested_item shift.num is exist - process it [20:07:58]requested_item shift.opened is exist - process it [20:07:58]req_shift_opened [20:07:58]FM_GetShiftState [20:07:58]SAM_PROTO_GetShiftState [20:07:58]wFMCommunicate request_size=4 [20:07:58]MH_SAM_APDU [20:07:58]CAPDU: 80 13 01 00 [20:07:58]Write to MH i2c: E2 08 00 82 14 80 13 01 00 00 00 00 00 13 [20:07:58]Write i2c OK [20:07:58]MH_I2C_Read... [20:07:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:07:58]Read from MH i2c: E2 [20:07:58]MH_I2C_Read... [20:07:58]Read from MH i2c: E2 0E 00 [20:07:58]MH_I2C_Read... [20:07:58]Read from MH i2c: E2 0E 00 82 14 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 F9 [20:07:58]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [20:07:58]wFMCommunicate OK [20:07:58]SAM_PROTO_GetShiftState done [20:07:58]FM_GetShiftState done [20:07:58]req_shift_opened done [20:07:58]requested_item shift.open_date is exist - process it [20:07:58]req_shift_open_date [20:07:58]req_shift_open_date done [20:07:58]produce_requested_data done [20:07:58]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30471,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [20:07:58]process_action_free close_receipt [20:07:58]json_value_free [20:07:58]json_value_free done [20:07:58]process_json_proto returns [20:07:58]Send response to host [20:07:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30471,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [20:07:58]free response buf [20:07:58]execute_script done [20:07:58]execute_script returns [20:07:58]free content buf [20:07:58]Sock 7.Close socket [20:07:58]Sock 7.Thread stoped [20:08:02]OFD Sender: No OFD packet to send [20:08:07]OFD Sender: No OFD packet to send [20:08:10]accept exits with 9 [20:08:10]New connection [20:08:10]New thread 3067489636 created [20:08:10]Thread 3067346276 joined [20:08:10]Waiting for new connection... [20:08:10] Sock 9.Parse request [20:08:10]Sock 9.Check first char [20:08:10]Sock 9.First char is OK [20:08:10]request: POST /json_proto HTTP/1.0 [20:08:10]Method: POST [20:08:10]URL: /json_proto [20:08:10]Method is POST - this is cgi request [20:08:10]url: /json_proto [20:08:10]query_string will be loaded in cgi processing [20:08:10]execute_cgi json_proto POST (null) [20:08:10]execute_cgi path=json_proto method=POST [20:08:10]POST find Content-Length [20:08:10]Host: 172.17.51.3:8080 [20:08:10]Content-Length: 682 [20:08:10]Content-Type: application/json [20:08:10] [20:08:10]POST finish read [20:08:10]Found Content-Length = 682 [20:08:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342875", "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" : 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" ] } } [20:08:10]execute_script... [20:08:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342875", "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" : 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" ] } } [20:08:10]POST & json_proto [20:08:10]process_json_proto [20:08:10]json parsed OK: [20:08:10]protocol is kg_v1.0 [20:08:10]action value=close_receipt [20:08:10]process_action close_receipt [20:08:10]cmd_close_receipt [20:08:10]MH_GetDate [20:08:10]Write to MH i2c: F0 00 00 83 14 86 [20:08:10]Write i2c OK [20:08:10]MH_I2C_Read... [20:08:10]Read from MH i2c: F0 [20:08:10]MH_I2C_Read... [20:08:10]Read from MH i2c: F0 09 00 [20:08:10]MH_I2C_Read... [20:08:10]Read from MH i2c: F0 09 00 83 14 00 2A 63 15 67 04 C1 95 66 58 [20:08:10]GetLastDocTimeStamp 1729454875 [20:08:10]current date 1729454890 [20:08:10]FM_GetShiftState [20:08:10]SAM_PROTO_GetShiftState [20:08:10]wFMCommunicate request_size=4 [20:08:10]MH_SAM_APDU [20:08:10]CAPDU: 80 13 01 00 [20:08:10]Write to MH i2c: E2 08 00 84 14 80 13 01 00 00 00 00 00 15 [20:08:10]Write i2c OK [20:08:10]MH_I2C_Read... [20:08:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:08:10]Read from MH i2c: E2 [20:08:10]MH_I2C_Read... [20:08:10]Read from MH i2c: E2 0E 00 [20:08:10]MH_I2C_Read... [20:08:10]Read from MH i2c: E2 0E 00 84 14 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 FB [20:08:10]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [20:08:10]wFMCommunicate OK [20:08:10]SAM_PROTO_GetShiftState done [20:08:10]FM_GetShiftState done [20:08:10]opened in 1729384718 [20:08:10]opened+sec_in_day 1729471118 [20:08:10]quantity*price = 200043 [20:08:10]sum+1 = 200044 [20:08:10]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 СНО: Общий режим Чек 254 20.10.2024 20:08 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30472 ФПД: 249941801881687 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T200811&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30472&fm=249941801881687&tin=02508201610067®Number=0000000000186857&sum=200000 [20:08:11]StoreToDocumentArchive [20:08:11]shift 114 fd 30472 [20:08:11]save to /storage/0114/doc_00030472 [20:08:11]save last doc name /storage/0114/doc_00030472 to /storage/kkm_last_doc_name [20:08:11]save OK [20:08:11]Clear old archive folders... [20:08:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:08:11]tlvbuf is B6F5DAE0 [20:08:11]SAM_PROTO_ClearQueue [20:08:11]wFMCommunicate request_size=4 [20:08:11]MH_SAM_APDU [20:08:11]CAPDU: 80 09 00 00 [20:08:11]Write to MH i2c: E2 08 00 91 14 80 09 00 00 00 00 00 00 17 [20:08:11]Write i2c OK [20:08:11]MH_I2C_Read... [20:08:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:08:11]Read from MH i2c: E2 [20:08:11]MH_I2C_Read... [20:08:11]Read from MH i2c: E2 03 00 [20:08:11]MH_I2C_Read... [20:08:11]Read from MH i2c: E2 03 00 91 14 00 90 00 19 [20:08:11]RAPDU: 90 00 [20:08:11]wFMCommunicate OK [20:08:11]SAM_PROTO_ClearQueue done [20:08:11]KKMCreateOFDPacket [20:08:11]OFDProtocolAddRootSTLVToBuf [20:08:11]FM_MakeSignedData [20:08:11]FM_MakeSignedData [20:08:11]SAM_PROTO_SignData [20:08:11]wFMCommunicate request_size=4 [20:08:11]MH_SAM_APDU [20:08:11]CAPDU: 80 0D 01 02 [20:08:11]Write to MH i2c: E2 08 00 92 14 80 0D 01 02 00 00 00 00 1F [20:08:11]Write i2c OK [20:08:11]MH_I2C_Read... [20:08:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:08:11]Read from MH i2c: E2 [20:08:11]MH_I2C_Read... [20:08:11]Read from MH i2c: E2 03 00 [20:08:11]MH_I2C_Read... [20:08:11]Read from MH i2c: E2 03 00 92 14 00 90 00 1A [20:08:11]RAPDU: 90 00 [20:08:11]wFMCommunicate OK [20:08:11]wFMCommunicate request_size=255 [20:08:11]MH_SAM_APDU [20: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 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 FE 00 00 00 F4 03 04 00 2B 63 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 77 00 00 35 04 06 00 E3 [20:08:11]Write to MH i2c: E2 02 01 93 14 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 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 FE 00 00 00 F4 03 04 00 2B 63 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 77 00 00 35 04 06 00 E3 00 00 35 [20:08:11]Write i2c OK [20:08:11]MH_I2C_Read... [20:08:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:08:11]Read from MH i2c: E2 [20:08:11]MH_I2C_Read... [20:08:11]Read from MH i2c: E2 03 00 [20:08:11]MH_I2C_Read... [20:08:11]Read from MH i2c: E2 03 00 93 14 00 90 00 1B [20:08:11]RAPDU: 90 00 [20:08:11]wFMCommunicate OK [20:08:11]wFMCommunicate request_size=10 [20:08:11]MH_SAM_APDU [20:08:11]CAPDU: 80 0D 02 02 05 52 1C 50 D0 57 [20:08:11]Write to MH i2c: E2 0D 00 94 14 80 0D 02 02 05 00 52 1C 50 D0 57 00 00 11 [20:08:11]Write i2c OK [20:08:11]MH_I2C_Read... [20:08:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:08:11]Read from MH i2c: E2 [20:08:11]MH_I2C_Read... [20:08:11]Read from MH i2c: E2 03 00 [20:08:11]MH_I2C_Read... [20:08:11]Read from MH i2c: E2 03 00 94 14 00 90 00 1C [20:08:11]RAPDU: 90 00 [20:08:11]wFMCommunicate OK [20:08:11]wFMCommunicate request_size=4 [20:08:11]MH_SAM_APDU [20:08:11]CAPDU: 80 0D 03 02 [20:08:11]Write to MH i2c: E2 08 00 95 14 80 0D 03 02 00 00 00 00 24 [20:08:11]Write i2c OK [20:08:11]MH_I2C_Read... [20:08:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:08:11]Read from MH i2c: E2 [20:08:11]MH_I2C_Read... [20:08:11]Read from MH i2c: E2 0B 00 [20:08:11]MH_I2C_Read... [20:08:11]Read from MH i2c: E2 0B 00 95 14 00 4E F6 E8 00 AC 13 72 77 90 00 F9 [20:08:11]RAPDU: 4E F6 E8 00 AC 13 72 77 90 00 [20:08:11]wFMCommunicate OK [20:08:11]SAM_PROTO_SignData done [20:08:11]FM_MakeSignedData done [20:08:11]CreateOFDProtocolMessage [20:08:11]wFMCommunicate request_size=4 [20:08:11]MH_SAM_APDU [20:08:11]CAPDU: 80 11 00 00 [20:08:11]Write to MH i2c: E2 08 00 96 14 80 11 00 00 00 00 00 00 24 [20:08:11]Write i2c OK [20:08:11]MH_I2C_Read... [20:08:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:08:11]Read from MH i2c: E2 [20:08:11]MH_I2C_Read... [20:08:11]Read from MH i2c: E2 17 00 [20:08:11]MH_I2C_Read... [20:08:11]Read from MH i2c: E2 17 00 96 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 72 [20: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 [20:08:11]wFMCommunicate OK [20:08:11]CreateOFDProtocolMessage done [20:08:11]OFDSenderStorePacket 30472 [20:08:11]StoreOFDPacket docnum=30472 [20: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 67 79 07 01 20 BC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 FE 00 00 00 F4 03 04 00 2B 63 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 77 00 00 35 04 06 00 E3 52 1C 50 D0 57 4E F6 E8 00 AC 13 72 77 [20:08:11]CheckFolder [20:08:11]dirname=/storage/ofd_packets [20:08:11]CheckFolder done [20:08:11]ProducePacketName [20:08:11]name=ofd_packets/00030472 [20:08:11]NVStorageSaveData ofd_packets/00030472 [20:08:11]File name is /storage/ofd_packets/00030472 [20:08:11]Write 301 bytes [20:08:11]NVStorageSaveData done [20:08:11]OFDSenderStorePacket done [20:08:11]KKMCreateOFDPacket done [20:08:11]NVStorageSaveData kkm_last_timestamp [20:08:11]File name is /storage/kkm_last_timestamp [20:08:11]Write 4 bytes [20:08:11]NVStorageSaveData done [20:08:11]ExternCall_PrintAddStr [20:08:11]wPrintStart [20:08:11]Write to MH i2c: 01 00 00 97 14 AB [20:08:11]Write i2c OK [20:08:11]MH_I2C_Read... [20:08:11]Read from MH i2c: 01 [20:08:11]MH_I2C_Read... [20:08:11]Read from MH i2c: 01 07 00 [20:08:11]MH_I2C_Read... [20:08:11]Read from MH i2c: 01 07 00 97 14 00 00 00 00 00 FF 0F C0 [20:08:11]RasterBufferAndPrint [20:08:11]line Счет N : (1)342875 [20:08:11]line ИНН: 02508201610067 [20:08:11]line Контрольно-Кассовый Чек [20:08:11]line ПРОДАЖА [20:08:11]line ТРК (МРК, ГНК) : 32 [20:08:11]line Товар: 2710124500 [20:08:11]line Аи-95-К-3 [20:08:11]line 26.960 * 74.20 [20:08:11]line = 2000.43 [20:08:11]line НДС 12% НСП 1% [20:08:11]line > о реализуемом товаре [20:08:11]line ОКРУГЛЕНИЕ: -0.43 [20:08:11]line ИТОГО: 2000.00 [20:08:11]line Внесено: 2000.00 [20:08:11]line СДАЧА: 0.00 [20:08:11]line НСП 1% : 17.70 [20:08:11]line НДС 12% : 212.43 [20:08:11]line Наличными: 2000.00 [20:08:11]line Безнал.: 0.00 [20:08:11]line Место: АЗС № 78 "Партнер Нефть" [20:08:11]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [20:08:11]line СНО: Общий режим [20:08:11]line Чек 254 20.10.2024 20:08 [20:08:11]line Смена: 114 ФФД: 1.0 [20:08:11]line ЗНМ: 0300000137 [20:08:11]line РНМ: 0000000000186857 [20:08:11]line Версия ККМ: v1.0 [20:08:11]line ФМ: 0000000002094219 [20:08:11]line ФД: 30472 [20:08:11]line ФПД: 249941801881687 [20:08:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T200811&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30472&fm=249941801881687&tin=02508201610067®Number=0000000000186857&sum=200000 [20:08:12]OFD Sender: Processing packet 30472 [packets to send 10, broken 9] [20:08:12]ProducePacketName [20:08:12]name=ofd_packets/00030472 [20:08:12]OFD Sender: To server: pG, [20:08:12]CommunicateWithHost lk.salyk.kg:30040 [20:08:12]ConnectInit lk.salyk.kg [20:08:12]written 0, free lines is 4095 [20:08:12]Connected sock=10 [20:08: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 67 79 07 01 20 BC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 FE 00 00 00 F4 03 04 00 2B 63 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 77 00 00 35 04 06 00 E3 52 1C 50 D0 57 4E F6 E8 00 AC 13 72 77 [20: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 6B D9 47 00 26 16 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 08 77 00 00 F4 03 04 00 AD 0D 15 67 B6 04 01 00 00 A7 D4 70 7C 27 EE 19 F2 [20:08:12]CommunicateWithHost err = 0 [20:08:12]CheckOFDResponse [20:08:12]1017 (14) - 77093643461234 [20:08:12]1041 (16) - 0000000002094219 [20:08:12]1040 (4) - 30472 [20:08:12]1012 (4) - 20.10.2024 14:03 [20:08:12]1206 (1) - 0 [20:08:12]OFD Sender: Remove packet 30472 [20:08:12]ProducePacketName [20:08:12]name=ofd_packets/00030472 [20:08:12]NVStorageDeleteData [20:08:12]Write to MH i2c: 01 00 00 C2 14 D6 [20:08:12]Write i2c OK [20:08:12]MH_I2C_Read... [20:08:12]Read from MH i2c: 01 [20:08:12]MH_I2C_Read... [20:08:12]Read from MH i2c: 01 07 00 [20:08:12]MH_I2C_Read... [20:08:12]Read from MH i2c: 01 07 00 C2 14 00 00 00 00 00 F5 0C DE [20:08:12]RasterBufferAndPrint [20:08:12]line [20:08:12]line [20:08:12]line [20:08:12]line [20:08:12]line [20:08:12]written 0, free lines is 3323 [20:08:12]MH_Cut [20:08:12]Write to MH i2c: D1 01 00 C9 14 01 AF [20:08:12]Write i2c OK [20:08:12]MH_I2C_Read... [20:08:12]Read from MH i2c: D1 [20:08:12]MH_I2C_Read... [20:08:12]Read from MH i2c: D1 01 00 [20:08:12]MH_I2C_Read... [20:08:12]Read from MH i2c: D1 01 00 C9 14 00 AE [20:08:12]Write to MH i2c: 01 00 00 CA 14 DE [20:08:12]Write i2c OK [20:08:12]MH_I2C_Read... [20:08:12]OFD Sender: No OFD packet to send [20:08:13]*** Cut start [20:08:13]*** Partial cut [20:08:13]*** CUTSNS_PIN = 1 [20:08:13]*** CUTSNS_PIN = 0 [20:08:13]*** Brake cut motor [20:08:13]Read from MH i2c: 01 [20:08:13]MH_I2C_Read... [20:08:13]*** Stop cut motor [20:08:13]*** Cut end [20:08:13]Read from MH i2c: 01 07 00 [20:08:13]MH_I2C_Read... [20:08:13]Read from MH i2c: 01 07 00 CA 14 00 00 00 00 00 FF 0F F3 [20:08:13]process_action close_receipt done [20:08:13]requested_data is exist [20:08:13]produce_requested_data [20:08:13]requested_item fm.sn is exist - process it [20:08:13]wFMCommunicate request_size=4 [20:08:13]MH_SAM_APDU [20:08:13]CAPDU: 80 11 00 00 [20:08:13]Write to MH i2c: E2 08 00 CB 14 80 11 00 00 00 00 00 00 59 [20:08:13]Write i2c OK [20:08:13]MH_I2C_Read... [20:08:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:08:13]Read from MH i2c: E2 [20:08:13]MH_I2C_Read... [20:08:13]Read from MH i2c: E2 17 00 [20:08:13]MH_I2C_Read... [20:08:13]Read from MH i2c: E2 17 00 CB 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 A7 [20: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 [20:08:13]wFMCommunicate OK [20:08:13]requested_item fd.num is exist - process it [20:08:13]SAM_PROTO_GetFieldsCounters [20:08:13]wFMCommunicate request_size=4 [20:08:13]MH_SAM_APDU [20:08:13]CAPDU: 80 13 00 00 [20:08:13]Write to MH i2c: E2 08 00 CC 14 80 13 00 00 00 00 00 00 5C [20:08:13]Write i2c OK [20:08:13]MH_I2C_Read... [20:08:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:08:14]Read from MH i2c: E2 [20:08:14]MH_I2C_Read... [20:08:14]Read from MH i2c: E2 62 00 [20:08:14]MH_I2C_Read... [20:08:14]Read from MH i2c: E2 62 00 CC 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 77 00 00 0E 04 04 00 72 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 6D [20:08: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 08 77 00 00 0E 04 04 00 72 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 [20:08:14]wFMCommunicate OK [20:08:14]SAM_PROTO_GetFieldsCounters done [20:08:14]requested_item shift.num is exist - process it [20:08:14]requested_item shift.opened is exist - process it [20:08:14]req_shift_opened [20:08:14]FM_GetShiftState [20:08:14]SAM_PROTO_GetShiftState [20:08:14]wFMCommunicate request_size=4 [20:08:14]MH_SAM_APDU [20:08:14]CAPDU: 80 13 01 00 [20:08:14]Write to MH i2c: E2 08 00 CD 14 80 13 01 00 00 00 00 00 5E [20:08:14]Write i2c OK [20:08:14]MH_I2C_Read... [20:08:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:08:14]Read from MH i2c: E2 [20:08:14]MH_I2C_Read... [20:08:14]Read from MH i2c: E2 0E 00 [20:08:14]MH_I2C_Read... [20:08:14]Read from MH i2c: E2 0E 00 CD 14 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 44 [20:08:14]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [20:08:14]wFMCommunicate OK [20:08:14]SAM_PROTO_GetShiftState done [20:08:14]FM_GetShiftState done [20:08:14]req_shift_opened done [20:08:14]requested_item shift.open_date is exist - process it [20:08:14]req_shift_open_date [20:08:14]req_shift_open_date done [20:08:14]produce_requested_data done [20:08:14]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30472,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [20:08:14]process_action_free close_receipt [20:08:14]json_value_free [20:08:14]json_value_free done [20:08:14]process_json_proto returns [20:08:14]Send response to host [20:08:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30472,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [20:08:14]free response buf [20:08:14]execute_script done [20:08:14]execute_script returns [20:08:14]free content buf [20:08:14]Sock 9.Close socket [20:08:14]Sock 9.Thread stoped [20:08:17]OFD Sender: No OFD packet to send [20:08:22]OFD Sender: No OFD packet to send [20:08:27]OFD Sender: No OFD packet to send [20:08:32]OFD Sender: No OFD packet to send [20:08:37]OFD Sender: No OFD packet to send [20:08:42]OFD Sender: No OFD packet to send [20:08:47]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:02]accept exits with 7 [20:10:02]New connection [20:10:02]New thread 3067346276 created [20:10:02]Thread 3067489636 joined [20:10:02]Waiting for new connection... [20:10:02] Sock 7.Parse request [20:10:02]Sock 7.Check first char [20:10:02]Sock 7.First char is OK [20:10:02]request: POST /json_proto HTTP/1.0 [20:10:02]Method: POST [20:10:02]URL: /json_proto [20:10:02]Method is POST - this is cgi request [20:10:02]url: /json_proto [20:10:02]query_string will be loaded in cgi processing [20:10:02]execute_cgi json_proto POST (null) [20:10:02]execute_cgi path=json_proto method=POST [20:10:02]POST find Content-Length [20:10:02]Host: 172.17.51.3:8080 [20:10:02]Content-Length: 840 [20:10:02]Content-Type: application/json [20:10:02] [20:10:02]POST finish read [20:10:02]Found Content-Length = 840 [20:10:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342877", "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" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 600.09 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:10:02]execute_script... [20:10: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)342877", "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" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 600.09 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:10:02]POST & json_proto [20:10:02]process_json_proto [20:10:02]json parsed OK: [20:10:02]protocol is kg_v1.0 [20:10:02]action value=close_receipt [20:10:02]process_action close_receipt [20:10:02]cmd_close_receipt [20:10:02]MH_GetDate [20:10:02]Write to MH i2c: F0 00 00 CE 14 D1 [20:10:02]Write i2c OK [20:10:02]MH_I2C_Read... [20:10:02]Read from MH i2c: F0 [20:10:02]MH_I2C_Read... [20:10:02]Read from MH i2c: F0 09 00 [20:10:02]MH_I2C_Read... [20:10:02]Read from MH i2c: F0 09 00 CE 14 00 9A 63 15 67 04 C1 95 66 13 [20:10:02]GetLastDocTimeStamp 1729454891 [20:10:02]current date 1729455002 [20:10:02]FM_GetShiftState [20:10:02]SAM_PROTO_GetShiftState [20:10:02]wFMCommunicate request_size=4 [20:10:02]MH_SAM_APDU [20:10:02]CAPDU: 80 13 01 00 [20:10:02]Write to MH i2c: E2 08 00 CF 14 80 13 01 00 00 00 00 00 60 [20:10:02]Write i2c OK [20:10:02]MH_I2C_Read... [20:10:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:10:02]Read from MH i2c: E2 [20:10:02]MH_I2C_Read... [20:10:02]Read from MH i2c: E2 0E 00 [20:10:02]MH_I2C_Read... [20:10:02]Read from MH i2c: E2 0E 00 CF 14 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 46 [20:10:02]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [20:10:02]wFMCommunicate OK [20:10:02]SAM_PROTO_GetShiftState done [20:10:02]FM_GetShiftState done [20:10:02]opened in 1729384718 [20:10:02]opened+sec_in_day 1729471118 [20:10:02]quantity*price = 60009 [20:10:02]sum+1 = 60010 [20:10:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 600.09 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 0.00 Безнал.: 600.09 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 255 20.10.2024 20:10 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Платежная система: АКБ Кыргызстан ФМ: 0000000002094219 ФД: 30473 ФПД: 113965473287927 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T201002&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30473&fm=113965473287927&tin=02508201610067®Number=0000000000186857&sum=60009 [20:10:03]StoreToDocumentArchive [20:10:03]shift 114 fd 30473 [20:10:03]save to /storage/0114/doc_00030473 [20:10:03]save last doc name /storage/0114/doc_00030473 to /storage/kkm_last_doc_name [20:10:03]save OK [20:10:03]Clear old archive folders... [20:10:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:10:03]tlvbuf is 01DB8930 [20:10:03]SAM_PROTO_ClearQueue [20:10:03]wFMCommunicate request_size=4 [20:10:03]MH_SAM_APDU [20:10:03]CAPDU: 80 09 00 00 [20:10:03]Write to MH i2c: E2 08 00 DC 14 80 09 00 00 00 00 00 00 62 [20:10:03]Write i2c OK [20:10:03]MH_I2C_Read... [20:10:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:10:03]Read from MH i2c: E2 [20:10:03]MH_I2C_Read... [20:10:03]Read from MH i2c: E2 03 00 [20:10:03]MH_I2C_Read... [20:10:03]Read from MH i2c: E2 03 00 DC 14 00 90 00 64 [20:10:03]RAPDU: 90 00 [20:10:03]wFMCommunicate OK [20:10:03]SAM_PROTO_ClearQueue done [20:10:03]KKMCreateOFDPacket [20:10:03]OFDProtocolAddRootSTLVToBuf [20:10:03]FM_MakeSignedData [20:10:03]FM_MakeSignedData [20:10:03]SAM_PROTO_SignData [20:10:03]wFMCommunicate request_size=4 [20:10:03]MH_SAM_APDU [20:10:03]CAPDU: 80 0D 01 02 [20:10:03]Write to MH i2c: E2 08 00 DD 14 80 0D 01 02 00 00 00 00 6A [20:10:03]Write i2c OK [20:10:03]MH_I2C_Read... [20:10:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:10:03]Read from MH i2c: E2 [20:10:03]MH_I2C_Read... [20:10:03]Read from MH i2c: E2 03 00 [20:10:03]MH_I2C_Read... [20:10:03]Read from MH i2c: E2 03 00 DD 14 00 90 00 65 [20:10:03]RAPDU: 90 00 [20:10:03]wFMCommunicate OK [20:10:03]wFMCommunicate request_size=255 [20:10:03]MH_SAM_APDU [20:10: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 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 69 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 00 00 00 00 00 00 39 04 06 00 69 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 00 00 00 F4 03 04 00 9A 63 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 77 00 00 35 04 06 00 67 [20:10:03]Write to MH i2c: E2 02 01 DE 14 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 69 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 00 00 00 00 00 00 39 04 06 00 69 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 00 00 00 F4 03 04 00 9A 63 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 77 00 00 35 04 06 00 67 00 00 BB [20:10:03]Write i2c OK [20:10:03]MH_I2C_Read... [20:10:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:10:03]Read from MH i2c: E2 [20:10:03]MH_I2C_Read... [20:10:03]Read from MH i2c: E2 03 00 [20:10:03]MH_I2C_Read... [20:10:03]Read from MH i2c: E2 03 00 DE 14 00 90 00 66 [20:10:03]RAPDU: 90 00 [20:10:03]wFMCommunicate OK [20:10:03]wFMCommunicate request_size=10 [20:10:03]MH_SAM_APDU [20:10:03]CAPDU: 80 0D 02 02 05 A6 A7 8D 4E F7 [20:10:03]Write to MH i2c: E2 0D 00 DF 14 80 0D 02 02 05 00 A6 A7 8D 4E F7 00 00 96 [20:10:03]Write i2c OK [20:10:03]MH_I2C_Read... [20:10:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:10:03]Read from MH i2c: E2 [20:10:03]MH_I2C_Read... [20:10:03]Read from MH i2c: E2 03 00 [20:10:03]MH_I2C_Read... [20:10:03]Read from MH i2c: E2 03 00 DF 14 00 90 00 67 [20:10:03]RAPDU: 90 00 [20:10:03]wFMCommunicate OK [20:10:03]wFMCommunicate request_size=4 [20:10:03]MH_SAM_APDU [20:10:03]CAPDU: 80 0D 03 02 [20:10:03]Write to MH i2c: E2 08 00 E0 14 80 0D 03 02 00 00 00 00 6F [20:10:03]Write i2c OK [20:10:03]MH_I2C_Read... [20:10:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:10:03]Read from MH i2c: E2 [20:10:03]MH_I2C_Read... [20:10:03]Read from MH i2c: E2 0B 00 [20:10:03]MH_I2C_Read... [20:10:03]Read from MH i2c: E2 0B 00 E0 14 00 25 F5 EA A8 D8 01 1B B4 90 00 C4 [20:10:03]RAPDU: 25 F5 EA A8 D8 01 1B B4 90 00 [20:10:03]wFMCommunicate OK [20:10:03]SAM_PROTO_SignData done [20:10:03]FM_MakeSignedData done [20:10:03]CreateOFDProtocolMessage [20:10:03]wFMCommunicate request_size=4 [20:10:03]MH_SAM_APDU [20:10:03]CAPDU: 80 11 00 00 [20:10:03]Write to MH i2c: E2 08 00 E1 14 80 11 00 00 00 00 00 00 6F [20:10:03]Write i2c OK [20:10:03]MH_I2C_Read... [20:10:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:10:03]Read from MH i2c: E2 [20:10:03]MH_I2C_Read... [20:10:03]Read from MH i2c: E2 17 00 [20:10:03]MH_I2C_Read... [20:10:03]Read from MH i2c: E2 17 00 E1 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 BD [20:10:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [20:10:03]wFMCommunicate OK [20:10:03]CreateOFDProtocolMessage done [20:10:03]OFDSenderStorePacket 30473 [20:10:03]StoreOFDPacket docnum=30473 [20:10: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 0F 01 00 00 79 13 07 01 8A 68 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 69 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 00 00 00 00 00 00 39 04 06 00 69 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 00 00 00 F4 03 04 00 9A 63 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 77 00 00 35 04 06 00 67 A6 A7 8D 4E F7 25 F5 EA A8 D8 01 1B B4 [20:10:03]CheckFolder [20:10:03]dirname=/storage/ofd_packets [20:10:03]CheckFolder done [20:10:03]ProducePacketName [20:10:03]name=ofd_packets/00030473 [20:10:03]NVStorageSaveData ofd_packets/00030473 [20:10:03]File name is /storage/ofd_packets/00030473 [20:10:03]Write 301 bytes [20:10:03]NVStorageSaveData done [20:10:03]OFDSenderStorePacket done [20:10:03]KKMCreateOFDPacket done [20:10:03]NVStorageSaveData kkm_last_timestamp [20:10:03]File name is /storage/kkm_last_timestamp [20:10:03]Write 4 bytes [20:10:03]NVStorageSaveData done [20:10:03]ExternCall_PrintAddStr [20:10:03]wPrintStart [20:10:03]Write to MH i2c: 01 00 00 E2 14 F6 [20:10:03]Write i2c OK [20:10:03]MH_I2C_Read... [20:10:03]Read from MH i2c: 01 [20:10:03]MH_I2C_Read... [20:10:03]Read from MH i2c: 01 07 00 [20:10:03]MH_I2C_Read... [20:10:03]Read from MH i2c: 01 07 00 E2 14 00 00 00 00 00 FF 0F 0B [20:10:03]RasterBufferAndPrint [20:10:03]line Счет N : (1)342877 [20:10:03]line ИНН: 02508201610067 [20:10:03]line Контрольно-Кассовый Чек [20:10:03]line ПРОДАЖА [20:10:03]line ТРК (МРК, ГНК) : 53 [20:10:03]line Товар: 2710124130 [20:10:03]line Аи-92-К-2 [20:10:03]line 8.970 * 66.90 [20:10:03]line = 600.09 [20:10:03]line НДС 12% НСП 1% [20:10:03]line > о реализуемом товаре [20:10:03]line ИТОГО: 600.09 [20:10:03]line НСП 1% : 5.31 [20:10:03]line НДС 12% : 63.73 [20:10:03]line Наличными: 0.00 [20:10:03]line Безнал.: 600.09 [20:10:03]line Место: АЗС № 78 "Партнер Нефть" [20:10:03]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [20:10:03]line СНО: Общий режим [20:10:03]line Чек 255 20.10.2024 20:10 [20:10:03]line Смена: 114 ФФД: 1.0 [20:10:03]line ЗНМ: 0300000137 [20:10:03]line РНМ: 0000000000186857 [20:10:03]line Версия ККМ: v1.0 [20:10:03]line Платежная система: АКБ Кыргызстан [20:10:03]line ФМ: 0000000002094219 [20:10:03]line ФД: 30473 [20:10:03]line ФПД: 113965473287927 [20:10:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T201002&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30473&fm=113965473287927&tin=02508201610067®Number=0000000000186857&sum=60009 [20:10:04]OFD Sender: Processing packet 30473 [packets to send 10, broken 9] [20:10:04]ProducePacketName [20:10:04]name=ofd_packets/00030473 [20:10:04]OFD Sender: To server: pG, [20:10:04]CommunicateWithHost lk.salyk.kg:30040 [20:10:04]ConnectInit lk.salyk.kg [20:10:04]written 0, free lines is 4095 [20:10:04]Connected sock=10 [20:10: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 79 13 07 01 8A 68 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 69 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 00 00 00 00 00 00 39 04 06 00 69 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 00 00 00 F4 03 04 00 9A 63 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 77 00 00 35 04 06 00 67 A6 A7 8D 4E F7 25 F5 EA A8 D8 01 1B B4 [20:10: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 86 1F 47 00 3B 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 09 77 00 00 F4 03 04 00 1D 0E 15 67 B6 04 01 00 00 00 68 B9 27 BC C8 0A 27 [20:10:04]CommunicateWithHost err = 0 [20:10:04]CheckOFDResponse [20:10:04]1017 (14) - 77093643461234 [20:10:04]1041 (16) - 0000000002094219 [20:10:04]1040 (4) - 30473 [20:10:04]1012 (4) - 20.10.2024 14:05 [20:10:04]1206 (1) - 0 [20:10:04]OFD Sender: Remove packet 30473 [20:10:04]ProducePacketName [20:10:04]name=ofd_packets/00030473 [20:10:04]NVStorageDeleteData [20:10:04]Write to MH i2c: 01 00 00 0C 15 21 [20:10:04]Write i2c OK [20:10:04]MH_I2C_Read... [20:10:04]Read from MH i2c: 01 [20:10:04]MH_I2C_Read... [20:10:04]Read from MH i2c: 01 07 00 [20:10:04]MH_I2C_Read... [20:10:04]Read from MH i2c: 01 07 00 0C 15 00 00 00 00 00 09 0D 3E [20:10:04]RasterBufferAndPrint [20:10:04]line [20:10:04]line [20:10:04]line [20:10:04]line [20:10:04]line [20:10:04]written 0, free lines is 3347 [20:10:04]MH_Cut [20:10:04]Write to MH i2c: D1 01 00 13 15 01 FA [20:10:04]Write i2c OK [20:10:04]MH_I2C_Read... [20:10:04]Read from MH i2c: D1 [20:10:04]MH_I2C_Read... [20:10:04]Read from MH i2c: D1 01 00 [20:10:04]MH_I2C_Read... [20:10:04]Read from MH i2c: D1 01 00 13 15 00 F9 [20:10:04]Write to MH i2c: 01 00 00 14 15 29 [20:10:04]Write i2c OK [20:10:04]MH_I2C_Read... [20:10:04]OFD Sender: No OFD packet to send [20:10:05]*** Cut start [20:10:05]*** Partial cut [20:10:05]*** CUTSNS_PIN = 1 [20:10:05]*** CUTSNS_PIN = 0 [20:10:05]*** Brake cut motor [20:10:05]Read from MH i2c: 01 [20:10:05]MH_I2C_Read... [20:10:05]*** Stop cut motor [20:10:05]*** Cut end [20:10:05]Read from MH i2c: 01 07 00 [20:10:05]MH_I2C_Read... [20:10:05]Read from MH i2c: 01 07 00 14 15 00 00 00 00 00 FF 0F 3E [20:10:05]process_action close_receipt done [20:10:05]requested_data is exist [20:10:05]produce_requested_data [20:10:05]requested_item fm.sn is exist - process it [20:10:05]wFMCommunicate request_size=4 [20:10:05]MH_SAM_APDU [20:10:05]CAPDU: 80 11 00 00 [20:10:05]Write to MH i2c: E2 08 00 15 15 80 11 00 00 00 00 00 00 A4 [20:10:05]Write i2c OK [20:10:05]MH_I2C_Read... [20:10:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:10:05]Read from MH i2c: E2 [20:10:05]MH_I2C_Read... [20:10:05]Read from MH i2c: E2 17 00 [20:10:05]MH_I2C_Read... [20:10:05]Read from MH i2c: E2 17 00 15 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 F2 [20:10:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [20:10:05]wFMCommunicate OK [20:10:05]requested_item fd.num is exist - process it [20:10:05]SAM_PROTO_GetFieldsCounters [20:10:05]wFMCommunicate request_size=4 [20:10:05]MH_SAM_APDU [20:10:05]CAPDU: 80 13 00 00 [20:10:05]Write to MH i2c: E2 08 00 16 15 80 13 00 00 00 00 00 00 A7 [20:10:05]Write i2c OK [20:10:05]MH_I2C_Read... [20:10:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:10:05]Read from MH i2c: E2 [20:10:05]MH_I2C_Read... [20:10:05]Read from MH i2c: E2 62 00 [20:10:05]MH_I2C_Read... [20:10:05]Read from MH i2c: E2 62 00 16 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 77 00 00 0E 04 04 00 72 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 BD [20:10: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 09 77 00 00 0E 04 04 00 72 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 [20:10:05]wFMCommunicate OK [20:10:05]SAM_PROTO_GetFieldsCounters done [20:10:05]requested_item shift.num is exist - process it [20:10:05]requested_item shift.opened is exist - process it [20:10:05]req_shift_opened [20:10:05]FM_GetShiftState [20:10:05]SAM_PROTO_GetShiftState [20:10:05]wFMCommunicate request_size=4 [20:10:05]MH_SAM_APDU [20:10:05]CAPDU: 80 13 01 00 [20:10:05]Write to MH i2c: E2 08 00 17 15 80 13 01 00 00 00 00 00 A9 [20:10:05]Write i2c OK [20:10:05]MH_I2C_Read... [20:10:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:10:06]Read from MH i2c: E2 [20:10:06]MH_I2C_Read... [20:10:06]Read from MH i2c: E2 0E 00 [20:10:06]MH_I2C_Read... [20:10:06]Read from MH i2c: E2 0E 00 17 15 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 8F [20:10:06]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [20:10:06]wFMCommunicate OK [20:10:06]SAM_PROTO_GetShiftState done [20:10:06]FM_GetShiftState done [20:10:06]req_shift_opened done [20:10:06]requested_item shift.open_date is exist - process it [20:10:06]req_shift_open_date [20:10:06]req_shift_open_date done [20:10:06]produce_requested_data done [20:10:06]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30473,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [20:10:06]process_action_free close_receipt [20:10:06]json_value_free [20:10:06]json_value_free done [20:10:06]process_json_proto returns [20:10:06]Send response to host [20:10:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30473,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [20:10:06]free response buf [20:10:06]execute_script done [20:10:06]execute_script returns [20:10:06]free content buf [20:10:06]Sock 7.Close socket [20:10:06]Sock 7.Thread stoped [20:10:09]OFD Sender: No OFD packet to send [20:10:14]OFD Sender: No OFD packet to send [20:10:19]OFD Sender: No OFD packet to send [20:10:24]OFD Sender: No OFD packet to send [20:10:29]OFD Sender: No OFD packet to send [20:10:34]OFD Sender: No OFD packet to send [20:10:39]OFD Sender: No OFD packet to send [20:10:44]OFD Sender: No OFD packet to send [20:10:49]OFD Sender: No OFD packet to send [20:10:54]OFD Sender: No OFD packet to send [20:10:59]OFD Sender: No OFD packet to send [20:11:04]OFD Sender: No OFD packet to send [20:11:09]OFD Sender: No OFD packet to send [20:11:14]OFD Sender: No OFD packet to send [20:11:19]OFD Sender: No OFD packet to send [20:11:24]OFD Sender: No OFD packet to send [20:11:29]OFD Sender: No OFD packet to send [20:11:34]OFD Sender: No OFD packet to send [20:11:39]OFD Sender: No OFD packet to send [20:11:44]OFD Sender: No OFD packet to send [20:11:49]OFD Sender: No OFD packet to send [20:11:54]OFD Sender: No OFD packet to send [20:11:57]accept exits with 9 [20:11:57]New connection [20:11:57]New thread 3067489636 created [20:11:57]Thread 3067346276 joined [20:11:57]Waiting for new connection... [20:11:57] Sock 9.Parse request [20:11:57]Sock 9.Check first char [20:11:57]Sock 9.First char is OK [20:11:57]request: POST /json_proto HTTP/1.0 [20:11:57]Method: POST [20:11:57]URL: /json_proto [20:11:57]Method is POST - this is cgi request [20:11:57]url: /json_proto [20:11:57]query_string will be loaded in cgi processing [20:11:57]execute_cgi json_proto POST (null) [20:11:57]execute_cgi path=json_proto method=POST [20:11:57]POST find Content-Length [20:11:57]Host: 172.17.51.3:8080 [20:11:57]Content-Length: 677 [20:11:57]Content-Type: application/json [20:11:57] [20:11:57]POST finish read [20:11:57]Found Content-Length = 677 [20:11:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342878", "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" ] } } [20:11:57]execute_script... [20:11:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342878", "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" ] } } [20:11:57]POST & json_proto [20:11:57]process_json_proto [20:11:57]json parsed OK: [20:11:57]protocol is kg_v1.0 [20:11:57]action value=close_receipt [20:11:57]process_action close_receipt [20:11:57]cmd_close_receipt [20:11:57]MH_GetDate [20:11:57]Write to MH i2c: F0 00 00 18 15 1C [20:11:57]Write i2c OK [20:11:57]MH_I2C_Read... [20:11:57]Read from MH i2c: F0 [20:11:57]MH_I2C_Read... [20:11:57]Read from MH i2c: F0 09 00 [20:11:57]MH_I2C_Read... [20:11:57]Read from MH i2c: F0 09 00 18 15 00 0E 64 15 67 04 C1 95 66 D3 [20:11:57]GetLastDocTimeStamp 1729455002 [20:11:57]current date 1729455118 [20:11:57]FM_GetShiftState [20:11:57]SAM_PROTO_GetShiftState [20:11:57]wFMCommunicate request_size=4 [20:11:57]MH_SAM_APDU [20:11:57]CAPDU: 80 13 01 00 [20:11:57]Write to MH i2c: E2 08 00 19 15 80 13 01 00 00 00 00 00 AB [20:11:57]Write i2c OK [20:11:57]MH_I2C_Read... [20:11:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:11:57]Read from MH i2c: E2 [20:11:57]MH_I2C_Read... [20:11:57]Read from MH i2c: E2 0E 00 [20:11:57]MH_I2C_Read... [20:11:57]Read from MH i2c: E2 0E 00 19 15 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 91 [20:11:57]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [20:11:57]wFMCommunicate OK [20:11:57]SAM_PROTO_GetShiftState done [20:11:57]FM_GetShiftState done [20:11:57]opened in 1729384718 [20:11:57]opened+sec_in_day 1729471118 [20:11:57]quantity*price = 60009 [20:11:57]sum+1 = 60010 [20:11:57]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 СНО: Общий режим Чек 256 20.10.2024 20:11 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30474 ФПД: 174311600961338 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T201158&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30474&fm=174311600961338&tin=02508201610067®Number=0000000000186857&sum=60000 [20:11:58]StoreToDocumentArchive [20:11:58]shift 114 fd 30474 [20:11:58]save to /storage/0114/doc_00030474 [20:11:58]save last doc name /storage/0114/doc_00030474 to /storage/kkm_last_doc_name [20:11:58]save OK [20:11:58]Clear old archive folders... [20:11:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:11:58]tlvbuf is 01DB5FC0 [20:11:58]SAM_PROTO_ClearQueue [20:11:58]wFMCommunicate request_size=4 [20:11:58]MH_SAM_APDU [20:11:58]CAPDU: 80 09 00 00 [20:11:58]Write to MH i2c: E2 08 00 26 15 80 09 00 00 00 00 00 00 AD [20:11:58]Write i2c OK [20:11:58]MH_I2C_Read... [20:11:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:11:58]Read from MH i2c: E2 [20:11:58]MH_I2C_Read... [20:11:58]Read from MH i2c: E2 03 00 [20:11:58]MH_I2C_Read... [20:11:58]Read from MH i2c: E2 03 00 26 15 00 90 00 AF [20:11:58]RAPDU: 90 00 [20:11:58]wFMCommunicate OK [20:11:58]SAM_PROTO_ClearQueue done [20:11:58]KKMCreateOFDPacket [20:11:58]OFDProtocolAddRootSTLVToBuf [20:11:58]FM_MakeSignedData [20:11:58]FM_MakeSignedData [20:11:58]SAM_PROTO_SignData [20:11:58]wFMCommunicate request_size=4 [20:11:58]MH_SAM_APDU [20:11:58]CAPDU: 80 0D 01 02 [20:11:58]Write to MH i2c: E2 08 00 27 15 80 0D 01 02 00 00 00 00 B5 [20:11:58]Write i2c OK [20:11:58]MH_I2C_Read... [20:11:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:11:58]Read from MH i2c: E2 [20:11:58]MH_I2C_Read... [20:11:58]Read from MH i2c: E2 03 00 [20:11:58]MH_I2C_Read... [20:11:58]Read from MH i2c: E2 03 00 27 15 00 90 00 B0 [20:11:58]RAPDU: 90 00 [20:11:58]wFMCommunicate OK [20:11:58]wFMCommunicate request_size=255 [20:11:58]MH_SAM_APDU [20:11: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 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 00 01 00 00 F4 03 04 00 0E 64 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 77 00 00 35 04 06 00 9E [20:11:58]Write to MH i2c: E2 02 01 28 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 00 01 00 00 F4 03 04 00 0E 64 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 77 00 00 35 04 06 00 9E 00 00 A3 [20:11:58]Write i2c OK [20:11:58]MH_I2C_Read... [20:11:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:11:59]Read from MH i2c: E2 [20:11:59]MH_I2C_Read... [20:11:59]Read from MH i2c: E2 03 00 [20:11:59]MH_I2C_Read... [20:11:59]Read from MH i2c: E2 03 00 28 15 00 90 00 B1 [20:11:59]RAPDU: 90 00 [20:11:59]wFMCommunicate OK [20:11:59]wFMCommunicate request_size=10 [20:11:59]MH_SAM_APDU [20:11:59]CAPDU: 80 0D 02 02 05 89 15 0E 37 3A [20:11:59]Write to MH i2c: E2 0D 00 29 15 80 0D 02 02 05 00 89 15 0E 37 3A 00 00 DF [20:11:59]Write i2c OK [20:11:59]MH_I2C_Read... [20:11:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:11:59]Read from MH i2c: E2 [20:11:59]MH_I2C_Read... [20:11:59]Read from MH i2c: E2 03 00 [20:11:59]MH_I2C_Read... [20:11:59]Read from MH i2c: E2 03 00 29 15 00 90 00 B2 [20:11:59]RAPDU: 90 00 [20:11:59]wFMCommunicate OK [20:11:59]wFMCommunicate request_size=4 [20:11:59]MH_SAM_APDU [20:11:59]CAPDU: 80 0D 03 02 [20:11:59]Write to MH i2c: E2 08 00 2A 15 80 0D 03 02 00 00 00 00 BA [20:11:59]Write i2c OK [20:11:59]MH_I2C_Read... [20:11:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:11:59]Read from MH i2c: E2 [20:11:59]MH_I2C_Read... [20:11:59]Read from MH i2c: E2 0B 00 [20:11:59]MH_I2C_Read... [20:11:59]Read from MH i2c: E2 0B 00 2A 15 00 35 7A 53 80 C7 1C 0D 6A 90 00 97 [20:11:59]RAPDU: 35 7A 53 80 C7 1C 0D 6A 90 00 [20:11:59]wFMCommunicate OK [20:11:59]SAM_PROTO_SignData done [20:11:59]FM_MakeSignedData done [20:11:59]CreateOFDProtocolMessage [20:11:59]wFMCommunicate request_size=4 [20:11:59]MH_SAM_APDU [20:11:59]CAPDU: 80 11 00 00 [20:11:59]Write to MH i2c: E2 08 00 2B 15 80 11 00 00 00 00 00 00 BA [20:11:59]Write i2c OK [20:11:59]MH_I2C_Read... [20:11:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:11:59]Read from MH i2c: E2 [20:11:59]MH_I2C_Read... [20:11:59]Read from MH i2c: E2 17 00 [20:11:59]MH_I2C_Read... [20:11:59]Read from MH i2c: E2 17 00 2B 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 08 [20:11:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [20:11:59]wFMCommunicate OK [20:11:59]CreateOFDProtocolMessage done [20:11:59]OFDSenderStorePacket 30474 [20:11:59]StoreOFDPacket docnum=30474 [20:11: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 C3 EE 07 01 D1 95 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 00 01 00 00 F4 03 04 00 0E 64 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 77 00 00 35 04 06 00 9E 89 15 0E 37 3A 35 7A 53 80 C7 1C 0D 6A [20:11:59]CheckFolder [20:11:59]dirname=/storage/ofd_packets [20:11:59]CheckFolder done [20:11:59]ProducePacketName [20:11:59]name=ofd_packets/00030474 [20:11:59]NVStorageSaveData ofd_packets/00030474 [20:11:59]File name is /storage/ofd_packets/00030474 [20:11:59]Write 301 bytes [20:11:59]NVStorageSaveData done [20:11:59]OFDSenderStorePacket done [20:11:59]KKMCreateOFDPacket done [20:11:59]NVStorageSaveData kkm_last_timestamp [20:11:59]File name is /storage/kkm_last_timestamp [20:11:59]Write 4 bytes [20:11:59]NVStorageSaveData done [20:11:59]ExternCall_PrintAddStr [20:11:59]wPrintStart [20:11:59]Write to MH i2c: 01 00 00 2C 15 41 [20:11:59]OFD Sender: Processing packet 30474 [packets to send 10, broken 9] [20:11:59]ProducePacketName [20:11:59]name=ofd_packets/00030474 [20:11:59]OFD Sender: To server: pG, [20:11:59]CommunicateWithHost lk.salyk.kg:30040 [20:11:59]ConnectInit lk.salyk.kg [20:11:59]Write i2c OK [20:11:59]MH_I2C_Read... [20:11:59]Read from MH i2c: 01 [20:11:59]MH_I2C_Read... [20:11:59]Read from MH i2c: 01 07 00 [20:11:59]MH_I2C_Read... [20:11:59]Read from MH i2c: 01 07 00 2C 15 00 00 00 00 00 FF 0F 56 [20:11:59]RasterBufferAndPrint [20:11:59]line Счет N : (1)342878 [20:11:59]line ИНН: 02508201610067 [20:11:59]line Контрольно-Кассовый Чек [20:11:59]line ПРОДАЖА [20:11:59]line ТРК (МРК, ГНК) : 33 [20:11:59]line Товар: 2710124130 [20:11:59]line Аи-92-К-2 [20:11:59]line 8.970 * 66.90 [20:11:59]line = 600.09 [20:11:59]line НДС 12% НСП 1% [20:11:59]line > о реализуемом товаре [20:11:59]line ОКРУГЛЕНИЕ: -0.09 [20:11:59]line ИТОГО: 600.00 [20:11:59]line Внесено: 600.00 [20:11:59]line СДАЧА: 0.00 [20:11:59]line НСП 1% : 5.31 [20:11:59]line НДС 12% : 63.73 [20:11:59]line Наличными: 600.00 [20:11:59]line Безнал.: 0.00 [20:11:59]line Место: АЗС № 78 "Партнер Нефть" [20:11:59]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [20:11:59]line СНО: Общий режим [20:11:59]line Чек 256 20.10.2024 20:11 [20:11:59]line Смена: 114 ФФД: 1.0 [20:11:59]line ЗНМ: 0300000137 [20:11:59]line РНМ: 0000000000186857 [20:11:59]line Версия ККМ: v1.0 [20:11:59]line ФМ: 0000000002094219 [20:11:59]line ФД: 30474 [20:11:59]line ФПД: 174311600961338 [20:11:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T201158&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30474&fm=174311600961338&tin=02508201610067®Number=0000000000186857&sum=60000 [20:11:59]Connected sock=10 [20:11: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 C3 EE 07 01 D1 95 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 00 01 00 00 F4 03 04 00 0E 64 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 77 00 00 35 04 06 00 9E 89 15 0E 37 3A 35 7A 53 80 C7 1C 0D 6A [20:11:59]written 0, free lines is 4095 [20:11: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 B2 D8 47 00 C2 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 0A 77 00 00 F4 03 04 00 91 0E 15 67 B6 04 01 00 00 25 9D 71 2B AF 23 DA 95 [20:11:59]CommunicateWithHost err = 0 [20:11:59]CheckOFDResponse [20:11:59]1017 (14) - 77093643461234 [20:11:59]1041 (16) - 0000000002094219 [20:11:59]1040 (4) - 30474 [20:11:59]1012 (4) - 20.10.2024 14:07 [20:11:59]1206 (1) - 0 [20:11:59]OFD Sender: Remove packet 30474 [20:11:59]ProducePacketName [20:11:59]name=ofd_packets/00030474 [20:11:59]NVStorageDeleteData [20:12:00]Write to MH i2c: 01 00 00 57 15 6C [20:12:00]Write i2c OK [20:12:00]MH_I2C_Read... [20:12:00]Read from MH i2c: 01 [20:12:00]MH_I2C_Read... [20:12:00]Read from MH i2c: 01 07 00 [20:12:00]MH_I2C_Read... [20:12:00]Read from MH i2c: 01 07 00 57 15 00 00 00 00 00 E6 0C 65 [20:12:00]RasterBufferAndPrint [20:12:00]line [20:12:00]line [20:12:00]line [20:12:00]line [20:12:00]line [20:12:00]written 0, free lines is 3309 [20:12:00]MH_Cut [20:12:00]Write to MH i2c: D1 01 00 5E 15 01 45 [20:12:00]Write i2c OK [20:12:00]MH_I2C_Read... [20:12:00]Read from MH i2c: D1 [20:12:00]MH_I2C_Read... [20:12:00]Read from MH i2c: D1 01 00 [20:12:00]MH_I2C_Read... [20:12:00]Read from MH i2c: D1 01 00 5E 15 00 44 [20:12:00]Write to MH i2c: 01 00 00 5F 15 74 [20:12:00]Write i2c OK [20:12:00]MH_I2C_Read... [20:12:00]OFD Sender: No OFD packet to send [20:12:00]*** Cut start [20:12:00]*** Partial cut [20:12:00]*** CUTSNS_PIN = 1 [20:12:00]*** CUTSNS_PIN = 0 [20:12:00]*** Brake cut motor [20:12:01]Read from MH i2c: 01 [20:12:01]MH_I2C_Read... [20:12:01]*** Stop cut motor [20:12:01]*** Cut end [20:12:01]Read from MH i2c: 01 07 00 [20:12:01]MH_I2C_Read... [20:12:01]Read from MH i2c: 01 07 00 5F 15 00 00 00 00 00 FF 0F 89 [20:12:01]process_action close_receipt done [20:12:01]requested_data is exist [20:12:01]produce_requested_data [20:12:01]requested_item fm.sn is exist - process it [20:12:01]wFMCommunicate request_size=4 [20:12:01]MH_SAM_APDU [20:12:01]CAPDU: 80 11 00 00 [20:12:01]Write to MH i2c: E2 08 00 60 15 80 11 00 00 00 00 00 00 EF [20:12:01]Write i2c OK [20:12:01]MH_I2C_Read... [20:12:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:12:01]Read from MH i2c: E2 [20:12:01]MH_I2C_Read... [20:12:01]Read from MH i2c: E2 17 00 [20:12:01]MH_I2C_Read... [20:12:01]Read from MH i2c: E2 17 00 60 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 3D [20:12:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [20:12:01]wFMCommunicate OK [20:12:01]requested_item fd.num is exist - process it [20:12:01]SAM_PROTO_GetFieldsCounters [20:12:01]wFMCommunicate request_size=4 [20:12:01]MH_SAM_APDU [20:12:01]CAPDU: 80 13 00 00 [20:12:01]Write to MH i2c: E2 08 00 61 15 80 13 00 00 00 00 00 00 F2 [20:12:01]Write i2c OK [20:12:01]MH_I2C_Read... [20:12:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:12:01]Read from MH i2c: E2 [20:12:01]MH_I2C_Read... [20:12:01]Read from MH i2c: E2 62 00 [20:12:01]MH_I2C_Read... [20:12:01]Read from MH i2c: E2 62 00 61 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 77 00 00 0E 04 04 00 72 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 0E [20:12: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 0A 77 00 00 0E 04 04 00 72 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 [20:12:01]wFMCommunicate OK [20:12:01]SAM_PROTO_GetFieldsCounters done [20:12:01]requested_item shift.num is exist - process it [20:12:01]requested_item shift.opened is exist - process it [20:12:01]req_shift_opened [20:12:01]FM_GetShiftState [20:12:01]SAM_PROTO_GetShiftState [20:12:01]wFMCommunicate request_size=4 [20:12:01]MH_SAM_APDU [20:12:01]CAPDU: 80 13 01 00 [20:12:01]Write to MH i2c: E2 08 00 62 15 80 13 01 00 00 00 00 00 F4 [20:12:01]Write i2c OK [20:12:01]MH_I2C_Read... [20:12:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:12:01]Read from MH i2c: E2 [20:12:01]MH_I2C_Read... [20:12:01]Read from MH i2c: E2 0E 00 [20:12:01]MH_I2C_Read... [20:12:01]Read from MH i2c: E2 0E 00 62 15 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 DA [20:12:01]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [20:12:01]wFMCommunicate OK [20:12:01]SAM_PROTO_GetShiftState done [20:12:01]FM_GetShiftState done [20:12:01]req_shift_opened done [20:12:01]requested_item shift.open_date is exist - process it [20:12:01]req_shift_open_date [20:12:01]req_shift_open_date done [20:12:01]produce_requested_data done [20:12:01]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30474,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [20:12:01]process_action_free close_receipt [20:12:01]json_value_free [20:12:01]json_value_free done [20:12:01]process_json_proto returns [20:12:01]Send response to host [20:12:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30474,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [20:12:01]free response buf [20:12:01]execute_script done [20:12:01]execute_script returns [20:12:01]free content buf [20:12:01]Sock 9.Close socket [20:12:01]Sock 9.Thread stoped [20:12:01]accept exits with 7 [20:12:01]New connection [20:12:01]New thread 3067346276 created [20:12:01]Thread 3067489636 joined [20:12:01]Waiting for new connection... [20:12:01] Sock 7.Parse request [20:12:01]Sock 7.Check first char [20:12:01]Sock 7.First char is OK [20:12:01]request: POST /json_proto HTTP/1.0 [20:12:01]Method: POST [20:12:01]URL: /json_proto [20:12:01]Method is POST - this is cgi request [20:12:01]url: /json_proto [20:12:01]query_string will be loaded in cgi processing [20:12:01]execute_cgi json_proto POST (null) [20:12:01]execute_cgi path=json_proto method=POST [20:12:01]POST find Content-Length [20:12:01]Host: 172.17.51.3:8080 [20:12:01]Content-Length: 841 [20:12:01]Content-Type: application/json [20:12:01] [20:12:01]POST finish read [20:12:01]Found Content-Length = 841 [20:12:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342879", "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" : 12.130, "sum" : 900.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 900.05 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:12:01]execute_script... [20:12: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)342879", "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" : 12.130, "sum" : 900.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 900.05 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:12:01]POST & json_proto [20:12:01]process_json_proto [20:12:01]json parsed OK: [20:12:01]protocol is kg_v1.0 [20:12:01]action value=close_receipt [20:12:01]process_action close_receipt [20:12:01]cmd_close_receipt [20:12:01]MH_GetDate [20:12:01]Write to MH i2c: F0 00 00 63 15 67 [20:12:01]Write i2c OK [20:12:01]MH_I2C_Read... [20:12:01]Read from MH i2c: F0 [20:12:01]MH_I2C_Read... [20:12:01]Read from MH i2c: F0 09 00 [20:12:01]MH_I2C_Read... [20:12:01]Read from MH i2c: F0 09 00 63 15 00 12 64 15 67 04 C1 95 66 22 [20:12:01]GetLastDocTimeStamp 1729455118 [20:12:01]current date 1729455122 [20:12:01]FM_GetShiftState [20:12:01]SAM_PROTO_GetShiftState [20:12:01]wFMCommunicate request_size=4 [20:12:01]MH_SAM_APDU [20:12:01]CAPDU: 80 13 01 00 [20:12:01]Write to MH i2c: E2 08 00 64 15 80 13 01 00 00 00 00 00 F6 [20:12:01]Write i2c OK [20:12:01]MH_I2C_Read... [20:12:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:12:02]Read from MH i2c: E2 [20:12:02]MH_I2C_Read... [20:12:02]Read from MH i2c: E2 0E 00 [20:12:02]MH_I2C_Read... [20:12:02]Read from MH i2c: E2 0E 00 64 15 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 DC [20:12:02]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [20:12:02]wFMCommunicate OK [20:12:02]SAM_PROTO_GetShiftState done [20:12:02]FM_GetShiftState done [20:12:02]opened in 1729384718 [20:12:02]opened+sec_in_day 1729471118 [20:12:02]quantity*price = 90004 [20:12:02]sum+1 = 90006 [20:12:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 900.05 НСП 1% : 7.96 НДС 12% : 95.58 Наличными: 0.00 Безнал.: 900.05 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 257 20.10.2024 20:12 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Платежная система: АКБ Кыргызстан ФМ: 0000000002094219 ФД: 30475 ФПД: 164651366893356 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T201202&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30475&fm=164651366893356&tin=02508201610067®Number=0000000000186857&sum=90005 [20:12:03]StoreToDocumentArchive [20:12:03]shift 114 fd 30475 [20:12:03]save to /storage/0114/doc_00030475 [20:12:03]save last doc name /storage/0114/doc_00030475 to /storage/kkm_last_doc_name [20:12:03]save OK [20:12:03]Clear old archive folders... [20:12:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:12:03]tlvbuf is 01E0C6D0 [20:12:03]SAM_PROTO_ClearQueue [20:12:03]wFMCommunicate request_size=4 [20:12:03]MH_SAM_APDU [20:12:03]CAPDU: 80 09 00 00 [20:12:03]Write to MH i2c: E2 08 00 71 15 80 09 00 00 00 00 00 00 F8 [20:12:03]Write i2c OK [20:12:03]MH_I2C_Read... [20:12:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:12:03]Read from MH i2c: E2 [20:12:03]MH_I2C_Read... [20:12:03]Read from MH i2c: E2 03 00 [20:12:03]MH_I2C_Read... [20:12:03]Read from MH i2c: E2 03 00 71 15 00 90 00 FA [20:12:03]RAPDU: 90 00 [20:12:03]wFMCommunicate OK [20:12:03]SAM_PROTO_ClearQueue done [20:12:03]KKMCreateOFDPacket [20:12:03]OFDProtocolAddRootSTLVToBuf [20:12:03]FM_MakeSignedData [20:12:03]FM_MakeSignedData [20:12:03]SAM_PROTO_SignData [20:12:03]wFMCommunicate request_size=4 [20:12:03]MH_SAM_APDU [20:12:03]CAPDU: 80 0D 01 02 [20:12:03]Write to MH i2c: E2 08 00 72 15 80 0D 01 02 00 00 00 00 00 [20:12:03]Write i2c OK [20:12:03]MH_I2C_Read... [20:12:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:12:03]Read from MH i2c: E2 [20:12:03]MH_I2C_Read... [20:12:03]Read from MH i2c: E2 03 00 [20:12:03]MH_I2C_Read... [20:12:03]Read from MH i2c: E2 03 00 72 15 00 90 00 FB [20:12:03]RAPDU: 90 00 [20:12:03]wFMCommunicate OK [20:12:03]wFMCommunicate request_size=255 [20:12:03]MH_SAM_APDU [20:12: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 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 95 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 00 00 00 00 00 00 39 04 06 00 95 5F 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 01 00 00 F4 03 04 00 12 64 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 77 00 00 35 04 06 00 95 [20:12:03]Write to MH i2c: E2 02 01 73 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 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 95 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 00 00 00 00 00 00 39 04 06 00 95 5F 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 01 00 00 F4 03 04 00 12 64 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 77 00 00 35 04 06 00 95 00 00 B0 [20:12:03]Write i2c OK [20:12:03]MH_I2C_Read... [20:12:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:12:03]Read from MH i2c: E2 [20:12:03]MH_I2C_Read... [20:12:03]Read from MH i2c: E2 03 00 [20:12:03]MH_I2C_Read... [20:12:03]Read from MH i2c: E2 03 00 73 15 00 90 00 FC [20:12:03]RAPDU: 90 00 [20:12:03]wFMCommunicate OK [20:12:03]wFMCommunicate request_size=10 [20:12:03]MH_SAM_APDU [20:12:03]CAPDU: 80 0D 02 02 05 BF E2 3C 47 2C [20:12:03]Write to MH i2c: E2 0D 00 74 15 80 0D 02 02 05 00 BF E2 3C 47 2C 00 00 5D [20:12:03]Write i2c OK [20:12:03]MH_I2C_Read... [20:12:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:12:03]Read from MH i2c: E2 [20:12:03]MH_I2C_Read... [20:12:03]Read from MH i2c: E2 03 00 [20:12:03]MH_I2C_Read... [20:12:03]Read from MH i2c: E2 03 00 74 15 00 90 00 FD [20:12:03]RAPDU: 90 00 [20:12:03]wFMCommunicate OK [20:12:03]wFMCommunicate request_size=4 [20:12:03]MH_SAM_APDU [20:12:03]CAPDU: 80 0D 03 02 [20:12:03]Write to MH i2c: E2 08 00 75 15 80 0D 03 02 00 00 00 00 05 [20:12:03]Write i2c OK [20:12:03]MH_I2C_Read... [20:12:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:12:03]Read from MH i2c: E2 [20:12:03]MH_I2C_Read... [20:12:03]Read from MH i2c: E2 0B 00 [20:12:03]MH_I2C_Read... [20:12:03]Read from MH i2c: E2 0B 00 75 15 00 35 5B 94 EB 7F 8E C2 BD 90 00 A1 [20:12:03]RAPDU: 35 5B 94 EB 7F 8E C2 BD 90 00 [20:12:03]wFMCommunicate OK [20:12:03]SAM_PROTO_SignData done [20:12:03]FM_MakeSignedData done [20:12:03]CreateOFDProtocolMessage [20:12:03]wFMCommunicate request_size=4 [20:12:03]MH_SAM_APDU [20:12:03]CAPDU: 80 11 00 00 [20:12:03]Write to MH i2c: E2 08 00 76 15 80 11 00 00 00 00 00 00 05 [20:12:03]Write i2c OK [20:12:03]MH_I2C_Read... [20:12:03]Read from MH i2c: E2 [20:12:03]MH_I2C_Read... [20:12:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:12:03]Read from MH i2c: E2 17 00 [20:12:03]MH_I2C_Read... [20:12:03]Read from MH i2c: E2 17 00 76 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 53 [20:12:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [20:12:03]wFMCommunicate OK [20:12:03]CreateOFDProtocolMessage done [20:12:03]OFDSenderStorePacket 30475 [20:12:03]StoreOFDPacket docnum=30475 [20:12: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 0F 01 00 00 A7 B0 07 01 B6 52 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 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 95 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 00 00 00 00 00 00 39 04 06 00 95 5F 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 01 00 00 F4 03 04 00 12 64 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 77 00 00 35 04 06 00 95 BF E2 3C 47 2C 35 5B 94 EB 7F 8E C2 BD [20:12:03]CheckFolder [20:12:03]dirname=/storage/ofd_packets [20:12:03]CheckFolder done [20:12:03]ProducePacketName [20:12:03]name=ofd_packets/00030475 [20:12:03]NVStorageSaveData ofd_packets/00030475 [20:12:03]File name is /storage/ofd_packets/00030475 [20:12:03]Write 301 bytes [20:12:03]NVStorageSaveData done [20:12:03]OFDSenderStorePacket done [20:12:03]KKMCreateOFDPacket done [20:12:03]NVStorageSaveData kkm_last_timestamp [20:12:03]File name is /storage/kkm_last_timestamp [20:12:03]Write 4 bytes [20:12:03]NVStorageSaveData done [20:12:03]ExternCall_PrintAddStr [20:12:03]wPrintStart [20:12:03]Write to MH i2c: 01 00 00 77 15 8C [20:12:03]Write i2c OK [20:12:03]MH_I2C_Read... [20:12:03]Read from MH i2c: 01 [20:12:03]MH_I2C_Read... [20:12:03]Read from MH i2c: 01 07 00 [20:12:04]MH_I2C_Read... [20:12:04]Read from MH i2c: 01 07 00 77 15 00 00 00 00 00 FF 0F A1 [20:12:04]RasterBufferAndPrint [20:12:04]line Счет N : (1)342879 [20:12:04]line ИНН: 02508201610067 [20:12:04]line Контрольно-Кассовый Чек [20:12:04]line ПРОДАЖА [20:12:04]line ТРК (МРК, ГНК) : 52 [20:12:04]line Товар: 2710124500 [20:12:04]line Аи-95-К-3 [20:12:04]line 12.130 * 74.20 [20:12:04]line = 900.05 [20:12:04]line НДС 12% НСП 1% [20:12:04]line > о реализуемом товаре [20:12:04]line ИТОГО: 900.05 [20:12:04]line НСП 1% : 7.96 [20:12:04]line НДС 12% : 95.58 [20:12:04]line Наличными: 0.00 [20:12:04]line Безнал.: 900.05 [20:12:04]line Место: АЗС № 78 "Партнер Нефть" [20:12:04]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [20:12:04]line СНО: Общий режим [20:12:04]line Чек 257 20.10.2024 20:12 [20:12:04]line Смена: 114 ФФД: 1.0 [20:12:04]line ЗНМ: 0300000137 [20:12:04]line РНМ: 0000000000186857 [20:12:04]line Версия ККМ: v1.0 [20:12:04]line Платежная система: АКБ Кыргызстан [20:12:04]line ФМ: 0000000002094219 [20:12:04]line ФД: 30475 [20:12:04]line ФПД: 164651366893356 [20:12:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T201202&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30475&fm=164651366893356&tin=02508201610067®Number=0000000000186857&sum=90005 [20:12:04]OFD Sender: Processing packet 30475 [packets to send 10, broken 9] [20:12:04]ProducePacketName [20:12:04]name=ofd_packets/00030475 [20:12:04]OFD Sender: To server: pG, [20:12:04]CommunicateWithHost lk.salyk.kg:30040 [20:12:04]ConnectInit lk.salyk.kg [20:12:04]written 0, free lines is 4095 [20:12:04]Connected sock=10 [20:12: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 A7 B0 07 01 B6 52 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 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 95 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 00 00 00 00 00 00 39 04 06 00 95 5F 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 01 00 00 F4 03 04 00 12 64 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 77 00 00 35 04 06 00 95 BF E2 3C 47 2C 35 5B 94 EB 7F 8E C2 BD [20:12: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 01 FB 47 00 AD 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 0B 77 00 00 F4 03 04 00 96 0E 15 67 B6 04 01 00 00 9E 9B 9A DC E5 A1 C4 34 [20:12:04]CommunicateWithHost err = 0 [20:12:04]CheckOFDResponse [20:12:04]1017 (14) - 77093643461234 [20:12:04]1041 (16) - 0000000002094219 [20:12:04]1040 (4) - 30475 [20:12:04]1012 (4) - 20.10.2024 14:07 [20:12:04]1206 (1) - 0 [20:12:04]OFD Sender: Remove packet 30475 [20:12:04]ProducePacketName [20:12:04]name=ofd_packets/00030475 [20:12:04]NVStorageDeleteData [20:12:04]Write to MH i2c: 01 00 00 A1 15 B6 [20:12:04]Write i2c OK [20:12:04]MH_I2C_Read... [20:12:04]Read from MH i2c: 01 [20:12:04]MH_I2C_Read... [20:12:04]Read from MH i2c: 01 07 00 [20:12:04]MH_I2C_Read... [20:12:04]Read from MH i2c: 01 07 00 A1 15 00 00 00 00 00 10 0D DA [20:12:04]RasterBufferAndPrint [20:12:04]line [20:12:04]line [20:12:04]line [20:12:04]line [20:12:04]line [20:12:04]written 0, free lines is 3358 [20:12:04]MH_Cut [20:12:04]Write to MH i2c: D1 01 00 A8 15 01 8F [20:12:04]Write i2c OK [20:12:04]MH_I2C_Read... [20:12:04]Read from MH i2c: D1 [20:12:04]MH_I2C_Read... [20:12:04]Read from MH i2c: D1 01 00 [20:12:04]MH_I2C_Read... [20:12:04]Read from MH i2c: D1 01 00 A8 15 00 8E [20:12:04]Write to MH i2c: 01 00 00 A9 15 BE [20:12:04]Write i2c OK [20:12:04]MH_I2C_Read... [20:12:05]OFD Sender: No OFD packet to send [20:12:05]*** Cut start [20:12:05]*** Partial cut [20:12:05]*** CUTSNS_PIN = 1 [20:12:05]*** CUTSNS_PIN = 0 [20:12:05]*** Brake cut motor [20:12:06]Read from MH i2c: 01 [20:12:06]MH_I2C_Read... [20:12:06]*** Stop cut motor [20:12:06]*** Cut end [20:12:06]Read from MH i2c: 01 07 00 [20:12:06]MH_I2C_Read... [20:12:06]Read from MH i2c: 01 07 00 A9 15 00 00 00 00 00 FF 0F D3 [20:12:06]process_action close_receipt done [20:12:06]requested_data is exist [20:12:06]produce_requested_data [20:12:06]requested_item fm.sn is exist - process it [20:12:06]wFMCommunicate request_size=4 [20:12:06]MH_SAM_APDU [20:12:06]CAPDU: 80 11 00 00 [20:12:06]Write to MH i2c: E2 08 00 AA 15 80 11 00 00 00 00 00 00 39 [20:12:06]Write i2c OK [20:12:06]MH_I2C_Read... [20:12:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:12:06]Read from MH i2c: E2 [20:12:06]MH_I2C_Read... [20:12:06]Read from MH i2c: E2 17 00 [20:12:06]MH_I2C_Read... [20:12:06]Read from MH i2c: E2 17 00 AA 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 87 [20:12:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [20:12:06]wFMCommunicate OK [20:12:06]requested_item fd.num is exist - process it [20:12:06]SAM_PROTO_GetFieldsCounters [20:12:06]wFMCommunicate request_size=4 [20:12:06]MH_SAM_APDU [20:12:06]CAPDU: 80 13 00 00 [20:12:06]Write to MH i2c: E2 08 00 AB 15 80 13 00 00 00 00 00 00 3C [20:12:06]Write i2c OK [20:12:06]MH_I2C_Read... [20:12:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:12:06]Read from MH i2c: E2 [20:12:06]MH_I2C_Read... [20:12:06]Read from MH i2c: E2 62 00 [20:12:06]MH_I2C_Read... [20:12:06]Read from MH i2c: E2 62 00 AB 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 77 00 00 0E 04 04 00 72 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 5C [20:12: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 0B 77 00 00 0E 04 04 00 72 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 [20:12:06]wFMCommunicate OK [20:12:06]SAM_PROTO_GetFieldsCounters done [20:12:06]requested_item shift.num is exist - process it [20:12:06]requested_item shift.opened is exist - process it [20:12:06]req_shift_opened [20:12:06]FM_GetShiftState [20:12:06]SAM_PROTO_GetShiftState [20:12:06]wFMCommunicate request_size=4 [20:12:06]MH_SAM_APDU [20:12:06]CAPDU: 80 13 01 00 [20:12:06]Write to MH i2c: E2 08 00 AC 15 80 13 01 00 00 00 00 00 3E [20:12:06]Write i2c OK [20:12:06]MH_I2C_Read... [20:12:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:12:06]Read from MH i2c: E2 [20:12:06]MH_I2C_Read... [20:12:06]Read from MH i2c: E2 0E 00 [20:12:06]MH_I2C_Read... [20:12:06]Read from MH i2c: E2 0E 00 AC 15 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 24 [20:12:06]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [20:12:06]wFMCommunicate OK [20:12:06]SAM_PROTO_GetShiftState done [20:12:06]FM_GetShiftState done [20:12:06]req_shift_opened done [20:12:06]requested_item shift.open_date is exist - process it [20:12:06]req_shift_open_date [20:12:06]req_shift_open_date done [20:12:06]produce_requested_data done [20:12:06]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30475,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [20:12:06]process_action_free close_receipt [20:12:06]json_value_free [20:12:06]json_value_free done [20:12:06]process_json_proto returns [20:12:06]Send response to host [20:12:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30475,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [20:12:06]free response buf [20:12:06]execute_script done [20:12:06]execute_script returns [20:12:06]free content buf [20:12:06]Sock 7.Close socket [20:12:06]Sock 7.Thread stoped [20:12:10]OFD Sender: No OFD packet to send [20:12:15]OFD Sender: No OFD packet to send [20:12:20]OFD Sender: No OFD packet to send [20:12:25]OFD Sender: No OFD packet to send [20:12:30]OFD Sender: No OFD packet to send [20:12:35]OFD Sender: No OFD packet to send [20:12:40]OFD Sender: No OFD packet to send [20:12:45]OFD Sender: No OFD packet to send [20:12:50]OFD Sender: No OFD packet to send [20:12:55]OFD Sender: No OFD packet to send [20:13:00]OFD Sender: No OFD packet to send [20:13:05]OFD Sender: No OFD packet to send [20:13:10]OFD Sender: No OFD packet to send [20:13:15]OFD Sender: No OFD packet to send [20:13:20]OFD Sender: No OFD packet to send [20:13:25]OFD Sender: No OFD packet to send [20:13:30]OFD Sender: No OFD packet to send [20:13:35]OFD Sender: No OFD packet to send [20:13:40]OFD Sender: No OFD packet to send [20:13:45]OFD Sender: No OFD packet to send [20:13:50]OFD Sender: No OFD packet to send [20:13:55]OFD Sender: No OFD packet to send [20:14:00]OFD Sender: No OFD packet to send [20:14:05]OFD Sender: No OFD packet to send [20:14:10]OFD Sender: No OFD packet to send [20:14:15]OFD Sender: No OFD packet to send [20:14:20]OFD Sender: No OFD packet to send [20:14:25]OFD Sender: No OFD packet to send [20:14:30]OFD Sender: No OFD packet to send [20:14:35]OFD Sender: No OFD packet to send [20:14:40]OFD Sender: No OFD packet to send [20:14:45]OFD Sender: No OFD packet to send [20:14:50]OFD Sender: No OFD packet to send [20:14:55]OFD Sender: No OFD packet to send [20:15:00]OFD Sender: No OFD packet to send [20:15:05]OFD Sender: No OFD packet to send [20:15:10]OFD Sender: No OFD packet to send [20:15:15]OFD Sender: No OFD packet to send [20:15:20]OFD Sender: No OFD packet to send [20:15:25]OFD Sender: No OFD packet to send [20:15:30]OFD Sender: No OFD packet to send [20:15:35]OFD Sender: No OFD packet to send [20:15:39]accept exits with 9 [20:15:39]New connection [20:15:39]New thread 3067489636 created [20:15:39]Thread 3067346276 joined [20:15:39]Waiting for new connection... [20:15:39] Sock 9.Parse request [20:15:39]Sock 9.Check first char [20:15:39]Sock 9.First char is OK [20:15:39]request: POST /json_proto HTTP/1.0 [20:15:39]Method: POST [20:15:39]URL: /json_proto [20:15:39]Method is POST - this is cgi request [20:15:39]url: /json_proto [20:15:39]query_string will be loaded in cgi processing [20:15:39]execute_cgi json_proto POST (null) [20:15:39]execute_cgi path=json_proto method=POST [20:15:39]POST find Content-Length [20:15:39]Host: 172.17.51.3:8080 [20:15:39]Content-Length: 677 [20:15:39]Content-Type: application/json [20:15:39] [20:15:39]POST finish read [20:15:39]Found Content-Length = 677 [20:15:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342880", "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" : 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" ] } } [20:15:39]execute_script... [20:15: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)342880", "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" : 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" ] } } [20:15:39]POST & json_proto [20:15:39]process_json_proto [20:15:39]json parsed OK: [20:15:39]protocol is kg_v1.0 [20:15:39]action value=close_receipt [20:15:39]process_action close_receipt [20:15:39]cmd_close_receipt [20:15:39]MH_GetDate [20:15:39]Write to MH i2c: F0 00 00 AD 15 B1 [20:15:39]Write i2c OK [20:15:39]MH_I2C_Read... [20:15:39]Read from MH i2c: F0 [20:15:39]MH_I2C_Read... [20:15:39]Read from MH i2c: F0 09 00 [20:15:39]MH_I2C_Read... [20:15:39]Read from MH i2c: F0 09 00 AD 15 00 EC 64 15 67 04 C1 95 66 46 [20:15:39]GetLastDocTimeStamp 1729455122 [20:15:39]current date 1729455340 [20:15:39]FM_GetShiftState [20:15:39]SAM_PROTO_GetShiftState [20:15:39]wFMCommunicate request_size=4 [20:15:39]MH_SAM_APDU [20:15:39]CAPDU: 80 13 01 00 [20:15:39]Write to MH i2c: E2 08 00 AE 15 80 13 01 00 00 00 00 00 40 [20:15:39]Write i2c OK [20:15:39]MH_I2C_Read... [20:15:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:15:39]Read from MH i2c: E2 [20:15:39]MH_I2C_Read... [20:15:39]Read from MH i2c: E2 0E 00 [20:15:39]MH_I2C_Read... [20:15:39]Read from MH i2c: E2 0E 00 AE 15 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 26 [20:15:39]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [20:15:39]wFMCommunicate OK [20:15:39]SAM_PROTO_GetShiftState done [20:15:39]FM_GetShiftState done [20:15:39]opened in 1729384718 [20:15:39]opened+sec_in_day 1729471118 [20:15:39]quantity*price = 40068 [20:15:39]sum+1 = 40069 [20:15:39]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 СНО: Общий режим Чек 258 20.10.2024 20:15 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30476 ФПД: 262001025086419 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T201540&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30476&fm=262001025086419&tin=02508201610067®Number=0000000000186857&sum=40000 [20:15:40]StoreToDocumentArchive [20:15:40]shift 114 fd 30476 [20:15:40]save to /storage/0114/doc_00030476 [20:15:40]save last doc name /storage/0114/doc_00030476 to /storage/kkm_last_doc_name [20:15:40]save OK [20:15:40]Clear old archive folders... [20:15:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:15:40]tlvbuf is 01DD71A0 [20:15:40]SAM_PROTO_ClearQueue [20:15:40]wFMCommunicate request_size=4 [20:15:40]MH_SAM_APDU [20:15:40]CAPDU: 80 09 00 00 [20:15:40]Write to MH i2c: E2 08 00 BB 15 80 09 00 00 00 00 00 00 42 [20:15:40]Write i2c OK [20:15:40]MH_I2C_Read... [20:15:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:15:40]Read from MH i2c: E2 [20:15:40]MH_I2C_Read... [20:15:40]Read from MH i2c: E2 03 00 [20:15:40]MH_I2C_Read... [20:15:40]Read from MH i2c: E2 03 00 BB 15 00 90 00 44 [20:15:40]RAPDU: 90 00 [20:15:40]wFMCommunicate OK [20:15:40]SAM_PROTO_ClearQueue done [20:15:40]KKMCreateOFDPacket [20:15:40]OFDProtocolAddRootSTLVToBuf [20:15:40]FM_MakeSignedData [20:15:40]FM_MakeSignedData [20:15:40]SAM_PROTO_SignData [20:15:40]wFMCommunicate request_size=4 [20:15:40]MH_SAM_APDU [20:15:40]CAPDU: 80 0D 01 02 [20:15:40]Write to MH i2c: E2 08 00 BC 15 80 0D 01 02 00 00 00 00 4A [20:15:40]Write i2c OK [20:15:40]MH_I2C_Read... [20:15:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:15:40]Read from MH i2c: E2 [20:15:40]MH_I2C_Read... [20:15:40]Read from MH i2c: E2 03 00 [20:15:40]MH_I2C_Read... [20:15:40]Read from MH i2c: E2 03 00 BC 15 00 90 00 45 [20:15:40]RAPDU: 90 00 [20:15:40]wFMCommunicate OK [20:15:40]wFMCommunicate request_size=255 [20:15:40]MH_SAM_APDU [20:15: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 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 02 01 00 00 F4 03 04 00 EC 64 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 77 00 00 35 04 06 00 EE [20:15:40]Write to MH i2c: E2 02 01 BD 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 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 02 01 00 00 F4 03 04 00 EC 64 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 77 00 00 35 04 06 00 EE 00 00 3D [20:15:40]Write i2c OK [20:15:40]MH_I2C_Read... [20:15:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:15:41]Read from MH i2c: E2 [20:15:41]MH_I2C_Read... [20:15:41]Read from MH i2c: E2 03 00 [20:15:41]MH_I2C_Read... [20:15:41]Read from MH i2c: E2 03 00 BD 15 00 90 00 46 [20:15:41]RAPDU: 90 00 [20:15:41]wFMCommunicate OK [20:15:41]wFMCommunicate request_size=10 [20:15:41]MH_SAM_APDU [20:15:41]CAPDU: 80 0D 02 02 05 49 DE 07 F3 D3 [20:15:41]Write to MH i2c: E2 0D 00 BE 15 80 0D 02 02 05 00 49 DE 07 F3 D3 00 00 4B [20:15:41]Write i2c OK [20:15:41]MH_I2C_Read... [20:15:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:15:41]Read from MH i2c: E2 [20:15:41]MH_I2C_Read... [20:15:41]Read from MH i2c: E2 03 00 [20:15:41]MH_I2C_Read... [20:15:41]Read from MH i2c: E2 03 00 BE 15 00 90 00 47 [20:15:41]RAPDU: 90 00 [20:15:41]wFMCommunicate OK [20:15:41]wFMCommunicate request_size=4 [20:15:41]MH_SAM_APDU [20:15:41]CAPDU: 80 0D 03 02 [20:15:41]Write to MH i2c: E2 08 00 BF 15 80 0D 03 02 00 00 00 00 4F [20:15:41]Write i2c OK [20:15:41]MH_I2C_Read... [20:15:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:15:41]Read from MH i2c: E2 [20:15:41]MH_I2C_Read... [20:15:41]Read from MH i2c: E2 0B 00 [20:15:41]MH_I2C_Read... [20:15:41]Read from MH i2c: E2 0B 00 BF 15 00 3F A4 65 95 34 3A 48 A4 90 00 87 [20:15:41]RAPDU: 3F A4 65 95 34 3A 48 A4 90 00 [20:15:41]wFMCommunicate OK [20:15:41]SAM_PROTO_SignData done [20:15:41]FM_MakeSignedData done [20:15:41]CreateOFDProtocolMessage [20:15:41]wFMCommunicate request_size=4 [20:15:41]MH_SAM_APDU [20:15:41]CAPDU: 80 11 00 00 [20:15:41]Write to MH i2c: E2 08 00 C0 15 80 11 00 00 00 00 00 00 4F [20:15:41]Write i2c OK [20:15:41]MH_I2C_Read... [20:15:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:15:41]Read from MH i2c: E2 [20:15:41]MH_I2C_Read... [20:15:41]Read from MH i2c: E2 17 00 [20:15:41]MH_I2C_Read... [20:15:41]Read from MH i2c: E2 17 00 C0 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 9D [20:15:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [20:15:41]wFMCommunicate OK [20:15:41]CreateOFDProtocolMessage done [20:15:41]OFDSenderStorePacket 30476 [20:15:41]StoreOFDPacket docnum=30476 [20:15: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 99 42 07 01 91 2C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 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 02 01 00 00 F4 03 04 00 EC 64 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 77 00 00 35 04 06 00 EE 49 DE 07 F3 D3 3F A4 65 95 34 3A 48 A4 [20:15:41]CheckFolder [20:15:41]dirname=/storage/ofd_packets [20:15:41]CheckFolder done [20:15:41]ProducePacketName [20:15:41]name=ofd_packets/00030476 [20:15:41]NVStorageSaveData ofd_packets/00030476 [20:15:41]File name is /storage/ofd_packets/00030476 [20:15:41]Write 301 bytes [20:15:41]NVStorageSaveData done [20:15:41]OFDSenderStorePacket done [20:15:41]KKMCreateOFDPacket done [20:15:41]NVStorageSaveData kkm_last_timestamp [20:15:41]File name is /storage/kkm_last_timestamp [20:15:41]Write 4 bytes [20:15:41]NVStorageSaveData done [20:15:41]ExternCall_PrintAddStr [20:15:41]wPrintStart [20:15:41]Write to MH i2c: 01 00 00 C1 15 D6 [20:15:41]Write i2c OK [20:15:41]MH_I2C_Read... [20:15:41]Read from MH i2c: 01 [20:15:41]MH_I2C_Read... [20:15:41]Read from MH i2c: 01 07 00 [20:15:41]MH_I2C_Read... [20:15:41]Read from MH i2c: 01 07 00 C1 15 00 00 00 00 00 FF 0F EB [20:15:41]RasterBufferAndPrint [20:15:41]line Счет N : (1)342880 [20:15:41]line ИНН: 02508201610067 [20:15:41]line Контрольно-Кассовый Чек [20:15:41]line ПРОДАЖА [20:15:41]line ТРК (МРК, ГНК) : 62 [20:15:41]line Товар: 2710124500 [20:15:41]line Аи-95-К-3 [20:15:41]line 5.400 * 74.20 [20:15:41]line = 400.68 [20:15:41]line НДС 12% НСП 1% [20:15:41]line > о реализуемом товаре [20:15:41]line ОКРУГЛЕНИЕ: -0.68 [20:15:41]line ИТОГО: 400.00 [20:15:41]line Внесено: 400.00 [20:15:41]line СДАЧА: 0.00 [20:15:41]line НСП 1% : 3.55 [20:15:41]line НДС 12% : 42.55 [20:15:41]line Наличными: 400.00 [20:15:41]line Безнал.: 0.00 [20:15:41]line Место: АЗС № 78 "Партнер Нефть" [20:15:41]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [20:15:41]line СНО: Общий режим [20:15:41]line Чек 258 20.10.2024 20:15 [20:15:41]line Смена: 114 ФФД: 1.0 [20:15:41]line ЗНМ: 0300000137 [20:15:41]line РНМ: 0000000000186857 [20:15:41]line Версия ККМ: v1.0 [20:15:41]line ФМ: 0000000002094219 [20:15:41]line ФД: 30476 [20:15:41]line ФПД: 262001025086419 [20:15:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T201540&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30476&fm=262001025086419&tin=02508201610067®Number=0000000000186857&sum=40000 [20:15:41]OFD Sender: Processing packet 30476 [packets to send 10, broken 9] [20:15:41]ProducePacketName [20:15:41]name=ofd_packets/00030476 [20:15:41]OFD Sender: To server: pG, [20:15:41]CommunicateWithHost lk.salyk.kg:30040 [20:15:41]ConnectInit lk.salyk.kg [20:15:41]written 0, free lines is 4095 [20:15:41]Connected sock=10 [20:15: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 99 42 07 01 91 2C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 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 02 01 00 00 F4 03 04 00 EC 64 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 77 00 00 35 04 06 00 EE 49 DE 07 F3 D3 3F A4 65 95 34 3A 48 A4 [20:15: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 0C 22 47 00 EF 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 0C 77 00 00 F4 03 04 00 6F 0F 15 67 B6 04 01 00 00 04 51 B9 BE 38 21 5D 6E [20:15:42]CommunicateWithHost err = 0 [20:15:42]CheckOFDResponse [20:15:42]1017 (14) - 77093643461234 [20:15:42]1041 (16) - 0000000002094219 [20:15:42]1040 (4) - 30476 [20:15:42]1012 (4) - 20.10.2024 14:10 [20:15:42]1206 (1) - 0 [20:15:42]OFD Sender: Remove packet 30476 [20:15:42]ProducePacketName [20:15:42]name=ofd_packets/00030476 [20:15:42]NVStorageDeleteData [20:15:42]Write to MH i2c: 01 00 00 EC 15 01 [20:15:42]Write i2c OK [20:15:42]MH_I2C_Read... [20:15:42]Read from MH i2c: 01 [20:15:42]MH_I2C_Read... [20:15:42]Read from MH i2c: 01 07 00 [20:15:42]MH_I2C_Read... [20:15:42]Read from MH i2c: 01 07 00 EC 15 00 00 00 00 00 E3 0C F7 [20:15:42]RasterBufferAndPrint [20:15:42]line [20:15:42]line [20:15:42]line [20:15:42]line [20:15:42]line [20:15:42]written 0, free lines is 3305 [20:15:42]MH_Cut [20:15:42]Write to MH i2c: D1 01 00 F3 15 01 DA [20:15:42]Write i2c OK [20:15:42]MH_I2C_Read... [20:15:42]Read from MH i2c: D1 [20:15:42]MH_I2C_Read... [20:15:42]Read from MH i2c: D1 01 00 [20:15:42]MH_I2C_Read... [20:15:42]Read from MH i2c: D1 01 00 F3 15 00 D9 [20:15:42]Write to MH i2c: 01 00 00 F4 15 09 [20:15:42]Write i2c OK [20:15:42]MH_I2C_Read... [20:15:42]OFD Sender: No OFD packet to send [20:15:42]*** Cut start [20:15:42]*** Partial cut [20:15:42]*** CUTSNS_PIN = 1 [20:15:42]*** CUTSNS_PIN = 0 [20:15:43]*** Brake cut motor [20:15:43]Read from MH i2c: 01 [20:15:43]MH_I2C_Read... [20:15:43]*** Stop cut motor [20:15:43]*** Cut end [20:15:43]Read from MH i2c: 01 07 00 [20:15:43]MH_I2C_Read... [20:15:43]Read from MH i2c: 01 07 00 F4 15 00 00 00 00 00 FF 0F 1E [20:15:43]process_action close_receipt done [20:15:43]requested_data is exist [20:15:43]produce_requested_data [20:15:43]requested_item fm.sn is exist - process it [20:15:43]wFMCommunicate request_size=4 [20:15:43]MH_SAM_APDU [20:15:43]CAPDU: 80 11 00 00 [20:15:43]Write to MH i2c: E2 08 00 F5 15 80 11 00 00 00 00 00 00 84 [20:15:43]Write i2c OK [20:15:43]MH_I2C_Read... [20:15:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:15:43]Read from MH i2c: E2 [20:15:43]MH_I2C_Read... [20:15:43]Read from MH i2c: E2 17 00 [20:15:43]MH_I2C_Read... [20:15:43]Read from MH i2c: E2 17 00 F5 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 D2 [20:15:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [20:15:43]wFMCommunicate OK [20:15:43]requested_item fd.num is exist - process it [20:15:43]SAM_PROTO_GetFieldsCounters [20:15:43]wFMCommunicate request_size=4 [20:15:43]MH_SAM_APDU [20:15:43]CAPDU: 80 13 00 00 [20:15:43]Write to MH i2c: E2 08 00 F6 15 80 13 00 00 00 00 00 00 87 [20:15:43]Write i2c OK [20:15:43]MH_I2C_Read... [20:15:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:15:43]Read from MH i2c: E2 [20:15:43]MH_I2C_Read... [20:15:43]Read from MH i2c: E2 62 00 [20:15:43]MH_I2C_Read... [20:15:43]Read from MH i2c: E2 62 00 F6 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 77 00 00 0E 04 04 00 72 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 AB [20:15: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 0C 77 00 00 0E 04 04 00 72 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 [20:15:43]wFMCommunicate OK [20:15:43]SAM_PROTO_GetFieldsCounters done [20:15:43]requested_item shift.num is exist - process it [20:15:43]requested_item shift.opened is exist - process it [20:15:43]req_shift_opened [20:15:43]FM_GetShiftState [20:15:43]SAM_PROTO_GetShiftState [20:15:43]wFMCommunicate request_size=4 [20:15:43]MH_SAM_APDU [20:15:43]CAPDU: 80 13 01 00 [20:15:43]Write to MH i2c: E2 08 00 F7 15 80 13 01 00 00 00 00 00 89 [20:15:43]Write i2c OK [20:15:43]MH_I2C_Read... [20:15:43]Read from MH i2c: E2 [20:15:43]MH_I2C_Read... [20:15:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:15:43]Read from MH i2c: E2 0E 00 [20:15:43]MH_I2C_Read... [20:15:43]Read from MH i2c: E2 0E 00 F7 15 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 6F [20:15:43]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [20:15:43]wFMCommunicate OK [20:15:43]SAM_PROTO_GetShiftState done [20:15:43]FM_GetShiftState done [20:15:43]req_shift_opened done [20:15:43]requested_item shift.open_date is exist - process it [20:15:43]req_shift_open_date [20:15:43]req_shift_open_date done [20:15:43]produce_requested_data done [20:15:43]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30476,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [20:15:43]process_action_free close_receipt [20:15:43]json_value_free [20:15:43]json_value_free done [20:15:43]process_json_proto returns [20:15:43]Send response to host [20:15:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30476,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [20:15:43]free response buf [20:15:43]execute_script done [20:15:43]execute_script returns [20:15:43]free content buf [20:15:43]Sock 9.Close socket [20:15:43]Sock 9.Thread stoped [20:15:47]OFD Sender: No OFD packet to send [20:15:52]OFD Sender: No OFD packet to send [20:15:57]OFD Sender: No OFD packet to send [20:16:02]OFD Sender: No OFD packet to send [20:16:07]OFD Sender: No OFD packet to send [20:16:12]OFD Sender: No OFD packet to send [20:16:17]OFD Sender: No OFD packet to send [20:16:22]OFD Sender: No OFD packet to send [20:16:27]OFD Sender: No OFD packet to send [20:16:32]OFD Sender: No OFD packet to send [20:16:37]OFD Sender: No OFD packet to send [20:16:42]OFD Sender: No OFD packet to send [20:16:47]OFD Sender: No OFD packet to send [20:16:52]OFD Sender: No OFD packet to send [20:16:57]OFD Sender: No OFD packet to send [20:17:02]OFD Sender: No OFD packet to send [20:17:07]OFD Sender: No OFD packet to send [20:17:12]OFD Sender: No OFD packet to send [20:17:17]OFD Sender: No OFD packet to send [20:17:22]OFD Sender: No OFD packet to send [20:17:27]OFD Sender: No OFD packet to send [20:17:32]OFD Sender: No OFD packet to send [20:17:37]OFD Sender: No OFD packet to send [20:17:42]OFD Sender: No OFD packet to send [20:17:47]OFD Sender: No OFD packet to send [20:17:50]accept exits with 7 [20:17:50]New connection [20:17:50]New thread 3067346276 created [20:17:50]Thread 3067489636 joined [20:17:50]Waiting for new connection... [20:17:50] Sock 7.Parse request [20:17:50]Sock 7.Check first char [20:17:50]Sock 7.First char is OK [20:17:50]request: POST /json_proto HTTP/1.0 [20:17:50]Method: POST [20:17:50]URL: /json_proto [20:17:50]Method is POST - this is cgi request [20:17:50]url: /json_proto [20:17:50]query_string will be loaded in cgi processing [20:17:50]execute_cgi json_proto POST (null) [20:17:50]execute_cgi path=json_proto method=POST [20:17:50]POST find Content-Length [20:17:50]Host: 172.17.51.3:8080 [20:17:50]Content-Length: 843 [20:17:50]Content-Type: application/json [20:17:50] [20:17:50]POST finish read [20:17:50]Found Content-Length = 843 [20:17:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342881", "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" : 36.000, "sum" : 2408.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 2408.40 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:17:50]execute_script... [20:17: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)342881", "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" : 36.000, "sum" : 2408.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 2408.40 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:17:50]POST & json_proto [20:17:50]process_json_proto [20:17:50]json parsed OK: [20:17:50]protocol is kg_v1.0 [20:17:50]action value=close_receipt [20:17:50]process_action close_receipt [20:17:50]cmd_close_receipt [20:17:50]MH_GetDate [20:17:50]Write to MH i2c: F0 00 00 F8 15 FC [20:17:50]Write i2c OK [20:17:50]MH_I2C_Read... [20:17:50]Read from MH i2c: F0 [20:17:50]MH_I2C_Read... [20:17:50]Read from MH i2c: F0 09 00 [20:17:50]MH_I2C_Read... [20:17:50]Read from MH i2c: F0 09 00 F8 15 00 6F 65 15 67 04 C1 95 66 15 [20:17:50]GetLastDocTimeStamp 1729455340 [20:17:50]current date 1729455471 [20:17:50]FM_GetShiftState [20:17:50]SAM_PROTO_GetShiftState [20:17:50]wFMCommunicate request_size=4 [20:17:50]MH_SAM_APDU [20:17:50]CAPDU: 80 13 01 00 [20:17:50]Write to MH i2c: E2 08 00 F9 15 80 13 01 00 00 00 00 00 8B [20:17:50]Write i2c OK [20:17:50]MH_I2C_Read... [20:17:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:17:50]Read from MH i2c: E2 [20:17:50]MH_I2C_Read... [20:17:50]Read from MH i2c: E2 0E 00 [20:17:50]MH_I2C_Read... [20:17:50]Read from MH i2c: E2 0E 00 F9 15 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 71 [20:17:50]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [20:17:50]wFMCommunicate OK [20:17:50]SAM_PROTO_GetShiftState done [20:17:50]FM_GetShiftState done [20:17:50]opened in 1729384718 [20:17:50]opened+sec_in_day 1729471118 [20:17:50]quantity*price = 240840 [20:17:50]sum+1 = 240841 [20:17:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2408.40 НСП 1% : 21.31 НДС 12% : 255.76 Наличными: 0.00 Безнал.: 2408.40 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 259 20.10.2024 20:17 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Платежная система: АКБ Кыргызстан ФМ: 0000000002094219 ФД: 30477 ФПД: 82909700966910 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T201751&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30477&fm=82909700966910&tin=02508201610067®Number=0000000000186857&sum=240840 [20:17:51]StoreToDocumentArchive [20:17:51]shift 114 fd 30477 [20:17:51]save to /storage/0114/doc_00030477 [20:17:51]save last doc name /storage/0114/doc_00030477 to /storage/kkm_last_doc_name [20:17:51]save OK [20:17:51]Clear old archive folders... [20:17:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:17:51]tlvbuf is 01DAF780 [20:17:51]SAM_PROTO_ClearQueue [20:17:51]wFMCommunicate request_size=4 [20:17:51]MH_SAM_APDU [20:17:51]CAPDU: 80 09 00 00 [20:17:51]Write to MH i2c: E2 08 00 06 16 80 09 00 00 00 00 00 00 8E [20:17:51]Write i2c OK [20:17:51]MH_I2C_Read... [20:17:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:17:51]Read from MH i2c: E2 [20:17:51]MH_I2C_Read... [20:17:51]Read from MH i2c: E2 03 00 [20:17:51]MH_I2C_Read... [20:17:51]Read from MH i2c: E2 03 00 06 16 00 90 00 90 [20:17:51]RAPDU: 90 00 [20:17:51]wFMCommunicate OK [20:17:51]SAM_PROTO_ClearQueue done [20:17:51]KKMCreateOFDPacket [20:17:51]OFDProtocolAddRootSTLVToBuf [20:17:51]FM_MakeSignedData [20:17:51]FM_MakeSignedData [20:17:51]SAM_PROTO_SignData [20:17:51]wFMCommunicate request_size=4 [20:17:51]MH_SAM_APDU [20:17:51]CAPDU: 80 0D 01 02 [20:17:51]Write to MH i2c: E2 08 00 07 16 80 0D 01 02 00 00 00 00 96 [20:17:51]Write i2c OK [20:17:51]MH_I2C_Read... [20:17:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:17:51]Read from MH i2c: E2 [20:17:51]MH_I2C_Read... [20:17:51]Read from MH i2c: E2 03 00 [20:17:51]MH_I2C_Read... [20:17:51]Read from MH i2c: E2 03 00 07 16 00 90 00 91 [20:17:51]RAPDU: 90 00 [20:17:51]wFMCommunicate OK [20:17:51]wFMCommunicate request_size=255 [20:17:51]MH_SAM_APDU [20:17: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 A0 8C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 C8 AC 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AC 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 53 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E8 63 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 AC 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 6F 65 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 77 00 00 35 04 06 00 4B [20:17:52]Write to MH i2c: E2 02 01 08 16 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 A0 8C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 C8 AC 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AC 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 53 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E8 63 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 AC 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 6F 65 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 77 00 00 35 04 06 00 4B 00 00 AA [20:17:52]Write i2c OK [20:17:52]MH_I2C_Read... [20:17:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:17:52]Read from MH i2c: E2 [20:17:52]MH_I2C_Read... [20:17:52]Read from MH i2c: E2 03 00 [20:17:52]MH_I2C_Read... [20:17:52]Read from MH i2c: E2 03 00 08 16 00 90 00 92 [20:17:52]RAPDU: 90 00 [20:17:52]wFMCommunicate OK [20:17:52]wFMCommunicate request_size=10 [20:17:52]MH_SAM_APDU [20:17:52]CAPDU: 80 0D 02 02 05 67 EB 46 49 FE [20:17:52]Write to MH i2c: E2 0D 00 09 16 80 0D 02 02 05 00 67 EB 46 49 FE 00 00 82 [20:17:52]Write i2c OK [20:17:52]MH_I2C_Read... [20:17:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:17:52]Read from MH i2c: E2 [20:17:52]MH_I2C_Read... [20:17:52]Read from MH i2c: E2 03 00 [20:17:52]MH_I2C_Read... [20:17:52]Read from MH i2c: E2 03 00 09 16 00 90 00 93 [20:17:52]RAPDU: 90 00 [20:17:52]wFMCommunicate OK [20:17:52]wFMCommunicate request_size=4 [20:17:52]MH_SAM_APDU [20:17:52]CAPDU: 80 0D 03 02 [20:17:52]Write to MH i2c: E2 08 00 0A 16 80 0D 03 02 00 00 00 00 9B [20:17:52]Write i2c OK [20:17:52]MH_I2C_Read... [20:17:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:17:52]Read from MH i2c: E2 [20:17:52]MH_I2C_Read... [20:17:52]Read from MH i2c: E2 0B 00 [20:17:52]MH_I2C_Read... [20:17:52]Read from MH i2c: E2 0B 00 0A 16 00 F1 F1 48 51 7A 92 70 09 90 00 9C [20:17:52]RAPDU: F1 F1 48 51 7A 92 70 09 90 00 [20:17:52]wFMCommunicate OK [20:17:52]SAM_PROTO_SignData done [20:17:52]FM_MakeSignedData done [20:17:52]CreateOFDProtocolMessage [20:17:52]wFMCommunicate request_size=4 [20:17:52]MH_SAM_APDU [20:17:52]CAPDU: 80 11 00 00 [20:17:52]Write to MH i2c: E2 08 00 0B 16 80 11 00 00 00 00 00 00 9B [20:17:52]Write i2c OK [20:17:52]MH_I2C_Read... [20:17:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:17:52]Read from MH i2c: E2 [20:17:52]MH_I2C_Read... [20:17:52]Read from MH i2c: E2 17 00 [20:17:52]MH_I2C_Read... [20:17:52]Read from MH i2c: E2 17 00 0B 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 E9 [20:17:52]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:52]wFMCommunicate OK [20:17:52]CreateOFDProtocolMessage done [20:17:52]OFDSenderStorePacket 30477 [20:17:52]StoreOFDPacket docnum=30477 [20:17: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 E4 81 07 01 62 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 A0 8C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 C8 AC 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AC 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 53 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E8 63 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 AC 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 6F 65 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 77 00 00 35 04 06 00 4B 67 EB 46 49 FE F1 F1 48 51 7A 92 70 09 [20:17:52]CheckFolder [20:17:52]dirname=/storage/ofd_packets [20:17:52]CheckFolder done [20:17:52]ProducePacketName [20:17:52]name=ofd_packets/00030477 [20:17:52]NVStorageSaveData ofd_packets/00030477 [20:17:52]File name is /storage/ofd_packets/00030477 [20:17:52]Write 301 bytes [20:17:52]NVStorageSaveData done [20:17:52]OFDSenderStorePacket done [20:17:52]KKMCreateOFDPacket done [20:17:52]NVStorageSaveData kkm_last_timestamp [20:17:52]File name is /storage/kkm_last_timestamp [20:17:52]Write 4 bytes [20:17:52]NVStorageSaveData done [20:17:52]ExternCall_PrintAddStr [20:17:52]wPrintStart [20:17:52]Write to MH i2c: 01 00 00 0C 16 22 [20:17:52]Write i2c OK [20:17:52]MH_I2C_Read... [20:17:52]Read from MH i2c: 01 [20:17:52]MH_I2C_Read... [20:17:52]Read from MH i2c: 01 07 00 [20:17:52]MH_I2C_Read... [20:17:52]Read from MH i2c: 01 07 00 0C 16 00 00 00 00 00 FF 0F 37 [20:17:52]RasterBufferAndPrint [20:17:52]line Счет N : (1)342881 [20:17:52]line ИНН: 02508201610067 [20:17:52]line Контрольно-Кассовый Чек [20:17:52]line ПРОДАЖА [20:17:52]line ТРК (МРК, ГНК) : 53 [20:17:52]line Товар: 2710124130 [20:17:52]line Аи-92-К-2 [20:17:52]line 36.000 * 66.90 [20:17:52]line = 2408.40 [20:17:52]line НДС 12% НСП 1% [20:17:52]line > о реализуемом товаре [20:17:52]line ИТОГО: 2408.40 [20:17:52]line НСП 1% : 21.31 [20:17:52]line НДС 12% : 255.76 [20:17:52]line Наличными: 0.00 [20:17:52]line Безнал.: 2408.40 [20:17:52]line Место: АЗС № 78 "Партнер Нефть" [20:17:52]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [20:17:52]line СНО: Общий режим [20:17:52]line Чек 259 20.10.2024 20:17 [20:17:52]line Смена: 114 ФФД: 1.0 [20:17:52]line ЗНМ: 0300000137 [20:17:52]line РНМ: 0000000000186857 [20:17:52]line Версия ККМ: v1.0 [20:17:52]line Платежная система: АКБ Кыргызстан [20:17:52]line ФМ: 0000000002094219 [20:17:52]line ФД: 30477 [20:17:52]line ФПД: 82909700966910 [20:17:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T201751&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30477&fm=82909700966910&tin=02508201610067®Number=0000000000186857&sum=240840 [20:17:52]OFD Sender: Processing packet 30477 [packets to send 10, broken 9] [20:17:52]ProducePacketName [20:17:52]name=ofd_packets/00030477 [20:17:52]OFD Sender: To server: pG, [20:17:52]CommunicateWithHost lk.salyk.kg:30040 [20:17:52]ConnectInit lk.salyk.kg [20:17:52]written 0, free lines is 4095 [20:17:52]Connected sock=10 [20:17: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 E4 81 07 01 62 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 A0 8C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 C8 AC 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AC 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 53 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E8 63 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 AC 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 6F 65 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 77 00 00 35 04 06 00 4B 67 EB 46 49 FE F1 F1 48 51 7A 92 70 09 [20:17: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 77 BD 47 00 D7 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 0D 77 00 00 F4 03 04 00 F2 0F 15 67 B6 04 01 00 00 AF 3A 48 97 B5 5E 7F 56 [20:17:53]CommunicateWithHost err = 0 [20:17:53]CheckOFDResponse [20:17:53]1017 (14) - 77093643461234 [20:17:53]1041 (16) - 0000000002094219 [20:17:53]1040 (4) - 30477 [20:17:53]1012 (4) - 20.10.2024 14:13 [20:17:53]1206 (1) - 0 [20:17:53]OFD Sender: Remove packet 30477 [20:17:53]ProducePacketName [20:17:53]name=ofd_packets/00030477 [20:17:53]NVStorageDeleteData [20:17:53]Write to MH i2c: 01 00 00 36 16 4C [20:17:53]Write i2c OK [20:17:53]MH_I2C_Read... [20:17:53]Read from MH i2c: 01 [20:17:53]MH_I2C_Read... [20:17:53]Read from MH i2c: 01 07 00 [20:17:53]MH_I2C_Read... [20:17:53]Read from MH i2c: 01 07 00 36 16 00 00 00 00 00 03 0D 63 [20:17:53]RasterBufferAndPrint [20:17:53]line [20:17:53]line [20:17:53]line [20:17:53]line [20:17:53]line [20:17:53]written 0, free lines is 3337 [20:17:53]MH_Cut [20:17:53]Write to MH i2c: D1 01 00 3D 16 01 25 [20:17:53]Write i2c OK [20:17:53]MH_I2C_Read... [20:17:53]Read from MH i2c: D1 [20:17:53]MH_I2C_Read... [20:17:53]Read from MH i2c: D1 01 00 [20:17:53]MH_I2C_Read... [20:17:53]Read from MH i2c: D1 01 00 3D 16 00 24 [20:17:53]Write to MH i2c: 01 00 00 3E 16 54 [20:17:53]Write i2c OK [20:17:53]MH_I2C_Read... [20:17:53]OFD Sender: No OFD packet to send [20:17:53]*** Cut start [20:17:53]*** Partial cut [20:17:53]*** CUTSNS_PIN = 1 [20:17:53]*** CUTSNS_PIN = 0 [20:17:54]*** Brake cut motor [20:17:54]Read from MH i2c: 01 [20:17:54]MH_I2C_Read... [20:17:54]*** Stop cut motor [20:17:54]*** Cut end [20:17:54]Read from MH i2c: 01 07 00 [20:17:54]MH_I2C_Read... [20:17:54]Read from MH i2c: 01 07 00 3E 16 00 00 00 00 00 FF 0F 69 [20:17:54]process_action close_receipt done [20:17:54]requested_data is exist [20:17:54]produce_requested_data [20:17:54]requested_item fm.sn is exist - process it [20:17:54]wFMCommunicate request_size=4 [20:17:54]MH_SAM_APDU [20:17:54]CAPDU: 80 11 00 00 [20:17:54]Write to MH i2c: E2 08 00 3F 16 80 11 00 00 00 00 00 00 CF [20:17:54]Write i2c OK [20:17:54]MH_I2C_Read... [20:17:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:17:54]Read from MH i2c: E2 [20:17:54]MH_I2C_Read... [20:17:54]Read from MH i2c: E2 17 00 [20:17:54]MH_I2C_Read... [20:17:54]Read from MH i2c: E2 17 00 3F 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 1D [20:17:54]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:54]wFMCommunicate OK [20:17:54]requested_item fd.num is exist - process it [20:17:54]SAM_PROTO_GetFieldsCounters [20:17:54]wFMCommunicate request_size=4 [20:17:54]MH_SAM_APDU [20:17:54]CAPDU: 80 13 00 00 [20:17:54]Write to MH i2c: E2 08 00 40 16 80 13 00 00 00 00 00 00 D2 [20:17:54]Write i2c OK [20:17:54]MH_I2C_Read... [20:17:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:17:54]Read from MH i2c: E2 [20:17:54]MH_I2C_Read... [20:17:54]Read from MH i2c: E2 62 00 [20:17:54]MH_I2C_Read... [20:17:54]Read from MH i2c: E2 62 00 40 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 77 00 00 0E 04 04 00 72 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 FA [20:17: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 0D 77 00 00 0E 04 04 00 72 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 [20:17:54]wFMCommunicate OK [20:17:54]SAM_PROTO_GetFieldsCounters done [20:17:54]requested_item shift.num is exist - process it [20:17:54]requested_item shift.opened is exist - process it [20:17:54]req_shift_opened [20:17:54]FM_GetShiftState [20:17:54]SAM_PROTO_GetShiftState [20:17:54]wFMCommunicate request_size=4 [20:17:54]MH_SAM_APDU [20:17:54]CAPDU: 80 13 01 00 [20:17:54]Write to MH i2c: E2 08 00 41 16 80 13 01 00 00 00 00 00 D4 [20:17:54]Write i2c OK [20:17:54]MH_I2C_Read... [20:17:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:17:54]Read from MH i2c: E2 [20:17:54]MH_I2C_Read... [20:17:54]Read from MH i2c: E2 0E 00 [20:17:54]MH_I2C_Read... [20:17:54]Read from MH i2c: E2 0E 00 41 16 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 BA [20:17:54]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [20:17:54]wFMCommunicate OK [20:17:54]SAM_PROTO_GetShiftState done [20:17:54]FM_GetShiftState done [20:17:54]req_shift_opened done [20:17:54]requested_item shift.open_date is exist - process it [20:17:54]req_shift_open_date [20:17:54]req_shift_open_date done [20:17:54]produce_requested_data done [20:17:54]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30477,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [20:17:54]process_action_free close_receipt [20:17:54]json_value_free [20:17:54]json_value_free done [20:17:54]process_json_proto returns [20:17:54]Send response to host [20:17:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30477,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [20:17:54]free response buf [20:17:54]execute_script done [20:17:54]execute_script returns [20:17:54]free content buf [20:17:54]Sock 7.Close socket [20:17:54]Sock 7.Thread stoped [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:49]accept exits with 9 [20:19:49]New connection [20:19:49]New thread 3067489636 created [20:19:49]Thread 3067346276 joined [20:19:49]Waiting for new connection... [20:19:49] Sock 9.Parse request [20:19:49]Sock 9.Check first char [20:19:49]Sock 9.First char is OK [20:19:49]request: POST /json_proto HTTP/1.0 [20:19:49]Method: POST [20:19:49]URL: /json_proto [20:19:49]Method is POST - this is cgi request [20:19:49]url: /json_proto [20:19:49]query_string will be loaded in cgi processing [20:19:49]execute_cgi json_proto POST (null) [20:19:49]execute_cgi path=json_proto method=POST [20:19:49]POST find Content-Length [20:19:49]Host: 172.17.51.3:8080 [20:19:49]Content-Length: 677 [20:19:49]Content-Type: application/json [20:19:49] [20:19:49]POST finish read [20:19:49]Found Content-Length = 677 [20:19:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342882", "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" ] } } [20:19:49]execute_script... [20:19: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)342882", "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" ] } } [20:19:49]POST & json_proto [20:19:49]process_json_proto [20:19:49]json parsed OK: [20:19:49]protocol is kg_v1.0 [20:19:49]action value=close_receipt [20:19:49]process_action close_receipt [20:19:49]cmd_close_receipt [20:19:49]MH_GetDate [20:19:49]Write to MH i2c: F0 00 00 42 16 47 [20:19:49]Write i2c OK [20:19:49]MH_I2C_Read... [20:19:49]Read from MH i2c: F0 [20:19:49]MH_I2C_Read... [20:19:49]Read from MH i2c: F0 09 00 [20:19:49]MH_I2C_Read... [20:19:49]Read from MH i2c: F0 09 00 42 16 00 E6 65 15 67 04 C1 95 66 D7 [20:19:49]GetLastDocTimeStamp 1729455471 [20:19:49]current date 1729455590 [20:19:49]FM_GetShiftState [20:19:49]SAM_PROTO_GetShiftState [20:19:49]wFMCommunicate request_size=4 [20:19:49]MH_SAM_APDU [20:19:49]CAPDU: 80 13 01 00 [20:19:49]Write to MH i2c: E2 08 00 43 16 80 13 01 00 00 00 00 00 D6 [20:19:49]Write i2c OK [20:19:49]MH_I2C_Read... [20:19:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:19:49]Read from MH i2c: E2 [20:19:49]MH_I2C_Read... [20:19:49]Read from MH i2c: E2 0E 00 [20:19:49]MH_I2C_Read... [20:19:49]Read from MH i2c: E2 0E 00 43 16 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 BC [20:19:49]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [20:19:49]wFMCommunicate OK [20:19:49]SAM_PROTO_GetShiftState done [20:19:49]FM_GetShiftState done [20:19:49]opened in 1729384718 [20:19:49]opened+sec_in_day 1729471118 [20:19:49]quantity*price = 40006 [20:19:49]sum+1 = 40007 [20:19:49]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 СНО: Общий режим Чек 260 20.10.2024 20:19 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30478 ФПД: 121918482422527 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T201950&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30478&fm=121918482422527&tin=02508201610067®Number=0000000000186857&sum=40000 [20:19:50]StoreToDocumentArchive [20:19:50]shift 114 fd 30478 [20:19:50]save to /storage/0114/doc_00030478 [20:19:50]save last doc name /storage/0114/doc_00030478 to /storage/kkm_last_doc_name [20:19:50]save OK [20:19:50]Clear old archive folders... [20:19:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:19:50]tlvbuf is 01DEAA40 [20:19:50]SAM_PROTO_ClearQueue [20:19:50]wFMCommunicate request_size=4 [20:19:50]MH_SAM_APDU [20:19:50]CAPDU: 80 09 00 00 [20:19:50]Write to MH i2c: E2 08 00 50 16 80 09 00 00 00 00 00 00 D8 [20:19:50]Write i2c OK [20:19:50]MH_I2C_Read... [20:19:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:19:50]Read from MH i2c: E2 [20:19:50]MH_I2C_Read... [20:19:50]Read from MH i2c: E2 03 00 [20:19:50]MH_I2C_Read... [20:19:50]Read from MH i2c: E2 03 00 50 16 00 90 00 DA [20:19:50]RAPDU: 90 00 [20:19:50]wFMCommunicate OK [20:19:50]SAM_PROTO_ClearQueue done [20:19:50]KKMCreateOFDPacket [20:19:50]OFDProtocolAddRootSTLVToBuf [20:19:50]FM_MakeSignedData [20:19:50]FM_MakeSignedData [20:19:50]SAM_PROTO_SignData [20:19:50]wFMCommunicate request_size=4 [20:19:50]MH_SAM_APDU [20:19:50]CAPDU: 80 0D 01 02 [20:19:50]Write to MH i2c: E2 08 00 51 16 80 0D 01 02 00 00 00 00 E0 [20:19:50]Write i2c OK [20:19:50]MH_I2C_Read... [20:19:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:19:50]Read from MH i2c: E2 [20:19:50]MH_I2C_Read... [20:19:50]Read from MH i2c: E2 03 00 [20:19:50]MH_I2C_Read... [20:19:50]Read from MH i2c: E2 03 00 51 16 00 90 00 DB [20:19:50]RAPDU: 90 00 [20:19:50]wFMCommunicate OK [20:19:50]wFMCommunicate request_size=255 [20:19:50]MH_SAM_APDU [20:19: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 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 01 00 00 F4 03 04 00 E6 65 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 77 00 00 35 04 06 00 6E [20:19:50]Write to MH i2c: E2 02 01 52 16 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 01 00 00 F4 03 04 00 E6 65 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 77 00 00 35 04 06 00 6E 00 00 71 [20:19:50]Write i2c OK [20:19:50]MH_I2C_Read... [20:19:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:19:50]Read from MH i2c: E2 [20:19:50]MH_I2C_Read... [20:19:50]Read from MH i2c: E2 03 00 [20:19:50]MH_I2C_Read... [20:19:50]Read from MH i2c: E2 03 00 52 16 00 90 00 DC [20:19:50]RAPDU: 90 00 [20:19:50]wFMCommunicate OK [20:19:50]wFMCommunicate request_size=10 [20:19:50]MH_SAM_APDU [20:19:50]CAPDU: 80 0D 02 02 05 E2 5B D6 1A FF [20:19:50]Write to MH i2c: E2 0D 00 53 16 80 0D 02 02 05 00 E2 5B D6 1A FF 00 00 19 [20:19:50]Write i2c OK [20:19:50]MH_I2C_Read... [20:19:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:19:50]Read from MH i2c: E2 [20:19:50]MH_I2C_Read... [20:19:50]Read from MH i2c: E2 03 00 [20:19:50]MH_I2C_Read... [20:19:50]Read from MH i2c: E2 03 00 53 16 00 90 00 DD [20:19:50]RAPDU: 90 00 [20:19:50]wFMCommunicate OK [20:19:50]wFMCommunicate request_size=4 [20:19:50]MH_SAM_APDU [20:19:50]CAPDU: 80 0D 03 02 [20:19:50]Write to MH i2c: E2 08 00 54 16 80 0D 03 02 00 00 00 00 E5 [20:19:50]Write i2c OK [20:19:50]MH_I2C_Read... [20:19:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:19:51]Read from MH i2c: E2 [20:19:51]MH_I2C_Read... [20:19:51]Read from MH i2c: E2 0B 00 [20:19:51]MH_I2C_Read... [20:19:51]Read from MH i2c: E2 0B 00 54 16 00 21 86 DA 4B EC 06 89 F6 90 00 23 [20:19:51]RAPDU: 21 86 DA 4B EC 06 89 F6 90 00 [20:19:51]wFMCommunicate OK [20:19:51]SAM_PROTO_SignData done [20:19:51]FM_MakeSignedData done [20:19:51]CreateOFDProtocolMessage [20:19:51]wFMCommunicate request_size=4 [20:19:51]MH_SAM_APDU [20:19:51]CAPDU: 80 11 00 00 [20:19:51]Write to MH i2c: E2 08 00 55 16 80 11 00 00 00 00 00 00 E5 [20:19:51]Write i2c OK [20:19:51]MH_I2C_Read... [20:19:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:19:51]Read from MH i2c: E2 [20:19:51]MH_I2C_Read... [20:19:51]Read from MH i2c: E2 17 00 [20:19:51]MH_I2C_Read... [20:19:51]Read from MH i2c: E2 17 00 55 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 33 [20:19:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [20:19:51]wFMCommunicate OK [20:19:51]CreateOFDProtocolMessage done [20:19:51]OFDSenderStorePacket 30478 [20:19:51]StoreOFDPacket docnum=30478 [20:19: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 3F BE 07 01 86 D4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 01 00 00 F4 03 04 00 E6 65 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 77 00 00 35 04 06 00 6E E2 5B D6 1A FF 21 86 DA 4B EC 06 89 F6 [20:19:51]CheckFolder [20:19:51]dirname=/storage/ofd_packets [20:19:51]CheckFolder done [20:19:51]ProducePacketName [20:19:51]name=ofd_packets/00030478 [20:19:51]NVStorageSaveData ofd_packets/00030478 [20:19:51]File name is /storage/ofd_packets/00030478 [20:19:51]Write 301 bytes [20:19:51]NVStorageSaveData done [20:19:51]OFDSenderStorePacket done [20:19:51]KKMCreateOFDPacket done [20:19:51]NVStorageSaveData kkm_last_timestamp [20:19:51]File name is /storage/kkm_last_timestamp [20:19:51]Write 4 bytes [20:19:51]NVStorageSaveData done [20:19:51]ExternCall_PrintAddStr [20:19:51]wPrintStart [20:19:51]Write to MH i2c: 01 00 00 56 16 6C [20:19:51]Write i2c OK [20:19:51]MH_I2C_Read... [20:19:51]Read from MH i2c: 01 [20:19:51]MH_I2C_Read... [20:19:51]Read from MH i2c: 01 07 00 [20:19:51]MH_I2C_Read... [20:19:51]Read from MH i2c: 01 07 00 56 16 00 00 00 00 00 FF 0F 81 [20:19:51]RasterBufferAndPrint [20:19:51]line Счет N : (1)342882 [20:19:51]line ИНН: 02508201610067 [20:19:51]line Контрольно-Кассовый Чек [20:19:51]line ПРОДАЖА [20:19:51]line ТРК (МРК, ГНК) : 33 [20:19:51]line Товар: 2710124130 [20:19:51]line Аи-92-К-2 [20:19:51]line 5.980 * 66.90 [20:19:51]line = 400.06 [20:19:51]line НДС 12% НСП 1% [20:19:51]line > о реализуемом товаре [20:19:51]line ОКРУГЛЕНИЕ: -0.06 [20:19:51]line ИТОГО: 400.00 [20:19:51]line Внесено: 400.00 [20:19:51]line СДАЧА: 0.00 [20:19:51]line НСП 1% : 3.54 [20:19:51]line НДС 12% : 42.48 [20:19:51]line Наличными: 400.00 [20:19:51]line Безнал.: 0.00 [20:19:51]line Место: АЗС № 78 "Партнер Нефть" [20:19:51]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [20:19:51]line СНО: Общий режим [20:19:51]line Чек 260 20.10.2024 20:19 [20:19:51]line Смена: 114 ФФД: 1.0 [20:19:51]line ЗНМ: 0300000137 [20:19:51]line РНМ: 0000000000186857 [20:19:51]line Версия ККМ: v1.0 [20:19:51]line ФМ: 0000000002094219 [20:19:51]line ФД: 30478 [20:19:51]line ФПД: 121918482422527 [20:19:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T201950&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30478&fm=121918482422527&tin=02508201610067®Number=0000000000186857&sum=40000 [20:19:51]OFD Sender: Processing packet 30478 [packets to send 10, broken 9] [20:19:51]ProducePacketName [20:19:51]name=ofd_packets/00030478 [20:19:51]OFD Sender: To server: pG, [20:19:51]CommunicateWithHost lk.salyk.kg:30040 [20:19:51]ConnectInit lk.salyk.kg [20:19:51]written 0, free lines is 4095 [20:19:51]Connected sock=10 [20:19: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 3F BE 07 01 86 D4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 01 00 00 F4 03 04 00 E6 65 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 77 00 00 35 04 06 00 6E E2 5B D6 1A FF 21 86 DA 4B EC 06 89 F6 [20:19: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 54 A1 47 00 C6 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 0E 77 00 00 F4 03 04 00 69 10 15 67 B6 04 01 00 00 1C 3B 97 F1 FD 31 3F 5A [20:19:51]CommunicateWithHost err = 0 [20:19:51]CheckOFDResponse [20:19:51]1017 (14) - 77093643461234 [20:19:51]1041 (16) - 0000000002094219 [20:19:51]1040 (4) - 30478 [20:19:51]1012 (4) - 20.10.2024 14:15 [20:19:51]1206 (1) - 0 [20:19:51]OFD Sender: Remove packet 30478 [20:19:51]ProducePacketName [20:19:51]name=ofd_packets/00030478 [20:19:51]NVStorageDeleteData [20:19:51]Write to MH i2c: 01 00 00 81 16 97 [20:19:51]Write i2c OK [20:19:51]MH_I2C_Read... [20:19:51]Read from MH i2c: 01 [20:19:51]MH_I2C_Read... [20:19:51]Read from MH i2c: 01 07 00 [20:19:51]MH_I2C_Read... [20:19:51]Read from MH i2c: 01 07 00 81 16 00 00 00 00 00 E7 0C 91 [20:19:51]RasterBufferAndPrint [20:19:51]line [20:19:51]line [20:19:51]line [20:19:51]line [20:19:51]line [20:19:51]written 0, free lines is 3310 [20:19:51]MH_Cut [20:19:51]Write to MH i2c: D1 01 00 88 16 01 70 [20:19:51]Write i2c OK [20:19:51]MH_I2C_Read... [20:19:51]Read from MH i2c: D1 [20:19:51]MH_I2C_Read... [20:19:51]Read from MH i2c: D1 01 00 [20:19:51]MH_I2C_Read... [20:19:51]Read from MH i2c: D1 01 00 88 16 00 6F [20:19:51]Write to MH i2c: 01 00 00 89 16 9F [20:19:51]Write i2c OK [20:19:51]MH_I2C_Read... [20:19:52]OFD Sender: No OFD packet to send [20:19:52]*** Cut start [20:19:52]*** Partial cut [20:19:52]*** CUTSNS_PIN = 1 [20:19:52]*** CUTSNS_PIN = 0 [20:19:52]*** Brake cut motor [20:19:53]Read from MH i2c: 01 [20:19:53]MH_I2C_Read... [20:19:53]*** Stop cut motor [20:19:53]*** Cut end [20:19:53]Read from MH i2c: 01 07 00 [20:19:53]MH_I2C_Read... [20:19:53]Read from MH i2c: 01 07 00 89 16 00 00 00 00 00 FF 0F B4 [20:19:53]process_action close_receipt done [20:19:53]requested_data is exist [20:19:53]produce_requested_data [20:19:53]requested_item fm.sn is exist - process it [20:19:53]wFMCommunicate request_size=4 [20:19:53]MH_SAM_APDU [20:19:53]CAPDU: 80 11 00 00 [20:19:53]Write to MH i2c: E2 08 00 8A 16 80 11 00 00 00 00 00 00 1A [20:19:53]Write i2c OK [20:19:53]MH_I2C_Read... [20:19:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:19:53]Read from MH i2c: E2 [20:19:53]MH_I2C_Read... [20:19:53]Read from MH i2c: E2 17 00 [20:19:53]MH_I2C_Read... [20:19:53]Read from MH i2c: E2 17 00 8A 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 68 [20:19:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [20:19:53]wFMCommunicate OK [20:19:53]requested_item fd.num is exist - process it [20:19:53]SAM_PROTO_GetFieldsCounters [20:19:53]wFMCommunicate request_size=4 [20:19:53]MH_SAM_APDU [20:19:53]CAPDU: 80 13 00 00 [20:19:53]Write to MH i2c: E2 08 00 8B 16 80 13 00 00 00 00 00 00 1D [20:19:53]Write i2c OK [20:19:53]MH_I2C_Read... [20:19:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:19:53]Read from MH i2c: E2 [20:19:53]MH_I2C_Read... [20:19:53]Read from MH i2c: E2 62 00 [20:19:53]MH_I2C_Read... [20:19:53]Read from MH i2c: E2 62 00 8B 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 77 00 00 0E 04 04 00 72 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 49 [20:19: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 0E 77 00 00 0E 04 04 00 72 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 [20:19:53]wFMCommunicate OK [20:19:53]SAM_PROTO_GetFieldsCounters done [20:19:53]requested_item shift.num is exist - process it [20:19:53]requested_item shift.opened is exist - process it [20:19:53]req_shift_opened [20:19:53]FM_GetShiftState [20:19:53]SAM_PROTO_GetShiftState [20:19:53]wFMCommunicate request_size=4 [20:19:53]MH_SAM_APDU [20:19:53]CAPDU: 80 13 01 00 [20:19:53]Write to MH i2c: E2 08 00 8C 16 80 13 01 00 00 00 00 00 1F [20:19:53]Write i2c OK [20:19:53]MH_I2C_Read... [20:19:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:19:53]Read from MH i2c: E2 [20:19:53]MH_I2C_Read... [20:19:53]Read from MH i2c: E2 0E 00 [20:19:53]MH_I2C_Read... [20:19:53]Read from MH i2c: E2 0E 00 8C 16 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 05 [20:19:53]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [20:19:53]wFMCommunicate OK [20:19:53]SAM_PROTO_GetShiftState done [20:19:53]FM_GetShiftState done [20:19:53]req_shift_opened done [20:19:53]requested_item shift.open_date is exist - process it [20:19:53]req_shift_open_date [20:19:53]req_shift_open_date done [20:19:53]produce_requested_data done [20:19:53]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30478,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [20:19:53]process_action_free close_receipt [20:19:53]json_value_free [20:19:53]json_value_free done [20:19:53]process_json_proto returns [20:19:53]Send response to host [20:19:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30478,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [20:19:53]free response buf [20:19:53]execute_script done [20:19:53]execute_script returns [20:19:53]free content buf [20:19:53]Sock 9.Close socket [20:19:53]Sock 9.Thread stoped [20:19:57]OFD Sender: No OFD packet to send [20:20:02]OFD Sender: No OFD packet to send [20:20:07]OFD Sender: No OFD packet to send [20:20:12]OFD Sender: No OFD packet to send [20:20:17]OFD Sender: No OFD packet to send [20:20:22]OFD Sender: No OFD packet to send [20:20:27]OFD Sender: No OFD packet to send [20:20:32]OFD Sender: No OFD packet to send [20:20:37]OFD Sender: No OFD packet to send [20:20:42]OFD Sender: No OFD packet to send [20:20:47]OFD Sender: No OFD packet to send [20:20:52]OFD Sender: No OFD packet to send [20:20:57]OFD Sender: No OFD packet to send [20:21:02]OFD Sender: No OFD packet to send [20:21:07]OFD Sender: No OFD packet to send [20:21:12]OFD Sender: No OFD packet to send [20:21:17]OFD Sender: No OFD packet to send [20:21:22]OFD Sender: No OFD packet to send [20:21:27]OFD Sender: No OFD packet to send [20:21:32]OFD Sender: No OFD packet to send [20:21:37]OFD Sender: No OFD packet to send [20:21:42]OFD Sender: No OFD packet to send [20:21:46]accept exits with 7 [20:21:46]New connection [20:21:46]New thread 3067346276 created [20:21:46]Thread 3067489636 joined [20:21:46]Waiting for new connection... [20:21:46] Sock 7.Parse request [20:21:46]Sock 7.Check first char [20:21:46]Sock 7.First char is OK [20:21:46]request: POST /json_proto HTTP/1.0 [20:21:46]Method: POST [20:21:46]URL: /json_proto [20:21:46]Method is POST - this is cgi request [20:21:46]url: /json_proto [20:21:46]query_string will be loaded in cgi processing [20:21:46]execute_cgi json_proto POST (null) [20:21:46]execute_cgi path=json_proto method=POST [20:21:46]POST find Content-Length [20:21:46]Host: 172.17.51.3:8080 [20:21:46]Content-Length: 677 [20:21:46]Content-Type: application/json [20:21:46] [20:21:46]POST finish read [20:21:46]Found Content-Length = 677 [20:21:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342883", "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" ] } } [20:21:46]execute_script... [20: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)342883", "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" ] } } [20:21:46]POST & json_proto [20:21:46]process_json_proto [20:21:46]json parsed OK: [20:21:46]protocol is kg_v1.0 [20:21:46]action value=close_receipt [20:21:46]process_action close_receipt [20:21:46]cmd_close_receipt [20:21:46]MH_GetDate [20:21:46]Write to MH i2c: F0 00 00 8D 16 92 [20:21:46]Write i2c OK [20:21:46]MH_I2C_Read... [20:21:46]Read from MH i2c: F0 [20:21:46]MH_I2C_Read... [20:21:46]Read from MH i2c: F0 09 00 [20:21:46]MH_I2C_Read... [20:21:46]Read from MH i2c: F0 09 00 8D 16 00 5B 66 15 67 04 C1 95 66 98 [20:21:46]GetLastDocTimeStamp 1729455590 [20:21:46]current date 1729455707 [20:21:46]FM_GetShiftState [20:21:46]SAM_PROTO_GetShiftState [20:21:46]wFMCommunicate request_size=4 [20:21:46]MH_SAM_APDU [20:21:46]CAPDU: 80 13 01 00 [20:21:46]Write to MH i2c: E2 08 00 8E 16 80 13 01 00 00 00 00 00 21 [20:21:46]Write i2c OK [20:21:46]MH_I2C_Read... [20:21:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:21:46]Read from MH i2c: E2 [20:21:46]MH_I2C_Read... [20:21:46]Read from MH i2c: E2 0E 00 [20:21:46]MH_I2C_Read... [20:21:46]Read from MH i2c: E2 0E 00 8E 16 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 07 [20:21:46]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [20:21:46]wFMCommunicate OK [20:21:46]SAM_PROTO_GetShiftState done [20:21:46]FM_GetShiftState done [20:21:46]opened in 1729384718 [20:21:46]opened+sec_in_day 1729471118 [20:21:46]quantity*price = 40006 [20:21:46]sum+1 = 40007 [20:21:46]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 СНО: Общий режим Чек 261 20.10.2024 20:21 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30479 ФПД: 249919124992335 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T202147&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30479&fm=249919124992335&tin=02508201610067®Number=0000000000186857&sum=40000 [20:21:47]StoreToDocumentArchive [20:21:47]shift 114 fd 30479 [20:21:47]save to /storage/0114/doc_00030479 [20:21:47]save last doc name /storage/0114/doc_00030479 to /storage/kkm_last_doc_name [20:21:47]save OK [20:21:47]Clear old archive folders... [20:21:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:21:47]tlvbuf is B6FD8010 [20:21:47]SAM_PROTO_ClearQueue [20:21:47]wFMCommunicate request_size=4 [20:21:47]MH_SAM_APDU [20:21:47]CAPDU: 80 09 00 00 [20:21:47]Write to MH i2c: E2 08 00 9B 16 80 09 00 00 00 00 00 00 23 [20:21:47]Write i2c OK [20:21:47]MH_I2C_Read... [20:21:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:21:47]Read from MH i2c: E2 [20:21:47]MH_I2C_Read... [20:21:47]Read from MH i2c: E2 03 00 [20:21:47]MH_I2C_Read... [20:21:47]Read from MH i2c: E2 03 00 9B 16 00 90 00 25 [20:21:47]RAPDU: 90 00 [20:21:47]wFMCommunicate OK [20:21:47]SAM_PROTO_ClearQueue done [20:21:47]KKMCreateOFDPacket [20:21:47]OFDProtocolAddRootSTLVToBuf [20:21:47]FM_MakeSignedData [20:21:47]FM_MakeSignedData [20:21:47]SAM_PROTO_SignData [20:21:47]wFMCommunicate request_size=4 [20:21:47]MH_SAM_APDU [20:21:47]CAPDU: 80 0D 01 02 [20:21:47]Write to MH i2c: E2 08 00 9C 16 80 0D 01 02 00 00 00 00 2B [20:21:47]Write i2c OK [20:21:47]MH_I2C_Read... [20:21:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:21:47]Read from MH i2c: E2 [20:21:47]MH_I2C_Read... [20:21:47]Read from MH i2c: E2 03 00 [20:21:47]MH_I2C_Read... [20:21:47]Read from MH i2c: E2 03 00 9C 16 00 90 00 26 [20:21:47]RAPDU: 90 00 [20:21:47]wFMCommunicate OK [20:21:47]wFMCommunicate request_size=255 [20:21:47]MH_SAM_APDU [20:21: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 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 05 01 00 00 F4 03 04 00 5B 66 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 77 00 00 35 04 06 00 E3 [20:21:47]Write to MH i2c: E2 02 01 9D 16 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 05 01 00 00 F4 03 04 00 5B 66 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 77 00 00 35 04 06 00 E3 00 00 A9 [20:21:47]Write i2c OK [20:21:47]MH_I2C_Read... [20:21:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:21:47]Read from MH i2c: E2 [20:21:47]MH_I2C_Read... [20:21:47]Read from MH i2c: E2 03 00 [20:21:47]MH_I2C_Read... [20:21:47]Read from MH i2c: E2 03 00 9D 16 00 90 00 27 [20:21:47]RAPDU: 90 00 [20:21:47]wFMCommunicate OK [20:21:47]wFMCommunicate request_size=10 [20:21:47]MH_SAM_APDU [20:21:47]CAPDU: 80 0D 02 02 05 4C D4 AA F1 4F [20:21:47]Write to MH i2c: E2 0D 00 9E 16 80 0D 02 02 05 00 4C D4 AA F1 4F 00 00 42 [20:21:47]Write i2c OK [20:21:47]MH_I2C_Read... [20:21:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:21:47]Read from MH i2c: E2 [20:21:47]MH_I2C_Read... [20:21:47]Read from MH i2c: E2 03 00 [20:21:47]MH_I2C_Read... [20:21:47]Read from MH i2c: E2 03 00 9E 16 00 90 00 28 [20:21:47]RAPDU: 90 00 [20:21:47]wFMCommunicate OK [20:21:47]wFMCommunicate request_size=4 [20:21:47]MH_SAM_APDU [20:21:47]CAPDU: 80 0D 03 02 [20:21:47]Write to MH i2c: E2 08 00 9F 16 80 0D 03 02 00 00 00 00 30 [20:21:47]Write i2c OK [20:21:47]MH_I2C_Read... [20:21:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:21:47]Read from MH i2c: E2 [20:21:47]MH_I2C_Read... [20:21:47]Read from MH i2c: E2 0B 00 [20:21:47]MH_I2C_Read... [20:21:47]Read from MH i2c: E2 0B 00 9F 16 00 2D 29 FD 08 3D D9 CF 17 90 00 88 [20:21:47]RAPDU: 2D 29 FD 08 3D D9 CF 17 90 00 [20:21:47]wFMCommunicate OK [20:21:47]SAM_PROTO_SignData done [20:21:47]FM_MakeSignedData done [20:21:47]CreateOFDProtocolMessage [20:21:47]wFMCommunicate request_size=4 [20:21:47]MH_SAM_APDU [20:21:47]CAPDU: 80 11 00 00 [20:21:47]Write to MH i2c: E2 08 00 A0 16 80 11 00 00 00 00 00 00 30 [20:21:47]Write i2c OK [20:21:47]MH_I2C_Read... [20:21:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:21:48]Read from MH i2c: E2 [20:21:48]MH_I2C_Read... [20:21:48]Read from MH i2c: E2 17 00 [20:21:48]MH_I2C_Read... [20:21:48]Read from MH i2c: E2 17 00 A0 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 7E [20: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 [20:21:48]wFMCommunicate OK [20:21:48]CreateOFDProtocolMessage done [20:21:48]OFDSenderStorePacket 30479 [20:21:48]StoreOFDPacket docnum=30479 [20: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 0F 01 00 00 97 C2 07 01 FF 33 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 05 01 00 00 F4 03 04 00 5B 66 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 77 00 00 35 04 06 00 E3 4C D4 AA F1 4F 2D 29 FD 08 3D D9 CF 17 [20:21:48]CheckFolder [20:21:48]dirname=/storage/ofd_packets [20:21:48]CheckFolder done [20:21:48]ProducePacketName [20:21:48]name=ofd_packets/00030479 [20:21:48]NVStorageSaveData ofd_packets/00030479 [20:21:48]File name is /storage/ofd_packets/00030479 [20:21:48]Write 301 bytes [20:21:48]NVStorageSaveData done [20:21:48]OFDSenderStorePacket done [20:21:48]KKMCreateOFDPacket done [20:21:48]NVStorageSaveData kkm_last_timestamp [20:21:48]File name is /storage/kkm_last_timestamp [20:21:48]Write 4 bytes [20:21:48]NVStorageSaveData done [20:21:48]OFD Sender: Processing packet 30479 [packets to send 10, broken 9] [20:21:48]ProducePacketName [20:21:48]name=ofd_packets/00030479 [20:21:48]OFD Sender: To server: pG, [20:21:48]CommunicateWithHost lk.salyk.kg:30040 [20:21:48]ConnectInit lk.salyk.kg [20:21:48]ExternCall_PrintAddStr [20:21:48]wPrintStart [20:21:48]Write to MH i2c: 01 00 00 A1 16 B7 [20:21:48]Write i2c OK [20:21:48]MH_I2C_Read... [20:21:48]Read from MH i2c: 01 [20:21:48]MH_I2C_Read... [20:21:48]Read from MH i2c: 01 07 00 [20:21:48]MH_I2C_Read... [20:21:48]Read from MH i2c: 01 07 00 A1 16 00 00 00 00 00 FF 0F CC [20:21:48]RasterBufferAndPrint [20:21:48]line Счет N : (1)342883 [20:21:48]line ИНН: 02508201610067 [20:21:48]line Контрольно-Кассовый Чек [20:21:48]line ПРОДАЖА [20:21:48]line ТРК (МРК, ГНК) : 33 [20:21:48]line Товар: 2710124130 [20:21:48]line Аи-92-К-2 [20:21:48]line 5.980 * 66.90 [20:21:48]line = 400.06 [20:21:48]line НДС 12% НСП 1% [20:21:48]line > о реализуемом товаре [20:21:48]line ОКРУГЛЕНИЕ: -0.06 [20:21:48]line ИТОГО: 400.00 [20:21:48]line Внесено: 400.00 [20:21:48]line СДАЧА: 0.00 [20:21:48]line НСП 1% : 3.54 [20:21:48]line НДС 12% : 42.48 [20:21:48]line Наличными: 400.00 [20:21:48]line Безнал.: 0.00 [20:21:48]line Место: АЗС № 78 "Партнер Нефть" [20:21:48]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [20:21:48]line СНО: Общий режим [20:21:48]line Чек 261 20.10.2024 20:21 [20:21:48]line Смена: 114 ФФД: 1.0 [20:21:48]line ЗНМ: 0300000137 [20:21:48]line РНМ: 0000000000186857 [20:21:48]line Версия ККМ: v1.0 [20:21:48]line ФМ: 0000000002094219 [20:21:48]line ФД: 30479 [20:21:48]line ФПД: 249919124992335 [20:21:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T202147&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30479&fm=249919124992335&tin=02508201610067®Number=0000000000186857&sum=40000 [20:21:48]Connected sock=11 [20: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 0F 01 00 00 97 C2 07 01 FF 33 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 05 01 00 00 F4 03 04 00 5B 66 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 77 00 00 35 04 06 00 E3 4C D4 AA F1 4F 2D 29 FD 08 3D D9 CF 17 [20:21:48]written 0, free lines is 4095 [20: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 43 F8 47 00 8A 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 0F 77 00 00 F4 03 04 00 DE 10 15 67 B6 04 01 00 00 21 77 03 C3 4A 09 C0 FD [20:21:48]CommunicateWithHost err = 0 [20:21:48]CheckOFDResponse [20:21:48]1017 (14) - 77093643461234 [20:21:48]1041 (16) - 0000000002094219 [20:21:48]1040 (4) - 30479 [20:21:48]1012 (4) - 20.10.2024 14:17 [20:21:48]1206 (1) - 0 [20:21:48]OFD Sender: Remove packet 30479 [20:21:48]ProducePacketName [20:21:48]name=ofd_packets/00030479 [20:21:48]NVStorageDeleteData [20:21:48]Write to MH i2c: 01 00 00 CC 16 E2 [20:21:48]Write i2c OK [20:21:48]MH_I2C_Read... [20:21:48]Read from MH i2c: 01 [20:21:48]MH_I2C_Read... [20:21:48]Read from MH i2c: 01 07 00 [20:21:48]MH_I2C_Read... [20:21:48]Read from MH i2c: 01 07 00 CC 16 00 00 00 00 00 F1 0C E6 [20:21:48]RasterBufferAndPrint [20:21:48]line [20:21:48]line [20:21:48]line [20:21:48]line [20:21:48]line [20:21:48]written 0, free lines is 3319 [20:21:48]MH_Cut [20:21:48]Write to MH i2c: D1 01 00 D3 16 01 BB [20:21:48]Write i2c OK [20:21:48]MH_I2C_Read... [20:21:48]Read from MH i2c: D1 [20:21:48]MH_I2C_Read... [20:21:48]Read from MH i2c: D1 01 00 [20:21:48]MH_I2C_Read... [20:21:48]Read from MH i2c: D1 01 00 D3 16 00 BA [20:21:48]Write to MH i2c: 01 00 00 D4 16 EA [20:21:48]Write i2c OK [20:21:48]MH_I2C_Read... [20:21:49]OFD Sender: No OFD packet to send [20:21:49]*** Cut start [20:21:49]*** Partial cut [20:21:49]*** CUTSNS_PIN = 1 [20:21:49]*** CUTSNS_PIN = 0 [20:21:49]*** Brake cut motor [20:21:50]Read from MH i2c: 01 [20:21:50]MH_I2C_Read... [20:21:50]*** Stop cut motor [20:21:50]*** Cut end [20:21:50]Read from MH i2c: 01 07 00 [20:21:50]MH_I2C_Read... [20:21:50]Read from MH i2c: 01 07 00 D4 16 00 00 00 00 00 FF 0F FF [20:21:50]process_action close_receipt done [20:21:50]requested_data is exist [20:21:50]produce_requested_data [20:21:50]requested_item fm.sn is exist - process it [20:21:50]wFMCommunicate request_size=4 [20:21:50]MH_SAM_APDU [20:21:50]CAPDU: 80 11 00 00 [20:21:50]Write to MH i2c: E2 08 00 D5 16 80 11 00 00 00 00 00 00 65 [20:21:50]Write i2c OK [20:21:50]MH_I2C_Read... [20:21:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:21:50]Read from MH i2c: E2 [20:21:50]MH_I2C_Read... [20:21:50]Read from MH i2c: E2 17 00 [20:21:50]MH_I2C_Read... [20:21:50]Read from MH i2c: E2 17 00 D5 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 B3 [20: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 [20:21:50]wFMCommunicate OK [20:21:50]requested_item fd.num is exist - process it [20:21:50]SAM_PROTO_GetFieldsCounters [20:21:50]wFMCommunicate request_size=4 [20:21:50]MH_SAM_APDU [20:21:50]CAPDU: 80 13 00 00 [20:21:50]Write to MH i2c: E2 08 00 D6 16 80 13 00 00 00 00 00 00 68 [20:21:50]Write i2c OK [20:21:50]MH_I2C_Read... [20:21:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:21:50]Read from MH i2c: E2 [20:21:50]MH_I2C_Read... [20:21:50]Read from MH i2c: E2 62 00 [20:21:50]MH_I2C_Read... [20:21:50]Read from MH i2c: E2 62 00 D6 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 77 00 00 0E 04 04 00 72 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 98 [20: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 0F 77 00 00 0E 04 04 00 72 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 [20:21:50]wFMCommunicate OK [20:21:50]SAM_PROTO_GetFieldsCounters done [20:21:50]requested_item shift.num is exist - process it [20:21:50]requested_item shift.opened is exist - process it [20:21:50]req_shift_opened [20:21:50]FM_GetShiftState [20:21:50]SAM_PROTO_GetShiftState [20:21:50]wFMCommunicate request_size=4 [20:21:50]MH_SAM_APDU [20:21:50]CAPDU: 80 13 01 00 [20:21:50]Write to MH i2c: E2 08 00 D7 16 80 13 01 00 00 00 00 00 6A [20:21:50]Write i2c OK [20:21:50]MH_I2C_Read... [20:21:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:21:50]Read from MH i2c: E2 [20:21:50]MH_I2C_Read... [20:21:50]Read from MH i2c: E2 0E 00 [20:21:50]MH_I2C_Read... [20:21:50]Read from MH i2c: E2 0E 00 D7 16 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 50 [20:21:50]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [20:21:50]wFMCommunicate OK [20:21:50]SAM_PROTO_GetShiftState done [20:21:50]FM_GetShiftState done [20:21:50]req_shift_opened done [20:21:50]requested_item shift.open_date is exist - process it [20:21:50]req_shift_open_date [20:21:50]req_shift_open_date done [20:21:50]produce_requested_data done [20:21:50]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30479,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [20:21:50]process_action_free close_receipt [20:21:50]json_value_free [20:21:50]json_value_free done [20:21:50]process_json_proto returns [20:21:50]Send response to host [20:21:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30479,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [20:21:50]free response buf [20:21:50]execute_script done [20:21:50]execute_script returns [20:21:50]free content buf [20:21:50]Sock 7.Close socket [20:21:50]Sock 7.Thread stoped [20:21:54]OFD Sender: No OFD packet to send [20:21:59]OFD Sender: No OFD packet to send [20:22:04]OFD Sender: No OFD packet to send [20:22:09]OFD Sender: No OFD packet to send [20:22:14]OFD Sender: No OFD packet to send [20:22:19]OFD Sender: No OFD packet to send [20:22:24]OFD Sender: No OFD packet to send [20:22:29]OFD Sender: No OFD packet to send [20:22:34]OFD Sender: No OFD packet to send [20:22:39]OFD Sender: No OFD packet to send [20:22:44]OFD Sender: No OFD packet to send [20:22:49]OFD Sender: No OFD packet to send [20:22:54]OFD Sender: No OFD packet to send [20:22:59]OFD Sender: No OFD packet to send [20:23:04]OFD Sender: No OFD packet to send [20:23:09]OFD Sender: No OFD packet to send [20:23:14]OFD Sender: No OFD packet to send [20:23:19]OFD Sender: No OFD packet to send [20:23:24]OFD Sender: No OFD packet to send [20:23:29]OFD Sender: No OFD packet to send [20:23:34]OFD Sender: No OFD packet to send [20:23:39]OFD Sender: No OFD packet to send [20:23:44]OFD Sender: No OFD packet to send [20:23:49]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:19]OFD Sender: No OFD packet to send [20:25:24]OFD Sender: No OFD packet to send [20:25:29]OFD Sender: No OFD packet to send [20:25:34]OFD Sender: No OFD packet to send [20:25:39]OFD Sender: No OFD packet to send [20:25:44]OFD Sender: No OFD packet to send [20:25:49]OFD Sender: No OFD packet to send [20:25:54]OFD Sender: No OFD packet to send [20:25:59]OFD Sender: No OFD packet to send [20:26:04]OFD Sender: No OFD packet to send [20:26:05]accept exits with 9 [20:26:05]New connection [20:26:05]New thread 3067489636 created [20:26:05]Thread 3067346276 joined [20:26:05]Waiting for new connection... [20:26:05] Sock 9.Parse request [20:26:05]Sock 9.Check first char [20:26:05]Sock 9.First char is OK [20:26:05]request: POST /json_proto HTTP/1.0 [20:26:05]Method: POST [20:26:05]URL: /json_proto [20:26:05]Method is POST - this is cgi request [20:26:05]url: /json_proto [20:26:05]query_string will be loaded in cgi processing [20:26:05]execute_cgi json_proto POST (null) [20:26:05]execute_cgi path=json_proto method=POST [20:26:05]POST find Content-Length [20:26:05]Host: 172.17.51.3:8080 [20:26:05]Content-Length: 840 [20:26:05]Content-Type: application/json [20:26:05] [20:26:05]POST finish read [20:26:05]Found Content-Length = 840 [20:26:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342884", "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" ] } } [20:26:05]execute_script... [20:26: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)342884", "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" ] } } [20:26:05]POST & json_proto [20:26:05]process_json_proto [20:26:05]json parsed OK: [20:26:05]protocol is kg_v1.0 [20:26:05]action value=close_receipt [20:26:05]process_action close_receipt [20:26:05]cmd_close_receipt [20:26:05]MH_GetDate [20:26:05]Write to MH i2c: F0 00 00 D8 16 DD [20:26:05]Write i2c OK [20:26:05]MH_I2C_Read... [20:26:05]Read from MH i2c: F0 [20:26:05]MH_I2C_Read... [20:26:05]Read from MH i2c: F0 09 00 [20:26:05]MH_I2C_Read... [20:26:05]Read from MH i2c: F0 09 00 D8 16 00 5D 67 15 67 04 C1 95 66 E6 [20:26:05]GetLastDocTimeStamp 1729455707 [20:26:05]current date 1729455965 [20:26:05]FM_GetShiftState [20:26:05]SAM_PROTO_GetShiftState [20:26:05]wFMCommunicate request_size=4 [20:26:05]MH_SAM_APDU [20:26:05]CAPDU: 80 13 01 00 [20:26:05]Write to MH i2c: E2 08 00 D9 16 80 13 01 00 00 00 00 00 6C [20:26:05]Write i2c OK [20:26:05]MH_I2C_Read... [20:26:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:26:05]Read from MH i2c: E2 [20:26:05]MH_I2C_Read... [20:26:05]Read from MH i2c: E2 0E 00 [20:26:05]MH_I2C_Read... [20:26:05]Read from MH i2c: E2 0E 00 D9 16 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 52 [20:26:05]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [20:26:05]wFMCommunicate OK [20:26:05]SAM_PROTO_GetShiftState done [20:26:05]FM_GetShiftState done [20:26:05]opened in 1729384718 [20:26:05]opened+sec_in_day 1729471118 [20:26:05]quantity*price = 40006 [20:26:05]sum+1 = 40007 [20:26:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 400.06 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 0.00 Безнал.: 400.06 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 262 20.10.2024 20:26 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Платежная система: АКБ Кыргызстан ФМ: 0000000002094219 ФД: 30480 ФПД: 167799342676959 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T202606&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30480&fm=167799342676959&tin=02508201610067®Number=0000000000186857&sum=40006 [20:26:06]StoreToDocumentArchive [20:26:06]shift 114 fd 30480 [20:26:06]save to /storage/0114/doc_00030480 [20:26:06]save last doc name /storage/0114/doc_00030480 to /storage/kkm_last_doc_name [20:26:06]save OK [20:26:06]Clear old archive folders... [20:26:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:26:06]tlvbuf is 01E0C1A0 [20:26:06]SAM_PROTO_ClearQueue [20:26:06]wFMCommunicate request_size=4 [20:26:06]MH_SAM_APDU [20:26:06]CAPDU: 80 09 00 00 [20:26:06]Write to MH i2c: E2 08 00 E6 16 80 09 00 00 00 00 00 00 6E [20:26:06]Write i2c OK [20:26:06]MH_I2C_Read... [20:26:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:26:06]Read from MH i2c: E2 [20:26:06]MH_I2C_Read... [20:26:06]Read from MH i2c: E2 03 00 [20:26:06]MH_I2C_Read... [20:26:06]Read from MH i2c: E2 03 00 E6 16 00 90 00 70 [20:26:06]RAPDU: 90 00 [20:26:06]wFMCommunicate OK [20:26:06]SAM_PROTO_ClearQueue done [20:26:06]KKMCreateOFDPacket [20:26:06]OFDProtocolAddRootSTLVToBuf [20:26:06]FM_MakeSignedData [20:26:06]FM_MakeSignedData [20:26:06]SAM_PROTO_SignData [20:26:06]wFMCommunicate request_size=4 [20:26:06]MH_SAM_APDU [20:26:06]CAPDU: 80 0D 01 02 [20:26:06]Write to MH i2c: E2 08 00 E7 16 80 0D 01 02 00 00 00 00 76 [20:26:06]Write i2c OK [20:26:06]MH_I2C_Read... [20:26:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:26:06]Read from MH i2c: E2 [20:26:06]MH_I2C_Read... [20:26:06]Read from MH i2c: E2 03 00 [20:26:06]MH_I2C_Read... [20:26:06]Read from MH i2c: E2 03 00 E7 16 00 90 00 71 [20:26:06]RAPDU: 90 00 [20:26:06]wFMCommunicate OK [20:26:06]wFMCommunicate request_size=255 [20:26:06]MH_SAM_APDU [20:26: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 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 06 01 00 00 F4 03 04 00 5E 67 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 77 00 00 35 04 06 00 98 [20:26:06]Write to MH i2c: E2 02 01 E8 16 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 06 01 00 00 F4 03 04 00 5E 67 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 77 00 00 35 04 06 00 98 00 00 BB [20:26:06]Write i2c OK [20:26:06]MH_I2C_Read... [20:26:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:26:06]Read from MH i2c: E2 [20:26:06]MH_I2C_Read... [20:26:06]Read from MH i2c: E2 03 00 [20:26:06]MH_I2C_Read... [20:26:06]Read from MH i2c: E2 03 00 E8 16 00 90 00 72 [20:26:06]RAPDU: 90 00 [20:26:06]wFMCommunicate OK [20:26:06]wFMCommunicate request_size=10 [20:26:06]MH_SAM_APDU [20:26:06]CAPDU: 80 0D 02 02 05 9C D4 36 BB DF [20:26:06]Write to MH i2c: E2 0D 00 E9 16 80 0D 02 02 05 00 9C D4 36 BB DF 00 00 C3 [20:26:06]Write i2c OK [20:26:06]MH_I2C_Read... [20:26:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:26:06]Read from MH i2c: E2 [20:26:06]MH_I2C_Read... [20:26:06]Read from MH i2c: E2 03 00 [20:26:06]MH_I2C_Read... [20:26:06]Read from MH i2c: E2 03 00 E9 16 00 90 00 73 [20:26:06]RAPDU: 90 00 [20:26:06]wFMCommunicate OK [20:26:06]wFMCommunicate request_size=4 [20:26:06]MH_SAM_APDU [20:26:06]CAPDU: 80 0D 03 02 [20:26:06]Write to MH i2c: E2 08 00 EA 16 80 0D 03 02 00 00 00 00 7B [20:26:06]Write i2c OK [20:26:06]MH_I2C_Read... [20:26:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:26:06]Read from MH i2c: E2 [20:26:06]MH_I2C_Read... [20:26:06]Read from MH i2c: E2 0B 00 [20:26:06]MH_I2C_Read... [20:26:06]Read from MH i2c: E2 0B 00 EA 16 00 72 B7 F7 F7 95 18 FE 72 90 00 B0 [20:26:06]RAPDU: 72 B7 F7 F7 95 18 FE 72 90 00 [20:26:06]wFMCommunicate OK [20:26:06]SAM_PROTO_SignData done [20:26:06]FM_MakeSignedData done [20:26:06]CreateOFDProtocolMessage [20:26:06]wFMCommunicate request_size=4 [20:26:06]MH_SAM_APDU [20:26:06]CAPDU: 80 11 00 00 [20:26:06]Write to MH i2c: E2 08 00 EB 16 80 11 00 00 00 00 00 00 7B [20:26:06]Write i2c OK [20:26:06]MH_I2C_Read... [20:26:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:26:06]Read from MH i2c: E2 [20:26:06]MH_I2C_Read... [20:26:06]Read from MH i2c: E2 17 00 [20:26:06]MH_I2C_Read... [20:26:06]Read from MH i2c: E2 17 00 EB 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 C9 [20:26:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [20:26:06]wFMCommunicate OK [20:26:06]CreateOFDProtocolMessage done [20:26:06]OFDSenderStorePacket 30480 [20:26:06]StoreOFDPacket docnum=30480 [20:26: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 1E 9A 07 01 46 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 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 06 01 00 00 F4 03 04 00 5E 67 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 77 00 00 35 04 06 00 98 9C D4 36 BB DF 72 B7 F7 F7 95 18 FE 72 [20:26:06]CheckFolder [20:26:06]dirname=/storage/ofd_packets [20:26:06]CheckFolder done [20:26:06]ProducePacketName [20:26:06]name=ofd_packets/00030480 [20:26:06]NVStorageSaveData ofd_packets/00030480 [20:26:06]File name is /storage/ofd_packets/00030480 [20:26:06]Write 301 bytes [20:26:06]NVStorageSaveData done [20:26:06]OFDSenderStorePacket done [20:26:06]KKMCreateOFDPacket done [20:26:06]NVStorageSaveData kkm_last_timestamp [20:26:06]File name is /storage/kkm_last_timestamp [20:26:06]Write 4 bytes [20:26:06]NVStorageSaveData done [20:26:06]ExternCall_PrintAddStr [20:26:06]wPrintStart [20:26:06]Write to MH i2c: 01 00 00 EC 16 02 [20:26:06]Write i2c OK [20:26:06]MH_I2C_Read... [20:26:06]Read from MH i2c: 01 [20:26:06]MH_I2C_Read... [20:26:06]Read from MH i2c: 01 07 00 [20:26:06]MH_I2C_Read... [20:26:06]Read from MH i2c: 01 07 00 EC 16 00 00 00 00 00 FF 0F 17 [20:26:06]RasterBufferAndPrint [20:26:06]line Счет N : (1)342884 [20:26:06]line ИНН: 02508201610067 [20:26:06]line Контрольно-Кассовый Чек [20:26:06]line ПРОДАЖА [20:26:06]line ТРК (МРК, ГНК) : 33 [20:26:06]line Товар: 2710124130 [20:26:06]line Аи-92-К-2 [20:26:06]line 5.980 * 66.90 [20:26:06]line = 400.06 [20:26:06]line НДС 12% НСП 1% [20:26:06]line > о реализуемом товаре [20:26:06]line ИТОГО: 400.06 [20:26:06]line НСП 1% : 3.54 [20:26:06]line НДС 12% : 42.48 [20:26:06]line Наличными: 0.00 [20:26:06]line Безнал.: 400.06 [20:26:06]line Место: АЗС № 78 "Партнер Нефть" [20:26:06]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [20:26:06]line СНО: Общий режим [20:26:06]line Чек 262 20.10.2024 20:26 [20:26:06]line Смена: 114 ФФД: 1.0 [20:26:06]line ЗНМ: 0300000137 [20:26:06]line РНМ: 0000000000186857 [20:26:06]line Версия ККМ: v1.0 [20:26:06]line Платежная система: АКБ Кыргызстан [20:26:06]line ФМ: 0000000002094219 [20:26:06]line ФД: 30480 [20:26:06]line ФПД: 167799342676959 [20:26:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T202606&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30480&fm=167799342676959&tin=02508201610067®Number=0000000000186857&sum=40006 [20:26:07]OFD Sender: Processing packet 30480 [packets to send 10, broken 9] [20:26:07]ProducePacketName [20:26:07]name=ofd_packets/00030480 [20:26:07]OFD Sender: To server: pG, [20:26:07]CommunicateWithHost lk.salyk.kg:30040 [20:26:07]ConnectInit lk.salyk.kg [20:26:07]written 0, free lines is 4095 [20:26:07]Connected sock=10 [20:26: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 1E 9A 07 01 46 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 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 06 01 00 00 F4 03 04 00 5E 67 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 77 00 00 35 04 06 00 98 9C D4 36 BB DF 72 B7 F7 F7 95 18 FE 72 [20:26: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 60 D8 47 00 AA 9C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 10 77 00 00 F4 03 04 00 E0 11 15 67 B6 04 01 00 00 08 3F 88 A7 9B C6 72 04 [20:26:07]CommunicateWithHost err = 0 [20:26:07]CheckOFDResponse [20:26:07]1017 (14) - 77093643461234 [20:26:07]1041 (16) - 0000000002094219 [20:26:07]1040 (4) - 30480 [20:26:07]1012 (4) - 20.10.2024 14:21 [20:26:07]1206 (1) - 0 [20:26:07]OFD Sender: Remove packet 30480 [20:26:07]ProducePacketName [20:26:07]name=ofd_packets/00030480 [20:26:07]NVStorageDeleteData [20:26:07]Write to MH i2c: 01 00 00 16 17 2D [20:26:07]Write i2c OK [20:26:07]MH_I2C_Read... [20:26:07]Read from MH i2c: 01 [20:26:07]MH_I2C_Read... [20:26:07]Read from MH i2c: 01 07 00 [20:26:07]MH_I2C_Read... [20:26:07]Read from MH i2c: 01 07 00 16 17 00 00 00 00 00 03 0D 44 [20:26:07]RasterBufferAndPrint [20:26:07]line [20:26:07]line [20:26:07]line [20:26:07]line [20:26:07]line [20:26:07]written 0, free lines is 3337 [20:26:07]MH_Cut [20:26:07]Write to MH i2c: D1 01 00 1D 17 01 06 [20:26:07]Write i2c OK [20:26:07]MH_I2C_Read... [20:26:07]Read from MH i2c: D1 [20:26:07]MH_I2C_Read... [20:26:07]Read from MH i2c: D1 01 00 [20:26:07]MH_I2C_Read... [20:26:07]Read from MH i2c: D1 01 00 1D 17 00 05 [20:26:07]Write to MH i2c: 01 00 00 1E 17 35 [20:26:07]Write i2c OK [20:26:07]MH_I2C_Read... [20:26:07]OFD Sender: No OFD packet to send [20:26:08]*** Cut start [20:26:08]*** Partial cut [20:26:08]*** CUTSNS_PIN = 1 [20:26:08]*** CUTSNS_PIN = 0 [20:26:08]*** Brake cut motor [20:26:08]Read from MH i2c: 01 [20:26:08]MH_I2C_Read... [20:26:08]*** Stop cut motor [20:26:08]*** Cut end [20:26:08]Read from MH i2c: 01 07 00 [20:26:08]MH_I2C_Read... [20:26:08]Read from MH i2c: 01 07 00 1E 17 00 00 00 00 00 FF 0F 4A [20:26:08]process_action close_receipt done [20:26:08]requested_data is exist [20:26:08]produce_requested_data [20:26:08]requested_item fm.sn is exist - process it [20:26:08]wFMCommunicate request_size=4 [20:26:08]MH_SAM_APDU [20:26:08]CAPDU: 80 11 00 00 [20:26:08]Write to MH i2c: E2 08 00 1F 17 80 11 00 00 00 00 00 00 B0 [20:26:08]Write i2c OK [20:26:08]MH_I2C_Read... [20:26:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:26:08]Read from MH i2c: E2 [20:26:08]MH_I2C_Read... [20:26:08]Read from MH i2c: E2 17 00 [20:26:08]MH_I2C_Read... [20:26:08]Read from MH i2c: E2 17 00 1F 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 FE [20:26:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [20:26:08]wFMCommunicate OK [20:26:08]requested_item fd.num is exist - process it [20:26:08]SAM_PROTO_GetFieldsCounters [20:26:08]wFMCommunicate request_size=4 [20:26:08]MH_SAM_APDU [20:26:08]CAPDU: 80 13 00 00 [20:26:08]Write to MH i2c: E2 08 00 20 17 80 13 00 00 00 00 00 00 B3 [20:26:08]Write i2c OK [20:26:08]MH_I2C_Read... [20:26:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:26:08]Read from MH i2c: E2 [20:26:08]MH_I2C_Read... [20:26:08]Read from MH i2c: E2 62 00 [20:26:08]MH_I2C_Read... [20:26:08]Read from MH i2c: E2 62 00 20 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 77 00 00 0E 04 04 00 72 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 E7 [20:26: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 10 77 00 00 0E 04 04 00 72 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 [20:26:08]wFMCommunicate OK [20:26:08]SAM_PROTO_GetFieldsCounters done [20:26:08]requested_item shift.num is exist - process it [20:26:08]requested_item shift.opened is exist - process it [20:26:08]req_shift_opened [20:26:08]FM_GetShiftState [20:26:08]SAM_PROTO_GetShiftState [20:26:08]wFMCommunicate request_size=4 [20:26:08]MH_SAM_APDU [20:26:08]CAPDU: 80 13 01 00 [20:26:08]Write to MH i2c: E2 08 00 21 17 80 13 01 00 00 00 00 00 B5 [20:26:08]Write i2c OK [20:26:08]MH_I2C_Read... [20:26:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:26:09]Read from MH i2c: E2 [20:26:09]MH_I2C_Read... [20:26:09]Read from MH i2c: E2 0E 00 [20:26:09]MH_I2C_Read... [20:26:09]Read from MH i2c: E2 0E 00 21 17 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 9B [20:26:09]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [20:26:09]wFMCommunicate OK [20:26:09]SAM_PROTO_GetShiftState done [20:26:09]FM_GetShiftState done [20:26:09]req_shift_opened done [20:26:09]requested_item shift.open_date is exist - process it [20:26:09]req_shift_open_date [20:26:09]req_shift_open_date done [20:26:09]produce_requested_data done [20:26:09]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30480,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [20:26:09]process_action_free close_receipt [20:26:09]json_value_free [20:26:09]json_value_free done [20:26:09]process_json_proto returns [20:26:09]Send response to host [20:26:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30480,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [20:26:09]free response buf [20:26:09]execute_script done [20:26:09]execute_script returns [20:26:09]free content buf [20:26:09]Sock 9.Close socket [20:26:09]Sock 9.Thread stoped [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:53]OFD Sender: No OFD packet to send [20:29:58]OFD Sender: No OFD packet to send [20:30:03]OFD Sender: No OFD packet to send [20:30:08]OFD Sender: No OFD packet to send [20:30:13]OFD Sender: No OFD packet to send [20:30:18]OFD Sender: No OFD packet to send [20:30:23]OFD Sender: No OFD packet to send [20:30:28]OFD Sender: No OFD packet to send [20:30:33]OFD Sender: No OFD packet to send [20:30:38]OFD Sender: No OFD packet to send [20:30:43]OFD Sender: No OFD packet to send [20:30:48]OFD Sender: No OFD packet to send [20:30:53]OFD Sender: No OFD packet to send [20:30:58]OFD Sender: No OFD packet to send [20:31:03]OFD Sender: No OFD packet to send [20:31:08]OFD Sender: No OFD packet to send [20:31:13]OFD Sender: No OFD packet to send [20:31:18]OFD Sender: No OFD packet to send [20:31:23]OFD Sender: No OFD packet to send [20:31:28]OFD Sender: No OFD packet to send [20:31:33]OFD Sender: No OFD packet to send [20:31:38]OFD Sender: No OFD packet to send [20:31:43]OFD Sender: No OFD packet to send [20:31:48]OFD Sender: No OFD packet to send [20:31:53]OFD Sender: No OFD packet to send [20:31:58]OFD Sender: No OFD packet to send [20:32:03]OFD Sender: No OFD packet to send [20:32:08]OFD Sender: No OFD packet to send [20:32:13]OFD Sender: No OFD packet to send [20:32:18]OFD Sender: No OFD packet to send [20:32:23]OFD Sender: No OFD packet to send [20:32:28]OFD Sender: No OFD packet to send [20:32:33]OFD Sender: No OFD packet to send [20:32:38]OFD Sender: No OFD packet to send [20:32:43]OFD Sender: No OFD packet to send [20:32:48]OFD Sender: No OFD packet to send [20:32:53]OFD Sender: No OFD packet to send [20:32:58]OFD Sender: No OFD packet to send [20:33:03]OFD Sender: No OFD packet to send [20:33:08]OFD Sender: No OFD packet to send [20:33:13]OFD Sender: No OFD packet to send [20:33:18]OFD Sender: No OFD packet to send [20:33:23]OFD Sender: No OFD packet to send [20:33:28]OFD Sender: No OFD packet to send [20:33:33]OFD Sender: No OFD packet to send [20:33:38]OFD Sender: No OFD packet to send [20:33:43]OFD Sender: No OFD packet to send [20:33:48]OFD Sender: No OFD packet to send [20:33:53]OFD Sender: No OFD packet to send [20:33:58]OFD Sender: No OFD packet to send [20:34:03]OFD Sender: No OFD packet to send [20:34:08]OFD Sender: No OFD packet to send [20:34:13]OFD Sender: No OFD packet to send [20:34:18]OFD Sender: No OFD packet to send [20:34:23]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:58]OFD Sender: No OFD packet to send [20:39:03]OFD Sender: No OFD packet to send [20:39:08]OFD Sender: No OFD packet to send [20:39:13]OFD Sender: No OFD packet to send [20:39:18]OFD Sender: No OFD packet to send [20:39:23]OFD Sender: No OFD packet to send [20:39:28]OFD Sender: No OFD packet to send [20:39:33]OFD Sender: No OFD packet to send [20:39:38]OFD Sender: No OFD packet to send [20:39:43]OFD Sender: No OFD packet to send [20:39:48]OFD Sender: No OFD packet to send [20:39:53]OFD Sender: No OFD packet to send [20:39:58]OFD Sender: No OFD packet to send [20:40:03]OFD Sender: No OFD packet to send [20:40:08]OFD Sender: No OFD packet to send [20:40:13]OFD Sender: No OFD packet to send [20:40:18]OFD Sender: No OFD packet to send [20:40:23]OFD Sender: No OFD packet to send [20:40:28]OFD Sender: No OFD packet to send [20:40:33]OFD Sender: No OFD packet to send [20:40:38]OFD Sender: No OFD packet to send [20:40:43]OFD Sender: No OFD packet to send [20:40:48]OFD Sender: No OFD packet to send [20:40:53]OFD Sender: No OFD packet to send [20:40:58]OFD Sender: No OFD packet to send [20:41:00]accept exits with 7 [20:41:00]New connection [20:41:00]New thread 3067346276 created [20:41:00]Thread 3067489636 joined [20:41:00]Waiting for new connection... [20:41:00] Sock 7.Parse request [20:41:00]Sock 7.Check first char [20:41:00]Sock 7.First char is OK [20:41:00]request: POST /json_proto HTTP/1.0 [20:41:00]Method: POST [20:41:00]URL: /json_proto [20:41:00]Method is POST - this is cgi request [20:41:00]url: /json_proto [20:41:00]query_string will be loaded in cgi processing [20:41:00]execute_cgi json_proto POST (null) [20:41:00]execute_cgi path=json_proto method=POST [20:41:00]POST find Content-Length [20:41:00]Host: 172.17.51.3:8080 [20:41:00]Content-Length: 677 [20:41:00]Content-Type: application/json [20:41:00] [20:41:00]POST finish read [20:41:00]Found Content-Length = 677 [20:41:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342885", "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:41:00]execute_script... [20:41:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342885", "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:41:00]POST & json_proto [20:41:00]process_json_proto [20:41:00]json parsed OK: [20:41:00]protocol is kg_v1.0 [20:41:00]action value=close_receipt [20:41:00]process_action close_receipt [20:41:00]cmd_close_receipt [20:41:00]MH_GetDate [20:41:00]Write to MH i2c: F0 00 00 22 17 28 [20:41:00]Write i2c OK [20:41:00]MH_I2C_Read... [20:41:00]Read from MH i2c: F0 [20:41:00]MH_I2C_Read... [20:41:00]Read from MH i2c: F0 09 00 [20:41:00]MH_I2C_Read... [20:41:00]Read from MH i2c: F0 09 00 22 17 00 DD 6A 15 67 04 C1 95 66 B4 [20:41:00]GetLastDocTimeStamp 1729455966 [20:41:00]current date 1729456861 [20:41:00]FM_GetShiftState [20:41:00]SAM_PROTO_GetShiftState [20:41:00]wFMCommunicate request_size=4 [20:41:00]MH_SAM_APDU [20:41:00]CAPDU: 80 13 01 00 [20:41:00]Write to MH i2c: E2 08 00 23 17 80 13 01 00 00 00 00 00 B7 [20:41:00]Write i2c OK [20:41:00]MH_I2C_Read... [20:41:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:41:00]Read from MH i2c: E2 [20:41:00]MH_I2C_Read... [20:41:00]Read from MH i2c: E2 0E 00 [20:41:00]MH_I2C_Read... [20:41:00]Read from MH i2c: E2 0E 00 23 17 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 9D [20:41:00]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [20:41:00]wFMCommunicate OK [20:41:00]SAM_PROTO_GetShiftState done [20:41:00]FM_GetShiftState done [20:41:00]opened in 1729384718 [20:41:00]opened+sec_in_day 1729471118 [20:41:00]quantity*price = 50041 [20:41:00]sum+1 = 50042 [20:41:00]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 СНО: Общий режим Чек 263 20.10.2024 20:41 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30481 ФПД: 206243487914798 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T204101&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30481&fm=206243487914798&tin=02508201610067®Number=0000000000186857&sum=50000 [20:41:01]StoreToDocumentArchive [20:41:01]shift 114 fd 30481 [20:41:01]save to /storage/0114/doc_00030481 [20:41:01]save last doc name /storage/0114/doc_00030481 to /storage/kkm_last_doc_name [20:41:01]save OK [20:41:01]Clear old archive folders... [20:41:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:41:01]tlvbuf is 01DB8D10 [20:41:01]SAM_PROTO_ClearQueue [20:41:01]wFMCommunicate request_size=4 [20:41:01]MH_SAM_APDU [20:41:01]CAPDU: 80 09 00 00 [20:41:01]Write to MH i2c: E2 08 00 30 17 80 09 00 00 00 00 00 00 B9 [20:41:01]Write i2c OK [20:41:01]MH_I2C_Read... [20:41:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:41:01]Read from MH i2c: E2 [20:41:01]MH_I2C_Read... [20:41:01]Read from MH i2c: E2 03 00 [20:41:01]MH_I2C_Read... [20:41:01]Read from MH i2c: E2 03 00 30 17 00 90 00 BB [20:41:01]RAPDU: 90 00 [20:41:01]wFMCommunicate OK [20:41:01]SAM_PROTO_ClearQueue done [20:41:01]KKMCreateOFDPacket [20:41:01]OFDProtocolAddRootSTLVToBuf [20:41:01]FM_MakeSignedData [20:41:01]FM_MakeSignedData [20:41:01]SAM_PROTO_SignData [20:41:01]wFMCommunicate request_size=4 [20:41:01]MH_SAM_APDU [20:41:01]CAPDU: 80 0D 01 02 [20:41:01]Write to MH i2c: E2 08 00 31 17 80 0D 01 02 00 00 00 00 C1 [20:41:01]Write i2c OK [20:41:01]MH_I2C_Read... [20:41:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:41:01]Read from MH i2c: E2 [20:41:01]MH_I2C_Read... [20:41:01]Read from MH i2c: E2 03 00 [20:41:01]MH_I2C_Read... [20:41:01]Read from MH i2c: E2 03 00 31 17 00 90 00 BC [20:41:01]RAPDU: 90 00 [20:41:01]wFMCommunicate OK [20:41:01]wFMCommunicate request_size=255 [20:41:01]MH_SAM_APDU [20:41:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 07 01 00 00 F4 03 04 00 DD 6A 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 77 00 00 35 04 06 00 BB [20:41:01]Write to MH i2c: E2 02 01 32 17 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 07 01 00 00 F4 03 04 00 DD 6A 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 77 00 00 35 04 06 00 BB 00 00 D2 [20:41:01]Write i2c OK [20:41:01]MH_I2C_Read... [20:41:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:41:01]Read from MH i2c: E2 [20:41:01]MH_I2C_Read... [20:41:01]Read from MH i2c: E2 03 00 [20:41:01]MH_I2C_Read... [20:41:01]Read from MH i2c: E2 03 00 32 17 00 90 00 BD [20:41:01]RAPDU: 90 00 [20:41:01]wFMCommunicate OK [20:41:01]wFMCommunicate request_size=10 [20:41:01]MH_SAM_APDU [20:41:01]CAPDU: 80 0D 02 02 05 93 CD D5 9B 2E [20:41:01]Write to MH i2c: E2 0D 00 33 17 80 0D 02 02 05 00 93 CD D5 9B 2E 00 00 CC [20:41:01]Write i2c OK [20:41:01]MH_I2C_Read... [20:41:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:41:01]Read from MH i2c: E2 [20:41:01]MH_I2C_Read... [20:41:01]Read from MH i2c: E2 03 00 [20:41:01]MH_I2C_Read... [20:41:01]Read from MH i2c: E2 03 00 33 17 00 90 00 BE [20:41:01]RAPDU: 90 00 [20:41:01]wFMCommunicate OK [20:41:01]wFMCommunicate request_size=4 [20:41:01]MH_SAM_APDU [20:41:01]CAPDU: 80 0D 03 02 [20:41:01]Write to MH i2c: E2 08 00 34 17 80 0D 03 02 00 00 00 00 C6 [20:41:01]Write i2c OK [20:41:01]MH_I2C_Read... [20:41:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:41:01]Read from MH i2c: E2 [20:41:01]MH_I2C_Read... [20:41:01]Read from MH i2c: E2 0B 00 [20:41:01]MH_I2C_Read... [20:41:01]Read from MH i2c: E2 0B 00 34 17 00 B2 DD B3 1F F8 DD DA FC 90 00 D3 [20:41:01]RAPDU: B2 DD B3 1F F8 DD DA FC 90 00 [20:41:01]wFMCommunicate OK [20:41:01]SAM_PROTO_SignData done [20:41:01]FM_MakeSignedData done [20:41:01]CreateOFDProtocolMessage [20:41:01]wFMCommunicate request_size=4 [20:41:01]MH_SAM_APDU [20:41:01]CAPDU: 80 11 00 00 [20:41:01]Write to MH i2c: E2 08 00 35 17 80 11 00 00 00 00 00 00 C6 [20:41:01]Write i2c OK [20:41:01]MH_I2C_Read... [20:41:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:41:01]Read from MH i2c: E2 [20:41:01]MH_I2C_Read... [20:41:01]Read from MH i2c: E2 17 00 [20:41:01]MH_I2C_Read... [20:41:01]Read from MH i2c: E2 17 00 35 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 14 [20:41:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [20:41:01]wFMCommunicate OK [20:41:01]CreateOFDProtocolMessage done [20:41:01]OFDSenderStorePacket 30481 [20:41:01]StoreOFDPacket docnum=30481 [20:41: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 20 52 07 01 FC D6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 07 01 00 00 F4 03 04 00 DD 6A 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 77 00 00 35 04 06 00 BB 93 CD D5 9B 2E B2 DD B3 1F F8 DD DA FC [20:41:01]CheckFolder [20:41:01]dirname=/storage/ofd_packets [20:41:01]CheckFolder done [20:41:01]ProducePacketName [20:41:01]name=ofd_packets/00030481 [20:41:01]NVStorageSaveData ofd_packets/00030481 [20:41:01]File name is /storage/ofd_packets/00030481 [20:41:01]Write 301 bytes [20:41:01]NVStorageSaveData done [20:41:01]OFDSenderStorePacket done [20:41:01]KKMCreateOFDPacket done [20:41:01]NVStorageSaveData kkm_last_timestamp [20:41:01]File name is /storage/kkm_last_timestamp [20:41:01]Write 4 bytes [20:41:01]NVStorageSaveData done [20:41:01]ExternCall_PrintAddStr [20:41:01]wPrintStart [20:41:01]Write to MH i2c: 01 00 00 36 17 4D [20:41:01]Write i2c OK [20:41:01]MH_I2C_Read... [20:41:01]Read from MH i2c: 01 [20:41:01]MH_I2C_Read... [20:41:01]Read from MH i2c: 01 07 00 [20:41:01]MH_I2C_Read... [20:41:01]Read from MH i2c: 01 07 00 36 17 00 00 00 00 00 FF 0F 62 [20:41:01]RasterBufferAndPrint [20:41:01]line Счет N : (1)342885 [20:41:01]line ИНН: 02508201610067 [20:41:01]line Контрольно-Кассовый Чек [20:41:01]line ПРОДАЖА [20:41:01]line ТРК (МРК, ГНК) : 63 [20:41:01]line Товар: 2710124130 [20:41:01]line Аи-92-К-2 [20:41:01]line 7.480 * 66.90 [20:41:01]line = 500.41 [20:41:01]line НДС 12% НСП 1% [20:41:01]line > о реализуемом товаре [20:41:01]line ОКРУГЛЕНИЕ: -0.41 [20:41:01]line ИТОГО: 500.00 [20:41:01]line Внесено: 500.00 [20:41:01]line СДАЧА: 0.00 [20:41:01]line НСП 1% : 4.43 [20:41:01]line НДС 12% : 53.14 [20:41:01]line Наличными: 500.00 [20:41:01]line Безнал.: 0.00 [20:41:01]line Место: АЗС № 78 "Партнер Нефть" [20:41:01]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [20:41:01]line СНО: Общий режим [20:41:01]line Чек 263 20.10.2024 20:41 [20:41:01]line Смена: 114 ФФД: 1.0 [20:41:01]line ЗНМ: 0300000137 [20:41:01]line РНМ: 0000000000186857 [20:41:01]line Версия ККМ: v1.0 [20:41:01]line ФМ: 0000000002094219 [20:41:01]line ФД: 30481 [20:41:02]line ФПД: 206243487914798 [20:41:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T204101&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30481&fm=206243487914798&tin=02508201610067®Number=0000000000186857&sum=50000 [20:41:02]OFD Sender: Processing packet 30481 [packets to send 10, broken 9] [20:41:02]ProducePacketName [20:41:02]name=ofd_packets/00030481 [20:41:02]OFD Sender: To server: pG, [20:41:02]CommunicateWithHost lk.salyk.kg:30040 [20:41:02]ConnectInit lk.salyk.kg [20:41:02]written 0, free lines is 4095 [20:41:02]Connected sock=10 [20:41: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 20 52 07 01 FC D6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 07 01 00 00 F4 03 04 00 DD 6A 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 77 00 00 35 04 06 00 BB 93 CD D5 9B 2E B2 DD B3 1F F8 DD DA FC [20:41: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 18 28 47 00 22 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 11 77 00 00 F4 03 04 00 60 15 15 67 B6 04 01 00 00 03 8C E1 44 24 2E F9 9B [20:41:02]CommunicateWithHost err = 0 [20:41:02]CheckOFDResponse [20:41:02]1017 (14) - 77093643461234 [20:41:02]1041 (16) - 0000000002094219 [20:41:02]1040 (4) - 30481 [20:41:02]1012 (4) - 20.10.2024 14:36 [20:41:02]1206 (1) - 0 [20:41:02]OFD Sender: Remove packet 30481 [20:41:02]ProducePacketName [20:41:02]name=ofd_packets/00030481 [20:41:02]NVStorageDeleteData [20:41:02]Write to MH i2c: 01 00 00 61 17 78 [20:41:02]Write i2c OK [20:41:02]MH_I2C_Read... [20:41:02]Read from MH i2c: 01 [20:41:02]MH_I2C_Read... [20:41:02]Read from MH i2c: 01 07 00 [20:41:02]MH_I2C_Read... [20:41:02]Read from MH i2c: 01 07 00 61 17 00 00 00 00 00 E4 0C 6F [20:41:02]RasterBufferAndPrint [20:41:02]line [20:41:02]line [20:41:02]line [20:41:02]line [20:41:02]line [20:41:02]written 0, free lines is 3306 [20:41:02]MH_Cut [20:41:02]Write to MH i2c: D1 01 00 68 17 01 51 [20:41:02]Write i2c OK [20:41:02]MH_I2C_Read... [20:41:02]Read from MH i2c: D1 [20:41:02]MH_I2C_Read... [20:41:02]Read from MH i2c: D1 01 00 [20:41:02]MH_I2C_Read... [20:41:02]Read from MH i2c: D1 01 00 68 17 00 50 [20:41:02]Write to MH i2c: 01 00 00 69 17 80 [20:41:02]Write i2c OK [20:41:02]MH_I2C_Read... [20:41:03]OFD Sender: No OFD packet to send [20:41:03]*** Cut start [20:41:03]*** Partial cut [20:41:03]*** CUTSNS_PIN = 1 [20:41:03]*** CUTSNS_PIN = 0 [20:41:03]*** Brake cut motor [20:41:03]Read from MH i2c: 01 [20:41:03]MH_I2C_Read... [20:41:03]*** Stop cut motor [20:41:03]*** Cut end [20:41:03]Read from MH i2c: 01 07 00 [20:41:03]MH_I2C_Read... [20:41:03]Read from MH i2c: 01 07 00 69 17 00 00 00 00 00 FF 0F 95 [20:41:03]process_action close_receipt done [20:41:03]requested_data is exist [20:41:03]produce_requested_data [20:41:03]requested_item fm.sn is exist - process it [20:41:03]wFMCommunicate request_size=4 [20:41:03]MH_SAM_APDU [20:41:03]CAPDU: 80 11 00 00 [20:41:03]Write to MH i2c: E2 08 00 6A 17 80 11 00 00 00 00 00 00 FB [20:41:03]Write i2c OK [20:41:03]MH_I2C_Read... [20:41:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:41:03]Read from MH i2c: E2 [20:41:03]MH_I2C_Read... [20:41:03]Read from MH i2c: E2 17 00 [20:41:03]MH_I2C_Read... [20:41:03]Read from MH i2c: E2 17 00 6A 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 49 [20:41:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [20:41:03]wFMCommunicate OK [20:41:03]requested_item fd.num is exist - process it [20:41:03]SAM_PROTO_GetFieldsCounters [20:41:03]wFMCommunicate request_size=4 [20:41:03]MH_SAM_APDU [20:41:03]CAPDU: 80 13 00 00 [20:41:03]Write to MH i2c: E2 08 00 6B 17 80 13 00 00 00 00 00 00 FE [20:41:03]Write i2c OK [20:41:03]MH_I2C_Read... [20:41:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:41:04]Read from MH i2c: E2 [20:41:04]MH_I2C_Read... [20:41:04]Read from MH i2c: E2 62 00 [20:41:04]MH_I2C_Read... [20:41:04]Read from MH i2c: E2 62 00 6B 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 77 00 00 0E 04 04 00 72 00 00 00 12 04 04 00 07 01 00 00 5E 04 04 00 07 01 00 00 57 04 04 00 08 01 00 00 19 04 04 00 00 00 00 00 90 00 36 [20:41: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 11 77 00 00 0E 04 04 00 72 00 00 00 12 04 04 00 07 01 00 00 5E 04 04 00 07 01 00 00 57 04 04 00 08 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:41:04]wFMCommunicate OK [20:41:04]SAM_PROTO_GetFieldsCounters done [20:41:04]requested_item shift.num is exist - process it [20:41:04]requested_item shift.opened is exist - process it [20:41:04]req_shift_opened [20:41:04]FM_GetShiftState [20:41:04]SAM_PROTO_GetShiftState [20:41:04]wFMCommunicate request_size=4 [20:41:04]MH_SAM_APDU [20:41:04]CAPDU: 80 13 01 00 [20:41:04]Write to MH i2c: E2 08 00 6C 17 80 13 01 00 00 00 00 00 00 [20:41:04]Write i2c OK [20:41:04]MH_I2C_Read... [20:41:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:41:04]Read from MH i2c: E2 [20:41:04]MH_I2C_Read... [20:41:04]Read from MH i2c: E2 0E 00 [20:41:04]MH_I2C_Read... [20:41:04]Read from MH i2c: E2 0E 00 6C 17 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 E6 [20:41:04]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [20:41:04]wFMCommunicate OK [20:41:04]SAM_PROTO_GetShiftState done [20:41:04]FM_GetShiftState done [20:41:04]req_shift_opened done [20:41:04]requested_item shift.open_date is exist - process it [20:41:04]req_shift_open_date [20:41:04]req_shift_open_date done [20:41:04]produce_requested_data done [20:41:04]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30481,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [20:41:04]process_action_free close_receipt [20:41:04]json_value_free [20:41:04]json_value_free done [20:41:04]process_json_proto returns [20:41:04]Send response to host [20:41:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30481,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [20:41:04]free response buf [20:41:04]execute_script done [20:41:04]execute_script returns [20:41:04]free content buf [20:41:04]Sock 7.Close socket [20:41:04]Sock 7.Thread stoped [20:41:08]OFD Sender: No OFD packet to send [20:41:13]OFD Sender: No OFD packet to send [20:41:18]OFD Sender: No OFD packet to send [20:41:23]OFD Sender: No OFD packet to send [20:41:28]OFD Sender: No OFD packet to send [20:41:33]OFD Sender: No OFD packet to send [20:41:38]OFD Sender: No OFD packet to send [20:41:43]OFD Sender: No OFD packet to send [20:41:48]OFD Sender: No OFD packet to send [20:41:53]OFD Sender: No OFD packet to send [20:41:58]OFD Sender: No OFD packet to send [20:42:03]OFD Sender: No OFD packet to send [20:42:08]OFD Sender: No OFD packet to send [20:42:13]OFD Sender: No OFD packet to send [20:42:18]OFD Sender: No OFD packet to send [20:42:23]OFD Sender: No OFD packet to send [20:42:28]OFD Sender: No OFD packet to send [20:42:33]OFD Sender: No OFD packet to send [20:42:38]OFD Sender: No OFD packet to send [20:42:43]OFD Sender: No OFD packet to send [20:42:48]OFD Sender: No OFD packet to send [20:42:53]OFD Sender: No OFD packet to send [20:42:58]OFD Sender: No OFD packet to send [20:43:03]OFD Sender: No OFD packet to send [20:43:08]OFD Sender: No OFD packet to send [20:43:13]OFD Sender: No OFD packet to send [20:43:18]OFD Sender: No OFD packet to send [20:43:23]OFD Sender: No OFD packet to send [20:43:28]OFD Sender: No OFD packet to send [20:43:33]OFD Sender: No OFD packet to send [20:43:38]OFD Sender: No OFD packet to send [20:43:43]OFD Sender: No OFD packet to send [20:43:48]OFD Sender: No OFD packet to send [20:43:53]OFD Sender: No OFD packet to send [20:43:58]OFD Sender: No OFD packet to send [20:44:03]OFD Sender: No OFD packet to send [20:44:08]OFD Sender: No OFD packet to send [20:44:13]OFD Sender: No OFD packet to send [20:44:18]OFD Sender: No OFD packet to send [20:44:23]OFD Sender: No OFD packet to send [20:44:28]OFD Sender: No OFD packet to send [20:44:33]OFD Sender: No OFD packet to send [20:44:38]OFD Sender: No OFD packet to send [20:44:43]OFD Sender: No OFD packet to send [20:44:48]OFD Sender: No OFD packet to send [20:44:53]OFD Sender: No OFD packet to send [20:44:58]OFD Sender: No OFD packet to send [20:45:03]OFD Sender: No OFD packet to send [20:45:08]OFD Sender: No OFD packet to send [20:45:13]OFD Sender: No OFD packet to send [20:45:18]OFD Sender: No OFD packet to send [20:45:23]OFD Sender: No OFD packet to send [20:45:28]OFD Sender: No OFD packet to send [20:45:33]OFD Sender: No OFD packet to send [20:45:38]OFD Sender: No OFD packet to send [20:45:43]OFD Sender: No OFD packet to send [20:45:48]OFD Sender: No OFD packet to send [20:45:53]OFD Sender: No OFD packet to send [20:45:58]OFD Sender: No OFD packet to send [20:46:03]OFD Sender: No OFD packet to send [20:46:08]OFD Sender: No OFD packet to send [20:46:13]OFD Sender: No OFD packet to send [20:46:18]OFD Sender: No OFD packet to send [20:46:23]OFD Sender: No OFD packet to send [20:46:28]OFD Sender: No OFD packet to send [20:46:33]OFD Sender: No OFD packet to send [20:46:38]OFD Sender: No OFD packet to send [20:46:43]OFD Sender: No OFD packet to send [20:46:48]OFD Sender: No OFD packet to send [20:46:53]OFD Sender: No OFD packet to send [20:46:58]OFD Sender: No OFD packet to send [20:47:03]OFD Sender: No OFD packet to send [20:47:08]OFD Sender: No OFD packet to send [20:47:13]OFD Sender: No OFD packet to send [20:47:18]OFD Sender: No OFD packet to send [20:47:23]OFD Sender: No OFD packet to send [20:47:28]OFD Sender: No OFD packet to send [20:47:33]OFD Sender: No OFD packet to send [20:47:38]OFD Sender: No OFD packet to send [20:47:43]OFD Sender: No OFD packet to send [20:47:48]OFD Sender: No OFD packet to send [20:47:53]OFD Sender: No OFD packet to send [20:47:58]OFD Sender: No OFD packet to send [20:48:03]OFD Sender: No OFD packet to send [20:48:08]OFD Sender: No OFD packet to send [20:48:13]OFD Sender: No OFD packet to send [20:48:18]OFD Sender: No OFD packet to send [20:48:23]OFD Sender: No OFD packet to send [20:48:28]OFD Sender: No OFD packet to send [20:48:33]OFD Sender: No OFD packet to send [20:48:38]OFD Sender: No OFD packet to send [20:48:43]OFD Sender: No OFD packet to send [20:48:48]OFD Sender: No OFD packet to send [20:48:53]OFD Sender: No OFD packet to send [20:48:58]OFD Sender: No OFD packet to send [20:49:03]OFD Sender: No OFD packet to send [20:49:08]OFD Sender: No OFD packet to send [20:49:13]OFD Sender: No OFD packet to send [20:49:18]OFD Sender: No OFD packet to send [20:49:23]OFD Sender: No OFD packet to send [20:49:28]OFD Sender: No OFD packet to send [20:49:33]OFD Sender: No OFD packet to send [20:49:38]OFD Sender: No OFD packet to send [20:49:43]OFD Sender: No OFD packet to send [20:49:48]OFD Sender: No OFD packet to send [20:49:53]OFD Sender: No OFD packet to send [20:49:58]OFD Sender: No OFD packet to send [20:50:03]OFD Sender: No OFD packet to send [20:50:08]OFD Sender: No OFD packet to send [20:50:13]OFD Sender: No OFD packet to send [20:50:18]OFD Sender: No OFD packet to send [20:50:23]OFD Sender: No OFD packet to send [20:50:28]OFD Sender: No OFD packet to send [20:50:33]OFD Sender: No OFD packet to send [20:50:38]OFD Sender: No OFD packet to send [20:50:43]OFD Sender: No OFD packet to send [20:50:48]OFD Sender: No OFD packet to send [20:50:53]OFD Sender: No OFD packet to send [20:50:58]OFD Sender: No OFD packet to send [20:51:03]OFD Sender: No OFD packet to send [20:51:08]OFD Sender: No OFD packet to send [20:51:13]OFD Sender: No OFD packet to send [20:51:18]OFD Sender: No OFD packet to send [20:51:23]OFD Sender: No OFD packet to send [20:51:28]OFD Sender: No OFD packet to send [20:51:33]OFD Sender: No OFD packet to send [20:51:38]OFD Sender: No OFD packet to send [20:51:43]OFD Sender: No OFD packet to send [20:51:48]OFD Sender: No OFD packet to send [20:51:53]OFD Sender: No OFD packet to send [20:51:58]OFD Sender: No OFD packet to send [20:52:03]OFD Sender: No OFD packet to send [20:52:08]OFD Sender: No OFD packet to send [20:52:13]OFD Sender: No OFD packet to send [20:52:18]OFD Sender: No OFD packet to send [20:52:23]OFD Sender: No OFD packet to send [20:52:28]OFD Sender: No OFD packet to send [20:52:33]OFD Sender: No OFD packet to send [20:52:38]OFD Sender: No OFD packet to send [20:52:43]OFD Sender: No OFD packet to send [20:52:48]OFD Sender: No OFD packet to send [20:52:53]OFD Sender: No OFD packet to send [20:52:58]OFD Sender: No OFD packet to send [20:53:03]OFD Sender: No OFD packet to send [20:53:08]OFD Sender: No OFD packet to send [20:53:13]OFD Sender: No OFD packet to send [20:53:18]OFD Sender: No OFD packet to send [20:53:23]OFD Sender: No OFD packet to send [20:53:28]OFD Sender: No OFD packet to send [20:53:33]OFD Sender: No OFD packet to send [20:53:38]OFD Sender: No OFD packet to send [20:53:43]OFD Sender: No OFD packet to send [20:53:48]OFD Sender: No OFD packet to send [20:53:53]OFD Sender: No OFD packet to send [20:53:58]OFD Sender: No OFD packet to send [20:54:03]OFD Sender: No OFD packet to send [20:54:08]OFD Sender: No OFD packet to send [20:54:13]OFD Sender: No OFD packet to send [20:54:18]OFD Sender: No OFD packet to send [20:54:23]OFD Sender: No OFD packet to send [20:54:28]OFD Sender: No OFD packet to send [20:54:33]OFD Sender: No OFD packet to send [20:54:38]OFD Sender: No OFD packet to send [20:54:43]OFD Sender: No OFD packet to send [20:54:48]OFD Sender: No OFD packet to send [20:54:53]OFD Sender: No OFD packet to send [20:54:58]OFD Sender: No OFD packet to send [20:55:03]OFD Sender: No OFD packet to send [20:55:08]OFD Sender: No OFD packet to send [20:55:13]OFD Sender: No OFD packet to send [20:55:18]OFD Sender: No OFD packet to send [20:55:23]OFD Sender: No OFD packet to send [20:55:28]OFD Sender: No OFD packet to send [20:55:33]OFD Sender: No OFD packet to send [20:55:38]OFD Sender: No OFD packet to send [20:55:43]OFD Sender: No OFD packet to send [20:55:48]OFD Sender: No OFD packet to send [20:55:53]OFD Sender: No OFD packet to send [20:55:58]OFD Sender: No OFD packet to send [20:56:03]OFD Sender: No OFD packet to send [20:56:08]OFD Sender: No OFD packet to send [20:56:13]OFD Sender: No OFD packet to send [20:56:18]OFD Sender: No OFD packet to send [20:56:23]OFD Sender: No OFD packet to send [20:56:28]OFD Sender: No OFD packet to send [20:56:33]OFD Sender: No OFD packet to send [20:56:38]OFD Sender: No OFD packet to send [20:56:43]OFD Sender: No OFD packet to send [20:56:48]OFD Sender: No OFD packet to send [20:56:53]OFD Sender: No OFD packet to send [20:56:58]OFD Sender: No OFD packet to send [20:57:03]OFD Sender: No OFD packet to send [20:57:08]OFD Sender: No OFD packet to send [20:57:13]OFD Sender: No OFD packet to send [20:57:18]OFD Sender: No OFD packet to send [20:57:23]OFD Sender: No OFD packet to send [20:57:28]OFD Sender: No OFD packet to send [20:57:33]OFD Sender: No OFD packet to send [20:57:38]OFD Sender: No OFD packet to send [20:57:43]OFD Sender: No OFD packet to send [20:57:48]OFD Sender: No OFD packet to send [20:57:53]OFD Sender: No OFD packet to send [20:57:58]OFD Sender: No OFD packet to send [20:58:03]OFD Sender: No OFD packet to send [20:58:08]OFD Sender: No OFD packet to send [20:58:13]OFD Sender: No OFD packet to send [20:58:18]OFD Sender: No OFD packet to send [20:58:23]OFD Sender: No OFD packet to send [20:58:28]OFD Sender: No OFD packet to send [20:58:33]OFD Sender: No OFD packet to send [20:58:38]OFD Sender: No OFD packet to send [20:58:43]OFD Sender: No OFD packet to send [20:58:48]OFD Sender: No OFD packet to send [20:58:53]OFD Sender: No OFD packet to send [20:58:58]OFD Sender: No OFD packet to send [20:59:03]OFD Sender: No OFD packet to send [20:59:08]OFD Sender: No OFD packet to send [20:59:13]OFD Sender: No OFD packet to send [20:59:18]OFD Sender: No OFD packet to send [20:59:23]OFD Sender: No OFD packet to send [20:59:28]OFD Sender: No OFD packet to send [20:59:33]OFD Sender: No OFD packet to send [20:59:38]OFD Sender: No OFD packet to send [20:59:43]OFD Sender: No OFD packet to send [20:59:48]OFD Sender: No OFD packet to send [20:59:53]OFD Sender: No OFD packet to send [20:59:58]OFD Sender: No OFD packet to send [21:00:03]OFD Sender: No OFD packet to send [21:00:08]OFD Sender: No OFD packet to send [21:00:13]OFD Sender: No OFD packet to send [21:00:18]OFD Sender: No OFD packet to send [21:00:23]OFD Sender: No OFD packet to send [21:00:28]OFD Sender: No OFD packet to send [21:00:33]OFD Sender: No OFD packet to send [21:00:38]OFD Sender: No OFD packet to send [21:00:43]OFD Sender: No OFD packet to send [21:00:48]OFD Sender: No OFD packet to send [21:00:53]OFD Sender: No OFD packet to send [21:00:58]OFD Sender: No OFD packet to send [21:01:03]OFD Sender: No OFD packet to send [21:01:08]OFD Sender: No OFD packet to send [21:01:13]OFD Sender: No OFD packet to send [21:01:18]OFD Sender: No OFD packet to send [21:01:23]OFD Sender: No OFD packet to send [21:01:28]OFD Sender: No OFD packet to send [21:01:33]OFD Sender: No OFD packet to send [21:01:38]OFD Sender: No OFD packet to send [21:01:43]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:15]accept exits with 9 [21:03:15]New connection [21:03:15]New thread 3067489636 created [21:03:15]Thread 3067346276 joined [21:03:15]Waiting for new connection... [21:03:15] Sock 9.Parse request [21:03:15]Sock 9.Check first char [21:03:15]Sock 9.First char is OK [21:03:15]request: POST /json_proto HTTP/1.0 [21:03:15]Method: POST [21:03:15]URL: /json_proto [21:03:15]Method is POST - this is cgi request [21:03:15]url: /json_proto [21:03:15]query_string will be loaded in cgi processing [21:03:15]execute_cgi json_proto POST (null) [21:03:15]execute_cgi path=json_proto method=POST [21:03:15]POST find Content-Length [21:03:15]Host: 172.17.51.3:8080 [21:03:15]Content-Length: 678 [21:03:15]Content-Type: application/json [21:03:15] [21:03:15]POST finish read [21:03:15]Found Content-Length = 678 [21:03:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342886", "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" : 11.460, "sum" : 850.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 850.00, "total" : 850.00, "payments": [ { "type": 0, "sum" : 850.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:03:15]execute_script... [21:03: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)342886", "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" : 11.460, "sum" : 850.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 850.00, "total" : 850.00, "payments": [ { "type": 0, "sum" : 850.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:03:15]POST & json_proto [21:03:15]process_json_proto [21:03:15]json parsed OK: [21:03:15]protocol is kg_v1.0 [21:03:15]action value=close_receipt [21:03:15]process_action close_receipt [21:03:15]cmd_close_receipt [21:03:15]MH_GetDate [21:03:15]Write to MH i2c: F0 00 00 6D 17 73 [21:03:15]Write i2c OK [21:03:15]MH_I2C_Read... [21:03:15]Read from MH i2c: F0 [21:03:15]MH_I2C_Read... [21:03:15]Read from MH i2c: F0 09 00 [21:03:15]MH_I2C_Read... [21:03:15]Read from MH i2c: F0 09 00 6D 17 00 14 70 15 67 04 C1 95 66 3C [21:03:15]GetLastDocTimeStamp 1729456861 [21:03:15]current date 1729458196 [21:03:15]FM_GetShiftState [21:03:15]SAM_PROTO_GetShiftState [21:03:15]wFMCommunicate request_size=4 [21:03:15]MH_SAM_APDU [21:03:15]CAPDU: 80 13 01 00 [21:03:15]Write to MH i2c: E2 08 00 6E 17 80 13 01 00 00 00 00 00 02 [21:03:15]Write i2c OK [21:03:15]MH_I2C_Read... [21:03:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:03:15]Read from MH i2c: E2 [21:03:15]MH_I2C_Read... [21:03:15]Read from MH i2c: E2 0E 00 [21:03:15]MH_I2C_Read... [21:03:15]Read from MH i2c: E2 0E 00 6E 17 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 E8 [21:03:15]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [21:03:15]wFMCommunicate OK [21:03:15]SAM_PROTO_GetShiftState done [21:03:15]FM_GetShiftState done [21:03:15]opened in 1729384718 [21:03:15]opened+sec_in_day 1729471118 [21:03:15]quantity*price = 85033 [21:03:15]sum+1 = 85034 [21:03:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.33 ИТОГО: 850.00 Внесено: 850.00 СДАЧА: 0.00 НСП 1% : 7.52 НДС 12% : 90.30 Наличными: 850.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 264 20.10.2024 21:03 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30482 ФПД: 19031870796585 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T210316&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30482&fm=19031870796585&tin=02508201610067®Number=0000000000186857&sum=85000 [21:03:16]StoreToDocumentArchive [21:03:16]shift 114 fd 30482 [21:03:16]save to /storage/0114/doc_00030482 [21:03:16]save last doc name /storage/0114/doc_00030482 to /storage/kkm_last_doc_name [21:03:16]save OK [21:03:16]Clear old archive folders... [21:03:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:03:16]tlvbuf is 01DFC790 [21:03:16]SAM_PROTO_ClearQueue [21:03:16]wFMCommunicate request_size=4 [21:03:16]MH_SAM_APDU [21:03:16]CAPDU: 80 09 00 00 [21:03:16]Write to MH i2c: E2 08 00 7B 17 80 09 00 00 00 00 00 00 04 [21:03:16]Write i2c OK [21:03:16]MH_I2C_Read... [21:03:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:03:16]Read from MH i2c: E2 [21:03:16]MH_I2C_Read... [21:03:16]Read from MH i2c: E2 03 00 [21:03:16]MH_I2C_Read... [21:03:16]Read from MH i2c: E2 03 00 7B 17 00 90 00 06 [21:03:16]RAPDU: 90 00 [21:03:16]wFMCommunicate OK [21:03:16]SAM_PROTO_ClearQueue done [21:03:16]KKMCreateOFDPacket [21:03:16]OFDProtocolAddRootSTLVToBuf [21:03:16]FM_MakeSignedData [21:03:16]FM_MakeSignedData [21:03:16]SAM_PROTO_SignData [21:03:16]wFMCommunicate request_size=4 [21:03:16]MH_SAM_APDU [21:03:16]CAPDU: 80 0D 01 02 [21:03:16]Write to MH i2c: E2 08 00 7C 17 80 0D 01 02 00 00 00 00 0C [21:03:16]Write i2c OK [21:03:16]MH_I2C_Read... [21:03:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:03:16]Read from MH i2c: E2 [21:03:16]MH_I2C_Read... [21:03:16]Read from MH i2c: E2 03 00 [21:03:16]MH_I2C_Read... [21:03:16]Read from MH i2c: E2 03 00 7C 17 00 90 00 07 [21:03:16]RAPDU: 90 00 [21:03:16]wFMCommunicate OK [21:03:16]wFMCommunicate request_size=255 [21:03:16]MH_SAM_APDU [21:03: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 C4 2C 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 29 4C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 4C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 23 00 00 00 00 07 04 06 00 08 4C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 01 00 00 F4 03 04 00 14 70 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 77 00 00 35 04 06 00 11 [21:03:16]Write to MH i2c: E2 02 01 7D 17 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 C4 2C 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 29 4C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 4C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 23 00 00 00 00 07 04 06 00 08 4C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 01 00 00 F4 03 04 00 14 70 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 77 00 00 35 04 06 00 11 00 00 B5 [21:03:16]Write i2c OK [21:03:16]MH_I2C_Read... [21:03:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:03:16]Read from MH i2c: E2 [21:03:16]MH_I2C_Read... [21:03:16]Read from MH i2c: E2 03 00 [21:03:16]MH_I2C_Read... [21:03:16]Read from MH i2c: E2 03 00 7D 17 00 90 00 08 [21:03:16]RAPDU: 90 00 [21:03:16]wFMCommunicate OK [21:03:16]wFMCommunicate request_size=10 [21:03:16]MH_SAM_APDU [21:03:16]CAPDU: 80 0D 02 02 05 4F 33 E5 F3 29 [21:03:16]Write to MH i2c: E2 0D 00 7E 17 80 0D 02 02 05 00 4F 33 E5 F3 29 00 00 9C [21:03:16]Write i2c OK [21:03:16]MH_I2C_Read... [21:03:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:03:16]Read from MH i2c: E2 [21:03:16]MH_I2C_Read... [21:03:16]Read from MH i2c: E2 03 00 [21:03:16]MH_I2C_Read... [21:03:16]Read from MH i2c: E2 03 00 7E 17 00 90 00 09 [21:03:16]RAPDU: 90 00 [21:03:16]wFMCommunicate OK [21:03:16]wFMCommunicate request_size=4 [21:03:16]MH_SAM_APDU [21:03:16]CAPDU: 80 0D 03 02 [21:03:16]Write to MH i2c: E2 08 00 7F 17 80 0D 03 02 00 00 00 00 11 [21:03:16]Write i2c OK [21:03:16]MH_I2C_Read... [21:03:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:03:16]Read from MH i2c: E2 [21:03:16]MH_I2C_Read... [21:03:16]Read from MH i2c: E2 0B 00 [21:03:16]MH_I2C_Read... [21:03:16]Read from MH i2c: E2 0B 00 7F 17 00 4A 70 E6 0E 9B 48 EE 58 90 00 E9 [21:03:16]RAPDU: 4A 70 E6 0E 9B 48 EE 58 90 00 [21:03:16]wFMCommunicate OK [21:03:16]SAM_PROTO_SignData done [21:03:16]FM_MakeSignedData done [21:03:16]CreateOFDProtocolMessage [21:03:16]wFMCommunicate request_size=4 [21:03:16]MH_SAM_APDU [21:03:16]CAPDU: 80 11 00 00 [21:03:16]Write to MH i2c: E2 08 00 80 17 80 11 00 00 00 00 00 00 11 [21:03:16]Write i2c OK [21:03:16]MH_I2C_Read... [21:03:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:03:16]Read from MH i2c: E2 [21:03:16]MH_I2C_Read... [21:03:16]Read from MH i2c: E2 17 00 [21:03:16]MH_I2C_Read... [21:03:16]Read from MH i2c: E2 17 00 80 17 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:03:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [21:03:16]wFMCommunicate OK [21:03:16]CreateOFDProtocolMessage done [21:03:16]OFDSenderStorePacket 30482 [21:03:16]StoreOFDPacket docnum=30482 [21:03: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 94 43 07 01 D2 C2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 C4 2C 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 29 4C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 4C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 23 00 00 00 00 07 04 06 00 08 4C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 01 00 00 F4 03 04 00 14 70 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 77 00 00 35 04 06 00 11 4F 33 E5 F3 29 4A 70 E6 0E 9B 48 EE 58 [21:03:16]CheckFolder [21:03:16]dirname=/storage/ofd_packets [21:03:16]CheckFolder done [21:03:16]ProducePacketName [21:03:16]name=ofd_packets/00030482 [21:03:16]NVStorageSaveData ofd_packets/00030482 [21:03:16]File name is /storage/ofd_packets/00030482 [21:03:16]Write 301 bytes [21:03:16]NVStorageSaveData done [21:03:16]OFDSenderStorePacket done [21:03:16]KKMCreateOFDPacket done [21:03:16]NVStorageSaveData kkm_last_timestamp [21:03:16]File name is /storage/kkm_last_timestamp [21:03:16]Write 4 bytes [21:03:16]NVStorageSaveData done [21:03:16]ExternCall_PrintAddStr [21:03:16]wPrintStart [21:03:16]Write to MH i2c: 01 00 00 81 17 98 [21:03:16]Write i2c OK [21:03:16]MH_I2C_Read... [21:03:16]Read from MH i2c: 01 [21:03:16]MH_I2C_Read... [21:03:16]Read from MH i2c: 01 07 00 [21:03:16]MH_I2C_Read... [21:03:16]Read from MH i2c: 01 07 00 81 17 00 00 00 00 00 FF 0F AD [21:03:16]RasterBufferAndPrint [21:03:16]line Счет N : (1)342886 [21:03:16]line ИНН: 02508201610067 [21:03:16]line Контрольно-Кассовый Чек [21:03:16]line ПРОДАЖА [21:03:16]line ТРК (МРК, ГНК) : 62 [21:03:16]line Товар: 2710124500 [21:03:16]line Аи-95-К-3 [21:03:16]line 11.460 * 74.20 [21:03:16]line = 850.33 [21:03:16]line НДС 12% НСП 1% [21:03:16]line > о реализуемом товаре [21:03:16]line ОКРУГЛЕНИЕ: -0.33 [21:03:16]line ИТОГО: 850.00 [21:03:16]line Внесено: 850.00 [21:03:16]line СДАЧА: 0.00 [21:03:16]line НСП 1% : 7.52 [21:03:16]line НДС 12% : 90.30 [21:03:16]line Наличными: 850.00 [21:03:16]line Безнал.: 0.00 [21:03:16]line Место: АЗС № 78 "Партнер Нефть" [21:03:16]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [21:03:16]line СНО: Общий режим [21:03:16]line Чек 264 20.10.2024 21:03 [21:03:16]line Смена: 114 ФФД: 1.0 [21:03:16]line ЗНМ: 0300000137 [21:03:16]line РНМ: 0000000000186857 [21:03:16]line Версия ККМ: v1.0 [21:03:16]line ФМ: 0000000002094219 [21:03:16]line ФД: 30482 [21:03:16]line ФПД: 19031870796585 [21:03:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T210316&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30482&fm=19031870796585&tin=02508201610067®Number=0000000000186857&sum=85000 [21:03:17]OFD Sender: Processing packet 30482 [packets to send 10, broken 9] [21:03:17]ProducePacketName [21:03:17]name=ofd_packets/00030482 [21:03:17]OFD Sender: To server: pG, [21:03:17]CommunicateWithHost lk.salyk.kg:30040 [21:03:17]ConnectInit lk.salyk.kg [21:03:17]written 0, free lines is 4095 [21:03:17]Connected sock=10 [21:03: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 94 43 07 01 D2 C2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 C4 2C 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 29 4C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 4C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 23 00 00 00 00 07 04 06 00 08 4C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 01 00 00 F4 03 04 00 14 70 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 77 00 00 35 04 06 00 11 4F 33 E5 F3 29 4A 70 E6 0E 9B 48 EE 58 [21:03: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 EA 8A 47 00 2C 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 12 77 00 00 F4 03 04 00 97 1A 15 67 B6 04 01 00 00 57 B9 5F EC 56 41 20 E8 [21:03:17]CommunicateWithHost err = 0 [21:03:17]CheckOFDResponse [21:03:17]1017 (14) - 77093643461234 [21:03:17]1041 (16) - 0000000002094219 [21:03:17]1040 (4) - 30482 [21:03:17]1012 (4) - 20.10.2024 14:58 [21:03:17]1206 (1) - 0 [21:03:17]OFD Sender: Remove packet 30482 [21:03:17]ProducePacketName [21:03:17]name=ofd_packets/00030482 [21:03:17]NVStorageDeleteData [21:03:17]Write to MH i2c: 01 00 00 AC 17 C3 [21:03:17]Write i2c OK [21:03:17]MH_I2C_Read... [21:03:17]Read from MH i2c: 01 [21:03:17]MH_I2C_Read... [21:03:17]Read from MH i2c: 01 07 00 [21:03:17]MH_I2C_Read... [21:03:17]Read from MH i2c: 01 07 00 AC 17 00 00 00 00 00 F4 0C CA [21:03:17]RasterBufferAndPrint [21:03:17]line [21:03:17]line [21:03:17]line [21:03:17]line [21:03:17]line [21:03:17]written 0, free lines is 3322 [21:03:17]MH_Cut [21:03:17]Write to MH i2c: D1 01 00 B3 17 01 9C [21:03:17]Write i2c OK [21:03:17]MH_I2C_Read... [21:03:17]Read from MH i2c: D1 [21:03:17]MH_I2C_Read... [21:03:17]Read from MH i2c: D1 01 00 [21:03:17]MH_I2C_Read... [21:03:17]Read from MH i2c: D1 01 00 B3 17 00 9B [21:03:17]Write to MH i2c: 01 00 00 B4 17 CB [21:03:17]Write i2c OK [21:03:17]MH_I2C_Read... [21:03:17]OFD Sender: No OFD packet to send [21:03:18]*** Cut start [21:03:18]*** Partial cut [21:03:18]*** CUTSNS_PIN = 1 [21:03:18]*** CUTSNS_PIN = 0 [21:03:18]*** Brake cut motor [21:03:18]Read from MH i2c: 01 [21:03:18]MH_I2C_Read... [21:03:18]*** Stop cut motor [21:03:18]*** Cut end [21:03:18]Read from MH i2c: 01 07 00 [21:03:18]MH_I2C_Read... [21:03:18]Read from MH i2c: 01 07 00 B4 17 00 00 00 00 00 FF 0F E0 [21:03:18]process_action close_receipt done [21:03:18]requested_data is exist [21:03:18]produce_requested_data [21:03:18]requested_item fm.sn is exist - process it [21:03:18]wFMCommunicate request_size=4 [21:03:18]MH_SAM_APDU [21:03:18]CAPDU: 80 11 00 00 [21:03:18]Write to MH i2c: E2 08 00 B5 17 80 11 00 00 00 00 00 00 46 [21:03:18]Write i2c OK [21:03:18]MH_I2C_Read... [21:03:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:03:18]Read from MH i2c: E2 [21:03:18]MH_I2C_Read... [21:03:18]Read from MH i2c: E2 17 00 [21:03:18]MH_I2C_Read... [21:03:18]Read from MH i2c: E2 17 00 B5 17 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:03:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [21:03:18]wFMCommunicate OK [21:03:18]requested_item fd.num is exist - process it [21:03:18]SAM_PROTO_GetFieldsCounters [21:03:18]wFMCommunicate request_size=4 [21:03:18]MH_SAM_APDU [21:03:18]CAPDU: 80 13 00 00 [21:03:18]Write to MH i2c: E2 08 00 B6 17 80 13 00 00 00 00 00 00 49 [21:03:18]Write i2c OK [21:03:18]MH_I2C_Read... [21:03:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:03:19]Read from MH i2c: E2 [21:03:19]MH_I2C_Read... [21:03:19]Read from MH i2c: E2 62 00 [21:03:19]MH_I2C_Read... [21:03:19]Read from MH i2c: E2 62 00 B6 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 77 00 00 0E 04 04 00 72 00 00 00 12 04 04 00 08 01 00 00 5E 04 04 00 08 01 00 00 57 04 04 00 09 01 00 00 19 04 04 00 00 00 00 00 90 00 85 [21:03: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 12 77 00 00 0E 04 04 00 72 00 00 00 12 04 04 00 08 01 00 00 5E 04 04 00 08 01 00 00 57 04 04 00 09 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:03:19]wFMCommunicate OK [21:03:19]SAM_PROTO_GetFieldsCounters done [21:03:19]requested_item shift.num is exist - process it [21:03:19]requested_item shift.opened is exist - process it [21:03:19]req_shift_opened [21:03:19]FM_GetShiftState [21:03:19]SAM_PROTO_GetShiftState [21:03:19]wFMCommunicate request_size=4 [21:03:19]MH_SAM_APDU [21:03:19]CAPDU: 80 13 01 00 [21:03:19]Write to MH i2c: E2 08 00 B7 17 80 13 01 00 00 00 00 00 4B [21:03:19]Write i2c OK [21:03:19]MH_I2C_Read... [21:03:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:03:19]Read from MH i2c: E2 [21:03:19]MH_I2C_Read... [21:03:19]Read from MH i2c: E2 0E 00 [21:03:19]MH_I2C_Read... [21:03:19]Read from MH i2c: E2 0E 00 B7 17 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 31 [21:03:19]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [21:03:19]wFMCommunicate OK [21:03:19]SAM_PROTO_GetShiftState done [21:03:19]FM_GetShiftState done [21:03:19]req_shift_opened done [21:03:19]requested_item shift.open_date is exist - process it [21:03:19]req_shift_open_date [21:03:19]req_shift_open_date done [21:03:19]produce_requested_data done [21:03:19]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30482,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [21:03:19]process_action_free close_receipt [21:03:19]json_value_free [21:03:19]json_value_free done [21:03:19]process_json_proto returns [21:03:19]Send response to host [21:03:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30482,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [21:03:19]free response buf [21:03:19]execute_script done [21:03:19]execute_script returns [21:03:19]free content buf [21:03:19]Sock 9.Close socket [21:03:19]Sock 9.Thread stoped [21:03:22]OFD Sender: No OFD packet to send [21:03:27]OFD Sender: No OFD packet to send [21:03:32]OFD Sender: No OFD packet to send [21:03:37]OFD Sender: No OFD packet to send [21:03:42]OFD Sender: No OFD packet to send [21:03:48]OFD Sender: No OFD packet to send [21:03:53]OFD Sender: No OFD packet to send [21:03:58]OFD Sender: No OFD packet to send [21:04:03]OFD Sender: No OFD packet to send [21:04:08]OFD Sender: No OFD packet to send [21:04:13]OFD Sender: No OFD packet to send [21:04:18]OFD Sender: No OFD packet to send [21:04:23]OFD Sender: No OFD packet to send [21:04:28]OFD Sender: No OFD packet to send [21:04:32]accept exits with 7 [21:04:32]New connection [21:04:32]New thread 3067346276 created [21:04:32]Thread 3067489636 joined [21:04:32]Waiting for new connection... [21:04:32] Sock 7.Parse request [21:04:32]Sock 7.Check first char [21:04:32]Sock 7.First char is OK [21:04:32]request: POST /json_proto HTTP/1.0 [21:04:32]Method: POST [21:04:32]URL: /json_proto [21:04:32]Method is POST - this is cgi request [21:04:32]url: /json_proto [21:04:32]query_string will be loaded in cgi processing [21:04:32]execute_cgi json_proto POST (null) [21:04:32]execute_cgi path=json_proto method=POST [21:04:32]POST find Content-Length [21:04:32]Host: 172.17.51.3:8080 [21:04:32]Content-Length: 837 [21:04:32]Content-Type: application/json [21:04:32] [21:04:32]POST finish read [21:04:32]Found Content-Length = 837 [21:04:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342887", "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 }]} ], "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" ] } } [21:04:32]execute_script... [21:04: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)342887", "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 }]} ], "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" ] } } [21:04:32]POST & json_proto [21:04:32]process_json_proto [21:04:32]json parsed OK: [21:04:32]protocol is kg_v1.0 [21:04:32]action value=close_receipt [21:04:32]process_action close_receipt [21:04:32]cmd_close_receipt [21:04:32]MH_GetDate [21:04:32]Write to MH i2c: F0 00 00 B8 17 BE [21:04:32]Write i2c OK [21:04:32]MH_I2C_Read... [21:04:32]Read from MH i2c: F0 [21:04:32]MH_I2C_Read... [21:04:32]Read from MH i2c: F0 09 00 [21:04:32]MH_I2C_Read... [21:04:32]Read from MH i2c: F0 09 00 B8 17 00 61 70 15 67 04 C1 95 66 D4 [21:04:32]GetLastDocTimeStamp 1729458196 [21:04:32]current date 1729458273 [21:04:32]FM_GetShiftState [21:04:32]SAM_PROTO_GetShiftState [21:04:32]wFMCommunicate request_size=4 [21:04:32]MH_SAM_APDU [21:04:32]CAPDU: 80 13 01 00 [21:04:32]Write to MH i2c: E2 08 00 B9 17 80 13 01 00 00 00 00 00 4D [21:04:32]Write i2c OK [21:04:32]MH_I2C_Read... [21:04:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:04:32]Read from MH i2c: E2 [21:04:32]MH_I2C_Read... [21:04:32]Read from MH i2c: E2 0E 00 [21:04:32]MH_I2C_Read... [21:04:32]Read from MH i2c: E2 0E 00 B9 17 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 33 [21:04:32]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [21:04:32]wFMCommunicate OK [21:04:32]SAM_PROTO_GetShiftState done [21:04:32]FM_GetShiftState done [21:04:32]opened in 1729384718 [21:04:32]opened+sec_in_day 1729471118 [21:04:32]quantity*price = 50063 [21:04:32]sum+1 = 50064 [21:04:32]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.63 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 0.00 Безнал.: 500.63 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 265 20.10.2024 21:04 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Платежная система: АКБ Кыргызстан ФМ: 0000000002094219 ФД: 30483 ФПД: 213837771264819 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T210433&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30483&fm=213837771264819&tin=02508201610067®Number=0000000000186857&sum=50063 [21:04:33]StoreToDocumentArchive [21:04:33]shift 114 fd 30483 [21:04:33]save to /storage/0114/doc_00030483 [21:04:33]save last doc name /storage/0114/doc_00030483 to /storage/kkm_last_doc_name [21:04:33]save OK [21:04:33]Clear old archive folders... [21:04:33]ProcessDocumentItem done err = 0, tmpTLVsize=248 [21:04:33]tlvbuf is B6E2B1E0 [21:04:33]SAM_PROTO_ClearQueue [21:04:33]wFMCommunicate request_size=4 [21:04:33]MH_SAM_APDU [21:04:33]CAPDU: 80 09 00 00 [21:04:33]Write to MH i2c: E2 08 00 C6 17 80 09 00 00 00 00 00 00 4F [21:04:33]Write i2c OK [21:04:33]MH_I2C_Read... [21:04:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:04:34]Read from MH i2c: E2 [21:04:34]MH_I2C_Read... [21:04:34]Read from MH i2c: E2 03 00 [21:04:34]MH_I2C_Read... [21:04:34]Read from MH i2c: E2 03 00 C6 17 00 90 00 51 [21:04:34]RAPDU: 90 00 [21:04:34]wFMCommunicate OK [21:04:34]SAM_PROTO_ClearQueue done [21:04:34]KKMCreateOFDPacket [21:04:34]OFDProtocolAddRootSTLVToBuf [21:04:34]FM_MakeSignedData [21:04:34]FM_MakeSignedData [21:04:34]SAM_PROTO_SignData [21:04:34]wFMCommunicate request_size=4 [21:04:34]MH_SAM_APDU [21:04:34]CAPDU: 80 0D 01 02 [21:04:34]Write to MH i2c: E2 08 00 C7 17 80 0D 01 02 00 00 00 00 57 [21:04:34]Write i2c OK [21:04:34]MH_I2C_Read... [21:04:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:04:34]Read from MH i2c: E2 [21:04:34]MH_I2C_Read... [21:04:34]Read from MH i2c: E2 03 00 [21:04:34]MH_I2C_Read... [21:04:34]Read from MH i2c: E2 03 00 C7 17 00 90 00 52 [21:04:34]RAPDU: 90 00 [21:04:34]wFMCommunicate OK [21:04:34]wFMCommunicate request_size=255 [21:04:34]MH_SAM_APDU [21:04: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 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 09 01 00 00 F4 03 04 00 61 70 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 77 00 00 35 04 06 00 C2 7B FC 65 [21:04:34]Write to MH i2c: E2 02 01 C8 17 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 09 01 00 00 F4 03 04 00 61 70 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 77 00 00 35 04 06 00 C2 7B FC 65 00 00 D5 [21:04:34]Write i2c OK [21:04:34]MH_I2C_Read... [21:04:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:04:34]Read from MH i2c: E2 [21:04:34]MH_I2C_Read... [21:04:34]Read from MH i2c: E2 03 00 [21:04:34]MH_I2C_Read... [21:04:34]Read from MH i2c: E2 03 00 C8 17 00 90 00 53 [21:04:34]RAPDU: 90 00 [21:04:34]wFMCommunicate OK [21:04:34]wFMCommunicate request_size=7 [21:04:34]MH_SAM_APDU [21:04:34]CAPDU: 80 0D 02 02 02 53 33 [21:04:34]Write to MH i2c: E2 0A 00 C9 17 80 0D 02 02 02 00 53 33 00 00 E4 [21:04:34]Write i2c OK [21:04:34]MH_I2C_Read... [21:04:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:04:34]Read from MH i2c: E2 [21:04:34]MH_I2C_Read... [21:04:34]Read from MH i2c: E2 03 00 [21:04:34]MH_I2C_Read... [21:04:34]Read from MH i2c: E2 03 00 C9 17 00 90 00 54 [21:04:34]RAPDU: 90 00 [21:04:34]wFMCommunicate OK [21:04:34]wFMCommunicate request_size=4 [21:04:34]MH_SAM_APDU [21:04:34]CAPDU: 80 0D 03 02 [21:04:34]Write to MH i2c: E2 08 00 CA 17 80 0D 03 02 00 00 00 00 5C [21:04:34]Write i2c OK [21:04:34]MH_I2C_Read... [21:04:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:04:34]Read from MH i2c: E2 [21:04:34]MH_I2C_Read... [21:04:34]Read from MH i2c: E2 0B 00 [21:04:34]MH_I2C_Read... [21:04:34]Read from MH i2c: E2 0B 00 CA 17 00 95 61 B3 65 A4 5B C2 EC 90 00 18 [21:04:34]RAPDU: 95 61 B3 65 A4 5B C2 EC 90 00 [21:04:34]wFMCommunicate OK [21:04:34]SAM_PROTO_SignData done [21:04:34]FM_MakeSignedData done [21:04:34]CreateOFDProtocolMessage [21:04:34]wFMCommunicate request_size=4 [21:04:34]MH_SAM_APDU [21:04:34]CAPDU: 80 11 00 00 [21:04:34]Write to MH i2c: E2 08 00 CB 17 80 11 00 00 00 00 00 00 5C [21:04:34]Write i2c OK [21:04:34]MH_I2C_Read... [21:04:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:04:34]Read from MH i2c: E2 [21:04:34]MH_I2C_Read... [21:04:34]Read from MH i2c: E2 17 00 [21:04:34]MH_I2C_Read... [21:04:34]Read from MH i2c: E2 17 00 CB 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 AA [21:04:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [21:04:34]wFMCommunicate OK [21:04:34]CreateOFDProtocolMessage done [21:04:34]OFDSenderStorePacket 30483 [21:04:34]StoreOFDPacket docnum=30483 [21:04: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 3A 7E 04 01 E3 55 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 09 01 00 00 F4 03 04 00 61 70 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 77 00 00 35 04 06 00 C2 7B FC 65 53 33 95 61 B3 65 A4 5B C2 EC [21:04:34]CheckFolder [21:04:34]dirname=/storage/ofd_packets [21:04:34]CheckFolder done [21:04:34]ProducePacketName [21:04:34]name=ofd_packets/00030483 [21:04:34]NVStorageSaveData ofd_packets/00030483 [21:04:34]File name is /storage/ofd_packets/00030483 [21:04:34]Write 298 bytes [21:04:34]NVStorageSaveData done [21:04:34]OFDSenderStorePacket done [21:04:34]KKMCreateOFDPacket done [21:04:34]NVStorageSaveData kkm_last_timestamp [21:04:34]File name is /storage/kkm_last_timestamp [21:04:34]Write 4 bytes [21:04:34]NVStorageSaveData done [21:04:34]ExternCall_PrintAddStr [21:04:34]wPrintStart [21:04:34]Write to MH i2c: 01 00 00 CC 17 E3 [21:04:34]Write i2c OK [21:04:34]MH_I2C_Read... [21:04:34]Read from MH i2c: 01 [21:04:34]MH_I2C_Read... [21:04:34]Read from MH i2c: 01 07 00 [21:04:34]MH_I2C_Read... [21:04:34]Read from MH i2c: 01 07 00 CC 17 00 00 00 00 00 FF 0F F8 [21:04:34]RasterBufferAndPrint [21:04:34]line Счет N : (1)342887 [21:04:34]line ИНН: 02508201610067 [21:04:34]line Контрольно-Кассовый Чек [21:04:34]line ПРОДАЖА [21:04:34]line ТРК (МРК, ГНК) : 54 [21:04:34]line Товар: 2710194210 [21:04:34]line ДТ-К-2 [21:04:34]line 6.570 * 76.20 [21:04:34]line = 500.63 [21:04:34]line НДС 12% НСП 1% [21:04:34]line > о реализуемом товаре [21:04:34]line ИТОГО: 500.63 [21:04:34]line НСП 1% : 4.43 [21:04:34]line НДС 12% : 53.16 [21:04:34]line Наличными: 0.00 [21:04:34]line Безнал.: 500.63 [21:04:34]line Место: АЗС № 78 "Партнер Нефть" [21:04:34]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [21:04:34]line СНО: Общий режим [21:04:34]line Чек 265 20.10.2024 21:04 [21:04:34]line Смена: 114 ФФД: 1.0 [21:04:34]line ЗНМ: 0300000137 [21:04:34]line РНМ: 0000000000186857 [21:04:34]line Версия ККМ: v1.0 [21:04:34]line Платежная система: АКБ Кыргызстан [21:04:34]line ФМ: 0000000002094219 [21:04:34]line ФД: 30483 [21:04:34]line ФПД: 213837771264819 [21:04:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T210433&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30483&fm=213837771264819&tin=02508201610067®Number=0000000000186857&sum=50063 [21:04:34]OFD Sender: Processing packet 30483 [packets to send 10, broken 9] [21:04:34]ProducePacketName [21:04:34]name=ofd_packets/00030483 [21:04:34]OFD Sender: To server: pG, [21:04:34]CommunicateWithHost lk.salyk.kg:30040 [21:04:34]ConnectInit lk.salyk.kg [21:04:34]written 0, free lines is 4095 [21:04:34]Connected sock=10 [21:04: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 3A 7E 04 01 E3 55 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 09 01 00 00 F4 03 04 00 61 70 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 77 00 00 35 04 06 00 C2 7B FC 65 53 33 95 61 B3 65 A4 5B C2 EC [21:04: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 81 DD 47 00 24 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 13 77 00 00 F4 03 04 00 E4 1A 15 67 B6 04 01 00 00 C8 F3 8E 25 13 DB 51 9E [21:04:35]CommunicateWithHost err = 0 [21:04:35]CheckOFDResponse [21:04:35]1017 (14) - 77093643461234 [21:04:35]1041 (16) - 0000000002094219 [21:04:35]1040 (4) - 30483 [21:04:35]1012 (4) - 20.10.2024 14:59 [21:04:35]1206 (1) - 0 [21:04:35]OFD Sender: Remove packet 30483 [21:04:35]ProducePacketName [21:04:35]name=ofd_packets/00030483 [21:04:35]NVStorageDeleteData [21:04:35]Write to MH i2c: 01 00 00 F6 17 0D [21:04:35]Write i2c OK [21:04:35]MH_I2C_Read... [21:04:35]Read from MH i2c: 01 [21:04:35]MH_I2C_Read... [21:04:35]Read from MH i2c: 01 07 00 [21:04:35]MH_I2C_Read... [21:04:35]Read from MH i2c: 01 07 00 F6 17 00 00 00 00 00 F6 0C 16 [21:04:35]RasterBufferAndPrint [21:04:35]line [21:04:35]line [21:04:35]line [21:04:35]line [21:04:35]line [21:04:35]written 0, free lines is 3326 [21:04:35]MH_Cut [21:04:35]Write to MH i2c: D1 01 00 FD 17 01 E6 [21:04:35]Write i2c OK [21:04:35]MH_I2C_Read... [21:04:35]Read from MH i2c: D1 [21:04:35]MH_I2C_Read... [21:04:35]Read from MH i2c: D1 01 00 [21:04:35]MH_I2C_Read... [21:04:35]Read from MH i2c: D1 01 00 FD 17 00 E5 [21:04:35]Write to MH i2c: 01 00 00 FE 17 15 [21:04:35]Write i2c OK [21:04:35]MH_I2C_Read... [21:04:35]OFD Sender: No OFD packet to send [21:04:35]*** Cut start [21:04:35]*** Partial cut [21:04:35]*** CUTSNS_PIN = 1 [21:04:35]*** CUTSNS_PIN = 0 [21:04:36]*** Brake cut motor [21:04:36]Read from MH i2c: 01 [21:04:36]MH_I2C_Read... [21:04:36]*** Stop cut motor [21:04:36]*** Cut end [21:04:36]Read from MH i2c: 01 07 00 [21:04:36]MH_I2C_Read... [21:04:36]Read from MH i2c: 01 07 00 FE 17 00 00 00 00 00 FF 0F 2A [21:04:36]process_action close_receipt done [21:04:36]requested_data is exist [21:04:36]produce_requested_data [21:04:36]requested_item fm.sn is exist - process it [21:04:36]wFMCommunicate request_size=4 [21:04:36]MH_SAM_APDU [21:04:36]CAPDU: 80 11 00 00 [21:04:36]Write to MH i2c: E2 08 00 FF 17 80 11 00 00 00 00 00 00 90 [21:04:36]Write i2c OK [21:04:36]MH_I2C_Read... [21:04:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:04:36]Read from MH i2c: E2 [21:04:36]MH_I2C_Read... [21:04:36]Read from MH i2c: E2 17 00 [21:04:36]MH_I2C_Read... [21:04:36]Read from MH i2c: E2 17 00 FF 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 DE [21:04:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [21:04:36]wFMCommunicate OK [21:04:36]requested_item fd.num is exist - process it [21:04:36]SAM_PROTO_GetFieldsCounters [21:04:36]wFMCommunicate request_size=4 [21:04:36]MH_SAM_APDU [21:04:36]CAPDU: 80 13 00 00 [21:04:36]Write to MH i2c: E2 08 00 00 18 80 13 00 00 00 00 00 00 94 [21:04:36]Write i2c OK [21:04:36]MH_I2C_Read... [21:04:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:04:36]Read from MH i2c: E2 [21:04:36]MH_I2C_Read... [21:04:36]Read from MH i2c: E2 62 00 [21:04:36]MH_I2C_Read... [21:04:36]Read from MH i2c: E2 62 00 00 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 77 00 00 0E 04 04 00 72 00 00 00 12 04 04 00 09 01 00 00 5E 04 04 00 09 01 00 00 57 04 04 00 0A 01 00 00 19 04 04 00 00 00 00 00 90 00 D4 [21:04: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 13 77 00 00 0E 04 04 00 72 00 00 00 12 04 04 00 09 01 00 00 5E 04 04 00 09 01 00 00 57 04 04 00 0A 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:04:36]wFMCommunicate OK [21:04:36]SAM_PROTO_GetFieldsCounters done [21:04:36]requested_item shift.num is exist - process it [21:04:36]requested_item shift.opened is exist - process it [21:04:36]req_shift_opened [21:04:36]FM_GetShiftState [21:04:36]SAM_PROTO_GetShiftState [21:04:36]wFMCommunicate request_size=4 [21:04:36]MH_SAM_APDU [21:04:36]CAPDU: 80 13 01 00 [21:04:36]Write to MH i2c: E2 08 00 01 18 80 13 01 00 00 00 00 00 96 [21:04:36]Write i2c OK [21:04:36]MH_I2C_Read... [21:04:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:04:36]Read from MH i2c: E2 [21:04:36]MH_I2C_Read... [21:04:36]Read from MH i2c: E2 0E 00 [21:04:36]MH_I2C_Read... [21:04:36]Read from MH i2c: E2 0E 00 01 18 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 7C [21:04:36]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [21:04:36]wFMCommunicate OK [21:04:36]SAM_PROTO_GetShiftState done [21:04:36]FM_GetShiftState done [21:04:36]req_shift_opened done [21:04:36]requested_item shift.open_date is exist - process it [21:04:36]req_shift_open_date [21:04:36]req_shift_open_date done [21:04:36]produce_requested_data done [21:04:36]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30483,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [21:04:36]process_action_free close_receipt [21:04:36]json_value_free [21:04:36]json_value_free done [21:04:36]process_json_proto returns [21:04:36]Send response to host [21:04:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30483,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [21:04:36]free response buf [21:04:36]execute_script done [21:04:36]execute_script returns [21:04:36]free content buf [21:04:36]Sock 7.Close socket [21:04:36]Sock 7.Thread stoped [21:04:40]OFD Sender: No OFD packet to send [21:04:45]OFD Sender: No OFD packet to send [21:04:50]OFD Sender: No OFD packet to send [21:04:55]OFD Sender: No OFD packet to send [21:05:00]OFD Sender: No OFD packet to send [21:05:05]OFD Sender: No OFD packet to send [21:05:10]OFD Sender: No OFD packet to send [21:05:15]OFD Sender: No OFD packet to send [21:05:20]OFD Sender: No OFD packet to send [21:05:25]OFD Sender: No OFD packet to send [21:05:30]OFD Sender: No OFD packet to send [21:05:35]OFD Sender: No OFD packet to send [21:05:40]OFD Sender: No OFD packet to send [21:05:45]OFD Sender: No OFD packet to send [21:05:50]OFD Sender: No OFD packet to send [21:05:55]OFD Sender: No OFD packet to send [21:06:00]OFD Sender: No OFD packet to send [21:06:05]OFD Sender: No OFD packet to send [21:06:10]OFD Sender: No OFD packet to send [21:06:15]OFD Sender: No OFD packet to send [21:06:20]OFD Sender: No OFD packet to send [21:06:25]OFD Sender: No OFD packet to send [21:06:30]OFD Sender: No OFD packet to send [21:06:35]OFD Sender: No OFD packet to send [21:06:40]OFD Sender: No OFD packet to send [21:06:45]OFD Sender: No OFD packet to send [21:06:50]OFD Sender: No OFD packet to send [21:06:55]OFD Sender: No OFD packet to send [21:07:00]OFD Sender: No OFD packet to send [21:07:05]OFD Sender: No OFD packet to send [21:07:10]OFD Sender: No OFD packet to send [21:07:15]OFD Sender: No OFD packet to send [21:07:20]OFD Sender: No OFD packet to send [21:07:25]OFD Sender: No OFD packet to send [21:07:30]OFD Sender: No OFD packet to send [21:07:35]OFD Sender: No OFD packet to send [21:07:40]OFD Sender: No OFD packet to send [21:07:45]OFD Sender: No OFD packet to send [21:07:50]OFD Sender: No OFD packet to send [21:07:55]OFD Sender: No OFD packet to send [21:08:00]OFD Sender: No OFD packet to send [21:08:05]OFD Sender: No OFD packet to send [21:08:10]OFD Sender: No OFD packet to send [21:08:15]OFD Sender: No OFD packet to send [21:08:20]OFD Sender: No OFD packet to send [21:08:25]OFD Sender: No OFD packet to send [21:08:30]OFD Sender: No OFD packet to send [21:08:35]OFD Sender: No OFD packet to send [21:08:40]OFD Sender: No OFD packet to send [21:08:45]OFD Sender: No OFD packet to send [21:08:50]OFD Sender: No OFD packet to send [21:08:55]OFD Sender: No OFD packet to send [21:09:00]OFD Sender: No OFD packet to send [21:09:05]OFD Sender: No OFD packet to send [21:09:10]OFD Sender: No OFD packet to send [21:09:15]OFD Sender: No OFD packet to send [21:09:20]OFD Sender: No OFD packet to send [21:09:25]OFD Sender: No OFD packet to send [21:09:30]OFD Sender: No OFD packet to send [21:09:35]OFD Sender: No OFD packet to send [21:09:40]OFD Sender: No OFD packet to send [21:09:45]OFD Sender: No OFD packet to send [21:09:50]OFD Sender: No OFD packet to send [21:09:55]OFD Sender: No OFD packet to send [21:10:00]OFD Sender: No OFD packet to send [21:10:05]OFD Sender: No OFD packet to send [21:10:10]OFD Sender: No OFD packet to send [21:10:15]OFD Sender: No OFD packet to send [21:10:20]OFD Sender: No OFD packet to send [21:10:25]OFD Sender: No OFD packet to send [21:10:30]OFD Sender: No OFD packet to send [21:10:35]OFD Sender: No OFD packet to send [21:10:40]OFD Sender: No OFD packet to send [21:10:45]OFD Sender: No OFD packet to send [21:10:50]OFD Sender: No OFD packet to send [21:10:55]OFD Sender: No OFD packet to send [21:11:00]OFD Sender: No OFD packet to send [21:11:05]OFD Sender: No OFD packet to send [21:11:10]OFD Sender: No OFD packet to send [21:11:15]OFD Sender: No OFD packet to send [21:11:20]OFD Sender: No OFD packet to send [21:11:25]OFD Sender: No OFD packet to send [21:11:30]OFD Sender: No OFD packet to send [21:11:35]OFD Sender: No OFD packet to send [21:11:40]OFD Sender: No OFD packet to send [21:11:45]OFD Sender: No OFD packet to send [21:11:50]OFD Sender: No OFD packet to send [21:11:55]OFD Sender: No OFD packet to send [21:12:00]OFD Sender: No OFD packet to send [21:12:05]OFD Sender: No OFD packet to send [21:12:10]OFD Sender: No OFD packet to send [21:12:16]OFD Sender: No OFD packet to send [21:12:21]OFD Sender: No OFD packet to send [21:12:26]OFD Sender: No OFD packet to send [21:12:31]OFD Sender: No OFD packet to send [21:12:36]OFD Sender: No OFD packet to send [21:12:41]OFD Sender: No OFD packet to send [21:12:46]OFD Sender: No OFD packet to send [21:12:51]OFD Sender: No OFD packet to send [21:12:56]OFD Sender: No OFD packet to send [21:13:01]OFD Sender: No OFD packet to send [21:13:06]OFD Sender: No OFD packet to send [21:13:11]OFD Sender: No OFD packet to send [21:13:16]OFD Sender: No OFD packet to send [21:13:21]OFD Sender: No OFD packet to send [21:13:26]OFD Sender: No OFD packet to send [21:13:31]OFD Sender: No OFD packet to send [21:13:36]OFD Sender: No OFD packet to send [21:13:41]OFD Sender: No OFD packet to send [21:13:46]OFD Sender: No OFD packet to send [21:13:51]OFD Sender: No OFD packet to send [21:13:56]OFD Sender: No OFD packet to send [21:14:01]OFD Sender: No OFD packet to send [21:14:06]OFD Sender: No OFD packet to send [21:14:11]OFD Sender: No OFD packet to send [21:14:16]OFD Sender: No OFD packet to send [21:14:21]OFD Sender: No OFD packet to send [21:14:26]OFD Sender: No OFD packet to send [21:14:31]OFD Sender: No OFD packet to send [21:14:36]OFD Sender: No OFD packet to send [21:14:41]OFD Sender: No OFD packet to send [21:14:46]OFD Sender: No OFD packet to send [21:14:51]OFD Sender: No OFD packet to send [21:14:56]OFD Sender: No OFD packet to send [21:15:01]OFD Sender: No OFD packet to send [21:15:06]OFD Sender: No OFD packet to send [21:15:11]OFD Sender: No OFD packet to send [21:15:16]OFD Sender: No OFD packet to send [21:15:21]OFD Sender: No OFD packet to send [21:15:26]OFD Sender: No OFD packet to send [21:15:31]OFD Sender: No OFD packet to send [21:15:36]OFD Sender: No OFD packet to send [21:15:41]OFD Sender: No OFD packet to send [21:15:46]OFD Sender: No OFD packet to send [21:15:51]OFD Sender: No OFD packet to send [21:15:56]OFD Sender: No OFD packet to send [21:16:01]OFD Sender: No OFD packet to send [21:16:06]OFD Sender: No OFD packet to send [21:16:11]OFD Sender: No OFD packet to send [21:16:16]OFD Sender: No OFD packet to send [21:16:21]OFD Sender: No OFD packet to send [21:16:26]OFD Sender: No OFD packet to send [21:16:31]OFD Sender: No OFD packet to send [21:16:36]OFD Sender: No OFD packet to send [21:16:41]OFD Sender: No OFD packet to send [21:16:46]OFD Sender: No OFD packet to send [21:16:51]OFD Sender: No OFD packet to send [21:16:56]OFD Sender: No OFD packet to send [21:17:01]OFD Sender: No OFD packet to send [21:17:06]OFD Sender: No OFD packet to send [21:17:11]OFD Sender: No OFD packet to send [21:17:16]OFD Sender: No OFD packet to send [21:17:21]OFD Sender: No OFD packet to send [21:17:26]OFD Sender: No OFD packet to send [21:17:31]OFD Sender: No OFD packet to send [21:17:36]OFD Sender: No OFD packet to send [21:17:41]OFD Sender: No OFD packet to send [21:17:46]OFD Sender: No OFD packet to send [21:17:51]OFD Sender: No OFD packet to send [21:17:56]OFD Sender: No OFD packet to send [21:18:01]OFD Sender: No OFD packet to send [21:18:06]OFD Sender: No OFD packet to send [21:18:11]OFD Sender: No OFD packet to send [21:18:16]OFD Sender: No OFD packet to send [21:18:21]OFD Sender: No OFD packet to send [21:18:26]OFD Sender: No OFD packet to send [21:18:31]OFD Sender: No OFD packet to send [21:18:36]OFD Sender: No OFD packet to send [21:18:41]OFD Sender: No OFD packet to send [21:18:46]OFD Sender: No OFD packet to send [21:18:51]OFD Sender: No OFD packet to send [21:18:56]OFD Sender: No OFD packet to send [21:19:01]OFD Sender: No OFD packet to send [21:19:06]OFD Sender: No OFD packet to send [21:19:11]OFD Sender: No OFD packet to send [21:19:16]OFD Sender: No OFD packet to send [21:19:21]OFD Sender: No OFD packet to send [21:19:26]OFD Sender: No OFD packet to send [21:19:31]OFD Sender: No OFD packet to send [21:19:36]OFD Sender: No OFD packet to send [21:19:41]OFD Sender: No OFD packet to send [21:19:42]accept exits with 9 [21:19:42]New connection [21:19:42]New thread 3067489636 created [21:19:42]Thread 3067346276 joined [21:19:42]Waiting for new connection... [21:19:42] Sock 9.Parse request [21:19:42]Sock 9.Check first char [21:19:42]Sock 9.First char is OK [21:19:42]request: POST /json_proto HTTP/1.0 [21:19:42]Method: POST [21:19:42]URL: /json_proto [21:19:42]Method is POST - this is cgi request [21:19:42]url: /json_proto [21:19:42]query_string will be loaded in cgi processing [21:19:42]execute_cgi json_proto POST (null) [21:19:42]execute_cgi path=json_proto method=POST [21:19:42]POST find Content-Length [21:19:42]Host: 172.17.51.3:8080 [21:19:42]Content-Length: 678 [21:19:42]Content-Type: application/json [21:19:42] [21:19:42]POST finish read [21:19:42]Found Content-Length = 678 [21:19:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342889", "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" ] } } [21:19:42]execute_script... [21:19: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)342889", "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" ] } } [21:19:42]POST & json_proto [21:19:42]process_json_proto [21:19:42]json parsed OK: [21:19:42]protocol is kg_v1.0 [21:19:42]action value=close_receipt [21:19:42]process_action close_receipt [21:19:42]cmd_close_receipt [21:19:42]MH_GetDate [21:19:42]Write to MH i2c: F0 00 00 02 18 09 [21:19:42]Write i2c OK [21:19:42]MH_I2C_Read... [21:19:42]Read from MH i2c: F0 [21:19:42]MH_I2C_Read... [21:19:42]Read from MH i2c: F0 09 00 [21:19:42]MH_I2C_Read... [21:19:42]Read from MH i2c: F0 09 00 02 18 00 EF 73 15 67 04 C1 95 66 B0 [21:19:42]GetLastDocTimeStamp 1729458273 [21:19:42]current date 1729459183 [21:19:42]FM_GetShiftState [21:19:42]SAM_PROTO_GetShiftState [21:19:42]wFMCommunicate request_size=4 [21:19:42]MH_SAM_APDU [21:19:42]CAPDU: 80 13 01 00 [21:19:42]Write to MH i2c: E2 08 00 03 18 80 13 01 00 00 00 00 00 98 [21:19:42]Write i2c OK [21:19:42]MH_I2C_Read... [21:19:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:19:42]Read from MH i2c: E2 [21:19:42]MH_I2C_Read... [21:19:42]Read from MH i2c: E2 0E 00 [21:19:42]MH_I2C_Read... [21:19:42]Read from MH i2c: E2 0E 00 03 18 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 7E [21:19:42]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [21:19:42]wFMCommunicate OK [21:19:42]SAM_PROTO_GetShiftState done [21:19:42]FM_GetShiftState done [21:19:42]opened in 1729384718 [21:19:42]opened+sec_in_day 1729471118 [21:19:42]quantity*price = 70044 [21:19:42]sum+1 = 70045 [21:19:42]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 СНО: Общий режим Чек 266 20.10.2024 21:19 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30484 ФПД: 216211572812023 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T211943&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30484&fm=216211572812023&tin=02508201610067®Number=0000000000186857&sum=70000 [21:19:43]StoreToDocumentArchive [21:19:43]shift 114 fd 30484 [21:19:43]save to /storage/0114/doc_00030484 [21:19:43]save last doc name /storage/0114/doc_00030484 to /storage/kkm_last_doc_name [21:19:43]save OK [21:19:43]Clear old archive folders... [21:19:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:19:43]tlvbuf is B6E2B310 [21:19:43]SAM_PROTO_ClearQueue [21:19:43]wFMCommunicate request_size=4 [21:19:43]MH_SAM_APDU [21:19:43]CAPDU: 80 09 00 00 [21:19:43]Write to MH i2c: E2 08 00 10 18 80 09 00 00 00 00 00 00 9A [21:19:43]Write i2c OK [21:19:43]MH_I2C_Read... [21:19:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:19:43]Read from MH i2c: E2 [21:19:43]MH_I2C_Read... [21:19:43]Read from MH i2c: E2 03 00 [21:19:43]MH_I2C_Read... [21:19:43]Read from MH i2c: E2 03 00 10 18 00 90 00 9C [21:19:43]RAPDU: 90 00 [21:19:43]wFMCommunicate OK [21:19:43]SAM_PROTO_ClearQueue done [21:19:43]KKMCreateOFDPacket [21:19:43]OFDProtocolAddRootSTLVToBuf [21:19:43]FM_MakeSignedData [21:19:43]FM_MakeSignedData [21:19:43]SAM_PROTO_SignData [21:19:43]wFMCommunicate request_size=4 [21:19:43]MH_SAM_APDU [21:19:43]CAPDU: 80 0D 01 02 [21:19:43]Write to MH i2c: E2 08 00 11 18 80 0D 01 02 00 00 00 00 A2 [21:19:43]Write i2c OK [21:19:43]MH_I2C_Read... [21:19:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:19:43]Read from MH i2c: E2 [21:19:43]MH_I2C_Read... [21:19:43]Read from MH i2c: E2 03 00 [21:19:43]MH_I2C_Read... [21:19:43]Read from MH i2c: E2 03 00 11 18 00 90 00 9D [21:19:43]RAPDU: 90 00 [21:19:43]wFMCommunicate OK [21:19:43]wFMCommunicate request_size=255 [21:19:43]MH_SAM_APDU [21:19: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 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 0A 01 00 00 F4 03 04 00 EF 73 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 77 00 00 35 04 06 00 C4 [21:19:43]Write to MH i2c: E2 02 01 12 18 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 0A 01 00 00 F4 03 04 00 EF 73 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 77 00 00 35 04 06 00 C4 00 00 ED [21:19:43]Write i2c OK [21:19:43]MH_I2C_Read... [21:19:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:19:43]Read from MH i2c: E2 [21:19:43]MH_I2C_Read... [21:19:43]Read from MH i2c: E2 03 00 [21:19:43]MH_I2C_Read... [21:19:43]Read from MH i2c: E2 03 00 12 18 00 90 00 9E [21:19:43]RAPDU: 90 00 [21:19:43]wFMCommunicate OK [21:19:43]wFMCommunicate request_size=10 [21:19:43]MH_SAM_APDU [21:19:43]CAPDU: 80 0D 02 02 05 A4 AD FE 68 F7 [21:19:43]Write to MH i2c: E2 0D 00 13 18 80 0D 02 02 05 00 A4 AD FE 68 F7 00 00 5D [21:19:43]Write i2c OK [21:19:43]MH_I2C_Read... [21:19:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:19:43]Read from MH i2c: E2 [21:19:43]MH_I2C_Read... [21:19:43]Read from MH i2c: E2 03 00 [21:19:43]MH_I2C_Read... [21:19:43]Read from MH i2c: E2 03 00 13 18 00 90 00 9F [21:19:43]RAPDU: 90 00 [21:19:43]wFMCommunicate OK [21:19:43]wFMCommunicate request_size=4 [21:19:43]MH_SAM_APDU [21:19:43]CAPDU: 80 0D 03 02 [21:19:43]Write to MH i2c: E2 08 00 14 18 80 0D 03 02 00 00 00 00 A7 [21:19:43]Write i2c OK [21:19:43]MH_I2C_Read... [21:19:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:19:43]Read from MH i2c: E2 [21:19:43]MH_I2C_Read... [21:19:43]Read from MH i2c: E2 0B 00 [21:19:43]MH_I2C_Read... [21:19:43]Read from MH i2c: E2 0B 00 14 18 00 52 EF 26 AA 33 B2 52 DE 90 00 CE [21:19:43]RAPDU: 52 EF 26 AA 33 B2 52 DE 90 00 [21:19:43]wFMCommunicate OK [21:19:43]SAM_PROTO_SignData done [21:19:43]FM_MakeSignedData done [21:19:43]CreateOFDProtocolMessage [21:19:43]wFMCommunicate request_size=4 [21:19:43]MH_SAM_APDU [21:19:43]CAPDU: 80 11 00 00 [21:19:43]Write to MH i2c: E2 08 00 15 18 80 11 00 00 00 00 00 00 A7 [21:19:43]Write i2c OK [21:19:43]MH_I2C_Read... [21:19:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:19:43]Read from MH i2c: E2 [21:19:43]MH_I2C_Read... [21:19:43]Read from MH i2c: E2 17 00 [21:19:43]MH_I2C_Read... [21:19:43]Read from MH i2c: E2 17 00 15 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 F5 [21:19:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [21:19:43]wFMCommunicate OK [21:19:43]CreateOFDProtocolMessage done [21:19:43]OFDSenderStorePacket 30484 [21:19:43]StoreOFDPacket docnum=30484 [21:19: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 03 39 07 01 54 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 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 0A 01 00 00 F4 03 04 00 EF 73 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 77 00 00 35 04 06 00 C4 A4 AD FE 68 F7 52 EF 26 AA 33 B2 52 DE [21:19:43]CheckFolder [21:19:43]dirname=/storage/ofd_packets [21:19:43]CheckFolder done [21:19:43]ProducePacketName [21:19:43]name=ofd_packets/00030484 [21:19:43]NVStorageSaveData ofd_packets/00030484 [21:19:43]File name is /storage/ofd_packets/00030484 [21:19:43]Write 301 bytes [21:19:43]NVStorageSaveData done [21:19:43]OFDSenderStorePacket done [21:19:43]KKMCreateOFDPacket done [21:19:43]NVStorageSaveData kkm_last_timestamp [21:19:43]File name is /storage/kkm_last_timestamp [21:19:43]Write 4 bytes [21:19:43]NVStorageSaveData done [21:19:43]ExternCall_PrintAddStr [21:19:43]wPrintStart [21:19:43]Write to MH i2c: 01 00 00 16 18 2E [21:19:43]Write i2c OK [21:19:43]MH_I2C_Read... [21:19:43]Read from MH i2c: 01 [21:19:43]MH_I2C_Read... [21:19:43]Read from MH i2c: 01 07 00 [21:19:43]MH_I2C_Read... [21:19:43]Read from MH i2c: 01 07 00 16 18 00 00 00 00 00 FF 0F 43 [21:19:43]RasterBufferAndPrint [21:19:43]line Счет N : (1)342889 [21:19:43]line ИНН: 02508201610067 [21:19:43]line Контрольно-Кассовый Чек [21:19:43]line ПРОДАЖА [21:19:43]line ТРК (МРК, ГНК) : 43 [21:19:43]line Товар: 2710124130 [21:19:43]line Аи-92-К-2 [21:19:43]line 10.470 * 66.90 [21:19:43]line = 700.44 [21:19:43]line НДС 12% НСП 1% [21:19:43]line > о реализуемом товаре [21:19:43]line ОКРУГЛЕНИЕ: -0.44 [21:19:43]line ИТОГО: 700.00 [21:19:43]line Внесено: 700.00 [21:19:43]line СДАЧА: 0.00 [21:19:43]line НСП 1% : 6.20 [21:19:43]line НДС 12% : 74.38 [21:19:43]line Наличными: 700.00 [21:19:43]line Безнал.: 0.00 [21:19:43]line Место: АЗС № 78 "Партнер Нефть" [21:19:43]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [21:19:43]line СНО: Общий режим [21:19:43]line Чек 266 20.10.2024 21:19 [21:19:43]line Смена: 114 ФФД: 1.0 [21:19:43]line ЗНМ: 0300000137 [21:19:43]line РНМ: 0000000000186857 [21:19:43]line Версия ККМ: v1.0 [21:19:43]line ФМ: 0000000002094219 [21:19:43]line ФД: 30484 [21:19:43]line ФПД: 216211572812023 [21:19:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T211943&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30484&fm=216211572812023&tin=02508201610067®Number=0000000000186857&sum=70000 [21:19:44]OFD Sender: Processing packet 30484 [packets to send 10, broken 9] [21:19:44]ProducePacketName [21:19:44]name=ofd_packets/00030484 [21:19:44]OFD Sender: To server: pG, [21:19:44]CommunicateWithHost lk.salyk.kg:30040 [21:19:44]ConnectInit lk.salyk.kg [21:19:44]written 0, free lines is 4095 [21:19:44]Connected sock=10 [21:19: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 03 39 07 01 54 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 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 0A 01 00 00 F4 03 04 00 EF 73 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 77 00 00 35 04 06 00 C4 A4 AD FE 68 F7 52 EF 26 AA 33 B2 52 DE [21:19: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 0F B4 47 00 E1 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 14 77 00 00 F4 03 04 00 71 1E 15 67 B6 04 01 00 00 B2 5F 0F 6D CA 1E AD 22 [21:19:44]CommunicateWithHost err = 0 [21:19:44]CheckOFDResponse [21:19:44]1017 (14) - 77093643461234 [21:19:44]1041 (16) - 0000000002094219 [21:19:44]1040 (4) - 30484 [21:19:44]1012 (4) - 20.10.2024 15:14 [21:19:44]1206 (1) - 0 [21:19:44]OFD Sender: Remove packet 30484 [21:19:44]ProducePacketName [21:19:44]name=ofd_packets/00030484 [21:19:44]NVStorageDeleteData [21:19:44]Write to MH i2c: 01 00 00 41 18 59 [21:19:44]Write i2c OK [21:19:44]MH_I2C_Read... [21:19:44]Read from MH i2c: 01 [21:19:44]MH_I2C_Read... [21:19:44]Read from MH i2c: 01 07 00 [21:19:44]MH_I2C_Read... [21:19:44]Read from MH i2c: 01 07 00 41 18 00 00 00 00 00 DD 0C 49 [21:19:44]RasterBufferAndPrint [21:19:44]line [21:19:44]line [21:19:44]line [21:19:44]line [21:19:44]line [21:19:44]written 0, free lines is 3302 [21:19:44]MH_Cut [21:19:44]Write to MH i2c: D1 01 00 48 18 01 32 [21:19:44]Write i2c OK [21:19:44]MH_I2C_Read... [21:19:44]Read from MH i2c: D1 [21:19:44]MH_I2C_Read... [21:19:44]Read from MH i2c: D1 01 00 [21:19:44]MH_I2C_Read... [21:19:44]Read from MH i2c: D1 01 00 48 18 00 31 [21:19:44]Write to MH i2c: 01 00 00 49 18 61 [21:19:44]Write i2c OK [21:19:44]MH_I2C_Read... [21:19:44]OFD Sender: No OFD packet to send [21:19:45]*** Cut start [21:19:45]*** Partial cut [21:19:45]*** CUTSNS_PIN = 1 [21:19:45]*** CUTSNS_PIN = 0 [21:19:45]*** Brake cut motor [21:19:45]Read from MH i2c: 01 [21:19:45]MH_I2C_Read... [21:19:45]*** Stop cut motor [21:19:45]*** Cut end [21:19:45]Read from MH i2c: 01 07 00 [21:19:45]MH_I2C_Read... [21:19:45]Read from MH i2c: 01 07 00 49 18 00 00 00 00 00 FF 0F 76 [21:19:45]process_action close_receipt done [21:19:45]requested_data is exist [21:19:45]produce_requested_data [21:19:45]requested_item fm.sn is exist - process it [21:19:45]wFMCommunicate request_size=4 [21:19:45]MH_SAM_APDU [21:19:45]CAPDU: 80 11 00 00 [21:19:45]Write to MH i2c: E2 08 00 4A 18 80 11 00 00 00 00 00 00 DC [21:19:45]Write i2c OK [21:19:45]MH_I2C_Read... [21:19:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:19:45]Read from MH i2c: E2 [21:19:45]MH_I2C_Read... [21:19:45]Read from MH i2c: E2 17 00 [21:19:45]MH_I2C_Read... [21:19:45]Read from MH i2c: E2 17 00 4A 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 2A [21:19:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [21:19:45]wFMCommunicate OK [21:19:45]requested_item fd.num is exist - process it [21:19:45]SAM_PROTO_GetFieldsCounters [21:19:45]wFMCommunicate request_size=4 [21:19:45]MH_SAM_APDU [21:19:45]CAPDU: 80 13 00 00 [21:19:45]Write to MH i2c: E2 08 00 4B 18 80 13 00 00 00 00 00 00 DF [21:19:45]Write i2c OK [21:19:45]MH_I2C_Read... [21:19:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:19:45]Read from MH i2c: E2 [21:19:45]MH_I2C_Read... [21:19:45]Read from MH i2c: E2 62 00 [21:19:45]MH_I2C_Read... [21:19:45]Read from MH i2c: E2 62 00 4B 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 77 00 00 0E 04 04 00 72 00 00 00 12 04 04 00 0A 01 00 00 5E 04 04 00 0A 01 00 00 57 04 04 00 0B 01 00 00 19 04 04 00 00 00 00 00 90 00 23 [21:19: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 14 77 00 00 0E 04 04 00 72 00 00 00 12 04 04 00 0A 01 00 00 5E 04 04 00 0A 01 00 00 57 04 04 00 0B 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:19:45]wFMCommunicate OK [21:19:45]SAM_PROTO_GetFieldsCounters done [21:19:45]requested_item shift.num is exist - process it [21:19:45]requested_item shift.opened is exist - process it [21:19:45]req_shift_opened [21:19:45]FM_GetShiftState [21:19:45]SAM_PROTO_GetShiftState [21:19:45]wFMCommunicate request_size=4 [21:19:45]MH_SAM_APDU [21:19:45]CAPDU: 80 13 01 00 [21:19:45]Write to MH i2c: E2 08 00 4C 18 80 13 01 00 00 00 00 00 E1 [21:19:46]Write i2c OK [21:19:46]MH_I2C_Read... [21:19:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:19:46]Read from MH i2c: E2 [21:19:46]MH_I2C_Read... [21:19:46]Read from MH i2c: E2 0E 00 [21:19:46]MH_I2C_Read... [21:19:46]Read from MH i2c: E2 0E 00 4C 18 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 C7 [21:19:46]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [21:19:46]wFMCommunicate OK [21:19:46]SAM_PROTO_GetShiftState done [21:19:46]FM_GetShiftState done [21:19:46]req_shift_opened done [21:19:46]requested_item shift.open_date is exist - process it [21:19:46]req_shift_open_date [21:19:46]req_shift_open_date done [21:19:46]produce_requested_data done [21:19:46]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30484,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [21:19:46]process_action_free close_receipt [21:19:46]json_value_free [21:19:46]json_value_free done [21:19:46]process_json_proto returns [21:19:46]Send response to host [21:19:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30484,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [21:19:46]free response buf [21:19:46]execute_script done [21:19:46]execute_script returns [21:19:46]free content buf [21:19:46]Sock 9.Close socket [21:19:46]Sock 9.Thread stoped [21:19:49]OFD Sender: No OFD packet to send [21:19:54]OFD Sender: No OFD packet to send [21:19:59]OFD Sender: No OFD packet to send [21:20:04]OFD Sender: No OFD packet to send [21:20:09]OFD Sender: No OFD packet to send [21:20:14]OFD Sender: No OFD packet to send [21:20:19]OFD Sender: No OFD packet to send [21:20:24]OFD Sender: No OFD packet to send [21:20:29]OFD Sender: No OFD packet to send [21:20:34]OFD Sender: No OFD packet to send [21:20:39]OFD Sender: No OFD packet to send [21:20:44]OFD Sender: No OFD packet to send [21:20:49]OFD Sender: No OFD packet to send [21:20:54]OFD Sender: No OFD packet to send [21:20:59]OFD Sender: No OFD packet to send [21:21:04]OFD Sender: No OFD packet to send [21:21:07]accept exits with 7 [21:21:07]New connection [21:21:07]New thread 3067346276 created [21:21:07]Thread 3067489636 joined [21:21:07]Waiting for new connection... [21:21:07] Sock 7.Parse request [21:21:07]Sock 7.Check first char [21:21:07]Sock 7.First char is OK [21:21:07]request: POST /json_proto HTTP/1.0 [21:21:07]Method: POST [21:21:07]URL: /json_proto [21:21:07]Method is POST - this is cgi request [21:21:07]url: /json_proto [21:21:07]query_string will be loaded in cgi processing [21:21:07]execute_cgi json_proto POST (null) [21:21:07]execute_cgi path=json_proto method=POST [21:21:07]POST find Content-Length [21:21:07]Host: 172.17.51.3:8080 [21:21:07]Content-Length: 688 [21:21:07]Content-Type: application/json [21:21:07] [21:21:07]POST finish read [21:21:07]Found Content-Length = 688 [21:21:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342888", "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" : 45.340, "sum" : 3500.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3500.00, "total" : 3500.00, "payments": [ { "type": 0, "sum" : 3500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:21:07]execute_script... [21:21: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)342888", "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" : 45.340, "sum" : 3500.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3500.00, "total" : 3500.00, "payments": [ { "type": 0, "sum" : 3500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:21:07]POST & json_proto [21:21:07]process_json_proto [21:21:07]json parsed OK: [21:21:07]protocol is kg_v1.0 [21:21:07]action value=close_receipt [21:21:07]process_action close_receipt [21:21:07]cmd_close_receipt [21:21:07]MH_GetDate [21:21:07]Write to MH i2c: F0 00 00 4D 18 54 [21:21:07]Write i2c OK [21:21:07]MH_I2C_Read... [21:21:07]Read from MH i2c: F0 [21:21:07]MH_I2C_Read... [21:21:07]Read from MH i2c: F0 09 00 [21:21:07]MH_I2C_Read... [21:21:07]Read from MH i2c: F0 09 00 4D 18 00 44 74 15 67 04 C1 95 66 51 [21:21:07]GetLastDocTimeStamp 1729459183 [21:21:07]current date 1729459268 [21:21:07]FM_GetShiftState [21:21:07]SAM_PROTO_GetShiftState [21:21:07]wFMCommunicate request_size=4 [21:21:07]MH_SAM_APDU [21:21:07]CAPDU: 80 13 01 00 [21:21:07]Write to MH i2c: E2 08 00 4E 18 80 13 01 00 00 00 00 00 E3 [21:21:07]Write i2c OK [21:21:07]MH_I2C_Read... [21:21:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:21:07]Read from MH i2c: E2 [21:21:07]MH_I2C_Read... [21:21:07]Read from MH i2c: E2 0E 00 [21:21:07]MH_I2C_Read... [21:21:07]Read from MH i2c: E2 0E 00 4E 18 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 C9 [21:21:07]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [21:21:07]wFMCommunicate OK [21:21:07]SAM_PROTO_GetShiftState done [21:21:07]FM_GetShiftState done [21:21:07]opened in 1729384718 [21:21:07]opened+sec_in_day 1729471118 [21:21:07]quantity*price = 350024 [21:21:07]sum+1 = 350026 [21:21:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 3500.00 Внесено: 3500.00 СДАЧА: 0.00 НСП 1% : 30.98 НДС 12% : 371.71 Наличными: 3500.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 267 20.10.2024 21:21 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30485 ФПД: 229128234151251 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T212108&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30485&fm=229128234151251&tin=02508201610067®Number=0000000000186857&sum=350000 [21:21:08]StoreToDocumentArchive [21:21:08]shift 114 fd 30485 [21:21:08]save to /storage/0114/doc_00030485 [21:21:08]save last doc name /storage/0114/doc_00030485 to /storage/kkm_last_doc_name [21:21:08]save OK [21:21:08]Clear old archive folders... [21:21:08]ProcessDocumentItem done err = 0, tmpTLVsize=257 [21:21:08]tlvbuf is B6FD8010 [21:21:08]SAM_PROTO_ClearQueue [21:21:08]wFMCommunicate request_size=4 [21:21:08]MH_SAM_APDU [21:21:08]CAPDU: 80 09 00 00 [21:21:08]Write to MH i2c: E2 08 00 5B 18 80 09 00 00 00 00 00 00 E5 [21:21:08]Write i2c OK [21:21:08]MH_I2C_Read... [21:21:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:21:08]Read from MH i2c: E2 [21:21:08]MH_I2C_Read... [21:21:08]Read from MH i2c: E2 03 00 [21:21:08]MH_I2C_Read... [21:21:08]Read from MH i2c: E2 03 00 5B 18 00 90 00 E7 [21:21:08]RAPDU: 90 00 [21:21:08]wFMCommunicate OK [21:21:08]SAM_PROTO_ClearQueue done [21:21:08]KKMCreateOFDPacket [21:21:08]OFDProtocolAddRootSTLVToBuf [21:21:08]FM_MakeSignedData [21:21:08]FM_MakeSignedData [21:21:08]SAM_PROTO_SignData [21:21:08]wFMCommunicate request_size=4 [21:21:08]MH_SAM_APDU [21:21:08]CAPDU: 80 0D 01 02 [21:21:08]Write to MH i2c: E2 08 00 5C 18 80 0D 01 02 00 00 00 00 ED [21:21:08]Write i2c OK [21:21:08]MH_I2C_Read... [21:21:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:21:08]Read from MH i2c: E2 [21:21:08]MH_I2C_Read... [21:21:08]Read from MH i2c: E2 03 00 [21:21:08]MH_I2C_Read... [21:21:08]Read from MH i2c: E2 03 00 5C 18 00 90 00 E8 [21:21:08]RAPDU: 90 00 [21:21:08]wFMCommunicate OK [21:21:08]wFMCommunicate request_size=255 [21:21:08]MH_SAM_APDU [21:21: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 1C B1 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 49 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 91 00 00 00 00 07 04 06 00 30 57 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 01 00 00 F4 03 04 00 44 74 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 77 00 [21:21:08]Write to MH i2c: E2 02 01 5D 18 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 1C B1 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 49 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 91 00 00 00 00 07 04 06 00 30 57 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 01 00 00 F4 03 04 00 44 74 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 77 00 00 00 5D [21:21:08]Write i2c OK [21:21:08]MH_I2C_Read... [21:21:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:21:09]Read from MH i2c: E2 [21:21:09]MH_I2C_Read... [21:21:09]Read from MH i2c: E2 03 00 [21:21:09]MH_I2C_Read... [21:21:09]Read from MH i2c: E2 03 00 5D 18 00 90 00 E9 [21:21:09]RAPDU: 90 00 [21:21:09]wFMCommunicate OK [21:21:09]wFMCommunicate request_size=16 [21:21:09]MH_SAM_APDU [21:21:09]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 D0 64 13 01 2D 53 [21:21:09]Write to MH i2c: E2 13 00 5E 18 80 0D 02 02 0B 00 00 35 04 06 00 D0 64 13 01 2D 53 00 00 0D [21:21:09]Write i2c OK [21:21:09]MH_I2C_Read... [21:21:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:21:09]Read from MH i2c: E2 [21:21:09]MH_I2C_Read... [21:21:09]Read from MH i2c: E2 03 00 [21:21:09]MH_I2C_Read... [21:21:09]Read from MH i2c: E2 03 00 5E 18 00 90 00 EA [21:21:09]RAPDU: 90 00 [21:21:09]wFMCommunicate OK [21:21:09]wFMCommunicate request_size=4 [21:21:09]MH_SAM_APDU [21:21:09]CAPDU: 80 0D 03 02 [21:21:09]Write to MH i2c: E2 08 00 5F 18 80 0D 03 02 00 00 00 00 F2 [21:21:09]Write i2c OK [21:21:09]MH_I2C_Read... [21:21:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:21:09]Read from MH i2c: E2 [21:21:09]MH_I2C_Read... [21:21:09]Read from MH i2c: E2 0B 00 [21:21:09]MH_I2C_Read... [21:21:09]Read from MH i2c: E2 0B 00 5F 18 00 38 31 D0 50 AE 8A 8A 20 90 00 5E [21:21:09]RAPDU: 38 31 D0 50 AE 8A 8A 20 90 00 [21:21:09]wFMCommunicate OK [21:21:09]SAM_PROTO_SignData done [21:21:09]FM_MakeSignedData done [21:21:09]CreateOFDProtocolMessage [21:21:09]wFMCommunicate request_size=4 [21:21:09]MH_SAM_APDU [21:21:09]CAPDU: 80 11 00 00 [21:21:09]Write to MH i2c: E2 08 00 60 18 80 11 00 00 00 00 00 00 F2 [21:21:09]Write i2c OK [21:21:09]MH_I2C_Read... [21:21:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:21:09]Read from MH i2c: E2 [21:21:09]MH_I2C_Read... [21:21:09]Read from MH i2c: E2 17 00 [21:21:09]MH_I2C_Read... [21:21:09]Read from MH i2c: E2 17 00 60 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 40 [21:21:09]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:09]wFMCommunicate OK [21:21:09]CreateOFDProtocolMessage done [21:21:09]OFDSenderStorePacket 30485 [21:21:09]StoreOFDPacket docnum=30485 [21:21: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 17 C8 0D 01 A1 9E 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 1C B1 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 49 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 91 00 00 00 00 07 04 06 00 30 57 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 01 00 00 F4 03 04 00 44 74 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 77 00 00 35 04 06 00 D0 64 13 01 2D 53 38 31 D0 50 AE 8A 8A 20 [21:21:09]CheckFolder [21:21:09]dirname=/storage/ofd_packets [21:21:09]CheckFolder done [21:21:09]ProducePacketName [21:21:09]name=ofd_packets/00030485 [21:21:09]NVStorageSaveData ofd_packets/00030485 [21:21:09]File name is /storage/ofd_packets/00030485 [21:21:09]Write 307 bytes [21:21:09]NVStorageSaveData done [21:21:09]OFDSenderStorePacket done [21:21:09]KKMCreateOFDPacket done [21:21:09]NVStorageSaveData kkm_last_timestamp [21:21:09]File name is /storage/kkm_last_timestamp [21:21:09]Write 4 bytes [21:21:09]NVStorageSaveData done [21:21:09]ExternCall_PrintAddStr [21:21:09]wPrintStart [21:21:09]Write to MH i2c: 01 00 00 61 18 79 [21:21:09]Write i2c OK [21:21:09]MH_I2C_Read... [21:21:09]Read from MH i2c: 01 [21:21:09]MH_I2C_Read... [21:21:09]Read from MH i2c: 01 07 00 [21:21:09]MH_I2C_Read... [21:21:09]Read from MH i2c: 01 07 00 61 18 00 00 00 00 00 FF 0F 8E [21:21:09]RasterBufferAndPrint [21:21:09]line Счет N : (1)342888 [21:21:09]line ИНН: 02508201610067 [21:21:09]line Контрольно-Кассовый Чек [21:21:09]line ПРОДАЖА [21:21:09]line ТРК (МРК, ГНК) : 51 [21:21:09]line Товар: 2710194210 [21:21:09]line D-ENERGY Дт-К-2 [21:21:09]line 45.340 * 77.20 [21:21:09]line = 3500.25 [21:21:09]line НДС 12% НСП 1% [21:21:09]line > о реализуемом товаре [21:21:09]line ОКРУГЛЕНИЕ: -0.25 [21:21:09]line ИТОГО: 3500.00 [21:21:09]line Внесено: 3500.00 [21:21:09]line СДАЧА: 0.00 [21:21:09]line НСП 1% : 30.98 [21:21:09]line НДС 12% : 371.71 [21:21:09]line Наличными: 3500.00 [21:21:09]line Безнал.: 0.00 [21:21:09]line Место: АЗС № 78 "Партнер Нефть" [21:21:09]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [21:21:09]line СНО: Общий режим [21:21:09]line Чек 267 20.10.2024 21:21 [21:21:09]line Смена: 114 ФФД: 1.0 [21:21:09]line ЗНМ: 0300000137 [21:21:09]line РНМ: 0000000000186857 [21:21:09]line Версия ККМ: v1.0 [21:21:09]line ФМ: 0000000002094219 [21:21:09]line ФД: 30485 [21:21:09]line ФПД: 229128234151251 [21:21:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T212108&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30485&fm=229128234151251&tin=02508201610067®Number=0000000000186857&sum=350000 [21:21:09]OFD Sender: Processing packet 30485 [packets to send 10, broken 9] [21:21:09]ProducePacketName [21:21:09]name=ofd_packets/00030485 [21:21:09]OFD Sender: To server: pG, [21:21:09]CommunicateWithHost lk.salyk.kg:30040 [21:21:09]ConnectInit lk.salyk.kg [21:21:09]written 0, free lines is 4095 [21:21:09]Connected sock=10 [21:21: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 17 C8 0D 01 A1 9E 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 1C B1 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 49 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 91 00 00 00 00 07 04 06 00 30 57 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 01 00 00 F4 03 04 00 44 74 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 77 00 00 35 04 06 00 D0 64 13 01 2D 53 38 31 D0 50 AE 8A 8A 20 [21:21: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 55 69 47 00 07 E7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 15 77 00 00 F4 03 04 00 C7 1E 15 67 B6 04 01 00 00 69 A2 37 29 9D F3 DD 20 [21:21:10]CommunicateWithHost err = 0 [21:21:10]CheckOFDResponse [21:21:10]1017 (14) - 77093643461234 [21:21:10]1041 (16) - 0000000002094219 [21:21:10]1040 (4) - 30485 [21:21:10]1012 (4) - 20.10.2024 15:16 [21:21:10]1206 (1) - 0 [21:21:10]OFD Sender: Remove packet 30485 [21:21:10]ProducePacketName [21:21:10]name=ofd_packets/00030485 [21:21:10]NVStorageDeleteData [21:21:10]Write to MH i2c: 01 00 00 8C 18 A4 [21:21:10]Write i2c OK [21:21:10]MH_I2C_Read... [21:21:10]Read from MH i2c: 01 [21:21:10]MH_I2C_Read... [21:21:10]Read from MH i2c: 01 07 00 [21:21:10]MH_I2C_Read... [21:21:10]Read from MH i2c: 01 07 00 8C 18 00 00 00 00 00 EB 0C A2 [21:21:10]RasterBufferAndPrint [21:21:10]line [21:21:10]line [21:21:10]line [21:21:10]line [21:21:10]line [21:21:10]written 0, free lines is 3316 [21:21:10]MH_Cut [21:21:10]Write to MH i2c: D1 01 00 93 18 01 7D [21:21:10]Write i2c OK [21:21:10]MH_I2C_Read... [21:21:10]Read from MH i2c: D1 [21:21:10]MH_I2C_Read... [21:21:10]Read from MH i2c: D1 01 00 [21:21:10]MH_I2C_Read... [21:21:10]Read from MH i2c: D1 01 00 93 18 00 7C [21:21:10]Write to MH i2c: 01 00 00 94 18 AC [21:21:10]Write i2c OK [21:21:10]MH_I2C_Read... [21:21:10]OFD Sender: No OFD packet to send [21:21:10]*** Cut start [21:21:10]*** Partial cut [21:21:10]*** CUTSNS_PIN = 1 [21:21:10]*** CUTSNS_PIN = 0 [21:21:11]*** Brake cut motor [21:21:11]Read from MH i2c: 01 [21:21:11]MH_I2C_Read... [21:21:11]*** Stop cut motor [21:21:11]*** Cut end [21:21:11]Read from MH i2c: 01 07 00 [21:21:11]MH_I2C_Read... [21:21:11]Read from MH i2c: 01 07 00 94 18 00 00 00 00 00 FF 0F C1 [21:21:11]process_action close_receipt done [21:21:11]requested_data is exist [21:21:11]produce_requested_data [21:21:11]requested_item fm.sn is exist - process it [21:21:11]wFMCommunicate request_size=4 [21:21:11]MH_SAM_APDU [21:21:11]CAPDU: 80 11 00 00 [21:21:11]Write to MH i2c: E2 08 00 95 18 80 11 00 00 00 00 00 00 27 [21:21:11]Write i2c OK [21:21:11]MH_I2C_Read... [21:21:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:21:11]Read from MH i2c: E2 [21:21:11]MH_I2C_Read... [21:21:11]Read from MH i2c: E2 17 00 [21:21:11]MH_I2C_Read... [21:21:11]Read from MH i2c: E2 17 00 95 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 75 [21:21:11]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:11]wFMCommunicate OK [21:21:11]requested_item fd.num is exist - process it [21:21:11]SAM_PROTO_GetFieldsCounters [21:21:11]wFMCommunicate request_size=4 [21:21:11]MH_SAM_APDU [21:21:11]CAPDU: 80 13 00 00 [21:21:11]Write to MH i2c: E2 08 00 96 18 80 13 00 00 00 00 00 00 2A [21:21:11]Write i2c OK [21:21:11]MH_I2C_Read... [21:21:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:21:11]Read from MH i2c: E2 [21:21:11]MH_I2C_Read... [21:21:11]Read from MH i2c: E2 62 00 [21:21:11]MH_I2C_Read... [21:21:11]Read from MH i2c: E2 62 00 96 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 77 00 00 0E 04 04 00 72 00 00 00 12 04 04 00 0B 01 00 00 5E 04 04 00 0B 01 00 00 57 04 04 00 0C 01 00 00 19 04 04 00 00 00 00 00 90 00 72 [21:21: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 15 77 00 00 0E 04 04 00 72 00 00 00 12 04 04 00 0B 01 00 00 5E 04 04 00 0B 01 00 00 57 04 04 00 0C 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:21:11]wFMCommunicate OK [21:21:11]SAM_PROTO_GetFieldsCounters done [21:21:11]requested_item shift.num is exist - process it [21:21:11]requested_item shift.opened is exist - process it [21:21:11]req_shift_opened [21:21:11]FM_GetShiftState [21:21:11]SAM_PROTO_GetShiftState [21:21:11]wFMCommunicate request_size=4 [21:21:11]MH_SAM_APDU [21:21:11]CAPDU: 80 13 01 00 [21:21:11]Write to MH i2c: E2 08 00 97 18 80 13 01 00 00 00 00 00 2C [21:21:11]Write i2c OK [21:21:11]MH_I2C_Read... [21:21:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:21:11]Read from MH i2c: E2 [21:21:11]MH_I2C_Read... [21:21:11]Read from MH i2c: E2 0E 00 [21:21:11]MH_I2C_Read... [21:21:11]Read from MH i2c: E2 0E 00 97 18 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 12 [21:21:11]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [21:21:11]wFMCommunicate OK [21:21:11]SAM_PROTO_GetShiftState done [21:21:11]FM_GetShiftState done [21:21:11]req_shift_opened done [21:21:11]requested_item shift.open_date is exist - process it [21:21:11]req_shift_open_date [21:21:11]req_shift_open_date done [21:21:11]produce_requested_data done [21:21:11]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30485,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [21:21:11]process_action_free close_receipt [21:21:11]json_value_free [21:21:11]json_value_free done [21:21:11]process_json_proto returns [21:21:11]Send response to host [21:21:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30485,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [21:21:11]free response buf [21:21:11]execute_script done [21:21:11]execute_script returns [21:21:11]free content buf [21:21:11]Sock 7.Close socket [21:21:11]Sock 7.Thread stoped [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:25]OFD Sender: No OFD packet to send [21:26:30]OFD Sender: No OFD packet to send [21:26:35]OFD Sender: No OFD packet to send [21:26:40]OFD Sender: No OFD packet to send [21:26:45]OFD Sender: No OFD packet to send [21:26:50]OFD Sender: No OFD packet to send [21:26:55]OFD Sender: No OFD packet to send [21:27:00]OFD Sender: No OFD packet to send [21:27:05]OFD Sender: No OFD packet to send [21:27:10]OFD Sender: No OFD packet to send [21:27:15]OFD Sender: No OFD packet to send [21:27:20]OFD Sender: No OFD packet to send [21:27:25]OFD Sender: No OFD packet to send [21:27:30]OFD Sender: No OFD packet to send [21:27:35]OFD Sender: No OFD packet to send [21:27:40]OFD Sender: No OFD packet to send [21:27:45]OFD Sender: No OFD packet to send [21:27:50]OFD Sender: No OFD packet to send [21:27:55]OFD Sender: No OFD packet to send [21:28:00]OFD Sender: No OFD packet to send [21:28:05]OFD Sender: No OFD packet to send [21:28:10]OFD Sender: No OFD packet to send [21:28:15]OFD Sender: No OFD packet to send [21:28:20]OFD Sender: No OFD packet to send [21:28:25]OFD Sender: No OFD packet to send [21:28:30]OFD Sender: No OFD packet to send [21:28:35]OFD Sender: No OFD packet to send [21:28:40]OFD Sender: No OFD packet to send [21:28:45]OFD Sender: No OFD packet to send [21:28:50]OFD Sender: No OFD packet to send [21:28:55]OFD Sender: No OFD packet to send [21:29:00]OFD Sender: No OFD packet to send [21:29:05]OFD Sender: No OFD packet to send [21:29:10]OFD Sender: No OFD packet to send [21:29:15]OFD Sender: No OFD packet to send [21:29:20]OFD Sender: No OFD packet to send [21:29:25]OFD Sender: No OFD packet to send [21:29:30]OFD Sender: No OFD packet to send [21:29:35]OFD Sender: No OFD packet to send [21:29:38]accept exits with 9 [21:29:38]New connection [21:29:38]New thread 3067489636 created [21:29:38]Thread 3067346276 joined [21:29:38]Waiting for new connection... [21:29:38] Sock 9.Parse request [21:29:38]Sock 9.Check first char [21:29:38]Sock 9.First char is OK [21:29:38]request: POST /json_proto HTTP/1.0 [21:29:38]Method: POST [21:29:38]URL: /json_proto [21:29:38]Method is POST - this is cgi request [21:29:38]url: /json_proto [21:29:38]query_string will be loaded in cgi processing [21:29:38]execute_cgi json_proto POST (null) [21:29:38]execute_cgi path=json_proto method=POST [21:29:38]POST find Content-Length [21:29:38]Host: 172.17.51.3:8080 [21:29:38]Content-Length: 674 [21:29:38]Content-Type: application/json [21:29:38] [21:29:38]POST finish read [21:29:38]Found Content-Length = 674 [21:29:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342890", "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" ] } } [21:29:38]execute_script... [21:29: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)342890", "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" ] } } [21:29:38]POST & json_proto [21:29:38]process_json_proto [21:29:38]json parsed OK: [21:29:38]protocol is kg_v1.0 [21:29:38]action value=close_receipt [21:29:38]process_action close_receipt [21:29:38]cmd_close_receipt [21:29:38]MH_GetDate [21:29:38]Write to MH i2c: F0 00 00 98 18 9F [21:29:38]Write i2c OK [21:29:38]MH_I2C_Read... [21:29:38]Read from MH i2c: F0 [21:29:38]MH_I2C_Read... [21:29:38]Read from MH i2c: F0 09 00 [21:29:38]MH_I2C_Read... [21:29:38]Read from MH i2c: F0 09 00 98 18 00 43 76 15 67 04 C1 95 66 9D [21:29:38]GetLastDocTimeStamp 1729459268 [21:29:38]current date 1729459779 [21:29:38]FM_GetShiftState [21:29:38]SAM_PROTO_GetShiftState [21:29:38]wFMCommunicate request_size=4 [21:29:38]MH_SAM_APDU [21:29:38]CAPDU: 80 13 01 00 [21:29:38]Write to MH i2c: E2 08 00 99 18 80 13 01 00 00 00 00 00 2E [21:29:38]Write i2c OK [21:29:38]MH_I2C_Read... [21:29:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:29:38]Read from MH i2c: E2 [21:29:38]MH_I2C_Read... [21:29:38]Read from MH i2c: E2 0E 00 [21:29:38]MH_I2C_Read... [21:29:38]Read from MH i2c: E2 0E 00 99 18 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 14 [21:29:38]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [21:29:38]wFMCommunicate OK [21:29:38]SAM_PROTO_GetShiftState done [21:29:38]FM_GetShiftState done [21:29:38]opened in 1729384718 [21:29:38]opened+sec_in_day 1729471118 [21:29:38]quantity*price = 50063 [21:29:38]sum+1 = 50064 [21:29: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 СНО: Общий режим Чек 268 20.10.2024 21:29 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30486 ФПД: 273750718221991 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T212939&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30486&fm=273750718221991&tin=02508201610067®Number=0000000000186857&sum=50000 [21:29:39]StoreToDocumentArchive [21:29:39]shift 114 fd 30486 [21:29:39]save to /storage/0114/doc_00030486 [21:29:39]save last doc name /storage/0114/doc_00030486 to /storage/kkm_last_doc_name [21:29:39]save OK [21:29:39]Clear old archive folders... [21:29:39]ProcessDocumentItem done err = 0, tmpTLVsize=248 [21:29:39]tlvbuf is B6FD8010 [21:29:39]SAM_PROTO_ClearQueue [21:29:39]wFMCommunicate request_size=4 [21:29:39]MH_SAM_APDU [21:29:39]CAPDU: 80 09 00 00 [21:29:39]Write to MH i2c: E2 08 00 A6 18 80 09 00 00 00 00 00 00 30 [21:29:39]Write i2c OK [21:29:39]MH_I2C_Read... [21:29:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:29:39]Read from MH i2c: E2 [21:29:39]MH_I2C_Read... [21:29:39]Read from MH i2c: E2 03 00 [21:29:39]MH_I2C_Read... [21:29:39]Read from MH i2c: E2 03 00 A6 18 00 90 00 32 [21:29:39]RAPDU: 90 00 [21:29:39]wFMCommunicate OK [21:29:39]SAM_PROTO_ClearQueue done [21:29:39]KKMCreateOFDPacket [21:29:39]OFDProtocolAddRootSTLVToBuf [21:29:39]FM_MakeSignedData [21:29:39]FM_MakeSignedData [21:29:39]SAM_PROTO_SignData [21:29:39]wFMCommunicate request_size=4 [21:29:39]MH_SAM_APDU [21:29:39]CAPDU: 80 0D 01 02 [21:29:39]Write to MH i2c: E2 08 00 A7 18 80 0D 01 02 00 00 00 00 38 [21:29:39]Write i2c OK [21:29:39]MH_I2C_Read... [21:29:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:29:39]Read from MH i2c: E2 [21:29:39]MH_I2C_Read... [21:29:39]Read from MH i2c: E2 03 00 [21:29:39]MH_I2C_Read... [21:29:39]Read from MH i2c: E2 03 00 A7 18 00 90 00 33 [21:29:39]RAPDU: 90 00 [21:29:39]wFMCommunicate OK [21:29:39]wFMCommunicate request_size=255 [21:29:39]MH_SAM_APDU [21:29: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 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 0C 01 00 00 F4 03 04 00 43 76 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 77 00 00 35 04 06 00 F8 F9 8E 51 [21:29:39]Write to MH i2c: E2 02 01 A8 18 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 0C 01 00 00 F4 03 04 00 43 76 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 77 00 00 35 04 06 00 F8 F9 8E 51 00 00 58 [21:29:39]Write i2c OK [21:29:39]MH_I2C_Read... [21:29:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:29:39]Read from MH i2c: E2 [21:29:39]MH_I2C_Read... [21:29:39]Read from MH i2c: E2 03 00 [21:29:39]MH_I2C_Read... [21:29:39]Read from MH i2c: E2 03 00 A8 18 00 90 00 34 [21:29:39]RAPDU: 90 00 [21:29:39]wFMCommunicate OK [21:29:39]wFMCommunicate request_size=7 [21:29:39]MH_SAM_APDU [21:29:39]CAPDU: 80 0D 02 02 02 0E A7 [21:29:39]Write to MH i2c: E2 0A 00 A9 18 80 0D 02 02 02 00 0E A7 00 00 F4 [21:29:39]Write i2c OK [21:29:39]MH_I2C_Read... [21:29:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:29:39]Read from MH i2c: E2 [21:29:39]MH_I2C_Read... [21:29:39]Read from MH i2c: E2 03 00 [21:29:39]MH_I2C_Read... [21:29:39]Read from MH i2c: E2 03 00 A9 18 00 90 00 35 [21:29:39]RAPDU: 90 00 [21:29:39]wFMCommunicate OK [21:29:39]wFMCommunicate request_size=4 [21:29:39]MH_SAM_APDU [21:29:39]CAPDU: 80 0D 03 02 [21:29:39]Write to MH i2c: E2 08 00 AA 18 80 0D 03 02 00 00 00 00 3D [21:29:39]Write i2c OK [21:29:39]MH_I2C_Read... [21:29:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:29:40]Read from MH i2c: E2 [21:29:40]MH_I2C_Read... [21:29:40]Read from MH i2c: E2 0B 00 [21:29:40]MH_I2C_Read... [21:29:40]Read from MH i2c: E2 0B 00 AA 18 00 35 CF F0 2D 2E 86 00 8A 90 00 9D [21:29:40]RAPDU: 35 CF F0 2D 2E 86 00 8A 90 00 [21:29:40]wFMCommunicate OK [21:29:40]SAM_PROTO_SignData done [21:29:40]FM_MakeSignedData done [21:29:40]CreateOFDProtocolMessage [21:29:40]wFMCommunicate request_size=4 [21:29:40]MH_SAM_APDU [21:29:40]CAPDU: 80 11 00 00 [21:29:40]Write to MH i2c: E2 08 00 AB 18 80 11 00 00 00 00 00 00 3D [21:29:40]Write i2c OK [21:29:40]MH_I2C_Read... [21:29:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:29:40]Read from MH i2c: E2 [21:29:40]MH_I2C_Read... [21:29:40]Read from MH i2c: E2 17 00 [21:29:40]MH_I2C_Read... [21:29:40]Read from MH i2c: E2 17 00 AB 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 8B [21:29: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:29:40]wFMCommunicate OK [21:29:40]CreateOFDProtocolMessage done [21:29:40]OFDSenderStorePacket 30486 [21:29:40]StoreOFDPacket docnum=30486 [21:29: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 7D 03 04 01 25 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 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 0C 01 00 00 F4 03 04 00 43 76 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 77 00 00 35 04 06 00 F8 F9 8E 51 0E A7 35 CF F0 2D 2E 86 00 8A [21:29:40]CheckFolder [21:29:40]dirname=/storage/ofd_packets [21:29:40]CheckFolder done [21:29:40]ProducePacketName [21:29:40]name=ofd_packets/00030486 [21:29:40]NVStorageSaveData ofd_packets/00030486 [21:29:40]File name is /storage/ofd_packets/00030486 [21:29:40]Write 298 bytes [21:29:40]NVStorageSaveData done [21:29:40]OFDSenderStorePacket done [21:29:40]KKMCreateOFDPacket done [21:29:40]NVStorageSaveData kkm_last_timestamp [21:29:40]File name is /storage/kkm_last_timestamp [21:29:40]Write 4 bytes [21:29:40]NVStorageSaveData done [21:29:40]ExternCall_PrintAddStr [21:29:40]wPrintStart [21:29:40]Write to MH i2c: 01 00 00 AC 18 C4 [21:29:40]Write i2c OK [21:29:40]MH_I2C_Read... [21:29:40]Read from MH i2c: 01 [21:29:40]MH_I2C_Read... [21:29:40]Read from MH i2c: 01 07 00 [21:29:40]MH_I2C_Read... [21:29:40]Read from MH i2c: 01 07 00 AC 18 00 00 00 00 00 FF 0F D9 [21:29:40]RasterBufferAndPrint [21:29:40]line Счет N : (1)342890 [21:29:40]line ИНН: 02508201610067 [21:29:40]line Контрольно-Кассовый Чек [21:29:40]line ПРОДАЖА [21:29:40]line ТРК (МРК, ГНК) : 54 [21:29:40]line Товар: 2710194210 [21:29:40]line ДТ-К-2 [21:29:40]line 6.570 * 76.20 [21:29:40]line = 500.63 [21:29:40]line НДС 12% НСП 1% [21:29:40]line > о реализуемом товаре [21:29:40]line ОКРУГЛЕНИЕ: -0.63 [21:29:40]line ИТОГО: 500.00 [21:29:40]line Внесено: 500.00 [21:29:40]line СДАЧА: 0.00 [21:29:40]line НСП 1% : 4.43 [21:29:40]line НДС 12% : 53.16 [21:29:40]line Наличными: 500.00 [21:29:40]line Безнал.: 0.00 [21:29:40]line Место: АЗС № 78 "Партнер Нефть" [21:29:40]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [21:29:40]line СНО: Общий режим [21:29:40]line Чек 268 20.10.2024 21:29 [21:29:40]line Смена: 114 ФФД: 1.0 [21:29:40]line ЗНМ: 0300000137 [21:29:40]line РНМ: 0000000000186857 [21:29:40]line Версия ККМ: v1.0 [21:29:40]line ФМ: 0000000002094219 [21:29:40]line ФД: 30486 [21:29:40]line ФПД: 273750718221991 [21:29:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T212939&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30486&fm=273750718221991&tin=02508201610067®Number=0000000000186857&sum=50000 [21:29:40]OFD Sender: Processing packet 30486 [packets to send 10, broken 9] [21:29:40]ProducePacketName [21:29:40]name=ofd_packets/00030486 [21:29:40]OFD Sender: To server: pG, [21:29:40]CommunicateWithHost lk.salyk.kg:30040 [21:29:40]ConnectInit lk.salyk.kg [21:29:40]written 0, free lines is 4095 [21:29:40]Connected sock=7 [21:29: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 7D 03 04 01 25 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 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 0C 01 00 00 F4 03 04 00 43 76 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 77 00 00 35 04 06 00 F8 F9 8E 51 0E A7 35 CF F0 2D 2E 86 00 8A [21:29: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 F2 4F 47 00 0C 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 16 77 00 00 F4 03 04 00 C6 20 15 67 B6 04 01 00 00 4A B5 29 0E E6 73 AC 0A [21:29:40]CommunicateWithHost err = 0 [21:29:40]CheckOFDResponse [21:29:40]1017 (14) - 77093643461234 [21:29:40]1041 (16) - 0000000002094219 [21:29:40]1040 (4) - 30486 [21:29:40]1012 (4) - 20.10.2024 15:24 [21:29:40]1206 (1) - 0 [21:29:40]OFD Sender: Remove packet 30486 [21:29:40]ProducePacketName [21:29:40]name=ofd_packets/00030486 [21:29:40]NVStorageDeleteData [21:29:40]Write to MH i2c: 01 00 00 D7 18 EF [21:29:40]Write i2c OK [21:29:40]MH_I2C_Read... [21:29:40]Read from MH i2c: 01 [21:29:40]MH_I2C_Read... [21:29:40]Read from MH i2c: 01 07 00 [21:29:40]MH_I2C_Read... [21:29:40]Read from MH i2c: 01 07 00 D7 18 00 00 00 00 00 E1 0C E3 [21:29:40]RasterBufferAndPrint [21:29:40]line [21:29:40]line [21:29:40]line [21:29:40]line [21:29:40]line [21:29:40]written 0, free lines is 3303 [21:29:40]MH_Cut [21:29:40]Write to MH i2c: D1 01 00 DE 18 01 C8 [21:29:40]Write i2c OK [21:29:40]MH_I2C_Read... [21:29:40]Read from MH i2c: D1 [21:29:40]MH_I2C_Read... [21:29:40]Read from MH i2c: D1 01 00 [21:29:40]MH_I2C_Read... [21:29:40]Read from MH i2c: D1 01 00 DE 18 00 C7 [21:29:40]Write to MH i2c: 01 00 00 DF 18 F7 [21:29:40]Write i2c OK [21:29:40]MH_I2C_Read... [21:29:41]OFD Sender: No OFD packet to send [21:29:41]*** Cut start [21:29:41]*** Partial cut [21:29:41]*** CUTSNS_PIN = 1 [21:29:41]*** CUTSNS_PIN = 0 [21:29:41]*** Brake cut motor [21:29:42]Read from MH i2c: 01 [21:29:42]MH_I2C_Read... [21:29:42]*** Stop cut motor [21:29:42]*** Cut end [21:29:42]Read from MH i2c: 01 07 00 [21:29:42]MH_I2C_Read... [21:29:42]Read from MH i2c: 01 07 00 DF 18 00 00 00 00 00 FF 0F 0C [21:29:42]process_action close_receipt done [21:29:42]requested_data is exist [21:29:42]produce_requested_data [21:29:42]requested_item fm.sn is exist - process it [21:29:42]wFMCommunicate request_size=4 [21:29:42]MH_SAM_APDU [21:29:42]CAPDU: 80 11 00 00 [21:29:42]Write to MH i2c: E2 08 00 E0 18 80 11 00 00 00 00 00 00 72 [21:29:42]Write i2c OK [21:29:42]MH_I2C_Read... [21:29:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:29:42]Read from MH i2c: E2 [21:29:42]MH_I2C_Read... [21:29:42]Read from MH i2c: E2 17 00 [21:29:42]MH_I2C_Read... [21:29:42]Read from MH i2c: E2 17 00 E0 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 C0 [21:29:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [21:29:42]wFMCommunicate OK [21:29:42]requested_item fd.num is exist - process it [21:29:42]SAM_PROTO_GetFieldsCounters [21:29:42]wFMCommunicate request_size=4 [21:29:42]MH_SAM_APDU [21:29:42]CAPDU: 80 13 00 00 [21:29:42]Write to MH i2c: E2 08 00 E1 18 80 13 00 00 00 00 00 00 75 [21:29:42]Write i2c OK [21:29:42]MH_I2C_Read... [21:29:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:29:42]Read from MH i2c: E2 [21:29:42]MH_I2C_Read... [21:29:42]Read from MH i2c: E2 62 00 [21:29:42]MH_I2C_Read... [21:29:42]Read from MH i2c: E2 62 00 E1 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 77 00 00 0E 04 04 00 72 00 00 00 12 04 04 00 0C 01 00 00 5E 04 04 00 0C 01 00 00 57 04 04 00 0D 01 00 00 19 04 04 00 00 00 00 00 90 00 C1 [21:29: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 16 77 00 00 0E 04 04 00 72 00 00 00 12 04 04 00 0C 01 00 00 5E 04 04 00 0C 01 00 00 57 04 04 00 0D 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:29:42]wFMCommunicate OK [21:29:42]SAM_PROTO_GetFieldsCounters done [21:29:42]requested_item shift.num is exist - process it [21:29:42]requested_item shift.opened is exist - process it [21:29:42]req_shift_opened [21:29:42]FM_GetShiftState [21:29:42]SAM_PROTO_GetShiftState [21:29:42]wFMCommunicate request_size=4 [21:29:42]MH_SAM_APDU [21:29:42]CAPDU: 80 13 01 00 [21:29:42]Write to MH i2c: E2 08 00 E2 18 80 13 01 00 00 00 00 00 77 [21:29:42]Write i2c OK [21:29:42]MH_I2C_Read... [21:29:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:29:42]Read from MH i2c: E2 [21:29:42]MH_I2C_Read... [21:29:42]Read from MH i2c: E2 0E 00 [21:29:42]MH_I2C_Read... [21:29:42]Read from MH i2c: E2 0E 00 E2 18 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 5D [21:29:42]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [21:29:42]wFMCommunicate OK [21:29:42]SAM_PROTO_GetShiftState done [21:29:42]FM_GetShiftState done [21:29:42]req_shift_opened done [21:29:42]requested_item shift.open_date is exist - process it [21:29:42]req_shift_open_date [21:29:42]req_shift_open_date done [21:29:42]produce_requested_data done [21:29:42]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30486,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [21:29:42]process_action_free close_receipt [21:29:42]json_value_free [21:29:42]json_value_free done [21:29:42]process_json_proto returns [21:29:42]Send response to host [21:29:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30486,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [21:29:42]free response buf [21:29:42]execute_script done [21:29:42]execute_script returns [21:29:42]free content buf [21:29:42]Sock 9.Close socket [21:29:42]Sock 9.Thread stoped [21:29:46]OFD Sender: No OFD packet to send [21:29:51]OFD Sender: No OFD packet to send [21:29:56]OFD Sender: No OFD packet to send [21:30:01]OFD Sender: No OFD packet to send [21:30:06]OFD Sender: No OFD packet to send [21:30:11]OFD Sender: No OFD packet to send [21:30:16]OFD Sender: No OFD packet to send [21:30:21]OFD Sender: No OFD packet to send [21:30:26]OFD Sender: No OFD packet to send [21:30:31]OFD Sender: No OFD packet to send [21:30:36]OFD Sender: No OFD packet to send [21:30:41]OFD Sender: No OFD packet to send [21:30:46]OFD Sender: No OFD packet to send [21:30:51]OFD Sender: No OFD packet to send [21:30:56]OFD Sender: No OFD packet to send [21:31:01]OFD Sender: No OFD packet to send [21:31:06]OFD Sender: No OFD packet to send [21:31:11]OFD Sender: No OFD packet to send [21:31:16]OFD Sender: No OFD packet to send [21:31:21]OFD Sender: No OFD packet to send [21:31:26]OFD Sender: No OFD packet to send [21:31:31]OFD Sender: No OFD packet to send [21:31:36]OFD Sender: No OFD packet to send [21:31:41]OFD Sender: No OFD packet to send [21:31:46]OFD Sender: No OFD packet to send [21:31:51]OFD Sender: No OFD packet to send [21:31:56]OFD Sender: No OFD packet to send [21:32:01]OFD Sender: No OFD packet to send [21:32:06]OFD Sender: No OFD packet to send [21:32:11]OFD Sender: No OFD packet to send [21:32:16]OFD Sender: No OFD packet to send [21:32:21]OFD Sender: No OFD packet to send [21:32:26]OFD Sender: No OFD packet to send [21:32:31]OFD Sender: No OFD packet to send [21:32:36]OFD Sender: No OFD packet to send [21:32:37]accept exits with 10 [21:32:37]New connection [21:32:37]New thread 3067346276 created [21:32:37]Thread 3067489636 joined [21:32:37]Waiting for new connection... [21:32:37] Sock 10.Parse request [21:32:37]Sock 10.Check first char [21:32:37]Sock 10.First char is OK [21:32:37]request: POST /json_proto HTTP/1.0 [21:32:37]Method: POST [21:32:37]URL: /json_proto [21:32:37]Method is POST - this is cgi request [21:32:37]url: /json_proto [21:32:37]query_string will be loaded in cgi processing [21:32:37]execute_cgi json_proto POST (null) [21:32:37]execute_cgi path=json_proto method=POST [21:32:37]POST find Content-Length [21:32:37]Host: 172.17.51.3:8080 [21:32:37]Content-Length: 678 [21:32:37]Content-Type: application/json [21:32:37] [21:32:37]POST finish read [21:32:37]Found Content-Length = 678 [21:32:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342892", "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" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:32:37]execute_script... [21:32: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)342892", "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" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:32:37]POST & json_proto [21:32:37]process_json_proto [21:32:37]json parsed OK: [21:32:37]protocol is kg_v1.0 [21:32:37]action value=close_receipt [21:32:37]process_action close_receipt [21:32:37]cmd_close_receipt [21:32:37]MH_GetDate [21:32:37]Write to MH i2c: F0 00 00 E3 18 EA [21:32:37]Write i2c OK [21:32:37]MH_I2C_Read... [21:32:37]Read from MH i2c: F0 [21:32:37]MH_I2C_Read... [21:32:37]Read from MH i2c: F0 09 00 [21:32:37]MH_I2C_Read... [21:32:37]Read from MH i2c: F0 09 00 E3 18 00 F6 76 15 67 04 C1 95 66 9B [21:32:37]GetLastDocTimeStamp 1729459779 [21:32:37]current date 1729459958 [21:32:37]FM_GetShiftState [21:32:37]SAM_PROTO_GetShiftState [21:32:37]wFMCommunicate request_size=4 [21:32:37]MH_SAM_APDU [21:32:37]CAPDU: 80 13 01 00 [21:32:37]Write to MH i2c: E2 08 00 E4 18 80 13 01 00 00 00 00 00 79 [21:32:37]Write i2c OK [21:32:37]MH_I2C_Read... [21:32:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:32:37]Read from MH i2c: E2 [21:32:37]MH_I2C_Read... [21:32:37]Read from MH i2c: E2 0E 00 [21:32:37]MH_I2C_Read... [21:32:37]Read from MH i2c: E2 0E 00 E4 18 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 5F [21:32:37]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [21:32:37]wFMCommunicate OK [21:32:37]SAM_PROTO_GetShiftState done [21:32:37]FM_GetShiftState done [21:32:37]opened in 1729384718 [21:32:37]opened+sec_in_day 1729471118 [21:32:37]quantity*price = 80012 [21:32:37]sum+1 = 80013 [21:32:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 269 20.10.2024 21:32 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30487 ФПД: 253597780969118 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T213238&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30487&fm=253597780969118&tin=02508201610067®Number=0000000000186857&sum=80000 [21:32:38]StoreToDocumentArchive [21:32:38]shift 114 fd 30487 [21:32:38]save to /storage/0114/doc_00030487 [21:32:38]save last doc name /storage/0114/doc_00030487 to /storage/kkm_last_doc_name [21:32:38]save OK [21:32:38]Clear old archive folders... [21:32:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:32:38]tlvbuf is 01DB6090 [21:32:38]SAM_PROTO_ClearQueue [21:32:38]wFMCommunicate request_size=4 [21:32:38]MH_SAM_APDU [21:32:38]CAPDU: 80 09 00 00 [21:32:38]Write to MH i2c: E2 08 00 F1 18 80 09 00 00 00 00 00 00 7B [21:32:38]Write i2c OK [21:32:38]MH_I2C_Read... [21:32:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:32:38]Read from MH i2c: E2 [21:32:38]MH_I2C_Read... [21:32:38]Read from MH i2c: E2 03 00 [21:32:38]MH_I2C_Read... [21:32:38]Read from MH i2c: E2 03 00 F1 18 00 90 00 7D [21:32:38]RAPDU: 90 00 [21:32:38]wFMCommunicate OK [21:32:38]SAM_PROTO_ClearQueue done [21:32:38]KKMCreateOFDPacket [21:32:38]OFDProtocolAddRootSTLVToBuf [21:32:38]FM_MakeSignedData [21:32:38]FM_MakeSignedData [21:32:38]SAM_PROTO_SignData [21:32:38]wFMCommunicate request_size=4 [21:32:38]MH_SAM_APDU [21:32:38]CAPDU: 80 0D 01 02 [21:32:38]Write to MH i2c: E2 08 00 F2 18 80 0D 01 02 00 00 00 00 83 [21:32:38]Write i2c OK [21:32:38]MH_I2C_Read... [21:32:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:32:38]Read from MH i2c: E2 [21:32:38]MH_I2C_Read... [21:32:38]Read from MH i2c: E2 03 00 [21:32:38]MH_I2C_Read... [21:32:38]Read from MH i2c: E2 03 00 F2 18 00 90 00 7E [21:32:38]RAPDU: 90 00 [21:32:38]wFMCommunicate OK [21:32:38]wFMCommunicate request_size=255 [21:32:38]MH_SAM_APDU [21:32: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 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 01 00 00 F4 03 04 00 F6 76 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 77 00 00 35 04 06 00 E6 [21:32:38]Write to MH i2c: E2 02 01 F3 18 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 01 00 00 F4 03 04 00 F6 76 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 77 00 00 35 04 06 00 E6 00 00 DC [21:32:38]Write i2c OK [21:32:38]MH_I2C_Read... [21:32:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:32:38]Read from MH i2c: E2 [21:32:38]MH_I2C_Read... [21:32:38]Read from MH i2c: E2 03 00 [21:32:38]MH_I2C_Read... [21:32:38]Read from MH i2c: E2 03 00 F3 18 00 90 00 7F [21:32:38]RAPDU: 90 00 [21:32:38]wFMCommunicate OK [21:32:38]wFMCommunicate request_size=10 [21:32:38]MH_SAM_APDU [21:32:38]CAPDU: 80 0D 02 02 05 A5 55 A6 86 9E [21:32:38]Write to MH i2c: E2 0D 00 F4 18 80 0D 02 02 05 00 A5 55 A6 86 9E 00 00 54 [21:32:38]Write i2c OK [21:32:38]MH_I2C_Read... [21:32:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:32:38]Read from MH i2c: E2 [21:32:38]MH_I2C_Read... [21:32:38]Read from MH i2c: E2 03 00 [21:32:38]MH_I2C_Read... [21:32:38]Read from MH i2c: E2 03 00 F4 18 00 90 00 80 [21:32:38]RAPDU: 90 00 [21:32:38]wFMCommunicate OK [21:32:38]wFMCommunicate request_size=4 [21:32:38]MH_SAM_APDU [21:32:38]CAPDU: 80 0D 03 02 [21:32:38]Write to MH i2c: E2 08 00 F5 18 80 0D 03 02 00 00 00 00 88 [21:32:38]Write i2c OK [21:32:38]MH_I2C_Read... [21:32:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:32:38]Read from MH i2c: E2 [21:32:38]MH_I2C_Read... [21:32:38]Read from MH i2c: E2 0B 00 [21:32:38]MH_I2C_Read... [21:32:38]Read from MH i2c: E2 0B 00 F5 18 00 1A 9B B7 74 8E 46 54 9A 90 00 2B [21:32:38]RAPDU: 1A 9B B7 74 8E 46 54 9A 90 00 [21:32:38]wFMCommunicate OK [21:32:38]SAM_PROTO_SignData done [21:32:38]FM_MakeSignedData done [21:32:38]CreateOFDProtocolMessage [21:32:38]wFMCommunicate request_size=4 [21:32:38]MH_SAM_APDU [21:32:38]CAPDU: 80 11 00 00 [21:32:38]Write to MH i2c: E2 08 00 F6 18 80 11 00 00 00 00 00 00 88 [21:32:38]Write i2c OK [21:32:38]MH_I2C_Read... [21:32:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:32:38]Read from MH i2c: E2 [21:32:38]MH_I2C_Read... [21:32:38]Read from MH i2c: E2 17 00 [21:32:38]MH_I2C_Read... [21:32:38]Read from MH i2c: E2 17 00 F6 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 D6 [21:32:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [21:32:38]wFMCommunicate OK [21:32:38]CreateOFDProtocolMessage done [21:32:38]OFDSenderStorePacket 30487 [21:32:38]StoreOFDPacket docnum=30487 [21:32: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 59 C9 07 01 FA 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 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 01 00 00 F4 03 04 00 F6 76 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 77 00 00 35 04 06 00 E6 A5 55 A6 86 9E 1A 9B B7 74 8E 46 54 9A [21:32:38]CheckFolder [21:32:38]dirname=/storage/ofd_packets [21:32:38]CheckFolder done [21:32:38]ProducePacketName [21:32:38]name=ofd_packets/00030487 [21:32:38]NVStorageSaveData ofd_packets/00030487 [21:32:38]File name is /storage/ofd_packets/00030487 [21:32:38]Write 301 bytes [21:32:38]NVStorageSaveData done [21:32:38]OFDSenderStorePacket done [21:32:38]KKMCreateOFDPacket done [21:32:38]NVStorageSaveData kkm_last_timestamp [21:32:38]File name is /storage/kkm_last_timestamp [21:32:38]Write 4 bytes [21:32:38]NVStorageSaveData done [21:32:38]ExternCall_PrintAddStr [21:32:38]wPrintStart [21:32:38]Write to MH i2c: 01 00 00 F7 18 0F [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 F7 18 00 00 00 00 00 FF 0F 24 [21:32:38]RasterBufferAndPrint [21:32:38]line Счет N : (1)342892 [21:32:38]line ИНН: 02508201610067 [21:32:38]line Контрольно-Кассовый Чек [21:32:38]line ПРОДАЖА [21:32:38]line ТРК (МРК, ГНК) : 33 [21:32:38]line Товар: 2710124130 [21:32:38]line Аи-92-К-2 [21:32:38]line 11.960 * 66.90 [21:32:38]line = 800.12 [21:32:38]line НДС 12% НСП 1% [21:32:38]line > о реализуемом товаре [21:32:38]line ОКРУГЛЕНИЕ: -0.12 [21:32:38]line ИТОГО: 800.00 [21:32:38]line Внесено: 800.00 [21:32:38]line СДАЧА: 0.00 [21:32:38]line НСП 1% : 7.08 [21:32:38]line НДС 12% : 84.97 [21:32:38]line Наличными: 800.00 [21:32:38]line Безнал.: 0.00 [21:32:38]line Место: АЗС № 78 "Партнер Нефть" [21:32:38]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [21:32:38]line СНО: Общий режим [21:32:38]line Чек 269 20.10.2024 21:32 [21:32:38]line Смена: 114 ФФД: 1.0 [21:32:38]line ЗНМ: 0300000137 [21:32:38]line РНМ: 0000000000186857 [21:32:38]line Версия ККМ: v1.0 [21:32:38]line ФМ: 0000000002094219 [21:32:38]line ФД: 30487 [21:32:38]line ФПД: 253597780969118 [21:32:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T213238&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30487&fm=253597780969118&tin=02508201610067®Number=0000000000186857&sum=80000 [21:32:39]OFD Sender: Processing packet 30487 [packets to send 10, broken 9] [21:32:39]ProducePacketName [21:32:39]name=ofd_packets/00030487 [21:32:39]OFD Sender: To server: pG, [21:32:39]CommunicateWithHost lk.salyk.kg:30040 [21:32:39]ConnectInit lk.salyk.kg [21:32:39]written 0, free lines is 4095 [21:32:39]Connected sock=9 [21:32: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 59 C9 07 01 FA 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 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 01 00 00 F4 03 04 00 F6 76 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 77 00 00 35 04 06 00 E6 A5 55 A6 86 9E 1A 9B B7 74 8E 46 54 9A [21:32: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 5C 9C 47 00 FC 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 17 77 00 00 F4 03 04 00 79 21 15 67 B6 04 01 00 00 FA 99 D2 4C CF 67 2C A2 [21:32:39]CommunicateWithHost err = 0 [21:32:39]CheckOFDResponse [21:32:39]1017 (14) - 77093643461234 [21:32:39]1041 (16) - 0000000002094219 [21:32:39]1040 (4) - 30487 [21:32:39]1012 (4) - 20.10.2024 15:27 [21:32:39]1206 (1) - 0 [21:32:39]OFD Sender: Remove packet 30487 [21:32:39]ProducePacketName [21:32:39]name=ofd_packets/00030487 [21:32:39]NVStorageDeleteData [21:32:39]Write to MH i2c: 01 00 00 22 19 3B [21:32:39]Write i2c OK [21:32:39]MH_I2C_Read... [21:32:39]Read from MH i2c: 01 [21:32:39]MH_I2C_Read... [21:32:39]Read from MH i2c: 01 07 00 [21:32:39]MH_I2C_Read... [21:32:39]Read from MH i2c: 01 07 00 22 19 00 00 00 00 00 E7 0C 35 [21:32:39]RasterBufferAndPrint [21:32:39]line [21:32:39]line [21:32:39]line [21:32:39]line [21:32:39]line [21:32:39]written 0, free lines is 3310 [21:32:39]MH_Cut [21:32:39]Write to MH i2c: D1 01 00 29 19 01 14 [21:32:39]Write i2c OK [21:32:39]MH_I2C_Read... [21:32:39]Read from MH i2c: D1 [21:32:39]MH_I2C_Read... [21:32:39]Read from MH i2c: D1 01 00 [21:32:39]MH_I2C_Read... [21:32:39]Read from MH i2c: D1 01 00 29 19 00 13 [21:32:39]Write to MH i2c: 01 00 00 2A 19 43 [21:32:39]Write i2c OK [21:32:39]MH_I2C_Read... [21:32:40]OFD Sender: No OFD packet to send [21:32:40]*** Cut start [21:32:40]*** Partial cut [21:32:40]*** CUTSNS_PIN = 1 [21:32:40]*** CUTSNS_PIN = 0 [21:32:40]*** Brake cut motor [21:32:41]Read from MH i2c: 01 [21:32:41]MH_I2C_Read... [21:32:41]*** Stop cut motor [21:32:41]*** Cut end [21:32:41]Read from MH i2c: 01 07 00 [21:32:41]MH_I2C_Read... [21:32:41]Read from MH i2c: 01 07 00 2A 19 00 00 00 00 00 FF 0F 58 [21:32:41]process_action close_receipt done [21:32:41]requested_data is exist [21:32:41]produce_requested_data [21:32:41]requested_item fm.sn is exist - process it [21:32:41]wFMCommunicate request_size=4 [21:32:41]MH_SAM_APDU [21:32:41]CAPDU: 80 11 00 00 [21:32:41]Write to MH i2c: E2 08 00 2B 19 80 11 00 00 00 00 00 00 BE [21:32:41]Write i2c OK [21:32:41]MH_I2C_Read... [21:32:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:32:41]Read from MH i2c: E2 [21:32:41]MH_I2C_Read... [21:32:41]Read from MH i2c: E2 17 00 [21:32:41]MH_I2C_Read... [21:32:41]Read from MH i2c: E2 17 00 2B 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 0C [21:32:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [21:32:41]wFMCommunicate OK [21:32:41]requested_item fd.num is exist - process it [21:32:41]SAM_PROTO_GetFieldsCounters [21:32:41]wFMCommunicate request_size=4 [21:32:41]MH_SAM_APDU [21:32:41]CAPDU: 80 13 00 00 [21:32:41]Write to MH i2c: E2 08 00 2C 19 80 13 00 00 00 00 00 00 C1 [21:32:41]Write i2c OK [21:32:41]MH_I2C_Read... [21:32:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:32:41]Read from MH i2c: E2 [21:32:41]MH_I2C_Read... [21:32:41]Read from MH i2c: E2 62 00 [21:32:41]MH_I2C_Read... [21:32:41]Read from MH i2c: E2 62 00 2C 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 77 00 00 0E 04 04 00 72 00 00 00 12 04 04 00 0D 01 00 00 5E 04 04 00 0D 01 00 00 57 04 04 00 0E 01 00 00 19 04 04 00 00 00 00 00 90 00 11 [21:32: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 17 77 00 00 0E 04 04 00 72 00 00 00 12 04 04 00 0D 01 00 00 5E 04 04 00 0D 01 00 00 57 04 04 00 0E 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:32:41]wFMCommunicate OK [21:32:41]SAM_PROTO_GetFieldsCounters done [21:32:41]requested_item shift.num is exist - process it [21:32:41]requested_item shift.opened is exist - process it [21:32:41]req_shift_opened [21:32:41]FM_GetShiftState [21:32:41]SAM_PROTO_GetShiftState [21:32:41]wFMCommunicate request_size=4 [21:32:41]MH_SAM_APDU [21:32:41]CAPDU: 80 13 01 00 [21:32:41]Write to MH i2c: E2 08 00 2D 19 80 13 01 00 00 00 00 00 C3 [21:32:41]Write i2c OK [21:32:41]MH_I2C_Read... [21:32:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:32:41]Read from MH i2c: E2 [21:32:41]MH_I2C_Read... [21:32:41]Read from MH i2c: E2 0E 00 [21:32:41]MH_I2C_Read... [21:32:41]Read from MH i2c: E2 0E 00 2D 19 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 A9 [21:32:41]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [21:32:41]wFMCommunicate OK [21:32:41]SAM_PROTO_GetShiftState done [21:32:41]FM_GetShiftState done [21:32:41]req_shift_opened done [21:32:41]requested_item shift.open_date is exist - process it [21:32:41]req_shift_open_date [21:32:41]req_shift_open_date done [21:32:41]produce_requested_data done [21:32:41]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30487,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [21:32:41]process_action_free close_receipt [21:32:41]json_value_free [21:32:41]json_value_free done [21:32:41]process_json_proto returns [21:32:41]Send response to host [21:32:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30487,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [21:32:41]free response buf [21:32:41]execute_script done [21:32:41]execute_script returns [21:32:41]free content buf [21:32:41]Sock 10.Close socket [21:32:41]Sock 10.Thread stoped [21:32:45]OFD Sender: No OFD packet to send [21:32:50]OFD Sender: No OFD packet to send [21:32:55]OFD Sender: No OFD packet to send [21:33:00]OFD Sender: No OFD packet to send [21:33:05]OFD Sender: No OFD packet to send [21:33:10]OFD Sender: No OFD packet to send [21:33:15]OFD Sender: No OFD packet to send [21:33:20]OFD Sender: No OFD packet to send [21:33:25]OFD Sender: No OFD packet to send [21:33:30]OFD Sender: No OFD packet to send [21:33:35]OFD Sender: No OFD packet to send [21:33:40]OFD Sender: No OFD packet to send [21:33:42]accept exits with 7 [21:33:42]New connection [21:33:42]New thread 3067489636 created [21:33:42]Thread 3067346276 joined [21:33:42]Waiting for new connection... [21:33:42] Sock 7.Parse request [21:33:42]Sock 7.Check first char [21:33:42]Sock 7.First char is OK [21:33:42]request: POST /json_proto HTTP/1.0 [21:33:42]Method: POST [21:33:42]URL: /json_proto [21:33:42]Method is POST - this is cgi request [21:33:42]url: /json_proto [21:33:42]query_string will be loaded in cgi processing [21:33:42]execute_cgi json_proto POST (null) [21:33:42]execute_cgi path=json_proto method=POST [21:33:42]POST find Content-Length [21:33:42]Host: 172.17.51.3:8080 [21:33:42]Content-Length: 688 [21:33:42]Content-Type: application/json [21:33:42] [21:33:42]POST finish read [21:33:42]Found Content-Length = 688 [21:33:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342891", "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" : 64.770, "sum" : 5000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 5000.00, "payments": [ { "type": 0, "sum" : 5000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:33:42]execute_script... [21:33: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)342891", "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" : 64.770, "sum" : 5000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 5000.00, "payments": [ { "type": 0, "sum" : 5000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:33:42]POST & json_proto [21:33:42]process_json_proto [21:33:42]json parsed OK: [21:33:42]protocol is kg_v1.0 [21:33:42]action value=close_receipt [21:33:42]process_action close_receipt [21:33:42]cmd_close_receipt [21:33:42]MH_GetDate [21:33:42]Write to MH i2c: F0 00 00 2E 19 36 [21:33:42]Write i2c OK [21:33:42]MH_I2C_Read... [21:33:42]Read from MH i2c: F0 [21:33:42]MH_I2C_Read... [21:33:42]Read from MH i2c: F0 09 00 [21:33:42]MH_I2C_Read... [21:33:42]Read from MH i2c: F0 09 00 2E 19 00 37 77 15 67 04 C1 95 66 29 [21:33:42]GetLastDocTimeStamp 1729459958 [21:33:42]current date 1729460023 [21:33:42]FM_GetShiftState [21:33:42]SAM_PROTO_GetShiftState [21:33:42]wFMCommunicate request_size=4 [21:33:42]MH_SAM_APDU [21:33:42]CAPDU: 80 13 01 00 [21:33:42]Write to MH i2c: E2 08 00 2F 19 80 13 01 00 00 00 00 00 C5 [21:33:42]Write i2c OK [21:33:42]MH_I2C_Read... [21:33:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:33:42]Read from MH i2c: E2 [21:33:42]MH_I2C_Read... [21:33:42]Read from MH i2c: E2 0E 00 [21:33:42]MH_I2C_Read... [21:33:42]Read from MH i2c: E2 0E 00 2F 19 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 AB [21:33:42]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [21:33:42]wFMCommunicate OK [21:33:42]SAM_PROTO_GetShiftState done [21:33:42]FM_GetShiftState done [21:33:42]opened in 1729384718 [21:33:42]opened+sec_in_day 1729471118 [21:33:42]quantity*price = 500024 [21:33:42]sum+1 = 500025 [21:33:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 5000.00 Внесено: 5000.00 СДАЧА: 0.00 НСП 1% : 44.25 НДС 12% : 531.00 Наличными: 5000.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 270 20.10.2024 21:33 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30488 ФПД: 254959070529917 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T213343&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30488&fm=254959070529917&tin=02508201610067®Number=0000000000186857&sum=500000 [21:33:43]StoreToDocumentArchive [21:33:43]shift 114 fd 30488 [21:33:43]save to /storage/0114/doc_00030488 [21:33:43]save last doc name /storage/0114/doc_00030488 to /storage/kkm_last_doc_name [21:33:43]save OK [21:33:43]Clear old archive folders... [21:33:43]ProcessDocumentItem done err = 0, tmpTLVsize=257 [21:33:43]tlvbuf is 01E31660 [21:33:43]SAM_PROTO_ClearQueue [21:33:43]wFMCommunicate request_size=4 [21:33:43]MH_SAM_APDU [21:33:43]CAPDU: 80 09 00 00 [21:33:43]Write to MH i2c: E2 08 00 3C 19 80 09 00 00 00 00 00 00 C7 [21:33:43]Write i2c OK [21:33:43]MH_I2C_Read... [21:33:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:33:43]Read from MH i2c: E2 [21:33:43]MH_I2C_Read... [21:33:43]Read from MH i2c: E2 03 00 [21:33:43]MH_I2C_Read... [21:33:43]Read from MH i2c: E2 03 00 3C 19 00 90 00 C9 [21:33:43]RAPDU: 90 00 [21:33:43]wFMCommunicate OK [21:33:43]SAM_PROTO_ClearQueue done [21:33:43]KKMCreateOFDPacket [21:33:43]OFDProtocolAddRootSTLVToBuf [21:33:43]FM_MakeSignedData [21:33:43]FM_MakeSignedData [21:33:43]SAM_PROTO_SignData [21:33:43]wFMCommunicate request_size=4 [21:33:43]MH_SAM_APDU [21:33:43]CAPDU: 80 0D 01 02 [21:33:43]Write to MH i2c: E2 08 00 3D 19 80 0D 01 02 00 00 00 00 CF [21:33:43]Write i2c OK [21:33:43]MH_I2C_Read... [21:33:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:33:43]Read from MH i2c: E2 [21:33:43]MH_I2C_Read... [21:33:43]Read from MH i2c: E2 03 00 [21:33:43]MH_I2C_Read... [21:33:43]Read from MH i2c: E2 03 00 3D 19 00 90 00 CA [21:33:43]RAPDU: 90 00 [21:33:43]wFMCommunicate OK [21:33:43]wFMCommunicate request_size=255 [21:33:43]MH_SAM_APDU [21:33:43]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 02 FD 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 38 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 01 00 00 F4 03 04 00 37 77 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 77 00 [21:33:43]Write to MH i2c: E2 02 01 3E 19 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 02 FD 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 38 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 01 00 00 F4 03 04 00 37 77 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 77 00 00 00 CB [21:33:43]Write i2c OK [21:33:43]MH_I2C_Read... [21:33:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:33:44]Read from MH i2c: E2 [21:33:44]MH_I2C_Read... [21:33:44]Read from MH i2c: E2 03 00 [21:33:44]MH_I2C_Read... [21:33:44]Read from MH i2c: E2 03 00 3E 19 00 90 00 CB [21:33:44]RAPDU: 90 00 [21:33:44]wFMCommunicate OK [21:33:44]wFMCommunicate request_size=16 [21:33:44]MH_SAM_APDU [21:33:44]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 E7 E2 48 D4 C9 7D [21:33:44]Write to MH i2c: E2 13 00 3F 19 80 0D 02 02 0B 00 00 35 04 06 00 E7 E2 48 D4 C9 7D 00 00 52 [21:33:44]Write i2c OK [21:33:44]MH_I2C_Read... [21:33:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:33:44]Read from MH i2c: E2 [21:33:44]MH_I2C_Read... [21:33:44]Read from MH i2c: E2 03 00 [21:33:44]MH_I2C_Read... [21:33:44]Read from MH i2c: E2 03 00 3F 19 00 90 00 CC [21:33:44]RAPDU: 90 00 [21:33:44]wFMCommunicate OK [21:33:44]wFMCommunicate request_size=4 [21:33:44]MH_SAM_APDU [21:33:44]CAPDU: 80 0D 03 02 [21:33:44]Write to MH i2c: E2 08 00 40 19 80 0D 03 02 00 00 00 00 D4 [21:33:44]Write i2c OK [21:33:44]MH_I2C_Read... [21:33:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:33:44]Read from MH i2c: E2 [21:33:44]MH_I2C_Read... [21:33:44]Read from MH i2c: E2 0B 00 [21:33:44]MH_I2C_Read... [21:33:44]Read from MH i2c: E2 0B 00 40 19 00 C9 17 6D 54 79 96 22 92 90 00 39 [21:33:44]RAPDU: C9 17 6D 54 79 96 22 92 90 00 [21:33:44]wFMCommunicate OK [21:33:44]SAM_PROTO_SignData done [21:33:44]FM_MakeSignedData done [21:33:44]CreateOFDProtocolMessage [21:33:44]wFMCommunicate request_size=4 [21:33:44]MH_SAM_APDU [21:33:44]CAPDU: 80 11 00 00 [21:33:44]Write to MH i2c: E2 08 00 41 19 80 11 00 00 00 00 00 00 D4 [21:33:44]Write i2c OK [21:33:44]MH_I2C_Read... [21:33:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:33:44]Read from MH i2c: E2 [21:33:44]MH_I2C_Read... [21:33:44]Read from MH i2c: E2 17 00 [21:33:44]MH_I2C_Read... [21:33:44]Read from MH i2c: E2 17 00 41 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 22 [21:33:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [21:33:44]wFMCommunicate OK [21:33:44]CreateOFDProtocolMessage done [21:33:44]OFDSenderStorePacket 30488 [21:33:44]StoreOFDPacket docnum=30488 [21:33: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 AA 75 0D 01 A1 58 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 02 FD 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 38 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 01 00 00 F4 03 04 00 37 77 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 77 00 00 35 04 06 00 E7 E2 48 D4 C9 7D C9 17 6D 54 79 96 22 92 [21:33:44]CheckFolder [21:33:44]dirname=/storage/ofd_packets [21:33:44]CheckFolder done [21:33:44]ProducePacketName [21:33:44]name=ofd_packets/00030488 [21:33:44]NVStorageSaveData ofd_packets/00030488 [21:33:44]File name is /storage/ofd_packets/00030488 [21:33:44]Write 307 bytes [21:33:44]NVStorageSaveData done [21:33:44]OFDSenderStorePacket done [21:33:44]KKMCreateOFDPacket done [21:33:44]NVStorageSaveData kkm_last_timestamp [21:33:44]File name is /storage/kkm_last_timestamp [21:33:44]Write 4 bytes [21:33:44]NVStorageSaveData done [21:33:44]ExternCall_PrintAddStr [21:33:44]wPrintStart [21:33:44]Write to MH i2c: 01 00 00 42 19 5B [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 42 19 00 00 00 00 00 FF 0F 70 [21:33:44]RasterBufferAndPrint [21:33:44]line Счет N : (1)342891 [21:33:44]line ИНН: 02508201610067 [21:33:44]line Контрольно-Кассовый Чек [21:33:44]line ПРОДАЖА [21:33:44]line ТРК (МРК, ГНК) : 51 [21:33:44]line Товар: 2710194210 [21:33:44]line D-ENERGY Дт-К-2 [21:33:44]line 64.770 * 77.20 [21:33:44]line = 5000.24 [21:33:44]line НДС 12% НСП 1% [21:33:44]line > о реализуемом товаре [21:33:44]line ОКРУГЛЕНИЕ: -0.24 [21:33:44]line ИТОГО: 5000.00 [21:33:44]line Внесено: 5000.00 [21:33:44]line СДАЧА: 0.00 [21:33:44]line НСП 1% : 44.25 [21:33:44]line НДС 12% : 531.00 [21:33:44]line Наличными: 5000.00 [21:33:44]line Безнал.: 0.00 [21:33:44]line Место: АЗС № 78 "Партнер Нефть" [21:33:44]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [21:33:44]line СНО: Общий режим [21:33:44]line Чек 270 20.10.2024 21:33 [21:33:44]line Смена: 114 ФФД: 1.0 [21:33:44]line ЗНМ: 0300000137 [21:33:44]line РНМ: 0000000000186857 [21:33:44]line Версия ККМ: v1.0 [21:33:44]line ФМ: 0000000002094219 [21:33:44]line ФД: 30488 [21:33:44]line ФПД: 254959070529917 [21:33:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T213343&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30488&fm=254959070529917&tin=02508201610067®Number=0000000000186857&sum=500000 [21:33:44]OFD Sender: Processing packet 30488 [packets to send 10, broken 9] [21:33:44]ProducePacketName [21:33:44]name=ofd_packets/00030488 [21:33:44]OFD Sender: To server: pG, [21:33:44]CommunicateWithHost lk.salyk.kg:30040 [21:33:44]ConnectInit lk.salyk.kg [21:33:44]written 0, free lines is 4095 [21:33:44]Connected sock=10 [21:33: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 AA 75 0D 01 A1 58 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 02 FD 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 38 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 01 00 00 F4 03 04 00 37 77 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 77 00 00 35 04 06 00 E7 E2 48 D4 C9 7D C9 17 6D 54 79 96 22 92 [21:33: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 65 8E 47 00 39 AC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 18 77 00 00 F4 03 04 00 BA 21 15 67 B6 04 01 00 00 CD 9C D8 4A 23 2D 99 22 [21:33:44]CommunicateWithHost err = 0 [21:33:44]CheckOFDResponse [21:33:44]1017 (14) - 77093643461234 [21:33:44]1041 (16) - 0000000002094219 [21:33:44]1040 (4) - 30488 [21:33:44]1012 (4) - 20.10.2024 15:28 [21:33:44]1206 (1) - 0 [21:33:44]OFD Sender: Remove packet 30488 [21:33:44]ProducePacketName [21:33:44]name=ofd_packets/00030488 [21:33:44]NVStorageDeleteData [21:33:45]Write to MH i2c: 01 00 00 6D 19 86 [21:33:45]Write i2c OK [21:33:45]MH_I2C_Read... [21:33:45]Read from MH i2c: 01 [21:33:45]MH_I2C_Read... [21:33:45]Read from MH i2c: 01 07 00 [21:33:45]MH_I2C_Read... [21:33:45]Read from MH i2c: 01 07 00 6D 19 00 00 00 00 00 F5 0C 8E [21:33:45]RasterBufferAndPrint [21:33:45]line [21:33:45]line [21:33:45]line [21:33:45]line [21:33:45]line [21:33:45]written 0, free lines is 3323 [21:33:45]MH_Cut [21:33:45]Write to MH i2c: D1 01 00 74 19 01 5F [21:33:45]Write i2c OK [21:33:45]MH_I2C_Read... [21:33:45]Read from MH i2c: D1 [21:33:45]MH_I2C_Read... [21:33:45]Read from MH i2c: D1 01 00 [21:33:45]MH_I2C_Read... [21:33:45]Read from MH i2c: D1 01 00 74 19 00 5E [21:33:45]Write to MH i2c: 01 00 00 75 19 8E [21:33:45]Write i2c OK [21:33:45]MH_I2C_Read... [21:33:45]OFD Sender: No OFD packet to send [21:33:45]*** Cut start [21:33:45]*** Partial cut [21:33:45]*** CUTSNS_PIN = 1 [21:33:45]*** CUTSNS_PIN = 0 [21:33:46]*** Brake cut motor [21:33:46]Read from MH i2c: 01 [21:33:46]MH_I2C_Read... [21:33:46]*** Stop cut motor [21:33:46]*** Cut end [21:33:46]Read from MH i2c: 01 07 00 [21:33:46]MH_I2C_Read... [21:33:46]Read from MH i2c: 01 07 00 75 19 00 00 00 00 00 FF 0F A3 [21:33:46]process_action close_receipt done [21:33:46]requested_data is exist [21:33:46]produce_requested_data [21:33:46]requested_item fm.sn is exist - process it [21:33:46]wFMCommunicate request_size=4 [21:33:46]MH_SAM_APDU [21:33:46]CAPDU: 80 11 00 00 [21:33:46]Write to MH i2c: E2 08 00 76 19 80 11 00 00 00 00 00 00 09 [21:33:46]Write i2c OK [21:33:46]MH_I2C_Read... [21:33:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:33:46]Read from MH i2c: E2 [21:33:46]MH_I2C_Read... [21:33:46]Read from MH i2c: E2 17 00 [21:33:46]MH_I2C_Read... [21:33:46]Read from MH i2c: E2 17 00 76 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 57 [21: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 [21:33:46]wFMCommunicate OK [21:33:46]requested_item fd.num is exist - process it [21:33:46]SAM_PROTO_GetFieldsCounters [21:33:46]wFMCommunicate request_size=4 [21:33:46]MH_SAM_APDU [21:33:46]CAPDU: 80 13 00 00 [21:33:46]Write to MH i2c: E2 08 00 77 19 80 13 00 00 00 00 00 00 0C [21:33:46]Write i2c OK [21:33:46]MH_I2C_Read... [21:33:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:33:46]Read from MH i2c: E2 [21:33:46]MH_I2C_Read... [21:33:46]Read from MH i2c: E2 62 00 [21:33:46]MH_I2C_Read... [21:33:46]Read from MH i2c: E2 62 00 77 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 77 00 00 0E 04 04 00 72 00 00 00 12 04 04 00 0E 01 00 00 5E 04 04 00 0E 01 00 00 57 04 04 00 0F 01 00 00 19 04 04 00 00 00 00 00 90 00 60 [21:33: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 18 77 00 00 0E 04 04 00 72 00 00 00 12 04 04 00 0E 01 00 00 5E 04 04 00 0E 01 00 00 57 04 04 00 0F 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:33:46]wFMCommunicate OK [21:33:46]SAM_PROTO_GetFieldsCounters done [21:33:46]requested_item shift.num is exist - process it [21:33:46]requested_item shift.opened is exist - process it [21:33:46]req_shift_opened [21:33:46]FM_GetShiftState [21:33:46]SAM_PROTO_GetShiftState [21:33:46]wFMCommunicate request_size=4 [21:33:46]MH_SAM_APDU [21:33:46]CAPDU: 80 13 01 00 [21:33:46]Write to MH i2c: E2 08 00 78 19 80 13 01 00 00 00 00 00 0E [21:33:46]Write i2c OK [21:33:46]MH_I2C_Read... [21:33:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:33:46]Read from MH i2c: E2 [21:33:46]MH_I2C_Read... [21:33:46]Read from MH i2c: E2 0E 00 [21:33:46]MH_I2C_Read... [21:33:46]Read from MH i2c: E2 0E 00 78 19 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 F4 [21:33:46]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [21:33:46]wFMCommunicate OK [21:33:46]SAM_PROTO_GetShiftState done [21:33:46]FM_GetShiftState done [21:33:46]req_shift_opened done [21:33:46]requested_item shift.open_date is exist - process it [21:33:46]req_shift_open_date [21:33:46]req_shift_open_date done [21:33:46]produce_requested_data done [21:33:46]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30488,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [21:33:46]process_action_free close_receipt [21:33:46]json_value_free [21:33:46]json_value_free done [21:33:46]process_json_proto returns [21:33:46]Send response to host [21:33:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30488,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [21:33:46]free response buf [21:33:46]execute_script done [21:33:46]execute_script returns [21:33:46]free content buf [21:33:46]Sock 7.Close socket [21:33:46]Sock 7.Thread stoped [21:33:50]OFD Sender: No OFD packet to send [21:33:55]OFD Sender: No OFD packet to send [21:34:00]OFD Sender: No OFD packet to send [21:34:05]OFD Sender: No OFD packet to send [21:34:10]OFD Sender: No OFD packet to send [21:34:15]OFD Sender: No OFD packet to send [21:34:20]OFD Sender: No OFD packet to send [21:34:25]OFD Sender: No OFD packet to send [21:34:30]OFD Sender: No OFD packet to send [21:34:35]OFD Sender: No OFD packet to send [21:34:40]OFD Sender: No OFD packet to send [21:34:45]OFD Sender: No OFD packet to send [21:34:50]OFD Sender: No OFD packet to send [21:34:55]OFD Sender: No OFD packet to send [21:35:00]OFD Sender: No OFD packet to send [21:35:05]OFD Sender: No OFD packet to send [21:35:10]OFD Sender: No OFD packet to send [21:35:15]OFD Sender: No OFD packet to send [21:35:20]OFD Sender: No OFD packet to send [21:35:25]OFD Sender: No OFD packet to send [21:35:30]OFD Sender: No OFD packet to send [21:35:35]OFD Sender: No OFD packet to send [21:35:40]OFD Sender: No OFD packet to send [21:35:45]OFD Sender: No OFD packet to send [21:35:50]OFD Sender: No OFD packet to send [21:35:55]OFD Sender: No OFD packet to send [21:36:00]OFD Sender: No OFD packet to send [21:36:05]OFD Sender: No OFD packet to send [21:36:10]OFD Sender: No OFD packet to send [21:36:15]OFD Sender: No OFD packet to send [21:36:20]OFD Sender: No OFD packet to send [21:36:25]OFD Sender: No OFD packet to send [21:36:30]OFD Sender: No OFD packet to send [21:36:35]OFD Sender: No OFD packet to send [21:36:40]OFD Sender: No OFD packet to send [21:36:45]OFD Sender: No OFD packet to send [21:36:50]OFD Sender: No OFD packet to send [21:36:55]OFD Sender: No OFD packet to send [21:37:00]OFD Sender: No OFD packet to send [21:37:05]OFD Sender: No OFD packet to send [21:37:10]OFD Sender: No OFD packet to send [21:37:15]OFD Sender: No OFD packet to send [21:37:20]OFD Sender: No OFD packet to send [21:37:25]OFD Sender: No OFD packet to send [21:37:30]OFD Sender: No OFD packet to send [21:37:35]OFD Sender: No OFD packet to send [21:37:40]OFD Sender: No OFD packet to send [21:37:45]OFD Sender: No OFD packet to send [21:37:50]OFD Sender: No OFD packet to send [21:37:55]OFD Sender: No OFD packet to send [21:38:00]OFD Sender: No OFD packet to send [21:38:05]OFD Sender: No OFD packet to send [21:38:10]OFD Sender: No OFD packet to send [21:38:15]OFD Sender: No OFD packet to send [21:38:20]OFD Sender: No OFD packet to send [21:38:25]OFD Sender: No OFD packet to send [21:38:30]OFD Sender: No OFD packet to send [21:38:35]OFD Sender: No OFD packet to send [21:38:40]OFD Sender: No OFD packet to send [21:38:45]OFD Sender: No OFD packet to send [21:38:50]OFD Sender: No OFD packet to send [21:38:55]OFD Sender: No OFD packet to send [21:39:00]OFD Sender: No OFD packet to send [21:39:05]OFD Sender: No OFD packet to send [21:39:10]OFD Sender: No OFD packet to send [21:39:15]OFD Sender: No OFD packet to send [21:39:20]OFD Sender: No OFD packet to send [21:39:25]OFD Sender: No OFD packet to send [21:39:30]OFD Sender: No OFD packet to send [21:39:35]OFD Sender: No OFD packet to send [21:39:40]OFD Sender: No OFD packet to send [21:39:45]OFD Sender: No OFD packet to send [21:39:50]OFD Sender: No OFD packet to send [21:39:55]OFD Sender: No OFD packet to send [21:40:00]OFD Sender: No OFD packet to send [21:40:05]OFD Sender: No OFD packet to send [21:40:10]OFD Sender: No OFD packet to send [21:40:15]OFD Sender: No OFD packet to send [21:40:20]OFD Sender: No OFD packet to send [21:40:25]OFD Sender: No OFD packet to send [21:40:30]OFD Sender: No OFD packet to send [21:40:35]OFD Sender: No OFD packet to send [21:40:40]OFD Sender: No OFD packet to send [21:40:45]OFD Sender: No OFD packet to send [21:40:50]OFD Sender: No OFD packet to send [21:40:55]OFD Sender: No OFD packet to send [21:41:00]OFD Sender: No OFD packet to send [21:41:05]OFD Sender: No OFD packet to send [21:41:10]OFD Sender: No OFD packet to send [21:41:15]OFD Sender: No OFD packet to send [21:41:20]OFD Sender: No OFD packet to send [21:41:25]OFD Sender: No OFD packet to send [21:41:30]OFD Sender: No OFD packet to send [21:41:35]OFD Sender: No OFD packet to send [21:41:40]OFD Sender: No OFD packet to send [21:41:45]OFD Sender: No OFD packet to send [21:41:50]OFD Sender: No OFD packet to send [21:41:55]OFD Sender: No OFD packet to send [21:42:00]OFD Sender: No OFD packet to send [21:42:05]OFD Sender: No OFD packet to send [21:42:10]OFD Sender: No OFD packet to send [21:42:15]OFD Sender: No OFD packet to send [21:42:20]OFD Sender: No OFD packet to send [21:42:25]OFD Sender: No OFD packet to send [21:42:30]OFD Sender: No OFD packet to send [21:42:35]OFD Sender: No OFD packet to send [21:42:40]OFD Sender: No OFD packet to send [21:42:45]OFD Sender: No OFD packet to send [21:42:50]OFD Sender: No OFD packet to send [21:42:55]OFD Sender: No OFD packet to send [21:43:00]OFD Sender: No OFD packet to send [21:43:05]OFD Sender: No OFD packet to send [21:43:10]OFD Sender: No OFD packet to send [21:43:15]OFD Sender: No OFD packet to send [21:43:20]OFD Sender: No OFD packet to send [21:43:25]OFD Sender: No OFD packet to send [21:43:30]OFD Sender: No OFD packet to send [21:43:35]OFD Sender: No OFD packet to send [21:43:40]OFD Sender: No OFD packet to send [21:43:45]OFD Sender: No OFD packet to send [21:43:50]OFD Sender: No OFD packet to send [21:43:55]OFD Sender: No OFD packet to send [21:44:00]OFD Sender: No OFD packet to send [21:44:05]OFD Sender: No OFD packet to send [21:44:10]OFD Sender: No OFD packet to send [21:44:15]OFD Sender: No OFD packet to send [21:44:20]OFD Sender: No OFD packet to send [21:44:25]OFD Sender: No OFD packet to send [21:44:30]OFD Sender: No OFD packet to send [21:44:35]OFD Sender: No OFD packet to send [21:44:40]OFD Sender: No OFD packet to send [21:44:45]OFD Sender: No OFD packet to send [21:44:50]OFD Sender: No OFD packet to send [21:44:55]OFD Sender: No OFD packet to send [21:45:00]OFD Sender: No OFD packet to send [21:45:05]OFD Sender: No OFD packet to send [21:45:11]OFD Sender: No OFD packet to send [21:45:14]accept exits with 9 [21:45:14]New connection [21:45:14]New thread 3067346276 created [21:45:14]Thread 3067489636 joined [21:45:14]Waiting for new connection... [21:45:14] Sock 9.Parse request [21:45:14]Sock 9.Check first char [21:45:14]Sock 9.First char is OK [21:45:14]request: POST /json_proto HTTP/1.0 [21:45:14]Method: POST [21:45:14]URL: /json_proto [21:45:14]Method is POST - this is cgi request [21:45:14]url: /json_proto [21:45:14]query_string will be loaded in cgi processing [21:45:14]execute_cgi json_proto POST (null) [21:45:14]execute_cgi path=json_proto method=POST [21:45:14]POST find Content-Length [21:45:14]Host: 172.17.51.3:8080 [21:45:14]Content-Length: 677 [21:45:14]Content-Type: application/json [21:45:14] [21:45:14]POST finish read [21:45:14]Found Content-Length = 677 [21:45:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342893", "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" ] } } [21:45:14]execute_script... [21:45:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342893", "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" ] } } [21:45:14]POST & json_proto [21:45:14]process_json_proto [21:45:14]json parsed OK: [21:45:14]protocol is kg_v1.0 [21:45:14]action value=close_receipt [21:45:14]process_action close_receipt [21:45:14]cmd_close_receipt [21:45:14]MH_GetDate [21:45:14]Write to MH i2c: F0 00 00 79 19 81 [21:45:14]Write i2c OK [21:45:14]MH_I2C_Read... [21:45:14]Read from MH i2c: F0 [21:45:14]MH_I2C_Read... [21:45:14]Read from MH i2c: F0 09 00 [21:45:14]MH_I2C_Read... [21:45:14]Read from MH i2c: F0 09 00 79 19 00 EB 79 15 67 04 C1 95 66 2A [21:45:14]GetLastDocTimeStamp 1729460023 [21:45:14]current date 1729460715 [21:45:14]FM_GetShiftState [21:45:14]SAM_PROTO_GetShiftState [21:45:14]wFMCommunicate request_size=4 [21:45:14]MH_SAM_APDU [21:45:14]CAPDU: 80 13 01 00 [21:45:14]Write to MH i2c: E2 08 00 7A 19 80 13 01 00 00 00 00 00 10 [21:45:14]Write i2c OK [21:45:14]MH_I2C_Read... [21:45:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:45:14]Read from MH i2c: E2 [21:45:14]MH_I2C_Read... [21:45:14]Read from MH i2c: E2 0E 00 [21:45:14]MH_I2C_Read... [21:45:14]Read from MH i2c: E2 0E 00 7A 19 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 F6 [21:45:14]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [21:45:14]wFMCommunicate OK [21:45:14]SAM_PROTO_GetShiftState done [21:45:14]FM_GetShiftState done [21:45:14]opened in 1729384718 [21:45:14]opened+sec_in_day 1729471118 [21:45:14]quantity*price = 50010 [21:45:14]sum+1 = 50012 [21:45:14]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 СНО: Общий режим Чек 271 20.10.2024 21:45 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30489 ФПД: 219649852723781 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T214515&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30489&fm=219649852723781&tin=02508201610067®Number=0000000000186857&sum=50000 [21:45:15]StoreToDocumentArchive [21:45:15]shift 114 fd 30489 [21:45:15]save to /storage/0114/doc_00030489 [21:45:15]save last doc name /storage/0114/doc_00030489 to /storage/kkm_last_doc_name [21:45:15]save OK [21:45:15]Clear old archive folders... [21:45:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:45:15]tlvbuf is 01E0BFA0 [21:45:15]SAM_PROTO_ClearQueue [21:45:15]wFMCommunicate request_size=4 [21:45:15]MH_SAM_APDU [21:45:15]CAPDU: 80 09 00 00 [21:45:15]Write to MH i2c: E2 08 00 87 19 80 09 00 00 00 00 00 00 12 [21:45:15]Write i2c OK [21:45:15]MH_I2C_Read... [21:45:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:45:15]Read from MH i2c: E2 [21:45:15]MH_I2C_Read... [21:45:15]Read from MH i2c: E2 03 00 [21:45:15]MH_I2C_Read... [21:45:15]Read from MH i2c: E2 03 00 87 19 00 90 00 14 [21:45:15]RAPDU: 90 00 [21:45:15]wFMCommunicate OK [21:45:15]SAM_PROTO_ClearQueue done [21:45:15]KKMCreateOFDPacket [21:45:15]OFDProtocolAddRootSTLVToBuf [21:45:15]FM_MakeSignedData [21:45:15]FM_MakeSignedData [21:45:15]SAM_PROTO_SignData [21:45:15]wFMCommunicate request_size=4 [21:45:15]MH_SAM_APDU [21:45:15]CAPDU: 80 0D 01 02 [21:45:15]Write to MH i2c: E2 08 00 88 19 80 0D 01 02 00 00 00 00 1A [21:45:15]Write i2c OK [21:45:15]MH_I2C_Read... [21:45:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:45:15]Read from MH i2c: E2 [21:45:15]MH_I2C_Read... [21:45:15]Read from MH i2c: E2 03 00 [21:45:15]MH_I2C_Read... [21:45:15]Read from MH i2c: E2 03 00 88 19 00 90 00 15 [21:45:15]RAPDU: 90 00 [21:45:15]wFMCommunicate OK [21:45:15]wFMCommunicate request_size=255 [21:45:15]MH_SAM_APDU [21:45:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 0F 01 00 00 F4 03 04 00 EB 79 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 77 00 00 35 04 06 00 C7 [21:45:15]Write to MH i2c: E2 02 01 89 19 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 01 00 00 F4 03 04 00 EB 79 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 77 00 00 35 04 06 00 C7 00 00 3D [21:45:15]Write i2c OK [21:45:15]MH_I2C_Read... [21:45:16]OFD Sender: No OFD packet to send [21:45:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:45:16]Read from MH i2c: E2 [21:45:16]MH_I2C_Read... [21:45:16]Read from MH i2c: E2 03 00 [21:45:16]MH_I2C_Read... [21:45:16]Read from MH i2c: E2 03 00 89 19 00 90 00 16 [21:45:16]RAPDU: 90 00 [21:45:16]wFMCommunicate OK [21:45:16]wFMCommunicate request_size=10 [21:45:16]MH_SAM_APDU [21:45:16]CAPDU: 80 0D 02 02 05 C5 37 72 52 45 [21:45:16]Write to MH i2c: E2 0D 00 8A 19 80 0D 02 02 05 00 C5 37 72 52 45 00 00 2C [21:45:16]Write i2c OK [21:45:16]MH_I2C_Read... [21:45:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:45:16]Read from MH i2c: E2 [21:45:16]MH_I2C_Read... [21:45:16]Read from MH i2c: E2 03 00 [21:45:16]MH_I2C_Read... [21:45:16]Read from MH i2c: E2 03 00 8A 19 00 90 00 17 [21:45:16]RAPDU: 90 00 [21:45:16]wFMCommunicate OK [21:45:16]wFMCommunicate request_size=4 [21:45:16]MH_SAM_APDU [21:45:16]CAPDU: 80 0D 03 02 [21:45:16]Write to MH i2c: E2 08 00 8B 19 80 0D 03 02 00 00 00 00 1F [21:45:16]Write i2c OK [21:45:16]MH_I2C_Read... [21:45:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:45:16]Read from MH i2c: E2 [21:45:16]MH_I2C_Read... [21:45:16]Read from MH i2c: E2 0B 00 [21:45:16]MH_I2C_Read... [21:45:16]Read from MH i2c: E2 0B 00 8B 19 00 FE AB 68 A5 46 BF 2D D4 90 00 DC [21:45:16]RAPDU: FE AB 68 A5 46 BF 2D D4 90 00 [21:45:16]wFMCommunicate OK [21:45:16]SAM_PROTO_SignData done [21:45:16]FM_MakeSignedData done [21:45:16]CreateOFDProtocolMessage [21:45:16]wFMCommunicate request_size=4 [21:45:16]MH_SAM_APDU [21:45:16]CAPDU: 80 11 00 00 [21:45:16]Write to MH i2c: E2 08 00 8C 19 80 11 00 00 00 00 00 00 1F [21:45:16]Write i2c OK [21:45:16]MH_I2C_Read... [21:45:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:45:16]Read from MH i2c: E2 [21:45:16]MH_I2C_Read... [21:45:16]Read from MH i2c: E2 17 00 [21:45:16]MH_I2C_Read... [21:45:16]Read from MH i2c: E2 17 00 8C 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 6D [21:45:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [21:45:16]wFMCommunicate OK [21:45:16]CreateOFDProtocolMessage done [21:45:16]OFDSenderStorePacket 30489 [21:45:16]StoreOFDPacket docnum=30489 [21:45: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 D6 40 07 01 D7 E8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 0F 01 00 00 F4 03 04 00 EB 79 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 77 00 00 35 04 06 00 C7 C5 37 72 52 45 FE AB 68 A5 46 BF 2D D4 [21:45:16]CheckFolder [21:45:16]dirname=/storage/ofd_packets [21:45:16]CheckFolder done [21:45:16]ProducePacketName [21:45:16]name=ofd_packets/00030489 [21:45:16]NVStorageSaveData ofd_packets/00030489 [21:45:16]File name is /storage/ofd_packets/00030489 [21:45:16]Write 301 bytes [21:45:16]NVStorageSaveData done [21:45:16]OFDSenderStorePacket done [21:45:16]KKMCreateOFDPacket done [21:45:16]NVStorageSaveData kkm_last_timestamp [21:45:16]File name is /storage/kkm_last_timestamp [21:45:16]Write 4 bytes [21:45:16]NVStorageSaveData done [21:45:16]ExternCall_PrintAddStr [21:45:16]wPrintStart [21:45:16]Write to MH i2c: 01 00 00 8D 19 A6 [21:45:16]Write i2c OK [21:45:16]MH_I2C_Read... [21:45:16]Read from MH i2c: 01 [21:45:16]MH_I2C_Read... [21:45:16]Read from MH i2c: 01 07 00 [21:45:16]MH_I2C_Read... [21:45:16]Read from MH i2c: 01 07 00 8D 19 00 00 00 00 00 FF 0F BB [21:45:16]RasterBufferAndPrint [21:45:16]line Счет N : (1)342893 [21:45:16]line ИНН: 02508201610067 [21:45:16]line Контрольно-Кассовый Чек [21:45:16]line ПРОДАЖА [21:45:16]line ТРК (МРК, ГНК) : 62 [21:45:16]line Товар: 2710124500 [21:45:16]line Аи-95-К-3 [21:45:16]line 6.740 * 74.20 [21:45:16]line = 500.11 [21:45:16]line НДС 12% НСП 1% [21:45:16]line > о реализуемом товаре [21:45:16]line ОКРУГЛЕНИЕ: -0.11 [21:45:16]line ИТОГО: 500.00 [21:45:16]line Внесено: 500.00 [21:45:16]line СДАЧА: 0.00 [21:45:16]line НСП 1% : 4.43 [21:45:16]line НДС 12% : 53.11 [21:45:16]line Наличными: 500.00 [21:45:16]line Безнал.: 0.00 [21:45:16]line Место: АЗС № 78 "Партнер Нефть" [21:45:16]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [21:45:16]line СНО: Общий режим [21:45:16]line Чек 271 20.10.2024 21:45 [21:45:16]line Смена: 114 ФФД: 1.0 [21:45:16]line ЗНМ: 0300000137 [21:45:16]line РНМ: 0000000000186857 [21:45:16]line Версия ККМ: v1.0 [21:45:16]line ФМ: 0000000002094219 [21:45:16]line ФД: 30489 [21:45:16]line ФПД: 219649852723781 [21:45:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T214515&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30489&fm=219649852723781&tin=02508201610067®Number=0000000000186857&sum=50000 [21:45:16]OFD Sender: Processing packet 30489 [packets to send 10, broken 9] [21:45:16]ProducePacketName [21:45:16]name=ofd_packets/00030489 [21:45:16]OFD Sender: To server: pG, [21:45:16]CommunicateWithHost lk.salyk.kg:30040 [21:45:16]ConnectInit lk.salyk.kg [21:45:16]written 0, free lines is 4095 [21:45:16]Connected sock=10 [21:45: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 D6 40 07 01 D7 E8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 0F 01 00 00 F4 03 04 00 EB 79 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 77 00 00 35 04 06 00 C7 C5 37 72 52 45 FE AB 68 A5 46 BF 2D D4 [21:45: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 60 7D 47 00 98 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 19 77 00 00 F4 03 04 00 6E 24 15 67 B6 04 01 00 00 A4 51 69 6B D8 DE 16 16 [21:45:16]CommunicateWithHost err = 0 [21:45:16]CheckOFDResponse [21:45:16]1017 (14) - 77093643461234 [21:45:16]1041 (16) - 0000000002094219 [21:45:16]1040 (4) - 30489 [21:45:16]1012 (4) - 20.10.2024 15:40 [21:45:16]1206 (1) - 0 [21:45:16]OFD Sender: Remove packet 30489 [21:45:16]ProducePacketName [21:45:16]name=ofd_packets/00030489 [21:45:16]NVStorageDeleteData [21:45:17]Write to MH i2c: 01 00 00 B8 19 D1 [21:45:17]Write i2c OK [21:45:17]MH_I2C_Read... [21:45:17]Read from MH i2c: 01 [21:45:17]MH_I2C_Read... [21:45:17]Read from MH i2c: 01 07 00 [21:45:17]MH_I2C_Read... [21:45:17]Read from MH i2c: 01 07 00 B8 19 00 00 00 00 00 E0 0C C4 [21:45:17]RasterBufferAndPrint [21:45:17]line [21:45:17]line [21:45:17]line [21:45:17]line [21:45:17]line [21:45:17]written 0, free lines is 3302 [21:45:17]MH_Cut [21:45:17]Write to MH i2c: D1 01 00 BF 19 01 AA [21:45:17]Write i2c OK [21:45:17]MH_I2C_Read... [21:45:17]Read from MH i2c: D1 [21:45:17]MH_I2C_Read... [21:45:17]Read from MH i2c: D1 01 00 [21:45:17]MH_I2C_Read... [21:45:17]Read from MH i2c: D1 01 00 BF 19 00 A9 [21:45:17]Write to MH i2c: 01 00 00 C0 19 D9 [21:45:17]Write i2c OK [21:45:17]MH_I2C_Read... [21:45:17]OFD Sender: No OFD packet to send [21:45:17]*** Cut start [21:45:17]*** Partial cut [21:45:17]*** CUTSNS_PIN = 1 [21:45:17]*** CUTSNS_PIN = 0 [21:45:17]*** Brake cut motor [21:45:18]Read from MH i2c: 01 [21:45:18]MH_I2C_Read... [21:45:18]*** Stop cut motor [21:45:18]*** Cut end [21:45:18]Read from MH i2c: 01 07 00 [21:45:18]MH_I2C_Read... [21:45:18]Read from MH i2c: 01 07 00 C0 19 00 00 00 00 00 FF 0F EE [21:45:18]process_action close_receipt done [21:45:18]requested_data is exist [21:45:18]produce_requested_data [21:45:18]requested_item fm.sn is exist - process it [21:45:18]wFMCommunicate request_size=4 [21:45:18]MH_SAM_APDU [21:45:18]CAPDU: 80 11 00 00 [21:45:18]Write to MH i2c: E2 08 00 C1 19 80 11 00 00 00 00 00 00 54 [21:45:18]Write i2c OK [21:45:18]MH_I2C_Read... [21:45:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:45:18]Read from MH i2c: E2 [21:45:18]MH_I2C_Read... [21:45:18]Read from MH i2c: E2 17 00 [21:45:18]MH_I2C_Read... [21:45:18]Read from MH i2c: E2 17 00 C1 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 A2 [21:45:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [21:45:18]wFMCommunicate OK [21:45:18]requested_item fd.num is exist - process it [21:45:18]SAM_PROTO_GetFieldsCounters [21:45:18]wFMCommunicate request_size=4 [21:45:18]MH_SAM_APDU [21:45:18]CAPDU: 80 13 00 00 [21:45:18]Write to MH i2c: E2 08 00 C2 19 80 13 00 00 00 00 00 00 57 [21:45:18]Write i2c OK [21:45:18]MH_I2C_Read... [21:45:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:45:18]Read from MH i2c: E2 [21:45:18]MH_I2C_Read... [21:45:18]Read from MH i2c: E2 62 00 [21:45:18]MH_I2C_Read... [21:45:18]Read from MH i2c: E2 62 00 C2 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 77 00 00 0E 04 04 00 72 00 00 00 12 04 04 00 0F 01 00 00 5E 04 04 00 0F 01 00 00 57 04 04 00 10 01 00 00 19 04 04 00 00 00 00 00 90 00 AF [21:45: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 19 77 00 00 0E 04 04 00 72 00 00 00 12 04 04 00 0F 01 00 00 5E 04 04 00 0F 01 00 00 57 04 04 00 10 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:45:18]wFMCommunicate OK [21:45:18]SAM_PROTO_GetFieldsCounters done [21:45:18]requested_item shift.num is exist - process it [21:45:18]requested_item shift.opened is exist - process it [21:45:18]req_shift_opened [21:45:18]FM_GetShiftState [21:45:18]SAM_PROTO_GetShiftState [21:45:18]wFMCommunicate request_size=4 [21:45:18]MH_SAM_APDU [21:45:18]CAPDU: 80 13 01 00 [21:45:18]Write to MH i2c: E2 08 00 C3 19 80 13 01 00 00 00 00 00 59 [21:45:18]Write i2c OK [21:45:18]MH_I2C_Read... [21:45:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:45:18]Read from MH i2c: E2 [21:45:18]MH_I2C_Read... [21:45:18]Read from MH i2c: E2 0E 00 [21:45:18]MH_I2C_Read... [21:45:18]Read from MH i2c: E2 0E 00 C3 19 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 3F [21:45:18]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [21:45:18]wFMCommunicate OK [21:45:18]SAM_PROTO_GetShiftState done [21:45:18]FM_GetShiftState done [21:45:18]req_shift_opened done [21:45:18]requested_item shift.open_date is exist - process it [21:45:18]req_shift_open_date [21:45:18]req_shift_open_date done [21:45:18]produce_requested_data done [21:45:18]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30489,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [21:45:18]process_action_free close_receipt [21:45:18]json_value_free [21:45:18]json_value_free done [21:45:18]process_json_proto returns [21:45:18]Send response to host [21:45:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30489,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [21:45:18]free response buf [21:45:18]execute_script done [21:45:18]execute_script returns [21:45:18]free content buf [21:45:18]Sock 9.Close socket [21:45:18]Sock 9.Thread stoped [21:45:22]OFD Sender: No OFD packet to send [21:45:27]OFD Sender: No OFD packet to send [21:45:32]OFD Sender: No OFD packet to send [21:45:37]OFD Sender: No OFD packet to send [21:45:42]OFD Sender: No OFD packet to send [21:45:47]OFD Sender: No OFD packet to send [21:45:52]OFD Sender: No OFD packet to send [21:45:57]OFD Sender: No OFD packet to send [21:46:02]OFD Sender: No OFD packet to send [21:46:07]OFD Sender: No OFD packet to send [21:46:12]OFD Sender: No OFD packet to send [21:46:17]OFD Sender: No OFD packet to send [21:46:22]OFD Sender: No OFD packet to send [21:46:27]OFD Sender: No OFD packet to send [21:46:32]OFD Sender: No OFD packet to send [21:46:37]OFD Sender: No OFD packet to send [21:46:42]OFD Sender: No OFD packet to send [21:46:47]OFD Sender: No OFD packet to send [21:46:52]OFD Sender: No OFD packet to send [21:46:57]OFD Sender: No OFD packet to send [21:47:02]OFD Sender: No OFD packet to send [21:47:07]OFD Sender: No OFD packet to send [21:47:12]OFD Sender: No OFD packet to send [21:47:17]OFD Sender: No OFD packet to send [21:47:22]OFD Sender: No OFD packet to send [21:47:27]OFD Sender: No OFD packet to send [21:47:32]OFD Sender: No OFD packet to send [21:47:37]OFD Sender: No OFD packet to send [21:47:42]OFD Sender: No OFD packet to send [21:47:47]OFD Sender: No OFD packet to send [21:47:52]OFD Sender: No OFD packet to send [21:47:57]OFD Sender: No OFD packet to send [21:48:02]OFD Sender: No OFD packet to send [21:48:07]OFD Sender: No OFD packet to send [21:48:12]OFD Sender: No OFD packet to send [21:48:17]OFD Sender: No OFD packet to send [21:48:22]OFD Sender: No OFD packet to send [21:48:27]OFD Sender: No OFD packet to send [21:48:32]OFD Sender: No OFD packet to send [21:48:37]OFD Sender: No OFD packet to send [21:48:42]OFD Sender: No OFD packet to send [21:48:47]OFD Sender: No OFD packet to send [21:48:52]OFD Sender: No OFD packet to send [21:48:57]OFD Sender: No OFD packet to send [21:49:02]OFD Sender: No OFD packet to send [21:49:07]OFD Sender: No OFD packet to send [21:49:12]OFD Sender: No OFD packet to send [21:49:17]OFD Sender: No OFD packet to send [21:49:22]OFD Sender: No OFD packet to send [21:49:27]OFD Sender: No OFD packet to send [21:49:32]OFD Sender: No OFD packet to send [21:49:37]OFD Sender: No OFD packet to send [21:49:42]OFD Sender: No OFD packet to send [21:49:47]OFD Sender: No OFD packet to send [21:49:52]OFD Sender: No OFD packet to send [21:49:57]OFD Sender: No OFD packet to send [21:50:02]OFD Sender: No OFD packet to send [21:50:07]OFD Sender: No OFD packet to send [21:50:12]OFD Sender: No OFD packet to send [21:50:17]OFD Sender: No OFD packet to send [21:50:22]OFD Sender: No OFD packet to send [21:50:27]OFD Sender: No OFD packet to send [21:50:32]OFD Sender: No OFD packet to send [21:50:37]OFD Sender: No OFD packet to send [21:50:42]OFD Sender: No OFD packet to send [21:50:47]OFD Sender: No OFD packet to send [21:50:52]OFD Sender: No OFD packet to send [21:50:57]OFD Sender: No OFD packet to send [21:51:02]OFD Sender: No OFD packet to send [21:51:07]OFD Sender: No OFD packet to send [21:51:12]OFD Sender: No OFD packet to send [21:51:17]OFD Sender: No OFD packet to send [21:51:22]OFD Sender: No OFD packet to send [21:51:27]OFD Sender: No OFD packet to send [21:51:32]OFD Sender: No OFD packet to send [21:51:37]OFD Sender: No OFD packet to send [21:51:42]OFD Sender: No OFD packet to send [21:51:47]OFD Sender: No OFD packet to send [21:51:52]OFD Sender: No OFD packet to send [21:51:57]OFD Sender: No OFD packet to send [21:52:02]OFD Sender: No OFD packet to send [21:52:07]OFD Sender: No OFD packet to send [21:52:12]OFD Sender: No OFD packet to send [21:52:17]OFD Sender: No OFD packet to send [21:52:22]OFD Sender: No OFD packet to send [21:52:27]OFD Sender: No OFD packet to send [21:52:32]OFD Sender: No OFD packet to send [21:52:37]OFD Sender: No OFD packet to send [21:52:42]OFD Sender: No OFD packet to send [21:52:47]OFD Sender: No OFD packet to send [21:52:52]OFD Sender: No OFD packet to send [21:52:57]OFD Sender: No OFD packet to send [21:53:02]OFD Sender: No OFD packet to send [21:53:07]OFD Sender: No OFD packet to send [21:53:12]OFD Sender: No OFD packet to send [21:53:17]OFD Sender: No OFD packet to send [21:53:22]OFD Sender: No OFD packet to send [21:53:27]OFD Sender: No OFD packet to send [21:53:32]OFD Sender: No OFD packet to send [21:53:37]OFD Sender: No OFD packet to send [21:53:42]OFD Sender: No OFD packet to send [21:53:47]OFD Sender: No OFD packet to send [21:53:52]OFD Sender: No OFD packet to send [21:53:57]OFD Sender: No OFD packet to send [21:54:02]OFD Sender: No OFD packet to send [21:54:07]OFD Sender: No OFD packet to send [21:54:12]OFD Sender: No OFD packet to send [21:54:17]OFD Sender: No OFD packet to send [21:54:22]OFD Sender: No OFD packet to send [21:54:27]OFD Sender: No OFD packet to send [21:54:32]OFD Sender: No OFD packet to send [21:54: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:57]OFD Sender: No OFD packet to send [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:38]OFD Sender: No OFD packet to send [21:58:43]OFD Sender: No OFD packet to send [21:58:48]OFD Sender: No OFD packet to send [21:58:53]OFD Sender: No OFD packet to send [21:58:58]OFD Sender: No OFD packet to send [21:59:03]OFD Sender: No OFD packet to send [21:59:08]OFD Sender: No OFD packet to send [21:59:13]OFD Sender: No OFD packet to send [21:59:18]OFD Sender: No OFD packet to send [21:59:23]OFD Sender: No OFD packet to send [21:59:28]OFD Sender: No OFD packet to send [21:59:33]OFD Sender: No OFD packet to send [21:59:38]OFD Sender: No OFD packet to send [21:59:43]OFD Sender: No OFD packet to send [21:59:48]OFD Sender: No OFD packet to send [21:59:53]OFD Sender: No OFD packet to send [21:59:58]OFD Sender: No OFD packet to send [22:00:03]OFD Sender: No OFD packet to send [22:00:08]OFD Sender: No OFD packet to send [22:00:13]OFD Sender: No OFD packet to send [22:00:18]OFD Sender: No OFD packet to send [22:00:23]OFD Sender: No OFD packet to send [22:00:28]OFD Sender: No OFD packet to send [22:00:33]OFD Sender: No OFD packet to send [22:00:38]OFD Sender: No OFD packet to send [22:00:43]OFD Sender: No OFD packet to send [22:00:48]OFD Sender: No OFD packet to send [22:00:53]OFD Sender: No OFD packet to send [22:00:58]OFD Sender: No OFD packet to send [22:01:03]OFD Sender: No OFD packet to send [22:01:08]OFD Sender: No OFD packet to send [22:01:13]OFD Sender: No OFD packet to send [22:01:18]OFD Sender: No OFD packet to send [22:01:23]OFD Sender: No OFD packet to send [22:01:28]OFD Sender: No OFD packet to send [22:01:33]OFD Sender: No OFD packet to send [22:01:38]OFD Sender: No OFD packet to send [22:01:43]OFD Sender: No OFD packet to send [22:01:48]OFD Sender: No OFD packet to send [22:01:53]OFD Sender: No OFD packet to send [22:01:58]OFD Sender: No OFD packet to send [22:02:03]OFD Sender: No OFD packet to send [22:02:08]OFD Sender: No OFD packet to send [22:02:13]OFD Sender: No OFD packet to send [22:02:18]OFD Sender: No OFD packet to send [22:02:23]OFD Sender: No OFD packet to send [22:02:28]OFD Sender: No OFD packet to send [22:02:33]OFD Sender: No OFD packet to send [22:02:38]OFD Sender: No OFD packet to send [22:02:43]OFD Sender: No OFD packet to send [22:02:48]OFD Sender: No OFD packet to send [22:02:53]OFD Sender: No OFD packet to send [22:02:58]OFD Sender: No OFD packet to send [22:03:03]OFD Sender: No OFD packet to send [22:03:08]OFD Sender: No OFD packet to send [22:03:13]OFD Sender: No OFD packet to send [22:03:18]OFD Sender: No OFD packet to send [22:03:23]OFD Sender: No OFD packet to send [22:03:28]OFD Sender: No OFD packet to send [22:03:33]OFD Sender: No OFD packet to send [22:03:38]OFD Sender: No OFD packet to send [22:03:43]OFD Sender: No OFD packet to send [22:03:48]OFD Sender: No OFD packet to send [22:03:53]OFD Sender: No OFD packet to send [22:03: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:13]OFD Sender: No OFD packet to send [22:04:18]OFD Sender: No OFD packet to send [22:04:23]OFD Sender: No OFD packet to send [22:04:28]OFD Sender: No OFD packet to send [22:04:33]OFD Sender: No OFD packet to send [22:04:38]OFD Sender: No OFD packet to send [22:04:43]OFD Sender: No OFD packet to send [22:04:48]OFD Sender: No OFD packet to send [22:04:53]OFD Sender: No OFD packet to send [22:04:58]OFD Sender: No OFD packet to send [22:05:03]OFD Sender: No OFD packet to send [22:05:08]OFD Sender: No OFD packet to send [22:05:13]OFD Sender: No OFD packet to send [22:05:18]OFD Sender: No OFD packet to send [22:05:23]OFD Sender: No OFD packet to send [22:05:28]OFD Sender: No OFD packet to send [22:05:33]OFD Sender: No OFD packet to send [22:05:38]OFD Sender: No OFD packet to send [22:05:43]OFD Sender: No OFD packet to send [22:05:48]OFD Sender: No OFD packet to send [22:05:53]OFD Sender: No OFD packet to send [22:05:58]OFD Sender: No OFD packet to send [22:06:03]OFD Sender: No OFD packet to send [22:06:08]OFD Sender: No OFD packet to send [22:06:13]OFD Sender: No OFD packet to send [22:06:18]OFD Sender: No OFD packet to send [22:06:23]OFD Sender: No OFD packet to send [22:06:28]OFD Sender: No OFD packet to send [22:06:33]OFD Sender: No OFD packet to send [22:06:38]OFD Sender: No OFD packet to send [22:06:43]OFD Sender: No OFD packet to send [22:06:48]OFD Sender: No OFD packet to send [22:06:53]OFD Sender: No OFD packet to send [22:06:58]OFD Sender: No OFD packet to send [22:07:03]OFD Sender: No OFD packet to send [22:07:08]OFD Sender: No OFD packet to send [22:07:13]OFD Sender: No OFD packet to send [22:07:18]OFD Sender: No OFD packet to send [22:07:23]OFD Sender: No OFD packet to send [22:07:28]OFD Sender: No OFD packet to send [22:07:33]OFD Sender: No OFD packet to send [22:07:38]OFD Sender: No OFD packet to send [22:07:43]OFD Sender: No OFD packet to send [22:07:48]OFD Sender: No OFD packet to send [22:07:53]OFD Sender: No OFD packet to send [22:07:58]OFD Sender: No OFD packet to send [22:08:03]OFD Sender: No OFD packet to send [22:08:08]OFD Sender: No OFD packet to send [22:08:13]OFD Sender: No OFD packet to send [22:08:18]OFD Sender: No OFD packet to send [22:08:23]OFD Sender: No OFD packet to send [22:08:28]OFD Sender: No OFD packet to send [22:08:33]OFD Sender: No OFD packet to send [22:08:38]OFD Sender: No OFD packet to send [22:08:43]OFD Sender: No OFD packet to send [22:08:48]OFD Sender: No OFD packet to send [22:08:53]OFD Sender: No OFD packet to send [22:08:58]OFD Sender: No OFD packet to send [22:09:03]OFD Sender: No OFD packet to send [22:09:08]OFD Sender: No OFD packet to send [22:09:13]OFD Sender: No OFD packet to send [22:09:18]OFD Sender: No OFD packet to send [22:09:23]OFD Sender: No OFD packet to send [22:09:28]OFD Sender: No OFD packet to send [22:09:33]OFD Sender: No OFD packet to send [22:09:38]OFD Sender: No OFD packet to send [22:09:43]OFD Sender: No OFD packet to send [22:09:48]OFD Sender: No OFD packet to send [22:09:53]OFD Sender: No OFD packet to send [22:09:58]OFD Sender: No OFD packet to send [22:10:03]OFD Sender: No OFD packet to send [22:10:08]OFD Sender: No OFD packet to send [22:10:13]OFD Sender: No OFD packet to send [22:10:18]OFD Sender: No OFD packet to send [22:10:23]OFD Sender: No OFD packet to send [22:10:28]OFD Sender: No OFD packet to send [22:10:33]OFD Sender: No OFD packet to send [22:10:38]OFD Sender: No OFD packet to send [22:10:43]OFD Sender: No OFD packet to send [22:10:48]OFD Sender: No OFD packet to send [22:10:53]OFD Sender: No OFD packet to send [22:10:58]OFD Sender: No OFD packet to send [22:11:03]OFD Sender: No OFD packet to send [22:11:08]OFD Sender: No OFD packet to send [22:11:13]OFD Sender: No OFD packet to send [22:11:18]OFD Sender: No OFD packet to send [22:11:23]OFD Sender: No OFD packet to send [22:11:28]OFD Sender: No OFD packet to send [22:11:33]OFD Sender: No OFD packet to send [22:11:38]OFD Sender: No OFD packet to send [22:11:43]OFD Sender: No OFD packet to send [22:11:48]OFD Sender: No OFD packet to send [22:11:53]OFD Sender: No OFD packet to send [22:11:58]OFD Sender: No OFD packet to send [22:12:03]OFD Sender: No OFD packet to send [22:12:05]accept exits with 7 [22:12:05]New connection [22:12:05]New thread 3067489636 created [22:12:05]Thread 3067346276 joined [22:12:05]Waiting for new connection... [22:12:05] Sock 7.Parse request [22:12:05]Sock 7.Check first char [22:12:05]Sock 7.First char is OK [22:12:05]request: POST /json_proto HTTP/1.0 [22:12:05]Method: POST [22:12:05]URL: /json_proto [22:12:05]Method is POST - this is cgi request [22:12:05]url: /json_proto [22:12:05]query_string will be loaded in cgi processing [22:12:05]execute_cgi json_proto POST (null) [22:12:05]execute_cgi path=json_proto method=POST [22:12:05]POST find Content-Length [22:12:05]Host: 172.17.51.3:8080 [22:12:05]Content-Length: 677 [22:12:05]Content-Type: application/json [22:12:05] [22:12:05]POST finish read [22:12:05]Found Content-Length = 677 [22:12:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342894", "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" : 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" ] } } [22:12:05]execute_script... [22:12: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)342894", "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" : 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" ] } } [22:12:05]POST & json_proto [22:12:05]process_json_proto [22:12:05]json parsed OK: [22:12:05]protocol is kg_v1.0 [22:12:05]action value=close_receipt [22:12:05]process_action close_receipt [22:12:05]cmd_close_receipt [22:12:05]MH_GetDate [22:12:05]Write to MH i2c: F0 00 00 C4 19 CC [22:12:05]Write i2c OK [22:12:05]MH_I2C_Read... [22:12:05]Read from MH i2c: F0 [22:12:05]MH_I2C_Read... [22:12:05]Read from MH i2c: F0 09 00 [22:12:05]MH_I2C_Read... [22:12:05]Read from MH i2c: F0 09 00 C4 19 00 36 80 15 67 04 C1 95 66 C7 [22:12:05]GetLastDocTimeStamp 1729460715 [22:12:05]current date 1729462326 [22:12:05]FM_GetShiftState [22:12:05]SAM_PROTO_GetShiftState [22:12:05]wFMCommunicate request_size=4 [22:12:05]MH_SAM_APDU [22:12:05]CAPDU: 80 13 01 00 [22:12:05]Write to MH i2c: E2 08 00 C5 19 80 13 01 00 00 00 00 00 5B [22:12:05]Write i2c OK [22:12:05]MH_I2C_Read... [22:12:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:12:05]Read from MH i2c: E2 [22:12:05]MH_I2C_Read... [22:12:05]Read from MH i2c: E2 0E 00 [22:12:05]MH_I2C_Read... [22:12:05]Read from MH i2c: E2 0E 00 C5 19 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 41 [22:12:05]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [22:12:05]wFMCommunicate OK [22:12:05]SAM_PROTO_GetShiftState done [22:12:05]FM_GetShiftState done [22:12:05]opened in 1729384718 [22:12:05]opened+sec_in_day 1729471118 [22:12:05]quantity*price = 60009 [22:12:05]sum+1 = 60010 [22:12:05]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 СНО: Общий режим Чек 272 20.10.2024 22:12 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30490 ФПД: 186753831584080 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T221206&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30490&fm=186753831584080&tin=02508201610067®Number=0000000000186857&sum=60000 [22:12:06]StoreToDocumentArchive [22:12:06]shift 114 fd 30490 [22:12:06]save to /storage/0114/doc_00030490 [22:12:06]save last doc name /storage/0114/doc_00030490 to /storage/kkm_last_doc_name [22:12:06]save OK [22:12:06]Clear old archive folders... [22:12:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:12:06]tlvbuf is B6FD8010 [22:12:06]SAM_PROTO_ClearQueue [22:12:06]wFMCommunicate request_size=4 [22:12:06]MH_SAM_APDU [22:12:06]CAPDU: 80 09 00 00 [22:12:06]Write to MH i2c: E2 08 00 D2 19 80 09 00 00 00 00 00 00 5D [22:12:06]Write i2c OK [22:12:06]MH_I2C_Read... [22:12:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:12:06]Read from MH i2c: E2 [22:12:06]MH_I2C_Read... [22:12:06]Read from MH i2c: E2 03 00 [22:12:06]MH_I2C_Read... [22:12:06]Read from MH i2c: E2 03 00 D2 19 00 90 00 5F [22:12:06]RAPDU: 90 00 [22:12:06]wFMCommunicate OK [22:12:06]SAM_PROTO_ClearQueue done [22:12:06]KKMCreateOFDPacket [22:12:06]OFDProtocolAddRootSTLVToBuf [22:12:06]FM_MakeSignedData [22:12:06]FM_MakeSignedData [22:12:06]SAM_PROTO_SignData [22:12:06]wFMCommunicate request_size=4 [22:12:06]MH_SAM_APDU [22:12:06]CAPDU: 80 0D 01 02 [22:12:06]Write to MH i2c: E2 08 00 D3 19 80 0D 01 02 00 00 00 00 65 [22:12:06]Write i2c OK [22:12:06]MH_I2C_Read... [22:12:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:12:06]Read from MH i2c: E2 [22:12:06]MH_I2C_Read... [22:12:06]Read from MH i2c: E2 03 00 [22:12:06]MH_I2C_Read... [22:12:06]Read from MH i2c: E2 03 00 D3 19 00 90 00 60 [22:12:06]RAPDU: 90 00 [22:12:06]wFMCommunicate OK [22:12:06]wFMCommunicate request_size=255 [22:12:06]MH_SAM_APDU [22:12: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 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 10 01 00 00 F4 03 04 00 36 80 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 77 00 00 35 04 06 00 A9 [22:12:06]Write to MH i2c: E2 02 01 D4 19 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 10 01 00 00 F4 03 04 00 36 80 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 77 00 00 35 04 06 00 A9 00 00 C2 [22:12:06]Write i2c OK [22:12:06]MH_I2C_Read... [22:12:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:12:06]Read from MH i2c: E2 [22:12:06]MH_I2C_Read... [22:12:06]Read from MH i2c: E2 03 00 [22:12:06]MH_I2C_Read... [22:12:06]Read from MH i2c: E2 03 00 D4 19 00 90 00 61 [22:12:06]RAPDU: 90 00 [22:12:06]wFMCommunicate OK [22:12:06]wFMCommunicate request_size=10 [22:12:06]MH_SAM_APDU [22:12:06]CAPDU: 80 0D 02 02 05 DA 03 CA C1 50 [22:12:06]Write to MH i2c: E2 0D 00 D5 19 80 0D 02 02 05 00 DA 03 CA C1 50 00 00 2A [22:12:06]Write i2c OK [22:12:06]MH_I2C_Read... [22:12:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:12:06]Read from MH i2c: E2 [22:12:06]MH_I2C_Read... [22:12:06]Read from MH i2c: E2 03 00 [22:12:06]MH_I2C_Read... [22:12:06]Read from MH i2c: E2 03 00 D5 19 00 90 00 62 [22:12:06]RAPDU: 90 00 [22:12:06]wFMCommunicate OK [22:12:06]wFMCommunicate request_size=4 [22:12:06]MH_SAM_APDU [22:12:06]CAPDU: 80 0D 03 02 [22:12:06]Write to MH i2c: E2 08 00 D6 19 80 0D 03 02 00 00 00 00 6A [22:12:06]Write i2c OK [22:12:06]MH_I2C_Read... [22:12:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:12:06]Read from MH i2c: E2 [22:12:06]MH_I2C_Read... [22:12:06]Read from MH i2c: E2 0B 00 [22:12:06]MH_I2C_Read... [22:12:06]Read from MH i2c: E2 0B 00 D6 19 00 B4 FD AE 09 42 CD 16 2D 90 00 25 [22:12:06]RAPDU: B4 FD AE 09 42 CD 16 2D 90 00 [22:12:06]wFMCommunicate OK [22:12:06]SAM_PROTO_SignData done [22:12:06]FM_MakeSignedData done [22:12:06]CreateOFDProtocolMessage [22:12:06]wFMCommunicate request_size=4 [22:12:06]MH_SAM_APDU [22:12:06]CAPDU: 80 11 00 00 [22:12:06]Write to MH i2c: E2 08 00 D7 19 80 11 00 00 00 00 00 00 6A [22:12:06]Write i2c OK [22:12:06]MH_I2C_Read... [22:12:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:12:07]Read from MH i2c: E2 [22:12:07]MH_I2C_Read... [22:12:07]Read from MH i2c: E2 17 00 [22:12:07]MH_I2C_Read... [22:12:07]Read from MH i2c: E2 17 00 D7 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 B8 [22:12:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [22:12:07]wFMCommunicate OK [22:12:07]CreateOFDProtocolMessage done [22:12:07]OFDSenderStorePacket 30490 [22:12:07]StoreOFDPacket docnum=30490 [22:12: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 D5 DF 07 01 6E 3F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 10 01 00 00 F4 03 04 00 36 80 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 77 00 00 35 04 06 00 A9 DA 03 CA C1 50 B4 FD AE 09 42 CD 16 2D [22:12:07]CheckFolder [22:12:07]dirname=/storage/ofd_packets [22:12:07]CheckFolder done [22:12:07]ProducePacketName [22:12:07]name=ofd_packets/00030490 [22:12:07]NVStorageSaveData ofd_packets/00030490 [22:12:07]File name is /storage/ofd_packets/00030490 [22:12:07]Write 301 bytes [22:12:07]NVStorageSaveData done [22:12:07]OFDSenderStorePacket done [22:12:07]KKMCreateOFDPacket done [22:12:07]NVStorageSaveData kkm_last_timestamp [22:12:07]File name is /storage/kkm_last_timestamp [22:12:07]Write 4 bytes [22:12:07]NVStorageSaveData done [22:12:07]ExternCall_PrintAddStr [22:12:07]wPrintStart [22:12:07]Write to MH i2c: 01 00 00 D8 19 F1 [22:12:07]Write i2c OK [22:12:07]MH_I2C_Read... [22:12:07]Read from MH i2c: 01 [22:12:07]MH_I2C_Read... [22:12:07]Read from MH i2c: 01 07 00 [22:12:07]MH_I2C_Read... [22:12:07]Read from MH i2c: 01 07 00 D8 19 00 00 00 00 00 FF 0F 06 [22:12:07]RasterBufferAndPrint [22:12:07]line Счет N : (1)342894 [22:12:07]line ИНН: 02508201610067 [22:12:07]line Контрольно-Кассовый Чек [22:12:07]line ПРОДАЖА [22:12:07]line ТРК (МРК, ГНК) : 53 [22:12:07]line Товар: 2710124130 [22:12:07]line Аи-92-К-2 [22:12:07]line 8.970 * 66.90 [22:12:07]line = 600.09 [22:12:07]line НДС 12% НСП 1% [22:12:07]line > о реализуемом товаре [22:12:07]line ОКРУГЛЕНИЕ: -0.09 [22:12:07]line ИТОГО: 600.00 [22:12:07]line Внесено: 600.00 [22:12:07]line СДАЧА: 0.00 [22:12:07]line НСП 1% : 5.31 [22:12:07]line НДС 12% : 63.73 [22:12:07]line Наличными: 600.00 [22:12:07]line Безнал.: 0.00 [22:12:07]line Место: АЗС № 78 "Партнер Нефть" [22:12:07]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [22:12:07]line СНО: Общий режим [22:12:07]line Чек 272 20.10.2024 22:12 [22:12:07]line Смена: 114 ФФД: 1.0 [22:12:07]line ЗНМ: 0300000137 [22:12:07]line РНМ: 0000000000186857 [22:12:07]line Версия ККМ: v1.0 [22:12:07]line ФМ: 0000000002094219 [22:12:07]line ФД: 30490 [22:12:07]line ФПД: 186753831584080 [22:12:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T221206&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30490&fm=186753831584080&tin=02508201610067®Number=0000000000186857&sum=60000 [22:12:07]OFD Sender: Processing packet 30490 [packets to send 10, broken 9] [22:12:07]ProducePacketName [22:12:07]name=ofd_packets/00030490 [22:12:07]OFD Sender: To server: pG, [22:12:07]CommunicateWithHost lk.salyk.kg:30040 [22:12:07]ConnectInit lk.salyk.kg [22:12:07]written 0, free lines is 4095 [22:12:07]Connected sock=10 [22:12: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 D5 DF 07 01 6E 3F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 10 01 00 00 F4 03 04 00 36 80 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 77 00 00 35 04 06 00 A9 DA 03 CA C1 50 B4 FD AE 09 42 CD 16 2D [22:12: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 93 3F 47 00 2E 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 1A 77 00 00 F4 03 04 00 B9 2A 15 67 B6 04 01 00 00 99 99 A1 E1 54 D4 02 77 [22:12:07]CommunicateWithHost err = 0 [22:12:07]CheckOFDResponse [22:12:07]1017 (14) - 77093643461234 [22:12:07]1041 (16) - 0000000002094219 [22:12:07]1040 (4) - 30490 [22:12:07]1012 (4) - 20.10.2024 16:07 [22:12:07]1206 (1) - 0 [22:12:07]OFD Sender: Remove packet 30490 [22:12:07]ProducePacketName [22:12:07]name=ofd_packets/00030490 [22:12:07]NVStorageDeleteData [22:12:07]Write to MH i2c: 01 00 00 03 1A 1D [22:12:07]Write i2c OK [22:12:07]MH_I2C_Read... [22:12:07]Read from MH i2c: 01 [22:12:07]MH_I2C_Read... [22:12:07]Read from MH i2c: 01 07 00 [22:12:07]MH_I2C_Read... [22:12:07]Read from MH i2c: 01 07 00 03 1A 00 00 00 00 00 E7 0C 17 [22:12:07]RasterBufferAndPrint [22:12:07]line [22:12:07]line [22:12:07]line [22:12:07]line [22:12:07]line [22:12:07]written 0, free lines is 3310 [22:12:07]MH_Cut [22:12:07]Write to MH i2c: D1 01 00 0A 1A 01 F6 [22:12:07]Write i2c OK [22:12:07]MH_I2C_Read... [22:12:07]Read from MH i2c: D1 [22:12:07]MH_I2C_Read... [22:12:07]Read from MH i2c: D1 01 00 [22:12:07]MH_I2C_Read... [22:12:07]Read from MH i2c: D1 01 00 0A 1A 00 F5 [22:12:07]Write to MH i2c: 01 00 00 0B 1A 25 [22:12:07]Write i2c OK [22:12:07]MH_I2C_Read... [22:12:08]OFD Sender: No OFD packet to send [22:12:08]*** Cut start [22:12:08]*** Partial cut [22:12:08]*** CUTSNS_PIN = 1 [22:12:08]*** CUTSNS_PIN = 0 [22:12:08]*** Brake cut motor [22:12:09]Read from MH i2c: 01 [22:12:09]MH_I2C_Read... [22:12:09]*** Stop cut motor [22:12:09]*** Cut end [22:12:09]Read from MH i2c: 01 07 00 [22:12:09]MH_I2C_Read... [22:12:09]Read from MH i2c: 01 07 00 0B 1A 00 00 00 00 00 FF 0F 3A [22:12:09]process_action close_receipt done [22:12:09]requested_data is exist [22:12:09]produce_requested_data [22:12:09]requested_item fm.sn is exist - process it [22:12:09]wFMCommunicate request_size=4 [22:12:09]MH_SAM_APDU [22:12:09]CAPDU: 80 11 00 00 [22:12:09]Write to MH i2c: E2 08 00 0C 1A 80 11 00 00 00 00 00 00 A0 [22:12:09]Write i2c OK [22:12:09]MH_I2C_Read... [22:12:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:12:09]Read from MH i2c: E2 [22:12:09]MH_I2C_Read... [22:12:09]Read from MH i2c: E2 17 00 [22:12:09]MH_I2C_Read... [22:12:09]Read from MH i2c: E2 17 00 0C 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 EE [22:12: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:12:09]wFMCommunicate OK [22:12:09]requested_item fd.num is exist - process it [22:12:09]SAM_PROTO_GetFieldsCounters [22:12:09]wFMCommunicate request_size=4 [22:12:09]MH_SAM_APDU [22:12:09]CAPDU: 80 13 00 00 [22:12:09]Write to MH i2c: E2 08 00 0D 1A 80 13 00 00 00 00 00 00 A3 [22:12:09]Write i2c OK [22:12:09]MH_I2C_Read... [22:12:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:12:09]Read from MH i2c: E2 [22:12:09]MH_I2C_Read... [22:12:09]Read from MH i2c: E2 62 00 [22:12:09]MH_I2C_Read... [22:12:09]Read from MH i2c: E2 62 00 0D 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 77 00 00 0E 04 04 00 72 00 00 00 12 04 04 00 10 01 00 00 5E 04 04 00 10 01 00 00 57 04 04 00 11 01 00 00 19 04 04 00 00 00 00 00 90 00 FF [22:12: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 1A 77 00 00 0E 04 04 00 72 00 00 00 12 04 04 00 10 01 00 00 5E 04 04 00 10 01 00 00 57 04 04 00 11 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:12:09]wFMCommunicate OK [22:12:09]SAM_PROTO_GetFieldsCounters done [22:12:09]requested_item shift.num is exist - process it [22:12:09]requested_item shift.opened is exist - process it [22:12:09]req_shift_opened [22:12:09]FM_GetShiftState [22:12:09]SAM_PROTO_GetShiftState [22:12:09]wFMCommunicate request_size=4 [22:12:09]MH_SAM_APDU [22:12:09]CAPDU: 80 13 01 00 [22:12:09]Write to MH i2c: E2 08 00 0E 1A 80 13 01 00 00 00 00 00 A5 [22:12:09]Write i2c OK [22:12:09]MH_I2C_Read... [22:12:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:12:09]Read from MH i2c: E2 [22:12:09]MH_I2C_Read... [22:12:09]Read from MH i2c: E2 0E 00 [22:12:09]MH_I2C_Read... [22:12:09]Read from MH i2c: E2 0E 00 0E 1A 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 8B [22:12:09]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [22:12:09]wFMCommunicate OK [22:12:09]SAM_PROTO_GetShiftState done [22:12:09]FM_GetShiftState done [22:12:09]req_shift_opened done [22:12:09]requested_item shift.open_date is exist - process it [22:12:09]req_shift_open_date [22:12:09]req_shift_open_date done [22:12:09]produce_requested_data done [22:12:09]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30490,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [22:12:09]process_action_free close_receipt [22:12:09]json_value_free [22:12:09]json_value_free done [22:12:09]process_json_proto returns [22:12:09]Send response to host [22:12:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30490,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [22:12:09]free response buf [22:12:09]execute_script done [22:12:09]execute_script returns [22:12:09]free content buf [22:12:09]Sock 7.Close socket [22:12:09]Sock 7.Thread stoped [22:12:13]OFD Sender: No OFD packet to send [22:12:18]OFD Sender: No OFD packet to send [22:12:23]OFD Sender: No OFD packet to send [22:12:28]OFD Sender: No OFD packet to send [22:12:33]OFD Sender: No OFD packet to send [22:12:38]OFD Sender: No OFD packet to send [22:12:43]OFD Sender: No OFD packet to send [22:12:48]OFD Sender: No OFD packet to send [22:12:53]OFD Sender: No OFD packet to send [22:12:58]OFD Sender: No OFD packet to send [22:13:03]OFD Sender: No OFD packet to send [22:13:08]OFD Sender: No OFD packet to send [22:13:13]OFD Sender: No OFD packet to send [22:13:18]OFD Sender: No OFD packet to send [22:13:23]OFD Sender: No OFD packet to send [22:13:28]OFD Sender: No OFD packet to send [22:13:33]OFD Sender: No OFD packet to send [22:13:38]OFD Sender: No OFD packet to send [22:13:43]OFD Sender: No OFD packet to send [22:13:48]OFD Sender: No OFD packet to send [22:13:53]OFD Sender: No OFD packet to send [22:13:58]OFD Sender: No OFD packet to send [22:14:03]OFD Sender: No OFD packet to send [22:14:08]OFD Sender: No OFD packet to send [22:14:13]OFD Sender: No OFD packet to send [22:14:18]OFD Sender: No OFD packet to send [22:14:23]OFD Sender: No OFD packet to send [22:14:28]OFD Sender: No OFD packet to send [22:14:33]OFD Sender: No OFD packet to send [22:14:38]OFD Sender: No OFD packet to send [22:14:43]OFD Sender: No OFD packet to send [22:14:48]OFD Sender: No OFD packet to send [22:14:53]OFD Sender: No OFD packet to send [22:14:58]OFD Sender: No OFD packet to send [22:15:03]OFD Sender: No OFD packet to send [22:15:08]OFD Sender: No OFD packet to send [22:15:13]OFD Sender: No OFD packet to send [22:15:18]OFD Sender: No OFD packet to send [22:15:23]OFD Sender: No OFD packet to send [22:15:28]OFD Sender: No OFD packet to send [22:15:33]OFD Sender: No OFD packet to send [22:15:38]OFD Sender: No OFD packet to send [22:15:43]OFD Sender: No OFD packet to send [22:15:48]OFD Sender: No OFD packet to send [22:15:53]OFD Sender: No OFD packet to send [22:15:58]OFD Sender: No OFD packet to send [22:16:03]OFD Sender: No OFD packet to send [22:16:08]OFD Sender: No OFD packet to send [22:16:13]OFD Sender: No OFD packet to send [22:16:18]OFD Sender: No OFD packet to send [22:16:23]OFD Sender: No OFD packet to send [22:16:28]OFD Sender: No OFD packet to send [22:16:33]OFD Sender: No OFD packet to send [22:16:38]OFD Sender: No OFD packet to send [22:16:43]OFD Sender: No OFD packet to send [22:16:48]OFD Sender: No OFD packet to send [22:16:53]OFD Sender: No OFD packet to send [22:16:58]OFD Sender: No OFD packet to send [22:17:03]OFD Sender: No OFD packet to send [22:17:08]OFD Sender: No OFD packet to send [22:17:13]OFD Sender: No OFD packet to send [22:17:18]OFD Sender: No OFD packet to send [22:17:23]OFD Sender: No OFD packet to send [22:17:28]OFD Sender: No OFD packet to send [22:17:33]OFD Sender: No OFD packet to send [22:17:38]OFD Sender: No OFD packet to send [22:17:43]OFD Sender: No OFD packet to send [22:17:48]OFD Sender: No OFD packet to send [22:17:53]OFD Sender: No OFD packet to send [22:17:58]OFD Sender: No OFD packet to send [22:18:03]OFD Sender: No OFD packet to send [22:18:08]OFD Sender: No OFD packet to send [22:18:13]OFD Sender: No OFD packet to send [22:18:18]OFD Sender: No OFD packet to send [22:18:23]OFD Sender: No OFD packet to send [22:18:28]OFD Sender: No OFD packet to send [22:18:33]OFD Sender: No OFD packet to send [22:18:38]OFD Sender: No OFD packet to send [22:18:43]OFD Sender: No OFD packet to send [22:18:48]OFD Sender: No OFD packet to send [22:18:53]OFD Sender: No OFD packet to send [22:18:58]OFD Sender: No OFD packet to send [22:19:03]OFD Sender: No OFD packet to send [22:19:08]OFD Sender: No OFD packet to send [22:19:13]OFD Sender: No OFD packet to send [22:19:18]OFD Sender: No OFD packet to send [22:19:23]OFD Sender: No OFD packet to send [22:19:28]OFD Sender: No OFD packet to send [22:19:33]OFD Sender: No OFD packet to send [22:19:38]OFD Sender: No OFD packet to send [22:19:43]OFD Sender: No OFD packet to send [22:19:48]OFD Sender: No OFD packet to send [22:19:53]OFD Sender: No OFD packet to send [22:19:58]OFD Sender: No OFD packet to send [22:20:03]OFD Sender: No OFD packet to send [22:20:08]OFD Sender: No OFD packet to send [22:20:13]OFD Sender: No OFD packet to send [22:20:18]OFD Sender: No OFD packet to send [22:20:23]OFD Sender: No OFD packet to send [22:20:28]OFD Sender: No OFD packet to send [22:20:33]OFD Sender: No OFD packet to send [22:20:38]OFD Sender: No OFD packet to send [22:20:43]OFD Sender: No OFD packet to send [22:20:48]OFD Sender: No OFD packet to send [22:20:53]OFD Sender: No OFD packet to send [22:20:58]OFD Sender: No OFD packet to send [22:21:03]OFD Sender: No OFD packet to send [22:21:08]OFD Sender: No OFD packet to send [22:21:13]OFD Sender: No OFD packet to send [22:21:18]OFD Sender: No OFD packet to send [22:21:23]OFD Sender: No OFD packet to send [22:21:28]OFD Sender: No OFD packet to send [22:21:33]OFD Sender: No OFD packet to send [22:21:38]OFD Sender: No OFD packet to send [22:21:43]OFD Sender: No OFD packet to send [22:21:48]OFD Sender: No OFD packet to send [22:21:53]OFD Sender: No OFD packet to send [22:21:58]OFD Sender: No OFD packet to send [22:22:03]OFD Sender: No OFD packet to send [22:22:08]OFD Sender: No OFD packet to send [22:22:13]OFD Sender: No OFD packet to send [22:22:18]OFD Sender: No OFD packet to send [22:22:23]OFD Sender: No OFD packet to send [22:22:28]OFD Sender: No OFD packet to send [22:22:33]OFD Sender: No OFD packet to send [22:22:38]OFD Sender: No OFD packet to send [22:22:43]OFD Sender: No OFD packet to send [22:22:48]OFD Sender: No OFD packet to send [22:22:53]OFD Sender: No OFD packet to send [22:22:58]OFD Sender: No OFD packet to send [22:23:03]OFD Sender: No OFD packet to send [22:23:08]OFD Sender: No OFD packet to send [22:23:13]OFD Sender: No OFD packet to send [22:23:18]OFD Sender: No OFD packet to send [22:23:23]OFD Sender: No OFD packet to send [22:23:28]OFD Sender: No OFD packet to send [22:23:33]OFD Sender: No OFD packet to send [22:23:38]OFD Sender: No OFD packet to send [22:23:43]OFD Sender: No OFD packet to send [22:23:48]OFD Sender: No OFD packet to send [22:23:53]OFD Sender: No OFD packet to send [22:23:58]OFD Sender: No OFD packet to send [22:24:03]OFD Sender: No OFD packet to send [22:24:08]OFD Sender: No OFD packet to send [22:24:13]OFD Sender: No OFD packet to send [22:24:18]OFD Sender: No OFD packet to send [22:24:23]OFD Sender: No OFD packet to send [22:24:28]OFD Sender: No OFD packet to send [22:24:33]OFD Sender: No OFD packet to send [22:24:38]OFD Sender: No OFD packet to send [22:24:43]OFD Sender: No OFD packet to send [22:24:48]OFD Sender: No OFD packet to send [22:24:53]OFD Sender: No OFD packet to send [22:24:58]OFD Sender: No OFD packet to send [22:25:03]OFD Sender: No OFD packet to send [22:25:08]OFD Sender: No OFD packet to send [22:25:13]OFD Sender: No OFD packet to send [22:25:18]OFD Sender: No OFD packet to send [22:25:23]OFD Sender: No OFD packet to send [22:25:28]OFD Sender: No OFD packet to send [22:25:33]OFD Sender: No OFD packet to send [22:25:38]OFD Sender: No OFD packet to send [22:25:43]OFD Sender: No OFD packet to send [22:25:48]OFD Sender: No OFD packet to send [22:25:53]OFD Sender: No OFD packet to send [22:25:58]OFD Sender: No OFD packet to send [22:26:03]OFD Sender: No OFD packet to send [22:26:08]OFD Sender: No OFD packet to send [22:26:13]OFD Sender: No OFD packet to send [22:26:18]OFD Sender: No OFD packet to send [22:26:23]OFD Sender: No OFD packet to send [22:26:28]OFD Sender: No OFD packet to send [22:26:33]OFD Sender: No OFD packet to send [22:26:38]OFD Sender: No OFD packet to send [22:26:43]OFD Sender: No OFD packet to send [22:26:48]OFD Sender: No OFD packet to send [22:26:53]OFD Sender: No OFD packet to send [22:26:58]OFD Sender: No OFD packet to send [22:27:03]OFD Sender: No OFD packet to send [22:27:08]OFD Sender: No OFD packet to send [22:27:13]OFD Sender: No OFD packet to send [22:27:18]OFD Sender: No OFD packet to send [22:27:23]OFD Sender: No OFD packet to send [22:27:28]OFD Sender: No OFD packet to send [22:27:33]OFD Sender: No OFD packet to send [22:27:38]OFD Sender: No OFD packet to send [22:27:43]OFD Sender: No OFD packet to send [22:27:48]OFD Sender: No OFD packet to send [22:27:53]OFD Sender: No OFD packet to send [22:27:58]OFD Sender: No OFD packet to send [22:28:03]OFD Sender: No OFD packet to send [22:28:08]OFD Sender: No OFD packet to send [22:28:13]OFD Sender: No OFD packet to send [22:28:18]OFD Sender: No OFD packet to send [22:28:23]OFD Sender: No OFD packet to send [22:28:28]OFD Sender: No OFD packet to send [22:28:33]OFD Sender: No OFD packet to send [22:28:38]OFD Sender: No OFD packet to send [22:28:43]OFD Sender: No OFD packet to send [22:28:48]OFD Sender: No OFD packet to send [22:28:53]OFD Sender: No OFD packet to send [22:28:58]OFD Sender: No OFD packet to send [22:29:03]OFD Sender: No OFD packet to send [22:29:08]OFD Sender: No OFD packet to send [22:29:13]OFD Sender: No OFD packet to send [22:29:18]OFD Sender: No OFD packet to send [22:29:23]OFD Sender: No OFD packet to send [22:29:28]OFD Sender: No OFD packet to send [22:29:33]OFD Sender: No OFD packet to send [22:29:39]OFD Sender: No OFD packet to send [22:29:44]OFD Sender: No OFD packet to send [22:29:49]OFD Sender: No OFD packet to send [22:29:54]OFD Sender: No OFD packet to send [22:29:59]OFD Sender: No OFD packet to send [22:30:04]OFD Sender: No OFD packet to send [22:30:09]OFD Sender: No OFD packet to send [22:30:14]OFD Sender: No OFD packet to send [22:30:19]OFD Sender: No OFD packet to send [22:30:24]OFD Sender: No OFD packet to send [22:30:29]OFD Sender: No OFD packet to send [22:30:34]OFD Sender: No OFD packet to send [22:30:39]OFD Sender: No OFD packet to send [22:30:44]OFD Sender: No OFD packet to send [22:30:49]OFD Sender: No OFD packet to send [22:30:54]OFD Sender: No OFD packet to send [22:30:59]OFD Sender: No OFD packet to send [22:31:04]OFD Sender: No OFD packet to send [22:31:09]OFD Sender: No OFD packet to send [22:31:14]OFD Sender: No OFD packet to send [22:31:19]OFD Sender: No OFD packet to send [22:31:24]OFD Sender: No OFD packet to send [22:31:29]OFD Sender: No OFD packet to send [22:31:34]OFD Sender: No OFD packet to send [22:31:39]OFD Sender: No OFD packet to send [22:31:44]OFD Sender: No OFD packet to send [22:31:49]OFD Sender: No OFD packet to send [22:31:54]OFD Sender: No OFD packet to send [22:31:59]OFD Sender: No OFD packet to send [22:32:04]OFD Sender: No OFD packet to send [22:32:09]OFD Sender: No OFD packet to send [22:32:14]OFD Sender: No OFD packet to send [22:32:19]OFD Sender: No OFD packet to send [22:32:24]OFD Sender: No OFD packet to send [22:32:29]OFD Sender: No OFD packet to send [22:32:34]OFD Sender: No OFD packet to send [22:32:39]OFD Sender: No OFD packet to send [22:32:44]OFD Sender: No OFD packet to send [22:32:49]OFD Sender: No OFD packet to send [22:32:54]OFD Sender: No OFD packet to send [22:32:59]OFD Sender: No OFD packet to send [22:33:04]OFD Sender: No OFD packet to send [22:33:09]OFD Sender: No OFD packet to send [22:33:14]OFD Sender: No OFD packet to send [22:33:19]OFD Sender: No OFD packet to send [22:33:24]OFD Sender: No OFD packet to send [22:33:29]OFD Sender: No OFD packet to send [22:33:34]OFD Sender: No OFD packet to send [22:33:39]OFD Sender: No OFD packet to send [22:33:44]OFD Sender: No OFD packet to send [22:33:49]OFD Sender: No OFD packet to send [22:33:54]OFD Sender: No OFD packet to send [22:33:59]OFD Sender: No OFD packet to send [22:34:04]OFD Sender: No OFD packet to send [22:34:09]OFD Sender: No OFD packet to send [22:34:14]OFD Sender: No OFD packet to send [22:34:19]OFD Sender: No OFD packet to send [22:34:24]OFD Sender: No OFD packet to send [22:34:29]OFD Sender: No OFD packet to send [22:34:34]OFD Sender: No OFD packet to send [22:34:39]OFD Sender: No OFD packet to send [22:34:44]OFD Sender: No OFD packet to send [22:34:49]OFD Sender: No OFD packet to send [22:34:54]OFD Sender: No OFD packet to send [22:34:59]OFD Sender: No OFD packet to send [22:35:04]OFD Sender: No OFD packet to send [22:35:09]OFD Sender: No OFD packet to send [22:35:14]OFD Sender: No OFD packet to send [22:35:19]OFD Sender: No OFD packet to send [22:35:24]OFD Sender: No OFD packet to send [22:35:29]OFD Sender: No OFD packet to send [22:35:34]OFD Sender: No OFD packet to send [22:35:39]OFD Sender: No OFD packet to send [22:35:44]OFD Sender: No OFD packet to send [22:35:49]OFD Sender: No OFD packet to send [22:35:54]OFD Sender: No OFD packet to send [22:35:59]OFD Sender: No OFD packet to send [22:36:04]OFD Sender: No OFD packet to send [22:36:09]OFD Sender: No OFD packet to send [22:36:14]OFD Sender: No OFD packet to send [22:36:19]OFD Sender: No OFD packet to send [22:36:24]OFD Sender: No OFD packet to send [22:36:29]OFD Sender: No OFD packet to send [22:36:34]OFD Sender: No OFD packet to send [22:36:39]OFD Sender: No OFD packet to send [22:36:44]OFD Sender: No OFD packet to send [22:36:49]OFD Sender: No OFD packet to send [22:36:54]OFD Sender: No OFD packet to send [22:36:59]OFD Sender: No OFD packet to send [22:37:04]OFD Sender: No OFD packet to send [22:37:09]OFD Sender: No OFD packet to send [22:37:14]OFD Sender: No OFD packet to send [22:37:19]OFD Sender: No OFD packet to send [22:37:24]OFD Sender: No OFD packet to send [22:37:29]OFD Sender: No OFD packet to send [22:37:34]OFD Sender: No OFD packet to send [22:37:39]OFD Sender: No OFD packet to send [22:37:44]OFD Sender: No OFD packet to send [22:37:49]OFD Sender: No OFD packet to send [22:37:54]OFD Sender: No OFD packet to send [22:37:59]OFD Sender: No OFD packet to send [22:38:04]OFD Sender: No OFD packet to send [22:38:09]OFD Sender: No OFD packet to send [22:38:14]OFD Sender: No OFD packet to send [22:38:19]OFD Sender: No OFD packet to send [22:38:24]OFD Sender: No OFD packet to send [22:38:29]OFD Sender: No OFD packet to send [22:38:34]OFD Sender: No OFD packet to send [22:38:39]OFD Sender: No OFD packet to send [22:38:44]OFD Sender: No OFD packet to send [22:38:49]OFD Sender: No OFD packet to send [22:38:54]OFD Sender: No OFD packet to send [22:38:59]OFD Sender: No OFD packet to send [22:39:04]OFD Sender: No OFD packet to send [22:39:09]OFD Sender: No OFD packet to send [22:39:14]OFD Sender: No OFD packet to send [22:39:19]OFD Sender: No OFD packet to send [22:39:24]OFD Sender: No OFD packet to send [22:39:29]OFD Sender: No OFD packet to send [22:39:34]OFD Sender: No OFD packet to send [22:39:39]OFD Sender: No OFD packet to send [22:39:44]OFD Sender: No OFD packet to send [22:39:49]OFD Sender: No OFD packet to send [22:39:54]OFD Sender: No OFD packet to send [22:39:59]OFD Sender: No OFD packet to send [22:40:04]OFD Sender: No OFD packet to send [22:40:09]OFD Sender: No OFD packet to send [22:40:14]OFD Sender: No OFD packet to send [22:40:18]accept exits with 9 [22:40:18]New connection [22:40:18]New thread 3067346276 created [22:40:18]Thread 3067489636 joined [22:40:18]Waiting for new connection... [22:40:18] Sock 9.Parse request [22:40:18]Sock 9.Check first char [22:40:18]Sock 9.First char is OK [22:40:18]request: POST /json_proto HTTP/1.0 [22:40:18]Method: POST [22:40:18]URL: /json_proto [22:40:18]Method is POST - this is cgi request [22:40:18]url: /json_proto [22:40:18]query_string will be loaded in cgi processing [22:40:18]execute_cgi json_proto POST (null) [22:40:18]execute_cgi path=json_proto method=POST [22:40:18]POST find Content-Length [22:40:18]Host: 172.17.51.3:8080 [22:40:18]Content-Length: 677 [22:40:18]Content-Type: application/json [22:40:18] [22:40:18]POST finish read [22:40:18]Found Content-Length = 677 [22:40:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342895", "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" : 8.090, "sum" : 600.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:40:18]execute_script... [22:40: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)342895", "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" : 8.090, "sum" : 600.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:40:18]POST & json_proto [22:40:18]process_json_proto [22:40:18]json parsed OK: [22:40:18]protocol is kg_v1.0 [22:40:18]action value=close_receipt [22:40:18]process_action close_receipt [22:40:18]cmd_close_receipt [22:40:18]MH_GetDate [22:40:18]Write to MH i2c: F0 00 00 0F 1A 18 [22:40:18]Write i2c OK [22:40:18]MH_I2C_Read... [22:40:18]Read from MH i2c: F0 [22:40:18]MH_I2C_Read... [22:40:18]Read from MH i2c: F0 09 00 [22:40:18]MH_I2C_Read... [22:40:18]Read from MH i2c: F0 09 00 0F 1A 00 D4 86 15 67 04 C1 95 66 B7 [22:40:18]GetLastDocTimeStamp 1729462326 [22:40:18]current date 1729464020 [22:40:18]FM_GetShiftState [22:40:18]SAM_PROTO_GetShiftState [22:40:18]wFMCommunicate request_size=4 [22:40:18]MH_SAM_APDU [22:40:18]CAPDU: 80 13 01 00 [22:40:18]Write to MH i2c: E2 08 00 10 1A 80 13 01 00 00 00 00 00 A7 [22:40:18]Write i2c OK [22:40:18]MH_I2C_Read... [22:40:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:40:18]Read from MH i2c: E2 [22:40:18]MH_I2C_Read... [22:40:18]Read from MH i2c: E2 0E 00 [22:40:18]MH_I2C_Read... [22:40:18]Read from MH i2c: E2 0E 00 10 1A 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 8D [22:40:18]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [22:40:18]wFMCommunicate OK [22:40:18]SAM_PROTO_GetShiftState done [22:40:18]FM_GetShiftState done [22:40:18]opened in 1729384718 [22:40:18]opened+sec_in_day 1729471118 [22:40:18]quantity*price = 60027 [22:40:18]sum+1 = 60029 [22:40:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.75 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 273 20.10.2024 22:40 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30491 ФПД: 150315229386447 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T224020&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30491&fm=150315229386447&tin=02508201610067®Number=0000000000186857&sum=60000 [22:40:19]StoreToDocumentArchive [22:40:19]shift 114 fd 30491 [22:40:19]save to /storage/0114/doc_00030491 [22:40:19]save last doc name /storage/0114/doc_00030491 to /storage/kkm_last_doc_name [22:40:19]save OK [22:40:19]Clear old archive folders... [22:40:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:40:19]tlvbuf is 01DEAA40 [22:40:19]SAM_PROTO_ClearQueue [22:40:19]wFMCommunicate request_size=4 [22:40:19]MH_SAM_APDU [22:40:19]CAPDU: 80 09 00 00 [22:40:19]Write to MH i2c: E2 08 00 1D 1A 80 09 00 00 00 00 00 00 A9 [22:40:19]Write i2c OK [22:40:19]MH_I2C_Read... [22:40:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:40:19]Read from MH i2c: E2 [22:40:19]MH_I2C_Read... [22:40:19]Read from MH i2c: E2 03 00 [22:40:19]MH_I2C_Read... [22:40:19]Read from MH i2c: E2 03 00 1D 1A 00 90 00 AB [22:40:19]RAPDU: 90 00 [22:40:19]wFMCommunicate OK [22:40:19]SAM_PROTO_ClearQueue done [22:40:19]KKMCreateOFDPacket [22:40:19]OFDProtocolAddRootSTLVToBuf [22:40:19]FM_MakeSignedData [22:40:19]FM_MakeSignedData [22:40:19]SAM_PROTO_SignData [22:40:19]wFMCommunicate request_size=4 [22:40:19]MH_SAM_APDU [22:40:19]CAPDU: 80 0D 01 02 [22:40:19]Write to MH i2c: E2 08 00 1E 1A 80 0D 01 02 00 00 00 00 B1 [22:40:19]Write i2c OK [22:40:19]MH_I2C_Read... [22:40:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:40:19]Read from MH i2c: E2 [22:40:19]MH_I2C_Read... [22:40:19]Read from MH i2c: E2 03 00 [22:40:19]MH_I2C_Read... [22:40:19]Read from MH i2c: E2 03 00 1E 1A 00 90 00 AC [22:40:19]RAPDU: 90 00 [22:40:19]wFMCommunicate OK [22:40:19]wFMCommunicate request_size=255 [22:40:19]MH_SAM_APDU [22:40: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 01 00 00 F4 03 04 00 D4 86 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 77 00 00 35 04 06 00 88 [22:40:19]Write to MH i2c: E2 02 01 1F 1A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 01 00 00 F4 03 04 00 D4 86 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 77 00 00 35 04 06 00 88 00 00 15 [22:40:19]Write i2c OK [22:40:19]MH_I2C_Read... [22:40:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:40:20]Read from MH i2c: E2 [22:40:20]MH_I2C_Read... [22:40:20]Read from MH i2c: E2 03 00 [22:40:20]MH_I2C_Read... [22:40:20]Read from MH i2c: E2 03 00 1F 1A 00 90 00 AD [22:40:20]RAPDU: 90 00 [22:40:20]wFMCommunicate OK [22:40:20]wFMCommunicate request_size=10 [22:40:20]MH_SAM_APDU [22:40:20]CAPDU: 80 0D 02 02 05 B5 FD DA 16 CF [22:40:20]Write to MH i2c: E2 0D 00 20 1A 80 0D 02 02 05 00 B5 FD DA 16 CF 00 00 2F [22:40:20]Write i2c OK [22:40:20]MH_I2C_Read... [22:40:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:40:20]Read from MH i2c: E2 [22:40:20]MH_I2C_Read... [22:40:20]Read from MH i2c: E2 03 00 [22:40:20]MH_I2C_Read... [22:40:20]Read from MH i2c: E2 03 00 20 1A 00 90 00 AE [22:40:20]RAPDU: 90 00 [22:40:20]wFMCommunicate OK [22:40:20]wFMCommunicate request_size=4 [22:40:20]MH_SAM_APDU [22:40:20]CAPDU: 80 0D 03 02 [22:40:20]Write to MH i2c: E2 08 00 21 1A 80 0D 03 02 00 00 00 00 B6 [22:40:20]Write i2c OK [22:40:20]MH_I2C_Read... [22:40:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:40:20]Read from MH i2c: E2 [22:40:20]MH_I2C_Read... [22:40:20]Read from MH i2c: E2 0B 00 [22:40:20]MH_I2C_Read... [22:40:20]Read from MH i2c: E2 0B 00 21 1A 00 AA 81 15 9C 60 CD 46 EC 90 00 F2 [22:40:20]RAPDU: AA 81 15 9C 60 CD 46 EC 90 00 [22:40:20]wFMCommunicate OK [22:40:20]SAM_PROTO_SignData done [22:40:20]FM_MakeSignedData done [22:40:20]CreateOFDProtocolMessage [22:40:20]wFMCommunicate request_size=4 [22:40:20]MH_SAM_APDU [22:40:20]CAPDU: 80 11 00 00 [22:40:20]Write to MH i2c: E2 08 00 22 1A 80 11 00 00 00 00 00 00 B6 [22:40:20]Write i2c OK [22:40:20]MH_I2C_Read... [22:40:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:40:20]Read from MH i2c: E2 [22:40:20]MH_I2C_Read... [22:40:20]Read from MH i2c: E2 17 00 [22:40:20]MH_I2C_Read... [22:40:20]Read from MH i2c: E2 17 00 22 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 04 [22:40:20]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:20]wFMCommunicate OK [22:40:20]CreateOFDProtocolMessage done [22:40:20]OFDSenderStorePacket 30491 [22:40:20]StoreOFDPacket docnum=30491 [22:40: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 22 74 07 01 AD 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 01 00 00 F4 03 04 00 D4 86 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 77 00 00 35 04 06 00 88 B5 FD DA 16 CF AA 81 15 9C 60 CD 46 EC [22:40:20]CheckFolder [22:40:20]dirname=/storage/ofd_packets [22:40:20]CheckFolder done [22:40:20]ProducePacketName [22:40:20]name=ofd_packets/00030491 [22:40:20]NVStorageSaveData ofd_packets/00030491 [22:40:20]File name is /storage/ofd_packets/00030491 [22:40:20]Write 301 bytes [22:40:20]NVStorageSaveData done [22:40:20]OFDSenderStorePacket done [22:40:20]KKMCreateOFDPacket done [22:40:20]NVStorageSaveData kkm_last_timestamp [22:40:20]File name is /storage/kkm_last_timestamp [22:40:20]Write 4 bytes [22:40:20]NVStorageSaveData done [22:40:20]ExternCall_PrintAddStr [22:40:20]wPrintStart [22:40:20]Write to MH i2c: 01 00 00 23 1A 3D [22:40:20]Write i2c OK [22:40:20]MH_I2C_Read... [22:40:20]Read from MH i2c: 01 [22:40:20]MH_I2C_Read... [22:40:20]Read from MH i2c: 01 07 00 [22:40:20]MH_I2C_Read... [22:40:20]Read from MH i2c: 01 07 00 23 1A 00 00 00 00 00 FF 0F 52 [22:40:20]RasterBufferAndPrint [22:40:20]line Счет N : (1)342895 [22:40:20]line ИНН: 02508201610067 [22:40:20]line Контрольно-Кассовый Чек [22:40:20]line ПРОДАЖА [22:40:20]line ТРК (МРК, ГНК) : 62 [22:40:20]line Товар: 2710124500 [22:40:20]line Аи-95-К-3 [22:40:20]line 8.090 * 74.20 [22:40:20]line = 600.28 [22:40:20]line НДС 12% НСП 1% [22:40:20]line > о реализуемом товаре [22:40:20]line ОКРУГЛЕНИЕ: -0.28 [22:40:20]line ИТОГО: 600.00 [22:40:20]line Внесено: 600.00 [22:40:20]line СДАЧА: 0.00 [22:40:20]line НСП 1% : 5.31 [22:40:20]line НДС 12% : 63.75 [22:40:20]line Наличными: 600.00 [22:40:20]line Безнал.: 0.00 [22:40:20]line Место: АЗС № 78 "Партнер Нефть" [22:40:20]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [22:40:20]line СНО: Общий режим [22:40:20]line Чек 273 20.10.2024 22:40 [22:40:20]line Смена: 114 ФФД: 1.0 [22:40:20]line ЗНМ: 0300000137 [22:40:20]line РНМ: 0000000000186857 [22:40:20]line Версия ККМ: v1.0 [22:40:20]line ФМ: 0000000002094219 [22:40:20]line ФД: 30491 [22:40:20]line ФПД: 150315229386447 [22:40:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T224020&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30491&fm=150315229386447&tin=02508201610067®Number=0000000000186857&sum=60000 [22:40:20]OFD Sender: Processing packet 30491 [packets to send 10, broken 9] [22:40:20]ProducePacketName [22:40:20]name=ofd_packets/00030491 [22:40:20]OFD Sender: To server: pG, [22:40:20]CommunicateWithHost lk.salyk.kg:30040 [22:40:20]ConnectInit lk.salyk.kg [22:40:20]written 0, free lines is 4095 [22:40:20]Connected sock=10 [22:40: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 22 74 07 01 AD 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 01 00 00 F4 03 04 00 D4 86 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 77 00 00 35 04 06 00 88 B5 FD DA 16 CF AA 81 15 9C 60 CD 46 EC [22:40: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 9D E5 47 00 59 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 1B 77 00 00 F4 03 04 00 56 31 15 67 B6 04 01 00 00 51 0D F0 F7 7C 53 9F BE [22:40:21]CommunicateWithHost err = 0 [22:40:21]CheckOFDResponse [22:40:21]1017 (14) - 77093643461234 [22:40:21]1041 (16) - 0000000002094219 [22:40:21]1040 (4) - 30491 [22:40:21]1012 (4) - 20.10.2024 16:35 [22:40:21]1206 (1) - 0 [22:40:21]OFD Sender: Remove packet 30491 [22:40:21]ProducePacketName [22:40:21]name=ofd_packets/00030491 [22:40:21]NVStorageDeleteData [22:40:21]Write to MH i2c: 01 00 00 4E 1A 68 [22:40:21]Write i2c OK [22:40:21]MH_I2C_Read... [22:40:21]Read from MH i2c: 01 [22:40:21]MH_I2C_Read... [22:40:21]Read from MH i2c: 01 07 00 [22:40:21]MH_I2C_Read... [22:40:21]Read from MH i2c: 01 07 00 4E 1A 00 00 00 00 00 F1 0C 6C [22:40:21]RasterBufferAndPrint [22:40:21]line [22:40:21]line [22:40:21]line [22:40:21]line [22:40:21]line [22:40:21]written 0, free lines is 3319 [22:40:21]MH_Cut [22:40:21]Write to MH i2c: D1 01 00 55 1A 01 41 [22:40:21]Write i2c OK [22:40:21]MH_I2C_Read... [22:40:21]Read from MH i2c: D1 [22:40:21]MH_I2C_Read... [22:40:21]Read from MH i2c: D1 01 00 [22:40:21]MH_I2C_Read... [22:40:21]Read from MH i2c: D1 01 00 55 1A 00 40 [22:40:21]Write to MH i2c: 01 00 00 56 1A 70 [22:40:21]Write i2c OK [22:40:21]MH_I2C_Read... [22:40:21]OFD Sender: No OFD packet to send [22:40:21]*** Cut start [22:40:21]*** Partial cut [22:40:21]*** CUTSNS_PIN = 1 [22:40:21]*** CUTSNS_PIN = 0 [22:40:22]*** Brake cut motor [22:40:22]Read from MH i2c: 01 [22:40:22]MH_I2C_Read... [22:40:22]*** Stop cut motor [22:40:22]*** Cut end [22:40:22]Read from MH i2c: 01 07 00 [22:40:22]MH_I2C_Read... [22:40:22]Read from MH i2c: 01 07 00 56 1A 00 00 00 00 00 FF 0F 85 [22:40:22]process_action close_receipt done [22:40:22]requested_data is exist [22:40:22]produce_requested_data [22:40:22]requested_item fm.sn is exist - process it [22:40:22]wFMCommunicate request_size=4 [22:40:22]MH_SAM_APDU [22:40:22]CAPDU: 80 11 00 00 [22:40:22]Write to MH i2c: E2 08 00 57 1A 80 11 00 00 00 00 00 00 EB [22:40:22]Write i2c OK [22:40:22]MH_I2C_Read... [22:40:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:40:22]Read from MH i2c: E2 [22:40:22]MH_I2C_Read... [22:40:22]Read from MH i2c: E2 17 00 [22:40:22]MH_I2C_Read... [22:40:22]Read from MH i2c: E2 17 00 57 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 39 [22:40: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:40:22]wFMCommunicate OK [22:40:22]requested_item fd.num is exist - process it [22:40:22]SAM_PROTO_GetFieldsCounters [22:40:22]wFMCommunicate request_size=4 [22:40:22]MH_SAM_APDU [22:40:22]CAPDU: 80 13 00 00 [22:40:22]Write to MH i2c: E2 08 00 58 1A 80 13 00 00 00 00 00 00 EE [22:40:22]Write i2c OK [22:40:22]MH_I2C_Read... [22:40:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:40:22]Read from MH i2c: E2 [22:40:22]MH_I2C_Read... [22:40:22]Read from MH i2c: E2 62 00 [22:40:22]MH_I2C_Read... [22:40:22]Read from MH i2c: E2 62 00 58 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 77 00 00 0E 04 04 00 72 00 00 00 12 04 04 00 11 01 00 00 5E 04 04 00 11 01 00 00 57 04 04 00 12 01 00 00 19 04 04 00 00 00 00 00 90 00 4E [22:40: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 1B 77 00 00 0E 04 04 00 72 00 00 00 12 04 04 00 11 01 00 00 5E 04 04 00 11 01 00 00 57 04 04 00 12 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:40:22]wFMCommunicate OK [22:40:22]SAM_PROTO_GetFieldsCounters done [22:40:22]requested_item shift.num is exist - process it [22:40:22]requested_item shift.opened is exist - process it [22:40:22]req_shift_opened [22:40:22]FM_GetShiftState [22:40:22]SAM_PROTO_GetShiftState [22:40:22]wFMCommunicate request_size=4 [22:40:22]MH_SAM_APDU [22:40:22]CAPDU: 80 13 01 00 [22:40:22]Write to MH i2c: E2 08 00 59 1A 80 13 01 00 00 00 00 00 F0 [22:40:22]Write i2c OK [22:40:22]MH_I2C_Read... [22:40:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:40:22]Read from MH i2c: E2 [22:40:22]MH_I2C_Read... [22:40:22]Read from MH i2c: E2 0E 00 [22:40:22]MH_I2C_Read... [22:40:22]Read from MH i2c: E2 0E 00 59 1A 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 D6 [22:40:22]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [22:40:22]wFMCommunicate OK [22:40:22]SAM_PROTO_GetShiftState done [22:40:22]FM_GetShiftState done [22:40:22]req_shift_opened done [22:40:22]requested_item shift.open_date is exist - process it [22:40:22]req_shift_open_date [22:40:22]req_shift_open_date done [22:40:22]produce_requested_data done [22:40:22]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30491,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [22:40:22]process_action_free close_receipt [22:40:22]json_value_free [22:40:22]json_value_free done [22:40:22]process_json_proto returns [22:40:22]Send response to host [22:40:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30491,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [22:40:22]free response buf [22:40:22]execute_script done [22:40:22]execute_script returns [22:40:22]free content buf [22:40:22]Sock 9.Close socket [22:40:22]Sock 9.Thread stoped [22:40:26]OFD Sender: No OFD packet to send [22:40:31]accept exits with 7 [22:40:31]New connection [22:40:31]New thread 3067489636 created [22:40:31]Thread 3067346276 joined [22:40:31]Waiting for new connection... [22:40:31] Sock 7.Parse request [22:40:31]Sock 7.Check first char [22:40:31]Sock 7.First char is OK [22:40:31]request: POST /json_proto HTTP/1.0 [22:40:31]Method: POST [22:40:31]URL: /json_proto [22:40:31]Method is POST - this is cgi request [22:40:31]url: /json_proto [22:40:31]query_string will be loaded in cgi processing [22:40:31]execute_cgi json_proto POST (null) [22:40:31]execute_cgi path=json_proto method=POST [22:40:31]POST find Content-Length [22:40:31]Host: 172.17.51.3:8080 [22:40:31]Content-Length: 677 [22:40:31]Content-Type: application/json [22:40:31] [22:40:31]POST finish read [22:40:31]Found Content-Length = 677 [22:40:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342896", "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:40:31]execute_script... [22:40: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)342896", "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:40:31]POST & json_proto [22:40:31]process_json_proto [22:40:31]json parsed OK: [22:40:31]protocol is kg_v1.0 [22:40:31]action value=close_receipt [22:40:31]process_action close_receipt [22:40:31]cmd_close_receipt [22:40:31]MH_GetDate [22:40:31]Write to MH i2c: F0 00 00 5A 1A 63 [22:40:31]Write i2c OK [22:40:31]MH_I2C_Read... [22:40:31]Read from MH i2c: F0 [22:40:31]MH_I2C_Read... [22:40:31]Read from MH i2c: F0 09 00 [22:40:31]MH_I2C_Read... [22:40:31]Read from MH i2c: F0 09 00 5A 1A 00 E0 86 15 67 04 C1 95 66 0E [22:40:31]GetLastDocTimeStamp 1729464020 [22:40:31]current date 1729464032 [22:40:31]FM_GetShiftState [22:40:31]SAM_PROTO_GetShiftState [22:40:31]wFMCommunicate request_size=4 [22:40:31]MH_SAM_APDU [22:40:31]CAPDU: 80 13 01 00 [22:40:31]Write to MH i2c: E2 08 00 5B 1A 80 13 01 00 00 00 00 00 F2 [22:40:31]Write i2c OK [22:40:31]MH_I2C_Read... [22:40:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:40:31]Read from MH i2c: E2 [22:40:31]MH_I2C_Read... [22:40:31]Read from MH i2c: E2 0E 00 [22:40:31]MH_I2C_Read... [22:40:31]Read from MH i2c: E2 0E 00 5B 1A 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 D8 [22:40:31]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [22:40:31]wFMCommunicate OK [22:40:31]SAM_PROTO_GetShiftState done [22:40:31]FM_GetShiftState done [22:40:31]opened in 1729384718 [22:40:31]opened+sec_in_day 1729471118 [22:40:31]quantity*price = 50041 [22:40:31]sum+1 = 50042 [22:40:31]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 СНО: Общий режим Чек 274 20.10.2024 22:40 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30492 ФПД: 112490459751603 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T224032&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30492&fm=112490459751603&tin=02508201610067®Number=0000000000186857&sum=50000 [22:40:32]StoreToDocumentArchive [22:40:32]shift 114 fd 30492 [22:40:32]save to /storage/0114/doc_00030492 [22:40:32]save last doc name /storage/0114/doc_00030492 to /storage/kkm_last_doc_name [22:40:32]save OK [22:40:32]Clear old archive folders... [22:40:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:40:32]tlvbuf is B6F5D620 [22:40:32]SAM_PROTO_ClearQueue [22:40:32]wFMCommunicate request_size=4 [22:40:32]MH_SAM_APDU [22:40:32]CAPDU: 80 09 00 00 [22:40:32]Write to MH i2c: E2 08 00 68 1A 80 09 00 00 00 00 00 00 F4 [22:40:32]Write i2c OK [22:40:32]MH_I2C_Read... [22:40:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:40:32]Read from MH i2c: E2 [22:40:32]MH_I2C_Read... [22:40:32]Read from MH i2c: E2 03 00 [22:40:32]MH_I2C_Read... [22:40:32]Read from MH i2c: E2 03 00 68 1A 00 90 00 F6 [22:40:32]RAPDU: 90 00 [22:40:32]wFMCommunicate OK [22:40:32]SAM_PROTO_ClearQueue done [22:40:32]KKMCreateOFDPacket [22:40:32]OFDProtocolAddRootSTLVToBuf [22:40:32]FM_MakeSignedData [22:40:32]FM_MakeSignedData [22:40:32]SAM_PROTO_SignData [22:40:32]wFMCommunicate request_size=4 [22:40:32]MH_SAM_APDU [22:40:32]CAPDU: 80 0D 01 02 [22:40:32]Write to MH i2c: E2 08 00 69 1A 80 0D 01 02 00 00 00 00 FC [22:40:32]Write i2c OK [22:40:32]MH_I2C_Read... [22:40:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:40:32]Read from MH i2c: E2 [22:40:32]MH_I2C_Read... [22:40:32]Read from MH i2c: E2 03 00 [22:40:32]MH_I2C_Read... [22:40:32]Read from MH i2c: E2 03 00 69 1A 00 90 00 F7 [22:40:32]RAPDU: 90 00 [22:40:32]wFMCommunicate OK [22:40:32]wFMCommunicate request_size=255 [22:40:32]MH_SAM_APDU [22:40: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 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 12 01 00 00 F4 03 04 00 E0 86 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 77 00 00 35 04 06 00 66 [22:40:32]Write to MH i2c: E2 02 01 6A 1A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 12 01 00 00 F4 03 04 00 E0 86 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 77 00 00 35 04 06 00 66 00 00 ED [22:40:32]Write i2c OK [22:40:32]MH_I2C_Read... [22:40:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:40:33]Read from MH i2c: E2 [22:40:33]MH_I2C_Read... [22:40:33]Read from MH i2c: E2 03 00 [22:40:33]MH_I2C_Read... [22:40:33]Read from MH i2c: E2 03 00 6A 1A 00 90 00 F8 [22:40:33]RAPDU: 90 00 [22:40:33]wFMCommunicate OK [22:40:33]wFMCommunicate request_size=10 [22:40:33]MH_SAM_APDU [22:40:33]CAPDU: 80 0D 02 02 05 4F 39 E4 E4 B3 [22:40:33]Write to MH i2c: E2 0D 00 6B 1A 80 0D 02 02 05 00 4F 39 E4 E4 B3 00 00 0C [22:40:33]Write i2c OK [22:40:33]MH_I2C_Read... [22:40:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:40:33]Read from MH i2c: E2 [22:40:33]MH_I2C_Read... [22:40:33]Read from MH i2c: E2 03 00 [22:40:33]MH_I2C_Read... [22:40:33]Read from MH i2c: E2 03 00 6B 1A 00 90 00 F9 [22:40:33]RAPDU: 90 00 [22:40:33]wFMCommunicate OK [22:40:33]wFMCommunicate request_size=4 [22:40:33]MH_SAM_APDU [22:40:33]CAPDU: 80 0D 03 02 [22:40:33]Write to MH i2c: E2 08 00 6C 1A 80 0D 03 02 00 00 00 00 01 [22:40:33]Write i2c OK [22:40:33]MH_I2C_Read... [22:40:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:40:33]Read from MH i2c: E2 [22:40:33]MH_I2C_Read... [22:40:33]Read from MH i2c: E2 0B 00 [22:40:33]MH_I2C_Read... [22:40:33]Read from MH i2c: E2 0B 00 6C 1A 00 AC 60 F9 93 78 71 64 57 90 00 3E [22:40:33]RAPDU: AC 60 F9 93 78 71 64 57 90 00 [22:40:33]wFMCommunicate OK [22:40:33]SAM_PROTO_SignData done [22:40:33]FM_MakeSignedData done [22:40:33]CreateOFDProtocolMessage [22:40:33]wFMCommunicate request_size=4 [22:40:33]MH_SAM_APDU [22:40:33]CAPDU: 80 11 00 00 [22:40:33]Write to MH i2c: E2 08 00 6D 1A 80 11 00 00 00 00 00 00 01 [22:40:33]Write i2c OK [22:40:33]MH_I2C_Read... [22:40:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:40:33]Read from MH i2c: E2 [22:40:33]MH_I2C_Read... [22:40:33]Read from MH i2c: E2 17 00 [22:40:33]MH_I2C_Read... [22:40:33]Read from MH i2c: E2 17 00 6D 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 4F [22:40: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:40:33]wFMCommunicate OK [22:40:33]CreateOFDProtocolMessage done [22:40:33]OFDSenderStorePacket 30492 [22:40:33]StoreOFDPacket docnum=30492 [22:40: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 5B E0 07 01 66 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 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 12 01 00 00 F4 03 04 00 E0 86 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 77 00 00 35 04 06 00 66 4F 39 E4 E4 B3 AC 60 F9 93 78 71 64 57 [22:40:33]CheckFolder [22:40:33]dirname=/storage/ofd_packets [22:40:33]CheckFolder done [22:40:33]ProducePacketName [22:40:33]name=ofd_packets/00030492 [22:40:33]NVStorageSaveData ofd_packets/00030492 [22:40:33]File name is /storage/ofd_packets/00030492 [22:40:33]Write 301 bytes [22:40:33]NVStorageSaveData done [22:40:33]OFDSenderStorePacket done [22:40:33]KKMCreateOFDPacket done [22:40:33]NVStorageSaveData kkm_last_timestamp [22:40:33]File name is /storage/kkm_last_timestamp [22:40:33]Write 4 bytes [22:40:33]NVStorageSaveData done [22:40:33]ExternCall_PrintAddStr [22:40:33]wPrintStart [22:40:33]Write to MH i2c: 01 00 00 6E 1A 88 [22:40:33]Write i2c OK [22:40:33]MH_I2C_Read... [22:40:33]Read from MH i2c: 01 [22:40:33]MH_I2C_Read... [22:40:33]Read from MH i2c: 01 07 00 [22:40:33]MH_I2C_Read... [22:40:33]Read from MH i2c: 01 07 00 6E 1A 00 00 00 00 00 FF 0F 9D [22:40:33]RasterBufferAndPrint [22:40:33]line Счет N : (1)342896 [22:40:33]line ИНН: 02508201610067 [22:40:33]line Контрольно-Кассовый Чек [22:40:33]line ПРОДАЖА [22:40:33]line ТРК (МРК, ГНК) : 43 [22:40:33]line Товар: 2710124130 [22:40:33]line Аи-92-К-2 [22:40:33]line 7.480 * 66.90 [22:40:33]line = 500.41 [22:40:33]line НДС 12% НСП 1% [22:40:33]line > о реализуемом товаре [22:40:33]line ОКРУГЛЕНИЕ: -0.41 [22:40:33]line ИТОГО: 500.00 [22:40:33]line Внесено: 500.00 [22:40:33]line СДАЧА: 0.00 [22:40:33]line НСП 1% : 4.43 [22:40:33]line НДС 12% : 53.14 [22:40:33]line Наличными: 500.00 [22:40:33]line Безнал.: 0.00 [22:40:33]line Место: АЗС № 78 "Партнер Нефть" [22:40:33]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [22:40:33]line СНО: Общий режим [22:40:33]line Чек 274 20.10.2024 22:40 [22:40:33]line Смена: 114 ФФД: 1.0 [22:40:33]line ЗНМ: 0300000137 [22:40:33]line РНМ: 0000000000186857 [22:40:33]line Версия ККМ: v1.0 [22:40:33]line ФМ: 0000000002094219 [22:40:33]line ФД: 30492 [22:40:33]line ФПД: 112490459751603 [22:40:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T224032&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30492&fm=112490459751603&tin=02508201610067®Number=0000000000186857&sum=50000 [22:40:33]OFD Sender: Processing packet 30492 [packets to send 10, broken 9] [22:40:33]ProducePacketName [22:40:33]name=ofd_packets/00030492 [22:40:33]OFD Sender: To server: pG, [22:40:33]CommunicateWithHost lk.salyk.kg:30040 [22:40:33]ConnectInit lk.salyk.kg [22:40:33]written 0, free lines is 4095 [22:40:33]Connected sock=9 [22:40: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 5B E0 07 01 66 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 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 12 01 00 00 F4 03 04 00 E0 86 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 77 00 00 35 04 06 00 66 4F 39 E4 E4 B3 AC 60 F9 93 78 71 64 57 [22:40: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 3C F9 47 00 A6 B9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 1C 77 00 00 F4 03 04 00 63 31 15 67 B6 04 01 00 00 B5 3D D7 68 6C 4C 57 EB [22:40:33]CommunicateWithHost err = 0 [22:40:33]CheckOFDResponse [22:40:33]1017 (14) - 77093643461234 [22:40:33]1041 (16) - 0000000002094219 [22:40:33]1040 (4) - 30492 [22:40:33]1012 (4) - 20.10.2024 16:35 [22:40:33]1206 (1) - 0 [22:40:33]OFD Sender: Remove packet 30492 [22:40:33]ProducePacketName [22:40:33]name=ofd_packets/00030492 [22:40:33]NVStorageDeleteData [22:40:33]Write to MH i2c: 01 00 00 99 1A B3 [22:40:33]Write i2c OK [22:40:33]MH_I2C_Read... [22:40:33]Read from MH i2c: 01 [22:40:33]MH_I2C_Read... [22:40:33]Read from MH i2c: 01 07 00 [22:40:33]MH_I2C_Read... [22:40:33]Read from MH i2c: 01 07 00 99 1A 00 00 00 00 00 EC 0C B2 [22:40:33]RasterBufferAndPrint [22:40:33]line [22:40:33]line [22:40:33]line [22:40:33]line [22:40:33]line [22:40:33]written 0, free lines is 3314 [22:40:34]MH_Cut [22:40:34]Write to MH i2c: D1 01 00 A0 1A 01 8C [22:40:34]Write i2c OK [22:40:34]MH_I2C_Read... [22:40:34]Read from MH i2c: D1 [22:40:34]MH_I2C_Read... [22:40:34]Read from MH i2c: D1 01 00 [22:40:34]MH_I2C_Read... [22:40:34]Read from MH i2c: D1 01 00 A0 1A 00 8B [22:40:34]Write to MH i2c: 01 00 00 A1 1A BB [22:40:34]Write i2c OK [22:40:34]MH_I2C_Read... [22:40:34]OFD Sender: No OFD packet to send [22:40:34]*** Cut start [22:40:34]*** Partial cut [22:40:34]*** CUTSNS_PIN = 1 [22:40:34]*** CUTSNS_PIN = 0 [22:40:34]*** Brake cut motor [22:40:35]Read from MH i2c: 01 [22:40:35]MH_I2C_Read... [22:40:35]*** Stop cut motor [22:40:35]*** Cut end [22:40:35]Read from MH i2c: 01 07 00 [22:40:35]MH_I2C_Read... [22:40:35]Read from MH i2c: 01 07 00 A1 1A 00 00 00 00 00 FF 0F D0 [22:40:35]process_action close_receipt done [22:40:35]requested_data is exist [22:40:35]produce_requested_data [22:40:35]requested_item fm.sn is exist - process it [22:40:35]wFMCommunicate request_size=4 [22:40:35]MH_SAM_APDU [22:40:35]CAPDU: 80 11 00 00 [22:40:35]Write to MH i2c: E2 08 00 A2 1A 80 11 00 00 00 00 00 00 36 [22:40:35]Write i2c OK [22:40:35]MH_I2C_Read... [22:40:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:40:35]Read from MH i2c: E2 [22:40:35]MH_I2C_Read... [22:40:35]Read from MH i2c: E2 17 00 [22:40:35]MH_I2C_Read... [22:40:35]Read from MH i2c: E2 17 00 A2 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 84 [22:40: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:40:35]wFMCommunicate OK [22:40:35]requested_item fd.num is exist - process it [22:40:35]SAM_PROTO_GetFieldsCounters [22:40:35]wFMCommunicate request_size=4 [22:40:35]MH_SAM_APDU [22:40:35]CAPDU: 80 13 00 00 [22:40:35]Write to MH i2c: E2 08 00 A3 1A 80 13 00 00 00 00 00 00 39 [22:40:35]Write i2c OK [22:40:35]MH_I2C_Read... [22:40:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:40:35]Read from MH i2c: E2 [22:40:35]MH_I2C_Read... [22:40:35]Read from MH i2c: E2 62 00 [22:40:35]MH_I2C_Read... [22:40:35]Read from MH i2c: E2 62 00 A3 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 77 00 00 0E 04 04 00 72 00 00 00 12 04 04 00 12 01 00 00 5E 04 04 00 12 01 00 00 57 04 04 00 13 01 00 00 19 04 04 00 00 00 00 00 90 00 9D [22:40: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 1C 77 00 00 0E 04 04 00 72 00 00 00 12 04 04 00 12 01 00 00 5E 04 04 00 12 01 00 00 57 04 04 00 13 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:40:35]wFMCommunicate OK [22:40:35]SAM_PROTO_GetFieldsCounters done [22:40:35]requested_item shift.num is exist - process it [22:40:35]requested_item shift.opened is exist - process it [22:40:35]req_shift_opened [22:40:35]FM_GetShiftState [22:40:35]SAM_PROTO_GetShiftState [22:40:35]wFMCommunicate request_size=4 [22:40:35]MH_SAM_APDU [22:40:35]CAPDU: 80 13 01 00 [22:40:35]Write to MH i2c: E2 08 00 A4 1A 80 13 01 00 00 00 00 00 3B [22:40:35]Write i2c OK [22:40:35]MH_I2C_Read... [22:40:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:40:35]Read from MH i2c: E2 [22:40:35]MH_I2C_Read... [22:40:35]Read from MH i2c: E2 0E 00 [22:40:35]MH_I2C_Read... [22:40:35]Read from MH i2c: E2 0E 00 A4 1A 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 21 [22:40:35]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [22:40:35]wFMCommunicate OK [22:40:35]SAM_PROTO_GetShiftState done [22:40:35]FM_GetShiftState done [22:40:35]req_shift_opened done [22:40:35]requested_item shift.open_date is exist - process it [22:40:35]req_shift_open_date [22:40:35]req_shift_open_date done [22:40:35]produce_requested_data done [22:40:35]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30492,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [22:40:35]process_action_free close_receipt [22:40:35]json_value_free [22:40:35]json_value_free done [22:40:35]process_json_proto returns [22:40:35]Send response to host [22:40:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30492,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [22:40:35]free response buf [22:40:35]execute_script done [22:40:35]execute_script returns [22:40:35]free content buf [22:40:35]Sock 7.Close socket [22:40:35]Sock 7.Thread stoped [22:40:39]OFD Sender: No OFD packet to send [22:40:44]OFD Sender: No OFD packet to send [22:40:49]OFD Sender: No OFD packet to send [22:40:54]OFD Sender: No OFD packet to send [22:40:59]OFD Sender: No OFD packet to send [22:41:04]OFD Sender: No OFD packet to send [22:41:09]OFD Sender: No OFD packet to send [22:41:14]OFD Sender: No OFD packet to send [22:41:19]OFD Sender: No OFD packet to send [22:41:24]OFD Sender: No OFD packet to send [22:41:29]OFD Sender: No OFD packet to send [22:41:34]OFD Sender: No OFD packet to send [22:41:39]OFD Sender: No OFD packet to send [22:41:44]OFD Sender: No OFD packet to send [22:41:49]OFD Sender: No OFD packet to send [22:41:54]OFD Sender: No OFD packet to send [22:41:59]OFD Sender: No OFD packet to send [22:42:04]OFD Sender: No OFD packet to send [22:42:09]OFD Sender: No OFD packet to send [22:42:14]OFD Sender: No OFD packet to send [22:42:19]OFD Sender: No OFD packet to send [22:42:24]OFD Sender: No OFD packet to send [22:42:29]OFD Sender: No OFD packet to send [22:42:34]OFD Sender: No OFD packet to send [22:42:39]OFD Sender: No OFD packet to send [22:42:44]OFD Sender: No OFD packet to send [22:42:49]OFD Sender: No OFD packet to send [22:42:54]OFD Sender: No OFD packet to send [22:42:59]OFD Sender: No OFD packet to send [22:43:04]OFD Sender: No OFD packet to send [22:43:09]OFD Sender: No OFD packet to send [22:43:14]OFD Sender: No OFD packet to send [22:43:19]OFD Sender: No OFD packet to send [22:43:24]OFD Sender: No OFD packet to send [22:43:29]OFD Sender: No OFD packet to send [22:43:34]OFD Sender: No OFD packet to send [22:43:39]OFD Sender: No OFD packet to send [22:43:44]OFD Sender: No OFD packet to send [22:43:49]OFD Sender: No OFD packet to send [22:43:54]OFD Sender: No OFD packet to send [22:43:59]OFD Sender: No OFD packet to send [22:44:04]OFD Sender: No OFD packet to send [22:44:05]accept exits with 10 [22:44:05]New connection [22:44:05]New thread 3067346276 created [22:44:05]Thread 3067489636 joined [22:44:05]Waiting for new connection... [22:44:05] Sock 10.Parse request [22:44:05]Sock 10.Check first char [22:44:05]Sock 10.First char is OK [22:44:05]request: POST /json_proto HTTP/1.0 [22:44:05]Method: POST [22:44:05]URL: /json_proto [22:44:05]Method is POST - this is cgi request [22:44:05]url: /json_proto [22:44:05]query_string will be loaded in cgi processing [22:44:05]execute_cgi json_proto POST (null) [22:44:05]execute_cgi path=json_proto method=POST [22:44:05]POST find Content-Length [22:44:05]Host: 172.17.51.3:8080 [22:44:05]Content-Length: 677 [22:44:05]Content-Type: application/json [22:44:05] [22:44:05]POST finish read [22:44:05]Found Content-Length = 677 [22:44:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342897", "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" ] } } [22:44:05]execute_script... [22:44: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)342897", "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" ] } } [22:44:05]POST & json_proto [22:44:05]process_json_proto [22:44:05]json parsed OK: [22:44:05]protocol is kg_v1.0 [22:44:05]action value=close_receipt [22:44:05]process_action close_receipt [22:44:05]cmd_close_receipt [22:44:05]MH_GetDate [22:44:05]Write to MH i2c: F0 00 00 A5 1A AE [22:44:05]Write i2c OK [22:44:05]MH_I2C_Read... [22:44:05]Read from MH i2c: F0 [22:44:05]MH_I2C_Read... [22:44:05]Read from MH i2c: F0 09 00 [22:44:05]MH_I2C_Read... [22:44:05]Read from MH i2c: F0 09 00 A5 1A 00 B7 87 15 67 04 C1 95 66 31 [22:44:05]GetLastDocTimeStamp 1729464032 [22:44:05]current date 1729464247 [22:44:05]FM_GetShiftState [22:44:05]SAM_PROTO_GetShiftState [22:44:05]wFMCommunicate request_size=4 [22:44:05]MH_SAM_APDU [22:44:05]CAPDU: 80 13 01 00 [22:44:05]Write to MH i2c: E2 08 00 A6 1A 80 13 01 00 00 00 00 00 3D [22:44:05]Write i2c OK [22:44:05]MH_I2C_Read... [22:44:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:44:05]Read from MH i2c: E2 [22:44:05]MH_I2C_Read... [22:44:05]Read from MH i2c: E2 0E 00 [22:44:05]MH_I2C_Read... [22:44:05]Read from MH i2c: E2 0E 00 A6 1A 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 23 [22:44:05]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [22:44:05]wFMCommunicate OK [22:44:05]SAM_PROTO_GetShiftState done [22:44:05]FM_GetShiftState done [22:44:05]opened in 1729384718 [22:44:05]opened+sec_in_day 1729471118 [22:44:05]quantity*price = 25020 [22:44:05]sum+1 = 25022 [22:44:05]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 СНО: Общий режим Чек 275 20.10.2024 22:44 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30493 ФПД: 21970801065476 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T224407&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30493&fm=21970801065476&tin=02508201610067®Number=0000000000186857&sum=25000 [22:44:07]StoreToDocumentArchive [22:44:07]shift 114 fd 30493 [22:44:07]save to /storage/0114/doc_00030493 [22:44:07]save last doc name /storage/0114/doc_00030493 to /storage/kkm_last_doc_name [22:44:07]save OK [22:44:07]Clear old archive folders... [22:44:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:44:07]tlvbuf is 01DAF810 [22:44:07]SAM_PROTO_ClearQueue [22:44:07]wFMCommunicate request_size=4 [22:44:07]MH_SAM_APDU [22:44:07]CAPDU: 80 09 00 00 [22:44:07]Write to MH i2c: E2 08 00 B3 1A 80 09 00 00 00 00 00 00 3F [22:44:07]Write i2c OK [22:44:07]MH_I2C_Read... [22:44:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:44:07]Read from MH i2c: E2 [22:44:07]MH_I2C_Read... [22:44:07]Read from MH i2c: E2 03 00 [22:44:07]MH_I2C_Read... [22:44:07]Read from MH i2c: E2 03 00 B3 1A 00 90 00 41 [22:44:07]RAPDU: 90 00 [22:44:07]wFMCommunicate OK [22:44:07]SAM_PROTO_ClearQueue done [22:44:07]KKMCreateOFDPacket [22:44:07]OFDProtocolAddRootSTLVToBuf [22:44:07]FM_MakeSignedData [22:44:07]FM_MakeSignedData [22:44:07]SAM_PROTO_SignData [22:44:07]wFMCommunicate request_size=4 [22:44:07]MH_SAM_APDU [22:44:07]CAPDU: 80 0D 01 02 [22:44:07]Write to MH i2c: E2 08 00 B4 1A 80 0D 01 02 00 00 00 00 47 [22:44:07]Write i2c OK [22:44:07]MH_I2C_Read... [22:44:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:44:07]Read from MH i2c: E2 [22:44:07]MH_I2C_Read... [22:44:07]Read from MH i2c: E2 03 00 [22:44:07]MH_I2C_Read... [22:44:07]Read from MH i2c: E2 03 00 B4 1A 00 90 00 42 [22:44:07]RAPDU: 90 00 [22:44:07]wFMCommunicate OK [22:44:07]wFMCommunicate request_size=255 [22:44:07]MH_SAM_APDU [22:44: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 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 13 01 00 00 F4 03 04 00 B7 87 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 77 00 00 35 04 06 00 13 [22:44:07]Write to MH i2c: E2 02 01 B5 1A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 13 01 00 00 F4 03 04 00 B7 87 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 77 00 00 35 04 06 00 13 00 00 98 [22:44:07]Write i2c OK [22:44:07]MH_I2C_Read... [22:44:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:44:07]Read from MH i2c: E2 [22:44:07]MH_I2C_Read... [22:44:07]Read from MH i2c: E2 03 00 [22:44:07]MH_I2C_Read... [22:44:07]Read from MH i2c: E2 03 00 B5 1A 00 90 00 43 [22:44:07]RAPDU: 90 00 [22:44:07]wFMCommunicate OK [22:44:07]wFMCommunicate request_size=10 [22:44:07]MH_SAM_APDU [22:44:07]CAPDU: 80 0D 02 02 05 FB 79 CA FE 04 [22:44:07]Write to MH i2c: E2 0D 00 B6 1A 80 0D 02 02 05 00 FB 79 CA FE 04 00 00 94 [22:44:07]Write i2c OK [22:44:07]MH_I2C_Read... [22:44:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:44:07]Read from MH i2c: E2 [22:44:07]MH_I2C_Read... [22:44:07]Read from MH i2c: E2 03 00 [22:44:07]MH_I2C_Read... [22:44:07]Read from MH i2c: E2 03 00 B6 1A 00 90 00 44 [22:44:07]RAPDU: 90 00 [22:44:07]wFMCommunicate OK [22:44:07]wFMCommunicate request_size=4 [22:44:07]MH_SAM_APDU [22:44:07]CAPDU: 80 0D 03 02 [22:44:07]Write to MH i2c: E2 08 00 B7 1A 80 0D 03 02 00 00 00 00 4C [22:44:07]Write i2c OK [22:44:07]MH_I2C_Read... [22:44:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:44:07]Read from MH i2c: E2 [22:44:07]MH_I2C_Read... [22:44:07]Read from MH i2c: E2 0B 00 [22:44:07]MH_I2C_Read... [22:44:07]Read from MH i2c: E2 0B 00 B7 1A 00 E7 77 76 82 7F 80 8A 12 90 00 3E [22:44:07]RAPDU: E7 77 76 82 7F 80 8A 12 90 00 [22:44:07]wFMCommunicate OK [22:44:07]SAM_PROTO_SignData done [22:44:07]FM_MakeSignedData done [22:44:07]CreateOFDProtocolMessage [22:44:07]wFMCommunicate request_size=4 [22:44:07]MH_SAM_APDU [22:44:07]CAPDU: 80 11 00 00 [22:44:07]Write to MH i2c: E2 08 00 B8 1A 80 11 00 00 00 00 00 00 4C [22:44:07]Write i2c OK [22:44:07]MH_I2C_Read... [22:44:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:44:07]Read from MH i2c: E2 [22:44:07]MH_I2C_Read... [22:44:07]Read from MH i2c: E2 17 00 [22:44:07]MH_I2C_Read... [22:44:07]Read from MH i2c: E2 17 00 B8 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 9A [22:44:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [22:44:07]wFMCommunicate OK [22:44:07]CreateOFDProtocolMessage done [22:44:07]OFDSenderStorePacket 30493 [22:44:07]StoreOFDPacket docnum=30493 [22:44: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 BE 8D 07 01 58 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 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 13 01 00 00 F4 03 04 00 B7 87 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 77 00 00 35 04 06 00 13 FB 79 CA FE 04 E7 77 76 82 7F 80 8A 12 [22:44:07]CheckFolder [22:44:07]dirname=/storage/ofd_packets [22:44:07]CheckFolder done [22:44:07]ProducePacketName [22:44:07]name=ofd_packets/00030493 [22:44:07]NVStorageSaveData ofd_packets/00030493 [22:44:07]File name is /storage/ofd_packets/00030493 [22:44:07]Write 301 bytes [22:44:07]NVStorageSaveData done [22:44:07]OFDSenderStorePacket done [22:44:07]KKMCreateOFDPacket done [22:44:07]NVStorageSaveData kkm_last_timestamp [22:44:07]File name is /storage/kkm_last_timestamp [22:44:07]Write 4 bytes [22:44:07]NVStorageSaveData done [22:44:07]ExternCall_PrintAddStr [22:44:07]wPrintStart [22:44:07]Write to MH i2c: 01 00 00 B9 1A D3 [22:44:07]Write i2c OK [22:44:07]MH_I2C_Read... [22:44:07]Read from MH i2c: 01 [22:44:07]MH_I2C_Read... [22:44:07]Read from MH i2c: 01 07 00 [22:44:07]MH_I2C_Read... [22:44:07]Read from MH i2c: 01 07 00 B9 1A 00 00 00 00 00 FF 0F E8 [22:44:07]RasterBufferAndPrint [22:44:07]line Счет N : (1)342897 [22:44:07]line ИНН: 02508201610067 [22:44:07]line Контрольно-Кассовый Чек [22:44:07]line ПРОДАЖА [22:44:07]line ТРК (МРК, ГНК) : 63 [22:44:07]line Товар: 2710124130 [22:44:07]line Аи-92-К-2 [22:44:07]line 3.740 * 66.90 [22:44:07]line = 250.21 [22:44:07]line НДС 12% НСП 1% [22:44:07]line > о реализуемом товаре [22:44:07]line ОКРУГЛЕНИЕ: -0.21 [22:44:07]line ИТОГО: 250.00 [22:44:07]line Внесено: 250.00 [22:44:07]line СДАЧА: 0.00 [22:44:07]line НСП 1% : 2.21 [22:44:07]line НДС 12% : 26.57 [22:44:07]line Наличными: 250.00 [22:44:07]line Безнал.: 0.00 [22:44:07]line Место: АЗС № 78 "Партнер Нефть" [22:44:07]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [22:44:07]line СНО: Общий режим [22:44:07]line Чек 275 20.10.2024 22:44 [22:44:07]line Смена: 114 ФФД: 1.0 [22:44:07]line ЗНМ: 0300000137 [22:44:07]line РНМ: 0000000000186857 [22:44:07]line Версия ККМ: v1.0 [22:44:07]line ФМ: 0000000002094219 [22:44:07]line ФД: 30493 [22:44:07]line ФПД: 21970801065476 [22:44:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T224407&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30493&fm=21970801065476&tin=02508201610067®Number=0000000000186857&sum=25000 [22:44:07]OFD Sender: Processing packet 30493 [packets to send 10, broken 9] [22:44:07]ProducePacketName [22:44:07]name=ofd_packets/00030493 [22:44:07]OFD Sender: To server: pG, [22:44:07]CommunicateWithHost lk.salyk.kg:30040 [22:44:07]ConnectInit lk.salyk.kg [22:44:07]written 0, free lines is 4095 [22:44:08]Connected sock=9 [22:44: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 BE 8D 07 01 58 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 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 13 01 00 00 F4 03 04 00 B7 87 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 77 00 00 35 04 06 00 13 FB 79 CA FE 04 E7 77 76 82 7F 80 8A 12 [22:44: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 08 19 47 00 AC 76 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 1D 77 00 00 F4 03 04 00 39 32 15 67 B6 04 01 00 00 68 BA 75 03 33 5F E2 C2 [22:44:08]CommunicateWithHost err = 0 [22:44:08]CheckOFDResponse [22:44:08]1017 (14) - 77093643461234 [22:44:08]1041 (16) - 0000000002094219 [22:44:08]1040 (4) - 30493 [22:44:08]1012 (4) - 20.10.2024 16:39 [22:44:08]1206 (1) - 0 [22:44:08]OFD Sender: Remove packet 30493 [22:44:08]ProducePacketName [22:44:08]name=ofd_packets/00030493 [22:44:08]NVStorageDeleteData [22:44:08]Write to MH i2c: 01 00 00 E4 1A FE [22:44:08]Write i2c OK [22:44:08]MH_I2C_Read... [22:44:08]Read from MH i2c: 01 [22:44:08]MH_I2C_Read... [22:44:08]Read from MH i2c: 01 07 00 [22:44:08]MH_I2C_Read... [22:44:08]Read from MH i2c: 01 07 00 E4 1A 00 00 00 00 00 F4 0C 05 [22:44:08]RasterBufferAndPrint [22:44:08]line [22:44:08]line [22:44:08]line [22:44:08]line [22:44:08]line [22:44:08]written 0, free lines is 3322 [22:44:08]MH_Cut [22:44:08]Write to MH i2c: D1 01 00 EB 1A 01 D7 [22:44:08]Write i2c OK [22:44:08]MH_I2C_Read... [22:44:08]Read from MH i2c: D1 [22:44:08]MH_I2C_Read... [22:44:08]Read from MH i2c: D1 01 00 [22:44:08]MH_I2C_Read... [22:44:08]Read from MH i2c: D1 01 00 EB 1A 00 D6 [22:44:08]Write to MH i2c: 01 00 00 EC 1A 06 [22:44:08]Write i2c OK [22:44:08]MH_I2C_Read... [22:44:08]OFD Sender: No OFD packet to send [22:44:09]*** Cut start [22:44:09]*** Partial cut [22:44:09]*** CUTSNS_PIN = 1 [22:44:09]*** CUTSNS_PIN = 0 [22:44:09]*** Brake cut motor [22:44:09]Read from MH i2c: 01 [22:44:09]MH_I2C_Read... [22:44:09]*** Stop cut motor [22:44:09]*** Cut end [22:44:09]Read from MH i2c: 01 07 00 [22:44:09]MH_I2C_Read... [22:44:09]Read from MH i2c: 01 07 00 EC 1A 00 00 00 00 00 FF 0F 1B [22:44:09]process_action close_receipt done [22:44:09]requested_data is exist [22:44:09]produce_requested_data [22:44:09]requested_item fm.sn is exist - process it [22:44:09]wFMCommunicate request_size=4 [22:44:09]MH_SAM_APDU [22:44:09]CAPDU: 80 11 00 00 [22:44:09]Write to MH i2c: E2 08 00 ED 1A 80 11 00 00 00 00 00 00 81 [22:44:09]Write i2c OK [22:44:09]MH_I2C_Read... [22:44:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:44:09]Read from MH i2c: E2 [22:44:09]MH_I2C_Read... [22:44:09]Read from MH i2c: E2 17 00 [22:44:09]MH_I2C_Read... [22:44:09]Read from MH i2c: E2 17 00 ED 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 CF [22:44: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:44:09]wFMCommunicate OK [22:44:09]requested_item fd.num is exist - process it [22:44:09]SAM_PROTO_GetFieldsCounters [22:44:09]wFMCommunicate request_size=4 [22:44:09]MH_SAM_APDU [22:44:09]CAPDU: 80 13 00 00 [22:44:09]Write to MH i2c: E2 08 00 EE 1A 80 13 00 00 00 00 00 00 84 [22:44:09]Write i2c OK [22:44:09]MH_I2C_Read... [22:44:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:44:09]Read from MH i2c: E2 [22:44:09]MH_I2C_Read... [22:44:09]Read from MH i2c: E2 62 00 [22:44:09]MH_I2C_Read... [22:44:09]Read from MH i2c: E2 62 00 EE 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 77 00 00 0E 04 04 00 72 00 00 00 12 04 04 00 13 01 00 00 5E 04 04 00 13 01 00 00 57 04 04 00 14 01 00 00 19 04 04 00 00 00 00 00 90 00 EC [22:44: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 1D 77 00 00 0E 04 04 00 72 00 00 00 12 04 04 00 13 01 00 00 5E 04 04 00 13 01 00 00 57 04 04 00 14 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:44:09]wFMCommunicate OK [22:44:09]SAM_PROTO_GetFieldsCounters done [22:44:09]requested_item shift.num is exist - process it [22:44:09]requested_item shift.opened is exist - process it [22:44:09]req_shift_opened [22:44:09]FM_GetShiftState [22:44:09]SAM_PROTO_GetShiftState [22:44:09]wFMCommunicate request_size=4 [22:44:09]MH_SAM_APDU [22:44:09]CAPDU: 80 13 01 00 [22:44:09]Write to MH i2c: E2 08 00 EF 1A 80 13 01 00 00 00 00 00 86 [22:44:09]Write i2c OK [22:44:09]MH_I2C_Read... [22:44:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:44:09]Read from MH i2c: E2 [22:44:09]MH_I2C_Read... [22:44:09]Read from MH i2c: E2 0E 00 [22:44:09]MH_I2C_Read... [22:44:09]Read from MH i2c: E2 0E 00 EF 1A 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 6C [22:44:09]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [22:44:09]wFMCommunicate OK [22:44:09]SAM_PROTO_GetShiftState done [22:44:09]FM_GetShiftState done [22:44:09]req_shift_opened done [22:44:09]requested_item shift.open_date is exist - process it [22:44:09]req_shift_open_date [22:44:09]req_shift_open_date done [22:44:09]produce_requested_data done [22:44:09]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30493,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [22:44:09]process_action_free close_receipt [22:44:09]json_value_free [22:44:09]json_value_free done [22:44:09]process_json_proto returns [22:44:09]Send response to host [22:44:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30493,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [22:44:09]free response buf [22:44:09]execute_script done [22:44:09]execute_script returns [22:44:09]free content buf [22:44:09]Sock 10.Close socket [22:44:09]Sock 10.Thread stoped [22:44:13]OFD Sender: No OFD packet to send [22:44:18]OFD Sender: No OFD packet to send [22:44:23]OFD Sender: No OFD packet to send [22:44:28]OFD Sender: No OFD packet to send [22:44:33]OFD Sender: No OFD packet to send [22:44:38]OFD Sender: No OFD packet to send [22:44:43]OFD Sender: No OFD packet to send [22:44:48]OFD Sender: No OFD packet to send [22:44:53]OFD Sender: No OFD packet to send [22:44:58]OFD Sender: No OFD packet to send [22:45:03]OFD Sender: No OFD packet to send [22:45:08]OFD Sender: No OFD packet to send [22:45:13]OFD Sender: No OFD packet to send [22:45:18]OFD Sender: No OFD packet to send [22:45:23]OFD Sender: No OFD packet to send [22:45:28]OFD Sender: No OFD packet to send [22:45:33]OFD Sender: No OFD packet to send [22:45:38]OFD Sender: No OFD packet to send [22:45:43]OFD Sender: No OFD packet to send [22:45:48]OFD Sender: No OFD packet to send [22:45:53]OFD Sender: No OFD packet to send [22:45:58]OFD Sender: No OFD packet to send [22:46:03]OFD Sender: No OFD packet to send [22:46:08]OFD Sender: No OFD packet to send [22:46:13]OFD Sender: No OFD packet to send [22:46:18]OFD Sender: No OFD packet to send [22:46:23]OFD Sender: No OFD packet to send [22:46:28]OFD Sender: No OFD packet to send [22:46:33]OFD Sender: No OFD packet to send [22:46:38]OFD Sender: No OFD packet to send [22:46:43]OFD Sender: No OFD packet to send [22:46:48]OFD Sender: No OFD packet to send [22:46:53]OFD Sender: No OFD packet to send [22:46:58]OFD Sender: No OFD packet to send [22:47:03]OFD Sender: No OFD packet to send [22:47:08]OFD Sender: No OFD packet to send [22:47:13]OFD Sender: No OFD packet to send [22:47:18]OFD Sender: No OFD packet to send [22:47:23]OFD Sender: No OFD packet to send [22:47: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:39]OFD Sender: No OFD packet to send [22:49:44]OFD Sender: No OFD packet to send [22:49:49]OFD Sender: No OFD packet to send [22:49:54]OFD Sender: No OFD packet to send [22:49:59]OFD Sender: No OFD packet to send [22:50:04]OFD Sender: No OFD packet to send [22:50:09]OFD Sender: No OFD packet to send [22:50:14]OFD Sender: No OFD packet to send [22:50:19]OFD Sender: No OFD packet to send [22:50:24]OFD Sender: No OFD packet to send [22:50:29]OFD Sender: No OFD packet to send [22:50:33]accept exits with 7 [22:50:33]New connection [22:50:33]New thread 3067489636 created [22:50:33]Thread 3067346276 joined [22:50:33]Waiting for new connection... [22:50:33] Sock 7.Parse request [22:50:33]Sock 7.Check first char [22:50:33]Sock 7.First char is OK [22:50:33]request: POST /json_proto HTTP/1.0 [22:50:33]Method: POST [22:50:33]URL: /json_proto [22:50:33]Method is POST - this is cgi request [22:50:33]url: /json_proto [22:50:33]query_string will be loaded in cgi processing [22:50:33]execute_cgi json_proto POST (null) [22:50:33]execute_cgi path=json_proto method=POST [22:50:33]POST find Content-Length [22:50:33]Host: 172.17.51.3:8080 [22:50:33]Content-Length: 682 [22:50:33]Content-Type: application/json [22:50:33] [22:50:33]POST finish read [22:50:33]Found Content-Length = 682 [22:50:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342898", "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" ] } } [22:50:33]execute_script... [22:50:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342898", "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" ] } } [22:50:33]POST & json_proto [22:50:33]process_json_proto [22:50:33]json parsed OK: [22:50:33]protocol is kg_v1.0 [22:50:33]action value=close_receipt [22:50:33]process_action close_receipt [22:50:33]cmd_close_receipt [22:50:33]MH_GetDate [22:50:33]Write to MH i2c: F0 00 00 F0 1A F9 [22:50:33]Write i2c OK [22:50:33]MH_I2C_Read... [22:50:33]Read from MH i2c: F0 [22:50:33]MH_I2C_Read... [22:50:33]Read from MH i2c: F0 09 00 [22:50:33]MH_I2C_Read... [22:50:33]Read from MH i2c: F0 09 00 F0 1A 00 3B 89 15 67 04 C1 95 66 02 [22:50:33]GetLastDocTimeStamp 1729464247 [22:50:33]current date 1729464635 [22:50:33]FM_GetShiftState [22:50:33]SAM_PROTO_GetShiftState [22:50:33]wFMCommunicate request_size=4 [22:50:33]MH_SAM_APDU [22:50:33]CAPDU: 80 13 01 00 [22:50:33]Write to MH i2c: E2 08 00 F1 1A 80 13 01 00 00 00 00 00 88 [22:50:33]Write i2c OK [22:50:33]MH_I2C_Read... [22:50:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:50:33]Read from MH i2c: E2 [22:50:33]MH_I2C_Read... [22:50:33]Read from MH i2c: E2 0E 00 [22:50:33]MH_I2C_Read... [22:50:33]Read from MH i2c: E2 0E 00 F1 1A 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 6E [22:50:33]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [22:50:33]wFMCommunicate OK [22:50:33]SAM_PROTO_GetShiftState done [22:50:33]FM_GetShiftState done [22:50:33]opened in 1729384718 [22:50:33]opened+sec_in_day 1729471118 [22:50:33]quantity*price = 100021 [22:50:33]sum+1 = 100023 [22:50:33]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 СНО: Общий режим Чек 276 20.10.2024 22:50 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30494 ФПД: 19762623058126 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T225035&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30494&fm=19762623058126&tin=02508201610067®Number=0000000000186857&sum=100000 [22:50:34]StoreToDocumentArchive [22:50:34]shift 114 fd 30494 [22:50:34]save to /storage/0114/doc_00030494 [22:50:34]save last doc name /storage/0114/doc_00030494 to /storage/kkm_last_doc_name [22:50:34]save OK [22:50:34]Clear old archive folders... [22:50:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:50:34]tlvbuf is 01DEAA40 [22:50:34]SAM_PROTO_ClearQueue [22:50:34]wFMCommunicate request_size=4 [22:50:34]MH_SAM_APDU [22:50:34]CAPDU: 80 09 00 00 [22:50:34]Write to MH i2c: E2 08 00 FE 1A 80 09 00 00 00 00 00 00 8A [22:50:34]Write i2c OK [22:50:34]MH_I2C_Read... [22:50:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:50:34]Read from MH i2c: E2 [22:50:34]MH_I2C_Read... [22:50:34]Read from MH i2c: E2 03 00 [22:50:34]MH_I2C_Read... [22:50:34]Read from MH i2c: E2 03 00 FE 1A 00 90 00 8C [22:50:34]RAPDU: 90 00 [22:50:34]wFMCommunicate OK [22:50:34]SAM_PROTO_ClearQueue done [22:50:34]KKMCreateOFDPacket [22:50:34]OFDProtocolAddRootSTLVToBuf [22:50:34]FM_MakeSignedData [22:50:34]FM_MakeSignedData [22:50:34]SAM_PROTO_SignData [22:50:34]wFMCommunicate request_size=4 [22:50:34]MH_SAM_APDU [22:50:34]CAPDU: 80 0D 01 02 [22:50:34]Write to MH i2c: E2 08 00 FF 1A 80 0D 01 02 00 00 00 00 92 [22:50:34]Write i2c OK [22:50:34]MH_I2C_Read... [22:50:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:50:34]Read from MH i2c: E2 [22:50:34]MH_I2C_Read... [22:50:34]Read from MH i2c: E2 03 00 [22:50:34]MH_I2C_Read... [22:50:34]Read from MH i2c: E2 03 00 FF 1A 00 90 00 8D [22:50:34]RAPDU: 90 00 [22:50:34]wFMCommunicate OK [22:50:34]wFMCommunicate request_size=255 [22:50:34]MH_SAM_APDU [22:50: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 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 14 01 00 00 F4 03 04 00 3B 89 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 77 00 00 35 04 06 00 11 [22:50:34]Write to MH i2c: E2 02 01 00 1B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 14 01 00 00 F4 03 04 00 3B 89 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 77 00 00 35 04 06 00 11 00 00 AF [22:50:34]Write i2c OK [22:50:34]MH_I2C_Read... [22:50:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:50:35]Read from MH i2c: E2 [22:50:35]MH_I2C_Read... [22:50:35]Read from MH i2c: E2 03 00 [22:50:35]MH_I2C_Read... [22:50:35]Read from MH i2c: E2 03 00 00 1B 00 90 00 8F [22:50:35]RAPDU: 90 00 [22:50:35]wFMCommunicate OK [22:50:35]wFMCommunicate request_size=10 [22:50:35]MH_SAM_APDU [22:50:35]CAPDU: 80 0D 02 02 05 F9 58 20 90 CE [22:50:35]Write to MH i2c: E2 0D 00 01 1B 80 0D 02 02 05 00 F9 58 20 90 CE 00 00 6F [22:50:35]Write i2c OK [22:50:35]MH_I2C_Read... [22:50:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:50:35]Read from MH i2c: E2 [22:50:35]MH_I2C_Read... [22:50:35]Read from MH i2c: E2 03 00 [22:50:35]MH_I2C_Read... [22:50:35]Read from MH i2c: E2 03 00 01 1B 00 90 00 90 [22:50:35]RAPDU: 90 00 [22:50:35]wFMCommunicate OK [22:50:35]wFMCommunicate request_size=4 [22:50:35]MH_SAM_APDU [22:50:35]CAPDU: 80 0D 03 02 [22:50:35]Write to MH i2c: E2 08 00 02 1B 80 0D 03 02 00 00 00 00 98 [22:50:35]Write i2c OK [22:50:35]MH_I2C_Read... [22:50:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:50:35]Read from MH i2c: E2 [22:50:35]MH_I2C_Read... [22:50:35]Read from MH i2c: E2 0B 00 [22:50:35]MH_I2C_Read... [22:50:35]Read from MH i2c: E2 0B 00 02 1B 00 8A D1 BB 79 C4 30 C0 DC 90 00 B8 [22:50:35]RAPDU: 8A D1 BB 79 C4 30 C0 DC 90 00 [22:50:35]wFMCommunicate OK [22:50:35]SAM_PROTO_SignData done [22:50:35]FM_MakeSignedData done [22:50:35]CreateOFDProtocolMessage [22:50:35]wFMCommunicate request_size=4 [22:50:35]MH_SAM_APDU [22:50:35]CAPDU: 80 11 00 00 [22:50:35]Write to MH i2c: E2 08 00 03 1B 80 11 00 00 00 00 00 00 98 [22:50:35]Write i2c OK [22:50:35]MH_I2C_Read... [22:50:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:50:35]Read from MH i2c: E2 [22:50:35]MH_I2C_Read... [22:50:35]Read from MH i2c: E2 17 00 [22:50:35]MH_I2C_Read... [22:50:35]Read from MH i2c: E2 17 00 03 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 E6 [22: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 [22:50:35]wFMCommunicate OK [22:50:35]CreateOFDProtocolMessage done [22:50:35]OFDSenderStorePacket 30494 [22:50:35]StoreOFDPacket docnum=30494 [22:50: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 79 58 07 01 86 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 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 14 01 00 00 F4 03 04 00 3B 89 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 77 00 00 35 04 06 00 11 F9 58 20 90 CE 8A D1 BB 79 C4 30 C0 DC [22:50:35]CheckFolder [22:50:35]dirname=/storage/ofd_packets [22:50:35]CheckFolder done [22:50:35]ProducePacketName [22:50:35]name=ofd_packets/00030494 [22:50:35]NVStorageSaveData ofd_packets/00030494 [22:50:35]File name is /storage/ofd_packets/00030494 [22:50:35]Write 301 bytes [22:50:35]NVStorageSaveData done [22:50:35]OFDSenderStorePacket done [22:50:35]KKMCreateOFDPacket done [22:50:35]NVStorageSaveData kkm_last_timestamp [22:50:35]File name is /storage/kkm_last_timestamp [22:50:35]Write 4 bytes [22:50:35]NVStorageSaveData done [22:50:35]ExternCall_PrintAddStr [22:50:35]wPrintStart [22:50:35]Write to MH i2c: 01 00 00 04 1B 1F [22:50:35]Write i2c OK [22:50:35]MH_I2C_Read... [22:50:35]Read from MH i2c: 01 [22:50:35]MH_I2C_Read... [22:50:35]Read from MH i2c: 01 07 00 [22:50:35]MH_I2C_Read... [22:50:35]Read from MH i2c: 01 07 00 04 1B 00 00 00 00 00 FF 0F 34 [22:50:35]RasterBufferAndPrint [22:50:35]line Счет N : (1)342898 [22:50:35]line ИНН: 02508201610067 [22:50:35]line Контрольно-Кассовый Чек [22:50:35]line ПРОДАЖА [22:50:35]line ТРК (МРК, ГНК) : 42 [22:50:35]line Товар: 2710124500 [22:50:35]line Аи-95-К-3 [22:50:35]line 13.480 * 74.20 [22:50:35]line = 1000.22 [22:50:35]line НДС 12% НСП 1% [22:50:35]line > о реализуемом товаре [22:50:35]line ОКРУГЛЕНИЕ: -0.22 [22:50:35]line ИТОГО: 1000.00 [22:50:35]line Внесено: 1000.00 [22:50:35]line СДАЧА: 0.00 [22:50:35]line НСП 1% : 8.85 [22:50:35]line НДС 12% : 106.22 [22:50:35]line Наличными: 1000.00 [22:50:35]line Безнал.: 0.00 [22:50:35]line Место: АЗС № 78 "Партнер Нефть" [22:50:35]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [22:50:35]line СНО: Общий режим [22:50:35]line Чек 276 20.10.2024 22:50 [22:50:35]line Смена: 114 ФФД: 1.0 [22:50:35]line ЗНМ: 0300000137 [22:50:35]line РНМ: 0000000000186857 [22:50:35]line Версия ККМ: v1.0 [22:50:35]line ФМ: 0000000002094219 [22:50:35]line ФД: 30494 [22:50:35]line ФПД: 19762623058126 [22:50:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T225035&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30494&fm=19762623058126&tin=02508201610067®Number=0000000000186857&sum=100000 [22:50:35]OFD Sender: Processing packet 30494 [packets to send 10, broken 9] [22:50:35]ProducePacketName [22:50:35]name=ofd_packets/00030494 [22:50:35]OFD Sender: To server: pG, [22:50:35]CommunicateWithHost lk.salyk.kg:30040 [22:50:35]ConnectInit lk.salyk.kg [22:50:35]written 0, free lines is 4095 [22:50:35]Connected sock=10 [22:50: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 79 58 07 01 86 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 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 14 01 00 00 F4 03 04 00 3B 89 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 77 00 00 35 04 06 00 11 F9 58 20 90 CE 8A D1 BB 79 C4 30 C0 DC [22:50: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 B1 88 47 00 F1 45 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 1E 77 00 00 F4 03 04 00 BD 33 15 67 B6 04 01 00 00 FF 99 6A 65 45 E7 00 0E [22:50:35]CommunicateWithHost err = 0 [22:50:35]CheckOFDResponse [22:50:35]1017 (14) - 77093643461234 [22:50:35]1041 (16) - 0000000002094219 [22:50:35]1040 (4) - 30494 [22:50:35]1012 (4) - 20.10.2024 16:45 [22:50:35]1206 (1) - 0 [22:50:35]OFD Sender: Remove packet 30494 [22:50:35]ProducePacketName [22:50:35]name=ofd_packets/00030494 [22:50:35]NVStorageDeleteData [22:50:35]Write to MH i2c: 01 00 00 2F 1B 4A [22:50:35]Write i2c OK [22:50:35]MH_I2C_Read... [22:50:35]Read from MH i2c: 01 [22:50:35]MH_I2C_Read... [22:50:35]Read from MH i2c: 01 07 00 [22:50:35]MH_I2C_Read... [22:50:35]Read from MH i2c: 01 07 00 2F 1B 00 00 00 00 00 ED 0C 4A [22:50:35]RasterBufferAndPrint [22:50:35]line [22:50:35]line [22:50:35]line [22:50:35]line [22:50:35]line [22:50:35]written 0, free lines is 3315 [22:50:36]MH_Cut [22:50:36]Write to MH i2c: D1 01 00 36 1B 01 23 [22:50:36]Write i2c OK [22:50:36]MH_I2C_Read... [22:50:36]Read from MH i2c: D1 [22:50:36]MH_I2C_Read... [22:50:36]Read from MH i2c: D1 01 00 [22:50:36]MH_I2C_Read... [22:50:36]Read from MH i2c: D1 01 00 36 1B 00 22 [22:50:36]Write to MH i2c: 01 00 00 37 1B 52 [22:50:36]Write i2c OK [22:50:36]MH_I2C_Read... [22:50:36]OFD Sender: No OFD packet to send [22:50:36]*** Cut start [22:50:36]*** Partial cut [22:50:36]*** CUTSNS_PIN = 1 [22:50:36]*** CUTSNS_PIN = 0 [22:50:36]*** Brake cut motor [22:50:37]Read from MH i2c: 01 [22:50:37]MH_I2C_Read... [22:50:37]*** Stop cut motor [22:50:37]*** Cut end [22:50:37]Read from MH i2c: 01 07 00 [22:50:37]MH_I2C_Read... [22:50:37]Read from MH i2c: 01 07 00 37 1B 00 00 00 00 00 FF 0F 67 [22:50:37]process_action close_receipt done [22:50:37]requested_data is exist [22:50:37]produce_requested_data [22:50:37]requested_item fm.sn is exist - process it [22:50:37]wFMCommunicate request_size=4 [22:50:37]MH_SAM_APDU [22:50:37]CAPDU: 80 11 00 00 [22:50:37]Write to MH i2c: E2 08 00 38 1B 80 11 00 00 00 00 00 00 CD [22:50:37]Write i2c OK [22:50:37]MH_I2C_Read... [22:50:37]Read from MH i2c: E2 [22:50:37]MH_I2C_Read... [22:50:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:50:37]Read from MH i2c: E2 17 00 [22:50:37]MH_I2C_Read... [22:50:37]Read from MH i2c: E2 17 00 38 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 1B [22:50:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [22:50:37]wFMCommunicate OK [22:50:37]requested_item fd.num is exist - process it [22:50:37]SAM_PROTO_GetFieldsCounters [22:50:37]wFMCommunicate request_size=4 [22:50:37]MH_SAM_APDU [22:50:37]CAPDU: 80 13 00 00 [22:50:37]Write to MH i2c: E2 08 00 39 1B 80 13 00 00 00 00 00 00 D0 [22:50:37]Write i2c OK [22:50:37]MH_I2C_Read... [22:50:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:50:37]Read from MH i2c: E2 [22:50:37]MH_I2C_Read... [22:50:37]Read from MH i2c: E2 62 00 [22:50:37]MH_I2C_Read... [22:50:37]Read from MH i2c: E2 62 00 39 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 77 00 00 0E 04 04 00 72 00 00 00 12 04 04 00 14 01 00 00 5E 04 04 00 14 01 00 00 57 04 04 00 15 01 00 00 19 04 04 00 00 00 00 00 90 00 3C [22:50: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 1E 77 00 00 0E 04 04 00 72 00 00 00 12 04 04 00 14 01 00 00 5E 04 04 00 14 01 00 00 57 04 04 00 15 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:50:37]wFMCommunicate OK [22:50:37]SAM_PROTO_GetFieldsCounters done [22:50:37]requested_item shift.num is exist - process it [22:50:37]requested_item shift.opened is exist - process it [22:50:37]req_shift_opened [22:50:37]FM_GetShiftState [22:50:37]SAM_PROTO_GetShiftState [22:50:37]wFMCommunicate request_size=4 [22:50:37]MH_SAM_APDU [22:50:37]CAPDU: 80 13 01 00 [22:50:37]Write to MH i2c: E2 08 00 3A 1B 80 13 01 00 00 00 00 00 D2 [22:50:37]Write i2c OK [22:50:37]MH_I2C_Read... [22:50:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:50:37]Read from MH i2c: E2 [22:50:37]MH_I2C_Read... [22:50:37]Read from MH i2c: E2 0E 00 [22:50:37]MH_I2C_Read... [22:50:37]Read from MH i2c: E2 0E 00 3A 1B 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 B8 [22:50:37]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [22:50:37]wFMCommunicate OK [22:50:37]SAM_PROTO_GetShiftState done [22:50:37]FM_GetShiftState done [22:50:37]req_shift_opened done [22:50:37]requested_item shift.open_date is exist - process it [22:50:37]req_shift_open_date [22:50:37]req_shift_open_date done [22:50:37]produce_requested_data done [22:50:37]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30494,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [22:50:37]process_action_free close_receipt [22:50:37]json_value_free [22:50:37]json_value_free done [22:50:37]process_json_proto returns [22:50:37]Send response to host [22:50:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30494,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [22:50:37]free response buf [22:50:37]execute_script done [22:50:37]execute_script returns [22:50:37]free content buf [22:50:37]Sock 7.Close socket [22:50:37]Sock 7.Thread stoped [22:50:41]OFD Sender: No OFD packet to send [22:50:46]OFD Sender: No OFD packet to send [22:50:51]OFD Sender: No OFD packet to send [22:50:56]OFD Sender: No OFD packet to send [22:51:01]OFD Sender: No OFD packet to send [22:51:06]OFD Sender: No OFD packet to send [22:51:11]OFD Sender: No OFD packet to send [22:51:16]OFD Sender: No OFD packet to send [22:51:21]OFD Sender: No OFD packet to send [22:51:26]OFD Sender: No OFD packet to send [22:51:31]OFD Sender: No OFD packet to send [22:51:36]OFD Sender: No OFD packet to send [22:51:41]OFD Sender: No OFD packet to send [22:51:46]OFD Sender: No OFD packet to send [22:51:51]OFD Sender: No OFD packet to send [22:51:56]OFD Sender: No OFD packet to send [22:52:01]OFD Sender: No OFD packet to send [22:52:06]OFD Sender: No OFD packet to send [22:52:11]OFD Sender: No OFD packet to send [22:52:16]OFD Sender: No OFD packet to send [22:52:21]OFD Sender: No OFD packet to send [22:52:26]OFD Sender: No OFD packet to send [22:52:31]OFD Sender: No OFD packet to send [22:52:36]OFD Sender: No OFD packet to send [22:52:41]OFD Sender: No OFD packet to send [22:52:46]OFD Sender: No OFD packet to send [22:52:51]OFD Sender: No OFD packet to send [22:52:56]OFD Sender: No OFD packet to send [22:53:01]OFD Sender: No OFD packet to send [22:53:06]OFD Sender: No OFD packet to send [22:53:11]OFD Sender: No OFD packet to send [22:53:16]OFD Sender: No OFD packet to send [22:53:21]OFD Sender: No OFD packet to send [22:53:26]OFD Sender: No OFD packet to send [22:53:31]OFD Sender: No OFD packet to send [22:53:36]OFD Sender: No OFD packet to send [22:53:41]OFD Sender: No OFD packet to send [22:53:46]OFD Sender: No OFD packet to send [22:53:51]OFD Sender: No OFD packet to send [22:53:56]OFD Sender: No OFD packet to send [22:54:01]OFD Sender: No OFD packet to send [22:54:06]OFD Sender: No OFD packet to send [22:54:11]OFD Sender: No OFD packet to send [22:54:16]OFD Sender: No OFD packet to send [22:54:21]OFD Sender: No OFD packet to send [22:54:26]OFD Sender: No OFD packet to send [22:54:31]OFD Sender: No OFD packet to send [22:54:36]OFD Sender: No OFD packet to send [22:54:41]OFD Sender: No OFD packet to send [22:54:46]OFD Sender: No OFD packet to send [22:54:51]OFD Sender: No OFD packet to send [22:54:56]OFD Sender: No OFD packet to send [22:55:01]OFD Sender: No OFD packet to send [22:55:06]OFD Sender: No OFD packet to send [22:55:11]OFD Sender: No OFD packet to send [22:55:16]OFD Sender: No OFD packet to send [22:55:21]OFD Sender: No OFD packet to send [22:55:26]OFD Sender: No OFD packet to send [22:55:31]OFD Sender: No OFD packet to send [22:55:36]OFD Sender: No OFD packet to send [22:55:41]OFD Sender: No OFD packet to send [22:55:46]OFD Sender: No OFD packet to send [22:55:51]OFD Sender: No OFD packet to send [22:55:56]OFD Sender: No OFD packet to send [22:56:01]OFD Sender: No OFD packet to send [22:56:06]OFD Sender: No OFD packet to send [22:56:11]OFD Sender: No OFD packet to send [22:56:16]OFD Sender: No OFD packet to send [22:56:21]OFD Sender: No OFD packet to send [22:56:26]OFD Sender: No OFD packet to send [22:56:31]OFD Sender: No OFD packet to send [22:56:36]OFD Sender: No OFD packet to send [22:56:41]OFD Sender: No OFD packet to send [22:56:46]OFD Sender: No OFD packet to send [22:56:51]OFD Sender: No OFD packet to send [22:56:56]OFD Sender: No OFD packet to send [22:57:01]OFD Sender: No OFD packet to send [22:57:06]OFD Sender: No OFD packet to send [22:57:11]OFD Sender: No OFD packet to send [22:57:16]OFD Sender: No OFD packet to send [22:57:21]OFD Sender: No OFD packet to send [22:57:26]OFD Sender: No OFD packet to send [22:57:31]OFD Sender: No OFD packet to send [22:57:36]OFD Sender: No OFD packet to send [22:57:41]OFD Sender: No OFD packet to send [22:57:46]OFD Sender: No OFD packet to send [22:57:51]OFD Sender: No OFD packet to send [22:57:56]OFD Sender: No OFD packet to send [22:58:01]OFD Sender: No OFD packet to send [22:58:06]OFD Sender: No OFD packet to send [22:58:11]OFD Sender: No OFD packet to send [22:58:16]OFD Sender: No OFD packet to send [22:58:21]OFD Sender: No OFD packet to send [22:58:26]OFD Sender: No OFD packet to send [22:58:31]OFD Sender: No OFD packet to send [22:58:36]OFD Sender: No OFD packet to send [22:58:41]OFD Sender: No OFD packet to send [22:58:46]OFD Sender: No OFD packet to send [22:58:51]OFD Sender: No OFD packet to send [22:58:56]OFD Sender: No OFD packet to send [22:59:01]OFD Sender: No OFD packet to send [22:59:06]OFD Sender: No OFD packet to send [22:59:11]OFD Sender: No OFD packet to send [22:59:16]OFD Sender: No OFD packet to send [22:59:21]OFD Sender: No OFD packet to send [22:59:26]OFD Sender: No OFD packet to send [22:59:31]OFD Sender: No OFD packet to send [22:59:36]OFD Sender: No OFD packet to send [22:59:41]OFD Sender: No OFD packet to send [22:59:46]OFD Sender: No OFD packet to send [22:59:51]OFD Sender: No OFD packet to send [22:59:56]OFD Sender: No OFD packet to send [23:00:01]OFD Sender: No OFD packet to send [23:00:06]OFD Sender: No OFD packet to send [23:00:11]OFD Sender: No OFD packet to send [23:00:16]OFD Sender: No OFD packet to send [23:00:21]OFD Sender: No OFD packet to send [23:00:26]OFD Sender: No OFD packet to send [23:00:31]OFD Sender: No OFD packet to send [23:00:36]OFD Sender: No OFD packet to send [23:00:41]OFD Sender: No OFD packet to send [23:00:46]OFD Sender: No OFD packet to send [23:00:51]OFD Sender: No OFD packet to send [23:00:56]OFD Sender: No OFD packet to send [23:01:01]OFD Sender: No OFD packet to send [23:01:06]OFD Sender: No OFD packet to send [23:01:11]OFD Sender: No OFD packet to send [23:01:16]OFD Sender: No OFD packet to send [23:01:21]OFD Sender: No OFD packet to send [23:01:26]OFD Sender: No OFD packet to send [23:01:31]OFD Sender: No OFD packet to send [23:01:36]OFD Sender: No OFD packet to send [23:01:41]OFD Sender: No OFD packet to send [23:01:46]OFD Sender: No OFD packet to send [23:01:51]OFD Sender: No OFD packet to send [23:01:56]OFD Sender: No OFD packet to send [23:02:01]OFD Sender: No OFD packet to send [23:02:06]OFD Sender: No OFD packet to send [23:02:11]OFD Sender: No OFD packet to send [23:02:16]OFD Sender: No OFD packet to send [23:02:21]OFD Sender: No OFD packet to send [23:02:26]OFD Sender: No OFD packet to send [23:02:31]OFD Sender: No OFD packet to send [23:02:36]OFD Sender: No OFD packet to send [23:02:41]OFD Sender: No OFD packet to send [23:02:46]OFD Sender: No OFD packet to send [23:02:51]OFD Sender: No OFD packet to send [23:02:56]OFD Sender: No OFD packet to send [23:03:01]OFD Sender: No OFD packet to send [23:03:06]OFD Sender: No OFD packet to send [23:03:11]OFD Sender: No OFD packet to send [23:03:16]OFD Sender: No OFD packet to send [23:03:21]OFD Sender: No OFD packet to send [23:03:26]OFD Sender: No OFD packet to send [23:03:31]OFD Sender: No OFD packet to send [23:03:36]OFD Sender: No OFD packet to send [23:03:41]OFD Sender: No OFD packet to send [23:03:46]OFD Sender: No OFD packet to send [23:03:51]OFD Sender: No OFD packet to send [23:03:56]OFD Sender: No OFD packet to send [23:04:01]OFD Sender: No OFD packet to send [23:04:06]OFD Sender: No OFD packet to send [23:04:11]OFD Sender: No OFD packet to send [23:04:16]OFD Sender: No OFD packet to send [23:04:21]OFD Sender: No OFD packet to send [23:04:26]OFD Sender: No OFD packet to send [23:04:31]OFD Sender: No OFD packet to send [23:04:37]OFD Sender: No OFD packet to send [23:04:42]OFD Sender: No OFD packet to send [23:04:47]OFD Sender: No OFD packet to send [23:04:52]OFD Sender: No OFD packet to send [23:04:57]OFD Sender: No OFD packet to send [23:05:02]OFD Sender: No OFD packet to send [23:05:07]OFD Sender: No OFD packet to send [23:05:12]OFD Sender: No OFD packet to send [23:05:17]OFD Sender: No OFD packet to send [23:05:22]OFD Sender: No OFD packet to send [23:05:27]OFD Sender: No OFD packet to send [23:05:32]OFD Sender: No OFD packet to send [23:05:37]OFD Sender: No OFD packet to send [23:05:42]OFD Sender: No OFD packet to send [23:05:47]OFD Sender: No OFD packet to send [23:05:52]OFD Sender: No OFD packet to send [23:05:57]OFD Sender: No OFD packet to send [23:06:02]OFD Sender: No OFD packet to send [23:06:07]OFD Sender: No OFD packet to send [23:06:12]OFD Sender: No OFD packet to send [23:06:17]OFD Sender: No OFD packet to send [23:06:22]OFD Sender: No OFD packet to send [23:06:27]OFD Sender: No OFD packet to send [23:06:32]OFD Sender: No OFD packet to send [23:06:37]OFD Sender: No OFD packet to send [23:06:42]OFD Sender: No OFD packet to send [23:06:47]OFD Sender: No OFD packet to send [23:06:52]OFD Sender: No OFD packet to send [23:06:57]OFD Sender: No OFD packet to send [23:07:02]OFD Sender: No OFD packet to send [23:07:07]OFD Sender: No OFD packet to send [23:07:12]OFD Sender: No OFD packet to send [23:07:17]OFD Sender: No OFD packet to send [23:07:22]OFD Sender: No OFD packet to send [23:07:27]OFD Sender: No OFD packet to send [23:07:32]OFD Sender: No OFD packet to send [23:07:37]OFD Sender: No OFD packet to send [23:07:42]OFD Sender: No OFD packet to send [23:07:47]OFD Sender: No OFD packet to send [23:07:52]OFD Sender: No OFD packet to send [23:07:57]OFD Sender: No OFD packet to send [23:08:02]OFD Sender: No OFD packet to send [23:08:07]OFD Sender: No OFD packet to send [23:08:12]OFD Sender: No OFD packet to send [23:08:17]OFD Sender: No OFD packet to send [23:08:22]OFD Sender: No OFD packet to send [23:08:27]OFD Sender: No OFD packet to send [23:08:32]OFD Sender: No OFD packet to send [23:08:37]OFD Sender: No OFD packet to send [23:08:42]OFD Sender: No OFD packet to send [23:08:47]OFD Sender: No OFD packet to send [23:08:52]OFD Sender: No OFD packet to send [23:08:57]OFD Sender: No OFD packet to send [23:09:02]OFD Sender: No OFD packet to send [23:09:07]OFD Sender: No OFD packet to send [23:09:12]OFD Sender: No OFD packet to send [23:09:17]OFD Sender: No OFD packet to send [23:09:22]OFD Sender: No OFD packet to send [23:09:27]OFD Sender: No OFD packet to send [23:09:32]OFD Sender: No OFD packet to send [23:09:37]OFD Sender: No OFD packet to send [23:09:42]OFD Sender: No OFD packet to send [23:09:47]OFD Sender: No OFD packet to send [23:09:52]OFD Sender: No OFD packet to send [23:09:57]OFD Sender: No OFD packet to send [23:10:02]OFD Sender: No OFD packet to send [23:10:07]OFD Sender: No OFD packet to send [23:10:12]OFD Sender: No OFD packet to send [23:10:17]OFD Sender: No OFD packet to send [23:10:22]OFD Sender: No OFD packet to send [23:10:27]OFD Sender: No OFD packet to send [23:10:32]OFD Sender: No OFD packet to send [23:10:37]OFD Sender: No OFD packet to send [23:10:42]OFD Sender: No OFD packet to send [23:10:47]OFD Sender: No OFD packet to send [23:10:52]OFD Sender: No OFD packet to send [23:10:57]OFD Sender: No OFD packet to send [23:11:02]OFD Sender: No OFD packet to send [23:11:07]OFD Sender: No OFD packet to send [23:11:12]OFD Sender: No OFD packet to send [23:11:17]OFD Sender: No OFD packet to send [23:11:22]OFD Sender: No OFD packet to send [23:11:27]OFD Sender: No OFD packet to send [23:11:32]OFD Sender: No OFD packet to send [23:11:37]OFD Sender: No OFD packet to send [23:11:42]OFD Sender: No OFD packet to send [23:11:47]OFD Sender: No OFD packet to send [23:11:52]OFD Sender: No OFD packet to send [23:11:57]OFD Sender: No OFD packet to send [23:12:02]OFD Sender: No OFD packet to send [23:12:07]OFD Sender: No OFD packet to send [23:12:12]OFD Sender: No OFD packet to send [23:12:17]OFD Sender: No OFD packet to send [23:12:22]OFD Sender: No OFD packet to send [23:12:27]OFD Sender: No OFD packet to send [23:12:32]OFD Sender: No OFD packet to send [23:12:37]OFD Sender: No OFD packet to send [23:12:42]OFD Sender: No OFD packet to send [23:12:47]OFD Sender: No OFD packet to send [23:12:52]OFD Sender: No OFD packet to send [23:12:57]OFD Sender: No OFD packet to send [23:13:02]OFD Sender: No OFD packet to send [23:13:07]OFD Sender: No OFD packet to send [23:13:12]OFD Sender: No OFD packet to send [23:13:17]OFD Sender: No OFD packet to send [23:13:22]OFD Sender: No OFD packet to send [23:13:27]OFD Sender: No OFD packet to send [23:13:32]OFD Sender: No OFD packet to send [23:13:37]OFD Sender: No OFD packet to send [23:13:42]OFD Sender: No OFD packet to send [23:13:47]OFD Sender: No OFD packet to send [23:13:52]OFD Sender: No OFD packet to send [23:13:57]OFD Sender: No OFD packet to send [23:14:02]OFD Sender: No OFD packet to send [23:14:07]OFD Sender: No OFD packet to send [23:14:12]OFD Sender: No OFD packet to send [23:14:17]OFD Sender: No OFD packet to send [23:14:22]OFD Sender: No OFD packet to send [23:14:27]OFD Sender: No OFD packet to send [23:14:32]OFD Sender: No OFD packet to send [23:14:37]OFD Sender: No OFD packet to send [23:14:42]OFD Sender: No OFD packet to send [23:14:47]OFD Sender: No OFD packet to send [23:14:52]OFD Sender: No OFD packet to send [23:14:57]OFD Sender: No OFD packet to send [23:15:02]OFD Sender: No OFD packet to send [23:15:07]OFD Sender: No OFD packet to send [23:15:12]OFD Sender: No OFD packet to send [23:15:17]OFD Sender: No OFD packet to send [23:15:22]OFD Sender: No OFD packet to send [23:15:27]OFD Sender: No OFD packet to send [23:15:32]OFD Sender: No OFD packet to send [23:15:37]OFD Sender: No OFD packet to send [23:15:42]OFD Sender: No OFD packet to send [23:15:47]OFD Sender: No OFD packet to send [23:15:52]OFD Sender: No OFD packet to send [23:15:57]OFD Sender: No OFD packet to send [23:16:02]OFD Sender: No OFD packet to send [23:16:07]OFD Sender: No OFD packet to send [23:16:12]OFD Sender: No OFD packet to send [23:16:17]OFD Sender: No OFD packet to send [23:16:22]OFD Sender: No OFD packet to send [23:16:27]OFD Sender: No OFD packet to send [23:16:32]OFD Sender: No OFD packet to send [23:16:37]OFD Sender: No OFD packet to send [23:16:42]OFD Sender: No OFD packet to send [23:16:47]OFD Sender: No OFD packet to send [23:16:52]OFD Sender: No OFD packet to send [23:16:57]OFD Sender: No OFD packet to send [23:17:02]OFD Sender: No OFD packet to send [23:17:07]OFD Sender: No OFD packet to send [23:17:12]OFD Sender: No OFD packet to send [23:17:17]OFD Sender: No OFD packet to send [23:17:22]OFD Sender: No OFD packet to send [23:17:27]OFD Sender: No OFD packet to send [23:17:32]OFD Sender: No OFD packet to send [23:17:37]OFD Sender: No OFD packet to send [23:17:42]OFD Sender: No OFD packet to send [23:17:47]OFD Sender: No OFD packet to send [23:17:52]OFD Sender: No OFD packet to send [23:17:57]accept exits with 9 [23:17:57]New connection [23:17:57]New thread 3067346276 created [23:17:57]Thread 3067489636 joined [23:17:57]Waiting for new connection... [23:17:57] Sock 9.Parse request [23:17:57]Sock 9.Check first char [23:17:57]Sock 9.First char is OK [23:17:57]request: POST /json_proto HTTP/1.0 [23:17:57]Method: POST [23:17:57]URL: /json_proto [23:17:57]Method is POST - this is cgi request [23:17:57]url: /json_proto [23:17:57]query_string will be loaded in cgi processing [23:17:57]execute_cgi json_proto POST (null) [23:17:57]execute_cgi path=json_proto method=POST [23:17:57]POST find Content-Length [23:17:57]Host: 172.17.51.3:8080 [23:17:57]Content-Length: 678 [23:17:57]Content-Type: application/json [23:17:57] [23:17:57]POST finish read [23:17:57]Found Content-Length = 678 [23:17:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342899", "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.520, "sum" : 503.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2003.00, "total" : 503.00, "payments": [ { "type": 0, "sum" : 503.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:17:57]execute_script... [23:17: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)342899", "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.520, "sum" : 503.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2003.00, "total" : 503.00, "payments": [ { "type": 0, "sum" : 503.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:17:57]POST & json_proto [23:17:57]process_json_proto [23:17:57]json parsed OK: [23:17:57]protocol is kg_v1.0 [23:17:57]action value=close_receipt [23:17:57]process_action close_receipt [23:17:57]cmd_close_receipt [23:17:57]MH_GetDate [23:17:57]Write to MH i2c: F0 00 00 3B 1B 45 [23:17:57]Write i2c OK [23:17:57]MH_I2C_Read... [23:17:57]Read from MH i2c: F0 [23:17:57]MH_I2C_Read... [23:17:57]Read from MH i2c: F0 09 00 [23:17:57]MH_I2C_Read... [23:17:57]Read from MH i2c: F0 09 00 3B 1B 00 A6 8F 15 67 04 C1 95 66 BF [23:17:57]GetLastDocTimeStamp 1729464635 [23:17:57]current date 1729466278 [23:17:57]FM_GetShiftState [23:17:57]SAM_PROTO_GetShiftState [23:17:57]wFMCommunicate request_size=4 [23:17:57]MH_SAM_APDU [23:17:57]CAPDU: 80 13 01 00 [23:17:57]Write to MH i2c: E2 08 00 3C 1B 80 13 01 00 00 00 00 00 D4 [23:17:57]Write i2c OK [23:17:57]MH_I2C_Read... [23:17:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:17:57]Read from MH i2c: E2 [23:17:57]MH_I2C_Read... [23:17:57]Read from MH i2c: E2 0E 00 [23:17:57]MH_I2C_Read... [23:17:57]Read from MH i2c: E2 0E 00 3C 1B 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 BA [23:17:57]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [23:17:57]wFMCommunicate OK [23:17:57]SAM_PROTO_GetShiftState done [23:17:57]FM_GetShiftState done [23:17:57]opened in 1729384718 [23:17:57]opened+sec_in_day 1729471118 [23:17:57]quantity*price = 50308 [23:17:57]sum+1 = 50310 [23:17:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 503.00 Внесено: 2003.00 СДАЧА: 1500.00 НСП 1% : 4.45 НДС 12% : 53.42 Наличными: 503.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 277 20.10.2024 23:17 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30495 ФПД: 226616964104139 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T231758&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30495&fm=226616964104139&tin=02508201610067®Number=0000000000186857&sum=50300 [23:17:58]StoreToDocumentArchive [23:17:58]shift 114 fd 30495 [23:17:58]save to /storage/0114/doc_00030495 [23:17:58]save last doc name /storage/0114/doc_00030495 to /storage/kkm_last_doc_name [23:17:58]save OK [23:17:58]Clear old archive folders... [23:17:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:17:58]tlvbuf is 01DAFB40 [23:17:58]SAM_PROTO_ClearQueue [23:17:58]wFMCommunicate request_size=4 [23:17:58]MH_SAM_APDU [23:17:58]CAPDU: 80 09 00 00 [23:17:58]Write to MH i2c: E2 08 00 49 1B 80 09 00 00 00 00 00 00 D6 [23:17:58]Write i2c OK [23:17:58]MH_I2C_Read... [23:17:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:17:58]Read from MH i2c: E2 [23:17:58]MH_I2C_Read... [23:17:58]Read from MH i2c: E2 03 00 [23:17:58]MH_I2C_Read... [23:17:58]Read from MH i2c: E2 03 00 49 1B 00 90 00 D8 [23:17:58]RAPDU: 90 00 [23:17:58]wFMCommunicate OK [23:17:58]SAM_PROTO_ClearQueue done [23:17:58]KKMCreateOFDPacket [23:17:58]OFDProtocolAddRootSTLVToBuf [23:17:58]FM_MakeSignedData [23:17:58]FM_MakeSignedData [23:17:58]SAM_PROTO_SignData [23:17:58]wFMCommunicate request_size=4 [23:17:58]MH_SAM_APDU [23:17:58]CAPDU: 80 0D 01 02 [23:17:58]Write to MH i2c: E2 08 00 4A 1B 80 0D 01 02 00 00 00 00 DE [23:17:58]Write i2c OK [23:17:58]MH_I2C_Read... [23:17:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:17:58]Read from MH i2c: E2 [23:17:58]MH_I2C_Read... [23:17:58]Read from MH i2c: E2 03 00 [23:17:58]MH_I2C_Read... [23:17:58]Read from MH i2c: E2 03 00 4A 1B 00 90 00 D9 [23:17:58]RAPDU: 90 00 [23:17:58]wFMCommunicate OK [23:17:58]wFMCommunicate request_size=255 [23:17:58]MH_SAM_APDU [23:17: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 60 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 85 C4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C C4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BD 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 14 00 00 00 00 07 04 06 00 7C C4 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 01 00 00 F4 03 04 00 A6 8F 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 77 00 00 35 04 06 00 CE [23:17:58]Write to MH i2c: E2 02 01 4B 1B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 60 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 85 C4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C C4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BD 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 14 00 00 00 00 07 04 06 00 7C C4 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 01 00 00 F4 03 04 00 A6 8F 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 77 00 00 35 04 06 00 CE 00 00 B9 [23:17:58]Write i2c OK [23:17:58]MH_I2C_Read... [23:17:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:17:58]Read from MH i2c: E2 [23:17:58]MH_I2C_Read... [23:17:58]Read from MH i2c: E2 03 00 [23:17:58]MH_I2C_Read... [23:17:58]Read from MH i2c: E2 03 00 4B 1B 00 90 00 DA [23:17:58]RAPDU: 90 00 [23:17:58]wFMCommunicate OK [23:17:58]wFMCommunicate request_size=10 [23:17:58]MH_SAM_APDU [23:17:58]CAPDU: 80 0D 02 02 05 1B 5F A5 3F CB [23:17:58]Write to MH i2c: E2 0D 00 4C 1B 80 0D 02 02 05 00 1B 5F A5 3F CB 00 00 14 [23:17:58]Write i2c OK [23:17:58]MH_I2C_Read... [23:17:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:17:58]Read from MH i2c: E2 [23:17:58]MH_I2C_Read... [23:17:58]Read from MH i2c: E2 03 00 [23:17:58]MH_I2C_Read... [23:17:58]Read from MH i2c: E2 03 00 4C 1B 00 90 00 DB [23:17:58]RAPDU: 90 00 [23:17:58]wFMCommunicate OK [23:17:58]wFMCommunicate request_size=4 [23:17:58]MH_SAM_APDU [23:17:58]CAPDU: 80 0D 03 02 [23:17:58]Write to MH i2c: E2 08 00 4D 1B 80 0D 03 02 00 00 00 00 E3 [23:17:58]Write i2c OK [23:17:58]MH_I2C_Read... [23:17:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:17:58]Read from MH i2c: E2 [23:17:58]MH_I2C_Read... [23:17:58]Read from MH i2c: E2 0B 00 [23:17:58]MH_I2C_Read... [23:17:58]Read from MH i2c: E2 0B 00 4D 1B 00 49 EA 77 14 7D DB 0C B7 90 00 BD [23:17:58]RAPDU: 49 EA 77 14 7D DB 0C B7 90 00 [23:17:58]wFMCommunicate OK [23:17:58]SAM_PROTO_SignData done [23:17:58]FM_MakeSignedData done [23:17:58]CreateOFDProtocolMessage [23:17:58]wFMCommunicate request_size=4 [23:17:58]MH_SAM_APDU [23:17:58]CAPDU: 80 11 00 00 [23:17:58]Write to MH i2c: E2 08 00 4E 1B 80 11 00 00 00 00 00 00 E3 [23:17:58]Write i2c OK [23:17:58]MH_I2C_Read... [23:17:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:17:58]Read from MH i2c: E2 [23:17:58]MH_I2C_Read... [23:17:58]Read from MH i2c: E2 17 00 [23:17:58]MH_I2C_Read... [23:17:58]Read from MH i2c: E2 17 00 4E 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 31 [23:17:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [23:17:58]wFMCommunicate OK [23:17:58]CreateOFDProtocolMessage done [23:17:58]OFDSenderStorePacket 30495 [23:17:58]StoreOFDPacket docnum=30495 [23:17: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 36 11 07 01 4B 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 60 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 85 C4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C C4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BD 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 14 00 00 00 00 07 04 06 00 7C C4 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 01 00 00 F4 03 04 00 A6 8F 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 77 00 00 35 04 06 00 CE 1B 5F A5 3F CB 49 EA 77 14 7D DB 0C B7 [23:17:58]CheckFolder [23:17:58]dirname=/storage/ofd_packets [23:17:58]CheckFolder done [23:17:58]ProducePacketName [23:17:58]name=ofd_packets/00030495 [23:17:58]NVStorageSaveData ofd_packets/00030495 [23:17:58]File name is /storage/ofd_packets/00030495 [23:17:58]Write 301 bytes [23:17:58]NVStorageSaveData done [23:17:58]OFDSenderStorePacket done [23:17:58]KKMCreateOFDPacket done [23:17:58]NVStorageSaveData kkm_last_timestamp [23:17:58]File name is /storage/kkm_last_timestamp [23:17:58]Write 4 bytes [23:17:58]NVStorageSaveData done [23:17:58]ExternCall_PrintAddStr [23:17:58]wPrintStart [23:17:58]Write to MH i2c: 01 00 00 4F 1B 6A [23:17:58]Write i2c OK [23:17:58]MH_I2C_Read... [23:17:58]Read from MH i2c: 01 [23:17:58]MH_I2C_Read... [23:17:58]Read from MH i2c: 01 07 00 [23:17:58]MH_I2C_Read... [23:17:58]Read from MH i2c: 01 07 00 4F 1B 00 00 00 00 00 FF 0F 7F [23:17:58]RasterBufferAndPrint [23:17:58]line Счет N : (1)342899 [23:17:58]line ИНН: 02508201610067 [23:17:58]line Контрольно-Кассовый Чек [23:17:58]line ПРОДАЖА [23:17:58]line ТРК (МРК, ГНК) : 43 [23:17:58]line Товар: 2710124130 [23:17:58]line Аи-92-К-2 [23:17:58]line 7.520 * 66.90 [23:17:58]line = 503.09 [23:17:58]line НДС 12% НСП 1% [23:17:58]line > о реализуемом товаре [23:17:58]line ОКРУГЛЕНИЕ: -0.09 [23:17:58]line ИТОГО: 503.00 [23:17:58]line Внесено: 2003.00 [23:17:58]line СДАЧА: 1500.00 [23:17:58]line НСП 1% : 4.45 [23:17:58]line НДС 12% : 53.42 [23:17:58]line Наличными: 503.00 [23:17:58]line Безнал.: 0.00 [23:17:58]line Место: АЗС № 78 "Партнер Нефть" [23:17:58]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [23:17:58]line СНО: Общий режим [23:17:58]line Чек 277 20.10.2024 23:17 [23:17:58]line Смена: 114 ФФД: 1.0 [23:17:58]line ЗНМ: 0300000137 [23:17:58]line РНМ: 0000000000186857 [23:17:58]line Версия ККМ: v1.0 [23:17:58]line ФМ: 0000000002094219 [23:17:58]line ФД: 30495 [23:17:58]line ФПД: 226616964104139 [23:17:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T231758&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30495&fm=226616964104139&tin=02508201610067®Number=0000000000186857&sum=50300 [23:17:59]OFD Sender: Processing packet 30495 [packets to send 10, broken 9] [23:17:59]ProducePacketName [23:17:59]name=ofd_packets/00030495 [23:17:59]OFD Sender: To server: pG, [23:17:59]CommunicateWithHost lk.salyk.kg:30040 [23:17:59]ConnectInit lk.salyk.kg [23:17:59]written 0, free lines is 4095 [23:17:59]Connected sock=11 [23:17: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 36 11 07 01 4B 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 60 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 85 C4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C C4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BD 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 14 00 00 00 00 07 04 06 00 7C C4 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 01 00 00 F4 03 04 00 A6 8F 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 77 00 00 35 04 06 00 CE 1B 5F A5 3F CB 49 EA 77 14 7D DB 0C B7 [23:17: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 C6 CF 47 00 BB F4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 1F 77 00 00 F4 03 04 00 29 3A 15 67 B6 04 01 00 00 D4 6C 55 B6 95 51 99 7F [23:17:59]CommunicateWithHost err = 0 [23:17:59]CheckOFDResponse [23:17:59]1017 (14) - 77093643461234 [23:17:59]1041 (16) - 0000000002094219 [23:17:59]1040 (4) - 30495 [23:17:59]1012 (4) - 20.10.2024 17:13 [23:17:59]1206 (1) - 0 [23:17:59]OFD Sender: Remove packet 30495 [23:17:59]ProducePacketName [23:17:59]name=ofd_packets/00030495 [23:17:59]NVStorageDeleteData [23:17:59]Write to MH i2c: 01 00 00 7A 1B 95 [23:17:59]Write i2c OK [23:17:59]MH_I2C_Read... [23:17:59]Read from MH i2c: 01 [23:17:59]MH_I2C_Read... [23:17:59]Read from MH i2c: 01 07 00 [23:17:59]MH_I2C_Read... [23:17:59]Read from MH i2c: 01 07 00 7A 1B 00 00 00 00 00 F9 0C A1 [23:17:59]RasterBufferAndPrint [23:17:59]line [23:17:59]line [23:17:59]line [23:17:59]line [23:17:59]line [23:17:59]written 0, free lines is 3328 [23:17:59]MH_Cut [23:17:59]Write to MH i2c: D1 01 00 81 1B 01 6E [23:17:59]Write i2c OK [23:17:59]MH_I2C_Read... [23:17:59]Read from MH i2c: D1 [23:17:59]MH_I2C_Read... [23:17:59]Read from MH i2c: D1 01 00 [23:17:59]MH_I2C_Read... [23:17:59]Read from MH i2c: D1 01 00 81 1B 00 6D [23:17:59]Write to MH i2c: 01 00 00 82 1B 9D [23:17:59]Write i2c OK [23:17:59]MH_I2C_Read... [23:17:59]OFD Sender: No OFD packet to send [23:18:00]*** Cut start [23:18:00]*** Partial cut [23:18:00]*** CUTSNS_PIN = 1 [23:18:00]*** CUTSNS_PIN = 0 [23:18:00]*** Brake cut motor [23:18:00]Read from MH i2c: 01 [23:18:00]MH_I2C_Read... [23:18:00]*** Stop cut motor [23:18:00]*** Cut end [23:18:00]Read from MH i2c: 01 07 00 [23:18:00]MH_I2C_Read... [23:18:00]Read from MH i2c: 01 07 00 82 1B 00 00 00 00 00 FF 0F B2 [23:18:00]process_action close_receipt done [23:18:00]requested_data is exist [23:18:00]produce_requested_data [23:18:00]requested_item fm.sn is exist - process it [23:18:00]wFMCommunicate request_size=4 [23:18:00]MH_SAM_APDU [23:18:00]CAPDU: 80 11 00 00 [23:18:00]Write to MH i2c: E2 08 00 83 1B 80 11 00 00 00 00 00 00 18 [23:18:00]Write i2c OK [23:18:00]MH_I2C_Read... [23:18:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:18:00]Read from MH i2c: E2 [23:18:00]MH_I2C_Read... [23:18:00]Read from MH i2c: E2 17 00 [23:18:00]MH_I2C_Read... [23:18:00]Read from MH i2c: E2 17 00 83 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 66 [23:18:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [23:18:00]wFMCommunicate OK [23:18:00]requested_item fd.num is exist - process it [23:18:00]SAM_PROTO_GetFieldsCounters [23:18:00]wFMCommunicate request_size=4 [23:18:00]MH_SAM_APDU [23:18:00]CAPDU: 80 13 00 00 [23:18:00]Write to MH i2c: E2 08 00 84 1B 80 13 00 00 00 00 00 00 1B [23:18:00]Write i2c OK [23:18:00]MH_I2C_Read... [23:18:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:18:01]Read from MH i2c: E2 [23:18:01]MH_I2C_Read... [23:18:01]Read from MH i2c: E2 62 00 [23:18:01]MH_I2C_Read... [23:18:01]Read from MH i2c: E2 62 00 84 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 77 00 00 0E 04 04 00 72 00 00 00 12 04 04 00 15 01 00 00 5E 04 04 00 15 01 00 00 57 04 04 00 16 01 00 00 19 04 04 00 00 00 00 00 90 00 8B [23:18: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 1F 77 00 00 0E 04 04 00 72 00 00 00 12 04 04 00 15 01 00 00 5E 04 04 00 15 01 00 00 57 04 04 00 16 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:18:01]wFMCommunicate OK [23:18:01]SAM_PROTO_GetFieldsCounters done [23:18:01]requested_item shift.num is exist - process it [23:18:01]requested_item shift.opened is exist - process it [23:18:01]req_shift_opened [23:18:01]FM_GetShiftState [23:18:01]SAM_PROTO_GetShiftState [23:18:01]wFMCommunicate request_size=4 [23:18:01]MH_SAM_APDU [23:18:01]CAPDU: 80 13 01 00 [23:18:01]Write to MH i2c: E2 08 00 85 1B 80 13 01 00 00 00 00 00 1D [23:18:01]Write i2c OK [23:18:01]MH_I2C_Read... [23:18:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:18:01]Read from MH i2c: E2 [23:18:01]MH_I2C_Read... [23:18:01]Read from MH i2c: E2 0E 00 [23:18:01]MH_I2C_Read... [23:18:01]Read from MH i2c: E2 0E 00 85 1B 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 03 [23:18:01]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [23:18:01]wFMCommunicate OK [23:18:01]SAM_PROTO_GetShiftState done [23:18:01]FM_GetShiftState done [23:18:01]req_shift_opened done [23:18:01]requested_item shift.open_date is exist - process it [23:18:01]req_shift_open_date [23:18:01]req_shift_open_date done [23:18:01]produce_requested_data done [23:18:01]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30495,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [23:18:01]process_action_free close_receipt [23:18:01]json_value_free [23:18:01]json_value_free done [23:18:01]process_json_proto returns [23:18:01]Send response to host [23:18:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30495,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [23:18:01]free response buf [23:18:01]execute_script done [23:18:01]execute_script returns [23:18:01]free content buf [23:18:01]Sock 9.Close socket [23:18:01]Sock 9.Thread stoped [23:18:04]OFD Sender: No OFD packet to send [23:18:09]OFD Sender: No OFD packet to send [23:18:14]OFD Sender: No OFD packet to send [23:18:19]OFD Sender: No OFD packet to send [23:18:24]OFD Sender: No OFD packet to send [23:18:29]OFD Sender: No OFD packet to send [23:18:34]OFD Sender: No OFD packet to send [23:18:39]OFD Sender: No OFD packet to send [23:18:44]OFD Sender: No OFD packet to send [23:18:49]OFD Sender: No OFD packet to send [23:18:54]OFD Sender: No OFD packet to send [23:18:59]OFD Sender: No OFD packet to send [23:19:04]OFD Sender: No OFD packet to send [23:19:10]OFD Sender: No OFD packet to send [23:19:15]OFD Sender: No OFD packet to send [23:19:20]OFD Sender: No OFD packet to send [23:19:25]OFD Sender: No OFD packet to send [23:19:30]OFD Sender: No OFD packet to send [23:19:35]OFD Sender: No OFD packet to send [23:19:40]OFD Sender: No OFD packet to send [23:19:45]OFD Sender: No OFD packet to send [23:19:50]OFD Sender: No OFD packet to send [23:19:55]OFD Sender: No OFD packet to send [23:20:00]OFD Sender: No OFD packet to send [23:20:05]OFD Sender: No OFD packet to send [23:20:10]OFD Sender: No OFD packet to send [23:20:15]OFD Sender: No OFD packet to send [23:20:20]OFD Sender: No OFD packet to send [23:20:25]OFD Sender: No OFD packet to send [23:20:30]OFD Sender: No OFD packet to send [23:20:35]OFD Sender: No OFD packet to send [23:20:40]OFD Sender: No OFD packet to send [23:20:45]OFD Sender: No OFD packet to send [23:20:50]OFD Sender: No OFD packet to send [23:20:55]OFD Sender: No OFD packet to send [23:21:00]OFD Sender: No OFD packet to send [23:21:05]OFD Sender: No OFD packet to send [23:21:10]OFD Sender: No OFD packet to send [23:21:15]OFD Sender: No OFD packet to send [23:21:20]OFD Sender: No OFD packet to send [23:21:25]OFD Sender: No OFD packet to send [23:21:30]OFD Sender: No OFD packet to send [23:21:35]OFD Sender: No OFD packet to send [23:21:40]OFD Sender: No OFD packet to send [23:21:45]OFD Sender: No OFD packet to send [23:21:45]accept exits with 7 [23:21:45]New connection [23:21:45]New thread 3067489636 created [23:21:45]Thread 3067346276 joined [23:21:45]Waiting for new connection... [23:21:45] Sock 7.Parse request [23:21:45]Sock 7.Check first char [23:21:45]Sock 7.First char is OK [23:21:45]request: POST /json_proto HTTP/1.0 [23:21:45]Method: POST [23:21:45]URL: /json_proto [23:21:45]Method is POST - this is cgi request [23:21:45]url: /json_proto [23:21:45]query_string will be loaded in cgi processing [23:21:45]execute_cgi json_proto POST (null) [23:21:45]execute_cgi path=json_proto method=POST [23:21:45]POST find Content-Length [23:21:45]Host: 172.17.51.3:8080 [23:21:45]Content-Length: 678 [23:21:45]Content-Type: application/json [23:21:45] [23:21:45]POST finish read [23:21:45]Found Content-Length = 678 [23:21:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342900", "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" : 11.470, "sum" : 767.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 767.00, "total" : 767.00, "payments": [ { "type": 0, "sum" : 767.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:21:45]execute_script... [23: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)342900", "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" : 11.470, "sum" : 767.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 767.00, "total" : 767.00, "payments": [ { "type": 0, "sum" : 767.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:21:45]POST & json_proto [23:21:45]process_json_proto [23:21:45]json parsed OK: [23:21:45]protocol is kg_v1.0 [23:21:45]action value=close_receipt [23:21:45]process_action close_receipt [23:21:45]cmd_close_receipt [23:21:45]MH_GetDate [23:21:45]Write to MH i2c: F0 00 00 86 1B 90 [23:21:45]Write i2c OK [23:21:45]MH_I2C_Read... [23:21:45]Read from MH i2c: F0 [23:21:45]MH_I2C_Read... [23:21:45]Read from MH i2c: F0 09 00 [23:21:45]MH_I2C_Read... [23:21:45]Read from MH i2c: F0 09 00 86 1B 00 8B 90 15 67 04 C1 95 66 F0 [23:21:45]GetLastDocTimeStamp 1729466278 [23:21:45]current date 1729466507 [23:21:45]FM_GetShiftState [23:21:45]SAM_PROTO_GetShiftState [23:21:45]wFMCommunicate request_size=4 [23:21:45]MH_SAM_APDU [23:21:45]CAPDU: 80 13 01 00 [23:21:45]Write to MH i2c: E2 08 00 87 1B 80 13 01 00 00 00 00 00 1F [23:21:45]Write i2c OK [23:21:45]MH_I2C_Read... [23:21:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:21:45]Read from MH i2c: E2 [23:21:45]MH_I2C_Read... [23:21:45]Read from MH i2c: E2 0E 00 [23:21:45]MH_I2C_Read... [23:21:45]Read from MH i2c: E2 0E 00 87 1B 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 05 [23:21:45]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [23:21:45]wFMCommunicate OK [23:21:45]SAM_PROTO_GetShiftState done [23:21:45]FM_GetShiftState done [23:21:45]opened in 1729384718 [23:21:45]opened+sec_in_day 1729471118 [23:21:45]quantity*price = 76734 [23:21:45]sum+1 = 76735 [23:21:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.34 ИТОГО: 767.00 Внесено: 767.00 СДАЧА: 0.00 НСП 1% : 6.79 НДС 12% : 81.49 Наличными: 767.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 278 20.10.2024 23:21 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30496 ФПД: 131999477629201 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T232147&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30496&fm=131999477629201&tin=02508201610067®Number=0000000000186857&sum=76700 [23:21:46]StoreToDocumentArchive [23:21:46]shift 114 fd 30496 [23:21:46]save to /storage/0114/doc_00030496 [23:21:46]save last doc name /storage/0114/doc_00030496 to /storage/kkm_last_doc_name [23:21:46]save OK [23:21:46]Clear old archive folders... [23:21:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:21:46]tlvbuf is 01DFCAA0 [23:21:46]SAM_PROTO_ClearQueue [23:21:46]wFMCommunicate request_size=4 [23:21:46]MH_SAM_APDU [23:21:46]CAPDU: 80 09 00 00 [23:21:46]Write to MH i2c: E2 08 00 94 1B 80 09 00 00 00 00 00 00 21 [23:21:46]Write i2c OK [23:21:46]MH_I2C_Read... [23:21:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:21:46]Read from MH i2c: E2 [23:21:46]MH_I2C_Read... [23:21:46]Read from MH i2c: E2 03 00 [23:21:46]MH_I2C_Read... [23:21:46]Read from MH i2c: E2 03 00 94 1B 00 90 00 23 [23:21:46]RAPDU: 90 00 [23:21:46]wFMCommunicate OK [23:21:46]SAM_PROTO_ClearQueue done [23:21:46]KKMCreateOFDPacket [23:21:46]OFDProtocolAddRootSTLVToBuf [23:21:46]FM_MakeSignedData [23:21:46]FM_MakeSignedData [23:21:46]SAM_PROTO_SignData [23:21:46]wFMCommunicate request_size=4 [23:21:46]MH_SAM_APDU [23:21:46]CAPDU: 80 0D 01 02 [23:21:46]Write to MH i2c: E2 08 00 95 1B 80 0D 01 02 00 00 00 00 29 [23:21:46]Write i2c OK [23:21:46]MH_I2C_Read... [23:21:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:21:46]Read from MH i2c: E2 [23:21:46]MH_I2C_Read... [23:21:46]Read from MH i2c: E2 03 00 [23:21:46]MH_I2C_Read... [23:21:46]Read from MH i2c: E2 03 00 95 1B 00 90 00 24 [23:21:46]RAPDU: 90 00 [23:21:46]wFMCommunicate OK [23:21:46]wFMCommunicate request_size=255 [23:21:46]MH_SAM_APDU [23: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 CE 2C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BE 2B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 2B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A7 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D5 1F 00 00 00 00 07 04 06 00 9C 2B 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 01 00 00 F4 03 04 00 8B 90 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 77 00 00 35 04 06 00 78 [23:21:46]Write to MH i2c: E2 02 01 96 1B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 CE 2C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BE 2B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 2B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A7 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D5 1F 00 00 00 00 07 04 06 00 9C 2B 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 01 00 00 F4 03 04 00 8B 90 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 77 00 00 35 04 06 00 78 00 00 B1 [23:21:46]Write i2c OK [23:21:46]MH_I2C_Read... [23:21:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:21:47]Read from MH i2c: E2 [23:21:47]MH_I2C_Read... [23:21:47]Read from MH i2c: E2 03 00 [23:21:47]MH_I2C_Read... [23:21:47]Read from MH i2c: E2 03 00 96 1B 00 90 00 25 [23:21:47]RAPDU: 90 00 [23:21:47]wFMCommunicate OK [23:21:47]wFMCommunicate request_size=10 [23:21:47]MH_SAM_APDU [23:21:47]CAPDU: 80 0D 02 02 05 0D 85 F9 81 11 [23:21:47]Write to MH i2c: E2 0D 00 97 1B 80 0D 02 02 05 00 0D 85 F9 81 11 00 00 53 [23:21:47]Write i2c OK [23:21:47]MH_I2C_Read... [23:21:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:21:47]Read from MH i2c: E2 [23:21:47]MH_I2C_Read... [23:21:47]Read from MH i2c: E2 03 00 [23:21:47]MH_I2C_Read... [23:21:47]Read from MH i2c: E2 03 00 97 1B 00 90 00 26 [23:21:47]RAPDU: 90 00 [23:21:47]wFMCommunicate OK [23:21:47]wFMCommunicate request_size=4 [23:21:47]MH_SAM_APDU [23:21:47]CAPDU: 80 0D 03 02 [23:21:47]Write to MH i2c: E2 08 00 98 1B 80 0D 03 02 00 00 00 00 2E [23:21:47]Write i2c OK [23:21:47]MH_I2C_Read... [23:21:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:21:47]Read from MH i2c: E2 [23:21:47]MH_I2C_Read... [23:21:47]Read from MH i2c: E2 0B 00 [23:21:47]MH_I2C_Read... [23:21:47]Read from MH i2c: E2 0B 00 98 1B 00 58 D3 A6 73 0B 58 84 14 90 00 6E [23:21:47]RAPDU: 58 D3 A6 73 0B 58 84 14 90 00 [23:21:47]wFMCommunicate OK [23:21:47]SAM_PROTO_SignData done [23:21:47]FM_MakeSignedData done [23:21:47]CreateOFDProtocolMessage [23:21:47]wFMCommunicate request_size=4 [23:21:47]MH_SAM_APDU [23:21:47]CAPDU: 80 11 00 00 [23:21:47]Write to MH i2c: E2 08 00 99 1B 80 11 00 00 00 00 00 00 2E [23:21:47]Write i2c OK [23:21:47]MH_I2C_Read... [23:21:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:21:47]Read from MH i2c: E2 [23:21:47]MH_I2C_Read... [23:21:47]Read from MH i2c: E2 17 00 [23:21:47]MH_I2C_Read... [23:21:47]Read from MH i2c: E2 17 00 99 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 7C [23: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 [23:21:47]wFMCommunicate OK [23:21:47]CreateOFDProtocolMessage done [23:21:47]OFDSenderStorePacket 30496 [23:21:47]StoreOFDPacket docnum=30496 [23: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 71 6A 07 01 AA 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 CE 2C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BE 2B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 2B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A7 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D5 1F 00 00 00 00 07 04 06 00 9C 2B 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 01 00 00 F4 03 04 00 8B 90 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 77 00 00 35 04 06 00 78 0D 85 F9 81 11 58 D3 A6 73 0B 58 84 14 [23:21:47]CheckFolder [23:21:47]dirname=/storage/ofd_packets [23:21:47]CheckFolder done [23:21:47]ProducePacketName [23:21:47]name=ofd_packets/00030496 [23:21:47]NVStorageSaveData ofd_packets/00030496 [23:21:47]File name is /storage/ofd_packets/00030496 [23:21:47]Write 301 bytes [23:21:47]NVStorageSaveData done [23:21:47]OFDSenderStorePacket done [23:21:47]KKMCreateOFDPacket done [23:21:47]NVStorageSaveData kkm_last_timestamp [23:21:47]File name is /storage/kkm_last_timestamp [23:21:47]Write 4 bytes [23:21:47]NVStorageSaveData done [23:21:47]ExternCall_PrintAddStr [23:21:47]wPrintStart [23:21:47]Write to MH i2c: 01 00 00 9A 1B B5 [23:21:47]Write i2c OK [23:21:47]MH_I2C_Read... [23:21:47]Read from MH i2c: 01 [23:21:47]MH_I2C_Read... [23:21:47]Read from MH i2c: 01 07 00 [23:21:47]MH_I2C_Read... [23:21:47]Read from MH i2c: 01 07 00 9A 1B 00 00 00 00 00 FF 0F CA [23:21:47]RasterBufferAndPrint [23:21:47]line Счет N : (1)342900 [23:21:47]line ИНН: 02508201610067 [23:21:47]line Контрольно-Кассовый Чек [23:21:47]line ПРОДАЖА [23:21:47]line ТРК (МРК, ГНК) : 63 [23:21:47]line Товар: 2710124130 [23:21:47]line Аи-92-К-2 [23:21:47]line 11.470 * 66.90 [23:21:47]line = 767.34 [23:21:47]line НДС 12% НСП 1% [23:21:47]line > о реализуемом товаре [23:21:47]line ОКРУГЛЕНИЕ: -0.34 [23:21:47]line ИТОГО: 767.00 [23:21:47]line Внесено: 767.00 [23:21:47]line СДАЧА: 0.00 [23:21:47]line НСП 1% : 6.79 [23:21:47]line НДС 12% : 81.49 [23:21:47]line Наличными: 767.00 [23:21:47]line Безнал.: 0.00 [23:21:47]line Место: АЗС № 78 "Партнер Нефть" [23:21:47]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [23:21:47]line СНО: Общий режим [23:21:47]line Чек 278 20.10.2024 23:21 [23:21:47]line Смена: 114 ФФД: 1.0 [23:21:47]line ЗНМ: 0300000137 [23:21:47]line РНМ: 0000000000186857 [23:21:47]line Версия ККМ: v1.0 [23:21:47]line ФМ: 0000000002094219 [23:21:47]line ФД: 30496 [23:21:47]line ФПД: 131999477629201 [23:21:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T232147&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30496&fm=131999477629201&tin=02508201610067®Number=0000000000186857&sum=76700 [23:21:47]OFD Sender: Processing packet 30496 [packets to send 10, broken 9] [23:21:47]ProducePacketName [23:21:47]name=ofd_packets/00030496 [23:21:47]OFD Sender: To server: pG, [23:21:47]CommunicateWithHost lk.salyk.kg:30040 [23:21:47]ConnectInit lk.salyk.kg [23:21:47]written 0, free lines is 4095 [23:21:47]Connected sock=10 [23: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 71 6A 07 01 AA 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 CE 2C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BE 2B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 2B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A7 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D5 1F 00 00 00 00 07 04 06 00 9C 2B 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 01 00 00 F4 03 04 00 8B 90 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 77 00 00 35 04 06 00 78 0D 85 F9 81 11 58 D3 A6 73 0B 58 84 14 [23:21: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 46 CD 47 00 50 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 20 77 00 00 F4 03 04 00 0D 3B 15 67 B6 04 01 00 00 28 0B 18 A5 5F 14 D8 68 [23:21:47]CommunicateWithHost err = 0 [23:21:47]CheckOFDResponse [23:21:47]1017 (14) - 77093643461234 [23:21:47]1041 (16) - 0000000002094219 [23:21:47]1040 (4) - 30496 [23:21:47]1012 (4) - 20.10.2024 17:17 [23:21:47]1206 (1) - 0 [23:21:47]OFD Sender: Remove packet 30496 [23:21:47]ProducePacketName [23:21:47]name=ofd_packets/00030496 [23:21:47]NVStorageDeleteData [23:21:48]Write to MH i2c: 01 00 00 C5 1B E0 [23:21:48]Write i2c OK [23:21:48]MH_I2C_Read... [23:21:48]Read from MH i2c: 01 [23:21:48]MH_I2C_Read... [23:21:48]Read from MH i2c: 01 07 00 [23:21:48]MH_I2C_Read... [23:21:48]Read from MH i2c: 01 07 00 C5 1B 00 00 00 00 00 E4 0C D7 [23:21:48]RasterBufferAndPrint [23:21:48]line [23:21:48]line [23:21:48]line [23:21:48]line [23:21:48]line [23:21:48]written 0, free lines is 3306 [23:21:48]MH_Cut [23:21:48]Write to MH i2c: D1 01 00 CC 1B 01 B9 [23:21:48]Write i2c OK [23:21:48]MH_I2C_Read... [23:21:48]Read from MH i2c: D1 [23:21:48]MH_I2C_Read... [23:21:48]Read from MH i2c: D1 01 00 [23:21:48]MH_I2C_Read... [23:21:48]Read from MH i2c: D1 01 00 CC 1B 00 B8 [23:21:48]Write to MH i2c: 01 00 00 CD 1B E8 [23:21:48]Write i2c OK [23:21:48]MH_I2C_Read... [23:21:48]OFD Sender: No OFD packet to send [23:21:48]*** Cut start [23:21:48]*** Partial cut [23:21:48]*** CUTSNS_PIN = 1 [23:21:48]*** CUTSNS_PIN = 0 [23:21:48]*** Brake cut motor [23:21:49]Read from MH i2c: 01 [23:21:49]MH_I2C_Read... [23:21:49]*** Stop cut motor [23:21:49]*** Cut end [23:21:49]Read from MH i2c: 01 07 00 [23:21:49]MH_I2C_Read... [23:21:49]Read from MH i2c: 01 07 00 CD 1B 00 00 00 00 00 FF 0F FD [23:21:49]process_action close_receipt done [23:21:49]requested_data is exist [23:21:49]produce_requested_data [23:21:49]requested_item fm.sn is exist - process it [23:21:49]wFMCommunicate request_size=4 [23:21:49]MH_SAM_APDU [23:21:49]CAPDU: 80 11 00 00 [23:21:49]Write to MH i2c: E2 08 00 CE 1B 80 11 00 00 00 00 00 00 63 [23:21:49]Write i2c OK [23:21:49]MH_I2C_Read... [23:21:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:21:49]Read from MH i2c: E2 [23:21:49]MH_I2C_Read... [23:21:49]Read from MH i2c: E2 17 00 [23:21:49]MH_I2C_Read... [23:21:49]Read from MH i2c: E2 17 00 CE 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 B1 [23: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 [23:21:49]wFMCommunicate OK [23:21:49]requested_item fd.num is exist - process it [23:21:49]SAM_PROTO_GetFieldsCounters [23:21:49]wFMCommunicate request_size=4 [23:21:49]MH_SAM_APDU [23:21:49]CAPDU: 80 13 00 00 [23:21:49]Write to MH i2c: E2 08 00 CF 1B 80 13 00 00 00 00 00 00 66 [23:21:49]Write i2c OK [23:21:49]MH_I2C_Read... [23:21:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:21:49]Read from MH i2c: E2 [23:21:49]MH_I2C_Read... [23:21:49]Read from MH i2c: E2 62 00 [23:21:49]MH_I2C_Read... [23:21:49]Read from MH i2c: E2 62 00 CF 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 77 00 00 0E 04 04 00 72 00 00 00 12 04 04 00 16 01 00 00 5E 04 04 00 16 01 00 00 57 04 04 00 17 01 00 00 19 04 04 00 00 00 00 00 90 00 DA [23: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 20 77 00 00 0E 04 04 00 72 00 00 00 12 04 04 00 16 01 00 00 5E 04 04 00 16 01 00 00 57 04 04 00 17 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:21:49]wFMCommunicate OK [23:21:49]SAM_PROTO_GetFieldsCounters done [23:21:49]requested_item shift.num is exist - process it [23:21:49]requested_item shift.opened is exist - process it [23:21:49]req_shift_opened [23:21:49]FM_GetShiftState [23:21:49]SAM_PROTO_GetShiftState [23:21:49]wFMCommunicate request_size=4 [23:21:49]MH_SAM_APDU [23:21:49]CAPDU: 80 13 01 00 [23:21:49]Write to MH i2c: E2 08 00 D0 1B 80 13 01 00 00 00 00 00 68 [23:21:49]Write i2c OK [23:21:49]MH_I2C_Read... [23:21:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:21:49]Read from MH i2c: E2 [23:21:49]MH_I2C_Read... [23:21:49]Read from MH i2c: E2 0E 00 [23:21:49]MH_I2C_Read... [23:21:49]Read from MH i2c: E2 0E 00 D0 1B 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 4E [23:21:49]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [23:21:49]wFMCommunicate OK [23:21:49]SAM_PROTO_GetShiftState done [23:21:49]FM_GetShiftState done [23:21:49]req_shift_opened done [23:21:49]requested_item shift.open_date is exist - process it [23:21:49]req_shift_open_date [23:21:49]req_shift_open_date done [23:21:49]produce_requested_data done [23:21:49]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30496,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [23:21:49]process_action_free close_receipt [23:21:49]json_value_free [23:21:49]json_value_free done [23:21:49]process_json_proto returns [23:21:49]Send response to host [23:21:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30496,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [23:21:49]free response buf [23:21:49]execute_script done [23:21:49]execute_script returns [23:21:49]free content buf [23:21:49]Sock 7.Close socket [23:21:49]Sock 7.Thread stoped [23:21:53]OFD Sender: No OFD packet to send [23:21:58]OFD Sender: No OFD packet to send [23:22:03]OFD Sender: No OFD packet to send [23:22:08]OFD Sender: No OFD packet to send [23:22:13]OFD Sender: No OFD packet to send [23:22:18]OFD Sender: No OFD packet to send [23:22:23]OFD Sender: No OFD packet to send [23:22:28]OFD Sender: No OFD packet to send [23:22:33]OFD Sender: No OFD packet to send [23:22:38]OFD Sender: No OFD packet to send [23:22:43]OFD Sender: No OFD packet to send [23:22:48]OFD Sender: No OFD packet to send [23:22:53]OFD Sender: No OFD packet to send [23:22:58]OFD Sender: No OFD packet to send [23:23:03]OFD Sender: No OFD packet to send [23:23:08]OFD Sender: No OFD packet to send [23:23:13]OFD Sender: No OFD packet to send [23:23:18]OFD Sender: No OFD packet to send [23:23:23]OFD Sender: No OFD packet to send [23:23:28]OFD Sender: No OFD packet to send [23:23:33]OFD Sender: No OFD packet to send [23:23:38]OFD Sender: No OFD packet to send [23:23:43]OFD Sender: No OFD packet to send [23:23:48]OFD Sender: No OFD packet to send [23:23:53]OFD Sender: No OFD packet to send [23:23:58]OFD Sender: No OFD packet to send [23:24:03]OFD Sender: No OFD packet to send [23:24:08]OFD Sender: No OFD packet to send [23:24:13]OFD Sender: No OFD packet to send [23:24:18]OFD Sender: No OFD packet to send [23:24:23]OFD Sender: No OFD packet to send [23:24:28]OFD Sender: No OFD packet to send [23:24:33]OFD Sender: No OFD packet to send [23:24:38]OFD Sender: No OFD packet to send [23:24:43]OFD Sender: No OFD packet to send [23:24:48]OFD Sender: No OFD packet to send [23:24:53]OFD Sender: No OFD packet to send [23:24:58]OFD Sender: No OFD packet to send [23:25:03]OFD Sender: No OFD packet to send [23:25:08]OFD Sender: No OFD packet to send [23:25:13]OFD Sender: No OFD packet to send [23:25:18]OFD Sender: No OFD packet to send [23:25:23]OFD Sender: No OFD packet to send [23:25:28]OFD Sender: No OFD packet to send [23:25:33]OFD Sender: No OFD packet to send [23:25:38]OFD Sender: No OFD packet to send [23:25:43]OFD Sender: No OFD packet to send [23:25:48]OFD Sender: No OFD packet to send [23:25:53]OFD Sender: No OFD packet to send [23:25:58]OFD Sender: No OFD packet to send [23:26:03]OFD Sender: No OFD packet to send [23:26:08]OFD Sender: No OFD packet to send [23:26:13]OFD Sender: No OFD packet to send [23:26:18]OFD Sender: No OFD packet to send [23:26:23]OFD Sender: No OFD packet to send [23:26:28]OFD Sender: No OFD packet to send [23:26:33]OFD Sender: No OFD packet to send [23:26:38]OFD Sender: No OFD packet to send [23:26:43]OFD Sender: No OFD packet to send [23:26:48]OFD Sender: No OFD packet to send [23:26:53]OFD Sender: No OFD packet to send [23:26:58]OFD Sender: No OFD packet to send [23:27:03]OFD Sender: No OFD packet to send [23:27:08]OFD Sender: No OFD packet to send [23:27:13]OFD Sender: No OFD packet to send [23:27:18]OFD Sender: No OFD packet to send [23:27:23]OFD Sender: No OFD packet to send [23:27:28]OFD Sender: No OFD packet to send [23:27:33]OFD Sender: No OFD packet to send [23:27:38]OFD Sender: No OFD packet to send [23:27:43]OFD Sender: No OFD packet to send [23:27:48]OFD Sender: No OFD packet to send [23:27:53]OFD Sender: No OFD packet to send [23:27:58]OFD Sender: No OFD packet to send [23:28:03]OFD Sender: No OFD packet to send [23:28:08]OFD Sender: No OFD packet to send [23:28:13]OFD Sender: No OFD packet to send [23:28:18]OFD Sender: No OFD packet to send [23:28:23]OFD Sender: No OFD packet to send [23:28:28]OFD Sender: No OFD packet to send [23:28:33]OFD Sender: No OFD packet to send [23:28:38]OFD Sender: No OFD packet to send [23:28:43]OFD Sender: No OFD packet to send [23:28:48]OFD Sender: No OFD packet to send [23:28:53]OFD Sender: No OFD packet to send [23:28:54]accept exits with 9 [23:28:54]New connection [23:28:54]New thread 3067346276 created [23:28:54]Thread 3067489636 joined [23:28:54]Waiting for new connection... [23:28:54] Sock 9.Parse request [23:28:54]Sock 9.Check first char [23:28:54]Sock 9.First char is OK [23:28:54]request: POST /json_proto HTTP/1.0 [23:28:54]Method: POST [23:28:54]URL: /json_proto [23:28:54]Method is POST - this is cgi request [23:28:54]url: /json_proto [23:28:54]query_string will be loaded in cgi processing [23:28:54]execute_cgi json_proto POST (null) [23:28:54]execute_cgi path=json_proto method=POST [23:28:54]POST find Content-Length [23:28:54]Host: 172.17.51.3:8080 [23:28:54]Content-Length: 677 [23:28:54]Content-Type: application/json [23:28:54] [23:28:54]POST finish read [23:28:54]Found Content-Length = 677 [23:28:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342901", "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" ] } } [23:28:54]execute_script... [23:28:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342901", "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" ] } } [23:28:54]POST & json_proto [23:28:54]process_json_proto [23:28:54]json parsed OK: [23:28:54]protocol is kg_v1.0 [23:28:54]action value=close_receipt [23:28:54]process_action close_receipt [23:28:54]cmd_close_receipt [23:28:54]MH_GetDate [23:28:54]Write to MH i2c: F0 00 00 D1 1B DB [23:28:54]Write i2c OK [23:28:54]MH_I2C_Read... [23:28:54]Read from MH i2c: F0 [23:28:54]MH_I2C_Read... [23:28:54]Read from MH i2c: F0 09 00 [23:28:54]MH_I2C_Read... [23:28:54]Read from MH i2c: F0 09 00 D1 1B 00 37 92 15 67 04 C1 95 66 E9 [23:28:54]GetLastDocTimeStamp 1729466507 [23:28:54]current date 1729466935 [23:28:54]FM_GetShiftState [23:28:54]SAM_PROTO_GetShiftState [23:28:54]wFMCommunicate request_size=4 [23:28:54]MH_SAM_APDU [23:28:54]CAPDU: 80 13 01 00 [23:28:54]Write to MH i2c: E2 08 00 D2 1B 80 13 01 00 00 00 00 00 6A [23:28:54]Write i2c OK [23:28:54]MH_I2C_Read... [23:28:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:28:54]Read from MH i2c: E2 [23:28:54]MH_I2C_Read... [23:28:54]Read from MH i2c: E2 0E 00 [23:28:54]MH_I2C_Read... [23:28:54]Read from MH i2c: E2 0E 00 D2 1B 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 50 [23:28:54]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [23:28:54]wFMCommunicate OK [23:28:54]SAM_PROTO_GetShiftState done [23:28:54]FM_GetShiftState done [23:28:54]opened in 1729384718 [23:28:54]opened+sec_in_day 1729471118 [23:28:54]quantity*price = 50041 [23:28:54]sum+1 = 50042 [23:28: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 СНО: Общий режим Чек 279 20.10.2024 23:28 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30497 ФПД: 43504088664186 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T232856&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30497&fm=43504088664186&tin=02508201610067®Number=0000000000186857&sum=50000 [23:28:55]StoreToDocumentArchive [23:28:55]shift 114 fd 30497 [23:28:55]save to /storage/0114/doc_00030497 [23:28:55]save last doc name /storage/0114/doc_00030497 to /storage/kkm_last_doc_name [23:28:55]save OK [23:28:55]Clear old archive folders... [23:28:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:28:55]tlvbuf is 01E316C0 [23:28:55]SAM_PROTO_ClearQueue [23:28:55]wFMCommunicate request_size=4 [23:28:55]MH_SAM_APDU [23:28:55]CAPDU: 80 09 00 00 [23:28:55]Write to MH i2c: E2 08 00 DF 1B 80 09 00 00 00 00 00 00 6C [23:28:55]Write i2c OK [23:28:55]MH_I2C_Read... [23:28:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:28:55]Read from MH i2c: E2 [23:28:55]MH_I2C_Read... [23:28:55]Read from MH i2c: E2 03 00 [23:28:55]MH_I2C_Read... [23:28:55]Read from MH i2c: E2 03 00 DF 1B 00 90 00 6E [23:28:55]RAPDU: 90 00 [23:28:55]wFMCommunicate OK [23:28:55]SAM_PROTO_ClearQueue done [23:28:55]KKMCreateOFDPacket [23:28:55]OFDProtocolAddRootSTLVToBuf [23:28:55]FM_MakeSignedData [23:28:55]FM_MakeSignedData [23:28:55]SAM_PROTO_SignData [23:28:55]wFMCommunicate request_size=4 [23:28:55]MH_SAM_APDU [23:28:55]CAPDU: 80 0D 01 02 [23:28:55]Write to MH i2c: E2 08 00 E0 1B 80 0D 01 02 00 00 00 00 74 [23:28:55]Write i2c OK [23:28:55]MH_I2C_Read... [23:28:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:28:55]Read from MH i2c: E2 [23:28:55]MH_I2C_Read... [23:28:55]Read from MH i2c: E2 03 00 [23:28:55]MH_I2C_Read... [23:28:55]Read from MH i2c: E2 03 00 E0 1B 00 90 00 6F [23:28:55]RAPDU: 90 00 [23:28:55]wFMCommunicate OK [23:28:55]wFMCommunicate request_size=255 [23:28:55]MH_SAM_APDU [23:28: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 17 01 00 00 F4 03 04 00 38 92 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 77 00 00 35 04 06 00 27 [23:28:55]Write to MH i2c: E2 02 01 E1 1B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 17 01 00 00 F4 03 04 00 38 92 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 77 00 00 35 04 06 00 27 00 00 94 [23:28:55]Write i2c OK [23:28:55]MH_I2C_Read... [23:28:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:28:55]Read from MH i2c: E2 [23:28:55]MH_I2C_Read... [23:28:55]Read from MH i2c: E2 03 00 [23:28:55]MH_I2C_Read... [23:28:55]Read from MH i2c: E2 03 00 E1 1B 00 90 00 70 [23:28:55]RAPDU: 90 00 [23:28:55]wFMCommunicate OK [23:28:55]wFMCommunicate request_size=10 [23:28:55]MH_SAM_APDU [23:28:55]CAPDU: 80 0D 02 02 05 91 15 C0 48 7A [23:28:55]Write to MH i2c: E2 0D 00 E2 1B 80 0D 02 02 05 00 91 15 C0 48 7A 00 00 A9 [23:28:55]Write i2c OK [23:28:55]MH_I2C_Read... [23:28:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:28:55]Read from MH i2c: E2 [23:28:55]MH_I2C_Read... [23:28:55]Read from MH i2c: E2 03 00 [23:28:55]MH_I2C_Read... [23:28:55]Read from MH i2c: E2 03 00 E2 1B 00 90 00 71 [23:28:55]RAPDU: 90 00 [23:28:55]wFMCommunicate OK [23:28:55]wFMCommunicate request_size=4 [23:28:55]MH_SAM_APDU [23:28:55]CAPDU: 80 0D 03 02 [23:28:55]Write to MH i2c: E2 08 00 E3 1B 80 0D 03 02 00 00 00 00 79 [23:28:55]Write i2c OK [23:28:55]MH_I2C_Read... [23:28:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:28:55]Read from MH i2c: E2 [23:28:55]MH_I2C_Read... [23:28:55]Read from MH i2c: E2 0B 00 [23:28:55]MH_I2C_Read... [23:28:55]Read from MH i2c: E2 0B 00 E3 1B 00 D7 B6 4D AD 7C 6E 95 F7 90 00 77 [23:28:55]RAPDU: D7 B6 4D AD 7C 6E 95 F7 90 00 [23:28:55]wFMCommunicate OK [23:28:55]SAM_PROTO_SignData done [23:28:55]FM_MakeSignedData done [23:28:55]CreateOFDProtocolMessage [23:28:55]wFMCommunicate request_size=4 [23:28:55]MH_SAM_APDU [23:28:55]CAPDU: 80 11 00 00 [23:28:55]Write to MH i2c: E2 08 00 E4 1B 80 11 00 00 00 00 00 00 79 [23:28:55]Write i2c OK [23:28:55]MH_I2C_Read... [23:28:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:28:56]Read from MH i2c: E2 [23:28:56]MH_I2C_Read... [23:28:56]Read from MH i2c: E2 17 00 [23:28:56]MH_I2C_Read... [23:28:56]Read from MH i2c: E2 17 00 E4 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 C7 [23:28:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [23:28:56]wFMCommunicate OK [23:28:56]CreateOFDProtocolMessage done [23:28:56]OFDSenderStorePacket 30497 [23:28:56]StoreOFDPacket docnum=30497 [23:28: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 E1 33 07 01 5C 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 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 17 01 00 00 F4 03 04 00 38 92 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 77 00 00 35 04 06 00 27 91 15 C0 48 7A D7 B6 4D AD 7C 6E 95 F7 [23:28:56]CheckFolder [23:28:56]dirname=/storage/ofd_packets [23:28:56]CheckFolder done [23:28:56]ProducePacketName [23:28:56]name=ofd_packets/00030497 [23:28:56]NVStorageSaveData ofd_packets/00030497 [23:28:56]File name is /storage/ofd_packets/00030497 [23:28:56]Write 301 bytes [23:28:56]NVStorageSaveData done [23:28:56]OFDSenderStorePacket done [23:28:56]KKMCreateOFDPacket done [23:28:56]NVStorageSaveData kkm_last_timestamp [23:28:56]File name is /storage/kkm_last_timestamp [23:28:56]Write 4 bytes [23:28:56]NVStorageSaveData done [23:28:56]ExternCall_PrintAddStr [23:28:56]wPrintStart [23:28:56]Write to MH i2c: 01 00 00 E5 1B 00 [23:28:56]Write i2c OK [23:28:56]MH_I2C_Read... [23:28:56]Read from MH i2c: 01 [23:28:56]MH_I2C_Read... [23:28:56]Read from MH i2c: 01 07 00 [23:28:56]MH_I2C_Read... [23:28:56]Read from MH i2c: 01 07 00 E5 1B 00 00 00 00 00 FF 0F 15 [23:28:56]RasterBufferAndPrint [23:28:56]line Счет N : (1)342901 [23:28:56]line ИНН: 02508201610067 [23:28:56]line Контрольно-Кассовый Чек [23:28:56]line ПРОДАЖА [23:28:56]line ТРК (МРК, ГНК) : 63 [23:28:56]line Товар: 2710124130 [23:28:56]line Аи-92-К-2 [23:28:56]line 7.480 * 66.90 [23:28:56]line = 500.41 [23:28:56]line НДС 12% НСП 1% [23:28:56]line > о реализуемом товаре [23:28:56]line ОКРУГЛЕНИЕ: -0.41 [23:28:56]line ИТОГО: 500.00 [23:28:56]line Внесено: 500.00 [23:28:56]line СДАЧА: 0.00 [23:28:56]line НСП 1% : 4.43 [23:28:56]line НДС 12% : 53.14 [23:28:56]line Наличными: 500.00 [23:28:56]line Безнал.: 0.00 [23:28:56]line Место: АЗС № 78 "Партнер Нефть" [23:28:56]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [23:28:56]line СНО: Общий режим [23:28:56]line Чек 279 20.10.2024 23:28 [23:28:56]line Смена: 114 ФФД: 1.0 [23:28:56]line ЗНМ: 0300000137 [23:28:56]line РНМ: 0000000000186857 [23:28:56]line Версия ККМ: v1.0 [23:28:56]line ФМ: 0000000002094219 [23:28:56]line ФД: 30497 [23:28:56]line ФПД: 43504088664186 [23:28:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T232856&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30497&fm=43504088664186&tin=02508201610067®Number=0000000000186857&sum=50000 [23:28:56]written 0, free lines is 4095 [23:28:56]OFD Sender: Processing packet 30497 [packets to send 10, broken 9] [23:28:56]ProducePacketName [23:28:56]name=ofd_packets/00030497 [23:28:56]OFD Sender: To server: pG, [23:28:56]CommunicateWithHost lk.salyk.kg:30040 [23:28:56]ConnectInit lk.salyk.kg [23:28:56]Connected sock=10 [23:28: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 E1 33 07 01 5C 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 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 17 01 00 00 F4 03 04 00 38 92 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 77 00 00 35 04 06 00 27 91 15 C0 48 7A D7 B6 4D AD 7C 6E 95 F7 [23:28: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 1F EA 47 00 1E 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 21 77 00 00 F4 03 04 00 BA 3C 15 67 B6 04 01 00 00 FD 8A 77 A9 F5 F4 65 22 [23:28:56]CommunicateWithHost err = 0 [23:28:56]CheckOFDResponse [23:28:56]1017 (14) - 77093643461234 [23:28:56]1041 (16) - 0000000002094219 [23:28:56]1040 (4) - 30497 [23:28:56]1012 (4) - 20.10.2024 17:24 [23:28:56]1206 (1) - 0 [23:28:56]OFD Sender: Remove packet 30497 [23:28:56]ProducePacketName [23:28:56]name=ofd_packets/00030497 [23:28:56]NVStorageDeleteData [23:28:56]Write to MH i2c: 01 00 00 10 1C 2C [23:28:56]Write i2c OK [23:28:56]MH_I2C_Read... [23:28:56]Read from MH i2c: 01 [23:28:56]MH_I2C_Read... [23:28:56]Read from MH i2c: 01 07 00 [23:28:56]MH_I2C_Read... [23:28:56]Read from MH i2c: 01 07 00 10 1C 00 00 00 00 00 F1 0C 30 [23:28:56]RasterBufferAndPrint [23:28:56]line [23:28:56]line [23:28:56]line [23:28:56]line [23:28:56]line [23:28:56]written 0, free lines is 3322 [23:28:56]MH_Cut [23:28:56]Write to MH i2c: D1 01 00 17 1C 01 05 [23:28:56]Write i2c OK [23:28:56]MH_I2C_Read... [23:28:56]Read from MH i2c: D1 [23:28:56]MH_I2C_Read... [23:28:56]Read from MH i2c: D1 01 00 [23:28:56]MH_I2C_Read... [23:28:56]Read from MH i2c: D1 01 00 17 1C 00 04 [23:28:56]Write to MH i2c: 01 00 00 18 1C 34 [23:28:56]Write i2c OK [23:28:56]MH_I2C_Read... [23:28:56]OFD Sender: No OFD packet to send [23:28:57]*** Cut start [23:28:57]*** Partial cut [23:28:57]*** CUTSNS_PIN = 1 [23:28:57]*** CUTSNS_PIN = 0 [23:28:57]*** Brake cut motor [23:28:57]Read from MH i2c: 01 [23:28:57]MH_I2C_Read... [23:28:57]*** Stop cut motor [23:28:57]*** Cut end [23:28:57]Read from MH i2c: 01 07 00 [23:28:57]MH_I2C_Read... [23:28:57]Read from MH i2c: 01 07 00 18 1C 00 00 00 00 00 FF 0F 49 [23:28:57]process_action close_receipt done [23:28:57]requested_data is exist [23:28:57]produce_requested_data [23:28:57]requested_item fm.sn is exist - process it [23:28:57]wFMCommunicate request_size=4 [23:28:57]MH_SAM_APDU [23:28:57]CAPDU: 80 11 00 00 [23:28:57]Write to MH i2c: E2 08 00 19 1C 80 11 00 00 00 00 00 00 AF [23:28:57]Write i2c OK [23:28:57]MH_I2C_Read... [23:28:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:28:57]Read from MH i2c: E2 [23:28:57]MH_I2C_Read... [23:28:57]Read from MH i2c: E2 17 00 [23:28:57]MH_I2C_Read... [23:28:57]Read from MH i2c: E2 17 00 19 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 FD [23:28:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [23:28:57]wFMCommunicate OK [23:28:57]requested_item fd.num is exist - process it [23:28:57]SAM_PROTO_GetFieldsCounters [23:28:57]wFMCommunicate request_size=4 [23:28:57]MH_SAM_APDU [23:28:57]CAPDU: 80 13 00 00 [23:28:57]Write to MH i2c: E2 08 00 1A 1C 80 13 00 00 00 00 00 00 B2 [23:28:57]Write i2c OK [23:28:57]MH_I2C_Read... [23:28:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:28:57]Read from MH i2c: E2 [23:28:57]MH_I2C_Read... [23:28:57]Read from MH i2c: E2 62 00 [23:28:57]MH_I2C_Read... [23:28:57]Read from MH i2c: E2 62 00 1A 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 77 00 00 0E 04 04 00 72 00 00 00 12 04 04 00 17 01 00 00 5E 04 04 00 17 01 00 00 57 04 04 00 18 01 00 00 19 04 04 00 00 00 00 00 90 00 2A [23:28: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 21 77 00 00 0E 04 04 00 72 00 00 00 12 04 04 00 17 01 00 00 5E 04 04 00 17 01 00 00 57 04 04 00 18 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:28:57]wFMCommunicate OK [23:28:57]SAM_PROTO_GetFieldsCounters done [23:28:57]requested_item shift.num is exist - process it [23:28:57]requested_item shift.opened is exist - process it [23:28:57]req_shift_opened [23:28:57]FM_GetShiftState [23:28:57]SAM_PROTO_GetShiftState [23:28:57]wFMCommunicate request_size=4 [23:28:57]MH_SAM_APDU [23:28:57]CAPDU: 80 13 01 00 [23:28:57]Write to MH i2c: E2 08 00 1B 1C 80 13 01 00 00 00 00 00 B4 [23:28:57]Write i2c OK [23:28:57]MH_I2C_Read... [23:28:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:28:58]Read from MH i2c: E2 [23:28:58]MH_I2C_Read... [23:28:58]Read from MH i2c: E2 0E 00 [23:28:58]MH_I2C_Read... [23:28:58]Read from MH i2c: E2 0E 00 1B 1C 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 9A [23:28:58]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [23:28:58]wFMCommunicate OK [23:28:58]SAM_PROTO_GetShiftState done [23:28:58]FM_GetShiftState done [23:28:58]req_shift_opened done [23:28:58]requested_item shift.open_date is exist - process it [23:28:58]req_shift_open_date [23:28:58]req_shift_open_date done [23:28:58]produce_requested_data done [23:28:58]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30497,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [23:28:58]process_action_free close_receipt [23:28:58]json_value_free [23:28:58]json_value_free done [23:28:58]process_json_proto returns [23:28:58]Send response to host [23:28:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30497,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [23:28:58]free response buf [23:28:58]execute_script done [23:28:58]execute_script returns [23:28:58]free content buf [23:28:58]Sock 9.Close socket [23:28:58]Sock 9.Thread stoped [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:22]OFD Sender: No OFD packet to send [23:31:27]OFD Sender: No OFD packet to send [23:31:32]OFD Sender: No OFD packet to send [23:31:37]OFD Sender: No OFD packet to send [23:31:42]OFD Sender: No OFD packet to send [23:31:47]OFD Sender: No OFD packet to send [23:31:52]OFD Sender: No OFD packet to send [23:31:57]OFD Sender: No OFD packet to send [23:32:02]OFD Sender: No OFD packet to send [23:32:07]OFD Sender: No OFD packet to send [23:32:12]OFD Sender: No OFD packet to send [23:32:17]OFD Sender: No OFD packet to send [23:32:22]OFD Sender: No OFD packet to send [23:32:27]OFD Sender: No OFD packet to send [23:32:32]OFD Sender: No OFD packet to send [23:32:37]OFD Sender: No OFD packet to send [23:32:42]OFD Sender: No OFD packet to send [23:32:47]OFD Sender: No OFD packet to send [23:32:52]OFD Sender: No OFD packet to send [23:32:57]OFD Sender: No OFD packet to send [23:33:02]OFD Sender: No OFD packet to send [23:33:07]OFD Sender: No OFD packet to send [23:33:12]OFD Sender: No OFD packet to send [23:33:17]OFD Sender: No OFD packet to send [23:33:22]OFD Sender: No OFD packet to send [23:33:27]OFD Sender: No OFD packet to send [23:33:32]OFD Sender: No OFD packet to send [23:33:37]OFD Sender: No OFD packet to send [23:33:42]OFD Sender: No OFD packet to send [23:33:47]OFD Sender: No OFD packet to send [23:33:52]OFD Sender: No OFD packet to send [23:33:57]OFD Sender: No OFD packet to send [23:34:02]OFD Sender: No OFD packet to send [23:34:07]OFD Sender: No OFD packet to send [23:34:12]OFD Sender: No OFD packet to send [23:34:17]OFD Sender: No OFD packet to send [23:34:22]OFD Sender: No OFD packet to send [23:34:27]OFD Sender: No OFD packet to send [23:34:32]OFD Sender: No OFD packet to send [23:34:37]OFD Sender: No OFD packet to send [23:34:42]OFD Sender: No OFD packet to send [23:34:47]OFD Sender: No OFD packet to send [23:34:52]OFD Sender: No OFD packet to send [23:34:57]OFD Sender: No OFD packet to send [23:35:02]OFD Sender: No OFD packet to send [23:35:07]OFD Sender: No OFD packet to send [23:35:12]OFD Sender: No OFD packet to send [23:35:17]OFD Sender: No OFD packet to send [23:35:22]OFD Sender: No OFD packet to send [23:35:27]OFD Sender: No OFD packet to send [23:35:32]OFD Sender: No OFD packet to send [23:35:37]OFD Sender: No OFD packet to send [23:35:42]OFD Sender: No OFD packet to send [23:35:47]OFD Sender: No OFD packet to send [23:35:52]OFD Sender: No OFD packet to send [23:35:57]OFD Sender: No OFD packet to send [23:36:02]OFD Sender: No OFD packet to send [23:36:07]OFD Sender: No OFD packet to send [23:36:12]OFD Sender: No OFD packet to send [23:36:17]OFD Sender: No OFD packet to send [23:36:22]OFD Sender: No OFD packet to send [23:36:27]OFD Sender: No OFD packet to send [23:36:32]OFD Sender: No OFD packet to send [23:36:37]OFD Sender: No OFD packet to send [23:36:42]OFD Sender: No OFD packet to send [23:36:47]OFD Sender: No OFD packet to send [23:36: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:35]accept exits with 7 [23:44:35]New connection [23:44:35]New thread 3067489636 created [23:44:35]Thread 3067346276 joined [23:44:35]Waiting for new connection... [23:44:35] Sock 7.Parse request [23:44:35]Sock 7.Check first char [23:44:35]Sock 7.First char is OK [23:44:35]request: POST /json_proto HTTP/1.0 [23:44:35]Method: POST [23:44:35]URL: /json_proto [23:44:35]Method is POST - this is cgi request [23:44:35]url: /json_proto [23:44:35]query_string will be loaded in cgi processing [23:44:35]execute_cgi json_proto POST (null) [23:44:35]execute_cgi path=json_proto method=POST [23:44:35]POST find Content-Length [23:44:35]Host: 172.17.51.3:8080 [23:44:35]Content-Length: 677 [23:44:35]Content-Type: application/json [23:44:35] [23:44:35]POST finish read [23:44:35]Found Content-Length = 677 [23:44:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342902", "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" ] } } [23:44:35]execute_script... [23:44: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)342902", "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" ] } } [23:44:35]POST & json_proto [23:44:35]process_json_proto [23:44:35]json parsed OK: [23:44:35]protocol is kg_v1.0 [23:44:35]action value=close_receipt [23:44:35]process_action close_receipt [23:44:35]cmd_close_receipt [23:44:35]MH_GetDate [23:44:35]Write to MH i2c: F0 00 00 1C 1C 27 [23:44:35]Write i2c OK [23:44:35]MH_I2C_Read... [23:44:35]Read from MH i2c: F0 [23:44:35]MH_I2C_Read... [23:44:35]Read from MH i2c: F0 09 00 [23:44:35]MH_I2C_Read... [23:44:35]Read from MH i2c: F0 09 00 1C 1C 00 E5 95 15 67 04 C1 95 66 E6 [23:44:35]GetLastDocTimeStamp 1729466936 [23:44:35]current date 1729467877 [23:44:35]FM_GetShiftState [23:44:35]SAM_PROTO_GetShiftState [23:44:35]wFMCommunicate request_size=4 [23:44:35]MH_SAM_APDU [23:44:35]CAPDU: 80 13 01 00 [23:44:35]Write to MH i2c: E2 08 00 1D 1C 80 13 01 00 00 00 00 00 B6 [23:44:35]Write i2c OK [23:44:35]MH_I2C_Read... [23:44:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:44:35]Read from MH i2c: E2 [23:44:35]MH_I2C_Read... [23:44:35]Read from MH i2c: E2 0E 00 [23:44:35]MH_I2C_Read... [23:44:35]Read from MH i2c: E2 0E 00 1D 1C 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 9C [23:44:35]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [23:44:35]wFMCommunicate OK [23:44:35]SAM_PROTO_GetShiftState done [23:44:35]FM_GetShiftState done [23:44:35]opened in 1729384718 [23:44:35]opened+sec_in_day 1729471118 [23:44:35]quantity*price = 50041 [23:44:35]sum+1 = 50042 [23:44:35]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 СНО: Общий режим Чек 280 20.10.2024 23:44 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30498 ФПД: 93662997024647 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T234437&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30498&fm=93662997024647&tin=02508201610067®Number=0000000000186857&sum=50000 [23:44:36]StoreToDocumentArchive [23:44:36]shift 114 fd 30498 [23:44:36]save to /storage/0114/doc_00030498 [23:44:36]save last doc name /storage/0114/doc_00030498 to /storage/kkm_last_doc_name [23:44:36]save OK [23:44:36]Clear old archive folders... [23:44:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:44:36]tlvbuf is 01E316C0 [23:44:36]SAM_PROTO_ClearQueue [23:44:36]wFMCommunicate request_size=4 [23:44:36]MH_SAM_APDU [23:44:36]CAPDU: 80 09 00 00 [23:44:36]Write to MH i2c: E2 08 00 2A 1C 80 09 00 00 00 00 00 00 B8 [23:44:36]Write i2c OK [23:44:36]MH_I2C_Read... [23:44:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:44:36]Read from MH i2c: E2 [23:44:36]MH_I2C_Read... [23:44:36]Read from MH i2c: E2 03 00 [23:44:36]MH_I2C_Read... [23:44:36]Read from MH i2c: E2 03 00 2A 1C 00 90 00 BA [23:44:36]RAPDU: 90 00 [23:44:36]wFMCommunicate OK [23:44:36]SAM_PROTO_ClearQueue done [23:44:36]KKMCreateOFDPacket [23:44:36]OFDProtocolAddRootSTLVToBuf [23:44:36]FM_MakeSignedData [23:44:36]FM_MakeSignedData [23:44:36]SAM_PROTO_SignData [23:44:36]wFMCommunicate request_size=4 [23:44:36]MH_SAM_APDU [23:44:36]CAPDU: 80 0D 01 02 [23:44:36]Write to MH i2c: E2 08 00 2B 1C 80 0D 01 02 00 00 00 00 C0 [23:44:36]Write i2c OK [23:44:36]MH_I2C_Read... [23:44:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:44:36]Read from MH i2c: E2 [23:44:36]MH_I2C_Read... [23:44:36]Read from MH i2c: E2 03 00 [23:44:36]MH_I2C_Read... [23:44:36]Read from MH i2c: E2 03 00 2B 1C 00 90 00 BB [23:44:36]RAPDU: 90 00 [23:44:36]wFMCommunicate OK [23:44:36]wFMCommunicate request_size=255 [23:44:36]MH_SAM_APDU [23:44: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 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 01 00 00 F4 03 04 00 E5 95 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 77 00 00 35 04 06 00 55 [23:44:36]Write to MH i2c: E2 02 01 2C 1C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 01 00 00 F4 03 04 00 E5 95 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 77 00 00 35 04 06 00 55 00 00 C0 [23:44:36]Write i2c OK [23:44:36]MH_I2C_Read... [23:44:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:44:37]Read from MH i2c: E2 [23:44:37]MH_I2C_Read... [23:44:37]Read from MH i2c: E2 03 00 [23:44:37]MH_I2C_Read... [23:44:37]Read from MH i2c: E2 03 00 2C 1C 00 90 00 BC [23:44:37]RAPDU: 90 00 [23:44:37]wFMCommunicate OK [23:44:37]wFMCommunicate request_size=10 [23:44:37]MH_SAM_APDU [23:44:37]CAPDU: 80 0D 02 02 05 2F 9D AA 8F 87 [23:44:37]Write to MH i2c: E2 0D 00 2D 1C 80 0D 02 02 05 00 2F 9D AA 8F 87 00 00 59 [23:44:37]Write i2c OK [23:44:37]MH_I2C_Read... [23:44:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:44:37]Read from MH i2c: E2 [23:44:37]MH_I2C_Read... [23:44:37]Read from MH i2c: E2 03 00 [23:44:37]MH_I2C_Read... [23:44:37]Read from MH i2c: E2 03 00 2D 1C 00 90 00 BD [23:44:37]RAPDU: 90 00 [23:44:37]wFMCommunicate OK [23:44:37]wFMCommunicate request_size=4 [23:44:37]MH_SAM_APDU [23:44:37]CAPDU: 80 0D 03 02 [23:44:37]Write to MH i2c: E2 08 00 2E 1C 80 0D 03 02 00 00 00 00 C5 [23:44:37]Write i2c OK [23:44:37]MH_I2C_Read... [23:44:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:44:37]Read from MH i2c: E2 [23:44:37]MH_I2C_Read... [23:44:37]Read from MH i2c: E2 0B 00 [23:44:37]MH_I2C_Read... [23:44:37]Read from MH i2c: E2 0B 00 2E 1C 00 F9 D9 00 07 CA C7 5B 3E 90 00 C9 [23:44:37]RAPDU: F9 D9 00 07 CA C7 5B 3E 90 00 [23:44:37]wFMCommunicate OK [23:44:37]SAM_PROTO_SignData done [23:44:37]FM_MakeSignedData done [23:44:37]CreateOFDProtocolMessage [23:44:37]wFMCommunicate request_size=4 [23:44:37]MH_SAM_APDU [23:44:37]CAPDU: 80 11 00 00 [23:44:37]Write to MH i2c: E2 08 00 2F 1C 80 11 00 00 00 00 00 00 C5 [23:44:37]Write i2c OK [23:44:37]MH_I2C_Read... [23:44:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:44:37]Read from MH i2c: E2 [23:44:37]MH_I2C_Read... [23:44:37]Read from MH i2c: E2 17 00 [23:44:37]MH_I2C_Read... [23:44:37]Read from MH i2c: E2 17 00 2F 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 13 [23:44:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [23:44:37]wFMCommunicate OK [23:44:37]CreateOFDProtocolMessage done [23:44:37]OFDSenderStorePacket 30498 [23:44:37]StoreOFDPacket docnum=30498 [23:44: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 3A 53 07 01 CF 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 18 01 00 00 F4 03 04 00 E5 95 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 77 00 00 35 04 06 00 55 2F 9D AA 8F 87 F9 D9 00 07 CA C7 5B 3E [23:44:37]CheckFolder [23:44:37]dirname=/storage/ofd_packets [23:44:37]CheckFolder done [23:44:37]ProducePacketName [23:44:37]name=ofd_packets/00030498 [23:44:37]NVStorageSaveData ofd_packets/00030498 [23:44:37]File name is /storage/ofd_packets/00030498 [23:44:37]Write 301 bytes [23:44:37]NVStorageSaveData done [23:44:37]OFDSenderStorePacket done [23:44:37]KKMCreateOFDPacket done [23:44:37]NVStorageSaveData kkm_last_timestamp [23:44:37]File name is /storage/kkm_last_timestamp [23:44:37]Write 4 bytes [23:44:37]NVStorageSaveData done [23:44:37]ExternCall_PrintAddStr [23:44:37]wPrintStart [23:44:37]Write to MH i2c: 01 00 00 30 1C 4C [23:44:37]Write i2c OK [23:44:37]MH_I2C_Read... [23:44:37]Read from MH i2c: 01 [23:44:37]MH_I2C_Read... [23:44:37]Read from MH i2c: 01 07 00 [23:44:37]MH_I2C_Read... [23:44:37]Read from MH i2c: 01 07 00 30 1C 00 00 00 00 00 FF 0F 61 [23:44:37]RasterBufferAndPrint [23:44:37]line Счет N : (1)342902 [23:44:37]line ИНН: 02508201610067 [23:44:37]line Контрольно-Кассовый Чек [23:44:37]line ПРОДАЖА [23:44:37]line ТРК (МРК, ГНК) : 53 [23:44:37]line Товар: 2710124130 [23:44:37]line Аи-92-К-2 [23:44:37]line 7.480 * 66.90 [23:44:37]line = 500.41 [23:44:37]line НДС 12% НСП 1% [23:44:37]line > о реализуемом товаре [23:44:37]line ОКРУГЛЕНИЕ: -0.41 [23:44:37]line ИТОГО: 500.00 [23:44:37]line Внесено: 500.00 [23:44:37]line СДАЧА: 0.00 [23:44:37]line НСП 1% : 4.43 [23:44:37]line НДС 12% : 53.14 [23:44:37]line Наличными: 500.00 [23:44:37]line Безнал.: 0.00 [23:44:37]line Место: АЗС № 78 "Партнер Нефть" [23:44:37]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [23:44:37]line СНО: Общий режим [23:44:37]line Чек 280 20.10.2024 23:44 [23:44:37]line Смена: 114 ФФД: 1.0 [23:44:37]line ЗНМ: 0300000137 [23:44:37]line РНМ: 0000000000186857 [23:44:37]line Версия ККМ: v1.0 [23:44:37]line ФМ: 0000000002094219 [23:44:37]line ФД: 30498 [23:44:37]line ФПД: 93662997024647 [23:44:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T234437&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30498&fm=93662997024647&tin=02508201610067®Number=0000000000186857&sum=50000 [23:44:37]OFD Sender: Processing packet 30498 [packets to send 10, broken 9] [23:44:37]ProducePacketName [23:44:37]name=ofd_packets/00030498 [23:44:37]OFD Sender: To server: pG, [23:44:37]CommunicateWithHost lk.salyk.kg:30040 [23:44:37]ConnectInit lk.salyk.kg [23:44:37]written 0, free lines is 4095 [23:44:37]Connected sock=10 [23:44: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 3A 53 07 01 CF 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 18 01 00 00 F4 03 04 00 E5 95 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 77 00 00 35 04 06 00 55 2F 9D AA 8F 87 F9 D9 00 07 CA C7 5B 3E [23:44: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 E3 CD 47 00 1F 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 22 77 00 00 F4 03 04 00 67 40 15 67 B6 04 01 00 00 A4 CB E1 8A 2A D0 2D 60 [23:44:38]CommunicateWithHost err = 0 [23:44:38]CheckOFDResponse [23:44:38]1017 (14) - 77093643461234 [23:44:38]1041 (16) - 0000000002094219 [23:44:38]1040 (4) - 30498 [23:44:38]1012 (4) - 20.10.2024 17:39 [23:44:38]1206 (1) - 0 [23:44:38]OFD Sender: Remove packet 30498 [23:44:38]ProducePacketName [23:44:38]name=ofd_packets/00030498 [23:44:38]NVStorageDeleteData [23:44:38]Write to MH i2c: 01 00 00 5B 1C 77 [23:44:38]Write i2c OK [23:44:38]MH_I2C_Read... [23:44:38]Read from MH i2c: 01 [23:44:38]MH_I2C_Read... [23:44:38]Read from MH i2c: 01 07 00 [23:44:38]MH_I2C_Read... [23:44:38]Read from MH i2c: 01 07 00 5B 1C 00 00 00 00 00 E4 0C 6E [23:44:38]RasterBufferAndPrint [23:44:38]line [23:44:38]line [23:44:38]line [23:44:38]line [23:44:38]line [23:44:38]written 0, free lines is 3306 [23:44:38]MH_Cut [23:44:38]Write to MH i2c: D1 01 00 62 1C 01 50 [23:44:38]Write i2c OK [23:44:38]MH_I2C_Read... [23:44:38]Read from MH i2c: D1 [23:44:38]MH_I2C_Read... [23:44:38]Read from MH i2c: D1 01 00 [23:44:38]MH_I2C_Read... [23:44:38]Read from MH i2c: D1 01 00 62 1C 00 4F [23:44:38]Write to MH i2c: 01 00 00 63 1C 7F [23:44:38]Write i2c OK [23:44:38]MH_I2C_Read... [23:44:38]OFD Sender: No OFD packet to send [23:44:38]*** Cut start [23:44:38]*** Partial cut [23:44:38]*** CUTSNS_PIN = 1 [23:44:38]*** CUTSNS_PIN = 0 [23:44:39]*** Brake cut motor [23:44:39]Read from MH i2c: 01 [23:44:39]MH_I2C_Read... [23:44:39]*** Stop cut motor [23:44:39]*** Cut end [23:44:39]Read from MH i2c: 01 07 00 [23:44:39]MH_I2C_Read... [23:44:39]Read from MH i2c: 01 07 00 63 1C 00 00 00 00 00 FF 0F 94 [23:44:39]process_action close_receipt done [23:44:39]requested_data is exist [23:44:39]produce_requested_data [23:44:39]requested_item fm.sn is exist - process it [23:44:39]wFMCommunicate request_size=4 [23:44:39]MH_SAM_APDU [23:44:39]CAPDU: 80 11 00 00 [23:44:39]Write to MH i2c: E2 08 00 64 1C 80 11 00 00 00 00 00 00 FA [23:44:39]Write i2c OK [23:44:39]MH_I2C_Read... [23:44:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:44:39]Read from MH i2c: E2 [23:44:39]MH_I2C_Read... [23:44:39]Read from MH i2c: E2 17 00 [23:44:39]MH_I2C_Read... [23:44:39]Read from MH i2c: E2 17 00 64 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 48 [23:44: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:44:39]wFMCommunicate OK [23:44:39]requested_item fd.num is exist - process it [23:44:39]SAM_PROTO_GetFieldsCounters [23:44:39]wFMCommunicate request_size=4 [23:44:39]MH_SAM_APDU [23:44:39]CAPDU: 80 13 00 00 [23:44:39]Write to MH i2c: E2 08 00 65 1C 80 13 00 00 00 00 00 00 FD [23:44:39]Write i2c OK [23:44:39]MH_I2C_Read... [23:44:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:44:39]Read from MH i2c: E2 [23:44:39]MH_I2C_Read... [23:44:39]Read from MH i2c: E2 62 00 [23:44:39]MH_I2C_Read... [23:44:39]Read from MH i2c: E2 62 00 65 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 77 00 00 0E 04 04 00 72 00 00 00 12 04 04 00 18 01 00 00 5E 04 04 00 18 01 00 00 57 04 04 00 19 01 00 00 19 04 04 00 00 00 00 00 90 00 79 [23:44: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 22 77 00 00 0E 04 04 00 72 00 00 00 12 04 04 00 18 01 00 00 5E 04 04 00 18 01 00 00 57 04 04 00 19 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:44:39]wFMCommunicate OK [23:44:39]SAM_PROTO_GetFieldsCounters done [23:44:39]requested_item shift.num is exist - process it [23:44:39]requested_item shift.opened is exist - process it [23:44:39]req_shift_opened [23:44:39]FM_GetShiftState [23:44:39]SAM_PROTO_GetShiftState [23:44:39]wFMCommunicate request_size=4 [23:44:39]MH_SAM_APDU [23:44:39]CAPDU: 80 13 01 00 [23:44:39]Write to MH i2c: E2 08 00 66 1C 80 13 01 00 00 00 00 00 FF [23:44:39]Write i2c OK [23:44:39]MH_I2C_Read... [23:44:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:44:39]Read from MH i2c: E2 [23:44:39]MH_I2C_Read... [23:44:39]Read from MH i2c: E2 0E 00 [23:44:39]MH_I2C_Read... [23:44:39]Read from MH i2c: E2 0E 00 66 1C 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 E5 [23:44:39]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [23:44:39]wFMCommunicate OK [23:44:39]SAM_PROTO_GetShiftState done [23:44:39]FM_GetShiftState done [23:44:39]req_shift_opened done [23:44:39]requested_item shift.open_date is exist - process it [23:44:39]req_shift_open_date [23:44:39]req_shift_open_date done [23:44:39]produce_requested_data done [23:44:39]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30498,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [23:44:39]process_action_free close_receipt [23:44:39]json_value_free [23:44:39]json_value_free done [23:44:39]process_json_proto returns [23:44:39]Send response to host [23:44:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30498,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [23:44:39]free response buf [23:44:39]execute_script done [23:44:39]execute_script returns [23:44:39]free content buf [23:44:39]Sock 7.Close socket [23:44:39]Sock 7.Thread stoped [23:44:43]OFD Sender: No OFD packet to send [23:44:48]OFD Sender: No OFD packet to send [23:44:53]OFD Sender: No OFD packet to send [23:44:58]OFD Sender: No OFD packet to send [23:45:03]OFD Sender: No OFD packet to send [23:45:08]OFD Sender: No OFD packet to send [23:45:13]OFD Sender: No OFD packet to send [23:45:18]OFD Sender: No OFD packet to send [23:45:23]OFD Sender: No OFD packet to send [23:45:28]OFD Sender: No OFD packet to send [23:45:33]OFD Sender: No OFD packet to send [23:45:38]OFD Sender: No OFD packet to send [23:45:43]OFD Sender: No OFD packet to send [23:45:48]OFD Sender: No OFD packet to send [23:45:53]OFD Sender: No OFD packet to send [23:45:58]OFD Sender: No OFD packet to send [23:46:03]OFD Sender: No OFD packet to send [23:46:08]OFD Sender: No OFD packet to send [23:46:13]OFD Sender: No OFD packet to send [23:46:18]OFD Sender: No OFD packet to send [23:46:23]OFD Sender: No OFD packet to send [23:46:28]OFD Sender: No OFD packet to send [23:46:33]OFD Sender: No OFD packet to send [23:46:38]OFD Sender: No OFD packet to send [23:46:43]OFD Sender: No OFD packet to send [23:46:48]OFD Sender: No OFD packet to send [23:46:53]OFD Sender: No OFD packet to send [23:46:58]OFD Sender: No OFD packet to send [23:47:03]OFD Sender: No OFD packet to send [23:47:08]OFD Sender: No OFD packet to send [23:47:13]OFD Sender: No OFD packet to send [23:47:18]OFD Sender: No OFD packet to send [23:47:23]OFD Sender: No OFD packet to send [23:47:28]OFD Sender: No OFD packet to send [23:47:33]OFD Sender: No OFD packet to send [23:47:38]OFD Sender: No OFD packet to send [23:47:43]OFD Sender: No OFD packet to send [23:47:48]OFD Sender: No OFD packet to send [23:47:53]OFD Sender: No OFD packet to send [23:47:58]OFD Sender: No OFD packet to send [23:48:03]OFD Sender: No OFD packet to send [23:48:08]OFD Sender: No OFD packet to send [23:48:13]OFD Sender: No OFD packet to send [23:48:18]OFD Sender: No OFD packet to send [23:48:23]OFD Sender: No OFD packet to send [23:48:28]OFD Sender: No OFD packet to send [23:48:33]OFD Sender: No OFD packet to send [23:48:38]OFD Sender: No OFD packet to send [23:48:43]OFD Sender: No OFD packet to send [23:48:48]OFD Sender: No OFD packet to send [23:48:53]OFD Sender: No OFD packet to send [23:48:58]OFD Sender: No OFD packet to send [23:49:03]OFD Sender: No OFD packet to send [23:49:08]OFD Sender: No OFD packet to send [23:49:13]OFD Sender: No OFD packet to send [23:49:18]OFD Sender: No OFD packet to send [23:49:23]OFD Sender: No OFD packet to send [23:49:28]OFD Sender: No OFD packet to send [23:49:33]OFD Sender: No OFD packet to send [23:49:38]OFD Sender: No OFD packet to send [23:49:43]OFD Sender: No OFD packet to send [23:49:48]OFD Sender: No OFD packet to send [23:49:53]OFD Sender: No OFD packet to send [23:49:58]OFD Sender: No OFD packet to send [23:50:03]OFD Sender: No OFD packet to send [23:50:08]OFD Sender: No OFD packet to send [23:50:13]OFD Sender: No OFD packet to send [23:50:18]OFD Sender: No OFD packet to send [23:50:23]OFD Sender: No OFD packet to send [23:50:28]OFD Sender: No OFD packet to send [23:50:33]OFD Sender: No OFD packet to send [23:50:38]OFD Sender: No OFD packet to send [23:50:43]OFD Sender: No OFD packet to send [23:50:48]OFD Sender: No OFD packet to send [23:50:53]OFD Sender: No OFD packet to send [23:50:58]OFD Sender: No OFD packet to send [23:51:03]OFD Sender: No OFD packet to send [23:51:08]OFD Sender: No OFD packet to send [23:51:13]OFD Sender: No OFD packet to send [23:51:18]OFD Sender: No OFD packet to send [23:51:23]OFD Sender: No OFD packet to send [23:51:28]OFD Sender: No OFD packet to send [23:51:33]OFD Sender: No OFD packet to send [23:51:38]OFD Sender: No OFD packet to send [23:51:43]OFD Sender: No OFD packet to send [23:51:48]OFD Sender: No OFD packet to send [23:51:53]OFD Sender: No OFD packet to send [23:51:58]OFD Sender: No OFD packet to send [23:52:03]OFD Sender: No OFD packet to send [23:52:08]OFD Sender: No OFD packet to send [23:52:13]OFD Sender: No OFD packet to send [23:52:18]OFD Sender: No OFD packet to send [23:52:23]OFD Sender: No OFD packet to send [23:52:28]OFD Sender: No OFD packet to send [23:52:33]OFD Sender: No OFD packet to send [23:52:38]OFD Sender: No OFD packet to send [23:52:43]OFD Sender: No OFD packet to send [23:52:48]OFD Sender: No OFD packet to send [23:52:53]OFD Sender: No OFD packet to send [23:52:58]OFD Sender: No OFD packet to send [23:53:03]OFD Sender: No OFD packet to send [23:53:08]OFD Sender: No OFD packet to send [23:53:13]OFD Sender: No OFD packet to send [23:53:18]OFD Sender: No OFD packet to send [23:53:23]OFD Sender: No OFD packet to send [23:53:28]OFD Sender: No OFD packet to send [23:53:33]OFD Sender: No OFD packet to send [23:53:38]OFD Sender: No OFD packet to send [23:53:43]OFD Sender: No OFD packet to send [23:53:48]OFD Sender: No OFD packet to send [23:53:53]OFD Sender: No OFD packet to send [23:53:58]OFD Sender: No OFD packet to send [23:54:03]OFD Sender: No OFD packet to send [23:54:09]OFD Sender: No OFD packet to send [23:54:14]OFD Sender: No OFD packet to send [23:54:19]OFD Sender: No OFD packet to send [23:54:24]OFD Sender: No OFD packet to send [23:54:29]OFD Sender: No OFD packet to send [23:54:34]OFD Sender: No OFD packet to send [23:54:39]OFD Sender: No OFD packet to send [23:54:44]OFD Sender: No OFD packet to send [23:54:49]OFD Sender: No OFD packet to send [23:54:54]OFD Sender: No OFD packet to send [23:54:59]OFD Sender: No OFD packet to send [23:55:04]OFD Sender: No OFD packet to send [23:55:09]OFD Sender: No OFD packet to send [23:55:14]OFD Sender: No OFD packet to send [23:55:19]OFD Sender: No OFD packet to send [23:55:24]OFD Sender: No OFD packet to send [23:55:29]OFD Sender: No OFD packet to send [23:55:34]OFD Sender: No OFD packet to send [23:55:39]OFD Sender: No OFD packet to send [23:55:44]OFD Sender: No OFD packet to send [23:55:49]OFD Sender: No OFD packet to send [23:55:54]OFD Sender: No OFD packet to send [23:55:59]OFD Sender: No OFD packet to send [23:56:04]OFD Sender: No OFD packet to send [23:56:09]OFD Sender: No OFD packet to send [23:56:14]OFD Sender: No OFD packet to send [23:56:19]OFD Sender: No OFD packet to send [23:56:24]OFD Sender: No OFD packet to send [23:56:29]OFD Sender: No OFD packet to send [23:56:34]OFD Sender: No OFD packet to send [23:56:39]OFD Sender: No OFD packet to send [23:56:44]OFD Sender: No OFD packet to send [23:56:49]OFD Sender: No OFD packet to send [23:56:54]OFD Sender: No OFD packet to send [23:56:59]OFD Sender: No OFD packet to send [23:57:04]OFD Sender: No OFD packet to send [23:57:09]OFD Sender: No OFD packet to send [23:57:14]OFD Sender: No OFD packet to send [23:57:19]OFD Sender: No OFD packet to send [23:57:24]OFD Sender: No OFD packet to send [23:57:29]OFD Sender: No OFD packet to send [23:57:34]OFD Sender: No OFD packet to send [23:57:39]OFD Sender: No OFD packet to send [23:57:44]OFD Sender: No OFD packet to send [23:57:49]OFD Sender: No OFD packet to send [23:57:54]OFD Sender: No OFD packet to send [23:57:59]OFD Sender: No OFD packet to send [23:58:03]accept exits with 9 [23:58:03]New connection [23:58:03]New thread 3067346276 created [23:58:03]Thread 3067489636 joined [23:58:03]Waiting for new connection... [23:58:03] Sock 9.Parse request [23:58:03]Sock 9.Check first char [23:58:03]Sock 9.First char is OK [23:58:03]request: POST /json_proto HTTP/1.0 [23:58:03]Method: POST [23:58:03]URL: /json_proto [23:58:03]Method is POST - this is cgi request [23:58:03]url: /json_proto [23:58:03]query_string will be loaded in cgi processing [23:58:03]execute_cgi json_proto POST (null) [23:58:03]execute_cgi path=json_proto method=POST [23:58:03]POST find Content-Length [23:58:03]Host: 172.17.51.3:8080 [23:58:03]Content-Length: 840 [23:58:03]Content-Type: application/json [23:58:03] [23:58:03]POST finish read [23:58:03]Found Content-Length = 840 [23:58:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342903", "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" ] } } [23:58:03]execute_script... [23:58:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342903", "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" ] } } [23:58:03]POST & json_proto [23:58:03]process_json_proto [23:58:03]json parsed OK: [23:58:03]protocol is kg_v1.0 [23:58:03]action value=close_receipt [23:58:03]process_action close_receipt [23:58:03]cmd_close_receipt [23:58:03]MH_GetDate [23:58:03]Write to MH i2c: F0 00 00 67 1C 72 [23:58:03]Write i2c OK [23:58:03]MH_I2C_Read... [23:58:03]Read from MH i2c: F0 [23:58:03]MH_I2C_Read... [23:58:03]Read from MH i2c: F0 09 00 [23:58:03]MH_I2C_Read... [23:58:03]Read from MH i2c: F0 09 00 67 1C 00 0D 99 15 67 04 C1 95 66 5D [23:58:03]GetLastDocTimeStamp 1729467877 [23:58:03]current date 1729468685 [23:58:03]FM_GetShiftState [23:58:03]SAM_PROTO_GetShiftState [23:58:03]wFMCommunicate request_size=4 [23:58:03]MH_SAM_APDU [23:58:03]CAPDU: 80 13 01 00 [23:58:03]Write to MH i2c: E2 08 00 68 1C 80 13 01 00 00 00 00 00 01 [23:58:03]Write i2c OK [23:58:03]MH_I2C_Read... [23:58:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:58:03]Read from MH i2c: E2 [23:58:03]MH_I2C_Read... [23:58:03]Read from MH i2c: E2 0E 00 [23:58:03]MH_I2C_Read... [23:58:03]Read from MH i2c: E2 0E 00 68 1C 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 E7 [23:58:03]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [23:58:03]wFMCommunicate OK [23:58:03]SAM_PROTO_GetShiftState done [23:58:03]FM_GetShiftState done [23:58:03]opened in 1729384718 [23:58:03]opened+sec_in_day 1729471118 [23:58:03]quantity*price = 20003 [23:58:03]sum+1 = 20004 [23:58:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 200.03 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 0.00 Безнал.: 200.03 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 281 20.10.2024 23:58 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Платежная система: АКБ Кыргызстан ФМ: 0000000002094219 ФД: 30499 ФПД: 141689235350791 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T235805&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30499&fm=141689235350791&tin=02508201610067®Number=0000000000186857&sum=20003 [23:58:04]StoreToDocumentArchive [23:58:04]shift 114 fd 30499 [23:58:04]save to /storage/0114/doc_00030499 [23:58:04]save last doc name /storage/0114/doc_00030499 to /storage/kkm_last_doc_name [23:58:04]save OK [23:58:04]Clear old archive folders... [23:58:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:58:04]tlvbuf is 01E0E6E0 [23:58:04]SAM_PROTO_ClearQueue [23:58:04]wFMCommunicate request_size=4 [23:58:04]MH_SAM_APDU [23:58:04]CAPDU: 80 09 00 00 [23:58:04]Write to MH i2c: E2 08 00 75 1C 80 09 00 00 00 00 00 00 03 [23:58:04]Write i2c OK [23:58:04]MH_I2C_Read... [23:58:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:58:04]Read from MH i2c: E2 [23:58:04]MH_I2C_Read... [23:58:04]Read from MH i2c: E2 03 00 [23:58:04]MH_I2C_Read... [23:58:04]Read from MH i2c: E2 03 00 75 1C 00 90 00 05 [23:58:04]RAPDU: 90 00 [23:58:04]wFMCommunicate OK [23:58:04]SAM_PROTO_ClearQueue done [23:58:04]KKMCreateOFDPacket [23:58:04]OFDProtocolAddRootSTLVToBuf [23:58:04]FM_MakeSignedData [23:58:04]FM_MakeSignedData [23:58:04]SAM_PROTO_SignData [23:58:04]wFMCommunicate request_size=4 [23:58:04]MH_SAM_APDU [23:58:04]CAPDU: 80 0D 01 02 [23:58:04]Write to MH i2c: E2 08 00 76 1C 80 0D 01 02 00 00 00 00 0B [23:58:04]Write i2c OK [23:58:04]MH_I2C_Read... [23:58:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:58:04]Read from MH i2c: E2 [23:58:04]MH_I2C_Read... [23:58:04]Read from MH i2c: E2 03 00 [23:58:04]MH_I2C_Read... [23:58:04]Read from MH i2c: E2 03 00 76 1C 00 90 00 06 [23:58:04]RAPDU: 90 00 [23:58:04]wFMCommunicate OK [23:58:04]wFMCommunicate request_size=255 [23:58:04]MH_SAM_APDU [23:58: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 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 19 01 00 00 F4 03 04 00 0D 99 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 77 00 00 35 04 06 00 80 [23:58:04]Write to MH i2c: E2 02 01 77 1C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 19 01 00 00 F4 03 04 00 0D 99 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 77 00 00 35 04 06 00 80 00 00 2C [23:58:04]Write i2c OK [23:58:04]MH_I2C_Read... [23:58:04]Read from MH i2c: E2 [23:58:04]MH_I2C_Read... [23:58:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:58:04]Read from MH i2c: E2 03 00 [23:58:04]MH_I2C_Read... [23:58:04]Read from MH i2c: E2 03 00 77 1C 00 90 00 07 [23:58:04]RAPDU: 90 00 [23:58:04]wFMCommunicate OK [23:58:04]wFMCommunicate request_size=10 [23:58:04]MH_SAM_APDU [23:58:04]CAPDU: 80 0D 02 02 05 DD 98 8A A5 07 [23:58:04]Write to MH i2c: E2 0D 00 78 1C 80 0D 02 02 05 00 DD 98 8A A5 07 00 00 C3 [23:58:04]Write i2c OK [23:58:04]MH_I2C_Read... [23:58:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:58:04]Read from MH i2c: E2 [23:58:04]MH_I2C_Read... [23:58:04]Read from MH i2c: E2 03 00 [23:58:04]MH_I2C_Read... [23:58:04]Read from MH i2c: E2 03 00 78 1C 00 90 00 08 [23:58:04]RAPDU: 90 00 [23:58:04]wFMCommunicate OK [23:58:04]wFMCommunicate request_size=4 [23:58:04]MH_SAM_APDU [23:58:04]CAPDU: 80 0D 03 02 [23:58:04]Write to MH i2c: E2 08 00 79 1C 80 0D 03 02 00 00 00 00 10 [23:58:04]Write i2c OK [23:58:04]MH_I2C_Read... [23:58:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:58:04]Read from MH i2c: E2 [23:58:04]MH_I2C_Read... [23:58:04]Read from MH i2c: E2 0B 00 [23:58:04]MH_I2C_Read... [23:58:04]Read from MH i2c: E2 0B 00 79 1C 00 75 32 85 13 DA A4 3D 75 90 00 80 [23:58:04]RAPDU: 75 32 85 13 DA A4 3D 75 90 00 [23:58:04]wFMCommunicate OK [23:58:04]SAM_PROTO_SignData done [23:58:04]FM_MakeSignedData done [23:58:04]CreateOFDProtocolMessage [23:58:04]wFMCommunicate request_size=4 [23:58:04]MH_SAM_APDU [23:58:04]CAPDU: 80 11 00 00 [23:58:04]Write to MH i2c: E2 08 00 7A 1C 80 11 00 00 00 00 00 00 10 [23:58:04]Write i2c OK [23:58:04]MH_I2C_Read... [23:58:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:58:04]Read from MH i2c: E2 [23:58:04]MH_I2C_Read... [23:58:04]Read from MH i2c: E2 17 00 [23:58:04]MH_I2C_Read... [23:58:04]Read from MH i2c: E2 17 00 7A 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 5E [23: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 [23:58:04]wFMCommunicate OK [23:58:04]CreateOFDProtocolMessage done [23:58:04]OFDSenderStorePacket 30499 [23:58:04]StoreOFDPacket docnum=30499 [23: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 0D 0D 07 01 3B F5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 19 01 00 00 F4 03 04 00 0D 99 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 77 00 00 35 04 06 00 80 DD 98 8A A5 07 75 32 85 13 DA A4 3D 75 [23:58:04]CheckFolder [23:58:04]dirname=/storage/ofd_packets [23:58:04]CheckFolder done [23:58:04]ProducePacketName [23:58:04]name=ofd_packets/00030499 [23:58:04]NVStorageSaveData ofd_packets/00030499 [23:58:04]File name is /storage/ofd_packets/00030499 [23:58:04]Write 301 bytes [23:58:04]NVStorageSaveData done [23:58:04]OFDSenderStorePacket done [23:58:04]KKMCreateOFDPacket done [23:58:04]NVStorageSaveData kkm_last_timestamp [23:58:04]File name is /storage/kkm_last_timestamp [23:58:04]Write 4 bytes [23:58:04]NVStorageSaveData done [23:58:04]ExternCall_PrintAddStr [23:58:04]wPrintStart [23:58:04]Write to MH i2c: 01 00 00 7B 1C 97 [23:58:04]Write i2c OK [23:58:04]MH_I2C_Read... [23:58:04]Read from MH i2c: 01 [23:58:04]MH_I2C_Read... [23:58:04]Read from MH i2c: 01 07 00 [23:58:04]MH_I2C_Read... [23:58:04]Read from MH i2c: 01 07 00 7B 1C 00 00 00 00 00 FF 0F AC [23:58:04]RasterBufferAndPrint [23:58:04]line Счет N : (1)342903 [23:58:04]line ИНН: 02508201610067 [23:58:04]line Контрольно-Кассовый Чек [23:58:04]line ПРОДАЖА [23:58:04]line ТРК (МРК, ГНК) : 53 [23:58:04]line Товар: 2710124130 [23:58:04]line Аи-92-К-2 [23:58:04]line 2.990 * 66.90 [23:58:04]line = 200.03 [23:58:04]line НДС 12% НСП 1% [23:58:04]line > о реализуемом товаре [23:58:04]line ИТОГО: 200.03 [23:58:04]line НСП 1% : 1.77 [23:58:04]line НДС 12% : 21.24 [23:58:04]line Наличными: 0.00 [23:58:04]line Безнал.: 200.03 [23:58:04]line Место: АЗС № 78 "Партнер Нефть" [23:58:04]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [23:58:04]line СНО: Общий режим [23:58:04]line Чек 281 20.10.2024 23:58 [23:58:04]line Смена: 114 ФФД: 1.0 [23:58:04]line ЗНМ: 0300000137 [23:58:04]line РНМ: 0000000000186857 [23:58:04]line Версия ККМ: v1.0 [23:58:04]line Платежная система: АКБ Кыргызстан [23:58:04]line ФМ: 0000000002094219 [23:58:04]line ФД: 30499 [23:58:04]line ФПД: 141689235350791 [23:58:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T235805&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30499&fm=141689235350791&tin=02508201610067®Number=0000000000186857&sum=20003 [23:58:05]OFD Sender: Processing packet 30499 [packets to send 10, broken 9] [23:58:05]ProducePacketName [23:58:05]name=ofd_packets/00030499 [23:58:05]OFD Sender: To server: pG, [23:58:05]CommunicateWithHost lk.salyk.kg:30040 [23:58:05]ConnectInit lk.salyk.kg [23:58:05]written 0, free lines is 4095 [23:58:05]Connected sock=10 [23:58: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 0D 0D 07 01 3B F5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 19 01 00 00 F4 03 04 00 0D 99 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 77 00 00 35 04 06 00 80 DD 98 8A A5 07 75 32 85 13 DA A4 3D 75 [23:58: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 A4 B3 47 00 26 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 23 77 00 00 F4 03 04 00 8F 43 15 67 B6 04 01 00 00 4F 4F DD E4 E0 45 D0 BA [23:58:05]CommunicateWithHost err = 0 [23:58:05]CheckOFDResponse [23:58:05]1017 (14) - 77093643461234 [23:58:05]1041 (16) - 0000000002094219 [23:58:05]1040 (4) - 30499 [23:58:05]1012 (4) - 20.10.2024 17:53 [23:58:05]1206 (1) - 0 [23:58:05]OFD Sender: Remove packet 30499 [23:58:05]ProducePacketName [23:58:05]name=ofd_packets/00030499 [23:58:05]NVStorageDeleteData [23:58:05]Write to MH i2c: 01 00 00 A5 1C C1 [23:58:05]Write i2c OK [23:58:05]MH_I2C_Read... [23:58:05]Read from MH i2c: 01 [23:58:05]MH_I2C_Read... [23:58:05]Read from MH i2c: 01 07 00 [23:58:05]MH_I2C_Read... [23:58:05]Read from MH i2c: 01 07 00 A5 1C 00 00 00 00 00 09 0D DE [23:58:05]RasterBufferAndPrint [23:58:05]line [23:58:05]line [23:58:05]line [23:58:05]line [23:58:05]line [23:58:05]written 0, free lines is 3344 [23:58:05]MH_Cut [23:58:05]Write to MH i2c: D1 01 00 AC 1C 01 9A [23:58:05]Write i2c OK [23:58:05]MH_I2C_Read... [23:58:05]Read from MH i2c: D1 [23:58:05]MH_I2C_Read... [23:58:05]Read from MH i2c: D1 01 00 [23:58:05]MH_I2C_Read... [23:58:05]Read from MH i2c: D1 01 00 AC 1C 00 99 [23:58:05]Write to MH i2c: 01 00 00 AD 1C C9 [23:58:05]Write i2c OK [23:58:05]MH_I2C_Read... [23:58:06]OFD Sender: No OFD packet to send [23:58:06]*** Cut start [23:58:06]*** Partial cut [23:58:06]*** CUTSNS_PIN = 1 [23:58:06]*** CUTSNS_PIN = 0 [23:58:06]*** Brake cut motor [23:58:07]Read from MH i2c: 01 [23:58:07]MH_I2C_Read... [23:58:07]*** Stop cut motor [23:58:07]*** Cut end [23:58:07]Read from MH i2c: 01 07 00 [23:58:07]MH_I2C_Read... [23:58:07]Read from MH i2c: 01 07 00 AD 1C 00 00 00 00 00 FF 0F DE [23:58:07]process_action close_receipt done [23:58:07]requested_data is exist [23:58:07]produce_requested_data [23:58:07]requested_item fm.sn is exist - process it [23:58:07]wFMCommunicate request_size=4 [23:58:07]MH_SAM_APDU [23:58:07]CAPDU: 80 11 00 00 [23:58:07]Write to MH i2c: E2 08 00 AE 1C 80 11 00 00 00 00 00 00 44 [23:58:07]Write i2c OK [23:58:07]MH_I2C_Read... [23:58:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:58:07]Read from MH i2c: E2 [23:58:07]MH_I2C_Read... [23:58:07]Read from MH i2c: E2 17 00 [23:58:07]MH_I2C_Read... [23:58:07]Read from MH i2c: E2 17 00 AE 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 92 [23:58:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [23:58:07]wFMCommunicate OK [23:58:07]requested_item fd.num is exist - process it [23:58:07]SAM_PROTO_GetFieldsCounters [23:58:07]wFMCommunicate request_size=4 [23:58:07]MH_SAM_APDU [23:58:07]CAPDU: 80 13 00 00 [23:58:07]Write to MH i2c: E2 08 00 AF 1C 80 13 00 00 00 00 00 00 47 [23:58:07]Write i2c OK [23:58:07]MH_I2C_Read... [23:58:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:58:07]Read from MH i2c: E2 [23:58:07]MH_I2C_Read... [23:58:07]Read from MH i2c: E2 62 00 [23:58:07]MH_I2C_Read... [23:58:07]Read from MH i2c: E2 62 00 AF 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 77 00 00 0E 04 04 00 72 00 00 00 12 04 04 00 19 01 00 00 5E 04 04 00 19 01 00 00 57 04 04 00 1A 01 00 00 19 04 04 00 00 00 00 00 90 00 C7 [23:58: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 23 77 00 00 0E 04 04 00 72 00 00 00 12 04 04 00 19 01 00 00 5E 04 04 00 19 01 00 00 57 04 04 00 1A 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:58:07]wFMCommunicate OK [23:58:07]SAM_PROTO_GetFieldsCounters done [23:58:07]requested_item shift.num is exist - process it [23:58:07]requested_item shift.opened is exist - process it [23:58:07]req_shift_opened [23:58:07]FM_GetShiftState [23:58:07]SAM_PROTO_GetShiftState [23:58:07]wFMCommunicate request_size=4 [23:58:07]MH_SAM_APDU [23:58:07]CAPDU: 80 13 01 00 [23:58:07]Write to MH i2c: E2 08 00 B0 1C 80 13 01 00 00 00 00 00 49 [23:58:07]Write i2c OK [23:58:07]MH_I2C_Read... [23:58:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:58:07]Read from MH i2c: E2 [23:58:07]MH_I2C_Read... [23:58:07]Read from MH i2c: E2 0E 00 [23:58:07]MH_I2C_Read... [23:58:07]Read from MH i2c: E2 0E 00 B0 1C 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 2F [23:58:07]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [23:58:07]wFMCommunicate OK [23:58:07]SAM_PROTO_GetShiftState done [23:58:07]FM_GetShiftState done [23:58:07]req_shift_opened done [23:58:07]requested_item shift.open_date is exist - process it [23:58:07]req_shift_open_date [23:58:07]req_shift_open_date done [23:58:07]produce_requested_data done [23:58:07]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30499,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [23:58:07]process_action_free close_receipt [23:58:07]json_value_free [23:58:07]json_value_free done [23:58:07]process_json_proto returns [23:58:07]Send response to host [23:58:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30499,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [23:58:07]free response buf [23:58:07]execute_script done [23:58:07]execute_script returns [23:58:07]free content buf [23:58:07]Sock 9.Close socket [23:58:07]Sock 9.Thread stoped [23:58:11]OFD Sender: No OFD packet to send [23:58:16]OFD Sender: No OFD packet to send [23:58:21]OFD Sender: No OFD packet to send [23:58:26]OFD Sender: No OFD packet to send [23:58:31]OFD Sender: No OFD packet to send [23:58:36]OFD Sender: No OFD packet to send [23:58:41]OFD Sender: No OFD packet to send [23:58:46]OFD Sender: No OFD packet to send [23:58:51]OFD Sender: No OFD packet to send [23:58:56]OFD Sender: No OFD packet to send [23:59:01]OFD Sender: No OFD packet to send [23:59:06]OFD Sender: No OFD packet to send [23:59:11]OFD Sender: No OFD packet to send [23:59:16]OFD Sender: No OFD packet to send [23:59:21]OFD Sender: No OFD packet to send [23:59:26]OFD Sender: No OFD packet to send [23:59:31]OFD Sender: No OFD packet to send [23:59:36]OFD Sender: No OFD packet to send [23:59:41]OFD Sender: No OFD packet to send [23:59:46]OFD Sender: No OFD packet to send [23:59:51]OFD Sender: No OFD packet to send [23:59:56]OFD Sender: No OFD packet to send [00:00:01]OFD Sender: No OFD packet to send [00:00:06]OFD Sender: No OFD packet to send [00:00:11]OFD Sender: No OFD packet to send [00:00:16]OFD Sender: No OFD packet to send [00:00:21]OFD Sender: No OFD packet to send [00:00:26]OFD Sender: No OFD packet to send [00:00:31]OFD Sender: No OFD packet to send [00:00:36]OFD Sender: No OFD packet to send [00:00:41]OFD Sender: No OFD packet to send [00:00:46]OFD Sender: No OFD packet to send [00:00:51]OFD Sender: No OFD packet to send [00:00:56]OFD Sender: No OFD packet to send [00:01:01]OFD Sender: No OFD packet to send [00:01:06]OFD Sender: No OFD packet to send [00:01:11]OFD Sender: No OFD packet to send [00:01:16]OFD Sender: No OFD packet to send [00:01:21]OFD Sender: No OFD packet to send [00:01:26]OFD Sender: No OFD packet to send [00:01:31]OFD Sender: No OFD packet to send [00:01:36]OFD Sender: No OFD packet to send [00:01:41]OFD Sender: No OFD packet to send [00:01:46]OFD Sender: No OFD packet to send [00:01:51]OFD Sender: No OFD packet to send [00:01:56]OFD Sender: No OFD packet to send [00:02:01]OFD Sender: No OFD packet to send [00:02:06]OFD Sender: No OFD packet to send [00:02:11]OFD Sender: No OFD packet to send [00:02:16]OFD Sender: No OFD packet to send [00:02:21]OFD Sender: No OFD packet to send [00:02:26]OFD Sender: No OFD packet to send [00:02:31]OFD Sender: No OFD packet to send [00:02:36]OFD Sender: No OFD packet to send [00:02:41]OFD Sender: No OFD packet to send [00:02:46]OFD Sender: No OFD packet to send [00:02:51]OFD Sender: No OFD packet to send [00:02:56]OFD Sender: No OFD packet to send [00:03:01]OFD Sender: No OFD packet to send [00:03:06]OFD Sender: No OFD packet to send [00:03:11]OFD Sender: No OFD packet to send [00:03:16]OFD Sender: No OFD packet to send [00:03:21]OFD Sender: No OFD packet to send [00:03:26]OFD Sender: No OFD packet to send [00:03:31]OFD Sender: No OFD packet to send [00:03:36]OFD Sender: No OFD packet to send [00:03:41]OFD Sender: No OFD packet to send [00:03:46]OFD Sender: No OFD packet to send [00:03:51]OFD Sender: No OFD packet to send [00:03:55]accept exits with 7 [00:03:55]New connection [00:03:55]New thread 3067489636 created [00:03:55]Thread 3067346276 joined [00:03:55]Waiting for new connection... [00:03:55] Sock 7.Parse request [00:03:55]Sock 7.Check first char [00:03:55]Sock 7.First char is OK [00:03:55]request: POST /json_proto HTTP/1.0 [00:03:55]Method: POST [00:03:55]URL: /json_proto [00:03:55]Method is POST - this is cgi request [00:03:55]url: /json_proto [00:03:55]query_string will be loaded in cgi processing [00:03:55]execute_cgi json_proto POST (null) [00:03:55]execute_cgi path=json_proto method=POST [00:03:55]POST find Content-Length [00:03:55]Host: 172.17.51.3:8080 [00:03:55]Content-Length: 682 [00:03:55]Content-Type: application/json [00:03:55] [00:03:55]POST finish read [00:03:55]Found Content-Length = 682 [00:03:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342904", "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" ] } } [00:03:55]execute_script... [00:03: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)342904", "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" ] } } [00:03:55]POST & json_proto [00:03:55]process_json_proto [00:03:55]json parsed OK: [00:03:55]protocol is kg_v1.0 [00:03:55]action value=close_receipt [00:03:55]process_action close_receipt [00:03:55]cmd_close_receipt [00:03:55]MH_GetDate [00:03:55]Write to MH i2c: F0 00 00 B1 1C BC [00:03:55]Write i2c OK [00:03:55]MH_I2C_Read... [00:03:55]Read from MH i2c: F0 [00:03:55]MH_I2C_Read... [00:03:55]Read from MH i2c: F0 09 00 [00:03:55]MH_I2C_Read... [00:03:55]Read from MH i2c: F0 09 00 B1 1C 00 6C 9A 15 67 04 C1 95 66 07 [00:03:55]GetLastDocTimeStamp 1729468685 [00:03:55]current date 1729469036 [00:03:55]FM_GetShiftState [00:03:55]SAM_PROTO_GetShiftState [00:03:55]wFMCommunicate request_size=4 [00:03:55]MH_SAM_APDU [00:03:55]CAPDU: 80 13 01 00 [00:03:55]Write to MH i2c: E2 08 00 B2 1C 80 13 01 00 00 00 00 00 4B [00:03:55]Write i2c OK [00:03:55]MH_I2C_Read... [00:03:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:03:55]Read from MH i2c: E2 [00:03:55]MH_I2C_Read... [00:03:55]Read from MH i2c: E2 0E 00 [00:03:55]MH_I2C_Read... [00:03:55]Read from MH i2c: E2 0E 00 B2 1C 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 31 [00:03:55]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [00:03:55]wFMCommunicate OK [00:03:55]SAM_PROTO_GetShiftState done [00:03:55]FM_GetShiftState done [00:03:55]opened in 1729384718 [00:03:55]opened+sec_in_day 1729471118 [00:03:55]quantity*price = 100015 [00:03:55]sum+1 = 100017 [00:03:55]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 СНО: Общий режим Чек 282 21.10.2024 00:03 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30500 ФПД: 77006830011555 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T000356&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30500&fm=77006830011555&tin=02508201610067®Number=0000000000186857&sum=100000 [00:03:56]StoreToDocumentArchive [00:03:56]shift 114 fd 30500 [00:03:56]save to /storage/0114/doc_00030500 [00:03:56]save last doc name /storage/0114/doc_00030500 to /storage/kkm_last_doc_name [00:03:56]save OK [00:03:56]Clear old archive folders... [00:03:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:03:56]tlvbuf is 01DAF790 [00:03:56]SAM_PROTO_ClearQueue [00:03:56]wFMCommunicate request_size=4 [00:03:56]MH_SAM_APDU [00:03:56]CAPDU: 80 09 00 00 [00:03:56]Write to MH i2c: E2 08 00 BF 1C 80 09 00 00 00 00 00 00 4D [00:03:56]Write i2c OK [00:03:56]MH_I2C_Read... [00:03:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:03:56]Read from MH i2c: E2 [00:03:56]MH_I2C_Read... [00:03:56]Read from MH i2c: E2 03 00 [00:03:56]MH_I2C_Read... [00:03:56]Read from MH i2c: E2 03 00 BF 1C 00 90 00 4F [00:03:56]RAPDU: 90 00 [00:03:56]wFMCommunicate OK [00:03:56]SAM_PROTO_ClearQueue done [00:03:56]KKMCreateOFDPacket [00:03:56]OFDProtocolAddRootSTLVToBuf [00:03:56]FM_MakeSignedData [00:03:56]FM_MakeSignedData [00:03:56]SAM_PROTO_SignData [00:03:56]wFMCommunicate request_size=4 [00:03:56]MH_SAM_APDU [00:03:56]CAPDU: 80 0D 01 02 [00:03:56]Write to MH i2c: E2 08 00 C0 1C 80 0D 01 02 00 00 00 00 55 [00:03:56]Write i2c OK [00:03:56]MH_I2C_Read... [00:03:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:03:56]Read from MH i2c: E2 [00:03:56]MH_I2C_Read... [00:03:56]Read from MH i2c: E2 03 00 [00:03:56]MH_I2C_Read... [00:03:56]Read from MH i2c: E2 03 00 C0 1C 00 90 00 50 [00:03:56]RAPDU: 90 00 [00:03:56]wFMCommunicate OK [00:03:56]wFMCommunicate request_size=255 [00:03:56]MH_SAM_APDU [00:03: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 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 01 00 00 F4 03 04 00 6C 9A 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 77 00 00 35 04 06 00 46 [00:03:56]Write to MH i2c: E2 02 01 C1 1C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 01 00 00 F4 03 04 00 6C 9A 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 77 00 00 35 04 06 00 46 00 00 D0 [00:03:56]Write i2c OK [00:03:56]MH_I2C_Read... [00:03:56]OFD Sender: No OFD packet to send [00:03:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:03:56]Read from MH i2c: E2 [00:03:56]MH_I2C_Read... [00:03:56]Read from MH i2c: E2 03 00 [00:03:56]MH_I2C_Read... [00:03:56]Read from MH i2c: E2 03 00 C1 1C 00 90 00 51 [00:03:56]RAPDU: 90 00 [00:03:56]wFMCommunicate OK [00:03:56]wFMCommunicate request_size=10 [00:03:56]MH_SAM_APDU [00:03:56]CAPDU: 80 0D 02 02 05 09 8C BF 84 A3 [00:03:56]Write to MH i2c: E2 0D 00 C2 1C 80 0D 02 02 05 00 09 8C BF 84 A3 00 00 DD [00:03:56]Write i2c OK [00:03:56]MH_I2C_Read... [00:03:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:03:56]Read from MH i2c: E2 [00:03:56]MH_I2C_Read... [00:03:56]Read from MH i2c: E2 03 00 [00:03:56]MH_I2C_Read... [00:03:56]Read from MH i2c: E2 03 00 C2 1C 00 90 00 52 [00:03:56]RAPDU: 90 00 [00:03:56]wFMCommunicate OK [00:03:56]wFMCommunicate request_size=4 [00:03:56]MH_SAM_APDU [00:03:56]CAPDU: 80 0D 03 02 [00:03:56]Write to MH i2c: E2 08 00 C3 1C 80 0D 03 02 00 00 00 00 5A [00:03:56]Write i2c OK [00:03:56]MH_I2C_Read... [00:03:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:03:56]Read from MH i2c: E2 [00:03:56]MH_I2C_Read... [00:03:56]Read from MH i2c: E2 0B 00 [00:03:56]MH_I2C_Read... [00:03:56]Read from MH i2c: E2 0B 00 C3 1C 00 DB CF ED 61 C2 37 59 53 90 00 F8 [00:03:56]RAPDU: DB CF ED 61 C2 37 59 53 90 00 [00:03:56]wFMCommunicate OK [00:03:56]SAM_PROTO_SignData done [00:03:56]FM_MakeSignedData done [00:03:56]CreateOFDProtocolMessage [00:03:56]wFMCommunicate request_size=4 [00:03:56]MH_SAM_APDU [00:03:56]CAPDU: 80 11 00 00 [00:03:56]Write to MH i2c: E2 08 00 C4 1C 80 11 00 00 00 00 00 00 5A [00:03:56]Write i2c OK [00:03:56]MH_I2C_Read... [00:03:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:03:56]Read from MH i2c: E2 [00:03:56]MH_I2C_Read... [00:03:56]Read from MH i2c: E2 17 00 [00:03:56]MH_I2C_Read... [00:03:56]Read from MH i2c: E2 17 00 C4 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 A8 [00:03:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [00:03:56]wFMCommunicate OK [00:03:56]CreateOFDProtocolMessage done [00:03:56]OFDSenderStorePacket 30500 [00:03:56]StoreOFDPacket docnum=30500 [00:03: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 6D 86 07 01 2B F7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 01 00 00 F4 03 04 00 6C 9A 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 77 00 00 35 04 06 00 46 09 8C BF 84 A3 DB CF ED 61 C2 37 59 53 [00:03:56]CheckFolder [00:03:56]dirname=/storage/ofd_packets [00:03:56]CheckFolder done [00:03:56]ProducePacketName [00:03:56]name=ofd_packets/00030500 [00:03:56]NVStorageSaveData ofd_packets/00030500 [00:03:56]File name is /storage/ofd_packets/00030500 [00:03:56]Write 301 bytes [00:03:56]NVStorageSaveData done [00:03:56]OFDSenderStorePacket done [00:03:56]KKMCreateOFDPacket done [00:03:56]NVStorageSaveData kkm_last_timestamp [00:03:56]File name is /storage/kkm_last_timestamp [00:03:56]Write 4 bytes [00:03:56]NVStorageSaveData done [00:03:56]ExternCall_PrintAddStr [00:03:56]wPrintStart [00:03:56]Write to MH i2c: 01 00 00 C5 1C E1 [00:03:56]Write i2c OK [00:03:56]MH_I2C_Read... [00:03:56]Read from MH i2c: 01 [00:03:56]MH_I2C_Read... [00:03:56]Read from MH i2c: 01 07 00 [00:03:56]MH_I2C_Read... [00:03:56]Read from MH i2c: 01 07 00 C5 1C 00 00 00 00 00 FF 0F F6 [00:03:56]RasterBufferAndPrint [00:03:56]line Счет N : (1)342904 [00:03:56]line ИНН: 02508201610067 [00:03:56]line Контрольно-Кассовый Чек [00:03:56]line ПРОДАЖА [00:03:56]line ТРК (МРК, ГНК) : 63 [00:03:56]line Товар: 2710124130 [00:03:56]line Аи-92-К-2 [00:03:56]line 14.950 * 66.90 [00:03:56]line = 1000.16 [00:03:56]line НДС 12% НСП 1% [00:03:56]line > о реализуемом товаре [00:03:56]line ОКРУГЛЕНИЕ: -0.16 [00:03:56]line ИТОГО: 1000.00 [00:03:56]line Внесено: 1000.00 [00:03:56]line СДАЧА: 0.00 [00:03:56]line НСП 1% : 8.85 [00:03:56]line НДС 12% : 106.21 [00:03:56]line Наличными: 1000.00 [00:03:56]line Безнал.: 0.00 [00:03:56]line Место: АЗС № 78 "Партнер Нефть" [00:03:56]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [00:03:56]line СНО: Общий режим [00:03:56]line Чек 282 21.10.2024 00:03 [00:03:56]line Смена: 114 ФФД: 1.0 [00:03:56]line ЗНМ: 0300000137 [00:03:56]line РНМ: 0000000000186857 [00:03:56]line Версия ККМ: v1.0 [00:03:56]line ФМ: 0000000002094219 [00:03:56]line ФД: 30500 [00:03:56]line ФПД: 77006830011555 [00:03:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T000356&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30500&fm=77006830011555&tin=02508201610067®Number=0000000000186857&sum=100000 [00:03:57]OFD Sender: Processing packet 30500 [packets to send 10, broken 9] [00:03:57]ProducePacketName [00:03:57]name=ofd_packets/00030500 [00:03:57]OFD Sender: To server: pG, [00:03:57]CommunicateWithHost lk.salyk.kg:30040 [00:03:57]ConnectInit lk.salyk.kg [00:03:57]written 0, free lines is 4095 [00:03:57]Connected sock=10 [00:03: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 6D 86 07 01 2B F7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 01 00 00 F4 03 04 00 6C 9A 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 77 00 00 35 04 06 00 46 09 8C BF 84 A3 DB CF ED 61 C2 37 59 53 [00:03: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 CA C6 47 00 48 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 24 77 00 00 F4 03 04 00 EF 44 15 67 B6 04 01 00 00 B3 A1 ED 02 2A 94 D9 A6 [00:03:57]CommunicateWithHost err = 0 [00:03:57]CheckOFDResponse [00:03:57]1017 (14) - 77093643461234 [00:03:57]1041 (16) - 0000000002094219 [00:03:57]1040 (4) - 30500 [00:03:57]1012 (4) - 20.10.2024 17:59 [00:03:57]1206 (1) - 0 [00:03:57]OFD Sender: Remove packet 30500 [00:03:57]ProducePacketName [00:03:57]name=ofd_packets/00030500 [00:03:57]NVStorageDeleteData [00:03:57]Write to MH i2c: 01 00 00 F0 1C 0C [00:03:57]Write i2c OK [00:03:57]MH_I2C_Read... [00:03:57]Read from MH i2c: 01 [00:03:57]MH_I2C_Read... [00:03:57]Read from MH i2c: 01 07 00 [00:03:57]MH_I2C_Read... [00:03:57]Read from MH i2c: 01 07 00 F0 1C 00 00 00 00 00 E6 0C 05 [00:03:57]RasterBufferAndPrint [00:03:57]line [00:03:57]line [00:03:57]line [00:03:57]line [00:03:57]line [00:03:57]written 0, free lines is 3308 [00:03:57]MH_Cut [00:03:57]Write to MH i2c: D1 01 00 F7 1C 01 E5 [00:03:57]Write i2c OK [00:03:57]MH_I2C_Read... [00:03:57]Read from MH i2c: D1 [00:03:57]MH_I2C_Read... [00:03:57]Read from MH i2c: D1 01 00 [00:03:57]MH_I2C_Read... [00:03:57]Read from MH i2c: D1 01 00 F7 1C 00 E4 [00:03:57]Write to MH i2c: 01 00 00 F8 1C 14 [00:03:57]Write i2c OK [00:03:57]MH_I2C_Read... [00:03:57]OFD Sender: No OFD packet to send [00:03:58]*** Cut start [00:03:58]*** Partial cut [00:03:58]*** CUTSNS_PIN = 1 [00:03:58]*** CUTSNS_PIN = 0 [00:03:58]*** Brake cut motor [00:03:58]Read from MH i2c: 01 [00:03:58]MH_I2C_Read... [00:03:58]*** Stop cut motor [00:03:58]*** Cut end [00:03:58]Read from MH i2c: 01 07 00 [00:03:58]MH_I2C_Read... [00:03:58]Read from MH i2c: 01 07 00 F8 1C 00 00 00 00 00 FF 0F 29 [00:03:58]process_action close_receipt done [00:03:58]requested_data is exist [00:03:58]produce_requested_data [00:03:58]requested_item fm.sn is exist - process it [00:03:58]wFMCommunicate request_size=4 [00:03:58]MH_SAM_APDU [00:03:58]CAPDU: 80 11 00 00 [00:03:58]Write to MH i2c: E2 08 00 F9 1C 80 11 00 00 00 00 00 00 8F [00:03:58]Write i2c OK [00:03:58]MH_I2C_Read... [00:03:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:03:58]Read from MH i2c: E2 [00:03:58]MH_I2C_Read... [00:03:58]Read from MH i2c: E2 17 00 [00:03:58]MH_I2C_Read... [00:03:58]Read from MH i2c: E2 17 00 F9 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 DD [00:03:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [00:03:58]wFMCommunicate OK [00:03:58]requested_item fd.num is exist - process it [00:03:58]SAM_PROTO_GetFieldsCounters [00:03:58]wFMCommunicate request_size=4 [00:03:58]MH_SAM_APDU [00:03:58]CAPDU: 80 13 00 00 [00:03:58]Write to MH i2c: E2 08 00 FA 1C 80 13 00 00 00 00 00 00 92 [00:03:58]Write i2c OK [00:03:58]MH_I2C_Read... [00:03:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:03:59]Read from MH i2c: E2 [00:03:59]MH_I2C_Read... [00:03:59]Read from MH i2c: E2 62 00 [00:03:59]MH_I2C_Read... [00:03:59]Read from MH i2c: E2 62 00 FA 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 77 00 00 0E 04 04 00 72 00 00 00 12 04 04 00 1A 01 00 00 5E 04 04 00 1A 01 00 00 57 04 04 00 1B 01 00 00 19 04 04 00 00 00 00 00 90 00 16 [00:03: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 24 77 00 00 0E 04 04 00 72 00 00 00 12 04 04 00 1A 01 00 00 5E 04 04 00 1A 01 00 00 57 04 04 00 1B 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:03:59]wFMCommunicate OK [00:03:59]SAM_PROTO_GetFieldsCounters done [00:03:59]requested_item shift.num is exist - process it [00:03:59]requested_item shift.opened is exist - process it [00:03:59]req_shift_opened [00:03:59]FM_GetShiftState [00:03:59]SAM_PROTO_GetShiftState [00:03:59]wFMCommunicate request_size=4 [00:03:59]MH_SAM_APDU [00:03:59]CAPDU: 80 13 01 00 [00:03:59]Write to MH i2c: E2 08 00 FB 1C 80 13 01 00 00 00 00 00 94 [00:03:59]Write i2c OK [00:03:59]MH_I2C_Read... [00:03:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:03:59]Read from MH i2c: E2 [00:03:59]MH_I2C_Read... [00:03:59]Read from MH i2c: E2 0E 00 [00:03:59]MH_I2C_Read... [00:03:59]Read from MH i2c: E2 0E 00 FB 1C 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 7A [00:03:59]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [00:03:59]wFMCommunicate OK [00:03:59]SAM_PROTO_GetShiftState done [00:03:59]FM_GetShiftState done [00:03:59]req_shift_opened done [00:03:59]requested_item shift.open_date is exist - process it [00:03:59]req_shift_open_date [00:03:59]req_shift_open_date done [00:03:59]produce_requested_data done [00:03:59]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30500,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [00:03:59]process_action_free close_receipt [00:03:59]json_value_free [00:03:59]json_value_free done [00:03:59]process_json_proto returns [00:03:59]Send response to host [00:03:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30500,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [00:03:59]free response buf [00:03:59]execute_script done [00:03:59]execute_script returns [00:03:59]free content buf [00:03:59]Sock 7.Close socket [00:03:59]Sock 7.Thread stoped [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:03]OFD Sender: No OFD packet to send [00:06:08]OFD Sender: No OFD packet to send [00:06:13]OFD Sender: No OFD packet to send [00:06:18]OFD Sender: No OFD packet to send [00:06:23]OFD Sender: No OFD packet to send [00:06:28]OFD Sender: No OFD packet to send [00:06:33]OFD Sender: No OFD packet to send [00:06:38]OFD Sender: No OFD packet to send [00:06:43]OFD Sender: No OFD packet to send [00:06:48]OFD Sender: No OFD packet to send [00:06:53]OFD Sender: No OFD packet to send [00:06:58]OFD Sender: No OFD packet to send [00:07:03]OFD Sender: No OFD packet to send [00:07:08]OFD Sender: No OFD packet to send [00:07:13]OFD Sender: No OFD packet to send [00:07:18]OFD Sender: No OFD packet to send [00:07:23]OFD Sender: No OFD packet to send [00:07:28]OFD Sender: No OFD packet to send [00:07:33]OFD Sender: No OFD packet to send [00:07:38]OFD Sender: No OFD packet to send [00:07:43]OFD Sender: No OFD packet to send [00:07:48]OFD Sender: No OFD packet to send [00:07:53]OFD Sender: No OFD packet to send [00:07:58]OFD Sender: No OFD packet to send [00:08:03]OFD Sender: No OFD packet to send [00:08:08]OFD Sender: No OFD packet to send [00:08:13]OFD Sender: No OFD packet to send [00:08:18]OFD Sender: No OFD packet to send [00:08:23]OFD Sender: No OFD packet to send [00:08:28]OFD Sender: No OFD packet to send [00:08:33]OFD Sender: No OFD packet to send [00:08:38]OFD Sender: No OFD packet to send [00:08:43]OFD Sender: No OFD packet to send [00:08:48]OFD Sender: No OFD packet to send [00:08:53]OFD Sender: No OFD packet to send [00:08:58]OFD Sender: No OFD packet to send [00:09:03]OFD Sender: No OFD packet to send [00:09:08]OFD Sender: No OFD packet to send [00:09:13]OFD Sender: No OFD packet to send [00:09:18]OFD Sender: No OFD packet to send [00:09:23]OFD Sender: No OFD packet to send [00:09:28]OFD Sender: No OFD packet to send [00:09:33]OFD Sender: No OFD packet to send [00:09:38]OFD Sender: No OFD packet to send [00:09:43]OFD Sender: No OFD packet to send [00:09:48]OFD Sender: No OFD packet to send [00:09:53]OFD Sender: No OFD packet to send [00:09:58]OFD Sender: No OFD packet to send [00:10:03]OFD Sender: No OFD packet to send [00:10:08]OFD Sender: No OFD packet to send [00:10:13]OFD Sender: No OFD packet to send [00:10:18]OFD Sender: No OFD packet to send [00:10:23]OFD Sender: No OFD packet to send [00:10:28]OFD Sender: No OFD packet to send [00:10:33]OFD Sender: No OFD packet to send [00:10:38]OFD Sender: No OFD packet to send [00:10:43]OFD Sender: No OFD packet to send [00:10:48]OFD Sender: No OFD packet to send [00:10:53]OFD Sender: No OFD packet to send [00:10:58]OFD Sender: No OFD packet to send [00:11:03]OFD Sender: No OFD packet to send [00:11:08]OFD Sender: No OFD packet to send [00:11:13]OFD Sender: No OFD packet to send [00:11:18]OFD Sender: No OFD packet to send [00:11:23]OFD Sender: No OFD packet to send [00:11:28]OFD Sender: No OFD packet to send [00:11:33]OFD Sender: No OFD packet to send [00:11:38]OFD Sender: No OFD packet to send [00:11:43]OFD Sender: No OFD packet to send [00:11:48]OFD Sender: No OFD packet to send [00:11:53]OFD Sender: No OFD packet to send [00:11:58]OFD Sender: No OFD packet to send [00:12:03]OFD Sender: No OFD packet to send [00:12:08]OFD Sender: No OFD packet to send [00:12:13]OFD Sender: No OFD packet to send [00:12:18]OFD Sender: No OFD packet to send [00:12:23]OFD Sender: No OFD packet to send [00:12:28]OFD Sender: No OFD packet to send [00:12:33]OFD Sender: No OFD packet to send [00:12:38]OFD Sender: No OFD packet to send [00:12:43]OFD Sender: No OFD packet to send [00:12:48]OFD Sender: No OFD packet to send [00:12:53]OFD Sender: No OFD packet to send [00:12:58]OFD Sender: No OFD packet to send [00:13:03]OFD Sender: No OFD packet to send [00:13:08]OFD Sender: No OFD packet to send [00:13:13]OFD Sender: No OFD packet to send [00:13:18]OFD Sender: No OFD packet to send [00:13:23]OFD Sender: No OFD packet to send [00:13:28]OFD Sender: No OFD packet to send [00:13:33]OFD Sender: No OFD packet to send [00:13:38]OFD Sender: No OFD packet to send [00:13:43]OFD Sender: No OFD packet to send [00:13:48]OFD Sender: No OFD packet to send [00:13:53]OFD Sender: No OFD packet to send [00:13:58]OFD Sender: No OFD packet to send [00:14:03]OFD Sender: No OFD packet to send [00:14:08]OFD Sender: No OFD packet to send [00:14:13]OFD Sender: No OFD packet to send [00:14:18]OFD Sender: No OFD packet to send [00:14:23]OFD Sender: No OFD packet to send [00:14:28]OFD Sender: No OFD packet to send [00:14:33]OFD Sender: No OFD packet to send [00:14:38]OFD Sender: No OFD packet to send [00:14:43]OFD Sender: No OFD packet to send [00:14:48]OFD Sender: No OFD packet to send [00:14:53]OFD Sender: No OFD packet to send [00:14:58]OFD Sender: No OFD packet to send [00:15:03]OFD Sender: No OFD packet to send [00:15:08]OFD Sender: No OFD packet to send [00:15:13]OFD Sender: No OFD packet to send [00:15:18]OFD Sender: No OFD packet to send [00:15:23]OFD Sender: No OFD packet to send [00:15:28]OFD Sender: No OFD packet to send [00:15:33]OFD Sender: No OFD packet to send [00:15:38]OFD Sender: No OFD packet to send [00:15:43]OFD Sender: No OFD packet to send [00:15:48]OFD Sender: No OFD packet to send [00:15:53]OFD Sender: No OFD packet to send [00:15:58]OFD Sender: No OFD packet to send [00:16:03]OFD Sender: No OFD packet to send [00:16:08]OFD Sender: No OFD packet to send [00:16:13]OFD Sender: No OFD packet to send [00:16:18]OFD Sender: No OFD packet to send [00:16:23]OFD Sender: No OFD packet to send [00:16:28]OFD Sender: No OFD packet to send [00:16:33]OFD Sender: No OFD packet to send [00:16:38]OFD Sender: No OFD packet to send [00:16:43]OFD Sender: No OFD packet to send [00:16:48]OFD Sender: No OFD packet to send [00:16:53]OFD Sender: No OFD packet to send [00:16:58]OFD Sender: No OFD packet to send [00:17:03]OFD Sender: No OFD packet to send [00:17:03]accept exits with 9 [00:17:03]New connection [00:17:03]New thread 3067346276 created [00:17:03]Thread 3067489636 joined [00:17:03]Waiting for new connection... [00:17:03] Sock 9.Parse request [00:17:03]Sock 9.Check first char [00:17:03]Sock 9.First char is OK [00:17:03]request: POST /json_proto HTTP/1.0 [00:17:03]Method: POST [00:17:03]URL: /json_proto [00:17:03]Method is POST - this is cgi request [00:17:03]url: /json_proto [00:17:03]query_string will be loaded in cgi processing [00:17:03]execute_cgi json_proto POST (null) [00:17:03]execute_cgi path=json_proto method=POST [00:17:03]POST find Content-Length [00:17:03]Host: 172.17.51.3:8080 [00:17:03]Content-Length: 683 [00:17:03]Content-Type: application/json [00:17:03] [00:17:03]POST finish read [00:17:03]Found Content-Length = 683 [00:17:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342905", "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.850, "sum" : 760.42, "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" ] } } [00:17:03]execute_script... [00: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)342905", "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.850, "sum" : 760.42, "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" ] } } [00:17:03]POST & json_proto [00:17:03]process_json_proto [00:17:03]json parsed OK: [00:17:03]protocol is kg_v1.0 [00:17:03]action value=close_receipt [00:17:03]process_action close_receipt [00:17:03]cmd_close_receipt [00:17:03]MH_GetDate [00:17:03]Write to MH i2c: F0 00 00 FC 1C 07 [00:17:03]Write i2c OK [00:17:03]MH_I2C_Read... [00:17:03]Read from MH i2c: F0 [00:17:03]MH_I2C_Read... [00:17:03]Read from MH i2c: F0 09 00 [00:17:03]MH_I2C_Read... [00:17:03]Read from MH i2c: F0 09 00 FC 1C 00 81 9D 15 67 04 C1 95 66 6A [00:17:03]GetLastDocTimeStamp 1729469036 [00:17:03]current date 1729469825 [00:17:03]FM_GetShiftState [00:17:03]SAM_PROTO_GetShiftState [00:17:03]wFMCommunicate request_size=4 [00:17:03]MH_SAM_APDU [00:17:03]CAPDU: 80 13 01 00 [00:17:03]Write to MH i2c: E2 08 00 FD 1C 80 13 01 00 00 00 00 00 96 [00:17:03]Write i2c OK [00:17:03]MH_I2C_Read... [00:17:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:17:03]Read from MH i2c: E2 [00:17:03]MH_I2C_Read... [00:17:03]Read from MH i2c: E2 0E 00 [00:17:03]MH_I2C_Read... [00:17:03]Read from MH i2c: E2 0E 00 FD 1C 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 7C [00:17:03]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [00:17:03]wFMCommunicate OK [00:17:03]SAM_PROTO_GetShiftState done [00:17:03]FM_GetShiftState done [00:17:03]opened in 1729384718 [00:17:03]opened+sec_in_day 1729471118 [00:17:03]quantity*price = 76042 [00:17:03]sum+1 = 76043 [00:17:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 760.00 Внесено: 760.00 СДАЧА: 0.00 НСП 1% : 6.73 НДС 12% : 80.75 Наличными: 760.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 283 21.10.2024 00:17 Смена: 114 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30501 ФПД: 195197125763737 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T001705&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30501&fm=195197125763737&tin=02508201610067®Number=0000000000186857&sum=76000 [00:17:04]StoreToDocumentArchive [00:17:04]shift 114 fd 30501 [00:17:04]save to /storage/0114/doc_00030501 [00:17:04]save last doc name /storage/0114/doc_00030501 to /storage/kkm_last_doc_name [00:17:04]save OK [00:17:04]Clear old archive folders... [00:17:04]ProcessDocumentItem done err = 0, tmpTLVsize=257 [00:17:04]tlvbuf is 01DAF910 [00:17:04]SAM_PROTO_ClearQueue [00:17:04]wFMCommunicate request_size=4 [00:17:04]MH_SAM_APDU [00:17:04]CAPDU: 80 09 00 00 [00:17:04]Write to MH i2c: E2 08 00 0A 1D 80 09 00 00 00 00 00 00 99 [00:17:04]Write i2c OK [00:17:04]MH_I2C_Read... [00:17:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:17:04]Read from MH i2c: E2 [00:17:04]MH_I2C_Read... [00:17:04]Read from MH i2c: E2 03 00 [00:17:04]MH_I2C_Read... [00:17:04]Read from MH i2c: E2 03 00 0A 1D 00 90 00 9B [00:17:04]RAPDU: 90 00 [00:17:04]wFMCommunicate OK [00:17:04]SAM_PROTO_ClearQueue done [00:17:04]KKMCreateOFDPacket [00:17:04]OFDProtocolAddRootSTLVToBuf [00:17:04]FM_MakeSignedData [00:17:04]FM_MakeSignedData [00:17:04]SAM_PROTO_SignData [00:17:04]wFMCommunicate request_size=4 [00:17:04]MH_SAM_APDU [00:17:04]CAPDU: 80 0D 01 02 [00:17:04]Write to MH i2c: E2 08 00 0B 1D 80 0D 01 02 00 00 00 00 A1 [00:17:04]Write i2c OK [00:17:04]MH_I2C_Read... [00:17:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:17:04]Read from MH i2c: E2 [00:17:04]MH_I2C_Read... [00:17:04]Read from MH i2c: E2 03 00 [00:17:04]MH_I2C_Read... [00:17:04]Read from MH i2c: E2 03 00 0B 1D 00 90 00 9C [00:17:04]RAPDU: 90 00 [00:17:04]wFMCommunicate OK [00:17:04]wFMCommunicate request_size=255 [00:17:04]MH_SAM_APDU [00:17:04]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 7A 26 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 0A 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 8B 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 1B 01 00 00 F4 03 04 00 81 9D 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 77 00 [00:17:04]Write to MH i2c: E2 02 01 0C 1D 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 7A 26 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 0A 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 8B 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 1B 01 00 00 F4 03 04 00 81 9D 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 77 00 00 00 56 [00:17:04]Write i2c OK [00:17:04]MH_I2C_Read... [00:17:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:17:05]Read from MH i2c: E2 [00:17:05]MH_I2C_Read... [00:17:05]Read from MH i2c: E2 03 00 [00:17:05]MH_I2C_Read... [00:17:05]Read from MH i2c: E2 03 00 0C 1D 00 90 00 9D [00:17:05]RAPDU: 90 00 [00:17:05]wFMCommunicate OK [00:17:05]wFMCommunicate request_size=16 [00:17:05]MH_SAM_APDU [00:17:05]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 B1 87 DF 57 A2 99 [00:17:05]Write to MH i2c: E2 13 00 0D 1D 80 0D 02 02 0B 00 00 35 04 06 00 B1 87 DF 57 A2 99 00 00 A2 [00:17:05]Write i2c OK [00:17:05]MH_I2C_Read... [00:17:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:17:05]Read from MH i2c: E2 [00:17:05]MH_I2C_Read... [00:17:05]Read from MH i2c: E2 03 00 [00:17:05]MH_I2C_Read... [00:17:05]Read from MH i2c: E2 03 00 0D 1D 00 90 00 9E [00:17:05]RAPDU: 90 00 [00:17:05]wFMCommunicate OK [00:17:05]wFMCommunicate request_size=4 [00:17:05]MH_SAM_APDU [00:17:05]CAPDU: 80 0D 03 02 [00:17:05]Write to MH i2c: E2 08 00 0E 1D 80 0D 03 02 00 00 00 00 A6 [00:17:05]Write i2c OK [00:17:05]MH_I2C_Read... [00:17:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:17:05]Read from MH i2c: E2 [00:17:05]MH_I2C_Read... [00:17:05]Read from MH i2c: E2 0B 00 [00:17:05]MH_I2C_Read... [00:17:05]Read from MH i2c: E2 0B 00 0E 1D 00 EF 08 83 75 CC E7 13 0E 90 00 6A [00:17:05]RAPDU: EF 08 83 75 CC E7 13 0E 90 00 [00:17:05]wFMCommunicate OK [00:17:05]SAM_PROTO_SignData done [00:17:05]FM_MakeSignedData done [00:17:05]CreateOFDProtocolMessage [00:17:05]wFMCommunicate request_size=4 [00:17:05]MH_SAM_APDU [00:17:05]CAPDU: 80 11 00 00 [00:17:05]Write to MH i2c: E2 08 00 0F 1D 80 11 00 00 00 00 00 00 A6 [00:17:05]Write i2c OK [00:17:05]MH_I2C_Read... [00:17:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:17:05]Read from MH i2c: E2 [00:17:05]MH_I2C_Read... [00:17:05]Read from MH i2c: E2 17 00 [00:17:05]MH_I2C_Read... [00:17:05]Read from MH i2c: E2 17 00 0F 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 F4 [00:17:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [00:17:05]wFMCommunicate OK [00:17:05]CreateOFDProtocolMessage done [00:17:05]OFDSenderStorePacket 30501 [00:17:05]StoreOFDPacket docnum=30501 [00:17: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 E2 13 0D 01 97 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 7A 26 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 0A 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 8B 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 1B 01 00 00 F4 03 04 00 81 9D 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 77 00 00 35 04 06 00 B1 87 DF 57 A2 99 EF 08 83 75 CC E7 13 0E [00:17:05]CheckFolder [00:17:05]dirname=/storage/ofd_packets [00:17:05]CheckFolder done [00:17:05]ProducePacketName [00:17:05]name=ofd_packets/00030501 [00:17:05]NVStorageSaveData ofd_packets/00030501 [00:17:05]File name is /storage/ofd_packets/00030501 [00:17:05]Write 307 bytes [00:17:05]NVStorageSaveData done [00:17:05]OFDSenderStorePacket done [00:17:05]KKMCreateOFDPacket done [00:17:05]NVStorageSaveData kkm_last_timestamp [00:17:05]File name is /storage/kkm_last_timestamp [00:17:05]Write 4 bytes [00:17:05]NVStorageSaveData done [00:17:05]OFD Sender: Processing packet 30501 [packets to send 10, broken 9] [00:17:05]ProducePacketName [00:17:05]name=ofd_packets/00030501 [00:17:05]OFD Sender: To server: pG, [00:17:05]CommunicateWithHost lk.salyk.kg:30040 [00:17:05]ConnectInit lk.salyk.kg [00:17:05]ExternCall_PrintAddStr [00:17:05]wPrintStart [00:17:05]Write to MH i2c: 01 00 00 10 1D 2D [00:17:05]Write i2c OK [00:17:05]MH_I2C_Read... [00:17:05]Read from MH i2c: 01 [00:17:05]MH_I2C_Read... [00:17:05]Read from MH i2c: 01 07 00 [00:17:05]MH_I2C_Read... [00:17:05]Read from MH i2c: 01 07 00 10 1D 00 00 00 00 00 FF 0F 42 [00:17:05]RasterBufferAndPrint [00:17:05]line Счет N : (1)342905 [00:17:05]line ИНН: 02508201610067 [00:17:05]line Контрольно-Кассовый Чек [00:17:05]line ПРОДАЖА [00:17:05]line ТРК (МРК, ГНК) : 51 [00:17:05]line Товар: 2710194210 [00:17:05]line D-ENERGY Дт-К-2 [00:17:05]line 9.850 * 77.20 [00:17:05]line = 760.42 [00:17:05]line НДС 12% НСП 1% [00:17:05]line > о реализуемом товаре [00:17:05]line ОКРУГЛЕНИЕ: -0.42 [00:17:05]line ИТОГО: 760.00 [00:17:05]line Внесено: 760.00 [00:17:05]line СДАЧА: 0.00 [00:17:05]line НСП 1% : 6.73 [00:17:05]line НДС 12% : 80.75 [00:17:05]line Наличными: 760.00 [00:17:05]line Безнал.: 0.00 [00:17:05]line Место: АЗС № 78 "Партнер Нефть" [00:17:05]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [00:17:05]line СНО: Общий режим [00:17:05]line Чек 283 21.10.2024 00:17 [00:17:05]line Смена: 114 ФФД: 1.0 [00:17:05]line ЗНМ: 0300000137 [00:17:05]line РНМ: 0000000000186857 [00:17:05]line Версия ККМ: v1.0 [00:17:05]line ФМ: 0000000002094219 [00:17:05]line ФД: 30501 [00:17:05]line ФПД: 195197125763737 [00:17:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T001705&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30501&fm=195197125763737&tin=02508201610067®Number=0000000000186857&sum=76000 [00:17:05]Connected sock=11 [00: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 15 01 00 00 E2 13 0D 01 97 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 7A 26 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 0A 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 8B 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 1B 01 00 00 F4 03 04 00 81 9D 15 67 0E 04 04 00 72 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 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 77 00 00 35 04 06 00 B1 87 DF 57 A2 99 EF 08 83 75 CC E7 13 0E [00:17:05]written 0, free lines is 4095 [00: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 97 D6 47 00 5E 67 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 25 77 00 00 F4 03 04 00 03 48 15 67 B6 04 01 00 00 D6 E9 6A 41 2F 30 52 A2 [00:17:05]CommunicateWithHost err = 0 [00:17:05]CheckOFDResponse [00:17:05]1017 (14) - 77093643461234 [00:17:05]1041 (16) - 0000000002094219 [00:17:05]1040 (4) - 30501 [00:17:05]1012 (4) - 20.10.2024 18:12 [00:17:05]1206 (1) - 0 [00:17:05]OFD Sender: Remove packet 30501 [00:17:05]ProducePacketName [00:17:05]name=ofd_packets/00030501 [00:17:05]NVStorageDeleteData [00:17:06]Write to MH i2c: 01 00 00 3B 1D 58 [00:17:06]Write i2c OK [00:17:06]MH_I2C_Read... [00:17:06]Read from MH i2c: 01 [00:17:06]MH_I2C_Read... [00:17:06]Read from MH i2c: 01 07 00 [00:17:06]MH_I2C_Read... [00:17:06]Read from MH i2c: 01 07 00 3B 1D 00 00 00 00 00 EA 0C 55 [00:17:06]RasterBufferAndPrint [00:17:06]line [00:17:06]line [00:17:06]line [00:17:06]line [00:17:06]line [00:17:06]written 0, free lines is 3313 [00:17:06]MH_Cut [00:17:06]Write to MH i2c: D1 01 00 42 1D 01 31 [00:17:06]Write i2c OK [00:17:06]MH_I2C_Read... [00:17:06]Read from MH i2c: D1 [00:17:06]MH_I2C_Read... [00:17:06]Read from MH i2c: D1 01 00 [00:17:06]MH_I2C_Read... [00:17:06]Read from MH i2c: D1 01 00 42 1D 00 30 [00:17:06]Write to MH i2c: 01 00 00 43 1D 60 [00:17:06]Write i2c OK [00:17:06]MH_I2C_Read... [00:17:06]OFD Sender: No OFD packet to send [00:17:06]*** Cut start [00:17:06]*** Partial cut [00:17:06]*** CUTSNS_PIN = 1 [00:17:06]*** CUTSNS_PIN = 0 [00:17:06]*** Brake cut motor [00:17:07]Read from MH i2c: 01 [00:17:07]MH_I2C_Read... [00:17:07]*** Stop cut motor [00:17:07]*** Cut end [00:17:07]Read from MH i2c: 01 07 00 [00:17:07]MH_I2C_Read... [00:17:07]Read from MH i2c: 01 07 00 43 1D 00 00 00 00 00 FF 0F 75 [00:17:07]process_action close_receipt done [00:17:07]requested_data is exist [00:17:07]produce_requested_data [00:17:07]requested_item fm.sn is exist - process it [00:17:07]wFMCommunicate request_size=4 [00:17:07]MH_SAM_APDU [00:17:07]CAPDU: 80 11 00 00 [00:17:07]Write to MH i2c: E2 08 00 44 1D 80 11 00 00 00 00 00 00 DB [00:17:07]Write i2c OK [00:17:07]MH_I2C_Read... [00:17:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:17:07]Read from MH i2c: E2 [00:17:07]MH_I2C_Read... [00:17:07]Read from MH i2c: E2 17 00 [00:17:07]MH_I2C_Read... [00:17:07]Read from MH i2c: E2 17 00 44 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 29 [00:17:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [00:17:07]wFMCommunicate OK [00:17:07]requested_item fd.num is exist - process it [00:17:07]SAM_PROTO_GetFieldsCounters [00:17:07]wFMCommunicate request_size=4 [00:17:07]MH_SAM_APDU [00:17:07]CAPDU: 80 13 00 00 [00:17:07]Write to MH i2c: E2 08 00 45 1D 80 13 00 00 00 00 00 00 DE [00:17:07]Write i2c OK [00:17:07]MH_I2C_Read... [00:17:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:17:07]Read from MH i2c: E2 [00:17:07]MH_I2C_Read... [00:17:07]Read from MH i2c: E2 62 00 [00:17:07]MH_I2C_Read... [00:17:07]Read from MH i2c: E2 62 00 45 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 77 00 00 0E 04 04 00 72 00 00 00 12 04 04 00 1B 01 00 00 5E 04 04 00 1B 01 00 00 57 04 04 00 1C 01 00 00 19 04 04 00 00 00 00 00 90 00 66 [00: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 25 77 00 00 0E 04 04 00 72 00 00 00 12 04 04 00 1B 01 00 00 5E 04 04 00 1B 01 00 00 57 04 04 00 1C 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:17:07]wFMCommunicate OK [00:17:07]SAM_PROTO_GetFieldsCounters done [00:17:07]requested_item shift.num is exist - process it [00:17:07]requested_item shift.opened is exist - process it [00:17:07]req_shift_opened [00:17:07]FM_GetShiftState [00:17:07]SAM_PROTO_GetShiftState [00:17:07]wFMCommunicate request_size=4 [00:17:07]MH_SAM_APDU [00:17:07]CAPDU: 80 13 01 00 [00:17:07]Write to MH i2c: E2 08 00 46 1D 80 13 01 00 00 00 00 00 E0 [00:17:07]Write i2c OK [00:17:07]MH_I2C_Read... [00:17:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:17:07]Read from MH i2c: E2 [00:17:07]MH_I2C_Read... [00:17:07]Read from MH i2c: E2 0E 00 [00:17:07]MH_I2C_Read... [00:17:07]Read from MH i2c: E2 0E 00 46 1D 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 C6 [00:17:07]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [00:17:07]wFMCommunicate OK [00:17:07]SAM_PROTO_GetShiftState done [00:17:07]FM_GetShiftState done [00:17:07]req_shift_opened done [00:17:07]requested_item shift.open_date is exist - process it [00:17:07]req_shift_open_date [00:17:07]req_shift_open_date done [00:17:07]produce_requested_data done [00:17:07]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30501,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [00:17:07]process_action_free close_receipt [00:17:07]json_value_free [00:17:07]json_value_free done [00:17:07]process_json_proto returns [00:17:07]Send response to host [00:17:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30501,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [00:17:07]free response buf [00:17:07]execute_script done [00:17:07]execute_script returns [00:17:07]free content buf [00:17:07]Sock 9.Close socket [00:17:07]Sock 9.Thread stoped [00:17:11]OFD Sender: No OFD packet to send [00:17:16]OFD Sender: No OFD packet to send [00:17:21]OFD Sender: No OFD packet to send [00:17:26]OFD Sender: No OFD packet to send [00:17:31]OFD Sender: No OFD packet to send [00:17:36]OFD Sender: No OFD packet to send [00:17:41]OFD Sender: No OFD packet to send [00:17:46]OFD Sender: No OFD packet to send [00:17:51]OFD Sender: No OFD packet to send [00:17:56]OFD Sender: No OFD packet to send [00:18:01]OFD Sender: No OFD packet to send [00:18:06]OFD Sender: No OFD packet to send [00:18:11]OFD Sender: No OFD packet to send [00:18:16]OFD Sender: No OFD packet to send [00:18:21]OFD Sender: No OFD packet to send [00:18:26]OFD Sender: No OFD packet to send [00:18:31]OFD Sender: No OFD packet to send [00:18:36]OFD Sender: No OFD packet to send [00:18:41]OFD Sender: No OFD packet to send [00:18:46]OFD Sender: No OFD packet to send [00:18:51]OFD Sender: No OFD packet to send [00:18:56]OFD Sender: No OFD packet to send [00:19:01]OFD Sender: No OFD packet to send [00:19:06]OFD Sender: No OFD packet to send [00:19:11]OFD Sender: No OFD packet to send [00:19:16]OFD Sender: No OFD packet to send [00:19:21]OFD Sender: No OFD packet to send [00:19:26]OFD Sender: No OFD packet to send [00:19:31]OFD Sender: No OFD packet to send [00:19:36]OFD Sender: No OFD packet to send [00:19:41]OFD Sender: No OFD packet to send [00:19:46]OFD Sender: No OFD packet to send [00:19:51]OFD Sender: No OFD packet to send [00:19:56]OFD Sender: No OFD packet to send [00:20:01]OFD Sender: No OFD packet to send [00:20:06]OFD Sender: No OFD packet to send [00:20:11]OFD Sender: No OFD packet to send [00:20:16]OFD Sender: No OFD packet to send [00:20:21]OFD Sender: No OFD packet to send [00:20:26]OFD Sender: No OFD packet to send [00:20:31]OFD Sender: No OFD packet to send [00:20:36]OFD Sender: No OFD packet to send [00:20:41]OFD Sender: No OFD packet to send [00:20:46]OFD Sender: No OFD packet to send [00:20:51]OFD Sender: No OFD packet to send [00:20:56]OFD Sender: No OFD packet to send [00:21:01]OFD Sender: No OFD packet to send [00:21:06]OFD Sender: No OFD packet to send [00:21:11]OFD Sender: No OFD packet to send [00:21:16]OFD Sender: No OFD packet to send [00:21:21]OFD Sender: No OFD packet to send [00:21:26]OFD Sender: No OFD packet to send [00:21:31]OFD Sender: No OFD packet to send [00:21:36]OFD Sender: No OFD packet to send [00:21:41]OFD Sender: No OFD packet to send [00:21:46]OFD Sender: No OFD packet to send [00:21:51]OFD Sender: No OFD packet to send [00:21:56]OFD Sender: No OFD packet to send [00:22:01]OFD Sender: No OFD packet to send [00:22:06]OFD Sender: No OFD packet to send [00:22:11]OFD Sender: No OFD packet to send [00:22:16]OFD Sender: No OFD packet to send [00:22:21]OFD Sender: No OFD packet to send [00:22:26]OFD Sender: No OFD packet to send [00:22:31]OFD Sender: No OFD packet to send [00:22:36]OFD Sender: No OFD packet to send [00:22:41]OFD Sender: No OFD packet to send [00:22:46]OFD Sender: No OFD packet to send [00:22:51]OFD Sender: No OFD packet to send [00:22:56]OFD Sender: No OFD packet to send [00:23:01]OFD Sender: No OFD packet to send [00:23:06]OFD Sender: No OFD packet to send [00:23:11]OFD Sender: No OFD packet to send [00:23:16]OFD Sender: No OFD packet to send [00:23:21]OFD Sender: No OFD packet to send [00:23:26]OFD Sender: No OFD packet to send [00:23:31]OFD Sender: No OFD packet to send [00:23:36]OFD Sender: No OFD packet to send [00:23:41]OFD Sender: No OFD packet to send [00:23:46]OFD Sender: No OFD packet to send [00:23:51]OFD Sender: No OFD packet to send [00:23:56]OFD Sender: No OFD packet to send [00:24:01]OFD Sender: No OFD packet to send [00:24:06]OFD Sender: No OFD packet to send [00:24:11]OFD Sender: No OFD packet to send [00:24:16]OFD Sender: No OFD packet to send [00:24:21]OFD Sender: No OFD packet to send [00:24:26]OFD Sender: No OFD packet to send [00:24:31]OFD Sender: No OFD packet to send [00:24:36]OFD Sender: No OFD packet to send [00:24:41]OFD Sender: No OFD packet to send [00:24:46]OFD Sender: No OFD packet to send [00:24:51]OFD Sender: No OFD packet to send [00:24:56]OFD Sender: No OFD packet to send [00:25:01]OFD Sender: No OFD packet to send [00:25:06]OFD Sender: No OFD packet to send [00:25:11]OFD Sender: No OFD packet to send [00:25:16]OFD Sender: No OFD packet to send [00:25:21]OFD Sender: No OFD packet to send [00:25:26]OFD Sender: No OFD packet to send [00:25:31]OFD Sender: No OFD packet to send [00:25:36]OFD Sender: No OFD packet to send [00:25:41]OFD Sender: No OFD packet to send [00:25:46]OFD Sender: No OFD packet to send [00:25:51]OFD Sender: No OFD packet to send [00:25:56]OFD Sender: No OFD packet to send [00:26:01]OFD Sender: No OFD packet to send [00:26:06]OFD Sender: No OFD packet to send [00:26:11]OFD Sender: No OFD packet to send [00:26:16]OFD Sender: No OFD packet to send [00:26:21]OFD Sender: No OFD packet to send [00:26:26]OFD Sender: No OFD packet to send [00:26:31]OFD Sender: No OFD packet to send [00:26:35]accept exits with 7 [00:26:35]New connection [00:26:35]New thread 3067489636 created [00:26:35]Thread 3067346276 joined [00:26:35]Waiting for new connection... [00:26:35] Sock 7.Parse request [00:26:35]Sock 7.Check first char [00:26:35]Sock 7.First char is OK [00:26:35]request: POST /json_proto HTTP/1.0 [00:26:35]Method: POST [00:26:35]URL: /json_proto [00:26:35]Method is POST - this is cgi request [00:26:35]url: /json_proto [00:26:35]query_string will be loaded in cgi processing [00:26:35]execute_cgi json_proto POST (null) [00:26:35]execute_cgi path=json_proto method=POST [00:26:35]POST find Content-Length [00:26:35]Host: 172.17.51.3:8080 [00:26:35]Content-Length: 215 [00:26:35]Content-Type: application/json [00:26:35] [00:26:35]POST finish read [00:26:35]Found Content-Length = 215 [00:26:35]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:26:35]execute_script... [00:26:35]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:26:35]POST & json_proto [00:26:35]process_json_proto [00:26:35]json parsed OK: [00:26:35]protocol is kg_v1.0 [00:26:35]action value=get_value [00:26:35]process_action get_value [00:26:35]cmd_get_value [00:26:35]process_action get_value done [00:26:35]requested_data is exist [00:26:35]produce_requested_data [00:26:35]requested_item kkm.sn is exist - process it [00:26:35]requested_item kkm.ver is exist - process it [00:26:35]requested_item fm.sn is exist - process it [00:26:35]wFMCommunicate request_size=4 [00:26:35]MH_SAM_APDU [00:26:35]CAPDU: 80 11 00 00 [00:26:35]Write to MH i2c: E2 08 00 47 1D 80 11 00 00 00 00 00 00 DE [00:26:35]Write i2c OK [00:26:35]MH_I2C_Read... [00:26:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:26:35]Read from MH i2c: E2 [00:26:35]MH_I2C_Read... [00:26:35]Read from MH i2c: E2 17 00 [00:26:35]MH_I2C_Read... [00:26:35]Read from MH i2c: E2 17 00 47 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 2C [00:26:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [00:26:35]wFMCommunicate OK [00:26:35]requested_item fd.num is exist - process it [00:26:35]SAM_PROTO_GetFieldsCounters [00:26:35]wFMCommunicate request_size=4 [00:26:35]MH_SAM_APDU [00:26:35]CAPDU: 80 13 00 00 [00:26:35]Write to MH i2c: E2 08 00 48 1D 80 13 00 00 00 00 00 00 E1 [00:26:35]Write i2c OK [00:26:35]MH_I2C_Read... [00:26:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:26:35]Read from MH i2c: E2 [00:26:35]MH_I2C_Read... [00:26:35]Read from MH i2c: E2 62 00 [00:26:35]MH_I2C_Read... [00:26:35]Read from MH i2c: E2 62 00 48 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 77 00 00 0E 04 04 00 72 00 00 00 12 04 04 00 1B 01 00 00 5E 04 04 00 1B 01 00 00 57 04 04 00 1C 01 00 00 19 04 04 00 00 00 00 00 90 00 69 [00:26: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 77 00 00 0E 04 04 00 72 00 00 00 12 04 04 00 1B 01 00 00 5E 04 04 00 1B 01 00 00 57 04 04 00 1C 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:26:35]wFMCommunicate OK [00:26:35]SAM_PROTO_GetFieldsCounters done [00:26:35]requested_item shift.num is exist - process it [00:26:35]requested_item shift.opened is exist - process it [00:26:35]req_shift_opened [00:26:35]FM_GetShiftState [00:26:35]SAM_PROTO_GetShiftState [00:26:35]wFMCommunicate request_size=4 [00:26:35]MH_SAM_APDU [00:26:35]CAPDU: 80 13 01 00 [00:26:35]Write to MH i2c: E2 08 00 49 1D 80 13 01 00 00 00 00 00 E3 [00:26:35]Write i2c OK [00:26:35]MH_I2C_Read... [00:26:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:26:35]Read from MH i2c: E2 [00:26:35]MH_I2C_Read... [00:26:35]Read from MH i2c: E2 0E 00 [00:26:35]MH_I2C_Read... [00:26:35]Read from MH i2c: E2 0E 00 49 1D 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 C9 [00:26:35]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [00:26:35]wFMCommunicate OK [00:26:35]SAM_PROTO_GetShiftState done [00:26:35]FM_GetShiftState done [00:26:35]req_shift_opened done [00:26:35]requested_item shift.open_date is exist - process it [00:26:35]req_shift_open_date [00:26:35]req_shift_open_date done [00:26:35]produce_requested_data done [00:26:35]produce_requested_data return {"kkm.sn":"0300000137","kkm.ver":"v1.0","fm.sn":"0000000002094219","fd.num":30501,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [00:26:35]process_action_free get_value [00:26:35]json_value_free [00:26:35]json_value_free done [00:26:35]process_json_proto returns [00:26:35]Send response to host [00:26:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000137","kkm.ver":"v1.0","fm.sn":"0000000002094219","fd.num":30501,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [00:26:35]free response buf [00:26:35]execute_script done [00:26:35]execute_script returns [00:26:35]free content buf [00:26:35]Sock 7.Close socket [00:26:35]Sock 7.Thread stoped [00:26:35]accept exits with 9 [00:26:35]New connection [00:26:35]New thread 3067346276 created [00:26:35]Thread 3067489636 joined [00:26:35]Waiting for new connection... [00:26:35] Sock 9.Parse request [00:26:35]Sock 9.Check first char [00:26:35]Sock 9.First char is OK [00:26:35]request: POST /json_proto HTTP/1.0 [00:26:35]Method: POST [00:26:35]URL: /json_proto [00:26:35]Method is POST - this is cgi request [00:26:35]url: /json_proto [00:26:35]query_string will be loaded in cgi processing [00:26:35]execute_cgi json_proto POST (null) [00:26:35]execute_cgi path=json_proto method=POST [00:26:35]POST find Content-Length [00:26:35]Host: 172.17.51.3:8080 [00:26:35]Content-Length: 331 [00:26:35]Content-Type: application/json [00:26:35] [00:26:35]POST finish read [00:26:35]Found Content-Length = 331 [00:26:35]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:26:35]execute_script... [00:26:35]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:26:35]POST & json_proto [00:26:35]process_json_proto [00:26:35]json parsed OK: [00:26:35]protocol is kg_v1.0 [00:26:35]action value=get_value [00:26:35]process_action get_value [00:26:35]cmd_get_value [00:26:35]process_action get_value done [00:26:35]requested_data is exist [00:26:35]produce_requested_data [00:26:35]requested_item fm.sale.total is exist - process it [00:26:35]SAM_PROTO_GetFMData [00:26:35]wFMCommunicate request_size=4 [00:26:35]MH_SAM_APDU [00:26:35]CAPDU: 80 13 03 00 [00:26:35]Write to MH i2c: E2 08 00 4A 1D 80 13 03 00 00 00 00 00 E6 [00:26:35]Write i2c OK [00:26:35]MH_I2C_Read... [00:26:36]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:26:36]Read from MH i2c: E2 [00:26:36]MH_I2C_Read... [00:26:36]Read from MH i2c: E2 FD 00 [00:26:36]MH_I2C_Read... [00:26:36]Read from MH i2c: E2 FD 00 4A 1D 00 BF 04 85 04 BB 04 6E 04 04 00 41 76 00 00 69 04 A1 00 6F 04 04 00 32 76 00 00 B1 04 04 00 D1 CD D2 A3 70 04 04 00 14 B7 4C 83 72 04 04 00 BD 16 86 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 B5 ED 66 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 7C 3C 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 3D [00:26:36]RAPDU: BF 04 85 04 BB 04 6E 04 04 00 41 76 00 00 69 04 A1 00 6F 04 04 00 32 76 00 00 B1 04 04 00 D1 CD D2 A3 70 04 04 00 14 B7 4C 83 72 04 04 00 BD 16 86 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 B5 ED 66 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 7C 3C 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 [00:26:36]wFMCommunicate OK [00:26:36]wFMCommunicate request_size=4 [00:26:36]MH_SAM_APDU [00:26:36]CAPDU: 80 17 00 00 [00:26:36]Write to MH i2c: E2 08 00 4B 1D 80 17 00 00 00 00 00 00 E8 [00:26:36]Write i2c OK [00:26:36]MH_I2C_Read... [00:26:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:26:36]Read from MH i2c: E2 [00:26:36]MH_I2C_Read... [00:26:36]Read from MH i2c: E2 FD 00 [00:26:36]MH_I2C_Read... [00:26:36]Read from MH i2c: E2 FD 00 4B 1D 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 B9 [00:26:36]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:26:36]wFMCommunicate OK [00:26:36]wFMCommunicate request_size=4 [00:26:36]MH_SAM_APDU [00:26:36]CAPDU: 80 17 00 00 [00:26:36]Write to MH i2c: E2 08 00 4C 1D 80 17 00 00 00 00 00 00 E9 [00:26:36]Write i2c OK [00:26:36]MH_I2C_Read... [00:26:36]OFD Sender: No OFD packet to send [00:26:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:26:36]Read from MH i2c: E2 [00:26:36]MH_I2C_Read... [00:26:36]Read from MH i2c: E2 FD 00 [00:26:36]MH_I2C_Read... [00:26:36]Read from MH i2c: E2 FD 00 4C 1D 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 8D [00:26:36]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:26:36]wFMCommunicate OK [00:26:36]wFMCommunicate request_size=4 [00:26:36]MH_SAM_APDU [00:26:36]CAPDU: 80 17 00 00 [00:26:36]Write to MH i2c: E2 08 00 4D 1D 80 17 00 00 00 00 00 00 EA [00:26:36]Write i2c OK [00:26:36]MH_I2C_Read... [00:26:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:26:37]Read from MH i2c: E2 [00:26:37]MH_I2C_Read... [00:26:37]Read from MH i2c: E2 FD 00 [00:26:37]MH_I2C_Read... [00:26:37]Read from MH i2c: E2 FD 00 4D 1D 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 64 [00:26:37]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:26:37]wFMCommunicate OK [00:26:37]wFMCommunicate request_size=4 [00:26:37]MH_SAM_APDU [00:26:37]CAPDU: 80 17 00 00 [00:26:37]Write to MH i2c: E2 08 00 4E 1D 80 17 00 00 00 00 00 00 EB [00:26:37]Write i2c OK [00:26:37]MH_I2C_Read... [00:26:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 217! [00:26:37]Read from MH i2c: E2 [00:26:37]MH_I2C_Read... [00:26:37]Read from MH i2c: E2 DC 00 [00:26:37]MH_I2C_Read... [00:26:37]Read from MH i2c: E2 DC 00 4E 1D 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 CF [00:26:37]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:26:37]wFMCommunicate OK [00:26:37]SAM_PROTO_GetFMData done [00:26:37]requested_item fm.sale_refund.total is exist - process it [00:26:37]requested_item fm.buy.total is exist - process it [00:26:37]requested_item shift.sale.total is exist - process it [00:26:37]SAM_PROTO_GetShiftData [00:26:37]wFMCommunicate request_size=4 [00:26:37]MH_SAM_APDU [00:26:37]CAPDU: 80 13 02 00 [00:26:37]Write to MH i2c: E2 08 00 4F 1D 80 13 02 00 00 00 00 00 EA [00:26:37]Write i2c OK [00:26:37]MH_I2C_Read... [00:26:37]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:26:37]Read from MH i2c: E2 [00:26:37]MH_I2C_Read... [00:26:37]Read from MH i2c: E2 FD 00 [00:26:37]MH_I2C_Read... [00:26:37]Read from MH i2c: E2 FD 00 4F 1D 00 B1 04 AA 04 AD 04 6E 04 04 00 1B 01 00 00 69 04 9E 00 6F 04 04 00 1B 01 00 00 B1 04 04 00 5B 64 76 01 70 04 04 00 50 9A 50 01 72 04 03 00 0B CA 25 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 29 C5 27 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 66 50 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 32 [00:26:37]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 1B 01 00 00 69 04 9E 00 6F 04 04 00 1B 01 00 00 B1 04 04 00 5B 64 76 01 70 04 04 00 50 9A 50 01 72 04 03 00 0B CA 25 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 29 C5 27 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 66 50 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:26:37]wFMCommunicate OK [00:26:37]wFMCommunicate request_size=4 [00:26:37]MH_SAM_APDU [00:26:37]CAPDU: 80 17 00 00 [00:26:37]Write to MH i2c: E2 08 00 50 1D 80 17 00 00 00 00 00 00 ED [00:26:37]Write i2c OK [00:26:37]MH_I2C_Read... [00:26:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:26:37]Read from MH i2c: E2 [00:26:37]MH_I2C_Read... [00:26:37]Read from MH i2c: E2 FD 00 [00:26:37]MH_I2C_Read... [00:26:37]Read from MH i2c: E2 FD 00 50 1D 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 06 [00:26:38]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 [00:26:38]wFMCommunicate OK [00:26:38]wFMCommunicate request_size=4 [00:26:38]MH_SAM_APDU [00:26:38]CAPDU: 80 17 00 00 [00:26:38]Write to MH i2c: E2 08 00 51 1D 80 17 00 00 00 00 00 00 EE [00:26:38]Write i2c OK [00:26:38]MH_I2C_Read... [00:26:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:26:38]Read from MH i2c: E2 [00:26:38]MH_I2C_Read... [00:26:38]Read from MH i2c: E2 FD 00 [00:26:38]MH_I2C_Read... [00:26:38]Read from MH i2c: E2 FD 00 51 1D 00 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 A7 [00:26:38]RAPDU: 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [00:26:38]wFMCommunicate OK [00:26:38]wFMCommunicate request_size=4 [00:26:38]MH_SAM_APDU [00:26:38]CAPDU: 80 17 00 00 [00:26:38]Write to MH i2c: E2 08 00 52 1D 80 17 00 00 00 00 00 00 EF [00:26:38]Write i2c OK [00:26:38]MH_I2C_Read... [00:26:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:26:38]Read from MH i2c: E2 [00:26:38]MH_I2C_Read... [00:26:38]Read from MH i2c: E2 FD 00 [00:26:38]MH_I2C_Read... [00:26:38]Read from MH i2c: E2 FD 00 52 1D 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 67 [00:26:38]RAPDU: 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:26:38]wFMCommunicate OK [00:26:38]wFMCommunicate request_size=4 [00:26:38]MH_SAM_APDU [00:26:38]CAPDU: 80 17 00 00 [00:26:38]Write to MH i2c: E2 08 00 53 1D 80 17 00 00 00 00 00 00 F0 [00:26:38]Write i2c OK [00:26:38]MH_I2C_Read... [00:26:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [00:26:38]Read from MH i2c: E2 [00:26:38]MH_I2C_Read... [00:26:38]Read from MH i2c: E2 CE 00 [00:26:38]MH_I2C_Read... [00:26:38]Read from MH i2c: E2 CE 00 53 1D 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 D5 [00:26:38]RAPDU: 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:26:38]wFMCommunicate OK [00:26:38]SAM_PROTO_GetShiftData done [00:26:38]requested_item shift.sale.total_cash is exist - process it [00:26:38]requested_item shift.sale_refund.total is exist - process it [00:26:38]requested_item shift.sale_refund.total_cash is exist - process it [00:26:38]requested_item shift.buy.total is exist - process it [00:26:38]requested_item shift.buy.total_cash is exist - process it [00:26:38]produce_requested_data done [00:26:38]produce_requested_data return {"fm.sale.total":27485014.57,"fm.sale_refund.total":54066.00,"fm.buy.total":0.00,"shift.sale.total":245361.55,"shift.sale.total_cash":220596.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:26:38]process_action_free get_value [00:26:38]json_value_free [00:26:38]json_value_free done [00:26:38]process_json_proto returns [00:26:38]Send response to host [00:26:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":27485014.57,"fm.sale_refund.total":54066.00,"fm.buy.total":0.00,"shift.sale.total":245361.55,"shift.sale.total_cash":220596.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:26:38]free response buf [00:26:38]execute_script done [00:26:38]execute_script returns [00:26:38]free content buf [00:26:38]Sock 9.Close socket [00:26:38]Sock 9.Thread stoped [00:26:38]accept exits with 7 [00:26:38]New connection [00:26:38]New thread 3067489636 created [00:26:38]Thread 3067346276 joined [00:26:38]Waiting for new connection... [00:26:38] Sock 7.Parse request [00:26:38]Sock 7.Check first char [00:26:38]Sock 7.First char is OK [00:26:38]request: POST /json_proto HTTP/1.0 [00:26:38]Method: POST [00:26:38]URL: /json_proto [00:26:38]Method is POST - this is cgi request [00:26:38]url: /json_proto [00:26:38]query_string will be loaded in cgi processing [00:26:38]execute_cgi json_proto POST (null) [00:26:38]execute_cgi path=json_proto method=POST [00:26:38]POST find Content-Length [00:26:38]Host: 172.17.51.3:8080 [00:26:38]Content-Length: 331 [00:26:38]Content-Type: application/json [00:26:38] [00:26:38]POST finish read [00:26:38]Found Content-Length = 331 [00:26:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:26:38]execute_script... [00:26:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:26:38]POST & json_proto [00:26:38]process_json_proto [00:26:38]json parsed OK: [00:26:38]protocol is kg_v1.0 [00:26:38]action value=get_value [00:26:38]process_action get_value [00:26:38]cmd_get_value [00:26:38]process_action get_value done [00:26:38]requested_data is exist [00:26:38]produce_requested_data [00:26:38]requested_item fm.sale.total is exist - process it [00:26:38]SAM_PROTO_GetFMData [00:26:38]wFMCommunicate request_size=4 [00:26:38]MH_SAM_APDU [00:26:38]CAPDU: 80 13 03 00 [00:26:38]Write to MH i2c: E2 08 00 54 1D 80 13 03 00 00 00 00 00 F0 [00:26:38]Write i2c OK [00:26:38]MH_I2C_Read... [00:26:39]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:26:39]Read from MH i2c: E2 [00:26:39]MH_I2C_Read... [00:26:39]Read from MH i2c: E2 FD 00 [00:26:39]MH_I2C_Read... [00:26:39]Read from MH i2c: E2 FD 00 54 1D 00 BF 04 85 04 BB 04 6E 04 04 00 41 76 00 00 69 04 A1 00 6F 04 04 00 32 76 00 00 B1 04 04 00 D1 CD D2 A3 70 04 04 00 14 B7 4C 83 72 04 04 00 BD 16 86 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 B5 ED 66 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 7C 3C 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 47 [00:26:39]RAPDU: BF 04 85 04 BB 04 6E 04 04 00 41 76 00 00 69 04 A1 00 6F 04 04 00 32 76 00 00 B1 04 04 00 D1 CD D2 A3 70 04 04 00 14 B7 4C 83 72 04 04 00 BD 16 86 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 B5 ED 66 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 7C 3C 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 [00:26:39]wFMCommunicate OK [00:26:39]wFMCommunicate request_size=4 [00:26:39]MH_SAM_APDU [00:26:39]CAPDU: 80 17 00 00 [00:26:39]Write to MH i2c: E2 08 00 55 1D 80 17 00 00 00 00 00 00 F2 [00:26:39]Write i2c OK [00:26:39]MH_I2C_Read... [00:26:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:26:39]Read from MH i2c: E2 [00:26:39]MH_I2C_Read... [00:26:39]Read from MH i2c: E2 FD 00 [00:26:39]MH_I2C_Read... [00:26:39]Read from MH i2c: E2 FD 00 55 1D 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 C3 [00:26:39]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:26:39]wFMCommunicate OK [00:26:39]wFMCommunicate request_size=4 [00:26:39]MH_SAM_APDU [00:26:39]CAPDU: 80 17 00 00 [00:26:39]Write to MH i2c: E2 08 00 56 1D 80 17 00 00 00 00 00 00 F3 [00:26:39]Write i2c OK [00:26:39]MH_I2C_Read... [00:26:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:26:40]Read from MH i2c: E2 [00:26:40]MH_I2C_Read... [00:26:40]Read from MH i2c: E2 FD 00 [00:26:40]MH_I2C_Read... [00:26:40]Read from MH i2c: E2 FD 00 56 1D 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 97 [00:26:40]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:26:40]wFMCommunicate OK [00:26:40]wFMCommunicate request_size=4 [00:26:40]MH_SAM_APDU [00:26:40]CAPDU: 80 17 00 00 [00:26:40]Write to MH i2c: E2 08 00 57 1D 80 17 00 00 00 00 00 00 F4 [00:26:40]Write i2c OK [00:26:40]MH_I2C_Read... [00:26:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:26:40]Read from MH i2c: E2 [00:26:40]MH_I2C_Read... [00:26:40]Read from MH i2c: E2 FD 00 [00:26:40]MH_I2C_Read... [00:26:40]Read from MH i2c: E2 FD 00 57 1D 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 6E [00:26:40]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:26:40]wFMCommunicate OK [00:26:40]wFMCommunicate request_size=4 [00:26:40]MH_SAM_APDU [00:26:40]CAPDU: 80 17 00 00 [00:26:40]Write to MH i2c: E2 08 00 58 1D 80 17 00 00 00 00 00 00 F5 [00:26:40]Write i2c OK [00:26:40]MH_I2C_Read... [00:26:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 217! [00:26:40]Read from MH i2c: E2 [00:26:40]MH_I2C_Read... [00:26:40]Read from MH i2c: E2 DC 00 [00:26:40]MH_I2C_Read... [00:26:40]Read from MH i2c: E2 DC 00 58 1D 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 D9 [00:26:40]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:26:40]wFMCommunicate OK [00:26:40]SAM_PROTO_GetFMData done [00:26:40]requested_item fm.sale_refund.total is exist - process it [00:26:40]requested_item fm.buy.total is exist - process it [00:26:40]requested_item shift.sale.total is exist - process it [00:26:40]SAM_PROTO_GetShiftData [00:26:40]wFMCommunicate request_size=4 [00:26:40]MH_SAM_APDU [00:26:40]CAPDU: 80 13 02 00 [00:26:40]Write to MH i2c: E2 08 00 59 1D 80 13 02 00 00 00 00 00 F4 [00:26:40]Write i2c OK [00:26:40]MH_I2C_Read... [00:26:41]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:26:41]Read from MH i2c: E2 [00:26:41]MH_I2C_Read... [00:26:41]Read from MH i2c: E2 FD 00 [00:26:41]MH_I2C_Read... [00:26:41]Read from MH i2c: E2 FD 00 59 1D 00 B1 04 AA 04 AD 04 6E 04 04 00 1B 01 00 00 69 04 9E 00 6F 04 04 00 1B 01 00 00 B1 04 04 00 5B 64 76 01 70 04 04 00 50 9A 50 01 72 04 03 00 0B CA 25 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 29 C5 27 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 66 50 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 3C [00:26:41]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 1B 01 00 00 69 04 9E 00 6F 04 04 00 1B 01 00 00 B1 04 04 00 5B 64 76 01 70 04 04 00 50 9A 50 01 72 04 03 00 0B CA 25 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 29 C5 27 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 66 50 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:26:41]wFMCommunicate OK [00:26:41]wFMCommunicate request_size=4 [00:26:41]MH_SAM_APDU [00:26:41]CAPDU: 80 17 00 00 [00:26:41]Write to MH i2c: E2 08 00 5A 1D 80 17 00 00 00 00 00 00 F7 [00:26:41]Write i2c OK [00:26:41]MH_I2C_Read... [00:26:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:26:41]Read from MH i2c: E2 [00:26:41]MH_I2C_Read... [00:26:41]Read from MH i2c: E2 FD 00 [00:26:41]MH_I2C_Read... [00:26:41]Read from MH i2c: E2 FD 00 5A 1D 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 10 [00:26:41]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 [00:26:41]wFMCommunicate OK [00:26:41]wFMCommunicate request_size=4 [00:26:41]MH_SAM_APDU [00:26:41]CAPDU: 80 17 00 00 [00:26:41]Write to MH i2c: E2 08 00 5B 1D 80 17 00 00 00 00 00 00 F8 [00:26:41]Write i2c OK [00:26:41]MH_I2C_Read... [00:26:41]OFD Sender: No OFD packet to send [00:26:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:26:42]Read from MH i2c: E2 [00:26:42]MH_I2C_Read... [00:26:42]Read from MH i2c: E2 FD 00 [00:26:42]MH_I2C_Read... [00:26:42]Read from MH i2c: E2 FD 00 5B 1D 00 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 B1 [00:26:42]RAPDU: 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [00:26:42]wFMCommunicate OK [00:26:42]wFMCommunicate request_size=4 [00:26:42]MH_SAM_APDU [00:26:42]CAPDU: 80 17 00 00 [00:26:42]Write to MH i2c: E2 08 00 5C 1D 80 17 00 00 00 00 00 00 F9 [00:26:42]Write i2c OK [00:26:42]MH_I2C_Read... [00:26:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:26:42]Read from MH i2c: E2 [00:26:42]MH_I2C_Read... [00:26:42]Read from MH i2c: E2 FD 00 [00:26:42]MH_I2C_Read... [00:26:42]Read from MH i2c: E2 FD 00 5C 1D 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 71 [00:26:42]RAPDU: 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:26:42]wFMCommunicate OK [00:26:42]wFMCommunicate request_size=4 [00:26:42]MH_SAM_APDU [00:26:42]CAPDU: 80 17 00 00 [00:26:42]Write to MH i2c: E2 08 00 5D 1D 80 17 00 00 00 00 00 00 FA [00:26:42]Write i2c OK [00:26:42]MH_I2C_Read... [00:26:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [00:26:42]Read from MH i2c: E2 [00:26:42]MH_I2C_Read... [00:26:42]Read from MH i2c: E2 CE 00 [00:26:42]MH_I2C_Read... [00:26:42]Read from MH i2c: E2 CE 00 5D 1D 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 DF [00:26:42]RAPDU: 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:26:42]wFMCommunicate OK [00:26:42]SAM_PROTO_GetShiftData done [00:26:42]requested_item shift.sale.total_cash is exist - process it [00:26:42]requested_item shift.sale_refund.total is exist - process it [00:26:42]requested_item shift.sale_refund.total_cash is exist - process it [00:26:42]requested_item shift.buy.total is exist - process it [00:26:42]requested_item shift.buy.total_cash is exist - process it [00:26:42]produce_requested_data done [00:26:42]produce_requested_data return {"fm.sale.total":27485014.57,"fm.sale_refund.total":54066.00,"fm.buy.total":0.00,"shift.sale.total":245361.55,"shift.sale.total_cash":220596.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:26:42]process_action_free get_value [00:26:42]json_value_free [00:26:42]json_value_free done [00:26:42]process_json_proto returns [00:26:42]Send response to host [00:26:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":27485014.57,"fm.sale_refund.total":54066.00,"fm.buy.total":0.00,"shift.sale.total":245361.55,"shift.sale.total_cash":220596.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:26:42]free response buf [00:26:42]execute_script done [00:26:42]execute_script returns [00:26:42]free content buf [00:26:42]Sock 7.Close socket [00:26:42]Sock 7.Thread stoped [00:26:42]accept exits with 9 [00:26:42]New connection [00:26:42]New thread 3067346276 created [00:26:42]Thread 3067489636 joined [00:26:42]Waiting for new connection... [00:26:42] Sock 9.Parse request [00:26:42]Sock 9.Check first char [00:26:42]Sock 9.First char is OK [00:26:42]request: POST /json_proto HTTP/1.0 [00:26:42]Method: POST [00:26:42]URL: /json_proto [00:26:42]Method is POST - this is cgi request [00:26:42]url: /json_proto [00:26:42]query_string will be loaded in cgi processing [00:26:42]execute_cgi json_proto POST (null) [00:26:42]execute_cgi path=json_proto method=POST [00:26:42]POST find Content-Length [00:26:42]Host: 172.17.51.3:8080 [00:26:42]Content-Length: 269 [00:26:42]Content-Type: application/json [00:26:42] [00:26:42]POST finish read [00:26:42]Found Content-Length = 269 [00:26:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0422\u0430\u0438\u0440\u0431\u0435\u043A\u043E\u0432\u0430 \u0413. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:26:42]execute_script... [00:26:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0422\u0430\u0438\u0440\u0431\u0435\u043A\u043E\u0432\u0430 \u0413. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:26:42]POST & json_proto [00:26:42]process_json_proto [00:26:42]json parsed OK: [00:26:42]protocol is kg_v1.0 [00:26:42]action value=x_report [00:26:42]process_action x_report [00:26:42]cmd_x_report [00:26:42]MH_GetDate [00:26:42]Write to MH i2c: F0 00 00 5E 1D 6A [00:26:42]Write i2c OK [00:26:42]MH_I2C_Read... [00:26:42]Read from MH i2c: F0 [00:26:42]MH_I2C_Read... [00:26:42]Read from MH i2c: F0 09 00 [00:26:42]MH_I2C_Read... [00:26:42]Read from MH i2c: F0 09 00 5E 1D 00 C4 9F 15 67 04 C1 95 66 12 [00:26:42]GetLastDocTimeStamp 1729469825 [00:26:42]current date 1729470404 [00:26:42]FM_GetShiftState [00:26:42]SAM_PROTO_GetShiftState [00:26:42]wFMCommunicate request_size=4 [00:26:42]MH_SAM_APDU [00:26:42]CAPDU: 80 13 01 00 [00:26:42]Write to MH i2c: E2 08 00 5F 1D 80 13 01 00 00 00 00 00 F9 [00:26:42]Write i2c OK [00:26:42]MH_I2C_Read... [00:26:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:26:42]Read from MH i2c: E2 [00:26:42]MH_I2C_Read... [00:26:42]Read from MH i2c: E2 0E 00 [00:26:42]MH_I2C_Read... [00:26:42]Read from MH i2c: E2 0E 00 5F 1D 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 DF [00:26:42]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [00:26:42]wFMCommunicate OK [00:26:42]SAM_PROTO_GetShiftState done [00:26:42]FM_GetShiftState done [00:26:42]KKMCreateXReportDocument [00:26:42]Load OK [00:26:42]Malloc new data [00:26:42]MH_GetDate [00:26:42]Write to MH i2c: F0 00 00 60 1D 6C [00:26:42]Write i2c OK [00:26:42]MH_I2C_Read... [00:26:42]Read from MH i2c: F0 [00:26:42]MH_I2C_Read... [00:26:42]Read from MH i2c: F0 09 00 [00:26:42]MH_I2C_Read... [00:26:42]Read from MH i2c: F0 09 00 60 1D 00 C4 9F 15 67 04 C1 95 66 14 [00:26:42]Malloc new data [00:26:42]Malloc new data [00:26:42]wFMCommunicate request_size=4 [00:26:42]MH_SAM_APDU [00:26:42]CAPDU: 80 11 00 00 [00:26:42]Write to MH i2c: E2 08 00 61 1D 80 11 00 00 00 00 00 00 F8 [00:26:42]Write i2c OK [00:26:42]MH_I2C_Read... [00:26:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:26:43]Read from MH i2c: E2 [00:26:43]MH_I2C_Read... [00:26:43]Read from MH i2c: E2 17 00 [00:26:43]MH_I2C_Read... [00:26:43]Read from MH i2c: E2 17 00 61 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 46 [00: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 [00:26:43]wFMCommunicate OK [00:26:43]SAM_PROTO_GetFieldsCounters [00:26:43]wFMCommunicate request_size=4 [00:26:43]MH_SAM_APDU [00:26:43]CAPDU: 80 13 00 00 [00:26:43]Write to MH i2c: E2 08 00 62 1D 80 13 00 00 00 00 00 00 FB [00:26:43]Write i2c OK [00:26:43]MH_I2C_Read... [00:26:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:26:43]Read from MH i2c: E2 [00:26:43]MH_I2C_Read... [00:26:43]Read from MH i2c: E2 62 00 [00:26:43]MH_I2C_Read... [00:26:43]Read from MH i2c: E2 62 00 62 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 77 00 00 0E 04 04 00 72 00 00 00 12 04 04 00 1B 01 00 00 5E 04 04 00 1B 01 00 00 57 04 04 00 1C 01 00 00 19 04 04 00 00 00 00 00 90 00 83 [00:26: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 25 77 00 00 0E 04 04 00 72 00 00 00 12 04 04 00 1B 01 00 00 5E 04 04 00 1B 01 00 00 57 04 04 00 1C 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:26:43]wFMCommunicate OK [00:26:43]SAM_PROTO_GetFieldsCounters done [00:26:43]Malloc new data [00:26:43]Malloc new data [00:26:43]Malloc new data [00:26:43]KKMCreateXReportDocument OK [00:26:43]KKMSetXReportData OK [00:26:43]KKMPrepareXReportFMData [00:26:43]SAM_PROTO_GetShiftData [00:26:43]wFMCommunicate request_size=4 [00:26:43]MH_SAM_APDU [00:26:43]CAPDU: 80 13 02 00 [00:26:43]Write to MH i2c: E2 08 00 63 1D 80 13 02 00 00 00 00 00 FE [00:26:43]Write i2c OK [00:26:43]MH_I2C_Read... [00:26:43]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:26:43]Read from MH i2c: E2 [00:26:43]MH_I2C_Read... [00:26:43]Read from MH i2c: E2 FD 00 [00:26:43]MH_I2C_Read... [00:26:43]Read from MH i2c: E2 FD 00 63 1D 00 B1 04 AA 04 AD 04 6E 04 04 00 1B 01 00 00 69 04 9E 00 6F 04 04 00 1B 01 00 00 B1 04 04 00 5B 64 76 01 70 04 04 00 50 9A 50 01 72 04 03 00 0B CA 25 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 29 C5 27 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 66 50 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 46 [00:26:43]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 1B 01 00 00 69 04 9E 00 6F 04 04 00 1B 01 00 00 B1 04 04 00 5B 64 76 01 70 04 04 00 50 9A 50 01 72 04 03 00 0B CA 25 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 29 C5 27 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 66 50 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:26:43]wFMCommunicate OK [00:26:43]wFMCommunicate request_size=4 [00:26:43]MH_SAM_APDU [00:26:43]CAPDU: 80 17 00 00 [00:26:43]Write to MH i2c: E2 08 00 64 1D 80 17 00 00 00 00 00 00 01 [00:26:43]Write i2c OK [00:26:43]MH_I2C_Read... [00:26:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:26:44]Read from MH i2c: E2 [00:26:44]MH_I2C_Read... [00:26:44]Read from MH i2c: E2 FD 00 [00:26:44]MH_I2C_Read... [00:26:44]Read from MH i2c: E2 FD 00 64 1D 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 1A [00:26:44]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 [00:26:44]wFMCommunicate OK [00:26:44]wFMCommunicate request_size=4 [00:26:44]MH_SAM_APDU [00:26:44]CAPDU: 80 17 00 00 [00:26:44]Write to MH i2c: E2 08 00 65 1D 80 17 00 00 00 00 00 00 02 [00:26:44]Write i2c OK [00:26:44]MH_I2C_Read... [00:26:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:26:44]Read from MH i2c: E2 [00:26:44]MH_I2C_Read... [00:26:44]Read from MH i2c: E2 FD 00 [00:26:44]MH_I2C_Read... [00:26:44]Read from MH i2c: E2 FD 00 65 1D 00 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 BB [00:26:44]RAPDU: 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [00:26:44]wFMCommunicate OK [00:26:44]wFMCommunicate request_size=4 [00:26:44]MH_SAM_APDU [00:26:44]CAPDU: 80 17 00 00 [00:26:44]Write to MH i2c: E2 08 00 66 1D 80 17 00 00 00 00 00 00 03 [00:26:44]Write i2c OK [00:26:44]MH_I2C_Read... [00:26:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:26:45]Read from MH i2c: E2 [00:26:45]MH_I2C_Read... [00:26:45]Read from MH i2c: E2 FD 00 [00:26:45]MH_I2C_Read... [00:26:45]Read from MH i2c: E2 FD 00 66 1D 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 7B [00:26:45]RAPDU: 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:26:45]wFMCommunicate OK [00:26:45]wFMCommunicate request_size=4 [00:26:45]MH_SAM_APDU [00:26:45]CAPDU: 80 17 00 00 [00:26:45]Write to MH i2c: E2 08 00 67 1D 80 17 00 00 00 00 00 00 04 [00:26:45]Write i2c OK [00:26:45]MH_I2C_Read... [00:26:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [00:26:45]Read from MH i2c: E2 [00:26:45]MH_I2C_Read... [00:26:45]Read from MH i2c: E2 CE 00 [00:26:45]MH_I2C_Read... [00:26:45]Read from MH i2c: E2 CE 00 67 1D 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 E9 [00:26:45]RAPDU: 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:26:45]wFMCommunicate OK [00:26:45]SAM_PROTO_GetShiftData done [00:26:45]1194 (1197) - счетчики итогов смены [00:26:45] 1134 (4) - 283 - количество чеков со всеми признаками расчетов [00:26:45] 1129 (158) - счетчики операций «приход» [00:26:45] 1135 (4) - 283 - количество чеков по признаку расчетов [00:26:45] 1201 (4) - 245361.55 - общая итоговая сумма в чеках [00:26:45] 1136 (4) - 220596.00 - итоговая сумма в чеках наличными [00:26:45] 1138 (3) - 24765.55 - итоговая сумма в чеках безналичными [00:26:45] 1024 (123) - суммы налогов [00:26:45] 1006 (9) - суммы НДС [00:26:45] 1010 (1) - 0% - код ставки НДС [00:26:45] 1011 (0) - 0.00 - сумма НДС по ставке [00:26:45] 1006 (12) - суммы НДС [00:26:45] 1010 (1) - 12% - код ставки НДС [00:26:45] 1011 (3) - 26063.77 - сумма НДС по ставке [00:26:45] 1007 (9) - суммы НСП [00:26:45] 1014 (1) - 0% - код ставки НСП [00:26:45] 1015 (0) - 0.00 - сумма НСП по ставке [00:26:45] 1007 (12) - суммы НСП [00:26:45] 1014 (1) - 1% - код ставки НСП [00:26:45] 1015 (3) - 2171.90 - сумма НСП по ставке [00:26:45] 1007 (9) - суммы НСП [00:26:45] 1014 (1) - 2% - код ставки НСП [00:26:45] 1015 (0) - 0.00 - сумма НСП по ставке [00:26:45] 1007 (9) - суммы НСП [00:26:45] 1014 (1) - 3% - код ставки НСП [00:26:45] 1015 (0) - 0.00 - сумма НСП по ставке [00:26:45] 1007 (9) - суммы НСП [00:26:45] 1014 (1) - 5% - код ставки НСП [00:26:45] 1015 (0) - 0.00 - сумма НСП по ставке [00:26:45] 1007 (9) - суммы НСП [00:26:45] 1014 (1) - 0,50% - код ставки НСП [00:26:45] 1015 (0) - 0.00 - сумма НСП по ставке [00:26:45] 1007 (9) - суммы НСП [00:26:45] 1014 (1) - 1,50% - код ставки НСП [00:26:45] 1015 (0) - 0.00 - сумма НСП по ставке [00:26:45] 1130 (141) - счетчики операций «возврат прихода» [00:26:45] 1135 (4) - 0 - количество чеков по признаку расчетов [00:26:45] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:26:45] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:26:45] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:26:45] 1024 (117) - суммы налогов [00:26:45] 1006 (9) - суммы НДС [00:26:45] 1010 (1) - 0% - код ставки НДС [00:26:45] 1011 (0) - 0.00 - сумма НДС по ставке [00:26:45] 1006 (9) - суммы НДС [00:26:45] 1010 (1) - 12% - код ставки НДС [00:26:45] 1011 (0) - 0.00 - сумма НДС по ставке [00:26:45] 1007 (9) - суммы НСП [00:26:45] 1014 (1) - 0% - код ставки НСП [00:26:45] 1015 (0) - 0.00 - сумма НСП по ставке [00:26:45] 1007 (9) - суммы НСП [00:26:45] 1014 (1) - 1% - код ставки НСП [00:26:45] 1015 (0) - 0.00 - сумма НСП по ставке [00:26:45] 1007 (9) - суммы НСП [00:26:45] 1014 (1) - 2% - код ставки НСП [00:26:45] 1015 (0) - 0.00 - сумма НСП по ставке [00:26:45] 1007 (9) - суммы НСП [00:26:45] 1014 (1) - 3% - код ставки НСП [00:26:45] 1015 (0) - 0.00 - сумма НСП по ставке [00:26:45] 1007 (9) - суммы НСП [00:26:45] 1014 (1) - 5% - код ставки НСП [00:26:45] 1015 (0) - 0.00 - сумма НСП по ставке [00:26:45] 1007 (9) - суммы НСП [00:26:45] 1014 (1) - 0,50% - код ставки НСП [00:26:45] 1015 (0) - 0.00 - сумма НСП по ставке [00:26:45] 1007 (9) - суммы НСП [00:26:45] 1014 (1) - 1,50% - код ставки НСП [00:26:45] 1015 (0) - 0.00 - сумма НСП по ставке [00:26:45] 1131 (141) - счетчики операций «расход» [00:26:45] 1135 (4) - 0 - количество чеков по признаку расчетов [00:26:45] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:26:45] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:26:45] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:26:45] 1024 (117) - суммы налогов [00:26:45] 1006 (9) - суммы НДС [00:26:45] 1010 (1) - 0% - код ставки НДС [00:26:45] 1011 (0) - 0.00 - сумма НДС по ставке [00:26:45] 1006 (9) - суммы НДС [00:26:45] 1010 (1) - 12% - код ставки НДС [00:26:45] 1011 (0) - 0.00 - сумма НДС по ставке [00:26:45] 1007 (9) - суммы НСП [00:26:45] 1014 (1) - 0% - код ставки НСП [00:26:45] 1015 (0) - 0.00 - сумма НСП по ставке [00:26:45] 1007 (9) - суммы НСП [00:26:45] 1014 (1) - 1% - код ставки НСП [00:26:45] 1015 (0) - 0.00 - сумма НСП по ставке [00:26:45] 1007 (9) - суммы НСП [00:26:45] 1014 (1) - 2% - код ставки НСП [00:26:45] 1015 (0) - 0.00 - сумма НСП по ставке [00:26:45] 1007 (9) - суммы НСП [00:26:45] 1014 (1) - 3% - код ставки НСП [00:26:45] 1015 (0) - 0.00 - сумма НСП по ставке [00:26:45] 1007 (9) - суммы НСП [00:26:45] 1014 (1) - 5% - код ставки НСП [00:26:45] 1015 (0) - 0.00 - сумма НСП по ставке [00:26:45] 1007 (9) - суммы НСП [00:26:45] 1014 (1) - 0,50% - код ставки НСП [00:26:45] 1015 (0) - 0.00 - сумма НСП по ставке [00:26:45] 1007 (9) - суммы НСП [00:26:45] 1014 (1) - 1,50% - код ставки НСП [00:26:45] 1015 (0) - 0.00 - сумма НСП по ставке [00:26:45] 1132 (141) - счетчики операций «возврат расхода» [00:26:45] 1135 (4) - 0 - количество чеков по признаку расчетов [00:26:45] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:26:45] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:26:45] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:26:45] 1024 (117) - суммы налогов [00:26:45] 1006 (9) - суммы НДС [00:26:45] 1010 (1) - 0% - код ставки НДС [00:26:45] 1011 (0) - 0.00 - сумма НДС по ставке [00:26:45] 1006 (9) - суммы НДС [00:26:45] 1010 (1) - 12% - код ставки НДС [00:26:45] 1011 (0) - 0.00 - сумма НДС по ставке [00:26:45] 1007 (9) - суммы НСП [00:26:45] 1014 (1) - 0% - код ставки НСП [00:26:45] 1015 (0) - 0.00 - сумма НСП по ставке [00:26:45] 1007 (9) - суммы НСП [00:26:45] 1014 (1) - 1% - код ставки НСП [00:26:45] 1015 (0) - 0.00 - сумма НСП по ставке [00:26:45] 1007 (9) - суммы НСП [00:26:45] 1014 (1) - 2% - код ставки НСП [00:26:45] 1015 (0) - 0.00 - сумма НСП по ставке [00:26:45] 1007 (9) - суммы НСП [00:26:45] 1014 (1) - 3% - код ставки НСП [00:26:45] 1015 (0) - 0.00 - сумма НСП по ставке [00:26:45] 1007 (9) - суммы НСП [00:26:45] 1014 (1) - 5% - код ставки НСП [00:26:45] 1015 (0) - 0.00 - сумма НСП по ставке [00:26:45] 1007 (9) - суммы НСП [00:26:45] 1014 (1) - 0,50% - код ставки НСП [00:26:45] 1015 (0) - 0.00 - сумма НСП по ставке [00:26:45] 1007 (9) - суммы НСП [00:26:45] 1014 (1) - 1,50% - код ставки НСП [00:26:45] 1015 (0) - 0.00 - сумма НСП по ставке [00:26:45] 1133 (588) - - счетчики коррекции - не используются [00:26:45]SetTLVBufToDocument [00:26:45]Processing tag 1194 (04AA) [00:26:45]Load OK [00:26:45]SetTLVBufToDocument [00:26:45]Processing tag 1134 (046E) [00:26:45]Malloc new data [00:26:45]Processing tag 1129 (0469) [00:26:45]Load OK [00:26:45]SetTLVBufToDocument [00:26:45]Processing tag 1135 (046F) [00:26:45]Malloc new data [00:26:45]Processing tag 1201 (04B1) [00:26:45]Malloc new data [00:26:45]Processing tag 1136 (0470) [00:26:45]Malloc new data [00:26:45]Processing tag 1138 (0472) [00:26:45]Malloc new data [00:26:46]Processing tag 1024 (0400) [00:26:46]Load OK [00:26:46]SetTLVBufToDocument [00:26:46]Processing tag 1006 (03EE) [00:26:46]Load OK [00:26:46]SetTLVBufToDocument [00:26:46]Processing tag 1010 (03F2) [00:26:46]Malloc new data [00:26:46]Processing tag 1011 (03F3) [00:26:46]Malloc new data [00:26:46]SetTLVBufToDocument err=0 [00:26:46]Processing tag 1006 (03EE) [00:26:46]Load OK [00:26:46]SetTLVBufToDocument [00:26:46]Processing tag 1010 (03F2) [00:26:46]Malloc new data [00:26:46]Processing tag 1011 (03F3) [00:26:46]Malloc new data [00:26:46]SetTLVBufToDocument err=0 [00:26:46]Processing tag 1007 (03EF) [00:26:46]Load OK [00:26:46]SetTLVBufToDocument [00:26:46]Processing tag 1014 (03F6) [00:26:46]Malloc new data [00:26:46]Processing tag 1015 (03F7) [00:26:46]Malloc new data [00:26:46]SetTLVBufToDocument err=0 [00:26:46]Processing tag 1007 (03EF) [00:26:46]Load OK [00:26:46]SetTLVBufToDocument [00:26:46]Processing tag 1014 (03F6) [00:26:46]Malloc new data [00:26:46]Processing tag 1015 (03F7) [00:26:46]Malloc new data [00:26:46]SetTLVBufToDocument err=0 [00:26:46]Processing tag 1007 (03EF) [00:26:46]Load OK [00:26:46]SetTLVBufToDocument [00:26:46]Processing tag 1014 (03F6) [00:26:46]Malloc new data [00:26:46]Processing tag 1015 (03F7) [00:26:46]Malloc new data [00:26:46]SetTLVBufToDocument err=0 [00:26:46]Processing tag 1007 (03EF) [00:26:46]Load OK [00:26:46]SetTLVBufToDocument [00:26:46]Processing tag 1014 (03F6) [00:26:46]Malloc new data [00:26:46]Processing tag 1015 (03F7) [00:26:46]Malloc new data [00:26:46]SetTLVBufToDocument err=0 [00:26:46]Processing tag 1007 (03EF) [00:26:46]Load OK [00:26:46]SetTLVBufToDocument [00:26:46]Processing tag 1014 (03F6) [00:26:46]Malloc new data [00:26:46]Processing tag 1015 (03F7) [00:26:46]Malloc new data [00:26:46]SetTLVBufToDocument err=0 [00:26:46]Processing tag 1007 (03EF) [00:26:46]Load OK [00:26:46]SetTLVBufToDocument [00:26:46]Processing tag 1014 (03F6) [00:26:46]Malloc new data [00:26:46]Processing tag 1015 (03F7) [00:26:46]Malloc new data [00:26:46]SetTLVBufToDocument err=0 [00:26:46]Processing tag 1007 (03EF) [00:26:46]Load OK [00:26:46]SetTLVBufToDocument [00:26:46]Processing tag 1014 (03F6) [00:26:46]Malloc new data [00:26:46]Processing tag 1015 (03F7) [00:26:46]Malloc new data [00:26:46]SetTLVBufToDocument err=0 [00:26:46]SetTLVBufToDocument err=0 [00:26:46]SetTLVBufToDocument err=0 [00:26:46]Processing tag 1130 (046A) [00:26:46]Load OK [00:26:46]SetTLVBufToDocument [00:26:46]Processing tag 1135 (046F) [00:26:46]Malloc new data [00:26:46]Processing tag 1201 (04B1) [00:26:46]Malloc new data [00:26:46]Processing tag 1136 (0470) [00:26:46]Malloc new data [00:26:46]Processing tag 1138 (0472) [00:26:46]Malloc new data [00:26:46]Processing tag 1024 (0400) [00:26:46]Load OK [00:26:46]SetTLVBufToDocument [00:26:46]Processing tag 1006 (03EE) [00:26:46]Load OK [00:26:46]SetTLVBufToDocument [00:26:46]Processing tag 1010 (03F2) [00:26:46]Malloc new data [00:26:46]Processing tag 1011 (03F3) [00:26:46]Malloc new data [00:26:46]SetTLVBufToDocument err=0 [00:26:46]Processing tag 1006 (03EE) [00:26:46]Load OK [00:26:46]SetTLVBufToDocument [00:26:46]Processing tag 1010 (03F2) [00:26:46]Malloc new data [00:26:46]Processing tag 1011 (03F3) [00:26:46]Malloc new data [00:26:46]SetTLVBufToDocument err=0 [00:26:46]Processing tag 1007 (03EF) [00:26:46]Load OK [00:26:46]SetTLVBufToDocument [00:26:46]Processing tag 1014 (03F6) [00:26:46]Malloc new data [00:26:46]Processing tag 1015 (03F7) [00:26:46]Malloc new data [00:26:46]SetTLVBufToDocument err=0 [00:26:46]Processing tag 1007 (03EF) [00:26:46]Load OK [00:26:46]SetTLVBufToDocument [00:26:46]Processing tag 1014 (03F6) [00:26:46]Malloc new data [00:26:46]Processing tag 1015 (03F7) [00:26:46]Malloc new data [00:26:46]SetTLVBufToDocument err=0 [00:26:46]Processing tag 1007 (03EF) [00:26:46]Load OK [00:26:46]SetTLVBufToDocument [00:26:46]Processing tag 1014 (03F6) [00:26:46]Malloc new data [00:26:46]Processing tag 1015 (03F7) [00:26:46]Malloc new data [00:26:46]SetTLVBufToDocument err=0 [00:26:46]Processing tag 1007 (03EF) [00:26:46]Load OK [00:26:46]SetTLVBufToDocument [00:26:46]Processing tag 1014 (03F6) [00:26:46]Malloc new data [00:26:46]Processing tag 1015 (03F7) [00:26:46]Malloc new data [00:26:46]SetTLVBufToDocument err=0 [00:26:46]Processing tag 1007 (03EF) [00:26:46]Load OK [00:26:46]SetTLVBufToDocument [00:26:46]Processing tag 1014 (03F6) [00:26:46]Malloc new data [00:26:46]Processing tag 1015 (03F7) [00:26:46]Malloc new data [00:26:46]SetTLVBufToDocument err=0 [00:26:46]Processing tag 1007 (03EF) [00:26:46]Load OK [00:26:46]SetTLVBufToDocument [00:26:46]Processing tag 1014 (03F6) [00:26:46]Malloc new data [00:26:46]Processing tag 1015 (03F7) [00:26:46]Malloc new data [00:26:46]SetTLVBufToDocument err=0 [00:26:46]Processing tag 1007 (03EF) [00:26:46]Load OK [00:26:46]SetTLVBufToDocument [00:26:46]Processing tag 1014 (03F6) [00:26:46]Malloc new data [00:26:46]Processing tag 1015 (03F7) [00:26:46]Malloc new data [00:26:46]SetTLVBufToDocument err=0 [00:26:46]SetTLVBufToDocument err=0 [00:26:46]SetTLVBufToDocument err=0 [00:26:46]Processing tag 1131 (046B) [00:26:46]Load OK [00:26:46]SetTLVBufToDocument [00:26:46]Processing tag 1135 (046F) [00:26:46]Malloc new data [00:26:46]Processing tag 1201 (04B1) [00:26:46]Malloc new data [00:26:46]Processing tag 1136 (0470) [00:26:46]Malloc new data [00:26:46]Processing tag 1138 (0472) [00:26:46]Malloc new data [00:26:46]Processing tag 1024 (0400) [00:26:46]Load OK [00:26:46]SetTLVBufToDocument [00:26:46]Processing tag 1006 (03EE) [00:26:46]Load OK [00:26:46]SetTLVBufToDocument [00:26:46]Processing tag 1010 (03F2) [00:26:46]Malloc new data [00:26:46]Processing tag 1011 (03F3) [00:26:46]Malloc new data [00:26:46]SetTLVBufToDocument err=0 [00:26:46]Processing tag 1006 (03EE) [00:26:46]Load OK [00:26:46]SetTLVBufToDocument [00:26:46]Processing tag 1010 (03F2) [00:26:46]Malloc new data [00:26:46]Processing tag 1011 (03F3) [00:26:46]Malloc new data [00:26:46]SetTLVBufToDocument err=0 [00:26:46]Processing tag 1007 (03EF) [00:26:46]Load OK [00:26:46]SetTLVBufToDocument [00:26:46]Processing tag 1014 (03F6) [00:26:46]Malloc new data [00:26:46]Processing tag 1015 (03F7) [00:26:46]Malloc new data [00:26:46]SetTLVBufToDocument err=0 [00:26:46]Processing tag 1007 (03EF) [00:26:46]Load OK [00:26:46]SetTLVBufToDocument [00:26:46]Processing tag 1014 (03F6) [00:26:46]Malloc new data [00:26:46]Processing tag 1015 (03F7) [00:26:46]Malloc new data [00:26:46]SetTLVBufToDocument err=0 [00:26:46]Processing tag 1007 (03EF) [00:26:46]Load OK [00:26:46]SetTLVBufToDocument [00:26:46]Processing tag 1014 (03F6) [00:26:46]Malloc new data [00:26:46]Processing tag 1015 (03F7) [00:26:46]Malloc new data [00:26:46]SetTLVBufToDocument err=0 [00:26:46]Processing tag 1007 (03EF) [00:26:46]Load OK [00:26:46]SetTLVBufToDocument [00:26:46]Processing tag 1014 (03F6) [00:26:46]Malloc new data [00:26:46]Processing tag 1015 (03F7) [00:26:46]Malloc new data [00:26:46]SetTLVBufToDocument err=0 [00:26:46]Processing tag 1007 (03EF) [00:26:46]Load OK [00:26:46]SetTLVBufToDocument [00:26:46]Processing tag 1014 (03F6) [00:26:46]Malloc new data [00:26:46]Processing tag 1015 (03F7) [00:26:46]Malloc new data [00:26:46]SetTLVBufToDocument err=0 [00:26:46]Processing tag 1007 (03EF) [00:26:46]Load OK [00:26:46]SetTLVBufToDocument [00:26:46]Processing tag 1014 (03F6) [00:26:46]Malloc new data [00:26:46]Processing tag 1015 (03F7) [00:26:46]Malloc new data [00:26:46]SetTLVBufToDocument err=0 [00:26:46]Processing tag 1007 (03EF) [00:26:46]Load OK [00:26:46]SetTLVBufToDocument [00:26:46]Processing tag 1014 (03F6) [00:26:46]Malloc new data [00:26:46]Processing tag 1015 (03F7) [00:26:46]Malloc new data [00:26:46]SetTLVBufToDocument err=0 [00:26:46]SetTLVBufToDocument err=0 [00:26:46]SetTLVBufToDocument err=0 [00:26:46]Processing tag 1132 (046C) [00:26:46]Load OK [00:26:46]SetTLVBufToDocument [00:26:46]Processing tag 1135 (046F) [00:26:46]Malloc new data [00:26:46]Processing tag 1201 (04B1) [00:26:46]Malloc new data [00:26:46]Processing tag 1136 (0470) [00:26:46]Malloc new data [00:26:46]Processing tag 1138 (0472) [00:26:46]Malloc new data [00:26:46]Processing tag 1024 (0400) [00:26:46]Load OK [00:26:46]SetTLVBufToDocument [00:26:46]Processing tag 1006 (03EE) [00:26:46]Load OK [00:26:46]SetTLVBufToDocument [00:26:46]Processing tag 1010 (03F2) [00:26:46]Malloc new data [00:26:46]Processing tag 1011 (03F3) [00:26:46]Malloc new data [00:26:46]SetTLVBufToDocument err=0 [00:26:46]Processing tag 1006 (03EE) [00:26:46]Load OK [00:26:46]SetTLVBufToDocument [00:26:46]Processing tag 1010 (03F2) [00:26:46]Malloc new data [00:26:46]Processing tag 1011 (03F3) [00:26:46]Malloc new data [00:26:46]SetTLVBufToDocument err=0 [00:26:46]Processing tag 1007 (03EF) [00:26:46]Load OK [00:26:46]SetTLVBufToDocument [00:26:46]Processing tag 1014 (03F6) [00:26:46]Malloc new data [00:26:46]Processing tag 1015 (03F7) [00:26:46]Malloc new data [00:26:46]SetTLVBufToDocument err=0 [00:26:46]Processing tag 1007 (03EF) [00:26:46]Load OK [00:26:46]SetTLVBufToDocument [00:26:46]Processing tag 1014 (03F6) [00:26:46]Malloc new data [00:26:46]Processing tag 1015 (03F7) [00:26:46]Malloc new data [00:26:46]SetTLVBufToDocument err=0 [00:26:46]Processing tag 1007 (03EF) [00:26:46]Load OK [00:26:46]SetTLVBufToDocument [00:26:46]Processing tag 1014 (03F6) [00:26:46]Malloc new data [00:26:46]Processing tag 1015 (03F7) [00:26:46]Malloc new data [00:26:46]SetTLVBufToDocument err=0 [00:26:46]Processing tag 1007 (03EF) [00:26:46]Load OK [00:26:46]SetTLVBufToDocument [00:26:46]Processing tag 1014 (03F6) [00:26:46]Malloc new data [00:26:46]Processing tag 1015 (03F7) [00:26:46]Malloc new data [00:26:46]SetTLVBufToDocument err=0 [00:26:46]Processing tag 1007 (03EF) [00:26:46]Load OK [00:26:46]SetTLVBufToDocument [00:26:46]Processing tag 1014 (03F6) [00:26:46]Malloc new data [00:26:46]Processing tag 1015 (03F7) [00:26:46]Malloc new data [00:26:46]SetTLVBufToDocument err=0 [00:26:46]Processing tag 1007 (03EF) [00:26:46]Load OK [00:26:46]SetTLVBufToDocument [00:26:46]Processing tag 1014 (03F6) [00:26:46]Malloc new data [00:26:46]Processing tag 1015 (03F7) [00:26:46]Malloc new data [00:26:46]SetTLVBufToDocument err=0 [00:26:46]Processing tag 1007 (03EF) [00:26:46]Load OK [00:26:46]SetTLVBufToDocument [00:26:46]Processing tag 1014 (03F6) [00:26:46]Malloc new data [00:26:46]Processing tag 1015 (03F7) [00:26:46]Malloc new data [00:26:46]SetTLVBufToDocument err=0 [00:26:46]SetTLVBufToDocument err=0 [00:26:46]SetTLVBufToDocument err=0 [00:26:46]Processing tag 1133 (046D) [00:26:46]Malloc new data [00:26:46]SetTLVBufToDocument err=0 [00:26:46]SetTLVBufToDocument err=0 [00:26:46]Malloc new data [00:26:46]SAM_PROTO_GetFMData [00:26:46]wFMCommunicate request_size=4 [00:26:46]MH_SAM_APDU [00:26:46]CAPDU: 80 13 03 00 [00:26:46]Write to MH i2c: E2 08 00 68 1D 80 13 03 00 00 00 00 00 04 [00:26:46]Write i2c OK [00:26:46]MH_I2C_Read... [00:26:46]OFD Sender: No OFD packet to send [00:26:47]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:26:47]Read from MH i2c: E2 [00:26:47]MH_I2C_Read... [00:26:47]Read from MH i2c: E2 FD 00 [00:26:47]MH_I2C_Read... [00:26:47]Read from MH i2c: E2 FD 00 68 1D 00 BF 04 85 04 BB 04 6E 04 04 00 41 76 00 00 69 04 A1 00 6F 04 04 00 32 76 00 00 B1 04 04 00 D1 CD D2 A3 70 04 04 00 14 B7 4C 83 72 04 04 00 BD 16 86 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 B5 ED 66 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 7C 3C 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 5B [00:26:47]RAPDU: BF 04 85 04 BB 04 6E 04 04 00 41 76 00 00 69 04 A1 00 6F 04 04 00 32 76 00 00 B1 04 04 00 D1 CD D2 A3 70 04 04 00 14 B7 4C 83 72 04 04 00 BD 16 86 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 B5 ED 66 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 7C 3C 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 [00:26:47]wFMCommunicate OK [00:26:47]wFMCommunicate request_size=4 [00:26:47]MH_SAM_APDU [00:26:47]CAPDU: 80 17 00 00 [00:26:47]Write to MH i2c: E2 08 00 69 1D 80 17 00 00 00 00 00 00 06 [00:26:47]Write i2c OK [00:26:47]MH_I2C_Read... [00:26:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:26:47]Read from MH i2c: E2 [00:26:47]MH_I2C_Read... [00:26:47]Read from MH i2c: E2 FD 00 [00:26:47]MH_I2C_Read... [00:26:47]Read from MH i2c: E2 FD 00 69 1D 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 D7 [00:26:47]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:26:47]wFMCommunicate OK [00:26:47]wFMCommunicate request_size=4 [00:26:47]MH_SAM_APDU [00:26:47]CAPDU: 80 17 00 00 [00:26:47]Write to MH i2c: E2 08 00 6A 1D 80 17 00 00 00 00 00 00 07 [00:26:47]Write i2c OK [00:26:47]MH_I2C_Read... [00:26:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:26:48]Read from MH i2c: E2 [00:26:48]MH_I2C_Read... [00:26:48]Read from MH i2c: E2 FD 00 [00:26:48]MH_I2C_Read... [00:26:48]Read from MH i2c: E2 FD 00 6A 1D 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 AB [00:26:48]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:26:48]wFMCommunicate OK [00:26:48]wFMCommunicate request_size=4 [00:26:48]MH_SAM_APDU [00:26:48]CAPDU: 80 17 00 00 [00:26:48]Write to MH i2c: E2 08 00 6B 1D 80 17 00 00 00 00 00 00 08 [00:26:48]Write i2c OK [00:26:48]MH_I2C_Read... [00:26:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:26:48]Read from MH i2c: E2 [00:26:48]MH_I2C_Read... [00:26:48]Read from MH i2c: E2 FD 00 [00:26:48]MH_I2C_Read... [00:26:48]Read from MH i2c: E2 FD 00 6B 1D 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 82 [00:26:48]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:26:48]wFMCommunicate OK [00:26:48]wFMCommunicate request_size=4 [00:26:48]MH_SAM_APDU [00:26:48]CAPDU: 80 17 00 00 [00:26:48]Write to MH i2c: E2 08 00 6C 1D 80 17 00 00 00 00 00 00 09 [00:26:48]Write i2c OK [00:26:48]MH_I2C_Read... [00:26:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 217! [00:26:49]Read from MH i2c: E2 [00:26:49]MH_I2C_Read... [00:26:49]Read from MH i2c: E2 DC 00 [00:26:49]MH_I2C_Read... [00:26:49]Read from MH i2c: E2 DC 00 6C 1D 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 ED [00:26:49]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:26:49]wFMCommunicate OK [00:26:49]SAM_PROTO_GetFMData done [00:26:49]FM_GetFMData:85 04 BB 04 6E 04 04 00 41 76 00 00 69 04 A1 00 6F 04 04 00 32 76 00 00 B1 04 04 00 D1 CD D2 A3 70 04 04 00 14 B7 4C 83 72 04 04 00 BD 16 86 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 B5 ED 66 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 7C 3C 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 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 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:26:50]oper:6F 04 04 00 32 76 00 00 B1 04 04 00 D1 CD D2 A3 70 04 04 00 14 B7 4C 83 72 04 04 00 BD 16 86 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 B5 ED 66 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 7C 3C 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 [00:26:50]total:D1 CD D2 A3 [00:26:50]Malloc new data [00:26:50]oper: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 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 [00:26:50]total:88 7F 52 [00:26:50]Malloc new data [00:26:50]oper:6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:26:50]total: [00:26:50]Malloc new data [00:26:50]oper:6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:26:50]total: [00:26:50]Malloc new data [00:26:50]KKMPrepareXReportFMData err=0 [00:26:50]Х отчет ИНН: 02508201610067 Кассир: Таирбекова Г. 21.10.2024 00:26 Смена: 10 РНМ: 0000000000186857 ЗНМ: 0300000137 СНО: Общий режим Всего чеков: 283 ИТОГИ ПРИХОД Чеков: 283 Общий итог: 245361.55 Итого наличными: 220596.00 Итого безнал.: 24765.55 НДС 0% : 0.00 НДС 12% : 26063.77 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 2171.90 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 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 Нал. в кассе: 220596.00 НС Приход: 27485014.57 НС Возвр.Прихода: 54066.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000002094219 [00:26:50]StoreToDocumentArchive [00:26:50]MH_GetDate [00:26:50]Write to MH i2c: F0 00 00 6D 1D 79 [00:26:50]Write i2c OK [00:26:50]MH_I2C_Read... [00:26:50]Read from MH i2c: F0 [00:26:50]MH_I2C_Read... [00:26:50]Read from MH i2c: F0 09 00 [00:26:50]MH_I2C_Read... [00:26:50]Read from MH i2c: F0 09 00 6D 1D 00 CC 9F 15 67 04 C1 95 66 29 [00:26:50]shift 10 fd 1729470412 [00:26:50]Create dir for shift 0010 [00:26:50]save to /storage/0010/doc_1729470412 [00:26:50]save last doc name /storage/0010/doc_1729470412 to /storage/kkm_last_doc_name [00:26:50]save OK [00:26:50]Clear old archive folders... [00:26:50]NVStorageSaveData kkm_last_timestamp [00:26:50]File name is /storage/kkm_last_timestamp [00:26:50]Write 4 bytes [00:26:50]NVStorageSaveData done [00:26:50]ExternCall_PrintAddStr [00:26:50]wPrintStart [00:26:50]Write to MH i2c: 01 00 00 6E 1D 8B [00:26:50]Write i2c OK [00:26:50]MH_I2C_Read... [00:26:50]Read from MH i2c: 01 [00:26:50]MH_I2C_Read... [00:26:50]Read from MH i2c: 01 07 00 [00:26:50]MH_I2C_Read... [00:26:50]Read from MH i2c: 01 07 00 6E 1D 00 00 00 00 00 FF 0F A0 [00:26:50]RasterBufferAndPrint [00:26:50]line Х отчет [00:26:50]line ИНН: 02508201610067 [00:26:50]line Кассир: Таирбекова Г. [00:26:50]line 21.10.2024 00:26 [00:26:50]line Смена: 10 [00:26:50]line РНМ: 0000000000186857 [00:26:50]line ЗНМ: 0300000137 [00:26:50]line СНО: Общий режим [00:26:50]line Всего чеков: 283 [00:26:50]line ИТОГИ ПРИХОД [00:26:50]line Чеков: 283 [00:26:50]line Общий итог: 245361.55 [00:26:50]line Итого наличными: 220596.00 [00:26:50]line Итого безнал.: 24765.55 [00:26:50]line НДС 0% : 0.00 [00:26:50]line НДС 12% : 26063.77 [00:26:50]line НСП 0% : 0.00 [00:26:50]line НСП 1,50% : 0.00 [00:26:50]line НСП 0,50% : 0.00 [00:26:50]line НСП 5% : 0.00 [00:26:50]line НСП 3% : 0.00 [00:26:50]line НСП 2% : 0.00 [00:26:50]line НСП 1% : 2171.90 [00:26:50]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:26:50]line Чеков: 0 [00:26:50]line Общий итог: 0.00 [00:26:50]line Итого наличными: 0.00 [00:26:50]line Итого безнал.: 0.00 [00:26:50]line НДС 0% : 0.00 [00:26:50]line НДС 12% : 0.00 [00:26:50]line НСП 0% : 0.00 [00:26:50]line НСП 1,50% : 0.00 [00:26:50]line НСП 0,50% : 0.00 [00:26:50]line НСП 5% : 0.00 [00:26:50]line НСП 3% : 0.00 [00:26:50]line НСП 2% : 0.00 [00:26:50]line НСП 1% : 0.00 [00:26:50]line ИТОГИ РАСХОД [00:26:50]line Чеков: 0 [00:26:50]line Общий итог: 0.00 [00:26:50]line Итого наличными: 0.00 [00:26:50]line Итого безнал.: 0.00 [00:26:50]line НДС 0% : 0.00 [00:26:50]line НДС 12% : 0.00 [00:26:50]line НСП 0% : 0.00 [00:26:50]line НСП 1,50% : 0.00 [00:26:50]line НСП 0,50% : 0.00 [00:26:50]line НСП 5% : 0.00 [00:26:50]line НСП 3% : 0.00 [00:26:50]line НСП 2% : 0.00 [00:26:50]line НСП 1% : 0.00 [00:26:50]line ИТОГИ ВОЗВРАТ РАСХОДА [00:26:50]line Чеков: 0 [00:26:50]line Общий итог: 0.00 [00:26:50]line Итого наличными: 0.00 [00:26:50]line Итого безнал.: 0.00 [00:26:50]line НДС 0% : 0.00 [00:26:50]line НДС 12% : 0.00 [00:26:50]line НСП 0% : 0.00 [00:26:50]line НСП 1,50% : 0.00 [00:26:50]line НСП 0,50% : 0.00 [00:26:50]line НСП 5% : 0.00 [00:26:50]line НСП 3% : 0.00 [00:26:50]line НСП 2% : 0.00 [00:26:50]line НСП 1% : 0.00 [00:26:50]line Сумма внесений: 0.00 [00:26:50]line Сумма выплат: 0.00 [00:26:50]line Нал. в кассе: 220596.00 [00:26:50]line НС Приход: 27485014.57 [00:26:50]line НС Возвр.Прихода: 54066.00 [00:26:50]line НС Расход: 0.00 [00:26:50]line НС Возвр.Расхода: 0.00 [00:26:50]line ФМ: 0000000002094219 [00:26:50]written 0, free lines is 4095 [00:26:51]Write to MH i2c: 01 00 00 B9 1D D6 [00:26:51]Write i2c OK [00:26:51]MH_I2C_Read... [00:26:51]Read from MH i2c: 01 [00:26:51]MH_I2C_Read... [00:26:51]Read from MH i2c: 01 07 00 [00:26:51]MH_I2C_Read... [00:26:51]Read from MH i2c: 01 07 00 B9 1D 00 00 00 00 00 08 0B F0 [00:26:51]RasterBufferAndPrint [00:26:51]line [00:26:51]line [00:26:51]line [00:26:51]line [00:26:51]line [00:26:51]written 0, free lines is 2864 [00:26:51]MH_Cut [00:26:51]Write to MH i2c: D1 01 00 C0 1D 01 AF [00:26:51]Write i2c OK [00:26:51]MH_I2C_Read... [00:26:51]Read from MH i2c: D1 [00:26:51]MH_I2C_Read... [00:26:51]Read from MH i2c: D1 01 00 [00:26:51]MH_I2C_Read... [00:26:51]Read from MH i2c: D1 01 00 C0 1D 00 AE [00:26:51]Write to MH i2c: 01 00 00 C1 1D DE [00:26:51]Write i2c OK [00:26:51]MH_I2C_Read... [00:26:51]OFD Sender: No OFD packet to send [00:26:52]*** Cut start [00:26:52]*** Partial cut [00:26:52]*** CUTSNS_PIN = 1 [00:26:52]*** CUTSNS_PIN = 0 [00:26:52]*** Brake cut motor [00:26:52]Read from MH i2c: 01 [00:26:52]MH_I2C_Read... [00:26:52]*** Stop cut motor [00:26:52]*** Cut end [00:26:52]Read from MH i2c: 01 07 00 [00:26:52]MH_I2C_Read... [00:26:52]Read from MH i2c: 01 07 00 C1 1D 00 00 00 00 00 FF 0F F3 [00:26:52]process_action x_report done [00:26:52]requested_data is exist [00:26:52]produce_requested_data [00:26:52]requested_item fd.num is exist - process it [00:26:52]SAM_PROTO_GetFieldsCounters [00:26:52]wFMCommunicate request_size=4 [00:26:52]MH_SAM_APDU [00:26:52]CAPDU: 80 13 00 00 [00:26:52]Write to MH i2c: E2 08 00 C2 1D 80 13 00 00 00 00 00 00 5B [00:26:52]Write i2c OK [00:26:52]MH_I2C_Read... [00:26:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:26:53]Read from MH i2c: E2 [00:26:53]MH_I2C_Read... [00:26:53]Read from MH i2c: E2 62 00 [00:26:53]MH_I2C_Read... [00:26:53]Read from MH i2c: E2 62 00 C2 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 77 00 00 0E 04 04 00 72 00 00 00 12 04 04 00 1B 01 00 00 5E 04 04 00 1B 01 00 00 57 04 04 00 1C 01 00 00 19 04 04 00 00 00 00 00 90 00 E3 [00:26: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 25 77 00 00 0E 04 04 00 72 00 00 00 12 04 04 00 1B 01 00 00 5E 04 04 00 1B 01 00 00 57 04 04 00 1C 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:26:53]wFMCommunicate OK [00:26:53]SAM_PROTO_GetFieldsCounters done [00:26:53]requested_item shift.num is exist - process it [00:26:53]requested_item shift.opened is exist - process it [00:26:53]req_shift_opened [00:26:53]FM_GetShiftState [00:26:53]SAM_PROTO_GetShiftState [00:26:53]wFMCommunicate request_size=4 [00:26:53]MH_SAM_APDU [00:26:53]CAPDU: 80 13 01 00 [00:26:53]Write to MH i2c: E2 08 00 C3 1D 80 13 01 00 00 00 00 00 5D [00:26:53]Write i2c OK [00:26:53]MH_I2C_Read... [00:26:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:26:53]Read from MH i2c: E2 [00:26:53]MH_I2C_Read... [00:26:53]Read from MH i2c: E2 0E 00 [00:26:53]MH_I2C_Read... [00:26:53]Read from MH i2c: E2 0E 00 C3 1D 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 43 [00:26:53]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [00:26:53]wFMCommunicate OK [00:26:53]SAM_PROTO_GetShiftState done [00:26:53]FM_GetShiftState done [00:26:53]req_shift_opened done [00:26:53]requested_item shift.open_date is exist - process it [00:26:53]req_shift_open_date [00:26:53]req_shift_open_date done [00:26:53]produce_requested_data done [00:26:53]produce_requested_data return {"fd.num":30501,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [00:26:53]process_action_free x_report [00:26:53]json_value_free [00:26:53]json_value_free done [00:26:53]process_json_proto returns [00:26:53]Send response to host [00:26:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":30501,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [00:26:53]free response buf [00:26:53]execute_script done [00:26:53]execute_script returns [00:26:53]free content buf [00:26:53]Sock 9.Close socket [00:26:53]Sock 9.Thread stoped [00:26:56]OFD Sender: No OFD packet to send [00:27:01]OFD Sender: No OFD packet to send [00:27:06]OFD Sender: No OFD packet to send [00:27:11]OFD Sender: No OFD packet to send [00:27:16]OFD Sender: No OFD packet to send [00:27:21]accept exits with 7 [00:27:21]New connection [00:27:21]New thread 3067489636 created [00:27:21]Thread 3067346276 joined [00:27:21]Waiting for new connection... [00:27:21] Sock 7.Parse request [00:27:21]Sock 7.Check first char [00:27:21]Sock 7.First char is OK [00:27:21]request: POST /json_proto HTTP/1.0 [00:27:21]Method: POST [00:27:21]URL: /json_proto [00:27:21]Method is POST - this is cgi request [00:27:21]url: /json_proto [00:27:21]query_string will be loaded in cgi processing [00:27:21]execute_cgi json_proto POST (null) [00:27:21]execute_cgi path=json_proto method=POST [00:27:21]POST find Content-Length [00:27:21]Host: 172.17.51.3:8080 [00:27:21]Content-Length: 215 [00:27:21]Content-Type: application/json [00:27:21] [00:27:21]POST finish read [00:27:21]Found Content-Length = 215 [00:27:21]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:27:21]execute_script... [00:27:21]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:27:21]POST & json_proto [00:27:21]process_json_proto [00:27:21]json parsed OK: [00:27:21]protocol is kg_v1.0 [00:27:21]action value=get_value [00:27:21]process_action get_value [00:27:21]cmd_get_value [00:27:21]process_action get_value done [00:27:21]requested_data is exist [00:27:21]produce_requested_data [00:27:21]requested_item kkm.sn is exist - process it [00:27:21]requested_item kkm.ver is exist - process it [00:27:21]requested_item fm.sn is exist - process it [00:27:21]wFMCommunicate request_size=4 [00:27:21]MH_SAM_APDU [00:27:21]CAPDU: 80 11 00 00 [00:27:21]Write to MH i2c: E2 08 00 C4 1D 80 11 00 00 00 00 00 00 5B [00:27:21]Write i2c OK [00:27:21]MH_I2C_Read... [00:27:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:27:21]Read from MH i2c: E2 [00:27:21]MH_I2C_Read... [00:27:21]Read from MH i2c: E2 17 00 [00:27:21]MH_I2C_Read... [00:27:21]Read from MH i2c: E2 17 00 C4 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 A9 [00:27:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [00:27:21]wFMCommunicate OK [00:27:21]requested_item fd.num is exist - process it [00:27:21]SAM_PROTO_GetFieldsCounters [00:27:21]wFMCommunicate request_size=4 [00:27:21]MH_SAM_APDU [00:27:21]CAPDU: 80 13 00 00 [00:27:21]Write to MH i2c: E2 08 00 C5 1D 80 13 00 00 00 00 00 00 5E [00:27:21]Write i2c OK [00:27:21]MH_I2C_Read... [00:27:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:27:21]Read from MH i2c: E2 [00:27:21]MH_I2C_Read... [00:27:21]Read from MH i2c: E2 62 00 [00:27:21]MH_I2C_Read... [00:27:21]Read from MH i2c: E2 62 00 C5 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 77 00 00 0E 04 04 00 72 00 00 00 12 04 04 00 1B 01 00 00 5E 04 04 00 1B 01 00 00 57 04 04 00 1C 01 00 00 19 04 04 00 00 00 00 00 90 00 E6 [00:27: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 25 77 00 00 0E 04 04 00 72 00 00 00 12 04 04 00 1B 01 00 00 5E 04 04 00 1B 01 00 00 57 04 04 00 1C 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:27:21]wFMCommunicate OK [00:27:21]SAM_PROTO_GetFieldsCounters done [00:27:21]requested_item shift.num is exist - process it [00:27:21]requested_item shift.opened is exist - process it [00:27:21]req_shift_opened [00:27:21]FM_GetShiftState [00:27:21]SAM_PROTO_GetShiftState [00:27:21]wFMCommunicate request_size=4 [00:27:21]MH_SAM_APDU [00:27:21]CAPDU: 80 13 01 00 [00:27:21]Write to MH i2c: E2 08 00 C6 1D 80 13 01 00 00 00 00 00 60 [00:27:21]Write i2c OK [00:27:21]MH_I2C_Read... [00:27:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:27:21]Read from MH i2c: E2 [00:27:21]MH_I2C_Read... [00:27:21]Read from MH i2c: E2 0E 00 [00:27:21]MH_I2C_Read... [00:27:21]Read from MH i2c: E2 0E 00 C6 1D 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 46 [00:27:21]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [00:27:21]wFMCommunicate OK [00:27:21]SAM_PROTO_GetShiftState done [00:27:21]FM_GetShiftState done [00:27:21]req_shift_opened done [00:27:21]requested_item shift.open_date is exist - process it [00:27:21]req_shift_open_date [00:27:21]req_shift_open_date done [00:27:21]produce_requested_data done [00:27:21]produce_requested_data return {"kkm.sn":"0300000137","kkm.ver":"v1.0","fm.sn":"0000000002094219","fd.num":30501,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718} [00:27:21]process_action_free get_value [00:27:21]json_value_free [00:27:21]json_value_free done [00:27:21]process_json_proto returns [00:27:21]Send response to host [00:27:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000137","kkm.ver":"v1.0","fm.sn":"0000000002094219","fd.num":30501,"shift.num":114,"shift.opened":1,"shift.open_date":1729384718}}} [00:27:21]free response buf [00:27:21]execute_script done [00:27:21]execute_script returns [00:27:21]free content buf [00:27:21]Sock 7.Close socket [00:27:21]Sock 7.Thread stoped [00:27:21]accept exits with 9 [00:27:21]New connection [00:27:21]New thread 3067346276 created [00:27:21]Thread 3067489636 joined [00:27:21]Waiting for new connection... [00:27:21] Sock 9.Parse request [00:27:21]Sock 9.Check first char [00:27:21]Sock 9.First char is OK [00:27:21]request: POST /json_proto HTTP/1.0 [00:27:21]Method: POST [00:27:21]URL: /json_proto [00:27:21]Method is POST - this is cgi request [00:27:21]url: /json_proto [00:27:21]query_string will be loaded in cgi processing [00:27:21]execute_cgi json_proto POST (null) [00:27:21]execute_cgi path=json_proto method=POST [00:27:21]POST find Content-Length [00:27:21]Host: 172.17.51.3:8080 [00:27:21]Content-Length: 331 [00:27:21]Content-Type: application/json [00:27:21] [00:27:21]POST finish read [00:27:21]Found Content-Length = 331 [00:27:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:27:21]execute_script... [00:27:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:27:21]POST & json_proto [00:27:21]process_json_proto [00:27:21]json parsed OK: [00:27:21]protocol is kg_v1.0 [00:27:21]action value=get_value [00:27:21]process_action get_value [00:27:21]cmd_get_value [00:27:21]process_action get_value done [00:27:21]requested_data is exist [00:27:21]produce_requested_data [00:27:21]requested_item fm.sale.total is exist - process it [00:27:21]SAM_PROTO_GetFMData [00:27:21]wFMCommunicate request_size=4 [00:27:21]MH_SAM_APDU [00:27:21]CAPDU: 80 13 03 00 [00:27:21]Write to MH i2c: E2 08 00 C7 1D 80 13 03 00 00 00 00 00 63 [00:27:21]Write i2c OK [00:27:21]MH_I2C_Read... [00:27:21]OFD Sender: No OFD packet to send [00:27:22]Read from MH i2c: E2 [00:27:22]MH_I2C_Read... [00:27:22]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:27:22]Read from MH i2c: E2 FD 00 [00:27:22]MH_I2C_Read... [00:27:22]Read from MH i2c: E2 FD 00 C7 1D 00 BF 04 85 04 BB 04 6E 04 04 00 41 76 00 00 69 04 A1 00 6F 04 04 00 32 76 00 00 B1 04 04 00 D1 CD D2 A3 70 04 04 00 14 B7 4C 83 72 04 04 00 BD 16 86 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 B5 ED 66 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 7C 3C 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 BA [00:27:22]RAPDU: BF 04 85 04 BB 04 6E 04 04 00 41 76 00 00 69 04 A1 00 6F 04 04 00 32 76 00 00 B1 04 04 00 D1 CD D2 A3 70 04 04 00 14 B7 4C 83 72 04 04 00 BD 16 86 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 B5 ED 66 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 7C 3C 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 [00:27:22]wFMCommunicate OK [00:27:22]wFMCommunicate request_size=4 [00:27:22]MH_SAM_APDU [00:27:22]CAPDU: 80 17 00 00 [00:27:22]Write to MH i2c: E2 08 00 C8 1D 80 17 00 00 00 00 00 00 65 [00:27:22]Write i2c OK [00:27:22]MH_I2C_Read... [00:27:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:27:22]Read from MH i2c: E2 [00:27:22]MH_I2C_Read... [00:27:22]Read from MH i2c: E2 FD 00 [00:27:22]MH_I2C_Read... [00:27:22]Read from MH i2c: E2 FD 00 C8 1D 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 36 [00:27:22]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:27:22]wFMCommunicate OK [00:27:22]wFMCommunicate request_size=4 [00:27:22]MH_SAM_APDU [00:27:22]CAPDU: 80 17 00 00 [00:27:22]Write to MH i2c: E2 08 00 C9 1D 80 17 00 00 00 00 00 00 66 [00:27:22]Write i2c OK [00:27:22]MH_I2C_Read... [00:27:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:27:22]Read from MH i2c: E2 [00:27:22]MH_I2C_Read... [00:27:22]Read from MH i2c: E2 FD 00 [00:27:22]MH_I2C_Read... [00:27:22]Read from MH i2c: E2 FD 00 C9 1D 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 0A [00:27:22]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:27:22]wFMCommunicate OK [00:27:22]wFMCommunicate request_size=4 [00:27:22]MH_SAM_APDU [00:27:22]CAPDU: 80 17 00 00 [00:27:22]Write to MH i2c: E2 08 00 CA 1D 80 17 00 00 00 00 00 00 67 [00:27:22]Write i2c OK [00:27:22]MH_I2C_Read... [00:27:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:27:23]Read from MH i2c: E2 [00:27:23]MH_I2C_Read... [00:27:23]Read from MH i2c: E2 FD 00 [00:27:23]MH_I2C_Read... [00:27:23]Read from MH i2c: E2 FD 00 CA 1D 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 E1 [00:27:23]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:27:23]wFMCommunicate OK [00:27:23]wFMCommunicate request_size=4 [00:27:23]MH_SAM_APDU [00:27:23]CAPDU: 80 17 00 00 [00:27:23]Write to MH i2c: E2 08 00 CB 1D 80 17 00 00 00 00 00 00 68 [00:27:23]Write i2c OK [00:27:23]MH_I2C_Read... [00:27:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 217! [00:27:23]Read from MH i2c: E2 [00:27:23]MH_I2C_Read... [00:27:23]Read from MH i2c: E2 DC 00 [00:27:23]MH_I2C_Read... [00:27:23]Read from MH i2c: E2 DC 00 CB 1D 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 4C [00:27:23]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:27:23]wFMCommunicate OK [00:27:23]SAM_PROTO_GetFMData done [00:27:23]requested_item fm.sale_refund.total is exist - process it [00:27:23]requested_item fm.buy.total is exist - process it [00:27:23]requested_item shift.sale.total is exist - process it [00:27:23]SAM_PROTO_GetShiftData [00:27:23]wFMCommunicate request_size=4 [00:27:23]MH_SAM_APDU [00:27:23]CAPDU: 80 13 02 00 [00:27:23]Write to MH i2c: E2 08 00 CC 1D 80 13 02 00 00 00 00 00 67 [00:27:23]Write i2c OK [00:27:23]MH_I2C_Read... [00:27:24]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:27:24]Read from MH i2c: E2 [00:27:24]MH_I2C_Read... [00:27:24]Read from MH i2c: E2 FD 00 [00:27:24]MH_I2C_Read... [00:27:24]Read from MH i2c: E2 FD 00 CC 1D 00 B1 04 AA 04 AD 04 6E 04 04 00 1B 01 00 00 69 04 9E 00 6F 04 04 00 1B 01 00 00 B1 04 04 00 5B 64 76 01 70 04 04 00 50 9A 50 01 72 04 03 00 0B CA 25 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 29 C5 27 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 66 50 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 AF [00:27:24]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 1B 01 00 00 69 04 9E 00 6F 04 04 00 1B 01 00 00 B1 04 04 00 5B 64 76 01 70 04 04 00 50 9A 50 01 72 04 03 00 0B CA 25 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 29 C5 27 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 66 50 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:27:24]wFMCommunicate OK [00:27:24]wFMCommunicate request_size=4 [00:27:24]MH_SAM_APDU [00:27:24]CAPDU: 80 17 00 00 [00:27:24]Write to MH i2c: E2 08 00 CD 1D 80 17 00 00 00 00 00 00 6A [00:27:24]Write i2c OK [00:27:24]MH_I2C_Read... [00:27:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:27:24]Read from MH i2c: E2 [00:27:24]MH_I2C_Read... [00:27:24]Read from MH i2c: E2 FD 00 [00:27:24]MH_I2C_Read... [00:27:24]Read from MH i2c: E2 FD 00 CD 1D 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 83 [00:27:24]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 [00:27:24]wFMCommunicate OK [00:27:24]wFMCommunicate request_size=4 [00:27:24]MH_SAM_APDU [00:27:24]CAPDU: 80 17 00 00 [00:27:24]Write to MH i2c: E2 08 00 CE 1D 80 17 00 00 00 00 00 00 6B [00:27:24]Write i2c OK [00:27:24]MH_I2C_Read... [00:27:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:27:24]Read from MH i2c: E2 [00:27:24]MH_I2C_Read... [00:27:24]Read from MH i2c: E2 FD 00 [00:27:24]MH_I2C_Read... [00:27:24]Read from MH i2c: E2 FD 00 CE 1D 00 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 24 [00:27:24]RAPDU: 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [00:27:24]wFMCommunicate OK [00:27:24]wFMCommunicate request_size=4 [00:27:24]MH_SAM_APDU [00:27:24]CAPDU: 80 17 00 00 [00:27:24]Write to MH i2c: E2 08 00 CF 1D 80 17 00 00 00 00 00 00 6C [00:27:24]Write i2c OK [00:27:24]MH_I2C_Read... [00:27:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:27:25]Read from MH i2c: E2 [00:27:25]MH_I2C_Read... [00:27:25]Read from MH i2c: E2 FD 00 [00:27:25]MH_I2C_Read... [00:27:25]Read from MH i2c: E2 FD 00 CF 1D 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 E4 [00:27:25]RAPDU: 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:27:25]wFMCommunicate OK [00:27:25]wFMCommunicate request_size=4 [00:27:25]MH_SAM_APDU [00:27:25]CAPDU: 80 17 00 00 [00:27:25]Write to MH i2c: E2 08 00 D0 1D 80 17 00 00 00 00 00 00 6D [00:27:25]Write i2c OK [00:27:25]MH_I2C_Read... [00:27:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [00:27:25]Read from MH i2c: E2 [00:27:25]MH_I2C_Read... [00:27:25]Read from MH i2c: E2 CE 00 [00:27:25]MH_I2C_Read... [00:27:25]Read from MH i2c: E2 CE 00 D0 1D 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 52 [00:27:25]RAPDU: 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:27:25]wFMCommunicate OK [00:27:25]SAM_PROTO_GetShiftData done [00:27:25]requested_item shift.sale.total_cash is exist - process it [00:27:25]requested_item shift.sale_refund.total is exist - process it [00:27:25]requested_item shift.sale_refund.total_cash is exist - process it [00:27:25]requested_item shift.buy.total is exist - process it [00:27:25]requested_item shift.buy.total_cash is exist - process it [00:27:25]produce_requested_data done [00:27:25]produce_requested_data return {"fm.sale.total":27485014.57,"fm.sale_refund.total":54066.00,"fm.buy.total":0.00,"shift.sale.total":245361.55,"shift.sale.total_cash":220596.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:27:25]process_action_free get_value [00:27:25]json_value_free [00:27:25]json_value_free done [00:27:25]process_json_proto returns [00:27:25]Send response to host [00:27:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":27485014.57,"fm.sale_refund.total":54066.00,"fm.buy.total":0.00,"shift.sale.total":245361.55,"shift.sale.total_cash":220596.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:27:25]free response buf [00:27:25]execute_script done [00:27:25]execute_script returns [00:27:25]free content buf [00:27:25]Sock 9.Close socket [00:27:25]Sock 9.Thread stoped [00:27:25]accept exits with 7 [00:27:25]New connection [00:27:25]New thread 3067489636 created [00:27:25]Thread 3067346276 joined [00:27:25]Waiting for new connection... [00:27:25] Sock 7.Parse request [00:27:25]Sock 7.Check first char [00:27:25]Sock 7.First char is OK [00:27:25]request: POST /json_proto HTTP/1.0 [00:27:25]Method: POST [00:27:25]URL: /json_proto [00:27:25]Method is POST - this is cgi request [00:27:25]url: /json_proto [00:27:25]query_string will be loaded in cgi processing [00:27:25]execute_cgi json_proto POST (null) [00:27:25]execute_cgi path=json_proto method=POST [00:27:25]POST find Content-Length [00:27:25]Host: 172.17.51.3:8080 [00:27:25]Content-Length: 331 [00:27:25]Content-Type: application/json [00:27:25] [00:27:25]POST finish read [00:27:25]Found Content-Length = 331 [00:27:25]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:27:25]execute_script... [00:27:25]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:27:25]POST & json_proto [00:27:25]process_json_proto [00:27:25]json parsed OK: [00:27:25]protocol is kg_v1.0 [00:27:25]action value=get_value [00:27:25]process_action get_value [00:27:25]cmd_get_value [00:27:25]process_action get_value done [00:27:25]requested_data is exist [00:27:25]produce_requested_data [00:27:25]requested_item fm.sale.total is exist - process it [00:27:25]SAM_PROTO_GetFMData [00:27:25]wFMCommunicate request_size=4 [00:27:25]MH_SAM_APDU [00:27:25]CAPDU: 80 13 03 00 [00:27:25]Write to MH i2c: E2 08 00 D1 1D 80 13 03 00 00 00 00 00 6D [00:27:25]Write i2c OK [00:27:25]MH_I2C_Read... [00:27:26]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:27:26]Read from MH i2c: E2 [00:27:26]MH_I2C_Read... [00:27:26]Read from MH i2c: E2 FD 00 [00:27:26]MH_I2C_Read... [00:27:26]Read from MH i2c: E2 FD 00 D1 1D 00 BF 04 85 04 BB 04 6E 04 04 00 41 76 00 00 69 04 A1 00 6F 04 04 00 32 76 00 00 B1 04 04 00 D1 CD D2 A3 70 04 04 00 14 B7 4C 83 72 04 04 00 BD 16 86 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 B5 ED 66 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 7C 3C 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 C4 [00:27:26]RAPDU: BF 04 85 04 BB 04 6E 04 04 00 41 76 00 00 69 04 A1 00 6F 04 04 00 32 76 00 00 B1 04 04 00 D1 CD D2 A3 70 04 04 00 14 B7 4C 83 72 04 04 00 BD 16 86 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 B5 ED 66 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 7C 3C 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 [00:27:26]wFMCommunicate OK [00:27:26]wFMCommunicate request_size=4 [00:27:26]MH_SAM_APDU [00:27:26]CAPDU: 80 17 00 00 [00:27:26]Write to MH i2c: E2 08 00 D2 1D 80 17 00 00 00 00 00 00 6F [00:27:26]Write i2c OK [00:27:26]MH_I2C_Read... [00:27:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:27:26]Read from MH i2c: E2 [00:27:26]MH_I2C_Read... [00:27:26]Read from MH i2c: E2 FD 00 [00:27:26]MH_I2C_Read... [00:27:26]Read from MH i2c: E2 FD 00 D2 1D 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 40 [00:27:26]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:27:26]wFMCommunicate OK [00:27:26]wFMCommunicate request_size=4 [00:27:26]MH_SAM_APDU [00:27:26]CAPDU: 80 17 00 00 [00:27:26]Write to MH i2c: E2 08 00 D3 1D 80 17 00 00 00 00 00 00 70 [00:27:26]Write i2c OK [00:27:26]MH_I2C_Read... [00:27:27]OFD Sender: No OFD packet to send [00:27:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:27:27]Read from MH i2c: E2 [00:27:27]MH_I2C_Read... [00:27:27]Read from MH i2c: E2 FD 00 [00:27:27]MH_I2C_Read... [00:27:27]Read from MH i2c: E2 FD 00 D3 1D 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 14 [00:27:27]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:27:27]wFMCommunicate OK [00:27:27]wFMCommunicate request_size=4 [00:27:27]MH_SAM_APDU [00:27:27]CAPDU: 80 17 00 00 [00:27:27]Write to MH i2c: E2 08 00 D4 1D 80 17 00 00 00 00 00 00 71 [00:27:27]Write i2c OK [00:27:27]MH_I2C_Read... [00:27:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:27:27]Read from MH i2c: E2 [00:27:27]MH_I2C_Read... [00:27:27]Read from MH i2c: E2 FD 00 [00:27:27]MH_I2C_Read... [00:27:27]Read from MH i2c: E2 FD 00 D4 1D 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 EB [00:27:27]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:27:27]wFMCommunicate OK [00:27:27]wFMCommunicate request_size=4 [00:27:27]MH_SAM_APDU [00:27:27]CAPDU: 80 17 00 00 [00:27:27]Write to MH i2c: E2 08 00 D5 1D 80 17 00 00 00 00 00 00 72 [00:27:27]Write i2c OK [00:27:27]MH_I2C_Read... [00:27:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 217! [00:27:27]Read from MH i2c: E2 [00:27:27]MH_I2C_Read... [00:27:27]Read from MH i2c: E2 DC 00 [00:27:27]MH_I2C_Read... [00:27:27]Read from MH i2c: E2 DC 00 D5 1D 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 56 [00:27:28]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:27:28]wFMCommunicate OK [00:27:28]SAM_PROTO_GetFMData done [00:27:28]requested_item fm.sale_refund.total is exist - process it [00:27:28]requested_item fm.buy.total is exist - process it [00:27:28]requested_item shift.sale.total is exist - process it [00:27:28]SAM_PROTO_GetShiftData [00:27:28]wFMCommunicate request_size=4 [00:27:28]MH_SAM_APDU [00:27:28]CAPDU: 80 13 02 00 [00:27:28]Write to MH i2c: E2 08 00 D6 1D 80 13 02 00 00 00 00 00 71 [00:27:28]Write i2c OK [00:27:28]MH_I2C_Read... [00:27:28]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:27:28]Read from MH i2c: E2 [00:27:28]MH_I2C_Read... [00:27:28]Read from MH i2c: E2 FD 00 [00:27:28]MH_I2C_Read... [00:27:28]Read from MH i2c: E2 FD 00 D6 1D 00 B1 04 AA 04 AD 04 6E 04 04 00 1B 01 00 00 69 04 9E 00 6F 04 04 00 1B 01 00 00 B1 04 04 00 5B 64 76 01 70 04 04 00 50 9A 50 01 72 04 03 00 0B CA 25 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 29 C5 27 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 66 50 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 B9 [00:27:28]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 1B 01 00 00 69 04 9E 00 6F 04 04 00 1B 01 00 00 B1 04 04 00 5B 64 76 01 70 04 04 00 50 9A 50 01 72 04 03 00 0B CA 25 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 29 C5 27 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 66 50 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:27:28]wFMCommunicate OK [00:27:28]wFMCommunicate request_size=4 [00:27:28]MH_SAM_APDU [00:27:28]CAPDU: 80 17 00 00 [00:27:28]Write to MH i2c: E2 08 00 D7 1D 80 17 00 00 00 00 00 00 74 [00:27:28]Write i2c OK [00:27:28]MH_I2C_Read... [00:27:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:27:29]Read from MH i2c: E2 [00:27:29]MH_I2C_Read... [00:27:29]Read from MH i2c: E2 FD 00 [00:27:29]MH_I2C_Read... [00:27:29]Read from MH i2c: E2 FD 00 D7 1D 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 8D [00:27:29]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 [00:27:29]wFMCommunicate OK [00:27:29]wFMCommunicate request_size=4 [00:27:29]MH_SAM_APDU [00:27:29]CAPDU: 80 17 00 00 [00:27:29]Write to MH i2c: E2 08 00 D8 1D 80 17 00 00 00 00 00 00 75 [00:27:29]Write i2c OK [00:27:29]MH_I2C_Read... [00:27:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:27:29]Read from MH i2c: E2 [00:27:29]MH_I2C_Read... [00:27:29]Read from MH i2c: E2 FD 00 [00:27:29]MH_I2C_Read... [00:27:29]Read from MH i2c: E2 FD 00 D8 1D 00 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 2E [00:27:29]RAPDU: 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [00:27:29]wFMCommunicate OK [00:27:29]wFMCommunicate request_size=4 [00:27:29]MH_SAM_APDU [00:27:29]CAPDU: 80 17 00 00 [00:27:29]Write to MH i2c: E2 08 00 D9 1D 80 17 00 00 00 00 00 00 76 [00:27:29]Write i2c OK [00:27:29]MH_I2C_Read... [00:27:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:27:30]Read from MH i2c: E2 [00:27:30]MH_I2C_Read... [00:27:30]Read from MH i2c: E2 FD 00 [00:27:30]MH_I2C_Read... [00:27:30]Read from MH i2c: E2 FD 00 D9 1D 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 EE [00:27:30]RAPDU: 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:27:30]wFMCommunicate OK [00:27:30]wFMCommunicate request_size=4 [00:27:30]MH_SAM_APDU [00:27:30]CAPDU: 80 17 00 00 [00:27:30]Write to MH i2c: E2 08 00 DA 1D 80 17 00 00 00 00 00 00 77 [00:27:30]Write i2c OK [00:27:30]MH_I2C_Read... [00:27:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [00:27:30]Read from MH i2c: E2 [00:27:30]MH_I2C_Read... [00:27:30]Read from MH i2c: E2 CE 00 [00:27:30]MH_I2C_Read... [00:27:30]Read from MH i2c: E2 CE 00 DA 1D 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 5C [00:27:30]RAPDU: 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:27:30]wFMCommunicate OK [00:27:30]SAM_PROTO_GetShiftData done [00:27:30]requested_item shift.sale.total_cash is exist - process it [00:27:30]requested_item shift.sale_refund.total is exist - process it [00:27:30]requested_item shift.sale_refund.total_cash is exist - process it [00:27:30]requested_item shift.buy.total is exist - process it [00:27:30]requested_item shift.buy.total_cash is exist - process it [00:27:30]produce_requested_data done [00:27:30]produce_requested_data return {"fm.sale.total":27485014.57,"fm.sale_refund.total":54066.00,"fm.buy.total":0.00,"shift.sale.total":245361.55,"shift.sale.total_cash":220596.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:27:30]process_action_free get_value [00:27:30]json_value_free [00:27:30]json_value_free done [00:27:30]process_json_proto returns [00:27:30]Send response to host [00:27:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":27485014.57,"fm.sale_refund.total":54066.00,"fm.buy.total":0.00,"shift.sale.total":245361.55,"shift.sale.total_cash":220596.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:27:30]free response buf [00:27:30]execute_script done [00:27:30]execute_script returns [00:27:30]free content buf [00:27:30]Sock 7.Close socket [00:27:30]Sock 7.Thread stoped [00:27:30]accept exits with 9 [00:27:30]New connection [00:27:30]New thread 3067346276 created [00:27:30]Thread 3067489636 joined [00:27:30]Waiting for new connection... [00:27:30] Sock 9.Parse request [00:27:30]Sock 9.Check first char [00:27:30]Sock 9.First char is OK [00:27:30]request: POST /json_proto HTTP/1.0 [00:27:30]Method: POST [00:27:30]URL: /json_proto [00:27:30]Method is POST - this is cgi request [00:27:30]url: /json_proto [00:27:30]query_string will be loaded in cgi processing [00:27:30]execute_cgi json_proto POST (null) [00:27:30]execute_cgi path=json_proto method=POST [00:27:30]POST find Content-Length [00:27:30]Host: 172.17.51.3:8080 [00:27:30]Content-Length: 272 [00:27:30]Content-Type: application/json [00:27:30] [00:27:30]POST finish read [00:27:30]Found Content-Length = 272 [00:27:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0422\u0430\u0438\u0440\u0431\u0435\u043A\u043E\u0432\u0430 \u0413. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:27:30]execute_script... [00:27:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0422\u0430\u0438\u0440\u0431\u0435\u043A\u043E\u0432\u0430 \u0413. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:27:30]POST & json_proto [00:27:30]process_json_proto [00:27:30]json parsed OK: [00:27:30]protocol is kg_v1.0 [00:27:30]action value=close_shift [00:27:30]process_action close_shift [00:27:30]cmd_close_shift [00:27:30]MH_GetDate [00:27:30]Write to MH i2c: F0 00 00 DB 1D E7 [00:27:30]Write i2c OK [00:27:30]MH_I2C_Read... [00:27:30]Read from MH i2c: F0 [00:27:30]MH_I2C_Read... [00:27:30]Read from MH i2c: F0 09 00 [00:27:30]MH_I2C_Read... [00:27:30]Read from MH i2c: F0 09 00 DB 1D 00 F4 9F 15 67 04 C1 95 66 BF [00:27:30]GetLastDocTimeStamp 1729470404 [00:27:30]current date 1729470452 [00:27:30]FM_GetShiftState [00:27:30]SAM_PROTO_GetShiftState [00:27:30]wFMCommunicate request_size=4 [00:27:30]MH_SAM_APDU [00:27:30]CAPDU: 80 13 01 00 [00:27:30]Write to MH i2c: E2 08 00 DC 1D 80 13 01 00 00 00 00 00 76 [00:27:30]Write i2c OK [00:27:30]MH_I2C_Read... [00:27:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:27:30]Read from MH i2c: E2 [00:27:30]MH_I2C_Read... [00:27:30]Read from MH i2c: E2 0E 00 [00:27:30]MH_I2C_Read... [00:27:30]Read from MH i2c: E2 0E 00 DC 1D 00 09 00 01 0E 51 14 67 00 00 00 00 90 00 5C [00:27:30]RAPDU: 09 00 01 0E 51 14 67 00 00 00 00 90 00 [00:27:30]wFMCommunicate OK [00:27:30]SAM_PROTO_GetShiftState done [00:27:30]FM_GetShiftState done [00:27:30]KKMCreateCloseShiftDocument [00:27:30]Load OK [00:27:30]Malloc new data [00:27:30]MH_GetDate [00:27:30]Write to MH i2c: F0 00 00 DD 1D E9 [00:27:30]Write i2c OK [00:27:30]MH_I2C_Read... [00:27:30]Read from MH i2c: F0 [00:27:30]MH_I2C_Read... [00:27:30]Read from MH i2c: F0 09 00 [00:27:30]MH_I2C_Read... [00:27:30]Read from MH i2c: F0 09 00 DD 1D 00 F4 9F 15 67 04 C1 95 66 C1 [00:27:30]Malloc new data [00:27:30]Malloc new data [00:27:30]Malloc new data [00:27:30]Malloc new data [00:27:30]KKMCreateCloseShiftDocument OK [00:27:30]KKMSetCloseShiftData OK [00:27:30]ProcessDocumentItem done err = 0, tmpTLVsize=75 [00:27:30]tlvbuf is 01EED320 [00:27:30]KKMLoadAndSignCloseShiftData [00:27:30]SAM_PROTO_ProcessDocument [00:27:30]wFMCommunicate request_size=9 [00:27:30]MH_SAM_APDU [00:27:30]CAPDU: 80 15 01 00 04 05 00 4B 00 [00:27:30]Write to MH i2c: E2 0C 00 DE 1D 80 15 01 00 04 00 05 00 4B 00 00 00 D2 [00:27:30]Write i2c OK [00:27:30]MH_I2C_Read... [00:27:30]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:27:30]Read from MH i2c: E2 [00:27:30]MH_I2C_Read... [00:27:30]Read from MH i2c: E2 03 00 [00:27:30]MH_I2C_Read... [00:27:30]Read from MH i2c: E2 03 00 DE 1D 00 90 00 6F [00:27:30]RAPDU: 90 00 [00:27:30]wFMCommunicate OK [00:27:30]wFMCommunicate request_size=23 [00:27:30]MH_SAM_APDU [00:27:30]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:27:31]Write to MH i2c: E2 1A 00 DF 1D 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 71 [00:27:31]Write i2c OK [00:27:31]MH_I2C_Read... [00:27:31]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:27:31]Read from MH i2c: E2 [00:27:31]MH_I2C_Read... [00:27:31]Read from MH i2c: E2 03 00 [00:27:31]MH_I2C_Read... [00:27:31]Read from MH i2c: E2 03 00 DF 1D 00 90 00 70 [00:27:31]RAPDU: 90 00 [00:27:31]wFMCommunicate OK [00:27:31]wFMCommunicate request_size=34 [00:27:31]MH_SAM_APDU [00:27:31]CAPDU: 80 15 02 00 1D FD 03 19 00 D0 A2 D0 B0 D0 B8 D1 80 D0 B1 D0 B5 D0 BA D0 BE D0 B2 D0 B0 20 D0 93 2E 20 [00:27:31]Write to MH i2c: E2 25 00 E0 1D 80 15 02 00 1D 00 FD 03 19 00 D0 A2 D0 B0 D0 B8 D1 80 D0 B1 D0 B5 D0 BA D0 BE D0 B2 D0 B0 20 D0 93 2E 20 00 00 8C [00:27:31]Write i2c OK [00:27:31]MH_I2C_Read... [00:27:31]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:27:31]Read from MH i2c: E2 [00:27:31]MH_I2C_Read... [00:27:31]Read from MH i2c: E2 03 00 [00:27:31]MH_I2C_Read... [00:27:31]Read from MH i2c: E2 03 00 E0 1D 00 90 00 71 [00:27:31]RAPDU: 90 00 [00:27:31]wFMCommunicate OK [00:27:31]wFMCommunicate request_size=13 [00:27:31]MH_SAM_APDU [00:27:31]CAPDU: 80 15 02 00 08 F4 03 04 00 F4 9F 15 67 [00:27:31]Write to MH i2c: E2 10 00 E1 1D 80 15 02 00 08 00 F4 03 04 00 F4 9F 15 67 00 00 98 [00:27:31]Write i2c OK [00:27:31]MH_I2C_Read... [00:27:31]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:27:31]Read from MH i2c: E2 [00:27:31]MH_I2C_Read... [00:27:31]Read from MH i2c: E2 03 00 [00:27:31]MH_I2C_Read... [00:27:31]Read from MH i2c: E2 03 00 E1 1D 00 90 00 72 [00:27:31]RAPDU: 90 00 [00:27:31]wFMCommunicate OK [00:27:31]wFMCommunicate request_size=25 [00:27:31]MH_SAM_APDU [00:27:31]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:27:31]Write to MH i2c: E2 1C 00 E2 1D 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 EB [00:27:31]Write i2c OK [00:27:31]MH_I2C_Read... [00:27:31]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:27:31]Read from MH i2c: E2 [00:27:31]MH_I2C_Read... [00:27:31]Read from MH i2c: E2 03 00 [00:27:31]MH_I2C_Read... [00:27:31]Read from MH i2c: E2 03 00 E2 1D 00 90 00 73 [00:27:31]RAPDU: 90 00 [00:27:31]wFMCommunicate OK [00:27:31]wFMCommunicate request_size=4 [00:27:31]MH_SAM_APDU [00:27:31]CAPDU: 80 15 03 00 [00:27:31]Write to MH i2c: E2 08 00 E3 1D 80 15 03 00 00 00 00 00 81 [00:27:31]Write i2c OK [00:27:31]MH_I2C_Read... [00:27:31]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 250! [00:27:31]Read from MH i2c: E2 [00:27:31]MH_I2C_Read... [00:27:31]Read from MH i2c: E2 FD 00 [00:27:31]MH_I2C_Read... [00:27:31]Read from MH i2c: E2 FD 00 E3 1D 00 F4 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 26 77 00 00 0E 04 04 00 72 00 00 00 5E 04 04 00 1B 01 00 00 57 04 04 00 1D 01 00 00 AA 04 AD 04 6E 04 04 00 1B 01 00 00 69 04 9E 00 6F 04 04 00 1B 01 00 00 B1 04 04 00 5B 64 76 01 70 04 04 00 50 9A 50 01 72 04 03 00 0B CA 25 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 29 C5 27 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 66 50 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 90 00 A0 [00:27:32]RAPDU: F4 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 26 77 00 00 0E 04 04 00 72 00 00 00 5E 04 04 00 1B 01 00 00 57 04 04 00 1D 01 00 00 AA 04 AD 04 6E 04 04 00 1B 01 00 00 69 04 9E 00 6F 04 04 00 1B 01 00 00 B1 04 04 00 5B 64 76 01 70 04 04 00 50 9A 50 01 72 04 03 00 0B CA 25 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 29 C5 27 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 66 50 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 90 00 [00:27:32]wFMCommunicate OK [00:27:32]SAM_PROTO_ProcessDocument answer len = 1268 [00:27:32]SAM_PROTO_ProcessDocument remain to read = 1020 [00:27:32]wFMCommunicate request_size=4 [00:27:32]MH_SAM_APDU [00:27:32]CAPDU: 80 17 00 00 [00:27:32]Write to MH i2c: E2 08 00 E4 1D 80 17 00 00 00 00 00 00 81 [00:27:32]OFD Sender: No OFD packet to send [00:27:32]Write i2c OK [00:27:32]MH_I2C_Read... [00:27:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:27:32]Read from MH i2c: E2 [00:27:32]MH_I2C_Read... [00:27:32]Read from MH i2c: E2 FD 00 [00:27:32]MH_I2C_Read... [00:27:32]Read from MH i2c: E2 FD 00 E4 1D 00 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 90 00 D5 [00:27:32]RAPDU: 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 90 00 [00:27:32]wFMCommunicate OK [00:27:32]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:27:32]SAM_PROTO_ProcessDocument remain to read = 770 [00:27:32]wFMCommunicate request_size=4 [00:27:32]MH_SAM_APDU [00:27:32]CAPDU: 80 17 00 00 [00:27:32]Write to MH i2c: E2 08 00 E5 1D 80 17 00 00 00 00 00 00 82 [00:27:32]Write i2c OK [00:27:32]MH_I2C_Read... [00:27:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:27:33]Read from MH i2c: E2 [00:27:33]MH_I2C_Read... [00:27:33]Read from MH i2c: E2 FD 00 [00:27:33]MH_I2C_Read... [00:27:33]Read from MH i2c: E2 FD 00 E5 1D 00 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 90 00 E4 [00:27:33]RAPDU: 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 90 00 [00:27:33]wFMCommunicate OK [00:27:33]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:27:33]SAM_PROTO_ProcessDocument remain to read = 520 [00:27:33]wFMCommunicate request_size=4 [00:27:33]MH_SAM_APDU [00:27:33]CAPDU: 80 17 00 00 [00:27:33]Write to MH i2c: E2 08 00 E6 1D 80 17 00 00 00 00 00 00 83 [00:27:33]Write i2c OK [00:27:33]MH_I2C_Read... [00:27:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:27:33]Read from MH i2c: E2 [00:27:33]MH_I2C_Read... [00:27:33]Read from MH i2c: E2 FD 00 [00:27:33]MH_I2C_Read... [00:27:33]Read from MH i2c: E2 FD 00 E6 1D 00 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 90 00 0B [00:27:33]RAPDU: 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 90 00 [00:27:33]wFMCommunicate OK [00:27:33]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:27:33]SAM_PROTO_ProcessDocument remain to read = 270 [00:27:33]wFMCommunicate request_size=4 [00:27:33]MH_SAM_APDU [00:27:33]CAPDU: 80 17 00 00 [00:27:33]Write to MH i2c: E2 08 00 E7 1D 80 17 00 00 00 00 00 00 84 [00:27:33]Write i2c OK [00:27:33]MH_I2C_Read... [00:27:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:27:34]Read from MH i2c: E2 [00:27:34]MH_I2C_Read... [00:27:34]Read from MH i2c: E2 FD 00 [00:27:34]MH_I2C_Read... [00:27:34]Read from MH i2c: E2 FD 00 E7 1D 00 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 90 00 4E [00:27:34]RAPDU: 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 90 00 [00:27:34]wFMCommunicate OK [00:27:34]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:27:34]SAM_PROTO_ProcessDocument remain to read = 20 [00:27:34]wFMCommunicate request_size=4 [00:27:34]MH_SAM_APDU [00:27:34]CAPDU: 80 17 00 00 [00:27:34]Write to MH i2c: E2 08 00 E8 1D 80 17 00 00 00 00 00 00 85 [00:27:34]Write i2c OK [00:27:34]MH_I2C_Read... [00:27:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 20! [00:27:34]Read from MH i2c: E2 [00:27:34]MH_I2C_Read... [00:27:34]Read from MH i2c: E2 17 00 [00:27:34]MH_I2C_Read... [00:27:34]Read from MH i2c: E2 17 00 E8 1D 00 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 D2 56 C9 8F E6 C7 90 00 F3 [00:27:34]RAPDU: 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 D2 56 C9 8F E6 C7 90 00 [00:27:34]wFMCommunicate OK [00:27:34]SAM_PROTO_ProcessDocument received (without SW) 20 bytes [00:27:34]SAM_PROTO_ProcessDocument done [00:27:34]1209 (1) - 1.0 - номер версии ФФД [00:27:34]1041 (16) - 0000000002094219 - номер ФМ [00:27:34]1040 (4) - 30502 - номер ФД [00:27:34]1038 (4) - 114 - номер смены [00:27:34]1118 (4) - 283 - количество кассовых чеков за смену [00:27:34]1111 (4) - 285 - общее количество ФД за смену [00:27:34]1194 (1197) - счетчики итогов смены [00:27:34] 1134 (4) - 283 - количество чеков со всеми признаками расчетов [00:27:34] 1129 (158) - счетчики операций «приход» [00:27:34] 1135 (4) - 283 - количество чеков по признаку расчетов [00:27:34] 1201 (4) - 245361.55 - общая итоговая сумма в чеках [00:27:34] 1136 (4) - 220596.00 - итоговая сумма в чеках наличными [00:27:34] 1138 (3) - 24765.55 - итоговая сумма в чеках безналичными [00:27:34] 1024 (123) - суммы налогов [00:27:34] 1006 (9) - суммы НДС [00:27:34] 1010 (1) - 0% - код ставки НДС [00:27:34] 1011 (0) - 0.00 - сумма НДС по ставке [00:27:34] 1006 (12) - суммы НДС [00:27:34] 1010 (1) - 12% - код ставки НДС [00:27:34] 1011 (3) - 26063.77 - сумма НДС по ставке [00:27:34] 1007 (9) - суммы НСП [00:27:34] 1014 (1) - 0% - код ставки НСП [00:27:34] 1015 (0) - 0.00 - сумма НСП по ставке [00:27:34] 1007 (12) - суммы НСП [00:27:34] 1014 (1) - 1% - код ставки НСП [00:27:34] 1015 (3) - 2171.90 - сумма НСП по ставке [00:27:34] 1007 (9) - суммы НСП [00:27:34] 1014 (1) - 2% - код ставки НСП [00:27:34] 1015 (0) - 0.00 - сумма НСП по ставке [00:27:34] 1007 (9) - суммы НСП [00:27:34] 1014 (1) - 3% - код ставки НСП [00:27:34] 1015 (0) - 0.00 - сумма НСП по ставке [00:27:34] 1007 (9) - суммы НСП [00:27:34] 1014 (1) - 5% - код ставки НСП [00:27:34] 1015 (0) - 0.00 - сумма НСП по ставке [00:27:34] 1007 (9) - суммы НСП [00:27:34] 1014 (1) - 0,50% - код ставки НСП [00:27:34] 1015 (0) - 0.00 - сумма НСП по ставке [00:27:34] 1007 (9) - суммы НСП [00:27:34] 1014 (1) - 1,50% - код ставки НСП [00:27:34] 1015 (0) - 0.00 - сумма НСП по ставке [00:27:34] 1130 (141) - счетчики операций «возврат прихода» [00:27:34] 1135 (4) - 0 - количество чеков по признаку расчетов [00:27:34] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:27:34] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:27:34] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:27:34] 1024 (117) - суммы налогов [00:27:34] 1006 (9) - суммы НДС [00:27:34] 1010 (1) - 0% - код ставки НДС [00:27:34] 1011 (0) - 0.00 - сумма НДС по ставке [00:27:34] 1006 (9) - суммы НДС [00:27:34] 1010 (1) - 12% - код ставки НДС [00:27:34] 1011 (0) - 0.00 - сумма НДС по ставке [00:27:34] 1007 (9) - суммы НСП [00:27:34] 1014 (1) - 0% - код ставки НСП [00:27:34] 1015 (0) - 0.00 - сумма НСП по ставке [00:27:34] 1007 (9) - суммы НСП [00:27:34] 1014 (1) - 1% - код ставки НСП [00:27:34] 1015 (0) - 0.00 - сумма НСП по ставке [00:27:34] 1007 (9) - суммы НСП [00:27:34] 1014 (1) - 2% - код ставки НСП [00:27:34] 1015 (0) - 0.00 - сумма НСП по ставке [00:27:34] 1007 (9) - суммы НСП [00:27:34] 1014 (1) - 3% - код ставки НСП [00:27:34] 1015 (0) - 0.00 - сумма НСП по ставке [00:27:34] 1007 (9) - суммы НСП [00:27:34] 1014 (1) - 5% - код ставки НСП [00:27:34] 1015 (0) - 0.00 - сумма НСП по ставке [00:27:34] 1007 (9) - суммы НСП [00:27:34] 1014 (1) - 0,50% - код ставки НСП [00:27:34] 1015 (0) - 0.00 - сумма НСП по ставке [00:27:34] 1007 (9) - суммы НСП [00:27:34] 1014 (1) - 1,50% - код ставки НСП [00:27:34] 1015 (0) - 0.00 - сумма НСП по ставке [00:27:34] 1131 (141) - счетчики операций «расход» [00:27:34] 1135 (4) - 0 - количество чеков по признаку расчетов [00:27:34] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:27:34] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:27:34] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:27:34] 1024 (117) - суммы налогов [00:27:34] 1006 (9) - суммы НДС [00:27:34] 1010 (1) - 0% - код ставки НДС [00:27:34] 1011 (0) - 0.00 - сумма НДС по ставке [00:27:34] 1006 (9) - суммы НДС [00:27:34] 1010 (1) - 12% - код ставки НДС [00:27:34] 1011 (0) - 0.00 - сумма НДС по ставке [00:27:34] 1007 (9) - суммы НСП [00:27:34] 1014 (1) - 0% - код ставки НСП [00:27:34] 1015 (0) - 0.00 - сумма НСП по ставке [00:27:34] 1007 (9) - суммы НСП [00:27:34] 1014 (1) - 1% - код ставки НСП [00:27:34] 1015 (0) - 0.00 - сумма НСП по ставке [00:27:34] 1007 (9) - суммы НСП [00:27:34] 1014 (1) - 2% - код ставки НСП [00:27:34] 1015 (0) - 0.00 - сумма НСП по ставке [00:27:34] 1007 (9) - суммы НСП [00:27:34] 1014 (1) - 3% - код ставки НСП [00:27:34] 1015 (0) - 0.00 - сумма НСП по ставке [00:27:34] 1007 (9) - суммы НСП [00:27:34] 1014 (1) - 5% - код ставки НСП [00:27:34] 1015 (0) - 0.00 - сумма НСП по ставке [00:27:34] 1007 (9) - суммы НСП [00:27:34] 1014 (1) - 0,50% - код ставки НСП [00:27:34] 1015 (0) - 0.00 - сумма НСП по ставке [00:27:34] 1007 (9) - суммы НСП [00:27:34] 1014 (1) - 1,50% - код ставки НСП [00:27:34] 1015 (0) - 0.00 - сумма НСП по ставке [00:27:34] 1132 (141) - счетчики операций «возврат расхода» [00:27:34] 1135 (4) - 0 - количество чеков по признаку расчетов [00:27:34] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:27:34] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:27:34] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:27:34] 1024 (117) - суммы налогов [00:27:34] 1006 (9) - суммы НДС [00:27:34] 1010 (1) - 0% - код ставки НДС [00:27:34] 1011 (0) - 0.00 - сумма НДС по ставке [00:27:34] 1006 (9) - суммы НДС [00:27:34] 1010 (1) - 12% - код ставки НДС [00:27:34] 1011 (0) - 0.00 - сумма НДС по ставке [00:27:34] 1007 (9) - суммы НСП [00:27:34] 1014 (1) - 0% - код ставки НСП [00:27:34] 1015 (0) - 0.00 - сумма НСП по ставке [00:27:34] 1007 (9) - суммы НСП [00:27:34] 1014 (1) - 1% - код ставки НСП [00:27:34] 1015 (0) - 0.00 - сумма НСП по ставке [00:27:34] 1007 (9) - суммы НСП [00:27:34] 1014 (1) - 2% - код ставки НСП [00:27:34] 1015 (0) - 0.00 - сумма НСП по ставке [00:27:34] 1007 (9) - суммы НСП [00:27:34] 1014 (1) - 3% - код ставки НСП [00:27:34] 1015 (0) - 0.00 - сумма НСП по ставке [00:27:34] 1007 (9) - суммы НСП [00:27:34] 1014 (1) - 5% - код ставки НСП [00:27:34] 1015 (0) - 0.00 - сумма НСП по ставке [00:27:34] 1007 (9) - суммы НСП [00:27:34] 1014 (1) - 0,50% - код ставки НСП [00:27:34] 1015 (0) - 0.00 - сумма НСП по ставке [00:27:34] 1007 (9) - суммы НСП [00:27:34] 1014 (1) - 1,50% - код ставки НСП [00:27:34] 1015 (0) - 0.00 - сумма НСП по ставке [00:27:34] 1133 (588) - - счетчики коррекции - не используются [00:27:34]1077 (6) - 231270190671559 - ФПД [00:27:34]SetTLVBufToDocument [00:27:34]Processing tag 1209 (04B9) [00:27:34]Malloc new data [00:27:34]Processing tag 1041 (0411) [00:27:34]Processing tag 1040 (0410) [00:27:34]Malloc new data [00:27:34]Processing tag 1038 (040E) [00:27:35]Malloc new data [00:27:35]Processing tag 1118 (045E) [00:27:35]Malloc new data [00:27:35]Processing tag 1111 (0457) [00:27:35]Malloc new data [00:27:35]Processing tag 1194 (04AA) [00:27:35]Load OK [00:27:35]SetTLVBufToDocument [00:27:35]Processing tag 1134 (046E) [00:27:35]Malloc new data [00:27:35]Processing tag 1129 (0469) [00:27:35]Load OK [00:27:35]SetTLVBufToDocument [00:27:35]Processing tag 1135 (046F) [00:27:35]Malloc new data [00:27:35]Processing tag 1201 (04B1) [00:27:35]Malloc new data [00:27:35]Processing tag 1136 (0470) [00:27:35]Malloc new data [00:27:35]Processing tag 1138 (0472) [00:27:35]Malloc new data [00:27:35]Processing tag 1024 (0400) [00:27:35]Load OK [00:27:35]SetTLVBufToDocument [00:27:35]Processing tag 1006 (03EE) [00:27:35]Load OK [00:27:35]SetTLVBufToDocument [00:27:35]Processing tag 1010 (03F2) [00:27:35]Malloc new data [00:27:35]Processing tag 1011 (03F3) [00:27:35]Malloc new data [00:27:35]SetTLVBufToDocument err=0 [00:27:35]Processing tag 1006 (03EE) [00:27:35]Load OK [00:27:35]SetTLVBufToDocument [00:27:35]Processing tag 1010 (03F2) [00:27:35]Malloc new data [00:27:35]Processing tag 1011 (03F3) [00:27:35]Malloc new data [00:27:35]SetTLVBufToDocument err=0 [00:27:35]Processing tag 1007 (03EF) [00:27:35]Load OK [00:27:35]SetTLVBufToDocument [00:27:35]Processing tag 1014 (03F6) [00:27:35]Malloc new data [00:27:35]Processing tag 1015 (03F7) [00:27:35]Malloc new data [00:27:35]SetTLVBufToDocument err=0 [00:27:35]Processing tag 1007 (03EF) [00:27:35]Load OK [00:27:35]SetTLVBufToDocument [00:27:35]Processing tag 1014 (03F6) [00:27:35]Malloc new data [00:27:35]Processing tag 1015 (03F7) [00:27:35]Malloc new data [00:27:35]SetTLVBufToDocument err=0 [00:27:35]Processing tag 1007 (03EF) [00:27:35]Load OK [00:27:35]SetTLVBufToDocument [00:27:35]Processing tag 1014 (03F6) [00:27:35]Malloc new data [00:27:35]Processing tag 1015 (03F7) [00:27:35]Malloc new data [00:27:35]SetTLVBufToDocument err=0 [00:27:35]Processing tag 1007 (03EF) [00:27:35]Load OK [00:27:35]SetTLVBufToDocument [00:27:35]Processing tag 1014 (03F6) [00:27:35]Malloc new data [00:27:35]Processing tag 1015 (03F7) [00:27:35]Malloc new data [00:27:35]SetTLVBufToDocument err=0 [00:27:35]Processing tag 1007 (03EF) [00:27:35]Load OK [00:27:35]SetTLVBufToDocument [00:27:35]Processing tag 1014 (03F6) [00:27:35]Malloc new data [00:27:35]Processing tag 1015 (03F7) [00:27:35]Malloc new data [00:27:35]SetTLVBufToDocument err=0 [00:27:35]Processing tag 1007 (03EF) [00:27:35]Load OK [00:27:35]SetTLVBufToDocument [00:27:35]Processing tag 1014 (03F6) [00:27:35]Malloc new data [00:27:35]Processing tag 1015 (03F7) [00:27:35]Malloc new data [00:27:35]SetTLVBufToDocument err=0 [00:27:35]Processing tag 1007 (03EF) [00:27:35]Load OK [00:27:35]SetTLVBufToDocument [00:27:35]Processing tag 1014 (03F6) [00:27:35]Malloc new data [00:27:35]Processing tag 1015 (03F7) [00:27:35]Malloc new data [00:27:35]SetTLVBufToDocument err=0 [00:27:35]SetTLVBufToDocument err=0 [00:27:35]SetTLVBufToDocument err=0 [00:27:35]Processing tag 1130 (046A) [00:27:35]Load OK [00:27:35]SetTLVBufToDocument [00:27:35]Processing tag 1135 (046F) [00:27:35]Malloc new data [00:27:35]Processing tag 1201 (04B1) [00:27:35]Malloc new data [00:27:35]Processing tag 1136 (0470) [00:27:35]Malloc new data [00:27:35]Processing tag 1138 (0472) [00:27:35]Malloc new data [00:27:35]Processing tag 1024 (0400) [00:27:35]Load OK [00:27:35]SetTLVBufToDocument [00:27:35]Processing tag 1006 (03EE) [00:27:35]Load OK [00:27:35]SetTLVBufToDocument [00:27:35]Processing tag 1010 (03F2) [00:27:35]Malloc new data [00:27:35]Processing tag 1011 (03F3) [00:27:35]Malloc new data [00:27:35]SetTLVBufToDocument err=0 [00:27:35]Processing tag 1006 (03EE) [00:27:35]Load OK [00:27:35]SetTLVBufToDocument [00:27:35]Processing tag 1010 (03F2) [00:27:35]Malloc new data [00:27:35]Processing tag 1011 (03F3) [00:27:35]Malloc new data [00:27:35]SetTLVBufToDocument err=0 [00:27:35]Processing tag 1007 (03EF) [00:27:35]Load OK [00:27:35]SetTLVBufToDocument [00:27:35]Processing tag 1014 (03F6) [00:27:35]Malloc new data [00:27:35]Processing tag 1015 (03F7) [00:27:35]Malloc new data [00:27:35]SetTLVBufToDocument err=0 [00:27:35]Processing tag 1007 (03EF) [00:27:35]Load OK [00:27:35]SetTLVBufToDocument [00:27:35]Processing tag 1014 (03F6) [00:27:35]Malloc new data [00:27:35]Processing tag 1015 (03F7) [00:27:35]Malloc new data [00:27:35]SetTLVBufToDocument err=0 [00:27:35]Processing tag 1007 (03EF) [00:27:35]Load OK [00:27:35]SetTLVBufToDocument [00:27:35]Processing tag 1014 (03F6) [00:27:35]Malloc new data [00:27:35]Processing tag 1015 (03F7) [00:27:35]Malloc new data [00:27:35]SetTLVBufToDocument err=0 [00:27:35]Processing tag 1007 (03EF) [00:27:35]Load OK [00:27:35]SetTLVBufToDocument [00:27:35]Processing tag 1014 (03F6) [00:27:35]Malloc new data [00:27:35]Processing tag 1015 (03F7) [00:27:35]Malloc new data [00:27:35]SetTLVBufToDocument err=0 [00:27:35]Processing tag 1007 (03EF) [00:27:35]Load OK [00:27:35]SetTLVBufToDocument [00:27:35]Processing tag 1014 (03F6) [00:27:35]Malloc new data [00:27:35]Processing tag 1015 (03F7) [00:27:35]Malloc new data [00:27:35]SetTLVBufToDocument err=0 [00:27:35]Processing tag 1007 (03EF) [00:27:35]Load OK [00:27:35]SetTLVBufToDocument [00:27:35]Processing tag 1014 (03F6) [00:27:35]Malloc new data [00:27:35]Processing tag 1015 (03F7) [00:27:35]Malloc new data [00:27:35]SetTLVBufToDocument err=0 [00:27:35]Processing tag 1007 (03EF) [00:27:35]Load OK [00:27:35]SetTLVBufToDocument [00:27:35]Processing tag 1014 (03F6) [00:27:35]Malloc new data [00:27:35]Processing tag 1015 (03F7) [00:27:35]Malloc new data [00:27:35]SetTLVBufToDocument err=0 [00:27:35]SetTLVBufToDocument err=0 [00:27:35]SetTLVBufToDocument err=0 [00:27:35]Processing tag 1131 (046B) [00:27:35]Load OK [00:27:35]SetTLVBufToDocument [00:27:35]Processing tag 1135 (046F) [00:27:35]Malloc new data [00:27:35]Processing tag 1201 (04B1) [00:27:35]Malloc new data [00:27:35]Processing tag 1136 (0470) [00:27:35]Malloc new data [00:27:35]Processing tag 1138 (0472) [00:27:35]Malloc new data [00:27:35]Processing tag 1024 (0400) [00:27:35]Load OK [00:27:35]SetTLVBufToDocument [00:27:35]Processing tag 1006 (03EE) [00:27:35]Load OK [00:27:35]SetTLVBufToDocument [00:27:35]Processing tag 1010 (03F2) [00:27:35]Malloc new data [00:27:35]Processing tag 1011 (03F3) [00:27:35]Malloc new data [00:27:35]SetTLVBufToDocument err=0 [00:27:35]Processing tag 1006 (03EE) [00:27:35]Load OK [00:27:35]SetTLVBufToDocument [00:27:35]Processing tag 1010 (03F2) [00:27:35]Malloc new data [00:27:35]Processing tag 1011 (03F3) [00:27:35]Malloc new data [00:27:35]SetTLVBufToDocument err=0 [00:27:35]Processing tag 1007 (03EF) [00:27:35]Load OK [00:27:35]SetTLVBufToDocument [00:27:35]Processing tag 1014 (03F6) [00:27:35]Malloc new data [00:27:35]Processing tag 1015 (03F7) [00:27:35]Malloc new data [00:27:35]SetTLVBufToDocument err=0 [00:27:35]Processing tag 1007 (03EF) [00:27:35]Load OK [00:27:35]SetTLVBufToDocument [00:27:35]Processing tag 1014 (03F6) [00:27:35]Malloc new data [00:27:35]Processing tag 1015 (03F7) [00:27:35]Malloc new data [00:27:35]SetTLVBufToDocument err=0 [00:27:35]Processing tag 1007 (03EF) [00:27:35]Load OK [00:27:35]SetTLVBufToDocument [00:27:35]Processing tag 1014 (03F6) [00:27:35]Malloc new data [00:27:35]Processing tag 1015 (03F7) [00:27:35]Malloc new data [00:27:35]SetTLVBufToDocument err=0 [00:27:35]Processing tag 1007 (03EF) [00:27:35]Load OK [00:27:35]SetTLVBufToDocument [00:27:35]Processing tag 1014 (03F6) [00:27:35]Malloc new data [00:27:35]Processing tag 1015 (03F7) [00:27:35]Malloc new data [00:27:35]SetTLVBufToDocument err=0 [00:27:35]Processing tag 1007 (03EF) [00:27:35]Load OK [00:27:35]SetTLVBufToDocument [00:27:35]Processing tag 1014 (03F6) [00:27:35]Malloc new data [00:27:35]Processing tag 1015 (03F7) [00:27:35]Malloc new data [00:27:35]SetTLVBufToDocument err=0 [00:27:35]Processing tag 1007 (03EF) [00:27:35]Load OK [00:27:35]SetTLVBufToDocument [00:27:35]Processing tag 1014 (03F6) [00:27:35]Malloc new data [00:27:35]Processing tag 1015 (03F7) [00:27:35]Malloc new data [00:27:35]SetTLVBufToDocument err=0 [00:27:35]Processing tag 1007 (03EF) [00:27:35]Load OK [00:27:35]SetTLVBufToDocument [00:27:35]Processing tag 1014 (03F6) [00:27:35]Malloc new data [00:27:35]Processing tag 1015 (03F7) [00:27:35]Malloc new data [00:27:35]SetTLVBufToDocument err=0 [00:27:35]SetTLVBufToDocument err=0 [00:27:35]SetTLVBufToDocument err=0 [00:27:35]Processing tag 1132 (046C) [00:27:35]Load OK [00:27:35]SetTLVBufToDocument [00:27:35]Processing tag 1135 (046F) [00:27:35]Malloc new data [00:27:35]Processing tag 1201 (04B1) [00:27:35]Malloc new data [00:27:35]Processing tag 1136 (0470) [00:27:35]Malloc new data [00:27:35]Processing tag 1138 (0472) [00:27:35]Malloc new data [00:27:35]Processing tag 1024 (0400) [00:27:35]Load OK [00:27:35]SetTLVBufToDocument [00:27:35]Processing tag 1006 (03EE) [00:27:35]Load OK [00:27:35]SetTLVBufToDocument [00:27:35]Processing tag 1010 (03F2) [00:27:35]Malloc new data [00:27:35]Processing tag 1011 (03F3) [00:27:35]Malloc new data [00:27:35]SetTLVBufToDocument err=0 [00:27:35]Processing tag 1006 (03EE) [00:27:35]Load OK [00:27:35]SetTLVBufToDocument [00:27:35]Processing tag 1010 (03F2) [00:27:35]Malloc new data [00:27:35]Processing tag 1011 (03F3) [00:27:35]Malloc new data [00:27:35]SetTLVBufToDocument err=0 [00:27:35]Processing tag 1007 (03EF) [00:27:35]Load OK [00:27:35]SetTLVBufToDocument [00:27:35]Processing tag 1014 (03F6) [00:27:35]Malloc new data [00:27:35]Processing tag 1015 (03F7) [00:27:35]Malloc new data [00:27:35]SetTLVBufToDocument err=0 [00:27:35]Processing tag 1007 (03EF) [00:27:35]Load OK [00:27:35]SetTLVBufToDocument [00:27:35]Processing tag 1014 (03F6) [00:27:35]Malloc new data [00:27:35]Processing tag 1015 (03F7) [00:27:35]Malloc new data [00:27:35]SetTLVBufToDocument err=0 [00:27:35]Processing tag 1007 (03EF) [00:27:35]Load OK [00:27:35]SetTLVBufToDocument [00:27:35]Processing tag 1014 (03F6) [00:27:35]Malloc new data [00:27:35]Processing tag 1015 (03F7) [00:27:35]Malloc new data [00:27:35]SetTLVBufToDocument err=0 [00:27:35]Processing tag 1007 (03EF) [00:27:35]Load OK [00:27:35]SetTLVBufToDocument [00:27:35]Processing tag 1014 (03F6) [00:27:35]Malloc new data [00:27:35]Processing tag 1015 (03F7) [00:27:35]Malloc new data [00:27:35]SetTLVBufToDocument err=0 [00:27:35]Processing tag 1007 (03EF) [00:27:35]Load OK [00:27:35]SetTLVBufToDocument [00:27:35]Processing tag 1014 (03F6) [00:27:35]Malloc new data [00:27:35]Processing tag 1015 (03F7) [00:27:35]Malloc new data [00:27:35]SetTLVBufToDocument err=0 [00:27:35]Processing tag 1007 (03EF) [00:27:35]Load OK [00:27:35]SetTLVBufToDocument [00:27:35]Processing tag 1014 (03F6) [00:27:35]Malloc new data [00:27:35]Processing tag 1015 (03F7) [00:27:35]Malloc new data [00:27:35]SetTLVBufToDocument err=0 [00:27:35]Processing tag 1007 (03EF) [00:27:35]Load OK [00:27:35]SetTLVBufToDocument [00:27:35]Processing tag 1014 (03F6) [00:27:35]Malloc new data [00:27:35]Processing tag 1015 (03F7) [00:27:35]Malloc new data [00:27:35]SetTLVBufToDocument err=0 [00:27:35]SetTLVBufToDocument err=0 [00:27:35]SetTLVBufToDocument err=0 [00:27:35]Processing tag 1133 (046D) [00:27:35]Malloc new data [00:27:35]SetTLVBufToDocument err=0 [00:27:35]Processing tag 1077 (0435) [00:27:35]Malloc new data [00:27:35]SetTLVBufToDocument err=0 [00:27:35]Malloc new data [00:27:35]SAM_PROTO_GetFMData [00:27:35]wFMCommunicate request_size=4 [00:27:35]MH_SAM_APDU [00:27:35]CAPDU: 80 13 03 00 [00:27:35]Write to MH i2c: E2 08 00 E9 1D 80 13 03 00 00 00 00 00 85 [00:27:35]Write i2c OK [00:27:35]MH_I2C_Read... [00:27:36]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:27:36]Read from MH i2c: E2 [00:27:36]MH_I2C_Read... [00:27:36]Read from MH i2c: E2 FD 00 [00:27:36]MH_I2C_Read... [00:27:36]Read from MH i2c: E2 FD 00 E9 1D 00 BF 04 85 04 BB 04 6E 04 04 00 41 76 00 00 69 04 A1 00 6F 04 04 00 32 76 00 00 B1 04 04 00 D1 CD D2 A3 70 04 04 00 14 B7 4C 83 72 04 04 00 BD 16 86 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 B5 ED 66 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 7C 3C 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 DC [00:27:36]RAPDU: BF 04 85 04 BB 04 6E 04 04 00 41 76 00 00 69 04 A1 00 6F 04 04 00 32 76 00 00 B1 04 04 00 D1 CD D2 A3 70 04 04 00 14 B7 4C 83 72 04 04 00 BD 16 86 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 B5 ED 66 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 7C 3C 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 [00:27:36]wFMCommunicate OK [00:27:36]wFMCommunicate request_size=4 [00:27:36]MH_SAM_APDU [00:27:36]CAPDU: 80 17 00 00 [00:27:36]Write to MH i2c: E2 08 00 EA 1D 80 17 00 00 00 00 00 00 87 [00:27:36]Write i2c OK [00:27:36]MH_I2C_Read... [00:27:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:27:36]Read from MH i2c: E2 [00:27:36]MH_I2C_Read... [00:27:36]Read from MH i2c: E2 FD 00 [00:27:36]MH_I2C_Read... [00:27:36]Read from MH i2c: E2 FD 00 EA 1D 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 58 [00:27:36]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:27:37]wFMCommunicate OK [00:27:37]wFMCommunicate request_size=4 [00:27:37]MH_SAM_APDU [00:27:37]CAPDU: 80 17 00 00 [00:27:37]Write to MH i2c: E2 08 00 EB 1D 80 17 00 00 00 00 00 00 88 [00:27:37]Write i2c OK [00:27:37]MH_I2C_Read... [00:27:37]OFD Sender: No OFD packet to send [00:27:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:27:37]Read from MH i2c: E2 [00:27:37]MH_I2C_Read... [00:27:37]Read from MH i2c: E2 FD 00 [00:27:37]MH_I2C_Read... [00:27:37]Read from MH i2c: E2 FD 00 EB 1D 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 2C [00:27:37]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:27:37]wFMCommunicate OK [00:27:37]wFMCommunicate request_size=4 [00:27:37]MH_SAM_APDU [00:27:37]CAPDU: 80 17 00 00 [00:27:37]Write to MH i2c: E2 08 00 EC 1D 80 17 00 00 00 00 00 00 89 [00:27:37]Write i2c OK [00:27:37]MH_I2C_Read... [00:27:37]Read from MH i2c: E2 [00:27:37]MH_I2C_Read... [00:27:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:27:37]Read from MH i2c: E2 FD 00 [00:27:37]MH_I2C_Read... [00:27:37]Read from MH i2c: E2 FD 00 EC 1D 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 03 [00:27:38]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:27:38]wFMCommunicate OK [00:27:38]wFMCommunicate request_size=4 [00:27:38]MH_SAM_APDU [00:27:38]CAPDU: 80 17 00 00 [00:27:38]Write to MH i2c: E2 08 00 ED 1D 80 17 00 00 00 00 00 00 8A [00:27:38]Write i2c OK [00:27:38]MH_I2C_Read... [00:27:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 217! [00:27:38]Read from MH i2c: E2 [00:27:38]MH_I2C_Read... [00:27:38]Read from MH i2c: E2 DC 00 [00:27:38]MH_I2C_Read... [00:27:38]Read from MH i2c: E2 DC 00 ED 1D 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 6E [00:27:38]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:27:38]wFMCommunicate OK [00:27:38]SAM_PROTO_GetFMData done [00:27:38]Malloc new data [00:27:38]Malloc new data [00:27:38]Malloc new data [00:27:38]Malloc new data [00:27:38]KKMLoadAndSignCloseShiftData err=0 [00:27:38]Отчет о закрытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Таирбекова Г. 21.10.2024 00:27 Смена: 114 РНМ: 0000000000186857 ЗНМ: 0300000137 СНО: Общий режим Чеков за смену: 283 ФД за смену: 285 Всего чеков: 283 ИТОГИ ПРИХОД Чеков: 283 Общий итог: 245361.55 Итого наличными: 220596.00 Итого безнал.: 24765.55 НДС 0% : 0.00 НДС 12% : 26063.77 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 2171.90 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 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 Нал. в кассе: 220596.00 НС Приход: 27485014.57 НС Возвр.Прихода: 54066.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФД: 30502 ФМ: 0000000002094219 ФПД: 231270190671559 [00:27:38]StoreToDocumentArchive [00:27:38]shift 114 fd 30502 [00:27:38]save to /storage/0114/doc_00030502 [00:27:38]save last doc name /storage/0114/doc_00030502 to /storage/kkm_last_doc_name [00:27:38]save OK [00:27:38]Clear old archive folders... [00:27:38]Remove dir /storage/0010 [00:27:38]opendir ok [00:27:38]file . [00:27:38]file .. [00:27:38]file doc_1729470412 [00:27:38]remove file /storage/0010/doc_1729470412 [00:27:38]remove dir /storage/0010 [00:27:38]NVStorageSaveData kkm_registers [00:27:38]File name is /storage/kkm_registers [00:27:38]Write 24 bytes [00:27:38]NVStorageSaveData done [00:27:38]NVStorageSaveData kkm_registers [00:27:38]File name is /storage/kkm_registers [00:27:38]Write 24 bytes [00:27:38]NVStorageSaveData done [00:27:38]ProcessDocumentItem done err = 0, tmpTLVsize=1386 [00:27:38]tlvbuf is 01EBBF80 [00:27:38]SAM_PROTO_ClearQueue [00:27:38]wFMCommunicate request_size=4 [00:27:38]MH_SAM_APDU [00:27:38]CAPDU: 80 09 00 00 [00:27:38]Write to MH i2c: E2 08 00 EE 1D 80 09 00 00 00 00 00 00 7D [00:27:38]Write i2c OK [00:27:38]MH_I2C_Read... [00:27:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:27:38]Read from MH i2c: E2 [00:27:38]MH_I2C_Read... [00:27:38]Read from MH i2c: E2 03 00 [00:27:38]MH_I2C_Read... [00:27:38]Read from MH i2c: E2 03 00 EE 1D 00 90 00 7F [00:27:38]RAPDU: 90 00 [00:27:38]wFMCommunicate OK [00:27:38]SAM_PROTO_ClearQueue done [00:27:38]KKMCreateOFDPacket [00:27:38]OFDProtocolAddRootSTLVToBuf [00:27:38]FM_MakeSignedData [00:27:38]FM_MakeSignedData [00:27:38]SAM_PROTO_SignData [00:27:38]wFMCommunicate request_size=4 [00:27:38]MH_SAM_APDU [00:27:38]CAPDU: 80 0D 01 02 [00:27:38]Write to MH i2c: E2 08 00 EF 1D 80 0D 01 02 00 00 00 00 85 [00:27:38]Write i2c OK [00:27:38]MH_I2C_Read... [00:27:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:27:39]Read from MH i2c: E2 [00:27:39]MH_I2C_Read... [00:27:39]Read from MH i2c: E2 03 00 [00:27:39]MH_I2C_Read... [00:27:39]Read from MH i2c: E2 03 00 EF 1D 00 90 00 80 [00:27:39]RAPDU: 90 00 [00:27:39]wFMCommunicate OK [00:27:39]wFMCommunicate request_size=255 [00:27:39]MH_SAM_APDU [00:27:39]CAPDU: 80 0D 02 02 FA 05 00 6A 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 19 00 D0 A2 D0 B0 D0 B8 D1 80 D0 B1 D0 B5 D0 BA D0 BE D0 B2 D0 B0 20 D0 93 2E 20 F4 03 04 00 F4 9F 15 67 0E 04 04 00 72 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 1B 01 00 00 57 04 04 00 1D 01 00 00 AA 04 D8 04 6E 04 04 00 1B 01 00 00 69 04 A5 00 6F 04 04 00 1B 01 00 00 B1 04 04 00 5B 64 76 01 70 04 04 00 50 9A 50 01 72 04 03 00 0B CA 25 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 29 C5 27 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 [00:27:39]Write to MH i2c: E2 02 01 F0 1D 80 0D 02 02 FA 00 05 00 6A 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 19 00 D0 A2 D0 B0 D0 B8 D1 80 D0 B1 D0 B5 D0 BA D0 BE D0 B2 D0 B0 20 D0 93 2E 20 F4 03 04 00 F4 9F 15 67 0E 04 04 00 72 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 1B 01 00 00 57 04 04 00 1D 01 00 00 AA 04 D8 04 6E 04 04 00 1B 01 00 00 69 04 A5 00 6F 04 04 00 1B 01 00 00 B1 04 04 00 5B 64 76 01 70 04 04 00 50 9A 50 01 72 04 03 00 0B CA 25 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 29 C5 27 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 00 00 35 [00:27:39]Write i2c OK [00:27:39]MH_I2C_Read... [00:27:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:27:39]Read from MH i2c: E2 [00:27:39]MH_I2C_Read... [00:27:39]Read from MH i2c: E2 03 00 [00:27:39]MH_I2C_Read... [00:27:39]Read from MH i2c: E2 03 00 F0 1D 00 90 00 81 [00:27:39]RAPDU: 90 00 [00:27:39]wFMCommunicate OK [00:27:39]wFMCommunicate request_size=255 [00:27:39]MH_SAM_APDU [00:27:39]CAPDU: 80 0D 02 02 FA 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 66 50 03 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 [00:27:39]Write to MH i2c: E2 02 01 F1 1D 80 0D 02 02 FA 00 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 66 50 03 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 00 00 BD [00:27:40]Write i2c OK [00:27:40]MH_I2C_Read... [00:27:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:27:40]Read from MH i2c: E2 [00:27:40]MH_I2C_Read... [00:27:40]Read from MH i2c: E2 03 00 [00:27:40]MH_I2C_Read... [00:27:40]Read from MH i2c: E2 03 00 F1 1D 00 90 00 82 [00:27:40]RAPDU: 90 00 [00:27:40]wFMCommunicate OK [00:27:40]wFMCommunicate request_size=255 [00:27:40]MH_SAM_APDU [00:27:40]CAPDU: 80 0D 02 02 FA F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 [00:27:40]Write to MH i2c: E2 02 01 F2 1D 80 0D 02 02 FA 00 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 00 00 4C [00:27:40]Write i2c OK [00:27:40]MH_I2C_Read... [00:27:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:27:41]Read from MH i2c: E2 [00:27:41]MH_I2C_Read... [00:27:41]Read from MH i2c: E2 03 00 [00:27:41]MH_I2C_Read... [00:27:41]Read from MH i2c: E2 03 00 F2 1D 00 90 00 83 [00:27:41]RAPDU: 90 00 [00:27:41]wFMCommunicate OK [00:27:41]wFMCommunicate request_size=255 [00:27:41]MH_SAM_APDU [00:27:41]CAPDU: 80 0D 02 02 FA 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:27:41]Write to MH i2c: E2 02 01 F3 1D 80 0D 02 02 FA 00 F6 03 01 00 01 F7 03 01 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 00 4F [00:27:41]Write i2c OK [00:27:41]MH_I2C_Read... [00:27:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:27:41]Read from MH i2c: E2 [00:27:41]MH_I2C_Read... [00:27:41]Read from MH i2c: E2 03 00 [00:27:41]MH_I2C_Read... [00:27:41]Read from MH i2c: E2 03 00 F3 1D 00 90 00 84 [00:27:41]RAPDU: 90 00 [00:27:41]wFMCommunicate OK [00:27:41]wFMCommunicate request_size=255 [00:27:41]MH_SAM_APDU [00:27:41]CAPDU: 80 0D 02 02 FA 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [00:27:41]Write to MH i2c: E2 02 01 F4 1D 80 0D 02 02 FA 00 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 00 00 11 [00:27:42]Write i2c OK [00:27:42]MH_I2C_Read... [00:27:42]OFD Sender: No OFD packet to send [00:27:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:27:42]Read from MH i2c: E2 [00:27:42]MH_I2C_Read... [00:27:42]Read from MH i2c: E2 03 00 [00:27:42]MH_I2C_Read... [00:27:42]Read from MH i2c: E2 03 00 F4 1D 00 90 00 85 [00:27:42]RAPDU: 90 00 [00:27:42]wFMCommunicate OK [00:27:42]wFMCommunicate request_size=145 [00:27:42]MH_SAM_APDU [00:27:42]CAPDU: 80 0D 02 02 8C 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 26 77 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 D2 56 C9 8F E6 C7 [00:27:42]Write to MH i2c: E2 94 00 F5 1D 80 0D 02 02 8C 00 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 26 77 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 D2 56 C9 8F E6 C7 00 00 99 [00:27:42]Write i2c OK [00:27:42]MH_I2C_Read... [00:27:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:27:42]Read from MH i2c: E2 [00:27:42]MH_I2C_Read... [00:27:42]Read from MH i2c: E2 03 00 [00:27:42]MH_I2C_Read... [00:27:42]Read from MH i2c: E2 03 00 F5 1D 00 90 00 86 [00:27:42]RAPDU: 90 00 [00:27:42]wFMCommunicate OK [00:27:42]wFMCommunicate request_size=4 [00:27:42]MH_SAM_APDU [00:27:42]CAPDU: 80 0D 03 02 [00:27:42]Write to MH i2c: E2 08 00 F6 1D 80 0D 03 02 00 00 00 00 8E [00:27:42]Write i2c OK [00:27:42]MH_I2C_Read... [00:27:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:27:42]Read from MH i2c: E2 [00:27:42]MH_I2C_Read... [00:27:42]Read from MH i2c: E2 0B 00 [00:27:42]MH_I2C_Read... [00:27:42]Read from MH i2c: E2 0B 00 F6 1D 00 83 20 41 FE 89 B4 9A 4D 90 00 95 [00:27:42]RAPDU: 83 20 41 FE 89 B4 9A 4D 90 00 [00:27:42]wFMCommunicate OK [00:27:42]SAM_PROTO_SignData done [00:27:42]FM_MakeSignedData done [00:27:42]CreateOFDProtocolMessage [00:27:42]wFMCommunicate request_size=4 [00:27:42]MH_SAM_APDU [00:27:42]CAPDU: 80 11 00 00 [00:27:42]Write to MH i2c: E2 08 00 F7 1D 80 11 00 00 00 00 00 00 8E [00:27:42]Write i2c OK [00:27:42]MH_I2C_Read... [00:27:42]Read from MH i2c: E2 [00:27:42]MH_I2C_Read... [00:27:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:27:43]Read from MH i2c: E2 17 00 [00:27:43]MH_I2C_Read... [00:27:43]Read from MH i2c: E2 17 00 F7 1D 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:27:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [00:27:43]wFMCommunicate OK [00:27:43]CreateOFDProtocolMessage done [00:27:43]OFDSenderStorePacket 30502 [00:27:43]StoreOFDPacket docnum=30502 [00:27: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 7E 05 00 00 D3 CC 76 05 E1 65 5A 05 01 00 05 00 6A 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 19 00 D0 A2 D0 B0 D0 B8 D1 80 D0 B1 D0 B5 D0 BA D0 BE D0 B2 D0 B0 20 D0 93 2E 20 F4 03 04 00 F4 9F 15 67 0E 04 04 00 72 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 1B 01 00 00 57 04 04 00 1D 01 00 00 AA 04 D8 04 6E 04 04 00 1B 01 00 00 69 04 A5 00 6F 04 04 00 1B 01 00 00 B1 04 04 00 5B 64 76 01 70 04 04 00 50 9A 50 01 72 04 03 00 0B CA 25 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 29 C5 27 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 66 50 03 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 26 77 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 D2 56 C9 8F E6 C7 83 20 41 FE 89 B4 9A 4D [00:27:43]CheckFolder [00:27:43]dirname=/storage/ofd_packets [00:27:43]CheckFolder done [00:27:43]ProducePacketName [00:27:43]name=ofd_packets/00030502 [00:27:43]NVStorageSaveData ofd_packets/00030502 [00:27:43]File name is /storage/ofd_packets/00030502 [00:27:43]Write 1436 bytes [00:27:43]NVStorageSaveData done [00:27:43]OFDSenderStorePacket done [00:27:43]KKMCreateOFDPacket done [00:27:43]NVStorageSaveData kkm_last_timestamp [00:27:43]File name is /storage/kkm_last_timestamp [00:27:43]Write 4 bytes [00:27:43]NVStorageSaveData done [00:27:43]ExternCall_PrintAddStr [00:27:43]wPrintStart [00:27:43]Write to MH i2c: 01 00 00 F8 1D 15 [00:27:43]Write i2c OK [00:27:43]MH_I2C_Read... [00:27:43]Read from MH i2c: 01 [00:27:43]MH_I2C_Read... [00:27:43]Read from MH i2c: 01 07 00 [00:27:43]MH_I2C_Read... [00:27:43]OFD Sender: Processing packet 30502 [packets to send 10, broken 9] [00:27:43]ProducePacketName [00:27:43]name=ofd_packets/00030502 [00:27:43]OFD Sender: To server: pG, [00:27:43]CommunicateWithHost lk.salyk.kg:30040 [00:27:43]ConnectInit lk.salyk.kg [00:27:43]Read from MH i2c: 01 07 00 F8 1D 00 00 00 00 00 FF 0F 2A [00:27:43]RasterBufferAndPrint [00:27:43]line Отчет о закрытии смены [00:27:43]line ФФД: 1.0 [00:27:43]line ИНН: 02508201610067 [00:27:43]line Кассир: Таирбекова Г. [00:27:43]line 21.10.2024 00:27 [00:27:43]line Смена: 114 [00:27:43]line РНМ: 0000000000186857 [00:27:43]line ЗНМ: 0300000137 [00:27:43]line СНО: Общий режим [00:27:43]line Чеков за смену: 283 [00:27:43]line ФД за смену: 285 [00:27:43]line Всего чеков: 283 [00:27:43]line ИТОГИ ПРИХОД [00:27:43]line Чеков: 283 [00:27:43]line Общий итог: 245361.55 [00:27:43]line Итого наличными: 220596.00 [00:27:43]line Итого безнал.: 24765.55 [00:27:43]line НДС 0% : 0.00 [00:27:43]line НДС 12% : 26063.77 [00:27:43]line НСП 0% : 0.00 [00:27:43]line НСП 1,50% : 0.00 [00:27:43]line НСП 0,50% : 0.00 [00:27:43]line НСП 5% : 0.00 [00:27:43]line НСП 3% : 0.00 [00:27:43]line НСП 2% : 0.00 [00:27:43]line НСП 1% : 2171.90 [00:27:43]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:27:43]line Чеков: 0 [00:27:43]line Общий итог: 0.00 [00:27:43]line Итого наличными: 0.00 [00:27:43]line Итого безнал.: 0.00 [00:27:43]line НДС 0% : 0.00 [00:27:43]line НДС 12% : 0.00 [00:27:43]line НСП 0% : 0.00 [00:27:43]line НСП 1,50% : 0.00 [00:27:43]line НСП 0,50% : 0.00 [00:27:43]line НСП 5% : 0.00 [00:27:43]line НСП 3% : 0.00 [00:27:43]line НСП 2% : 0.00 [00:27:43]line НСП 1% : 0.00 [00:27:43]line ИТОГИ РАСХОД [00:27:43]line Чеков: 0 [00:27:43]line Общий итог: 0.00 [00:27:43]line Итого наличными: 0.00 [00:27:43]line Итого безнал.: 0.00 [00:27:43]line НДС 0% : 0.00 [00:27:43]line НДС 12% : 0.00 [00:27:43]line НСП 0% : 0.00 [00:27:43]line НСП 1,50% : 0.00 [00:27:43]line НСП 0,50% : 0.00 [00:27:43]line НСП 5% : 0.00 [00:27:43]line НСП 3% : 0.00 [00:27:43]line НСП 2% : 0.00 [00:27:43]line НСП 1% : 0.00 [00:27:43]line ИТОГИ ВОЗВРАТ РАСХОДА [00:27:43]line Чеков: 0 [00:27:43]line Общий итог: 0.00 [00:27:43]line Итого наличными: 0.00 [00:27:43]line Итого безнал.: 0.00 [00:27:43]line НДС 0% : 0.00 [00:27:43]line НДС 12% : 0.00 [00:27:43]line НСП 0% : 0.00 [00:27:43]line НСП 1,50% : 0.00 [00:27:43]line НСП 0,50% : 0.00 [00:27:43]line НСП 5% : 0.00 [00:27:43]line НСП 3% : 0.00 [00:27:43]line НСП 2% : 0.00 [00:27:43]line НСП 1% : 0.00 [00:27:43]line Сумма внесений: 0.00 [00:27:43]line Сумма выплат: 0.00 [00:27:43]line Нал. в кассе: 220596.00 [00:27:43]line НС Приход: 27485014.57 [00:27:43]line НС Возвр.Прихода: 54066.00 [00:27:43]line НС Расход: 0.00 [00:27:43]line НС Возвр.Расхода: 0.00 [00:27:43]line ФД: 30502 [00:27:43]line ФМ: 0000000002094219 [00:27:43]line ФПД: 231270190671559 [00:27:43]Connected sock=10 [00:27: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 7E 05 00 00 D3 CC 76 written 0, free lines is 4095 [00:27:43]05 E1 65 5A 05 01 00 05 00 6A 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 19 00 D0 A2 D0 B0 D0 B8 D1 80 D0 B1 D0 B5 D0 BA D0 BE D0 B2 D0 B0 20 D0 93 2E 20 F4 03 04 00 F4 9F 15 67 0E 04 04 00 72 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 1B 01 00 00 57 04 04 00 1D 01 00 00 AA 04 D8 04 6E 04 04 00 1B 01 00 00 69 04 A5 00 6F 04 04 00 1B 01 00 00 B1 04 04 00 5B 64 76 01 70 04 04 00 50 9A 50 01 72 04 03 00 0B CA 25 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 29 C5 27 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 66 50 03 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 Write to MH i2c: 03 01 01 00 00 00 01 48 F3 1E 03 66 00 [00:27:44]00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 Write i2c OK [00:27:44]09 MH_I2C_Read... [00:27:44]00 Read from MH i2c: F6 01 03 [00:27:44]01 MH_I2C_Read... [00:27:44]00 Read from MH i2c: 01 01 F7 07 03 00 00 [00:27:44]00 MH_I2C_Read... [00:27:44]EF Read from MH i2c: 03 01 09 07 00 00 F6 48 03 1E 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 00 01 00 00 00 03 00 F7 00 03 00 00 0B 00 78 EF [00:27:44]03 RasterBufferAndPrint [00:27:44]09 line [00:27:44]00 line [00:27:44]F6 line [00:27:44]03 line [00:27:44]01 line [00:27:44]00 04 F7 written 0, free lines is 3008 [00:27:44]03 00 00 EF 03 09 00 F6 03 01 00 05 MH_Cut [00:27:44]F7 Write to MH i2c: 03 D1 00 01 00 00 EF 4F 03 1E 09 01 00 3F F6 [00:27:44]03 01 00 06 F7 Write i2c OK [00:27:44]03 MH_I2C_Read... [00:27:44]00 00 D0 04 8D 00 6F 04 Read from MH i2c: 04 D1 00 [00:27:44]00 MH_I2C_Read... [00:27:44]00 00 00 B1 04 Read from MH i2c: 00 D1 00 01 70 00 04 [00:27:44]00 MH_I2C_Read... [00:27:44]00 72 04 00 00 00 04 75 00 EE 03 09 00 Read from MH i2c: F2 D1 03 01 01 00 00 4F 00 1E F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 00 3E 70 [00:27:44]04 Write to MH i2c: 00 01 00 00 72 00 04 50 00 1E 00 6E 00 [00:27:44]04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 Write i2c OK [00:27:44]EE MH_I2C_Read... [00:27:44]03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 26 77 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 D2 56 C9 8F E6 C7 83 20 41 FE 89 B4 9A 4D [00:27: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 8D 39 47 00 67 7B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 26 77 00 00 F4 03 04 00 83 4A 15 67 B6 04 01 00 00 CD 68 3B C4 83 C7 73 *** Cut start [00:27:45]E3 [00:27:45]CommunicateWithHost err = 0 [00:27:45]CheckOFDResponse [00:27:45]1017 (14) - 77093643461234 [00:27:45]1041 (16) - 0000000002094219 [00:27:45]1040 (4) - 30502 [00:27:45]*** Partial cut [00:27:45]1012 (4) - 20.10.2024 18:22 [00:27:45]1206 (1) - 0 [00:27:45]OFD Sender: Remove packet 30502 [00:27:45]ProducePacketName [00:27:45]name=ofd_packets/00030502 [00:27:45]NVStorageDeleteData [00:27:45]*** CUTSNS_PIN = 1 [00:27:45]*** CUTSNS_PIN = 0 [00:27:45]*** Brake cut motor [00:27:45]Read from MH i2c: 01 [00:27:45]MH_I2C_Read... [00:27:45]*** Stop cut motor [00:27:45]*** Cut end [00:27:45]Read from MH i2c: 01 07 00 [00:27:45]MH_I2C_Read... [00:27:45]Read from MH i2c: 01 07 00 50 1E 00 00 00 00 00 FF 0F 83 [00:27:46]process_action close_shift done [00:27:46]requested_data is exist [00:27:46]produce_requested_data [00:27:46]requested_item fd.num is exist - process it [00:27:46]SAM_PROTO_GetFieldsCounters [00:27:46]wFMCommunicate request_size=4 [00:27:46]MH_SAM_APDU [00:27:46]CAPDU: 80 13 00 00 [00:27:46]Write to MH i2c: E2 08 00 51 1E 80 13 00 00 00 00 00 00 EB [00:27:46]Write i2c OK [00:27:46]MH_I2C_Read... [00:27:46]OFD Sender: No OFD packet to send [00:27:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:27:46]Read from MH i2c: E2 [00:27:46]MH_I2C_Read... [00:27:46]Read from MH i2c: E2 62 00 [00:27:46]MH_I2C_Read... [00:27:46]Read from MH i2c: E2 62 00 51 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 77 00 00 0E 04 04 00 72 00 00 00 12 04 04 00 1B 01 00 00 5E 04 04 00 1B 01 00 00 57 04 04 00 1D 01 00 00 19 04 04 00 00 00 00 00 90 00 75 [00:27: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 26 77 00 00 0E 04 04 00 72 00 00 00 12 04 04 00 1B 01 00 00 5E 04 04 00 1B 01 00 00 57 04 04 00 1D 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:27:46]wFMCommunicate OK [00:27:46]SAM_PROTO_GetFieldsCounters done [00:27:46]requested_item shift.num is exist - process it [00:27:46]requested_item shift.opened is exist - process it [00:27:46]req_shift_opened [00:27:46]FM_GetShiftState [00:27:46]SAM_PROTO_GetShiftState [00:27:46]wFMCommunicate request_size=4 [00:27:46]MH_SAM_APDU [00:27:46]CAPDU: 80 13 01 00 [00:27:46]Write to MH i2c: E2 08 00 52 1E 80 13 01 00 00 00 00 00 ED [00:27:46]Write i2c OK [00:27:46]MH_I2C_Read... [00:27:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:27:46]Read from MH i2c: E2 [00:27:46]MH_I2C_Read... [00:27:46]Read from MH i2c: E2 0E 00 [00:27:46]MH_I2C_Read... [00:27:46]Read from MH i2c: E2 0E 00 52 1E 00 09 00 00 00 00 00 00 00 00 00 00 90 00 F8 [00:27:46]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:27:46]wFMCommunicate OK [00:27:46]SAM_PROTO_GetShiftState done [00:27:46]FM_GetShiftState done [00:27:46]req_shift_opened done [00:27:46]requested_item shift.open_date is exist - process it [00:27:46]req_shift_open_date [00:27:46]FM_GetShiftState [00:27:46]SAM_PROTO_GetShiftState [00:27:46]wFMCommunicate request_size=4 [00:27:46]MH_SAM_APDU [00:27:46]CAPDU: 80 13 01 00 [00:27:46]Write to MH i2c: E2 08 00 53 1E 80 13 01 00 00 00 00 00 EE [00:27:46]Write i2c OK [00:27:46]MH_I2C_Read... [00:27:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:27:46]Read from MH i2c: E2 [00:27:46]MH_I2C_Read... [00:27:46]Read from MH i2c: E2 0E 00 [00:27:46]MH_I2C_Read... [00:27:46]Read from MH i2c: E2 0E 00 53 1E 00 09 00 00 00 00 00 00 00 00 00 00 90 00 F9 [00:27:46]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:27:46]wFMCommunicate OK [00:27:46]SAM_PROTO_GetShiftState done [00:27:46]FM_GetShiftState done [00:27:46]req_shift_open_date done [00:27:46]produce_requested_data done [00:27:46]produce_requested_data return {"fd.num":30502,"shift.num":114,"shift.opened":0,"shift.open_date":0} [00:27:46]process_action_free close_shift [00:27:46]json_value_free [00:27:46]json_value_free done [00:27:46]process_json_proto returns [00:27:46]Send response to host [00:27:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":30502,"shift.num":114,"shift.opened":0,"shift.open_date":0}}} [00:27:46]free response buf [00:27:46]execute_script done [00:27:46]execute_script returns [00:27:46]free content buf [00:27:46]Sock 9.Close socket [00:27:46]Sock 9.Thread stoped [00:27:51]OFD Sender: No OFD packet to send [00:27:56]OFD Sender: No OFD packet to send [00:28:01]OFD Sender: No OFD packet to send [00:28:06]OFD Sender: No OFD packet to send [00:28:11]OFD Sender: No OFD packet to send [00:28:16]OFD Sender: No OFD packet to send [00:28:21]OFD Sender: No OFD packet to send [00:28:26]OFD Sender: No OFD packet to send [00:28:31]OFD Sender: No OFD packet to send [00:28:36]OFD Sender: No OFD packet to send [00:28:41]OFD Sender: No OFD packet to send [00:28:46]OFD Sender: No OFD packet to send [00:28:51]OFD Sender: No OFD packet to send [00:28:56]OFD Sender: No OFD packet to send [00:29:01]OFD Sender: No OFD packet to send [00:29:06]OFD Sender: No OFD packet to send [00:29:11]OFD Sender: No OFD packet to send [00:29:16]OFD Sender: No OFD packet to send [00:29:21]OFD Sender: No OFD packet to send [00:29:26]OFD Sender: No OFD packet to send [00:29:31]OFD Sender: No OFD packet to send [00:29:36]OFD Sender: No OFD packet to send [00:29:41]OFD Sender: No OFD packet to send [00:29:46]OFD Sender: No OFD packet to send [00:29:51]OFD Sender: No OFD packet to send [00:29:56]OFD Sender: No OFD packet to send [00:30:01]OFD Sender: No OFD packet to send [00:30:06]OFD Sender: No OFD packet to send [00:30:11]OFD Sender: No OFD packet to send [00:30:16]OFD Sender: No OFD packet to send [00:30:21]OFD Sender: No OFD packet to send [00:30:26]OFD Sender: No OFD packet to send [00:30:31]OFD Sender: No OFD packet to send [00:30:36]OFD Sender: No OFD packet to send [00:30:41]OFD Sender: No OFD packet to send [00:30:46]OFD Sender: No OFD packet to send [00:30:51]OFD Sender: No OFD packet to send [00:30:56]OFD Sender: No OFD packet to send [00:31:01]OFD Sender: No OFD packet to send [00:31:06]OFD Sender: No OFD packet to send [00:31:11]OFD Sender: No OFD packet to send [00:31:16]OFD Sender: No OFD packet to send [00:31:21]OFD Sender: No OFD packet to send [00:31:26]OFD Sender: No OFD packet to send [00:31:31]OFD Sender: No OFD packet to send [00:31:36]OFD Sender: No OFD packet to send [00:31:41]OFD Sender: No OFD packet to send [00:31:46]OFD Sender: No OFD packet to send [00:31:51]OFD Sender: No OFD packet to send [00:31:56]OFD Sender: No OFD packet to send [00:32:01]OFD Sender: No OFD packet to send [00:32:06]OFD Sender: No OFD packet to send [00:32:11]OFD Sender: No OFD packet to send [00:32:16]OFD Sender: No OFD packet to send [00:32:21]OFD Sender: No OFD packet to send [00:32:26]OFD Sender: No OFD packet to send [00:32:31]OFD Sender: No OFD packet to send [00:32:36]OFD Sender: No OFD packet to send [00:32:41]OFD Sender: No OFD packet to send [00:32:46]OFD Sender: No OFD packet to send [00:32:51]OFD Sender: No OFD packet to send [00:32:56]OFD Sender: No OFD packet to send [00:33:01]OFD Sender: No OFD packet to send [00:33:06]OFD Sender: No OFD packet to send [00:33:11]OFD Sender: No OFD packet to send [00:33:16]OFD Sender: No OFD packet to send [00:33:21]OFD Sender: No OFD packet to send [00:33:26]OFD Sender: No OFD packet to send [00:33:31]OFD Sender: No OFD packet to send [00:33:36]OFD Sender: No OFD packet to send [00:33:41]OFD Sender: No OFD packet to send [00:33:46]OFD Sender: No OFD packet to send [00:33:51]OFD Sender: No OFD packet to send [00:33:56]OFD Sender: No OFD packet to send [00:34:01]OFD Sender: No OFD packet to send [00:34:06]OFD Sender: No OFD packet to send [00:34:11]OFD Sender: No OFD packet to send [00:34:16]OFD Sender: No OFD packet to send [00:34:21]OFD Sender: No OFD packet to send [00:34:26]OFD Sender: No OFD packet to send [00:34:31]OFD Sender: No OFD packet to send [00:34:36]OFD Sender: No OFD packet to send [00:34:41]OFD Sender: No OFD packet to send [00:34:46]OFD Sender: No OFD packet to send [00:34:51]OFD Sender: No OFD packet to send [00:34:56]OFD Sender: No OFD packet to send [00:35:01]OFD Sender: No OFD packet to send [00:35:06]OFD Sender: No OFD packet to send [00:35:11]OFD Sender: No OFD packet to send [00:35:16]OFD Sender: No OFD packet to send [00:35:21]OFD Sender: No OFD packet to send [00:35:26]OFD Sender: No OFD packet to send [00:35:31]OFD Sender: No OFD packet to send [00:35:36]OFD Sender: No OFD packet to send [00:35:41]OFD Sender: No OFD packet to send [00:35:46]OFD Sender: No OFD packet to send [00:35:51]OFD Sender: No OFD packet to send [00:35:56]OFD Sender: No OFD packet to send [00:36:01]OFD Sender: No OFD packet to send [00:36:06]OFD Sender: No OFD packet to send [00:36:11]OFD Sender: No OFD packet to send [00:36:16]OFD Sender: No OFD packet to send [00:36:21]OFD Sender: No OFD packet to send [00:36:26]OFD Sender: No OFD packet to send [00:36:31]OFD Sender: No OFD packet to send [00:36:36]OFD Sender: No OFD packet to send [00:36:41]OFD Sender: No OFD packet to send [00:36:46]OFD Sender: No OFD packet to send [00:36:51]OFD Sender: No OFD packet to send [00:36:56]OFD Sender: No OFD packet to send [00:37:01]OFD Sender: No OFD packet to send [00:37:06]OFD Sender: No OFD packet to send [00:37:11]OFD Sender: No OFD packet to send [00:37:16]OFD Sender: No OFD packet to send [00:37:21]OFD Sender: No OFD packet to send [00:37:26]OFD Sender: No OFD packet to send [00:37:31]OFD Sender: No OFD packet to send [00:37:32]accept exits with 7 [00:37:32]New connection [00:37:32]New thread 3067489636 created [00:37:32]Thread 3067346276 joined [00:37:32]Waiting for new connection... [00:37:32] Sock 7.Parse request [00:37:32]Sock 7.Check first char [00:37:32]Sock 7.First char is OK [00:37:32]request: POST /json_proto HTTP/1.0 [00:37:32]Method: POST [00:37:32]URL: /json_proto [00:37:32]Method is POST - this is cgi request [00:37:32]url: /json_proto [00:37:32]query_string will be loaded in cgi processing [00:37:32]execute_cgi json_proto POST (null) [00:37:32]execute_cgi path=json_proto method=POST [00:37:32]POST find Content-Length [00:37:32]Host: 172.17.51.3:8080 [00:37:32]Content-Length: 215 [00:37:32]Content-Type: application/json [00:37:32] [00:37:32]POST finish read [00:37:32]Found Content-Length = 215 [00:37:32]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:37:32]execute_script... [00:37:32]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:37:32]POST & json_proto [00:37:32]process_json_proto [00:37:32]json parsed OK: [00:37:32]protocol is kg_v1.0 [00:37:32]action value=get_value [00:37:32]process_action get_value [00:37:32]cmd_get_value [00:37:32]process_action get_value done [00:37:32]requested_data is exist [00:37:32]produce_requested_data [00:37:32]requested_item kkm.sn is exist - process it [00:37:32]requested_item kkm.ver is exist - process it [00:37:32]requested_item fm.sn is exist - process it [00:37:32]wFMCommunicate request_size=4 [00:37:32]MH_SAM_APDU [00:37:32]CAPDU: 80 11 00 00 [00:37:32]Write to MH i2c: E2 08 00 54 1E 80 11 00 00 00 00 00 00 EC [00:37:32]Write i2c OK [00:37:32]MH_I2C_Read... [00:37:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:37:32]Read from MH i2c: E2 [00:37:32]MH_I2C_Read... [00:37:32]Read from MH i2c: E2 17 00 [00:37:32]MH_I2C_Read... [00:37:32]Read from MH i2c: E2 17 00 54 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 3A [00: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 [00:37:32]wFMCommunicate OK [00:37:32]requested_item fd.num is exist - process it [00:37:32]SAM_PROTO_GetFieldsCounters [00:37:32]wFMCommunicate request_size=4 [00:37:32]MH_SAM_APDU [00:37:32]CAPDU: 80 13 00 00 [00:37:32]Write to MH i2c: E2 08 00 55 1E 80 13 00 00 00 00 00 00 EF [00:37:32]Write i2c OK [00:37:32]MH_I2C_Read... [00:37:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:37:32]Read from MH i2c: E2 [00:37:32]MH_I2C_Read... [00:37:32]Read from MH i2c: E2 62 00 [00:37:32]MH_I2C_Read... [00:37:32]Read from MH i2c: E2 62 00 55 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 77 00 00 0E 04 04 00 72 00 00 00 12 04 04 00 1B 01 00 00 5E 04 04 00 1B 01 00 00 57 04 04 00 1D 01 00 00 19 04 04 00 00 00 00 00 90 00 79 [00:37: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 26 77 00 00 0E 04 04 00 72 00 00 00 12 04 04 00 1B 01 00 00 5E 04 04 00 1B 01 00 00 57 04 04 00 1D 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:37:32]wFMCommunicate OK [00:37:32]SAM_PROTO_GetFieldsCounters done [00:37:32]requested_item shift.num is exist - process it [00:37:32]requested_item shift.opened is exist - process it [00:37:32]req_shift_opened [00:37:32]FM_GetShiftState [00:37:32]SAM_PROTO_GetShiftState [00:37:32]wFMCommunicate request_size=4 [00:37:32]MH_SAM_APDU [00:37:32]CAPDU: 80 13 01 00 [00:37:32]Write to MH i2c: E2 08 00 56 1E 80 13 01 00 00 00 00 00 F1 [00:37:32]Write i2c OK [00:37:32]MH_I2C_Read... [00:37:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:37:32]Read from MH i2c: E2 [00:37:32]MH_I2C_Read... [00:37:32]Read from MH i2c: E2 0E 00 [00:37:32]MH_I2C_Read... [00:37:32]Read from MH i2c: E2 0E 00 56 1E 00 09 00 00 00 00 00 00 00 00 00 00 90 00 FC [00:37:32]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:37:32]wFMCommunicate OK [00:37:32]SAM_PROTO_GetShiftState done [00:37:32]FM_GetShiftState done [00:37:32]req_shift_opened done [00:37:32]requested_item shift.open_date is exist - process it [00:37:32]req_shift_open_date [00:37:32]FM_GetShiftState [00:37:32]SAM_PROTO_GetShiftState [00:37:32]wFMCommunicate request_size=4 [00:37:32]MH_SAM_APDU [00:37:32]CAPDU: 80 13 01 00 [00:37:32]Write to MH i2c: E2 08 00 57 1E 80 13 01 00 00 00 00 00 F2 [00:37:32]Write i2c OK [00:37:32]MH_I2C_Read... [00:37:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:37:32]Read from MH i2c: E2 [00:37:32]MH_I2C_Read... [00:37:32]Read from MH i2c: E2 0E 00 [00:37:32]MH_I2C_Read... [00:37:32]Read from MH i2c: E2 0E 00 57 1E 00 09 00 00 00 00 00 00 00 00 00 00 90 00 FD [00:37:32]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:37:32]wFMCommunicate OK [00:37:32]SAM_PROTO_GetShiftState done [00:37:32]FM_GetShiftState done [00:37:32]req_shift_open_date done [00:37:32]produce_requested_data done [00:37:32]produce_requested_data return {"kkm.sn":"0300000137","kkm.ver":"v1.0","fm.sn":"0000000002094219","fd.num":30502,"shift.num":114,"shift.opened":0,"shift.open_date":0} [00:37:32]process_action_free get_value [00:37:32]json_value_free [00:37:32]json_value_free done [00:37:32]process_json_proto returns [00:37:32]Send response to host [00:37:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000137","kkm.ver":"v1.0","fm.sn":"0000000002094219","fd.num":30502,"shift.num":114,"shift.opened":0,"shift.open_date":0}}} [00:37:32]free response buf [00:37:32]execute_script done [00:37:32]execute_script returns [00:37:32]free content buf [00:37:32]Sock 7.Close socket [00:37:32]Sock 7.Thread stoped [00:37:32]accept exits with 9 [00:37:32]New connection [00:37:32]New thread 3067346276 created [00:37:32]Thread 3067489636 joined [00:37:32]Waiting for new connection... [00:37:32] Sock 9.Parse request [00:37:32]Sock 9.Check first char [00:37:32]Sock 9.First char is OK [00:37:32]request: POST /json_proto HTTP/1.0 [00:37:32]Method: POST [00:37:32]URL: /json_proto [00:37:32]Method is POST - this is cgi request [00:37:32]url: /json_proto [00:37:32]query_string will be loaded in cgi processing [00:37:32]execute_cgi json_proto POST (null) [00:37:32]execute_cgi path=json_proto method=POST [00:37:32]POST find Content-Length [00:37:32]Host: 172.17.51.3:8080 [00:37:32]Content-Length: 331 [00:37:32]Content-Type: application/json [00:37:32] [00:37:32]POST finish read [00:37:32]Found Content-Length = 331 [00:37:32]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:37:32]execute_script... [00:37:33]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:37:33]POST & json_proto [00:37:33]process_json_proto [00:37:33]json parsed OK: [00:37:33]protocol is kg_v1.0 [00:37:33]action value=get_value [00:37:33]process_action get_value [00:37:33]cmd_get_value [00:37:33]process_action get_value done [00:37:33]requested_data is exist [00:37:33]produce_requested_data [00:37:33]requested_item fm.sale.total is exist - process it [00:37:33]SAM_PROTO_GetFMData [00:37:33]wFMCommunicate request_size=4 [00:37:33]MH_SAM_APDU [00:37:33]CAPDU: 80 13 03 00 [00:37:33]Write to MH i2c: E2 08 00 58 1E 80 13 03 00 00 00 00 00 F5 [00:37:33]Write i2c OK [00:37:33]MH_I2C_Read... [00:37:33]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:37:33]Read from MH i2c: E2 [00:37:33]MH_I2C_Read... [00:37:33]Read from MH i2c: E2 FD 00 [00:37:33]MH_I2C_Read... [00:37:33]Read from MH i2c: E2 FD 00 58 1E 00 BF 04 85 04 BB 04 6E 04 04 00 41 76 00 00 69 04 A1 00 6F 04 04 00 32 76 00 00 B1 04 04 00 D1 CD D2 A3 70 04 04 00 14 B7 4C 83 72 04 04 00 BD 16 86 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 B5 ED 66 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 7C 3C 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 4C [00:37:33]RAPDU: BF 04 85 04 BB 04 6E 04 04 00 41 76 00 00 69 04 A1 00 6F 04 04 00 32 76 00 00 B1 04 04 00 D1 CD D2 A3 70 04 04 00 14 B7 4C 83 72 04 04 00 BD 16 86 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 B5 ED 66 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 7C 3C 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 [00:37:33]wFMCommunicate OK [00:37:33]wFMCommunicate request_size=4 [00:37:33]MH_SAM_APDU [00:37:33]CAPDU: 80 17 00 00 [00:37:33]Write to MH i2c: E2 08 00 59 1E 80 17 00 00 00 00 00 00 F7 [00:37:33]Write i2c OK [00:37:33]MH_I2C_Read... [00:37:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:37:33]Read from MH i2c: E2 [00:37:33]MH_I2C_Read... [00:37:33]Read from MH i2c: E2 FD 00 [00:37:33]MH_I2C_Read... [00:37:33]Read from MH i2c: E2 FD 00 59 1E 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 C8 [00:37:33]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:37:33]wFMCommunicate OK [00:37:33]wFMCommunicate request_size=4 [00:37:33]MH_SAM_APDU [00:37:33]CAPDU: 80 17 00 00 [00:37:33]Write to MH i2c: E2 08 00 5A 1E 80 17 00 00 00 00 00 00 F8 [00:37:33]Write i2c OK [00:37:33]MH_I2C_Read... [00:37:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:37:34]Read from MH i2c: E2 [00:37:34]MH_I2C_Read... [00:37:34]Read from MH i2c: E2 FD 00 [00:37:34]MH_I2C_Read... [00:37:34]Read from MH i2c: E2 FD 00 5A 1E 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9C [00:37:34]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:37:34]wFMCommunicate OK [00:37:34]wFMCommunicate request_size=4 [00:37:34]MH_SAM_APDU [00:37:34]CAPDU: 80 17 00 00 [00:37:34]Write to MH i2c: E2 08 00 5B 1E 80 17 00 00 00 00 00 00 F9 [00:37:34]Write i2c OK [00:37:34]MH_I2C_Read... [00:37:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:37:34]Read from MH i2c: E2 [00:37:34]MH_I2C_Read... [00:37:34]Read from MH i2c: E2 FD 00 [00:37:34]MH_I2C_Read... [00:37:34]Read from MH i2c: E2 FD 00 5B 1E 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 73 [00:37:34]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:37:34]wFMCommunicate OK [00:37:34]wFMCommunicate request_size=4 [00:37:34]MH_SAM_APDU [00:37:34]CAPDU: 80 17 00 00 [00:37:34]Write to MH i2c: E2 08 00 5C 1E 80 17 00 00 00 00 00 00 FA [00:37:34]Write i2c OK [00:37:34]MH_I2C_Read... [00:37:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 217! [00:37:34]Read from MH i2c: E2 [00:37:34]MH_I2C_Read... [00:37:34]Read from MH i2c: E2 DC 00 [00:37:34]MH_I2C_Read... [00:37:34]Read from MH i2c: E2 DC 00 5C 1E 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 DE [00:37:34]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:37:34]wFMCommunicate OK [00:37:34]SAM_PROTO_GetFMData done [00:37:34]requested_item fm.sale_refund.total is exist - process it [00:37:34]requested_item fm.buy.total is exist - process it [00:37:34]requested_item shift.sale.total is exist - process it [00:37:34]SAM_PROTO_GetShiftData [00:37:34]wFMCommunicate request_size=4 [00:37:34]MH_SAM_APDU [00:37:34]CAPDU: 80 13 02 00 [00:37:34]Write to MH i2c: E2 08 00 5D 1E 80 13 02 00 00 00 00 00 F9 [00:37:34]Write i2c OK [00:37:34]MH_I2C_Read... [00:37:35]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:37:35]Read from MH i2c: E2 [00:37:35]MH_I2C_Read... [00:37:35]Read from MH i2c: E2 FD 00 [00:37:35]MH_I2C_Read... [00:37:35]Read from MH i2c: E2 FD 00 5D 1E 00 B1 04 AA 04 AD 04 6E 04 04 00 1B 01 00 00 69 04 9E 00 6F 04 04 00 1B 01 00 00 B1 04 04 00 5B 64 76 01 70 04 04 00 50 9A 50 01 72 04 03 00 0B CA 25 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 29 C5 27 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 66 50 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 41 [00:37:35]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 1B 01 00 00 69 04 9E 00 6F 04 04 00 1B 01 00 00 B1 04 04 00 5B 64 76 01 70 04 04 00 50 9A 50 01 72 04 03 00 0B CA 25 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 29 C5 27 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 66 50 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:37:35]wFMCommunicate OK [00:37:35]wFMCommunicate request_size=4 [00:37:35]MH_SAM_APDU [00:37:35]CAPDU: 80 17 00 00 [00:37:35]Write to MH i2c: E2 08 00 5E 1E 80 17 00 00 00 00 00 00 FC [00:37:35]Write i2c OK [00:37:35]MH_I2C_Read... [00:37:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:37:35]Read from MH i2c: E2 [00:37:35]MH_I2C_Read... [00:37:35]Read from MH i2c: E2 FD 00 [00:37:35]MH_I2C_Read... [00:37:35]Read from MH i2c: E2 FD 00 5E 1E 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 15 [00:37:35]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 [00:37:35]wFMCommunicate OK [00:37:35]wFMCommunicate request_size=4 [00:37:35]MH_SAM_APDU [00:37:35]CAPDU: 80 17 00 00 [00:37:35]Write to MH i2c: E2 08 00 5F 1E 80 17 00 00 00 00 00 00 FD [00:37:35]Write i2c OK [00:37:35]MH_I2C_Read... [00:37:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:37:35]Read from MH i2c: E2 [00:37:35]MH_I2C_Read... [00:37:35]Read from MH i2c: E2 FD 00 [00:37:35]MH_I2C_Read... [00:37:35]Read from MH i2c: E2 FD 00 5F 1E 00 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 B6 [00:37:35]RAPDU: 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [00:37:35]wFMCommunicate OK [00:37:35]wFMCommunicate request_size=4 [00:37:35]MH_SAM_APDU [00:37:35]CAPDU: 80 17 00 00 [00:37:35]Write to MH i2c: E2 08 00 60 1E 80 17 00 00 00 00 00 00 FE [00:37:35]Write i2c OK [00:37:35]MH_I2C_Read... [00:37:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:37:36]Read from MH i2c: E2 [00:37:36]MH_I2C_Read... [00:37:36]Read from MH i2c: E2 FD 00 [00:37:36]MH_I2C_Read... [00:37:36]Read from MH i2c: E2 FD 00 60 1E 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 76 [00:37:36]RAPDU: 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:37:36]wFMCommunicate OK [00:37:36]wFMCommunicate request_size=4 [00:37:36]MH_SAM_APDU [00:37:36]CAPDU: 80 17 00 00 [00:37:36]Write to MH i2c: E2 08 00 61 1E 80 17 00 00 00 00 00 00 FF [00:37:36]Write i2c OK [00:37:36]MH_I2C_Read... [00:37:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [00:37:36]Read from MH i2c: E2 [00:37:36]MH_I2C_Read... [00:37:36]Read from MH i2c: E2 CE 00 [00:37:36]MH_I2C_Read... [00:37:36]Read from MH i2c: E2 CE 00 61 1E 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 E4 [00:37:36]RAPDU: 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:37:36]wFMCommunicate OK [00:37:36]SAM_PROTO_GetShiftData done [00:37:36]requested_item shift.sale.total_cash is exist - process it [00:37:36]requested_item shift.sale_refund.total is exist - process it [00:37:36]requested_item shift.sale_refund.total_cash is exist - process it [00:37:36]requested_item shift.buy.total is exist - process it [00:37:36]requested_item shift.buy.total_cash is exist - process it [00:37:36]produce_requested_data done [00:37:36]produce_requested_data return {"fm.sale.total":27485014.57,"fm.sale_refund.total":54066.00,"fm.buy.total":0.00,"shift.sale.total":245361.55,"shift.sale.total_cash":220596.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:37:36]process_action_free get_value [00:37:36]json_value_free [00:37:36]json_value_free done [00:37:36]process_json_proto returns [00:37:36]Send response to host [00:37:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":27485014.57,"fm.sale_refund.total":54066.00,"fm.buy.total":0.00,"shift.sale.total":245361.55,"shift.sale.total_cash":220596.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:37:36]free response buf [00:37:36]execute_script done [00:37:36]execute_script returns [00:37:36]free content buf [00:37:36]Sock 9.Close socket [00:37:36]Sock 9.Thread stoped [00:37:36]OFD Sender: No OFD packet to send [00:37:36]accept exits with 7 [00:37:36]New connection [00:37:36]New thread 3067489636 created [00:37:36]Thread 3067346276 joined [00:37:36]Waiting for new connection... [00:37:36] Sock 7.Parse request [00:37:36]Sock 7.Check first char [00:37:36]Sock 7.First char is OK [00:37:36]request: POST /json_proto HTTP/1.0 [00:37:36]Method: POST [00:37:36]URL: /json_proto [00:37:36]Method is POST - this is cgi request [00:37:36]url: /json_proto [00:37:36]query_string will be loaded in cgi processing [00:37:36]execute_cgi json_proto POST (null) [00:37:36]execute_cgi path=json_proto method=POST [00:37:36]POST find Content-Length [00:37:36]Host: 172.17.51.3:8080 [00:37:36]Content-Length: 296 [00:37:36]Content-Type: application/json [00:37:36] [00:37:36]POST finish read [00:37:36]Found Content-Length = 296 [00:37:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "open_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:37:36]execute_script... [00:37:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "open_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:37:36]POST & json_proto [00:37:36]process_json_proto [00:37:36]json parsed OK: [00:37:36]protocol is kg_v1.0 [00:37:36]action value=open_shift [00:37:36]process_action open_shift [00:37:36]cmd_open_shift [00:37:36]MH_GetDate [00:37:36]Write to MH i2c: F0 00 00 62 1E 6F [00:37:36]Write i2c OK [00:37:36]MH_I2C_Read... [00:37:36]Read from MH i2c: F0 [00:37:36]MH_I2C_Read... [00:37:36]Read from MH i2c: F0 09 00 [00:37:36]MH_I2C_Read... [00:37:36]Read from MH i2c: F0 09 00 62 1E 00 52 A2 15 67 04 C1 95 66 A8 [00:37:36]GetLastDocTimeStamp 1729470452 [00:37:36]current date 1729471058 [00:37:36]FM_GetShiftState [00:37:36]SAM_PROTO_GetShiftState [00:37:36]wFMCommunicate request_size=4 [00:37:36]MH_SAM_APDU [00:37:36]CAPDU: 80 13 01 00 [00:37:36]Write to MH i2c: E2 08 00 63 1E 80 13 01 00 00 00 00 00 FE [00:37:36]Write i2c OK [00:37:36]MH_I2C_Read... [00:37:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:37:36]Read from MH i2c: E2 [00:37:36]MH_I2C_Read... [00:37:36]Read from MH i2c: E2 0E 00 [00:37:36]MH_I2C_Read... [00:37:36]Read from MH i2c: E2 0E 00 63 1E 00 09 00 00 00 00 00 00 00 00 00 00 90 00 09 [00:37:36]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:37:36]wFMCommunicate OK [00:37:36]SAM_PROTO_GetShiftState done [00:37:36]FM_GetShiftState done [00:37:36]KKMCreateOpenShiftDocument [00:37:36]Load OK [00:37:36]Malloc new data [00:37:36]MH_GetDate [00:37:36]Write to MH i2c: F0 00 00 64 1E 71 [00:37:36]Write i2c OK [00:37:36]MH_I2C_Read... [00:37:36]Read from MH i2c: F0 [00:37:36]MH_I2C_Read... [00:37:36]Read from MH i2c: F0 09 00 [00:37:36]MH_I2C_Read... [00:37:36]Read from MH i2c: F0 09 00 64 1E 00 52 A2 15 67 04 C1 95 66 AA [00:37:36]Malloc new data [00:37:36]KKMCreateOpenShiftDocument OK [00:37:36]KKMSetOpenShiftData OK [00:37:36]ProcessDocumentItem done err = 0, tmpTLVsize=215 [00:37:36]tlvbuf is 01E8CE10 [00:37:36]KKMLoadAndSignOpenShiftData [00:37:36]SAM_PROTO_ProcessDocument [00:37:36]wFMCommunicate request_size=9 [00:37:36]MH_SAM_APDU [00:37:36]CAPDU: 80 15 01 00 04 02 00 D7 00 [00:37:36]Write to MH i2c: E2 0C 00 65 1E 80 15 01 00 04 00 02 00 D7 00 00 00 E3 [00:37:36]Write i2c OK [00:37:36]MH_I2C_Read... [00:37:36]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:37:36]Read from MH i2c: E2 [00:37:36]MH_I2C_Read... [00:37:36]Read from MH i2c: E2 03 00 [00:37:36]MH_I2C_Read... [00:37:36]Read from MH i2c: E2 03 00 65 1E 00 90 00 F7 [00:37:36]RAPDU: 90 00 [00:37:36]wFMCommunicate OK [00:37:36]wFMCommunicate request_size=23 [00:37:36]MH_SAM_APDU [00:37:36]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:37:36]Write to MH i2c: E2 1A 00 66 1E 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 F9 [00:37:36]Write i2c OK [00:37:36]MH_I2C_Read... [00:37:36]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:37:36]Read from MH i2c: E2 [00:37:36]MH_I2C_Read... [00:37:36]Read from MH i2c: E2 03 00 [00:37:36]MH_I2C_Read... [00:37:36]Read from MH i2c: E2 03 00 66 1E 00 90 00 F8 [00:37:36]RAPDU: 90 00 [00:37:36]wFMCommunicate OK [00:37:36]wFMCommunicate request_size=43 [00:37:36]MH_SAM_APDU [00:37:36]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:37:36]Write to MH i2c: E2 2E 00 67 1E 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 6E [00:37:36]Write i2c OK [00:37:36]MH_I2C_Read... [00:37:36]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:37:36]Read from MH i2c: E2 [00:37:36]MH_I2C_Read... [00:37:36]Read from MH i2c: E2 03 00 [00:37:36]MH_I2C_Read... [00:37:36]Read from MH i2c: E2 03 00 67 1E 00 90 00 F9 [00:37:36]RAPDU: 90 00 [00:37:36]wFMCommunicate OK [00:37:36]wFMCommunicate request_size=91 [00:37:36]MH_SAM_APDU [00:37:36]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:37:37]Write to MH i2c: E2 5E 00 68 1E 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 E6 [00:37:37]Write i2c OK [00:37:37]MH_I2C_Read... [00:37:37]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:37:37]Read from MH i2c: E2 [00:37:37]MH_I2C_Read... [00:37:37]Read from MH i2c: E2 03 00 [00:37:37]MH_I2C_Read... [00:37:37]Read from MH i2c: E2 03 00 68 1E 00 90 00 FA [00:37:37]RAPDU: 90 00 [00:37:37]wFMCommunicate OK [00:37:37]wFMCommunicate request_size=50 [00:37:37]MH_SAM_APDU [00:37:37]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:37:37]Write to MH i2c: E2 35 00 69 1E 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 85 [00:37:37]Write i2c OK [00:37:37]MH_I2C_Read... [00:37:37]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:37:37]Read from MH i2c: E2 [00:37:37]MH_I2C_Read... [00:37:37]Read from MH i2c: E2 03 00 [00:37:37]MH_I2C_Read... [00:37:37]Read from MH i2c: E2 03 00 69 1E 00 90 00 FB [00:37:37]RAPDU: 90 00 [00:37:37]wFMCommunicate OK [00:37:37]wFMCommunicate request_size=13 [00:37:37]MH_SAM_APDU [00:37:37]CAPDU: 80 15 02 00 08 F4 03 04 00 52 A2 15 67 [00:37:37]Write to MH i2c: E2 10 00 6A 1E 80 15 02 00 08 00 F4 03 04 00 52 A2 15 67 00 00 83 [00:37:37]Write i2c OK [00:37:37]MH_I2C_Read... [00:37:37]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:37:37]Read from MH i2c: E2 [00:37:37]MH_I2C_Read... [00:37:37]Read from MH i2c: E2 03 00 [00:37:37]MH_I2C_Read... [00:37:37]Read from MH i2c: E2 03 00 6A 1E 00 90 00 FC [00:37:37]RAPDU: 90 00 [00:37:37]wFMCommunicate OK [00:37:37]wFMCommunicate request_size=25 [00:37:37]MH_SAM_APDU [00:37:37]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:37:37]Write to MH i2c: E2 1C 00 6B 1E 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 75 [00:37:37]Write i2c OK [00:37:37]MH_I2C_Read... [00:37:37]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:37:37]Read from MH i2c: E2 [00:37:37]MH_I2C_Read... [00:37:37]Read from MH i2c: E2 03 00 [00:37:37]MH_I2C_Read... [00:37:37]Read from MH i2c: E2 03 00 6B 1E 00 90 00 FD [00:37:37]RAPDU: 90 00 [00:37:37]wFMCommunicate OK [00:37:37]wFMCommunicate request_size=4 [00:37:37]MH_SAM_APDU [00:37:37]CAPDU: 80 15 03 00 [00:37:37]Write to MH i2c: E2 08 00 6C 1E 80 15 03 00 00 00 00 00 0B [00:37:37]Write i2c OK [00:37:37]MH_I2C_Read... [00:37:37]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 53! [00:37:37]Read from MH i2c: E2 [00:37:37]MH_I2C_Read... [00:37:37]Read from MH i2c: E2 38 00 [00:37:37]MH_I2C_Read... [00:37:37]Read from MH i2c: E2 38 00 6C 1E 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 27 77 00 00 0E 04 04 00 73 00 00 00 35 04 06 00 E7 8E 93 91 F8 6E 90 00 E2 [00:37:37]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 27 77 00 00 0E 04 04 00 73 00 00 00 35 04 06 00 E7 8E 93 91 F8 6E 90 00 [00:37:37]wFMCommunicate OK [00:37:37]SAM_PROTO_ProcessDocument answer len = 51 [00:37:37]SAM_PROTO_ProcessDocument done [00:37:37]SetTLVBufToDocument [00:37:37]Processing tag 1209 (04B9) [00:37:37]Malloc new data [00:37:37]Processing tag 1041 (0411) [00:37:37]Processing tag 1040 (0410) [00:37:37]Malloc new data [00:37:37]Processing tag 1038 (040E) [00:37:37]Malloc new data [00:37:37]Processing tag 1077 (0435) [00:37:37]Malloc new data [00:37:37]SetTLVBufToDocument err=0 [00:37:37]KKMLoadAndSignOpenShiftData store KKM data [00:37:37]KKMLoadAndSignOpenShiftData err=0 [00:37:37]Отчет об открытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Тынчтыкбек уулу К. Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 Место: АЗС № 78 "Партнер Нефть" 21.10.2024 00:37 Смена: 115 РНМ: 0000000000186857 ЗНМ: 0300000137 ФД: 30503 ФМ: 0000000002094219 ФПД: 254599547189358 [00:37:37]StoreToDocumentArchive [00:37:37]shift 115 fd 30503 [00:37:37]Create dir for shift 0115 [00:37:37]save to /storage/0115/doc_00030503 [00:37:37]save last doc name /storage/0115/doc_00030503 to /storage/kkm_last_doc_name [00:37:37]save OK [00:37:37]Clear old archive folders... [00:37:37]Remove dir /storage/0114 [00:37:37]opendir ok [00:37:37]file . [00:37:37]file .. [00:37:37]file doc_00030218 [00:37:37]remove file /storage/0114/doc_00030218 [00:37:37]file doc_00030219 [00:37:37]remove file /storage/0114/doc_00030219 [00:37:37]file doc_00030220 [00:37:37]remove file /storage/0114/doc_00030220 [00:37:37]file doc_00030221 [00:37:37]remove file /storage/0114/doc_00030221 [00:37:37]file doc_00030222 [00:37:37]remove file /storage/0114/doc_00030222 [00:37:37]file doc_00030223 [00:37:37]remove file /storage/0114/doc_00030223 [00:37:37]file doc_00030224 [00:37:37]remove file /storage/0114/doc_00030224 [00:37:37]file doc_00030225 [00:37:37]remove file /storage/0114/doc_00030225 [00:37:37]file doc_00030226 [00:37:37]remove file /storage/0114/doc_00030226 [00:37:37]file doc_00030227 [00:37:37]remove file /storage/0114/doc_00030227 [00:37:37]file doc_00030228 [00:37:37]remove file /storage/0114/doc_00030228 [00:37:37]file doc_00030229 [00:37:37]remove file /storage/0114/doc_00030229 [00:37:37]file doc_00030230 [00:37:37]remove file /storage/0114/doc_00030230 [00:37:37]file doc_00030231 [00:37:37]remove file /storage/0114/doc_00030231 [00:37:37]file doc_00030232 [00:37:37]remove file /storage/0114/doc_00030232 [00:37:37]file doc_00030233 [00:37:37]remove file /storage/0114/doc_00030233 [00:37:37]file doc_00030234 [00:37:37]remove file /storage/0114/doc_00030234 [00:37:37]file doc_00030235 [00:37:37]remove file /storage/0114/doc_00030235 [00:37:37]file doc_00030236 [00:37:37]remove file /storage/0114/doc_00030236 [00:37:37]file doc_00030237 [00:37:37]remove file /storage/0114/doc_00030237 [00:37:37]file doc_00030238 [00:37:37]remove file /storage/0114/doc_00030238 [00:37:37]file doc_00030239 [00:37:37]remove file /storage/0114/doc_00030239 [00:37:37]file doc_00030240 [00:37:37]remove file /storage/0114/doc_00030240 [00:37:37]file doc_00030241 [00:37:37]remove file /storage/0114/doc_00030241 [00:37:37]file doc_00030242 [00:37:37]remove file /storage/0114/doc_00030242 [00:37:37]file doc_00030243 [00:37:37]remove file /storage/0114/doc_00030243 [00:37:37]file doc_00030244 [00:37:37]remove file /storage/0114/doc_00030244 [00:37:37]file doc_00030245 [00:37:37]remove file /storage/0114/doc_00030245 [00:37:37]file doc_00030246 [00:37:37]remove file /storage/0114/doc_00030246 [00:37:37]file doc_00030247 [00:37:37]remove file /storage/0114/doc_00030247 [00:37:37]file doc_00030248 [00:37:37]remove file /storage/0114/doc_00030248 [00:37:37]file doc_00030249 [00:37:37]remove file /storage/0114/doc_00030249 [00:37:37]file doc_00030250 [00:37:37]remove file /storage/0114/doc_00030250 [00:37:37]file doc_00030251 [00:37:37]remove file /storage/0114/doc_00030251 [00:37:37]file doc_00030252 [00:37:37]remove file /storage/0114/doc_00030252 [00:37:37]file doc_00030253 [00:37:37]remove file /storage/0114/doc_00030253 [00:37:37]file doc_00030254 [00:37:37]remove file /storage/0114/doc_00030254 [00:37:37]file doc_00030255 [00:37:37]remove file /storage/0114/doc_00030255 [00:37:37]file doc_00030256 [00:37:37]remove file /storage/0114/doc_00030256 [00:37:37]file doc_00030257 [00:37:37]remove file /storage/0114/doc_00030257 [00:37:37]file doc_00030258 [00:37:37]remove file /storage/0114/doc_00030258 [00:37:37]file doc_00030259 [00:37:37]remove file /storage/0114/doc_00030259 [00:37:37]file doc_00030260 [00:37:37]remove file /storage/0114/doc_00030260 [00:37:37]file doc_00030261 [00:37:37]remove file /storage/0114/doc_00030261 [00:37:37]file doc_00030262 [00:37:37]remove file /storage/0114/doc_00030262 [00:37:37]file doc_00030263 [00:37:37]remove file /storage/0114/doc_00030263 [00:37:37]file doc_00030264 [00:37:37]remove file /storage/0114/doc_00030264 [00:37:37]file doc_00030265 [00:37:37]remove file /storage/0114/doc_00030265 [00:37:37]file doc_00030266 [00:37:38]remove file /storage/0114/doc_00030266 [00:37:38]file doc_00030267 [00:37:38]remove file /storage/0114/doc_00030267 [00:37:38]file doc_00030268 [00:37:38]remove file /storage/0114/doc_00030268 [00:37:38]file doc_00030269 [00:37:38]remove file /storage/0114/doc_00030269 [00:37:38]file doc_00030270 [00:37:38]remove file /storage/0114/doc_00030270 [00:37:38]file doc_00030271 [00:37:38]remove file /storage/0114/doc_00030271 [00:37:38]file doc_00030272 [00:37:38]remove file /storage/0114/doc_00030272 [00:37:38]file doc_00030273 [00:37:38]remove file /storage/0114/doc_00030273 [00:37:38]file doc_00030274 [00:37:38]remove file /storage/0114/doc_00030274 [00:37:38]file doc_00030275 [00:37:38]remove file /storage/0114/doc_00030275 [00:37:38]file doc_00030276 [00:37:38]remove file /storage/0114/doc_00030276 [00:37:38]file doc_00030277 [00:37:38]remove file /storage/0114/doc_00030277 [00:37:38]file doc_00030278 [00:37:38]remove file /storage/0114/doc_00030278 [00:37:38]file doc_00030279 [00:37:38]remove file /storage/0114/doc_00030279 [00:37:38]file doc_00030280 [00:37:38]remove file /storage/0114/doc_00030280 [00:37:38]file doc_00030281 [00:37:38]remove file /storage/0114/doc_00030281 [00:37:38]file doc_00030282 [00:37:38]remove file /storage/0114/doc_00030282 [00:37:38]file doc_00030283 [00:37:38]remove file /storage/0114/doc_00030283 [00:37:38]file doc_00030284 [00:37:38]remove file /storage/0114/doc_00030284 [00:37:38]file doc_00030285 [00:37:38]remove file /storage/0114/doc_00030285 [00:37:38]file doc_00030286 [00:37:38]remove file /storage/0114/doc_00030286 [00:37:38]file doc_00030287 [00:37:38]remove file /storage/0114/doc_00030287 [00:37:38]file doc_00030288 [00:37:38]remove file /storage/0114/doc_00030288 [00:37:38]file doc_00030289 [00:37:38]remove file /storage/0114/doc_00030289 [00:37:38]file doc_00030290 [00:37:38]remove file /storage/0114/doc_00030290 [00:37:38]file doc_00030291 [00:37:38]remove file /storage/0114/doc_00030291 [00:37:38]file doc_00030292 [00:37:38]remove file /storage/0114/doc_00030292 [00:37:38]file doc_00030293 [00:37:38]remove file /storage/0114/doc_00030293 [00:37:38]file doc_00030294 [00:37:38]remove file /storage/0114/doc_00030294 [00:37:38]file doc_00030295 [00:37:38]remove file /storage/0114/doc_00030295 [00:37:38]file doc_00030296 [00:37:38]remove file /storage/0114/doc_00030296 [00:37:38]file doc_00030297 [00:37:38]remove file /storage/0114/doc_00030297 [00:37:38]file doc_00030298 [00:37:38]remove file /storage/0114/doc_00030298 [00:37:38]file doc_00030299 [00:37:38]remove file /storage/0114/doc_00030299 [00:37:38]file doc_00030300 [00:37:38]remove file /storage/0114/doc_00030300 [00:37:38]file doc_00030301 [00:37:38]remove file /storage/0114/doc_00030301 [00:37:38]file doc_00030302 [00:37:38]remove file /storage/0114/doc_00030302 [00:37:38]file doc_00030303 [00:37:38]remove file /storage/0114/doc_00030303 [00:37:38]file doc_00030304 [00:37:38]remove file /storage/0114/doc_00030304 [00:37:38]file doc_00030305 [00:37:38]remove file /storage/0114/doc_00030305 [00:37:38]file doc_00030306 [00:37:38]remove file /storage/0114/doc_00030306 [00:37:38]file doc_00030307 [00:37:38]remove file /storage/0114/doc_00030307 [00:37:38]file doc_00030308 [00:37:38]remove file /storage/0114/doc_00030308 [00:37:38]file doc_00030309 [00:37:38]remove file /storage/0114/doc_00030309 [00:37:38]file doc_00030310 [00:37:38]remove file /storage/0114/doc_00030310 [00:37:38]file doc_00030311 [00:37:38]remove file /storage/0114/doc_00030311 [00:37:38]file doc_00030312 [00:37:38]remove file /storage/0114/doc_00030312 [00:37:38]file doc_00030313 [00:37:38]remove file /storage/0114/doc_00030313 [00:37:38]file doc_00030314 [00:37:38]remove file /storage/0114/doc_00030314 [00:37:38]file doc_00030315 [00:37:38]remove file /storage/0114/doc_00030315 [00:37:38]file doc_00030316 [00:37:38]remove file /storage/0114/doc_00030316 [00:37:38]file doc_00030317 [00:37:38]remove file /storage/0114/doc_00030317 [00:37:38]file doc_00030318 [00:37:38]remove file /storage/0114/doc_00030318 [00:37:38]file doc_00030319 [00:37:38]remove file /storage/0114/doc_00030319 [00:37:38]file doc_00030320 [00:37:38]remove file /storage/0114/doc_00030320 [00:37:38]file doc_00030321 [00:37:38]remove file /storage/0114/doc_00030321 [00:37:38]file doc_00030322 [00:37:38]remove file /storage/0114/doc_00030322 [00:37:38]file doc_00030323 [00:37:38]remove file /storage/0114/doc_00030323 [00:37:38]file doc_00030324 [00:37:38]remove file /storage/0114/doc_00030324 [00:37:38]file doc_00030325 [00:37:38]remove file /storage/0114/doc_00030325 [00:37:38]file doc_00030326 [00:37:38]remove file /storage/0114/doc_00030326 [00:37:38]file doc_00030327 [00:37:38]remove file /storage/0114/doc_00030327 [00:37:38]file doc_00030328 [00:37:38]remove file /storage/0114/doc_00030328 [00:37:38]file doc_00030329 [00:37:38]remove file /storage/0114/doc_00030329 [00:37:38]file doc_00030330 [00:37:38]remove file /storage/0114/doc_00030330 [00:37:38]file doc_00030331 [00:37:38]remove file /storage/0114/doc_00030331 [00:37:38]file doc_00030332 [00:37:38]remove file /storage/0114/doc_00030332 [00:37:38]file doc_00030333 [00:37:38]remove file /storage/0114/doc_00030333 [00:37:38]file doc_00030334 [00:37:38]remove file /storage/0114/doc_00030334 [00:37:38]file doc_00030335 [00:37:38]remove file /storage/0114/doc_00030335 [00:37:38]file doc_00030336 [00:37:38]remove file /storage/0114/doc_00030336 [00:37:38]file doc_00030337 [00:37:38]remove file /storage/0114/doc_00030337 [00:37:38]file doc_00030338 [00:37:38]remove file /storage/0114/doc_00030338 [00:37:38]file doc_00030339 [00:37:38]remove file /storage/0114/doc_00030339 [00:37:38]file doc_00030340 [00:37:38]remove file /storage/0114/doc_00030340 [00:37:38]file doc_00030341 [00:37:38]remove file /storage/0114/doc_00030341 [00:37:38]file doc_00030342 [00:37:38]remove file /storage/0114/doc_00030342 [00:37:38]file doc_00030343 [00:37:38]remove file /storage/0114/doc_00030343 [00:37:38]file doc_00030344 [00:37:38]remove file /storage/0114/doc_00030344 [00:37:38]file doc_00030345 [00:37:38]remove file /storage/0114/doc_00030345 [00:37:38]file doc_00030346 [00:37:38]remove file /storage/0114/doc_00030346 [00:37:38]file doc_00030347 [00:37:38]remove file /storage/0114/doc_00030347 [00:37:38]file doc_00030348 [00:37:38]remove file /storage/0114/doc_00030348 [00:37:38]file doc_00030349 [00:37:38]remove file /storage/0114/doc_00030349 [00:37:38]file doc_00030350 [00:37:38]remove file /storage/0114/doc_00030350 [00:37:38]file doc_00030351 [00:37:38]remove file /storage/0114/doc_00030351 [00:37:38]file doc_00030352 [00:37:38]remove file /storage/0114/doc_00030352 [00:37:38]file doc_00030353 [00:37:38]remove file /storage/0114/doc_00030353 [00:37:38]file doc_00030354 [00:37:38]remove file /storage/0114/doc_00030354 [00:37:38]file doc_00030355 [00:37:38]remove file /storage/0114/doc_00030355 [00:37:38]file doc_00030356 [00:37:38]remove file /storage/0114/doc_00030356 [00:37:38]file doc_00030357 [00:37:38]remove file /storage/0114/doc_00030357 [00:37:38]file doc_00030358 [00:37:38]remove file /storage/0114/doc_00030358 [00:37:38]file doc_00030359 [00:37:38]remove file /storage/0114/doc_00030359 [00:37:38]file doc_00030360 [00:37:38]remove file /storage/0114/doc_00030360 [00:37:38]file doc_00030361 [00:37:38]remove file /storage/0114/doc_00030361 [00:37:38]file doc_00030362 [00:37:38]remove file /storage/0114/doc_00030362 [00:37:38]file doc_00030363 [00:37:38]remove file /storage/0114/doc_00030363 [00:37:38]file doc_00030364 [00:37:38]remove file /storage/0114/doc_00030364 [00:37:38]file doc_00030365 [00:37:38]remove file /storage/0114/doc_00030365 [00:37:38]file doc_00030366 [00:37:38]remove file /storage/0114/doc_00030366 [00:37:38]file doc_00030367 [00:37:38]remove file /storage/0114/doc_00030367 [00:37:38]file doc_00030368 [00:37:38]remove file /storage/0114/doc_00030368 [00:37:38]file doc_00030369 [00:37:38]remove file /storage/0114/doc_00030369 [00:37:38]file doc_00030370 [00:37:38]remove file /storage/0114/doc_00030370 [00:37:38]file doc_00030371 [00:37:38]remove file /storage/0114/doc_00030371 [00:37:38]file doc_00030372 [00:37:38]remove file /storage/0114/doc_00030372 [00:37:38]file doc_00030373 [00:37:38]remove file /storage/0114/doc_00030373 [00:37:38]file doc_00030374 [00:37:38]remove file /storage/0114/doc_00030374 [00:37:38]file doc_00030375 [00:37:38]remove file /storage/0114/doc_00030375 [00:37:38]file doc_00030376 [00:37:38]remove file /storage/0114/doc_00030376 [00:37:38]file doc_00030377 [00:37:38]remove file /storage/0114/doc_00030377 [00:37:38]file doc_00030378 [00:37:38]remove file /storage/0114/doc_00030378 [00:37:38]file doc_00030379 [00:37:38]remove file /storage/0114/doc_00030379 [00:37:38]file doc_00030380 [00:37:38]remove file /storage/0114/doc_00030380 [00:37:38]file doc_00030381 [00:37:38]remove file /storage/0114/doc_00030381 [00:37:38]file doc_00030382 [00:37:38]remove file /storage/0114/doc_00030382 [00:37:38]file doc_00030383 [00:37:38]remove file /storage/0114/doc_00030383 [00:37:38]file doc_00030384 [00:37:38]remove file /storage/0114/doc_00030384 [00:37:38]file doc_00030385 [00:37:38]remove file /storage/0114/doc_00030385 [00:37:38]file doc_00030386 [00:37:38]remove file /storage/0114/doc_00030386 [00:37:38]file doc_00030387 [00:37:38]remove file /storage/0114/doc_00030387 [00:37:38]file doc_00030388 [00:37:38]remove file /storage/0114/doc_00030388 [00:37:38]file doc_00030389 [00:37:38]remove file /storage/0114/doc_00030389 [00:37:38]file doc_00030390 [00:37:38]remove file /storage/0114/doc_00030390 [00:37:38]file doc_00030391 [00:37:38]remove file /storage/0114/doc_00030391 [00:37:38]file doc_00030392 [00:37:38]remove file /storage/0114/doc_00030392 [00:37:38]file doc_00030393 [00:37:38]remove file /storage/0114/doc_00030393 [00:37:38]file doc_00030394 [00:37:38]remove file /storage/0114/doc_00030394 [00:37:38]file doc_00030395 [00:37:38]remove file /storage/0114/doc_00030395 [00:37:38]file doc_00030396 [00:37:38]remove file /storage/0114/doc_00030396 [00:37:38]file doc_00030397 [00:37:38]remove file /storage/0114/doc_00030397 [00:37:38]file doc_00030398 [00:37:38]remove file /storage/0114/doc_00030398 [00:37:38]file doc_00030399 [00:37:38]remove file /storage/0114/doc_00030399 [00:37:38]file doc_00030400 [00:37:38]remove file /storage/0114/doc_00030400 [00:37:38]file doc_00030401 [00:37:38]remove file /storage/0114/doc_00030401 [00:37:38]file doc_00030402 [00:37:38]remove file /storage/0114/doc_00030402 [00:37:38]file doc_00030403 [00:37:38]remove file /storage/0114/doc_00030403 [00:37:38]file doc_00030404 [00:37:38]remove file /storage/0114/doc_00030404 [00:37:38]file doc_00030405 [00:37:38]remove file /storage/0114/doc_00030405 [00:37:38]file doc_00030406 [00:37:38]remove file /storage/0114/doc_00030406 [00:37:38]file doc_00030407 [00:37:38]remove file /storage/0114/doc_00030407 [00:37:38]file doc_00030408 [00:37:38]remove file /storage/0114/doc_00030408 [00:37:38]file doc_00030409 [00:37:38]remove file /storage/0114/doc_00030409 [00:37:38]file doc_00030410 [00:37:38]remove file /storage/0114/doc_00030410 [00:37:38]file doc_00030411 [00:37:38]remove file /storage/0114/doc_00030411 [00:37:38]file doc_00030412 [00:37:38]remove file /storage/0114/doc_00030412 [00:37:38]file doc_00030413 [00:37:38]remove file /storage/0114/doc_00030413 [00:37:38]file doc_00030414 [00:37:38]remove file /storage/0114/doc_00030414 [00:37:38]file doc_00030415 [00:37:38]remove file /storage/0114/doc_00030415 [00:37:38]file doc_00030416 [00:37:38]remove file /storage/0114/doc_00030416 [00:37:38]file doc_00030417 [00:37:38]remove file /storage/0114/doc_00030417 [00:37:38]file doc_00030418 [00:37:38]remove file /storage/0114/doc_00030418 [00:37:38]file doc_00030419 [00:37:38]remove file /storage/0114/doc_00030419 [00:37:38]file doc_00030420 [00:37:38]remove file /storage/0114/doc_00030420 [00:37:38]file doc_00030421 [00:37:38]remove file /storage/0114/doc_00030421 [00:37:38]file doc_00030422 [00:37:38]remove file /storage/0114/doc_00030422 [00:37:38]file doc_00030423 [00:37:38]remove file /storage/0114/doc_00030423 [00:37:38]file doc_00030424 [00:37:38]remove file /storage/0114/doc_00030424 [00:37:38]file doc_00030425 [00:37:38]remove file /storage/0114/doc_00030425 [00:37:38]file doc_00030426 [00:37:38]remove file /storage/0114/doc_00030426 [00:37:38]file doc_00030427 [00:37:38]remove file /storage/0114/doc_00030427 [00:37:38]file doc_00030428 [00:37:38]remove file /storage/0114/doc_00030428 [00:37:38]file doc_00030429 [00:37:38]remove file /storage/0114/doc_00030429 [00:37:38]file doc_00030430 [00:37:38]remove file /storage/0114/doc_00030430 [00:37:38]file doc_00030431 [00:37:38]remove file /storage/0114/doc_00030431 [00:37:38]file doc_00030432 [00:37:38]remove file /storage/0114/doc_00030432 [00:37:38]file doc_00030433 [00:37:38]remove file /storage/0114/doc_00030433 [00:37:38]file doc_00030434 [00:37:38]remove file /storage/0114/doc_00030434 [00:37:38]file doc_00030435 [00:37:38]remove file /storage/0114/doc_00030435 [00:37:38]file doc_00030436 [00:37:38]remove file /storage/0114/doc_00030436 [00:37:38]file doc_00030437 [00:37:38]remove file /storage/0114/doc_00030437 [00:37:38]file doc_00030438 [00:37:38]remove file /storage/0114/doc_00030438 [00:37:38]file doc_00030439 [00:37:38]remove file /storage/0114/doc_00030439 [00:37:38]file doc_00030440 [00:37:38]remove file /storage/0114/doc_00030440 [00:37:38]file doc_00030441 [00:37:38]remove file /storage/0114/doc_00030441 [00:37:38]file doc_00030442 [00:37:38]remove file /storage/0114/doc_00030442 [00:37:38]file doc_00030443 [00:37:38]remove file /storage/0114/doc_00030443 [00:37:38]file doc_00030444 [00:37:38]remove file /storage/0114/doc_00030444 [00:37:38]file doc_00030445 [00:37:38]remove file /storage/0114/doc_00030445 [00:37:38]file doc_00030446 [00:37:38]remove file /storage/0114/doc_00030446 [00:37:38]file doc_00030447 [00:37:38]remove file /storage/0114/doc_00030447 [00:37:38]file doc_00030448 [00:37:38]remove file /storage/0114/doc_00030448 [00:37:38]file doc_00030449 [00:37:38]remove file /storage/0114/doc_00030449 [00:37:38]file doc_00030450 [00:37:38]remove file /storage/0114/doc_00030450 [00:37:38]file doc_00030451 [00:37:38]remove file /storage/0114/doc_00030451 [00:37:38]file doc_00030452 [00:37:38]remove file /storage/0114/doc_00030452 [00:37:38]file doc_00030453 [00:37:38]remove file /storage/0114/doc_00030453 [00:37:38]file doc_00030454 [00:37:38]remove file /storage/0114/doc_00030454 [00:37:38]file doc_00030455 [00:37:38]remove file /storage/0114/doc_00030455 [00:37:38]file doc_00030456 [00:37:38]remove file /storage/0114/doc_00030456 [00:37:38]file doc_00030457 [00:37:38]remove file /storage/0114/doc_00030457 [00:37:38]file doc_00030458 [00:37:38]remove file /storage/0114/doc_00030458 [00:37:38]file doc_00030459 [00:37:38]remove file /storage/0114/doc_00030459 [00:37:38]file doc_00030460 [00:37:38]remove file /storage/0114/doc_00030460 [00:37:38]file doc_00030461 [00:37:38]remove file /storage/0114/doc_00030461 [00:37:38]file doc_00030462 [00:37:38]remove file /storage/0114/doc_00030462 [00:37:38]file doc_00030463 [00:37:38]remove file /storage/0114/doc_00030463 [00:37:38]file doc_00030464 [00:37:39]remove file /storage/0114/doc_00030464 [00:37:39]file doc_00030465 [00:37:39]remove file /storage/0114/doc_00030465 [00:37:39]file doc_00030466 [00:37:39]remove file /storage/0114/doc_00030466 [00:37:39]file doc_00030467 [00:37:39]remove file /storage/0114/doc_00030467 [00:37:39]file doc_00030468 [00:37:39]remove file /storage/0114/doc_00030468 [00:37:39]file doc_00030469 [00:37:39]remove file /storage/0114/doc_00030469 [00:37:39]file doc_00030470 [00:37:39]remove file /storage/0114/doc_00030470 [00:37:39]file doc_00030471 [00:37:39]remove file /storage/0114/doc_00030471 [00:37:39]file doc_00030472 [00:37:39]remove file /storage/0114/doc_00030472 [00:37:39]file doc_00030473 [00:37:39]remove file /storage/0114/doc_00030473 [00:37:39]file doc_00030474 [00:37:39]remove file /storage/0114/doc_00030474 [00:37:39]file doc_00030475 [00:37:39]remove file /storage/0114/doc_00030475 [00:37:39]file doc_00030476 [00:37:39]remove file /storage/0114/doc_00030476 [00:37:39]file doc_00030477 [00:37:39]remove file /storage/0114/doc_00030477 [00:37:39]file doc_00030478 [00:37:39]remove file /storage/0114/doc_00030478 [00:37:39]file doc_00030479 [00:37:39]remove file /storage/0114/doc_00030479 [00:37:39]file doc_00030480 [00:37:39]remove file /storage/0114/doc_00030480 [00:37:39]file doc_00030481 [00:37:39]remove file /storage/0114/doc_00030481 [00:37:39]file doc_00030482 [00:37:39]remove file /storage/0114/doc_00030482 [00:37:39]file doc_00030483 [00:37:39]remove file /storage/0114/doc_00030483 [00:37:39]file doc_00030484 [00:37:39]remove file /storage/0114/doc_00030484 [00:37:39]file doc_00030485 [00:37:39]remove file /storage/0114/doc_00030485 [00:37:39]file doc_00030486 [00:37:39]remove file /storage/0114/doc_00030486 [00:37:39]file doc_00030487 [00:37:39]remove file /storage/0114/doc_00030487 [00:37:39]file doc_00030488 [00:37:39]remove file /storage/0114/doc_00030488 [00:37:39]file doc_00030489 [00:37:39]remove file /storage/0114/doc_00030489 [00:37:39]file doc_00030490 [00:37:39]remove file /storage/0114/doc_00030490 [00:37:39]file doc_00030491 [00:37:39]remove file /storage/0114/doc_00030491 [00:37:39]file doc_00030492 [00:37:39]remove file /storage/0114/doc_00030492 [00:37:39]file doc_00030493 [00:37:39]remove file /storage/0114/doc_00030493 [00:37:39]file doc_00030494 [00:37:39]remove file /storage/0114/doc_00030494 [00:37:39]file doc_00030495 [00:37:39]remove file /storage/0114/doc_00030495 [00:37:39]file doc_00030496 [00:37:39]remove file /storage/0114/doc_00030496 [00:37:39]file doc_00030497 [00:37:39]remove file /storage/0114/doc_00030497 [00:37:39]file doc_00030498 [00:37:39]remove file /storage/0114/doc_00030498 [00:37:39]file doc_00030499 [00:37:39]remove file /storage/0114/doc_00030499 [00:37:39]file doc_00030500 [00:37:39]remove file /storage/0114/doc_00030500 [00:37:39]file doc_00030501 [00:37:39]remove file /storage/0114/doc_00030501 [00:37:39]file doc_00030502 [00:37:39]remove file /storage/0114/doc_00030502 [00:37:39]remove dir /storage/0114 [00:37:39]ProcessDocumentItem done err = 0, tmpTLVsize=266 [00:37:39]tlvbuf is 01DE30D0 [00:37:39]SAM_PROTO_ClearQueue [00:37:39]wFMCommunicate request_size=4 [00:37:39]MH_SAM_APDU [00:37:39]CAPDU: 80 09 00 00 [00:37:39]Write to MH i2c: E2 08 00 6D 1E 80 09 00 00 00 00 00 00 FD [00:37:39]Write i2c OK [00:37:39]MH_I2C_Read... [00:37:39]Read from MH i2c: E2 [00:37:39]MH_I2C_Read... [00:37:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:37:39]Read from MH i2c: E2 03 00 [00:37:39]MH_I2C_Read... [00:37:39]Read from MH i2c: E2 03 00 6D 1E 00 90 00 FF [00:37:39]RAPDU: 90 00 [00:37:39]wFMCommunicate OK [00:37:39]SAM_PROTO_ClearQueue done [00:37:39]KKMCreateOFDPacket [00:37:39]OFDProtocolAddRootSTLVToBuf [00:37:39]FM_MakeSignedData [00:37:39]FM_MakeSignedData [00:37:39]SAM_PROTO_SignData [00:37:39]wFMCommunicate request_size=4 [00:37:39]MH_SAM_APDU [00:37:39]CAPDU: 80 0D 01 02 [00:37:39]Write to MH i2c: E2 08 00 6E 1E 80 0D 01 02 00 00 00 00 05 [00:37:39]Write i2c OK [00:37:39]MH_I2C_Read... [00:37:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:37:39]Read from MH i2c: E2 [00:37:39]MH_I2C_Read... [00:37:39]Read from MH i2c: E2 03 00 [00:37:39]MH_I2C_Read... [00:37:39]Read from MH i2c: E2 03 00 6E 1E 00 90 00 00 [00:37:39]RAPDU: 90 00 [00:37:39]wFMCommunicate OK [00:37:39]wFMCommunicate request_size=255 [00:37:39]MH_SAM_APDU [00:37:39]CAPDU: 80 0D 02 02 FA 02 00 0A 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 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 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 52 A2 15 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 10 04 04 00 27 77 00 00 11 04 10 00 30 30 30 30 30 30 [00:37:39]Write to MH i2c: E2 02 01 6F 1E 80 0D 02 02 FA 00 02 00 0A 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 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 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 52 A2 15 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 10 04 04 00 27 77 00 00 11 04 10 00 30 30 30 30 30 30 00 00 41 [00:37:39]Write i2c OK [00:37:39]MH_I2C_Read... [00:37:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:37:39]Read from MH i2c: E2 [00:37:39]MH_I2C_Read... [00:37:39]Read from MH i2c: E2 03 00 [00:37:39]MH_I2C_Read... [00:37:39]Read from MH i2c: E2 03 00 6F 1E 00 90 00 01 [00:37:39]RAPDU: 90 00 [00:37:39]wFMCommunicate OK [00:37:39]wFMCommunicate request_size=25 [00:37:39]MH_SAM_APDU [00:37:39]CAPDU: 80 0D 02 02 14 30 30 30 32 30 39 34 32 31 39 35 04 06 00 E7 8E 93 91 F8 6E [00:37:39]Write to MH i2c: E2 1C 00 70 1E 80 0D 02 02 14 00 30 30 30 32 30 39 34 32 31 39 35 04 06 00 E7 8E 93 91 F8 6E 00 00 69 [00:37:39]Write i2c OK [00:37:39]MH_I2C_Read... [00:37:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:37:39]Read from MH i2c: E2 [00:37:39]MH_I2C_Read... [00:37:39]Read from MH i2c: E2 03 00 [00:37:39]MH_I2C_Read... [00:37:39]Read from MH i2c: E2 03 00 70 1E 00 90 00 02 [00:37:39]RAPDU: 90 00 [00:37:39]wFMCommunicate OK [00:37:39]wFMCommunicate request_size=4 [00:37:39]MH_SAM_APDU [00:37:39]CAPDU: 80 0D 03 02 [00:37:39]Write to MH i2c: E2 08 00 71 1E 80 0D 03 02 00 00 00 00 0A [00:37:39]Write i2c OK [00:37:39]MH_I2C_Read... [00:37:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:37:39]Read from MH i2c: E2 [00:37:39]MH_I2C_Read... [00:37:39]Read from MH i2c: E2 0B 00 [00:37:39]MH_I2C_Read... [00:37:39]Read from MH i2c: E2 0B 00 71 1E 00 04 F4 FC 50 92 2B 9B 7A 90 00 21 [00:37:39]RAPDU: 04 F4 FC 50 92 2B 9B 7A 90 00 [00:37:39]wFMCommunicate OK [00:37:39]SAM_PROTO_SignData done [00:37:39]FM_MakeSignedData done [00:37:39]CreateOFDProtocolMessage [00:37:39]wFMCommunicate request_size=4 [00:37:39]MH_SAM_APDU [00:37:39]CAPDU: 80 11 00 00 [00:37:39]Write to MH i2c: E2 08 00 72 1E 80 11 00 00 00 00 00 00 0A [00:37:39]Write i2c OK [00:37:39]MH_I2C_Read... [00:37:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:37:39]Read from MH i2c: E2 [00:37:39]MH_I2C_Read... [00:37:39]Read from MH i2c: E2 17 00 [00:37:39]MH_I2C_Read... [00:37:39]Read from MH i2c: E2 17 00 72 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 58 [00:37: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:37:39]wFMCommunicate OK [00:37:39]CreateOFDProtocolMessage done [00:37:39]OFDSenderStorePacket 30503 [00:37:39]StoreOFDPacket docnum=30503 [00:37: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 1E 01 00 00 15 7C 16 01 FC D0 5A 02 01 00 02 00 0A 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 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 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 52 A2 15 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 10 04 04 00 27 77 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 E7 8E 93 91 F8 6E 04 F4 FC 50 92 2B 9B 7A [00:37:39]CheckFolder [00:37:39]dirname=/storage/ofd_packets [00:37:39]CheckFolder done [00:37:39]ProducePacketName [00:37:39]name=ofd_packets/00030503 [00:37:39]NVStorageSaveData ofd_packets/00030503 [00:37:39]File name is /storage/ofd_packets/00030503 [00:37:39]Write 316 bytes [00:37:39]NVStorageSaveData done [00:37:39]OFDSenderStorePacket done [00:37:39]KKMCreateOFDPacket done [00:37:39]NVStorageSaveData kkm_last_timestamp [00:37:39]File name is /storage/kkm_last_timestamp [00:37:39]Write 4 bytes [00:37:39]NVStorageSaveData done [00:37:39]ExternCall_PrintAddStr [00:37:39]wPrintStart [00:37:39]Write to MH i2c: 01 00 00 73 1E 91 [00:37:39]Write i2c OK [00:37:39]MH_I2C_Read... [00:37:39]Read from MH i2c: 01 [00:37:39]MH_I2C_Read... [00:37:39]Read from MH i2c: 01 07 00 [00:37:39]MH_I2C_Read... [00:37:39]Read from MH i2c: 01 07 00 73 1E 00 00 00 00 00 FF 0F A6 [00:37:39]RasterBufferAndPrint [00:37:39]line Отчет об открытии смены [00:37:39]line ФФД: 1.0 [00:37:39]line ИНН: 02508201610067 [00:37:39]line Кассир: Тынчтыкбек уулу К. [00:37:39]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [00:37:39]line Место: АЗС № 78 "Партнер Нефть" [00:37:39]line 21.10.2024 00:37 [00:37:39]line Смена: 115 [00:37:39]line РНМ: 0000000000186857 [00:37:39]line ЗНМ: 0300000137 [00:37:39]line ФД: 30503 [00:37:39]line ФМ: 0000000002094219 [00:37:39]line ФПД: 254599547189358 [00:37:39]written 0, free lines is 4095 [00:37:40]OFD Sender: Processing packet 30503 [packets to send 10, broken 9] [00:37:40]ProducePacketName [00:37:40]name=ofd_packets/00030503 [00:37:40]OFD Sender: To server: pG, [00:37:40]CommunicateWithHost lk.salyk.kg:30040 [00:37:40]ConnectInit lk.salyk.kg [00:37:40]Connected sock=10 [00:37: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 1E 01 00 00 15 7C 16 01 FC D0 5A 02 01 00 02 00 0A 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 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 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 52 A2 15 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 10 04 04 00 27 77 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 E7 8E 93 91 F8 6E 04 F4 FC 50 92 2B 9B 7A [00:37:40]Write to MH i2c: 01 00 00 85 1E A3 [00:37:40]Write i2c OK [00:37:40]MH_I2C_Read... [00:37:40]Read from MH i2c: 01 [00:37:40]MH_I2C_Read... [00:37:40]Read from MH i2c: 01 07 00 [00:37:40]MH_I2C_Read... [00:37:40]Read from MH i2c: 01 07 00 85 1E 00 00 00 00 00 D6 0E 8E [00:37:40]RasterBufferAndPrint [00:37:40]line [00:37:40]line [00:37:40]line [00:37:40]line [00:37:40]line [00:37:40]written 0, free lines is 3819 [00:37:40]MH_Cut [00:37:40]Write to MH i2c: D1 01 00 8C 1E 01 7C [00:37:40]Write i2c OK [00:37:40]MH_I2C_Read... [00:37:40]Read from MH i2c: D1 [00:37:40]MH_I2C_Read... [00:37:40]Read from MH i2c: D1 01 00 [00:37:40]MH_I2C_Read... [00:37:40]Read from MH i2c: D1 01 00 8C 1E 00 7B [00:37:40]Write to MH i2c: 01 00 00 8D 1E AB [00:37:40]Write i2c OK [00:37:40]MH_I2C_Read... [00:37: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 C4 B5 47 00 50 C1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 27 77 00 00 F4 03 04 00 D6 4C 15 67 B6 04 01 00 00 F1 2D 32 07 ED 86 7B C2 [00:37:40]CommunicateWithHost err = 0 [00:37:40]CheckOFDResponse [00:37:40]1017 (14) - 77093643461234 [00:37:40]1041 (16) - 0000000002094219 [00:37:40]1040 (4) - 30503 [00:37:40]1012 (4) - 20.10.2024 18:32 [00:37:40]1206 (1) - 0 [00:37:40]OFD Sender: Remove packet 30503 [00:37:40]ProducePacketName [00:37:40]name=ofd_packets/00030503 [00:37:40]NVStorageDeleteData [00:37:40]*** Cut start [00:37:40]*** Partial cut [00:37:40]*** CUTSNS_PIN = 1 [00:37:40]*** CUTSNS_PIN = 0 [00:37:40]*** Brake cut motor [00:37:41]OFD Sender: No OFD packet to send [00:37:41]Read from MH i2c: 01 [00:37:41]MH_I2C_Read... [00:37:41]*** Stop cut motor [00:37:41]*** Cut end [00:37:41]Read from MH i2c: 01 07 00 [00:37:41]MH_I2C_Read... [00:37:41]Read from MH i2c: 01 07 00 8D 1E 00 00 00 00 00 FF 0F C0 [00:37:41]process_action open_shift done [00:37:41]requested_data is exist [00:37:41]produce_requested_data [00:37:41]requested_item fd.num is exist - process it [00:37:41]SAM_PROTO_GetFieldsCounters [00:37:41]wFMCommunicate request_size=4 [00:37:41]MH_SAM_APDU [00:37:41]CAPDU: 80 13 00 00 [00:37:41]Write to MH i2c: E2 08 00 8E 1E 80 13 00 00 00 00 00 00 28 [00:37:41]Write i2c OK [00:37:41]MH_I2C_Read... [00:37:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:37:41]Read from MH i2c: E2 [00:37:41]MH_I2C_Read... [00:37:41]Read from MH i2c: E2 62 00 [00:37:41]MH_I2C_Read... [00:37:41]Read from MH i2c: E2 62 00 8E 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 77 00 00 0E 04 04 00 73 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 5F [00:37: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 27 77 00 00 0E 04 04 00 73 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:37:41]wFMCommunicate OK [00:37:41]SAM_PROTO_GetFieldsCounters done [00:37:41]requested_item shift.num is exist - process it [00:37:41]requested_item shift.opened is exist - process it [00:37:41]req_shift_opened [00:37:41]FM_GetShiftState [00:37:41]SAM_PROTO_GetShiftState [00:37:41]wFMCommunicate request_size=4 [00:37:41]MH_SAM_APDU [00:37:41]CAPDU: 80 13 01 00 [00:37:41]Write to MH i2c: E2 08 00 8F 1E 80 13 01 00 00 00 00 00 2A [00:37:41]Write i2c OK [00:37:41]MH_I2C_Read... [00:37:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:37:41]Read from MH i2c: E2 [00:37:41]MH_I2C_Read... [00:37:41]Read from MH i2c: E2 0E 00 [00:37:41]MH_I2C_Read... [00:37:41]Read from MH i2c: E2 0E 00 8F 1E 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 A6 [00:37:41]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [00:37:41]wFMCommunicate OK [00:37:41]SAM_PROTO_GetShiftState done [00:37:41]FM_GetShiftState done [00:37:41]req_shift_opened done [00:37:41]requested_item shift.open_date is exist - process it [00:37:41]req_shift_open_date [00:37:41]req_shift_open_date done [00:37:41]produce_requested_data done [00:37:41]produce_requested_data return {"fd.num":30503,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [00:37:41]process_action_free open_shift [00:37:41]json_value_free [00:37:41]json_value_free done [00:37:41]process_json_proto returns [00:37:41]Send response to host [00:37:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":30503,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [00:37:41]free response buf [00:37:41]execute_script done [00:37:41]execute_script returns [00:37:41]free content buf [00:37:41]Sock 7.Close socket [00:37:41]Sock 7.Thread stoped [00:37:41]accept exits with 9 [00:37:41]New connection [00:37:41]New thread 3067346276 created [00:37:41]Thread 3067489636 joined [00:37:41]Waiting for new connection... [00:37:41] Sock 9.Parse request [00:37:41]Sock 9.Check first char [00:37:41]Sock 9.First char is OK [00:37:41]request: POST /json_proto HTTP/1.0 [00:37:41]Method: POST [00:37:41]URL: /json_proto [00:37:41]Method is POST - this is cgi request [00:37:41]url: /json_proto [00:37:41]query_string will be loaded in cgi processing [00:37:41]execute_cgi json_proto POST (null) [00:37:41]execute_cgi path=json_proto method=POST [00:37:41]POST find Content-Length [00:37:41]Host: 172.17.51.3:8080 [00:37:41]Content-Length: 331 [00:37:41]Content-Type: application/json [00:37:41] [00:37:41]POST finish read [00:37:41]Found Content-Length = 331 [00:37:41]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:37:41]execute_script... [00:37:41]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:37:41]POST & json_proto [00:37:41]process_json_proto [00:37:41]json parsed OK: [00:37:41]protocol is kg_v1.0 [00:37:41]action value=get_value [00:37:41]process_action get_value [00:37:41]cmd_get_value [00:37:41]process_action get_value done [00:37:41]requested_data is exist [00:37:41]produce_requested_data [00:37:41]requested_item fm.sale.total is exist - process it [00:37:41]SAM_PROTO_GetFMData [00:37:41]wFMCommunicate request_size=4 [00:37:41]MH_SAM_APDU [00:37:41]CAPDU: 80 13 03 00 [00:37:41]Write to MH i2c: E2 08 00 90 1E 80 13 03 00 00 00 00 00 2D [00:37:41]Write i2c OK [00:37:41]MH_I2C_Read... [00:37:42]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:37:42]Read from MH i2c: E2 [00:37:42]MH_I2C_Read... [00:37:42]Read from MH i2c: E2 FD 00 [00:37:42]MH_I2C_Read... [00:37:42]Read from MH i2c: E2 FD 00 90 1E 00 BF 04 85 04 BB 04 6E 04 04 00 41 76 00 00 69 04 A1 00 6F 04 04 00 32 76 00 00 B1 04 04 00 D1 CD D2 A3 70 04 04 00 14 B7 4C 83 72 04 04 00 BD 16 86 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 B5 ED 66 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 7C 3C 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 84 [00:37:42]RAPDU: BF 04 85 04 BB 04 6E 04 04 00 41 76 00 00 69 04 A1 00 6F 04 04 00 32 76 00 00 B1 04 04 00 D1 CD D2 A3 70 04 04 00 14 B7 4C 83 72 04 04 00 BD 16 86 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 B5 ED 66 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 7C 3C 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 [00:37:42]wFMCommunicate OK [00:37:42]wFMCommunicate request_size=4 [00:37:42]MH_SAM_APDU [00:37:42]CAPDU: 80 17 00 00 [00:37:42]Write to MH i2c: E2 08 00 91 1E 80 17 00 00 00 00 00 00 2F [00:37:42]Write i2c OK [00:37:42]MH_I2C_Read... [00:37:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:37:42]Read from MH i2c: E2 [00:37:42]MH_I2C_Read... [00:37:42]Read from MH i2c: E2 FD 00 [00:37:42]MH_I2C_Read... [00:37:42]Read from MH i2c: E2 FD 00 91 1E 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 00 [00:37:42]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:37:42]wFMCommunicate OK [00:37:42]wFMCommunicate request_size=4 [00:37:42]MH_SAM_APDU [00:37:42]CAPDU: 80 17 00 00 [00:37:42]Write to MH i2c: E2 08 00 92 1E 80 17 00 00 00 00 00 00 30 [00:37:42]Write i2c OK [00:37:42]MH_I2C_Read... [00:37:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:37:42]Read from MH i2c: E2 [00:37:42]MH_I2C_Read... [00:37:42]Read from MH i2c: E2 FD 00 [00:37:42]MH_I2C_Read... [00:37:42]Read from MH i2c: E2 FD 00 92 1E 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 D4 [00:37:43]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:37:43]wFMCommunicate OK [00:37:43]wFMCommunicate request_size=4 [00:37:43]MH_SAM_APDU [00:37:43]CAPDU: 80 17 00 00 [00:37:43]Write to MH i2c: E2 08 00 93 1E 80 17 00 00 00 00 00 00 31 [00:37:43]Write i2c OK [00:37:43]MH_I2C_Read... [00:37:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:37:43]Read from MH i2c: E2 [00:37:43]MH_I2C_Read... [00:37:43]Read from MH i2c: E2 FD 00 [00:37:43]MH_I2C_Read... [00:37:43]Read from MH i2c: E2 FD 00 93 1E 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 AB [00:37:43]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:37:43]wFMCommunicate OK [00:37:43]wFMCommunicate request_size=4 [00:37:43]MH_SAM_APDU [00:37:43]CAPDU: 80 17 00 00 [00:37:43]Write to MH i2c: E2 08 00 94 1E 80 17 00 00 00 00 00 00 32 [00:37:43]Write i2c OK [00:37:43]MH_I2C_Read... [00:37:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 217! [00:37:43]Read from MH i2c: E2 [00:37:43]MH_I2C_Read... [00:37:43]Read from MH i2c: E2 DC 00 [00:37:43]MH_I2C_Read... [00:37:43]Read from MH i2c: E2 DC 00 94 1E 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 16 [00:37:43]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:37:43]wFMCommunicate OK [00:37:43]SAM_PROTO_GetFMData done [00:37:43]requested_item fm.sale_refund.total is exist - process it [00:37:43]requested_item fm.buy.total is exist - process it [00:37:43]requested_item shift.sale.total is exist - process it [00:37:43]SAM_PROTO_GetShiftData [00:37:43]wFMCommunicate request_size=4 [00:37:43]MH_SAM_APDU [00:37:43]CAPDU: 80 13 02 00 [00:37:43]Write to MH i2c: E2 08 00 95 1E 80 13 02 00 00 00 00 00 31 [00:37:43]Write i2c OK [00:37:43]MH_I2C_Read... [00:37:44]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:37:44]Read from MH i2c: E2 [00:37:44]MH_I2C_Read... [00:37:44]Read from MH i2c: E2 FD 00 [00:37:44]MH_I2C_Read... [00:37:44]Read from MH i2c: E2 FD 00 95 1E 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 A4 [00:37:44]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:37:44]wFMCommunicate OK [00:37:44]wFMCommunicate request_size=4 [00:37:44]MH_SAM_APDU [00:37:44]CAPDU: 80 17 00 00 [00:37:44]Write to MH i2c: E2 08 00 96 1E 80 17 00 00 00 00 00 00 34 [00:37:44]Write i2c OK [00:37:44]MH_I2C_Read... [00:37:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:37:44]Read from MH i2c: E2 [00:37:44]MH_I2C_Read... [00:37:44]Read from MH i2c: E2 FD 00 [00:37:44]MH_I2C_Read... [00:37:44]Read from MH i2c: E2 FD 00 96 1E 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 3C [00:37:44]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:37:45]wFMCommunicate OK [00:37:45]wFMCommunicate request_size=4 [00:37:45]MH_SAM_APDU [00:37:45]CAPDU: 80 17 00 00 [00:37:45]Write to MH i2c: E2 08 00 97 1E 80 17 00 00 00 00 00 00 35 [00:37:45]Write i2c OK [00:37:45]MH_I2C_Read... [00:37:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:37:45]Read from MH i2c: E2 [00:37:45]MH_I2C_Read... [00:37:45]Read from MH i2c: E2 FD 00 [00:37:45]MH_I2C_Read... [00:37:45]Read from MH i2c: E2 FD 00 97 1E 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 07 [00:37:45]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:37:45]wFMCommunicate OK [00:37:45]wFMCommunicate request_size=4 [00:37:45]MH_SAM_APDU [00:37:45]CAPDU: 80 17 00 00 [00:37:45]Write to MH i2c: E2 08 00 98 1E 80 17 00 00 00 00 00 00 36 [00:37:45]Write i2c OK [00:37:45]MH_I2C_Read... [00:37:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:37:45]Read from MH i2c: E2 [00:37:45]MH_I2C_Read... [00:37:45]Read from MH i2c: E2 FD 00 [00:37:45]MH_I2C_Read... [00:37:45]Read from MH i2c: E2 FD 00 98 1E 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 A8 [00:37:45]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:37:46]wFMCommunicate OK [00:37:46]wFMCommunicate request_size=4 [00:37:46]MH_SAM_APDU [00:37:46]CAPDU: 80 17 00 00 [00:37:46]Write to MH i2c: E2 08 00 99 1E 80 17 00 00 00 00 00 00 37 [00:37:46]Write i2c OK [00:37:46]MH_I2C_Read... [00:37:46]OFD Sender: No OFD packet to send [00:37:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [00:37:46]Read from MH i2c: E2 [00:37:46]MH_I2C_Read... [00:37:46]Read from MH i2c: E2 BD 00 [00:37:46]MH_I2C_Read... [00:37:46]Read from MH i2c: E2 BD 00 99 1E 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 1D [00:37:46]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:37:46]wFMCommunicate OK [00:37:46]SAM_PROTO_GetShiftData done [00:37:46]requested_item shift.sale.total_cash is exist - process it [00:37:46]requested_item shift.sale_refund.total is exist - process it [00:37:46]requested_item shift.sale_refund.total_cash is exist - process it [00:37:46]requested_item shift.buy.total is exist - process it [00:37:46]requested_item shift.buy.total_cash is exist - process it [00:37:46]produce_requested_data done [00:37:46]produce_requested_data return {"fm.sale.total":27485014.57,"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:37:46]process_action_free get_value [00:37:46]json_value_free [00:37:46]json_value_free done [00:37:46]process_json_proto returns [00:37:46]Send response to host [00:37:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":27485014.57,"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:37:46]free response buf [00:37:46]execute_script done [00:37:46]execute_script returns [00:37:46]free content buf [00:37:46]Sock 9.Close socket [00:37:46]Sock 9.Thread stoped [00:37:51]OFD Sender: No OFD packet to send [00:37:56]OFD Sender: No OFD packet to send [00:38:01]OFD Sender: No OFD packet to send [00:38:06]OFD Sender: No OFD packet to send [00:38:11]OFD Sender: No OFD packet to send [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:31]OFD Sender: No OFD packet to send [00:38:36]OFD Sender: No OFD packet to send [00:38:41]OFD Sender: No OFD packet to send [00:38:46]OFD Sender: No OFD packet to send [00:38:51]OFD Sender: No OFD packet to send [00:38:56]OFD Sender: No OFD packet to send [00:39:01]OFD Sender: No OFD packet to send [00:39:06]OFD Sender: No OFD packet to send [00:39:11]OFD Sender: No OFD packet to send [00:39:16]OFD Sender: No OFD packet to send [00:39:21]OFD Sender: No OFD packet to send [00:39:26]OFD Sender: No OFD packet to send [00:39:31]OFD Sender: No OFD packet to send [00:39:36]OFD Sender: No OFD packet to send [00:39:41]OFD Sender: No OFD packet to send [00:39:46]OFD Sender: No OFD packet to send [00:39:51]OFD Sender: No OFD packet to send [00:39:56]OFD Sender: No OFD packet to send [00:40:01]OFD Sender: No OFD packet to send [00:40:06]OFD Sender: No OFD packet to send [00:40:11]OFD Sender: No OFD packet to send [00:40:16]OFD Sender: No OFD packet to send [00:40:21]OFD Sender: No OFD packet to send [00:40:26]OFD Sender: No OFD packet to send [00:40:31]OFD Sender: No OFD packet to send [00:40:36]OFD Sender: No OFD packet to send [00:40:41]OFD Sender: No OFD packet to send [00:40:46]OFD Sender: No OFD packet to send [00:40:51]OFD Sender: No OFD packet to send [00:40:56]OFD Sender: No OFD packet to send [00:41:01]OFD Sender: No OFD packet to send [00:41:06]OFD Sender: No OFD packet to send [00:41:11]OFD Sender: No OFD packet to send [00:41:16]OFD Sender: No OFD packet to send [00:41:21]OFD Sender: No OFD packet to send [00:41:26]OFD Sender: No OFD packet to send [00:41:31]OFD Sender: No OFD packet to send [00:41:36]OFD Sender: No OFD packet to send [00:41:41]OFD Sender: No OFD packet to send [00:41:46]OFD Sender: No OFD packet to send [00:41:51]OFD Sender: No OFD packet to send [00:41:56]OFD Sender: No OFD packet to send [00:42:01]OFD Sender: No OFD packet to send [00:42:06]OFD Sender: No OFD packet to send [00:42:11]OFD Sender: No OFD packet to send [00:42:16]OFD Sender: No OFD packet to send [00:42:21]OFD Sender: No OFD packet to send [00:42:26]OFD Sender: No OFD packet to send [00:42:31]OFD Sender: No OFD packet to send [00:42:36]OFD Sender: No OFD packet to send [00:42:41]OFD Sender: No OFD packet to send [00:42:46]OFD Sender: No OFD packet to send [00:42:51]OFD Sender: No OFD packet to send [00:42:56]OFD Sender: No OFD packet to send [00:43:01]OFD Sender: No OFD packet to send [00:43:06]OFD Sender: No OFD packet to send [00:43:11]OFD Sender: No OFD packet to send [00:43:16]OFD Sender: No OFD packet to send [00:43:21]OFD Sender: No OFD packet to send [00:43:26]OFD Sender: No OFD packet to send [00:43:31]OFD Sender: No OFD packet to send [00:43:36]OFD Sender: No OFD packet to send [00:43:41]OFD Sender: No OFD packet to send [00:43:46]OFD Sender: No OFD packet to send [00:43:51]OFD Sender: No OFD packet to send [00:43:56]OFD Sender: No OFD packet to send [00:44:01]OFD Sender: No OFD packet to send [00:44:06]OFD Sender: No OFD packet to send [00:44:11]OFD Sender: No OFD packet to send [00:44:16]OFD Sender: No OFD packet to send [00:44:21]OFD Sender: No OFD packet to send [00:44:26]OFD Sender: No OFD packet to send [00:44:31]OFD Sender: No OFD packet to send [00:44:36]OFD Sender: No OFD packet to send [00:44:41]OFD Sender: No OFD packet to send [00:44:46]OFD Sender: No OFD packet to send [00:44:51]OFD Sender: No OFD packet to send [00:44:56]OFD Sender: No OFD packet to send [00:45:01]OFD Sender: No OFD packet to send [00:45:06]OFD Sender: No OFD packet to send [00:45:11]OFD Sender: No OFD packet to send [00:45:16]OFD Sender: No OFD packet to send [00:45:21]OFD Sender: No OFD packet to send [00:45:26]OFD Sender: No OFD packet to send [00:45:31]accept exits with 7 [00:45:31]New connection [00:45:31]New thread 3067489636 created [00:45:31]Thread 3067346276 joined [00:45:31]Waiting for new connection... [00:45:31] Sock 7.Parse request [00:45:31]Sock 7.Check first char [00:45:31]Sock 7.First char is OK [00:45:31]request: POST /json_proto HTTP/1.0 [00:45:31]Method: POST [00:45:31]URL: /json_proto [00:45:31]Method is POST - this is cgi request [00:45:31]url: /json_proto [00:45:31]query_string will be loaded in cgi processing [00:45:31]execute_cgi json_proto POST (null) [00:45:31]execute_cgi path=json_proto method=POST [00:45:31]POST find Content-Length [00:45:31]Host: 172.17.51.3:8080 [00:45:31]Content-Length: 677 [00:45:31]Content-Type: application/json [00:45:31] [00:45:31]POST finish read [00:45:31]Found Content-Length = 677 [00:45:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342906", "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" ] } } [00:45:31]execute_script... [00: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)342906", "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" ] } } [00:45:31]POST & json_proto [00:45:31]process_json_proto [00:45:31]json parsed OK: [00:45:31]protocol is kg_v1.0 [00:45:31]action value=close_receipt [00:45:31]process_action close_receipt [00:45:31]cmd_close_receipt [00:45:31]MH_GetDate [00:45:31]Write to MH i2c: F0 00 00 9A 1E A7 [00:45:31]Write i2c OK [00:45:31]MH_I2C_Read... [00:45:31]Read from MH i2c: F0 [00:45:31]MH_I2C_Read... [00:45:31]Read from MH i2c: F0 09 00 [00:45:31]MH_I2C_Read... [00:45:31]Read from MH i2c: F0 09 00 9A 1E 00 2D A4 15 67 04 C1 95 66 BD [00:45:31]GetLastDocTimeStamp 1729471058 [00:45:31]current date 1729471533 [00:45:31]FM_GetShiftState [00:45:31]SAM_PROTO_GetShiftState [00:45:31]wFMCommunicate request_size=4 [00:45:31]MH_SAM_APDU [00:45:31]CAPDU: 80 13 01 00 [00:45:31]Write to MH i2c: E2 08 00 9B 1E 80 13 01 00 00 00 00 00 36 [00:45:31]Write i2c OK [00:45:31]MH_I2C_Read... [00:45:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:45:31]Read from MH i2c: E2 [00:45:31]MH_I2C_Read... [00:45:31]Read from MH i2c: E2 0E 00 [00:45:31]MH_I2C_Read... [00:45:31]Read from MH i2c: E2 0E 00 9B 1E 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 B2 [00:45:31]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [00:45:31]wFMCommunicate OK [00:45:31]SAM_PROTO_GetShiftState done [00:45:31]FM_GetShiftState done [00:45:31]opened in 1729471058 [00:45:31]opened+sec_in_day 1729557458 [00:45:31]quantity*price = 50041 [00:45:31]sum+1 = 50042 [00:45:31]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 СНО: Общий режим Чек 1 21.10.2024 00:45 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30504 ФПД: 245473675439353 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T004533&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30504&fm=245473675439353&tin=02508201610067®Number=0000000000186857&sum=50000 [00:45:32]StoreToDocumentArchive [00:45:32]shift 115 fd 30504 [00:45:32]save to /storage/0115/doc_00030504 [00:45:32]save last doc name /storage/0115/doc_00030504 to /storage/kkm_last_doc_name [00:45:32]save OK [00:45:32]Clear old archive folders... [00:45:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:45:32]tlvbuf is 01E069A0 [00:45:32]SAM_PROTO_ClearQueue [00:45:32]wFMCommunicate request_size=4 [00:45:32]MH_SAM_APDU [00:45:32]CAPDU: 80 09 00 00 [00:45:32]Write to MH i2c: E2 08 00 A8 1E 80 09 00 00 00 00 00 00 38 [00:45:32]Write i2c OK [00:45:32]MH_I2C_Read... [00:45:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:45:32]Read from MH i2c: E2 [00:45:32]MH_I2C_Read... [00:45:32]Read from MH i2c: E2 03 00 [00:45:32]MH_I2C_Read... [00:45:32]Read from MH i2c: E2 03 00 A8 1E 00 90 00 3A [00:45:32]RAPDU: 90 00 [00:45:32]wFMCommunicate OK [00:45:32]SAM_PROTO_ClearQueue done [00:45:32]KKMCreateOFDPacket [00:45:32]OFDProtocolAddRootSTLVToBuf [00:45:32]FM_MakeSignedData [00:45:32]FM_MakeSignedData [00:45:32]SAM_PROTO_SignData [00:45:32]wFMCommunicate request_size=4 [00:45:32]MH_SAM_APDU [00:45:32]CAPDU: 80 0D 01 02 [00:45:32]Write to MH i2c: E2 08 00 A9 1E 80 0D 01 02 00 00 00 00 40 [00:45:32]Write i2c OK [00:45:32]MH_I2C_Read... [00:45:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:45:32]Read from MH i2c: E2 [00:45:32]MH_I2C_Read... [00:45:32]Read from MH i2c: E2 03 00 [00:45:32]MH_I2C_Read... [00:45:32]Read from MH i2c: E2 03 00 A9 1E 00 90 00 3B [00:45:32]RAPDU: 90 00 [00:45:32]wFMCommunicate OK [00:45:32]wFMCommunicate request_size=255 [00:45:32]MH_SAM_APDU [00: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 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 01 00 00 00 F4 03 04 00 2D A4 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 28 77 00 00 35 04 06 00 DF [00:45:32]Write to MH i2c: E2 02 01 AA 1E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 01 00 00 00 F4 03 04 00 2D A4 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 28 77 00 00 35 04 06 00 DF 00 00 10 [00:45:32]Write i2c OK [00:45:32]MH_I2C_Read... [00:45:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:45:32]Read from MH i2c: E2 [00:45:32]MH_I2C_Read... [00:45:32]Read from MH i2c: E2 03 00 [00:45:32]MH_I2C_Read... [00:45:32]Read from MH i2c: E2 03 00 AA 1E 00 90 00 3C [00:45:32]RAPDU: 90 00 [00:45:32]wFMCommunicate OK [00:45:32]wFMCommunicate request_size=10 [00:45:32]MH_SAM_APDU [00:45:32]CAPDU: 80 0D 02 02 05 41 CB 39 EC F9 [00:45:32]Write to MH i2c: E2 0D 00 AB 1E 80 0D 02 02 05 00 41 CB 39 EC F9 00 00 77 [00:45:32]Write i2c OK [00:45:32]MH_I2C_Read... [00:45:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:45:32]Read from MH i2c: E2 [00:45:32]MH_I2C_Read... [00:45:32]Read from MH i2c: E2 03 00 [00:45:32]MH_I2C_Read... [00:45:32]Read from MH i2c: E2 03 00 AB 1E 00 90 00 3D [00:45:32]RAPDU: 90 00 [00:45:32]wFMCommunicate OK [00:45:32]wFMCommunicate request_size=4 [00:45:32]MH_SAM_APDU [00:45:32]CAPDU: 80 0D 03 02 [00:45:32]Write to MH i2c: E2 08 00 AC 1E 80 0D 03 02 00 00 00 00 45 [00:45:32]Write i2c OK [00:45:32]MH_I2C_Read... [00:45:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:45:32]Read from MH i2c: E2 [00:45:32]MH_I2C_Read... [00:45:32]Read from MH i2c: E2 0B 00 [00:45:32]MH_I2C_Read... [00:45:32]Read from MH i2c: E2 0B 00 AC 1E 00 24 91 79 94 91 1E 8A 59 90 00 9A [00:45:32]RAPDU: 24 91 79 94 91 1E 8A 59 90 00 [00:45:32]wFMCommunicate OK [00:45:32]SAM_PROTO_SignData done [00:45:32]FM_MakeSignedData done [00:45:32]CreateOFDProtocolMessage [00:45:32]wFMCommunicate request_size=4 [00:45:32]MH_SAM_APDU [00:45:32]CAPDU: 80 11 00 00 [00:45:32]Write to MH i2c: E2 08 00 AD 1E 80 11 00 00 00 00 00 00 45 [00:45:32]Write i2c OK [00:45:32]MH_I2C_Read... [00:45:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:45:32]Read from MH i2c: E2 [00:45:32]MH_I2C_Read... [00:45:32]Read from MH i2c: E2 17 00 [00:45:32]MH_I2C_Read... [00:45:32]Read from MH i2c: E2 17 00 AD 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 93 [00:45:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [00:45:32]wFMCommunicate OK [00:45:32]CreateOFDProtocolMessage done [00:45:32]OFDSenderStorePacket 30504 [00:45:32]StoreOFDPacket docnum=30504 [00:45: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 6A 4E 07 01 AA 57 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 01 00 00 00 F4 03 04 00 2D A4 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 28 77 00 00 35 04 06 00 DF 41 CB 39 EC F9 24 91 79 94 91 1E 8A 59 [00:45:32]CheckFolder [00:45:32]dirname=/storage/ofd_packets [00:45:32]CheckFolder done [00:45:32]ProducePacketName [00:45:32]name=ofd_packets/00030504 [00:45:32]NVStorageSaveData ofd_packets/00030504 [00:45:32]File name is /storage/ofd_packets/00030504 [00:45:32]Write 301 bytes [00:45:32]NVStorageSaveData done [00:45:32]OFDSenderStorePacket done [00:45:32]KKMCreateOFDPacket done [00:45:32]NVStorageSaveData kkm_last_timestamp [00:45:32]File name is /storage/kkm_last_timestamp [00:45:32]Write 4 bytes [00:45:32]NVStorageSaveData done [00:45:32]ExternCall_PrintAddStr [00:45:32]wPrintStart [00:45:32]Write to MH i2c: 01 00 00 AE 1E CC [00:45:32]Write i2c OK [00:45:32]MH_I2C_Read... [00:45:32]Read from MH i2c: 01 [00:45:32]MH_I2C_Read... [00:45:32]Read from MH i2c: 01 07 00 [00:45:32]MH_I2C_Read... [00:45:32]Read from MH i2c: 01 07 00 AE 1E 00 00 00 00 00 FF 0F E1 [00:45:32]RasterBufferAndPrint [00:45:32]line Счет N : (1)342906 [00:45:32]line ИНН: 02508201610067 [00:45:32]line Контрольно-Кассовый Чек [00:45:32]line ПРОДАЖА [00:45:32]line ТРК (МРК, ГНК) : 53 [00:45:32]line Товар: 2710124130 [00:45:32]line Аи-92-К-2 [00:45:32]line 7.480 * 66.90 [00:45:32]line = 500.41 [00:45:32]line НДС 12% НСП 1% [00:45:32]line > о реализуемом товаре [00:45:32]line ОКРУГЛЕНИЕ: -0.41 [00:45:32]line ИТОГО: 500.00 [00:45:32]line Внесено: 500.00 [00:45:32]line СДАЧА: 0.00 [00:45:32]line НСП 1% : 4.43 [00:45:32]line НДС 12% : 53.14 [00:45:32]line Наличными: 500.00 [00:45:32]line Безнал.: 0.00 [00:45:32]line Место: АЗС № 78 "Партнер Нефть" [00:45:32]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [00:45:32]line СНО: Общий режим [00:45:32]line Чек 1 21.10.2024 00:45 [00:45:32]line Смена: 115 ФФД: 1.0 [00:45:32]line ЗНМ: 0300000137 [00:45:32]line РНМ: 0000000000186857 [00:45:32]line Версия ККМ: v1.0 [00:45:32]line ФМ: 0000000002094219 [00:45:32]line ФД: 30504 [00:45:32]line ФПД: 245473675439353 [00:45:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T004533&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30504&fm=245473675439353&tin=02508201610067®Number=0000000000186857&sum=50000 [00:45:33]OFD Sender: Processing packet 30504 [packets to send 10, broken 9] [00:45:33]ProducePacketName [00:45:33]name=ofd_packets/00030504 [00:45:33]OFD Sender: To server: pG, [00:45:33]CommunicateWithHost lk.salyk.kg:30040 [00:45:33]ConnectInit lk.salyk.kg [00:45:33]written 0, free lines is 4095 [00:45:33]Connected sock=10 [00: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 6A 4E 07 01 AA 57 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 01 00 00 00 F4 03 04 00 2D A4 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 28 77 00 00 35 04 06 00 DF 41 CB 39 EC F9 24 91 79 94 91 1E 8A 59 [00: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 EB 39 47 00 B1 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 28 77 00 00 F4 03 04 00 AF 4E 15 67 B6 04 01 00 00 EA A7 5A A4 27 5B 58 ED [00:45:33]CommunicateWithHost err = 0 [00:45:33]CheckOFDResponse [00:45:33]1017 (14) - 77093643461234 [00:45:33]1041 (16) - 0000000002094219 [00:45:33]1040 (4) - 30504 [00:45:33]1012 (4) - 20.10.2024 18:40 [00:45:33]1206 (1) - 0 [00:45:33]OFD Sender: Remove packet 30504 [00:45:33]ProducePacketName [00:45:33]name=ofd_packets/00030504 [00:45:33]NVStorageDeleteData [00:45:33]Write to MH i2c: 01 00 00 D9 1E F7 [00:45:33]Write i2c OK [00:45:33]MH_I2C_Read... [00:45:33]Read from MH i2c: 01 [00:45:33]MH_I2C_Read... [00:45:33]Read from MH i2c: 01 07 00 [00:45:33]MH_I2C_Read... [00:45:33]Read from MH i2c: 01 07 00 D9 1E 00 00 00 00 00 E1 0C EB [00:45:33]RasterBufferAndPrint [00:45:33]line [00:45:33]line [00:45:33]line [00:45:33]line [00:45:33]line [00:45:33]written 0, free lines is 3303 [00:45:33]MH_Cut [00:45:33]Write to MH i2c: D1 01 00 E0 1E 01 D0 [00:45:33]Write i2c OK [00:45:33]MH_I2C_Read... [00:45:33]Read from MH i2c: D1 [00:45:33]MH_I2C_Read... [00:45:33]Read from MH i2c: D1 01 00 [00:45:33]MH_I2C_Read... [00:45:33]Read from MH i2c: D1 01 00 E0 1E 00 CF [00:45:33]Write to MH i2c: 01 00 00 E1 1E FF [00:45:33]Write i2c OK [00:45:33]MH_I2C_Read... [00:45:34]OFD Sender: No OFD packet to send [00:45:34]*** Cut start [00:45:34]*** Partial cut [00:45:34]*** CUTSNS_PIN = 1 [00:45:34]*** CUTSNS_PIN = 0 [00:45:34]*** Brake cut motor [00:45:34]Read from MH i2c: 01 [00:45:34]MH_I2C_Read... [00:45:34]*** Stop cut motor [00:45:34]*** Cut end [00:45:34]Read from MH i2c: 01 07 00 [00:45:34]MH_I2C_Read... [00:45:34]Read from MH i2c: 01 07 00 E1 1E 00 00 00 00 00 FF 0F 14 [00:45:34]process_action close_receipt done [00:45:34]requested_data is exist [00:45:34]produce_requested_data [00:45:34]requested_item fm.sn is exist - process it [00:45:34]wFMCommunicate request_size=4 [00:45:34]MH_SAM_APDU [00:45:34]CAPDU: 80 11 00 00 [00:45:34]Write to MH i2c: E2 08 00 E2 1E 80 11 00 00 00 00 00 00 7A [00:45:34]Write i2c OK [00:45:34]MH_I2C_Read... [00:45:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:45:35]Read from MH i2c: E2 [00:45:35]MH_I2C_Read... [00:45:35]Read from MH i2c: E2 17 00 [00:45:35]MH_I2C_Read... [00:45:35]Read from MH i2c: E2 17 00 E2 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 C8 [00: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 [00:45:35]wFMCommunicate OK [00:45:35]requested_item fd.num is exist - process it [00:45:35]SAM_PROTO_GetFieldsCounters [00:45:35]wFMCommunicate request_size=4 [00:45:35]MH_SAM_APDU [00:45:35]CAPDU: 80 13 00 00 [00:45:35]Write to MH i2c: E2 08 00 E3 1E 80 13 00 00 00 00 00 00 7D [00:45:35]Write i2c OK [00:45:35]MH_I2C_Read... [00:45:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:45:35]Read from MH i2c: E2 [00:45:35]MH_I2C_Read... [00:45:35]Read from MH i2c: E2 62 00 [00:45:35]MH_I2C_Read... [00:45:35]Read from MH i2c: E2 62 00 E3 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 77 00 00 0E 04 04 00 73 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 B8 [00: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 28 77 00 00 0E 04 04 00 73 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:45:35]wFMCommunicate OK [00:45:35]SAM_PROTO_GetFieldsCounters done [00:45:35]requested_item shift.num is exist - process it [00:45:35]requested_item shift.opened is exist - process it [00:45:35]req_shift_opened [00:45:35]FM_GetShiftState [00:45:35]SAM_PROTO_GetShiftState [00:45:35]wFMCommunicate request_size=4 [00:45:35]MH_SAM_APDU [00:45:35]CAPDU: 80 13 01 00 [00:45:35]Write to MH i2c: E2 08 00 E4 1E 80 13 01 00 00 00 00 00 7F [00:45:35]Write i2c OK [00:45:35]MH_I2C_Read... [00:45:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:45:35]Read from MH i2c: E2 [00:45:35]MH_I2C_Read... [00:45:35]Read from MH i2c: E2 0E 00 [00:45:35]MH_I2C_Read... [00:45:35]Read from MH i2c: E2 0E 00 E4 1E 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 FB [00:45:35]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [00:45:35]wFMCommunicate OK [00:45:35]SAM_PROTO_GetShiftState done [00:45:35]FM_GetShiftState done [00:45:35]req_shift_opened done [00:45:35]requested_item shift.open_date is exist - process it [00:45:35]req_shift_open_date [00:45:35]req_shift_open_date done [00:45:35]produce_requested_data done [00:45:35]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30504,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [00:45:35]process_action_free close_receipt [00:45:35]json_value_free [00:45:35]json_value_free done [00:45:35]process_json_proto returns [00:45:35]Send response to host [00:45:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30504,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [00:45:35]free response buf [00:45:35]execute_script done [00:45:35]execute_script returns [00:45:35]free content buf [00:45:35]Sock 7.Close socket [00:45:35]Sock 7.Thread stoped [00:45:39]OFD Sender: No OFD packet to send [00:45:44]OFD Sender: No OFD packet to send [00:45:49]OFD Sender: No OFD packet to send [00:45:54]OFD Sender: No OFD packet to send [00:45:59]OFD Sender: No OFD packet to send [00:46:04]OFD Sender: No OFD packet to send [00:46:09]OFD Sender: No OFD packet to send [00:46:14]OFD Sender: No OFD packet to send [00:46:19]OFD Sender: No OFD packet to send [00:46:24]OFD Sender: No OFD packet to send [00:46:29]OFD Sender: No OFD packet to send [00:46:34]OFD Sender: No OFD packet to send [00:46:39]OFD Sender: No OFD packet to send [00:46:44]OFD Sender: No OFD packet to send [00:46:49]OFD Sender: No OFD packet to send [00:46:54]OFD Sender: No OFD packet to send [00:46:59]OFD Sender: No OFD packet to send [00:47:04]OFD Sender: No OFD packet to send [00:47:09]OFD Sender: No OFD packet to send [00:47:14]OFD Sender: No OFD packet to send [00:47:19]OFD Sender: No OFD packet to send [00:47:24]OFD Sender: No OFD packet to send [00:47:29]OFD Sender: No OFD packet to send [00:47:34]OFD Sender: No OFD packet to send [00:47:39]OFD Sender: No OFD packet to send [00:47:44]OFD Sender: No OFD packet to send [00:47:49]OFD Sender: No OFD packet to send [00:47:54]OFD Sender: No OFD packet to send [00:47:59]OFD Sender: No OFD packet to send [00:48:04]OFD Sender: No OFD packet to send [00:48:09]OFD Sender: No OFD packet to send [00:48:14]OFD Sender: No OFD packet to send [00:48:19]OFD Sender: No OFD packet to send [00:48:24]OFD Sender: No OFD packet to send [00:48:29]OFD Sender: No OFD packet to send [00:48:34]OFD Sender: No OFD packet to send [00:48:39]OFD Sender: No OFD packet to send [00:48:44]OFD Sender: No OFD packet to send [00:48:49]OFD Sender: No OFD packet to send [00:48:54]OFD Sender: No OFD packet to send [00:48:59]OFD Sender: No OFD packet to send [00:49:04]OFD Sender: No OFD packet to send [00:49:09]OFD Sender: No OFD packet to send [00:49:14]OFD Sender: No OFD packet to send [00:49:19]OFD Sender: No OFD packet to send [00:49:24]OFD Sender: No OFD packet to send [00:49:29]OFD Sender: No OFD packet to send [00:49:34]OFD Sender: No OFD packet to send [00:49:39]OFD Sender: No OFD packet to send [00:49:44]OFD Sender: No OFD packet to send [00:49:49]OFD Sender: No OFD packet to send [00:49:54]OFD Sender: No OFD packet to send [00:49:59]OFD Sender: No OFD packet to send [00:50:04]OFD Sender: No OFD packet to send [00:50:09]OFD Sender: No OFD packet to send [00:50:14]OFD Sender: No OFD packet to send [00:50:19]OFD Sender: No OFD packet to send [00:50:24]OFD Sender: No OFD packet to send [00:50:29]OFD Sender: No OFD packet to send [00:50:34]OFD Sender: No OFD packet to send [00:50:39]OFD Sender: No OFD packet to send [00:50:44]OFD Sender: No OFD packet to send [00:50:49]OFD Sender: No OFD packet to send [00:50:54]OFD Sender: No OFD packet to send [00:50:59]OFD Sender: No OFD packet to send [00:51:04]OFD Sender: No OFD packet to send [00:51:09]OFD Sender: No OFD packet to send [00:51:14]OFD Sender: No OFD packet to send [00:51:19]OFD Sender: No OFD packet to send [00:51:24]OFD Sender: No OFD packet to send [00:51:29]OFD Sender: No OFD packet to send [00:51:34]OFD Sender: No OFD packet to send [00:51:39]OFD Sender: No OFD packet to send [00:51:44]OFD Sender: No OFD packet to send [00:51:49]OFD Sender: No OFD packet to send [00:51:54]OFD Sender: No OFD packet to send [00:51:59]OFD Sender: No OFD packet to send [00:52:04]OFD Sender: No OFD packet to send [00:52:09]OFD Sender: No OFD packet to send [00:52:14]OFD Sender: No OFD packet to send [00:52:19]OFD Sender: No OFD packet to send [00:52:24]OFD Sender: No OFD packet to send [00:52:29]OFD Sender: No OFD packet to send [00:52:34]OFD Sender: No OFD packet to send [00:52:39]OFD Sender: No OFD packet to send [00:52:44]OFD Sender: No OFD packet to send [00:52:49]OFD Sender: No OFD packet to send [00:52:54]OFD Sender: No OFD packet to send [00:52:59]OFD Sender: No OFD packet to send [00:53:04]OFD Sender: No OFD packet to send [00:53:09]OFD Sender: No OFD packet to send [00:53:14]OFD Sender: No OFD packet to send [00:53:19]OFD Sender: No OFD packet to send [00:53:24]OFD Sender: No OFD packet to send [00:53:29]OFD Sender: No OFD packet to send [00:53:34]OFD Sender: No OFD packet to send [00:53:39]OFD Sender: No OFD packet to send [00:53:44]OFD Sender: No OFD packet to send [00:53:49]OFD Sender: No OFD packet to send [00:53:54]OFD Sender: No OFD packet to send [00:53:59]OFD Sender: No OFD packet to send [00:54:04]OFD Sender: No OFD packet to send [00:54:09]OFD Sender: No OFD packet to send [00:54:14]OFD Sender: No OFD packet to send [00:54:19]OFD Sender: No OFD packet to send [00:54:24]OFD Sender: No OFD packet to send [00:54:29]OFD Sender: No OFD packet to send [00:54:34]OFD Sender: No OFD packet to send [00:54:39]OFD Sender: No OFD packet to send [00:54:44]OFD Sender: No OFD packet to send [00:54:49]OFD Sender: No OFD packet to send [00:54:54]OFD Sender: No OFD packet to send [00:54:59]OFD Sender: No OFD packet to send [00:55:04]OFD Sender: No OFD packet to send [00:55:09]OFD Sender: No OFD packet to send [00:55:14]OFD Sender: No OFD packet to send [00:55:19]OFD Sender: No OFD packet to send [00:55:24]OFD Sender: No OFD packet to send [00:55:29]OFD Sender: No OFD packet to send [00:55:34]OFD Sender: No OFD packet to send [00:55:39]OFD Sender: No OFD packet to send [00:55:44]OFD Sender: No OFD packet to send [00:55:49]OFD Sender: No OFD packet to send [00:55:54]OFD Sender: No OFD packet to send [00:55:59]OFD Sender: No OFD packet to send [00:56:04]OFD Sender: No OFD packet to send [00:56:09]OFD Sender: No OFD packet to send [00:56:14]OFD Sender: No OFD packet to send [00:56:19]OFD Sender: No OFD packet to send [00:56:24]OFD Sender: No OFD packet to send [00:56:29]OFD Sender: No OFD packet to send [00:56:34]OFD Sender: No OFD packet to send [00:56:39]OFD Sender: No OFD packet to send [00:56:44]OFD Sender: No OFD packet to send [00:56:49]OFD Sender: No OFD packet to send [00:56:54]OFD Sender: No OFD packet to send [00:56:59]OFD Sender: No OFD packet to send [00:57:04]OFD Sender: No OFD packet to send [00:57:09]OFD Sender: No OFD packet to send [00:57:14]OFD Sender: No OFD packet to send [00:57:19]OFD Sender: No OFD packet to send [00:57:24]OFD Sender: No OFD packet to send [00:57:29]OFD Sender: No OFD packet to send [00:57:34]OFD Sender: No OFD packet to send [00:57:39]OFD Sender: No OFD packet to send [00:57:44]OFD Sender: No OFD packet to send [00:57:49]OFD Sender: No OFD packet to send [00:57:54]OFD Sender: No OFD packet to send [00:57:59]OFD Sender: No OFD packet to send [00:58:04]OFD Sender: No OFD packet to send [00:58:09]OFD Sender: No OFD packet to send [00:58:14]OFD Sender: No OFD packet to send [00:58:19]OFD Sender: No OFD packet to send [00:58:24]OFD Sender: No OFD packet to send [00:58:29]OFD Sender: No OFD packet to send [00:58:34]OFD Sender: No OFD packet to send [00:58:39]OFD Sender: No OFD packet to send [00:58:44]OFD Sender: No OFD packet to send [00:58:49]OFD Sender: No OFD packet to send [00:58:54]OFD Sender: No OFD packet to send [00:58:59]OFD Sender: No OFD packet to send [00:59:04]OFD Sender: No OFD packet to send [00:59:07]accept exits with 9 [00:59:07]New connection [00:59:07]New thread 3067346276 created [00:59:07]Thread 3067489636 joined [00:59:07]Waiting for new connection... [00:59:07] Sock 9.Parse request [00:59:07]Sock 9.Check first char [00:59:07]Sock 9.First char is OK [00:59:07]request: POST /json_proto HTTP/1.0 [00:59:07]Method: POST [00:59:07]URL: /json_proto [00:59:07]Method is POST - this is cgi request [00:59:07]url: /json_proto [00:59:07]query_string will be loaded in cgi processing [00:59:07]execute_cgi json_proto POST (null) [00:59:07]execute_cgi path=json_proto method=POST [00:59:07]POST find Content-Length [00:59:07]Host: 172.17.51.3:8080 [00:59:07]Content-Length: 682 [00:59:07]Content-Type: application/json [00:59:07] [00:59:07]POST finish read [00:59:07]Found Content-Length = 682 [00:59:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342907", "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" : 26.910, "sum" : 1800.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1800.00, "total" : 1800.00, "payments": [ { "type": 0, "sum" : 1800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:59:07]execute_script... [00:59: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)342907", "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" : 26.910, "sum" : 1800.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1800.00, "total" : 1800.00, "payments": [ { "type": 0, "sum" : 1800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:59:07]POST & json_proto [00:59:07]process_json_proto [00:59:07]json parsed OK: [00:59:07]protocol is kg_v1.0 [00:59:07]action value=close_receipt [00:59:07]process_action close_receipt [00:59:07]cmd_close_receipt [00:59:07]MH_GetDate [00:59:07]Write to MH i2c: F0 00 00 E5 1E F2 [00:59:07]Write i2c OK [00:59:07]MH_I2C_Read... [00:59:07]Read from MH i2c: F0 [00:59:07]MH_I2C_Read... [00:59:07]Read from MH i2c: F0 09 00 [00:59:07]MH_I2C_Read... [00:59:07]Read from MH i2c: F0 09 00 E5 1E 00 5D A7 15 67 04 C1 95 66 3B [00:59:07]GetLastDocTimeStamp 1729471533 [00:59:07]current date 1729472349 [00:59:07]FM_GetShiftState [00:59:07]SAM_PROTO_GetShiftState [00:59:07]wFMCommunicate request_size=4 [00:59:07]MH_SAM_APDU [00:59:07]CAPDU: 80 13 01 00 [00:59:07]Write to MH i2c: E2 08 00 E6 1E 80 13 01 00 00 00 00 00 81 [00:59:07]Write i2c OK [00:59:07]MH_I2C_Read... [00:59:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:59:07]Read from MH i2c: E2 [00:59:07]MH_I2C_Read... [00:59:07]Read from MH i2c: E2 0E 00 [00:59:07]MH_I2C_Read... [00:59:07]Read from MH i2c: E2 0E 00 E6 1E 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 FD [00:59:07]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [00:59:07]wFMCommunicate OK [00:59:07]SAM_PROTO_GetShiftState done [00:59:07]FM_GetShiftState done [00:59:07]opened in 1729471058 [00:59:07]opened+sec_in_day 1729557458 [00:59:07]quantity*price = 180027 [00:59:07]sum+1 = 180029 [00:59:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 1800.00 Внесено: 1800.00 СДАЧА: 0.00 НСП 1% : 15.93 НДС 12% : 191.18 Наличными: 1800.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 2 21.10.2024 00:59 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30505 ФПД: 174001868923994 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T005909&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30505&fm=174001868923994&tin=02508201610067®Number=0000000000186857&sum=180000 [00:59:08]StoreToDocumentArchive [00:59:08]shift 115 fd 30505 [00:59:08]save to /storage/0115/doc_00030505 [00:59:08]save last doc name /storage/0115/doc_00030505 to /storage/kkm_last_doc_name [00:59:08]save OK [00:59:08]Clear old archive folders... [00:59:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:59:08]tlvbuf is 01E060D0 [00:59:08]SAM_PROTO_ClearQueue [00:59:08]wFMCommunicate request_size=4 [00:59:08]MH_SAM_APDU [00:59:08]CAPDU: 80 09 00 00 [00:59:08]Write to MH i2c: E2 08 00 F3 1E 80 09 00 00 00 00 00 00 83 [00:59:08]Write i2c OK [00:59:08]MH_I2C_Read... [00:59:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:59:08]Read from MH i2c: E2 [00:59:08]MH_I2C_Read... [00:59:08]Read from MH i2c: E2 03 00 [00:59:08]MH_I2C_Read... [00:59:08]Read from MH i2c: E2 03 00 F3 1E 00 90 00 85 [00:59:08]RAPDU: 90 00 [00:59:08]wFMCommunicate OK [00:59:08]SAM_PROTO_ClearQueue done [00:59:08]KKMCreateOFDPacket [00:59:08]OFDProtocolAddRootSTLVToBuf [00:59:08]FM_MakeSignedData [00:59:08]FM_MakeSignedData [00:59:08]SAM_PROTO_SignData [00:59:08]wFMCommunicate request_size=4 [00:59:08]MH_SAM_APDU [00:59:08]CAPDU: 80 0D 01 02 [00:59:08]Write to MH i2c: E2 08 00 F4 1E 80 0D 01 02 00 00 00 00 8B [00:59:08]Write i2c OK [00:59:08]MH_I2C_Read... [00:59:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:59:08]Read from MH i2c: E2 [00:59:08]MH_I2C_Read... [00:59:08]Read from MH i2c: E2 03 00 [00:59:08]MH_I2C_Read... [00:59:08]Read from MH i2c: E2 03 00 F4 1E 00 90 00 86 [00:59:08]RAPDU: 90 00 [00:59:08]wFMCommunicate OK [00:59:08]wFMCommunicate request_size=255 [00:59:08]MH_SAM_APDU [00:59: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 1E 69 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 3C BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AE 4A 00 00 00 00 07 04 06 00 20 BF 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 5D A7 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 29 77 00 00 35 04 06 00 9E [00:59:08]Write to MH i2c: E2 02 01 F5 1E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 1E 69 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 3C BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AE 4A 00 00 00 00 07 04 06 00 20 BF 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 5D A7 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 29 77 00 00 35 04 06 00 9E 00 00 83 [00:59:08]Write i2c OK [00:59:08]MH_I2C_Read... [00:59:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:59:09]Read from MH i2c: E2 [00:59:09]MH_I2C_Read... [00:59:09]Read from MH i2c: E2 03 00 [00:59:09]MH_I2C_Read... [00:59:09]Read from MH i2c: E2 03 00 F5 1E 00 90 00 87 [00:59:09]RAPDU: 90 00 [00:59:09]wFMCommunicate OK [00:59:09]wFMCommunicate request_size=10 [00:59:09]MH_SAM_APDU [00:59:09]CAPDU: 80 0D 02 02 05 40 F7 96 64 5A [00:59:09]Write to MH i2c: E2 0D 00 F6 1E 80 0D 02 02 05 00 40 F7 96 64 5A 00 00 23 [00:59:09]Write i2c OK [00:59:09]MH_I2C_Read... [00:59:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:59:09]Read from MH i2c: E2 [00:59:09]MH_I2C_Read... [00:59:09]Read from MH i2c: E2 03 00 [00:59:09]MH_I2C_Read... [00:59:09]Read from MH i2c: E2 03 00 F6 1E 00 90 00 88 [00:59:09]RAPDU: 90 00 [00:59:09]wFMCommunicate OK [00:59:09]wFMCommunicate request_size=4 [00:59:09]MH_SAM_APDU [00:59:09]CAPDU: 80 0D 03 02 [00:59:09]Write to MH i2c: E2 08 00 F7 1E 80 0D 03 02 00 00 00 00 90 [00:59:09]Write i2c OK [00:59:09]MH_I2C_Read... [00:59:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:59:09]Read from MH i2c: E2 [00:59:09]MH_I2C_Read... [00:59:09]Read from MH i2c: E2 0B 00 [00:59:09]MH_I2C_Read... [00:59:09]Read from MH i2c: E2 0B 00 F7 1E 00 01 BF 52 93 CA B5 9E 2C 90 00 7F [00:59:09]RAPDU: 01 BF 52 93 CA B5 9E 2C 90 00 [00:59:09]wFMCommunicate OK [00:59:09]SAM_PROTO_SignData done [00:59:09]FM_MakeSignedData done [00:59:09]CreateOFDProtocolMessage [00:59:09]wFMCommunicate request_size=4 [00:59:09]MH_SAM_APDU [00:59:09]CAPDU: 80 11 00 00 [00:59:09]Write to MH i2c: E2 08 00 F8 1E 80 11 00 00 00 00 00 00 90 [00:59:09]Write i2c OK [00:59:09]MH_I2C_Read... [00:59:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:59:09]Read from MH i2c: E2 [00:59:09]MH_I2C_Read... [00:59:09]Read from MH i2c: E2 17 00 [00:59:09]MH_I2C_Read... [00:59:09]Read from MH i2c: E2 17 00 F8 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 DE [00:59:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [00:59:09]wFMCommunicate OK [00:59:09]CreateOFDProtocolMessage done [00:59:09]OFDSenderStorePacket 30505 [00:59:09]StoreOFDPacket docnum=30505 [00:59: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 6B FB 07 01 91 22 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 1E 69 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 3C BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AE 4A 00 00 00 00 07 04 06 00 20 BF 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 5D A7 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 29 77 00 00 35 04 06 00 9E 40 F7 96 64 5A 01 BF 52 93 CA B5 9E 2C [00:59:09]CheckFolder [00:59:09]dirname=/storage/ofd_packets [00:59:09]CheckFolder done [00:59:09]ProducePacketName [00:59:09]name=ofd_packets/00030505 [00:59:09]NVStorageSaveData ofd_packets/00030505 [00:59:09]File name is /storage/ofd_packets/00030505 [00:59:09]Write 301 bytes [00:59:09]NVStorageSaveData done [00:59:09]OFDSenderStorePacket done [00:59:09]KKMCreateOFDPacket done [00:59:09]NVStorageSaveData kkm_last_timestamp [00:59:09]File name is /storage/kkm_last_timestamp [00:59:09]Write 4 bytes [00:59:09]NVStorageSaveData done [00:59:09]ExternCall_PrintAddStr [00:59:09]wPrintStart [00:59:09]Write to MH i2c: 01 00 00 F9 1E 17 [00:59:09]Write i2c OK [00:59:09]MH_I2C_Read... [00:59:09]Read from MH i2c: 01 [00:59:09]MH_I2C_Read... [00:59:09]Read from MH i2c: 01 07 00 [00:59:09]MH_I2C_Read... [00:59:09]Read from MH i2c: 01 07 00 F9 1E 00 00 00 00 00 FF 0F 2C [00:59:09]RasterBufferAndPrint [00:59:09]line Счет N : (1)342907 [00:59:09]line ИНН: 02508201610067 [00:59:09]line Контрольно-Кассовый Чек [00:59:09]line ПРОДАЖА [00:59:09]line ТРК (МРК, ГНК) : 33 [00:59:09]line Товар: 2710124130 [00:59:09]line Аи-92-К-2 [00:59:09]line 26.910 * 66.90 [00:59:09]line = 1800.28 [00:59:09]line НДС 12% НСП 1% [00:59:09]line > о реализуемом товаре [00:59:09]line ОКРУГЛЕНИЕ: -0.28 [00:59:09]line ИТОГО: 1800.00 [00:59:09]line Внесено: 1800.00 [00:59:09]line СДАЧА: 0.00 [00:59:09]line НСП 1% : 15.93 [00:59:09]line НДС 12% : 191.18 [00:59:09]line Наличными: 1800.00 [00:59:09]line Безнал.: 0.00 [00:59:09]line Место: АЗС № 78 "Партнер Нефть" [00:59:09]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [00:59:09]line СНО: Общий режим [00:59:09]line Чек 2 21.10.2024 00:59 [00:59:09]line Смена: 115 ФФД: 1.0 [00:59:09]line ЗНМ: 0300000137 [00:59:09]line РНМ: 0000000000186857 [00:59:09]line Версия ККМ: v1.0 [00:59:09]line ФМ: 0000000002094219 [00:59:09]line ФД: 30505 [00:59:09]line ФПД: 174001868923994 [00:59:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T005909&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30505&fm=174001868923994&tin=02508201610067®Number=0000000000186857&sum=180000 [00:59:09]OFD Sender: Processing packet 30505 [packets to send 10, broken 9] [00:59:09]ProducePacketName [00:59:09]name=ofd_packets/00030505 [00:59:09]OFD Sender: To server: pG, [00:59:09]CommunicateWithHost lk.salyk.kg:30040 [00:59:09]ConnectInit lk.salyk.kg [00:59:09]written 0, free lines is 4095 [00:59:09]Connected sock=10 [00:59: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 6B FB 07 01 91 22 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 1E 69 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 3C BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AE 4A 00 00 00 00 07 04 06 00 20 BF 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 5D A7 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 29 77 00 00 35 04 06 00 9E 40 F7 96 64 5A 01 BF 52 93 CA B5 9E 2C [00:59: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 F5 D2 47 00 6B 93 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 29 77 00 00 F4 03 04 00 DF 51 15 67 B6 04 01 00 00 29 CA CF F1 95 A8 8C 9F [00:59:09]CommunicateWithHost err = 0 [00:59:09]CheckOFDResponse [00:59:09]1017 (14) - 77093643461234 [00:59:09]1041 (16) - 0000000002094219 [00:59:09]1040 (4) - 30505 [00:59:09]1012 (4) - 20.10.2024 18:54 [00:59:09]1206 (1) - 0 [00:59:09]OFD Sender: Remove packet 30505 [00:59:09]ProducePacketName [00:59:09]name=ofd_packets/00030505 [00:59:09]NVStorageDeleteData [00:59:10]Write to MH i2c: 01 00 00 24 1F 43 [00:59:10]Write i2c OK [00:59:10]MH_I2C_Read... [00:59:10]Read from MH i2c: 01 [00:59:10]MH_I2C_Read... [00:59:10]Read from MH i2c: 01 07 00 [00:59:10]MH_I2C_Read... [00:59:10]Read from MH i2c: 01 07 00 24 1F 00 00 00 00 00 ED 0C 43 [00:59:10]RasterBufferAndPrint [00:59:10]line [00:59:10]line [00:59:10]line [00:59:10]line [00:59:10]line [00:59:10]written 0, free lines is 3315 [00:59:10]MH_Cut [00:59:10]Write to MH i2c: D1 01 00 2B 1F 01 1C [00:59:10]Write i2c OK [00:59:10]MH_I2C_Read... [00:59:10]Read from MH i2c: D1 [00:59:10]MH_I2C_Read... [00:59:10]Read from MH i2c: D1 01 00 [00:59:10]MH_I2C_Read... [00:59:10]Read from MH i2c: D1 01 00 2B 1F 00 1B [00:59:10]Write to MH i2c: 01 00 00 2C 1F 4B [00:59:10]Write i2c OK [00:59:10]MH_I2C_Read... [00:59:10]OFD Sender: No OFD packet to send [00:59:10]*** Cut start [00:59:10]*** Partial cut [00:59:10]*** CUTSNS_PIN = 1 [00:59:10]*** CUTSNS_PIN = 0 [00:59:11]*** Brake cut motor [00:59:11]Read from MH i2c: 01 [00:59:11]MH_I2C_Read... [00:59:11]*** Stop cut motor [00:59:11]*** Cut end [00:59:11]Read from MH i2c: 01 07 00 [00:59:11]MH_I2C_Read... [00:59:11]Read from MH i2c: 01 07 00 2C 1F 00 00 00 00 00 FF 0F 60 [00:59:11]process_action close_receipt done [00:59:11]requested_data is exist [00:59:11]produce_requested_data [00:59:11]requested_item fm.sn is exist - process it [00:59:11]wFMCommunicate request_size=4 [00:59:11]MH_SAM_APDU [00:59:11]CAPDU: 80 11 00 00 [00:59:11]Write to MH i2c: E2 08 00 2D 1F 80 11 00 00 00 00 00 00 C6 [00:59:11]Write i2c OK [00:59:11]MH_I2C_Read... [00:59:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:59:11]Read from MH i2c: E2 [00:59:11]MH_I2C_Read... [00:59:11]Read from MH i2c: E2 17 00 [00:59:11]MH_I2C_Read... [00:59:11]Read from MH i2c: E2 17 00 2D 1F 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:59:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [00:59:11]wFMCommunicate OK [00:59:11]requested_item fd.num is exist - process it [00:59:11]SAM_PROTO_GetFieldsCounters [00:59:11]wFMCommunicate request_size=4 [00:59:11]MH_SAM_APDU [00:59:11]CAPDU: 80 13 00 00 [00:59:11]Write to MH i2c: E2 08 00 2E 1F 80 13 00 00 00 00 00 00 C9 [00:59:11]Write i2c OK [00:59:11]MH_I2C_Read... [00:59:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:59:11]Read from MH i2c: E2 [00:59:11]MH_I2C_Read... [00:59:11]Read from MH i2c: E2 62 00 [00:59:11]MH_I2C_Read... [00:59:11]Read from MH i2c: E2 62 00 2E 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 77 00 00 0E 04 04 00 73 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 08 [00:59: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 29 77 00 00 0E 04 04 00 73 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:59:11]wFMCommunicate OK [00:59:11]SAM_PROTO_GetFieldsCounters done [00:59:11]requested_item shift.num is exist - process it [00:59:11]requested_item shift.opened is exist - process it [00:59:11]req_shift_opened [00:59:11]FM_GetShiftState [00:59:11]SAM_PROTO_GetShiftState [00:59:11]wFMCommunicate request_size=4 [00:59:11]MH_SAM_APDU [00:59:11]CAPDU: 80 13 01 00 [00:59:11]Write to MH i2c: E2 08 00 2F 1F 80 13 01 00 00 00 00 00 CB [00:59:11]Write i2c OK [00:59:11]MH_I2C_Read... [00:59:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:59:11]Read from MH i2c: E2 [00:59:11]MH_I2C_Read... [00:59:11]Read from MH i2c: E2 0E 00 [00:59:11]MH_I2C_Read... [00:59:11]Read from MH i2c: E2 0E 00 2F 1F 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 47 [00:59:11]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [00:59:11]wFMCommunicate OK [00:59:11]SAM_PROTO_GetShiftState done [00:59:11]FM_GetShiftState done [00:59:11]req_shift_opened done [00:59:11]requested_item shift.open_date is exist - process it [00:59:11]req_shift_open_date [00:59:11]req_shift_open_date done [00:59:11]produce_requested_data done [00:59:11]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30505,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [00:59:11]process_action_free close_receipt [00:59:11]json_value_free [00:59:11]json_value_free done [00:59:11]process_json_proto returns [00:59:11]Send response to host [00:59:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30505,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [00:59:11]free response buf [00:59:11]execute_script done [00:59:11]execute_script returns [00:59:11]free content buf [00:59:11]Sock 9.Close socket [00:59:11]Sock 9.Thread stoped [00:59:15]OFD Sender: No OFD packet to send [00:59:20]OFD Sender: No OFD packet to send [00:59:25]OFD Sender: No OFD packet to send [00:59:30]OFD Sender: No OFD packet to send [00:59:35]OFD Sender: No OFD packet to send [00:59:40]OFD Sender: No OFD packet to send [00:59:45]OFD Sender: No OFD packet to send [00:59:50]OFD Sender: No OFD packet to send [00:59:55]OFD Sender: No OFD packet to send [01:00:00]OFD Sender: No OFD packet to send [01:00:05]OFD Sender: No OFD packet to send [01:00:10]OFD Sender: No OFD packet to send [01:00:15]OFD Sender: No OFD packet to send [01:00:20]OFD Sender: No OFD packet to send [01:00:25]OFD Sender: No OFD packet to send [01:00:30]OFD Sender: No OFD packet to send [01:00:35]OFD Sender: No OFD packet to send [01:00:40]OFD Sender: No OFD packet to send [01:00:45]OFD Sender: No OFD packet to send [01:00:47]accept exits with 7 [01:00:47]New connection [01:00:47]New thread 3067489636 created [01:00:47]Thread 3067346276 joined [01:00:47]Waiting for new connection... [01:00:47] Sock 7.Parse request [01:00:47]Sock 7.Check first char [01:00:47]Sock 7.First char is OK [01:00:47]request: POST /json_proto HTTP/1.0 [01:00:47]Method: POST [01:00:47]URL: /json_proto [01:00:47]Method is POST - this is cgi request [01:00:47]url: /json_proto [01:00:47]query_string will be loaded in cgi processing [01:00:47]execute_cgi json_proto POST (null) [01:00:47]execute_cgi path=json_proto method=POST [01:00:47]POST find Content-Length [01:00:47]Host: 172.17.51.3:8080 [01:00:47]Content-Length: 682 [01:00:47]Content-Type: application/json [01:00:47] [01:00:47]POST finish read [01:00:47]Found Content-Length = 682 [01:00:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342908", "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" ] } } [01:00:47]execute_script... [01:00: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)342908", "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" ] } } [01:00:47]POST & json_proto [01:00:47]process_json_proto [01:00:47]json parsed OK: [01:00:47]protocol is kg_v1.0 [01:00:47]action value=close_receipt [01:00:47]process_action close_receipt [01:00:47]cmd_close_receipt [01:00:47]MH_GetDate [01:00:47]Write to MH i2c: F0 00 00 30 1F 3E [01:00:47]Write i2c OK [01:00:47]MH_I2C_Read... [01:00:47]Read from MH i2c: F0 [01:00:47]MH_I2C_Read... [01:00:47]Read from MH i2c: F0 09 00 [01:00:47]MH_I2C_Read... [01:00:47]Read from MH i2c: F0 09 00 30 1F 00 C1 A7 15 67 04 C1 95 66 EB [01:00:47]GetLastDocTimeStamp 1729472349 [01:00:47]current date 1729472449 [01:00:47]FM_GetShiftState [01:00:47]SAM_PROTO_GetShiftState [01:00:47]wFMCommunicate request_size=4 [01:00:47]MH_SAM_APDU [01:00:47]CAPDU: 80 13 01 00 [01:00:47]Write to MH i2c: E2 08 00 31 1F 80 13 01 00 00 00 00 00 CD [01:00:47]Write i2c OK [01:00:47]MH_I2C_Read... [01:00:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:00:47]Read from MH i2c: E2 [01:00:47]MH_I2C_Read... [01:00:47]Read from MH i2c: E2 0E 00 [01:00:47]MH_I2C_Read... [01:00:47]Read from MH i2c: E2 0E 00 31 1F 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 49 [01:00:47]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [01:00:47]wFMCommunicate OK [01:00:47]SAM_PROTO_GetShiftState done [01:00:47]FM_GetShiftState done [01:00:47]opened in 1729471058 [01:00:47]opened+sec_in_day 1729557458 [01:00:47]quantity*price = 100015 [01:00:47]sum+1 = 100017 [01:00:47]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 СНО: Общий режим Чек 3 21.10.2024 01:00 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30506 ФПД: 200970637707597 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T010049&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30506&fm=200970637707597&tin=02508201610067®Number=0000000000186857&sum=100000 [01:00:48]StoreToDocumentArchive [01:00:48]shift 115 fd 30506 [01:00:48]save to /storage/0115/doc_00030506 [01:00:48]save last doc name /storage/0115/doc_00030506 to /storage/kkm_last_doc_name [01:00:48]save OK [01:00:48]Clear old archive folders... [01:00:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:00:48]tlvbuf is 01DD74D0 [01:00:48]SAM_PROTO_ClearQueue [01:00:48]wFMCommunicate request_size=4 [01:00:48]MH_SAM_APDU [01:00:48]CAPDU: 80 09 00 00 [01:00:48]Write to MH i2c: E2 08 00 3E 1F 80 09 00 00 00 00 00 00 CF [01:00:48]Write i2c OK [01:00:48]MH_I2C_Read... [01:00:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:00:48]Read from MH i2c: E2 [01:00:48]MH_I2C_Read... [01:00:48]Read from MH i2c: E2 03 00 [01:00:48]MH_I2C_Read... [01:00:48]Read from MH i2c: E2 03 00 3E 1F 00 90 00 D1 [01:00:48]RAPDU: 90 00 [01:00:48]wFMCommunicate OK [01:00:48]SAM_PROTO_ClearQueue done [01:00:48]KKMCreateOFDPacket [01:00:48]OFDProtocolAddRootSTLVToBuf [01:00:48]FM_MakeSignedData [01:00:48]FM_MakeSignedData [01:00:48]SAM_PROTO_SignData [01:00:48]wFMCommunicate request_size=4 [01:00:48]MH_SAM_APDU [01:00:48]CAPDU: 80 0D 01 02 [01:00:48]Write to MH i2c: E2 08 00 3F 1F 80 0D 01 02 00 00 00 00 D7 [01:00:49]Write i2c OK [01:00:49]MH_I2C_Read... [01:00:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:00:49]Read from MH i2c: E2 [01:00:49]MH_I2C_Read... [01:00:49]Read from MH i2c: E2 03 00 [01:00:49]MH_I2C_Read... [01:00:49]Read from MH i2c: E2 03 00 3F 1F 00 90 00 D2 [01:00:49]RAPDU: 90 00 [01:00:49]wFMCommunicate OK [01:00:49]wFMCommunicate request_size=255 [01:00:49]MH_SAM_APDU [01:00: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 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 03 00 00 00 F4 03 04 00 C1 A7 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 2A 77 00 00 35 04 06 00 B6 [01:00:49]Write to MH i2c: E2 02 01 40 1F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 03 00 00 00 F4 03 04 00 C1 A7 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 2A 77 00 00 35 04 06 00 B6 00 00 13 [01:00:49]Write i2c OK [01:00:49]MH_I2C_Read... [01:00:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:00:49]Read from MH i2c: E2 [01:00:49]MH_I2C_Read... [01:00:49]Read from MH i2c: E2 03 00 [01:00:49]MH_I2C_Read... [01:00:49]Read from MH i2c: E2 03 00 40 1F 00 90 00 D3 [01:00:49]RAPDU: 90 00 [01:00:49]wFMCommunicate OK [01:00:49]wFMCommunicate request_size=10 [01:00:49]MH_SAM_APDU [01:00:49]CAPDU: 80 0D 02 02 05 C8 1F 78 89 4D [01:00:49]Write to MH i2c: E2 0D 00 41 1F 80 0D 02 02 05 00 C8 1F 78 89 4D 00 00 19 [01:00:49]Write i2c OK [01:00:49]MH_I2C_Read... [01:00:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:00:49]Read from MH i2c: E2 [01:00:49]MH_I2C_Read... [01:00:49]Read from MH i2c: E2 03 00 [01:00:49]MH_I2C_Read... [01:00:49]Read from MH i2c: E2 03 00 41 1F 00 90 00 D4 [01:00:49]RAPDU: 90 00 [01:00:49]wFMCommunicate OK [01:00:49]wFMCommunicate request_size=4 [01:00:49]MH_SAM_APDU [01:00:49]CAPDU: 80 0D 03 02 [01:00:49]Write to MH i2c: E2 08 00 42 1F 80 0D 03 02 00 00 00 00 DC [01:00:49]Write i2c OK [01:00:49]MH_I2C_Read... [01:00:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:00:49]Read from MH i2c: E2 [01:00:49]MH_I2C_Read... [01:00:49]Read from MH i2c: E2 0B 00 [01:00:49]MH_I2C_Read... [01:00:49]Read from MH i2c: E2 0B 00 42 1F 00 EA 86 9D A6 73 9E 56 29 90 00 20 [01:00:49]RAPDU: EA 86 9D A6 73 9E 56 29 90 00 [01:00:49]wFMCommunicate OK [01:00:49]SAM_PROTO_SignData done [01:00:49]FM_MakeSignedData done [01:00:49]CreateOFDProtocolMessage [01:00:49]wFMCommunicate request_size=4 [01:00:49]MH_SAM_APDU [01:00:49]CAPDU: 80 11 00 00 [01:00:49]Write to MH i2c: E2 08 00 43 1F 80 11 00 00 00 00 00 00 DC [01:00:49]Write i2c OK [01:00:49]MH_I2C_Read... [01:00:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:00:49]Read from MH i2c: E2 [01:00:49]MH_I2C_Read... [01:00:49]Read from MH i2c: E2 17 00 [01:00:49]MH_I2C_Read... [01:00:49]Read from MH i2c: E2 17 00 43 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 2A [01:00:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [01:00:49]wFMCommunicate OK [01:00:49]CreateOFDProtocolMessage done [01:00:49]OFDSenderStorePacket 30506 [01:00:49]StoreOFDPacket docnum=30506 [01:00: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 31 F2 07 01 0E 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 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 03 00 00 00 F4 03 04 00 C1 A7 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 2A 77 00 00 35 04 06 00 B6 C8 1F 78 89 4D EA 86 9D A6 73 9E 56 29 [01:00:49]CheckFolder [01:00:49]dirname=/storage/ofd_packets [01:00:49]CheckFolder done [01:00:49]ProducePacketName [01:00:49]name=ofd_packets/00030506 [01:00:49]NVStorageSaveData ofd_packets/00030506 [01:00:49]File name is /storage/ofd_packets/00030506 [01:00:49]Write 301 bytes [01:00:49]NVStorageSaveData done [01:00:49]OFDSenderStorePacket done [01:00:49]KKMCreateOFDPacket done [01:00:49]NVStorageSaveData kkm_last_timestamp [01:00:49]File name is /storage/kkm_last_timestamp [01:00:49]Write 4 bytes [01:00:49]NVStorageSaveData done [01:00:49]ExternCall_PrintAddStr [01:00:49]wPrintStart [01:00:49]Write to MH i2c: 01 00 00 44 1F 63 [01:00:49]Write i2c OK [01:00:49]MH_I2C_Read... [01:00:49]Read from MH i2c: 01 [01:00:49]MH_I2C_Read... [01:00:49]Read from MH i2c: 01 07 00 [01:00:49]MH_I2C_Read... [01:00:49]Read from MH i2c: 01 07 00 44 1F 00 00 00 00 00 FF 0F 78 [01:00:49]RasterBufferAndPrint [01:00:49]line Счет N : (1)342908 [01:00:49]line ИНН: 02508201610067 [01:00:49]line Контрольно-Кассовый Чек [01:00:49]line ПРОДАЖА [01:00:49]line ТРК (МРК, ГНК) : 43 [01:00:49]line Товар: 2710124130 [01:00:49]line Аи-92-К-2 [01:00:49]line 14.950 * 66.90 [01:00:49]line = 1000.16 [01:00:49]line НДС 12% НСП 1% [01:00:49]line > о реализуемом товаре [01:00:49]line ОКРУГЛЕНИЕ: -0.16 [01:00:49]line ИТОГО: 1000.00 [01:00:49]line Внесено: 1000.00 [01:00:49]line СДАЧА: 0.00 [01:00:49]line НСП 1% : 8.85 [01:00:49]line НДС 12% : 106.21 [01:00:49]line Наличными: 1000.00 [01:00:49]line Безнал.: 0.00 [01:00:49]line Место: АЗС № 78 "Партнер Нефть" [01:00:49]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [01:00:49]line СНО: Общий режим [01:00:49]line Чек 3 21.10.2024 01:00 [01:00:49]line Смена: 115 ФФД: 1.0 [01:00:49]line ЗНМ: 0300000137 [01:00:49]line РНМ: 0000000000186857 [01:00:49]line Версия ККМ: v1.0 [01:00:49]line ФМ: 0000000002094219 [01:00:49]line ФД: 30506 [01:00:49]line ФПД: 200970637707597 [01:00:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T010049&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30506&fm=200970637707597&tin=02508201610067®Number=0000000000186857&sum=100000 [01:00:49]OFD Sender: Processing packet 30506 [packets to send 10, broken 9] [01:00:49]ProducePacketName [01:00:49]name=ofd_packets/00030506 [01:00:49]OFD Sender: To server: pG, [01:00:49]CommunicateWithHost lk.salyk.kg:30040 [01:00:49]ConnectInit lk.salyk.kg [01:00:49]written 0, free lines is 4095 [01:00:49]Connected sock=10 [01:00: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 31 F2 07 01 0E 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 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 03 00 00 00 F4 03 04 00 C1 A7 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 2A 77 00 00 35 04 06 00 B6 C8 1F 78 89 4D EA 86 9D A6 73 9E 56 29 [01:00: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 18 8E 47 00 E4 34 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 2A 77 00 00 F4 03 04 00 44 52 15 67 B6 04 01 00 00 C8 7C 66 0A D2 39 4B 51 [01:00:50]CommunicateWithHost err = 0 [01:00:50]CheckOFDResponse [01:00:50]1017 (14) - 77093643461234 [01:00:50]1041 (16) - 0000000002094219 [01:00:50]1040 (4) - 30506 [01:00:50]1012 (4) - 20.10.2024 18:56 [01:00:50]1206 (1) - 0 [01:00:50]OFD Sender: Remove packet 30506 [01:00:50]ProducePacketName [01:00:50]name=ofd_packets/00030506 [01:00:50]NVStorageDeleteData [01:00:50]Write to MH i2c: 01 00 00 6F 1F 8E [01:00:50]Write i2c OK [01:00:50]MH_I2C_Read... [01:00:50]Read from MH i2c: 01 [01:00:50]MH_I2C_Read... [01:00:50]Read from MH i2c: 01 07 00 [01:00:50]MH_I2C_Read... [01:00:50]Read from MH i2c: 01 07 00 6F 1F 00 00 00 00 00 EE 0C 8F [01:00:50]RasterBufferAndPrint [01:00:50]line [01:00:50]line [01:00:50]line [01:00:50]line [01:00:50]line [01:00:50]written 0, free lines is 3316 [01:00:50]MH_Cut [01:00:50]Write to MH i2c: D1 01 00 76 1F 01 67 [01:00:50]Write i2c OK [01:00:50]MH_I2C_Read... [01:00:50]Read from MH i2c: D1 [01:00:50]MH_I2C_Read... [01:00:50]Read from MH i2c: D1 01 00 [01:00:50]MH_I2C_Read... [01:00:50]Read from MH i2c: D1 01 00 76 1F 00 66 [01:00:50]Write to MH i2c: 01 00 00 77 1F 96 [01:00:50]Write i2c OK [01:00:50]MH_I2C_Read... [01:00:50]OFD Sender: No OFD packet to send [01:00:50]*** Cut start [01:00:50]*** Partial cut [01:00:50]*** CUTSNS_PIN = 1 [01:00:50]*** CUTSNS_PIN = 0 [01:00:51]*** Brake cut motor [01:00:51]Read from MH i2c: 01 [01:00:51]MH_I2C_Read... [01:00:51]*** Stop cut motor [01:00:51]*** Cut end [01:00:51]Read from MH i2c: 01 07 00 [01:00:51]MH_I2C_Read... [01:00:51]Read from MH i2c: 01 07 00 77 1F 00 00 00 00 00 FF 0F AB [01:00:51]process_action close_receipt done [01:00:51]requested_data is exist [01:00:51]produce_requested_data [01:00:51]requested_item fm.sn is exist - process it [01:00:51]wFMCommunicate request_size=4 [01:00:51]MH_SAM_APDU [01:00:51]CAPDU: 80 11 00 00 [01:00:51]Write to MH i2c: E2 08 00 78 1F 80 11 00 00 00 00 00 00 11 [01:00:51]Write i2c OK [01:00:51]MH_I2C_Read... [01:00:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:00:51]Read from MH i2c: E2 [01:00:51]MH_I2C_Read... [01:00:51]Read from MH i2c: E2 17 00 [01:00:51]MH_I2C_Read... [01:00:51]Read from MH i2c: E2 17 00 78 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 5F [01:00:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [01:00:51]wFMCommunicate OK [01:00:51]requested_item fd.num is exist - process it [01:00:51]SAM_PROTO_GetFieldsCounters [01:00:51]wFMCommunicate request_size=4 [01:00:51]MH_SAM_APDU [01:00:51]CAPDU: 80 13 00 00 [01:00:51]Write to MH i2c: E2 08 00 79 1F 80 13 00 00 00 00 00 00 14 [01:00:51]Write i2c OK [01:00:51]MH_I2C_Read... [01:00:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:00:51]Read from MH i2c: E2 [01:00:51]MH_I2C_Read... [01:00:51]Read from MH i2c: E2 62 00 [01:00:51]MH_I2C_Read... [01:00:51]Read from MH i2c: E2 62 00 79 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 77 00 00 0E 04 04 00 73 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 57 [01:00: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 2A 77 00 00 0E 04 04 00 73 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:51]wFMCommunicate OK [01:00:51]SAM_PROTO_GetFieldsCounters done [01:00:51]requested_item shift.num is exist - process it [01:00:51]requested_item shift.opened is exist - process it [01:00:51]req_shift_opened [01:00:51]FM_GetShiftState [01:00:51]SAM_PROTO_GetShiftState [01:00:51]wFMCommunicate request_size=4 [01:00:51]MH_SAM_APDU [01:00:51]CAPDU: 80 13 01 00 [01:00:51]Write to MH i2c: E2 08 00 7A 1F 80 13 01 00 00 00 00 00 16 [01:00:51]Write i2c OK [01:00:51]MH_I2C_Read... [01:00:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:00:51]Read from MH i2c: E2 [01:00:51]MH_I2C_Read... [01:00:51]Read from MH i2c: E2 0E 00 [01:00:51]MH_I2C_Read... [01:00:51]Read from MH i2c: E2 0E 00 7A 1F 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 92 [01:00:51]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [01:00:51]wFMCommunicate OK [01:00:51]SAM_PROTO_GetShiftState done [01:00:51]FM_GetShiftState done [01:00:51]req_shift_opened done [01:00:51]requested_item shift.open_date is exist - process it [01:00:51]req_shift_open_date [01:00:51]req_shift_open_date done [01:00:51]produce_requested_data done [01:00:51]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30506,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [01:00:51]process_action_free close_receipt [01:00:51]json_value_free [01:00:51]json_value_free done [01:00:51]process_json_proto returns [01:00:51]Send response to host [01:00:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30506,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [01:00:51]free response buf [01:00:51]execute_script done [01:00:51]execute_script returns [01:00:51]free content buf [01:00:51]Sock 7.Close socket [01:00:51]Sock 7.Thread stoped [01:00:55]OFD Sender: No OFD packet to send [01:01:00]OFD Sender: No OFD packet to send [01:01:05]OFD Sender: No OFD packet to send [01:01:10]OFD Sender: No OFD packet to send [01:01:15]OFD Sender: No OFD packet to send [01:01:20]OFD Sender: No OFD packet to send [01:01:25]OFD Sender: No OFD packet to send [01:01:30]OFD Sender: No OFD packet to send [01:01:35]OFD Sender: No OFD packet to send [01:01:40]OFD Sender: No OFD packet to send [01:01:45]OFD Sender: No OFD packet to send [01:01:50]OFD Sender: No OFD packet to send [01:01:55]OFD Sender: No OFD packet to send [01:02:00]OFD Sender: No OFD packet to send [01:02:05]OFD Sender: No OFD packet to send [01:02:10]OFD Sender: No OFD packet to send [01:02:15]OFD Sender: No OFD packet to send [01:02:20]OFD Sender: No OFD packet to send [01:02:25]OFD Sender: No OFD packet to send [01:02:30]OFD Sender: No OFD packet to send [01:02:35]OFD Sender: No OFD packet to send [01:02:40]OFD Sender: No OFD packet to send [01:02:45]OFD Sender: No OFD packet to send [01:02:50]OFD Sender: No OFD packet to send [01:02:55]OFD Sender: No OFD packet to send [01:03:00]OFD Sender: No OFD packet to send [01:03:05]OFD Sender: No OFD packet to send [01:03:10]OFD Sender: No OFD packet to send [01:03:15]OFD Sender: No OFD packet to send [01:03:20]OFD Sender: No OFD packet to send [01:03:25]OFD Sender: No OFD packet to send [01:03:30]OFD Sender: No OFD packet to send [01:03:35]OFD Sender: No OFD packet to send [01:03:40]OFD Sender: No OFD packet to send [01:03:45]OFD Sender: No OFD packet to send [01:03:50]OFD Sender: No OFD packet to send [01:03:55]OFD Sender: No OFD packet to send [01:04:00]OFD Sender: No OFD packet to send [01:04:05]OFD Sender: No OFD packet to send [01:04:10]OFD Sender: No OFD packet to send [01:04:15]OFD Sender: No OFD packet to send [01:04:20]OFD Sender: No OFD packet to send [01:04:25]OFD Sender: No OFD packet to send [01:04:30]OFD Sender: No OFD packet to send [01:04:35]OFD Sender: No OFD packet to send [01:04:40]OFD Sender: No OFD packet to send [01:04:45]OFD Sender: No OFD packet to send [01:04:50]OFD Sender: No OFD packet to send [01:04:55]OFD Sender: No OFD packet to send [01:05:00]OFD Sender: No OFD packet to send [01:05:05]OFD Sender: No OFD packet to send [01:05:10]OFD Sender: No OFD packet to send [01:05:15]OFD Sender: No OFD packet to send [01:05:20]OFD Sender: No OFD packet to send [01:05:25]OFD Sender: No OFD packet to send [01:05:30]OFD Sender: No OFD packet to send [01:05:35]OFD Sender: No OFD packet to send [01:05:40]OFD Sender: No OFD packet to send [01:05:45]OFD Sender: No OFD packet to send [01:05:50]OFD Sender: No OFD packet to send [01:05:55]OFD Sender: No OFD packet to send [01:06:00]OFD Sender: No OFD packet to send [01:06:05]OFD Sender: No OFD packet to send [01:06:10]OFD Sender: No OFD packet to send [01:06:15]OFD Sender: No OFD packet to send [01:06:20]OFD Sender: No OFD packet to send [01:06:25]OFD Sender: No OFD packet to send [01:06:30]OFD Sender: No OFD packet to send [01:06:35]OFD Sender: No OFD packet to send [01:06:40]OFD Sender: No OFD packet to send [01:06:45]OFD Sender: No OFD packet to send [01:06:51]OFD Sender: No OFD packet to send [01:06:56]OFD Sender: No OFD packet to send [01:07:01]OFD Sender: No OFD packet to send [01:07:06]OFD Sender: No OFD packet to send [01:07:11]OFD Sender: No OFD packet to send [01:07:16]OFD Sender: No OFD packet to send [01:07:21]OFD Sender: No OFD packet to send [01:07:26]OFD Sender: No OFD packet to send [01:07:31]OFD Sender: No OFD packet to send [01:07:36]OFD Sender: No OFD packet to send [01:07:41]OFD Sender: No OFD packet to send [01:07:46]OFD Sender: No OFD packet to send [01:07:51]OFD Sender: No OFD packet to send [01:07:56]OFD Sender: No OFD packet to send [01:08:01]OFD Sender: No OFD packet to send [01:08:06]OFD Sender: No OFD packet to send [01:08:11]OFD Sender: No OFD packet to send [01:08:16]OFD Sender: No OFD packet to send [01:08:21]OFD Sender: No OFD packet to send [01:08:26]OFD Sender: No OFD packet to send [01:08:31]OFD Sender: No OFD packet to send [01:08:36]OFD Sender: No OFD packet to send [01:08:41]OFD Sender: No OFD packet to send [01:08:46]OFD Sender: No OFD packet to send [01:08:51]OFD Sender: No OFD packet to send [01:08:56]OFD Sender: No OFD packet to send [01:09:01]OFD Sender: No OFD packet to send [01:09:06]OFD Sender: No OFD packet to send [01:09:11]OFD Sender: No OFD packet to send [01:09:16]OFD Sender: No OFD packet to send [01:09:21]OFD Sender: No OFD packet to send [01:09:26]OFD Sender: No OFD packet to send [01:09:31]OFD Sender: No OFD packet to send [01:09:36]OFD Sender: No OFD packet to send [01:09:41]OFD Sender: No OFD packet to send [01:09:46]OFD Sender: No OFD packet to send [01:09:51]OFD Sender: No OFD packet to send [01:09:56]OFD Sender: No OFD packet to send [01:10:01]OFD Sender: No OFD packet to send [01:10:06]OFD Sender: No OFD packet to send [01:10:11]OFD Sender: No OFD packet to send [01:10:16]OFD Sender: No OFD packet to send [01:10:21]OFD Sender: No OFD packet to send [01:10:26]OFD Sender: No OFD packet to send [01:10:31]OFD Sender: No OFD packet to send [01:10:36]OFD Sender: No OFD packet to send [01:10:41]OFD Sender: No OFD packet to send [01:10:46]OFD Sender: No OFD packet to send [01:10:51]OFD Sender: No OFD packet to send [01:10:56]OFD Sender: No OFD packet to send [01:11:01]OFD Sender: No OFD packet to send [01:11:06]OFD Sender: No OFD packet to send [01:11:11]OFD Sender: No OFD packet to send [01:11:16]OFD Sender: No OFD packet to send [01:11:21]OFD Sender: No OFD packet to send [01:11:26]OFD Sender: No OFD packet to send [01:11:31]OFD Sender: No OFD packet to send [01:11:36]OFD Sender: No OFD packet to send [01:11:41]OFD Sender: No OFD packet to send [01:11:46]OFD Sender: No OFD packet to send [01:11:51]OFD Sender: No OFD packet to send [01:11:56]OFD Sender: No OFD packet to send [01:12:01]OFD Sender: No OFD packet to send [01:12:06]OFD Sender: No OFD packet to send [01:12:11]OFD Sender: No OFD packet to send [01:12:16]OFD Sender: No OFD packet to send [01:12:21]OFD Sender: No OFD packet to send [01:12:26]OFD Sender: No OFD packet to send [01:12:31]OFD Sender: No OFD packet to send [01:12:36]OFD Sender: No OFD packet to send [01:12:41]OFD Sender: No OFD packet to send [01:12:46]OFD Sender: No OFD packet to send [01:12:51]OFD Sender: No OFD packet to send [01:12:56]OFD Sender: No OFD packet to send [01:13:01]OFD Sender: No OFD packet to send [01:13:06]OFD Sender: No OFD packet to send [01:13:11]OFD Sender: No OFD packet to send [01:13:16]OFD Sender: No OFD packet to send [01:13:21]OFD Sender: No OFD packet to send [01:13:26]OFD Sender: No OFD packet to send [01:13:31]OFD Sender: No OFD packet to send [01:13:36]OFD Sender: No OFD packet to send [01:13:41]OFD Sender: No OFD packet to send [01:13:46]OFD Sender: No OFD packet to send [01:13:51]OFD Sender: No OFD packet to send [01:13:56]OFD Sender: No OFD packet to send [01:14:01]OFD Sender: No OFD packet to send [01:14:06]OFD Sender: No OFD packet to send [01:14:11]OFD Sender: No OFD packet to send [01:14:16]OFD Sender: No OFD packet to send [01:14:21]OFD Sender: No OFD packet to send [01:14:26]OFD Sender: No OFD packet to send [01:14:31]OFD Sender: No OFD packet to send [01:14:36]OFD Sender: No OFD packet to send [01:14:41]OFD Sender: No OFD packet to send [01:14:46]OFD Sender: No OFD packet to send [01:14:51]OFD Sender: No OFD packet to send [01:14:56]OFD Sender: No OFD packet to send [01:15:01]OFD Sender: No OFD packet to send [01:15:06]OFD Sender: No OFD packet to send [01:15:06]accept exits with 9 [01:15:06]New connection [01:15:06]New thread 3067346276 created [01:15:06]Thread 3067489636 joined [01:15:06]Waiting for new connection... [01:15:06] Sock 9.Parse request [01:15:06]Sock 9.Check first char [01:15:06]Sock 9.First char is OK [01:15:06]request: POST /json_proto HTTP/1.0 [01:15:06]Method: POST [01:15:06]URL: /json_proto [01:15:06]Method is POST - this is cgi request [01:15:06]url: /json_proto [01:15:06]query_string will be loaded in cgi processing [01:15:06]execute_cgi json_proto POST (null) [01:15:06]execute_cgi path=json_proto method=POST [01:15:06]POST find Content-Length [01:15:06]Host: 172.17.51.3:8080 [01:15:06]Content-Length: 677 [01:15:06]Content-Type: application/json [01:15:06] [01:15:06]POST finish read [01:15:06]Found Content-Length = 677 [01:15:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342909", "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" ] } } [01:15:06]execute_script... [01:15: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)342909", "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" ] } } [01:15:06]POST & json_proto [01:15:06]process_json_proto [01:15:06]json parsed OK: [01:15:06]protocol is kg_v1.0 [01:15:06]action value=close_receipt [01:15:06]process_action close_receipt [01:15:06]cmd_close_receipt [01:15:06]MH_GetDate [01:15:06]Write to MH i2c: F0 00 00 7B 1F 89 [01:15:06]Write i2c OK [01:15:06]MH_I2C_Read... [01:15:06]Read from MH i2c: F0 [01:15:06]MH_I2C_Read... [01:15:06]Read from MH i2c: F0 09 00 [01:15:06]MH_I2C_Read... [01:15:06]Read from MH i2c: F0 09 00 7B 1F 00 1C AB 15 67 04 C1 95 66 95 [01:15:06]GetLastDocTimeStamp 1729472449 [01:15:06]current date 1729473308 [01:15:06]FM_GetShiftState [01:15:06]SAM_PROTO_GetShiftState [01:15:06]wFMCommunicate request_size=4 [01:15:06]MH_SAM_APDU [01:15:06]CAPDU: 80 13 01 00 [01:15:06]Write to MH i2c: E2 08 00 7C 1F 80 13 01 00 00 00 00 00 18 [01:15:06]Write i2c OK [01:15:06]MH_I2C_Read... [01:15:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:15:06]Read from MH i2c: E2 [01:15:06]MH_I2C_Read... [01:15:06]Read from MH i2c: E2 0E 00 [01:15:06]MH_I2C_Read... [01:15:06]Read from MH i2c: E2 0E 00 7C 1F 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 94 [01:15:06]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [01:15:06]wFMCommunicate OK [01:15:06]SAM_PROTO_GetShiftState done [01:15:06]FM_GetShiftState done [01:15:06]opened in 1729471058 [01:15:06]opened+sec_in_day 1729557458 [01:15:06]quantity*price = 40006 [01:15:06]sum+1 = 40007 [01:15:06]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 21.10.2024 01:15 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30507 ФПД: 55042940231002 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T011508&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30507&fm=55042940231002&tin=02508201610067®Number=0000000000186857&sum=40000 [01:15:07]StoreToDocumentArchive [01:15:07]shift 115 fd 30507 [01:15:07]save to /storage/0115/doc_00030507 [01:15:07]save last doc name /storage/0115/doc_00030507 to /storage/kkm_last_doc_name [01:15:07]save OK [01:15:07]Clear old archive folders... [01:15:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:15:07]tlvbuf is 01E0C8B0 [01:15:07]SAM_PROTO_ClearQueue [01:15:07]wFMCommunicate request_size=4 [01:15:07]MH_SAM_APDU [01:15:07]CAPDU: 80 09 00 00 [01:15:07]Write to MH i2c: E2 08 00 89 1F 80 09 00 00 00 00 00 00 1A [01:15:07]Write i2c OK [01:15:07]MH_I2C_Read... [01:15:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:15:07]Read from MH i2c: E2 [01:15:07]MH_I2C_Read... [01:15:07]Read from MH i2c: E2 03 00 [01:15:07]MH_I2C_Read... [01:15:07]Read from MH i2c: E2 03 00 89 1F 00 90 00 1C [01:15:07]RAPDU: 90 00 [01:15:07]wFMCommunicate OK [01:15:07]SAM_PROTO_ClearQueue done [01:15:07]KKMCreateOFDPacket [01:15:07]OFDProtocolAddRootSTLVToBuf [01:15:07]FM_MakeSignedData [01:15:07]FM_MakeSignedData [01:15:07]SAM_PROTO_SignData [01:15:07]wFMCommunicate request_size=4 [01:15:07]MH_SAM_APDU [01:15:07]CAPDU: 80 0D 01 02 [01:15:07]Write to MH i2c: E2 08 00 8A 1F 80 0D 01 02 00 00 00 00 22 [01:15:07]Write i2c OK [01:15:07]MH_I2C_Read... [01:15:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:15:07]Read from MH i2c: E2 [01:15:07]MH_I2C_Read... [01:15:07]Read from MH i2c: E2 03 00 [01:15:07]MH_I2C_Read... [01:15:07]Read from MH i2c: E2 03 00 8A 1F 00 90 00 1D [01:15:07]RAPDU: 90 00 [01:15:07]wFMCommunicate OK [01:15:07]wFMCommunicate request_size=255 [01:15:07]MH_SAM_APDU [01:15: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 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 1C AB 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 2B 77 00 00 35 04 06 00 32 [01:15:07]Write to MH i2c: E2 02 01 8B 1F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 1C AB 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 2B 77 00 00 35 04 06 00 32 00 00 10 [01:15:07]Write i2c OK [01:15:07]MH_I2C_Read... [01:15:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:15:08]Read from MH i2c: E2 [01:15:08]MH_I2C_Read... [01:15:08]Read from MH i2c: E2 03 00 [01:15:08]MH_I2C_Read... [01:15:08]Read from MH i2c: E2 03 00 8B 1F 00 90 00 1E [01:15:08]RAPDU: 90 00 [01:15:08]wFMCommunicate OK [01:15:08]wFMCommunicate request_size=10 [01:15:08]MH_SAM_APDU [01:15:08]CAPDU: 80 0D 02 02 05 0F AE E6 5D 5A [01:15:08]Write to MH i2c: E2 0D 00 8C 1F 80 0D 02 02 05 00 0F AE E6 5D 5A 00 00 89 [01:15:08]Write i2c OK [01:15:08]MH_I2C_Read... [01:15:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:15:08]Read from MH i2c: E2 [01:15:08]MH_I2C_Read... [01:15:08]Read from MH i2c: E2 03 00 [01:15:08]MH_I2C_Read... [01:15:08]Read from MH i2c: E2 03 00 8C 1F 00 90 00 1F [01:15:08]RAPDU: 90 00 [01:15:08]wFMCommunicate OK [01:15:08]wFMCommunicate request_size=4 [01:15:08]MH_SAM_APDU [01:15:08]CAPDU: 80 0D 03 02 [01:15:08]Write to MH i2c: E2 08 00 8D 1F 80 0D 03 02 00 00 00 00 27 [01:15:08]Write i2c OK [01:15:08]MH_I2C_Read... [01:15:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:15:08]Read from MH i2c: E2 [01:15:08]MH_I2C_Read... [01:15:08]Read from MH i2c: E2 0B 00 [01:15:08]MH_I2C_Read... [01:15:08]Read from MH i2c: E2 0B 00 8D 1F 00 0F 9F 0A FF 0F B3 1E D3 90 00 92 [01:15:08]RAPDU: 0F 9F 0A FF 0F B3 1E D3 90 00 [01:15:08]wFMCommunicate OK [01:15:08]SAM_PROTO_SignData done [01:15:08]FM_MakeSignedData done [01:15:08]CreateOFDProtocolMessage [01:15:08]wFMCommunicate request_size=4 [01:15:08]MH_SAM_APDU [01:15:08]CAPDU: 80 11 00 00 [01:15:08]Write to MH i2c: E2 08 00 8E 1F 80 11 00 00 00 00 00 00 27 [01:15:08]Write i2c OK [01:15:08]MH_I2C_Read... [01:15:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:15:08]Read from MH i2c: E2 [01:15:08]MH_I2C_Read... [01:15:08]Read from MH i2c: E2 17 00 [01:15:08]MH_I2C_Read... [01:15:08]Read from MH i2c: E2 17 00 8E 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 75 [01: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 [01:15:08]wFMCommunicate OK [01:15:08]CreateOFDProtocolMessage done [01:15:08]OFDSenderStorePacket 30507 [01:15:08]StoreOFDPacket docnum=30507 [01: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 0F 01 00 00 01 38 07 01 95 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 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 1C AB 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 2B 77 00 00 35 04 06 00 32 0F AE E6 5D 5A 0F 9F 0A FF 0F B3 1E D3 [01:15:08]CheckFolder [01:15:08]dirname=/storage/ofd_packets [01:15:08]CheckFolder done [01:15:08]ProducePacketName [01:15:08]name=ofd_packets/00030507 [01:15:08]NVStorageSaveData ofd_packets/00030507 [01:15:08]File name is /storage/ofd_packets/00030507 [01:15:08]Write 301 bytes [01:15:08]NVStorageSaveData done [01:15:08]OFDSenderStorePacket done [01:15:08]KKMCreateOFDPacket done [01:15:08]NVStorageSaveData kkm_last_timestamp [01:15:08]File name is /storage/kkm_last_timestamp [01:15:08]Write 4 bytes [01:15:08]NVStorageSaveData done [01:15:08]ExternCall_PrintAddStr [01:15:08]wPrintStart [01:15:08]Write to MH i2c: 01 00 00 8F 1F AE [01:15:08]Write i2c OK [01:15:08]MH_I2C_Read... [01:15:08]Read from MH i2c: 01 [01:15:08]MH_I2C_Read... [01:15:08]Read from MH i2c: 01 07 00 [01:15:08]MH_I2C_Read... [01:15:08]Read from MH i2c: 01 07 00 8F 1F 00 00 00 00 00 FF 0F C3 [01:15:08]RasterBufferAndPrint [01:15:08]line Счет N : (1)342909 [01:15:08]line ИНН: 02508201610067 [01:15:08]line Контрольно-Кассовый Чек [01:15:08]line ПРОДАЖА [01:15:08]line ТРК (МРК, ГНК) : 63 [01:15:08]line Товар: 2710124130 [01:15:08]line Аи-92-К-2 [01:15:08]line 5.980 * 66.90 [01:15:08]line = 400.06 [01:15:08]line НДС 12% НСП 1% [01:15:08]line > о реализуемом товаре [01:15:08]line ОКРУГЛЕНИЕ: -0.06 [01:15:08]line ИТОГО: 400.00 [01:15:08]line Внесено: 400.00 [01:15:08]line СДАЧА: 0.00 [01:15:08]line НСП 1% : 3.54 [01:15:08]line НДС 12% : 42.48 [01:15:08]line Наличными: 400.00 [01:15:08]line Безнал.: 0.00 [01:15:08]line Место: АЗС № 78 "Партнер Нефть" [01:15:08]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [01:15:08]line СНО: Общий режим [01:15:08]line Чек 4 21.10.2024 01:15 [01:15:08]line Смена: 115 ФФД: 1.0 [01:15:08]line ЗНМ: 0300000137 [01:15:08]line РНМ: 0000000000186857 [01:15:08]line Версия ККМ: v1.0 [01:15:08]line ФМ: 0000000002094219 [01:15:08]line ФД: 30507 [01:15:08]line ФПД: 55042940231002 [01:15:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T011508&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30507&fm=55042940231002&tin=02508201610067®Number=0000000000186857&sum=40000 [01:15:08]OFD Sender: Processing packet 30507 [packets to send 10, broken 9] [01:15:08]ProducePacketName [01:15:08]name=ofd_packets/00030507 [01:15:08]OFD Sender: To server: pG, [01:15:08]CommunicateWithHost lk.salyk.kg:30040 [01:15:08]ConnectInit lk.salyk.kg [01:15:08]written 0, free lines is 4095 [01:15:08]Connected sock=10 [01:15: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 01 38 07 01 95 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 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 1C AB 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 2B 77 00 00 35 04 06 00 32 0F AE E6 5D 5A 0F 9F 0A FF 0F B3 1E D3 [01:15: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 58 EF 47 00 58 B1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 2B 77 00 00 F4 03 04 00 9E 55 15 67 B6 04 01 00 00 20 2F ED A7 BE 9F DC 55 [01:15:08]CommunicateWithHost err = 0 [01:15:08]CheckOFDResponse [01:15:08]1017 (14) - 77093643461234 [01:15:08]1041 (16) - 0000000002094219 [01:15:08]1040 (4) - 30507 [01:15:08]1012 (4) - 20.10.2024 19:10 [01:15:08]1206 (1) - 0 [01:15:08]OFD Sender: Remove packet 30507 [01:15:08]ProducePacketName [01:15:08]name=ofd_packets/00030507 [01:15:08]NVStorageDeleteData [01:15:09]Write to MH i2c: 01 00 00 BA 1F D9 [01:15:09]Write i2c OK [01:15:09]MH_I2C_Read... [01:15:09]Read from MH i2c: 01 [01:15:09]MH_I2C_Read... [01:15:09]Read from MH i2c: 01 07 00 [01:15:09]MH_I2C_Read... [01:15:09]Read from MH i2c: 01 07 00 BA 1F 00 00 00 00 00 E6 0C D2 [01:15:09]RasterBufferAndPrint [01:15:09]line [01:15:09]line [01:15:09]line [01:15:09]line [01:15:09]line [01:15:09]written 0, free lines is 3308 [01:15:09]MH_Cut [01:15:09]Write to MH i2c: D1 01 00 C1 1F 01 B2 [01:15:09]Write i2c OK [01:15:09]MH_I2C_Read... [01:15:09]Read from MH i2c: D1 [01:15:09]MH_I2C_Read... [01:15:09]Read from MH i2c: D1 01 00 [01:15:09]MH_I2C_Read... [01:15:09]Read from MH i2c: D1 01 00 C1 1F 00 B1 [01:15:09]Write to MH i2c: 01 00 00 C2 1F E1 [01:15:09]Write i2c OK [01:15:09]MH_I2C_Read... [01:15:09]OFD Sender: No OFD packet to send [01:15:09]*** Cut start [01:15:09]*** Partial cut [01:15:09]*** CUTSNS_PIN = 1 [01:15:09]*** CUTSNS_PIN = 0 [01:15:10]*** Brake cut motor [01:15:10]Read from MH i2c: 01 [01:15:10]MH_I2C_Read... [01:15:10]*** Stop cut motor [01:15:10]*** Cut end [01:15:10]Read from MH i2c: 01 07 00 [01:15:10]MH_I2C_Read... [01:15:10]Read from MH i2c: 01 07 00 C2 1F 00 00 00 00 00 FF 0F F6 [01:15:10]process_action close_receipt done [01:15:10]requested_data is exist [01:15:10]produce_requested_data [01:15:10]requested_item fm.sn is exist - process it [01:15:10]wFMCommunicate request_size=4 [01:15:10]MH_SAM_APDU [01:15:10]CAPDU: 80 11 00 00 [01:15:10]Write to MH i2c: E2 08 00 C3 1F 80 11 00 00 00 00 00 00 5C [01:15:10]Write i2c OK [01:15:10]MH_I2C_Read... [01:15:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:15:10]Read from MH i2c: E2 [01:15:10]MH_I2C_Read... [01:15:10]Read from MH i2c: E2 17 00 [01:15:10]MH_I2C_Read... [01:15:10]Read from MH i2c: E2 17 00 C3 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 AA [01: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 [01:15:10]wFMCommunicate OK [01:15:10]requested_item fd.num is exist - process it [01:15:10]SAM_PROTO_GetFieldsCounters [01:15:10]wFMCommunicate request_size=4 [01:15:10]MH_SAM_APDU [01:15:10]CAPDU: 80 13 00 00 [01:15:10]Write to MH i2c: E2 08 00 C4 1F 80 13 00 00 00 00 00 00 5F [01:15:10]Write i2c OK [01:15:10]MH_I2C_Read... [01:15:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:15:10]Read from MH i2c: E2 [01:15:10]MH_I2C_Read... [01:15:10]Read from MH i2c: E2 62 00 [01:15:10]MH_I2C_Read... [01:15:10]Read from MH i2c: E2 62 00 C4 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 77 00 00 0E 04 04 00 73 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 A6 [01:15: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 2B 77 00 00 0E 04 04 00 73 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 [01:15:10]wFMCommunicate OK [01:15:10]SAM_PROTO_GetFieldsCounters done [01:15:10]requested_item shift.num is exist - process it [01:15:10]requested_item shift.opened is exist - process it [01:15:10]req_shift_opened [01:15:10]FM_GetShiftState [01:15:10]SAM_PROTO_GetShiftState [01:15:10]wFMCommunicate request_size=4 [01:15:10]MH_SAM_APDU [01:15:10]CAPDU: 80 13 01 00 [01:15:10]Write to MH i2c: E2 08 00 C5 1F 80 13 01 00 00 00 00 00 61 [01:15:10]Write i2c OK [01:15:10]MH_I2C_Read... [01:15:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:15:10]Read from MH i2c: E2 [01:15:10]MH_I2C_Read... [01:15:10]Read from MH i2c: E2 0E 00 [01:15:10]MH_I2C_Read... [01:15:10]Read from MH i2c: E2 0E 00 C5 1F 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 DD [01:15:10]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [01:15:10]wFMCommunicate OK [01:15:10]SAM_PROTO_GetShiftState done [01:15:10]FM_GetShiftState done [01:15:10]req_shift_opened done [01:15:10]requested_item shift.open_date is exist - process it [01:15:10]req_shift_open_date [01:15:10]req_shift_open_date done [01:15:10]produce_requested_data done [01:15:10]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30507,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [01:15:10]process_action_free close_receipt [01:15:10]json_value_free [01:15:10]json_value_free done [01:15:10]process_json_proto returns [01:15:10]Send response to host [01:15:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30507,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [01:15:10]free response buf [01:15:10]execute_script done [01:15:10]execute_script returns [01:15:10]free content buf [01:15:10]Sock 9.Close socket [01:15:10]Sock 9.Thread stoped [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:09]OFD Sender: No OFD packet to send [01:23:14]OFD Sender: No OFD packet to send [01:23:19]OFD Sender: No OFD packet to send [01:23:24]OFD Sender: No OFD packet to send [01:23:29]OFD Sender: No OFD packet to send [01:23:34]OFD Sender: No OFD packet to send [01:23:39]OFD Sender: No OFD packet to send [01:23:44]OFD Sender: No OFD packet to send [01:23:49]OFD Sender: No OFD packet to send [01:23:54]OFD Sender: No OFD packet to send [01:23:59]OFD Sender: No OFD packet to send [01:24:04]OFD Sender: No OFD packet to send [01:24:09]OFD Sender: No OFD packet to send [01:24:14]OFD Sender: No OFD packet to send [01:24:19]OFD Sender: No OFD packet to send [01:24:24]OFD Sender: No OFD packet to send [01:24:29]OFD Sender: No OFD packet to send [01:24:34]OFD Sender: No OFD packet to send [01:24:39]OFD Sender: No OFD packet to send [01:24:44]OFD Sender: No OFD packet to send [01:24:49]OFD Sender: No OFD packet to send [01:24:54]OFD Sender: No OFD packet to send [01:24:59]OFD Sender: No OFD packet to send [01:25:04]OFD Sender: No OFD packet to send [01:25:09]OFD Sender: No OFD packet to send [01:25:14]OFD Sender: No OFD packet to send [01:25:19]OFD Sender: No OFD packet to send [01:25:24]OFD Sender: No OFD packet to send [01:25:29]OFD Sender: No OFD packet to send [01:25:34]OFD Sender: No OFD packet to send [01:25:39]OFD Sender: No OFD packet to send [01:25:44]OFD Sender: No OFD packet to send [01:25:49]OFD Sender: No OFD packet to send [01:25:54]OFD Sender: No OFD packet to send [01:25:59]OFD Sender: No OFD packet to send [01:26:04]OFD Sender: No OFD packet to send [01:26:09]OFD Sender: No OFD packet to send [01:26:14]OFD Sender: No OFD packet to send [01:26: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:05]OFD Sender: No OFD packet to send [01:44:10]OFD Sender: No OFD packet to send [01:44:15]OFD Sender: No OFD packet to send [01:44:20]OFD Sender: No OFD packet to send [01:44:25]OFD Sender: No OFD packet to send [01:44:30]OFD Sender: No OFD packet to send [01:44:35]OFD Sender: No OFD packet to send [01:44:40]OFD Sender: No OFD packet to send [01:44:45]OFD Sender: No OFD packet to send [01:44:50]OFD Sender: No OFD packet to send [01:44:55]OFD Sender: No OFD packet to send [01:45:00]OFD Sender: No OFD packet to send [01:45:05]OFD Sender: No OFD packet to send [01:45:10]OFD Sender: No OFD packet to send [01:45:15]OFD Sender: No OFD packet to send [01:45:20]OFD Sender: No OFD packet to send [01:45:25]OFD Sender: No OFD packet to send [01:45:30]OFD Sender: No OFD packet to send [01:45:35]OFD Sender: No OFD packet to send [01:45:40]OFD Sender: No OFD packet to send [01:45:45]OFD Sender: No OFD packet to send [01:45:50]OFD Sender: No OFD packet to send [01:45:55]OFD Sender: No OFD packet to send [01:46:00]OFD Sender: No OFD packet to send [01:46:05]OFD Sender: No OFD packet to send [01:46:10]OFD Sender: No OFD packet to send [01:46:15]OFD Sender: No OFD packet to send [01:46:20]OFD Sender: No OFD packet to send [01:46:25]OFD Sender: No OFD packet to send [01:46:30]OFD Sender: No OFD packet to send [01:46:35]OFD Sender: No OFD packet to send [01:46:40]OFD Sender: No OFD packet to send [01:46:45]OFD Sender: No OFD packet to send [01:46:50]OFD Sender: No OFD packet to send [01:46:55]OFD Sender: No OFD packet to send [01:47:00]OFD Sender: No OFD packet to send [01:47:05]OFD Sender: No OFD packet to send [01:47:10]OFD Sender: No OFD packet to send [01:47:15]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:21]accept exits with 7 [01:53:21]New connection [01:53:21]New thread 3067489636 created [01:53:21]Thread 3067346276 joined [01:53:21]Waiting for new connection... [01:53:21] Sock 7.Parse request [01:53:21]Sock 7.Check first char [01:53:21]Sock 7.First char is OK [01:53:21]request: POST /json_proto HTTP/1.0 [01:53:21]Method: POST [01:53:21]URL: /json_proto [01:53:21]Method is POST - this is cgi request [01:53:21]url: /json_proto [01:53:21]query_string will be loaded in cgi processing [01:53:21]execute_cgi json_proto POST (null) [01:53:21]execute_cgi path=json_proto method=POST [01:53:21]POST find Content-Length [01:53:21]Host: 172.17.51.3:8080 [01:53:21]Content-Length: 677 [01:53:21]Content-Type: application/json [01:53:21] [01:53:21]POST finish read [01:53:21]Found Content-Length = 677 [01:53:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342910", "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" ] } } [01:53:21]execute_script... [01:53: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)342910", "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" ] } } [01:53:21]POST & json_proto [01:53:21]process_json_proto [01:53:21]json parsed OK: [01:53:21]protocol is kg_v1.0 [01:53:21]action value=close_receipt [01:53:21]process_action close_receipt [01:53:21]cmd_close_receipt [01:53:21]MH_GetDate [01:53:21]Write to MH i2c: F0 00 00 C6 1F D4 [01:53:21]Write i2c OK [01:53:21]MH_I2C_Read... [01:53:21]Read from MH i2c: F0 [01:53:21]MH_I2C_Read... [01:53:21]Read from MH i2c: F0 09 00 [01:53:21]MH_I2C_Read... [01:53:21]Read from MH i2c: F0 09 00 C6 1F 00 13 B4 15 67 04 C1 95 66 E0 [01:53:21]GetLastDocTimeStamp 1729473308 [01:53:21]current date 1729475603 [01:53:21]FM_GetShiftState [01:53:21]SAM_PROTO_GetShiftState [01:53:21]wFMCommunicate request_size=4 [01:53:21]MH_SAM_APDU [01:53:21]CAPDU: 80 13 01 00 [01:53:21]Write to MH i2c: E2 08 00 C7 1F 80 13 01 00 00 00 00 00 63 [01:53:21]Write i2c OK [01:53:21]MH_I2C_Read... [01:53:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:53:21]Read from MH i2c: E2 [01:53:21]MH_I2C_Read... [01:53:21]Read from MH i2c: E2 0E 00 [01:53:21]MH_I2C_Read... [01:53:21]Read from MH i2c: E2 0E 00 C7 1F 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 DF [01:53:21]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [01:53:21]wFMCommunicate OK [01:53:21]SAM_PROTO_GetShiftState done [01:53:21]FM_GetShiftState done [01:53:21]opened in 1729471058 [01:53:21]opened+sec_in_day 1729557458 [01:53:21]quantity*price = 20003 [01:53:21]sum+1 = 20004 [01:53: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 СНО: Общий режим Чек 5 21.10.2024 01:53 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30508 ФПД: 161400061918054 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T015323&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30508&fm=161400061918054&tin=02508201610067®Number=0000000000186857&sum=20000 [01:53:22]StoreToDocumentArchive [01:53:22]shift 115 fd 30508 [01:53:22]save to /storage/0115/doc_00030508 [01:53:22]save last doc name /storage/0115/doc_00030508 to /storage/kkm_last_doc_name [01:53:22]save OK [01:53:22]Clear old archive folders... [01:53:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:53:22]tlvbuf is 01E05F20 [01:53:22]SAM_PROTO_ClearQueue [01:53:22]wFMCommunicate request_size=4 [01:53:22]MH_SAM_APDU [01:53:22]CAPDU: 80 09 00 00 [01:53:22]Write to MH i2c: E2 08 00 D4 1F 80 09 00 00 00 00 00 00 65 [01:53:22]Write i2c OK [01:53:22]MH_I2C_Read... [01:53:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:53:22]Read from MH i2c: E2 [01:53:22]MH_I2C_Read... [01:53:22]Read from MH i2c: E2 03 00 [01:53:22]MH_I2C_Read... [01:53:22]Read from MH i2c: E2 03 00 D4 1F 00 90 00 67 [01:53:22]RAPDU: 90 00 [01:53:22]wFMCommunicate OK [01:53:22]SAM_PROTO_ClearQueue done [01:53:22]KKMCreateOFDPacket [01:53:22]OFDProtocolAddRootSTLVToBuf [01:53:22]FM_MakeSignedData [01:53:22]FM_MakeSignedData [01:53:22]SAM_PROTO_SignData [01:53:22]wFMCommunicate request_size=4 [01:53:22]MH_SAM_APDU [01:53:22]CAPDU: 80 0D 01 02 [01:53:22]Write to MH i2c: E2 08 00 D5 1F 80 0D 01 02 00 00 00 00 6D [01:53:22]Write i2c OK [01:53:22]MH_I2C_Read... [01:53:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:53:22]Read from MH i2c: E2 [01:53:22]MH_I2C_Read... [01:53:22]Read from MH i2c: E2 03 00 [01:53:22]MH_I2C_Read... [01:53:22]Read from MH i2c: E2 03 00 D5 1F 00 90 00 68 [01:53:22]RAPDU: 90 00 [01:53:22]wFMCommunicate OK [01:53:22]wFMCommunicate request_size=255 [01:53:22]MH_SAM_APDU [01:53: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 05 00 00 00 F4 03 04 00 13 B4 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 2C 77 00 00 35 04 06 00 92 [01:53:22]Write to MH i2c: E2 02 01 D6 1F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 05 00 00 00 F4 03 04 00 13 B4 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 2C 77 00 00 35 04 06 00 92 00 00 B0 [01:53:22]Write i2c OK [01:53:22]MH_I2C_Read... [01:53:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:53:22]Read from MH i2c: E2 [01:53:22]MH_I2C_Read... [01:53:22]Read from MH i2c: E2 03 00 [01:53:22]MH_I2C_Read... [01:53:22]Read from MH i2c: E2 03 00 D6 1F 00 90 00 69 [01:53:22]RAPDU: 90 00 [01:53:22]wFMCommunicate OK [01:53:22]wFMCommunicate request_size=10 [01:53:22]MH_SAM_APDU [01:53:22]CAPDU: 80 0D 02 02 05 CA E1 5B 7B 66 [01:53:22]Write to MH i2c: E2 0D 00 D7 1F 80 0D 02 02 05 00 CA E1 5B 7B 66 00 00 61 [01:53:22]Write i2c OK [01:53:22]MH_I2C_Read... [01:53:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:53:22]Read from MH i2c: E2 [01:53:22]MH_I2C_Read... [01:53:22]Read from MH i2c: E2 03 00 [01:53:22]MH_I2C_Read... [01:53:22]Read from MH i2c: E2 03 00 D7 1F 00 90 00 6A [01:53:22]RAPDU: 90 00 [01:53:22]wFMCommunicate OK [01:53:22]wFMCommunicate request_size=4 [01:53:22]MH_SAM_APDU [01:53:22]CAPDU: 80 0D 03 02 [01:53:22]Write to MH i2c: E2 08 00 D8 1F 80 0D 03 02 00 00 00 00 72 [01:53:22]Write i2c OK [01:53:22]MH_I2C_Read... [01:53:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:53:23]Read from MH i2c: E2 [01:53:23]MH_I2C_Read... [01:53:23]Read from MH i2c: E2 0B 00 [01:53:23]MH_I2C_Read... [01:53:23]Read from MH i2c: E2 0B 00 D8 1F 00 E3 69 89 97 91 2C 15 BE 90 00 6F [01:53:23]RAPDU: E3 69 89 97 91 2C 15 BE 90 00 [01:53:23]wFMCommunicate OK [01:53:23]SAM_PROTO_SignData done [01:53:23]FM_MakeSignedData done [01:53:23]CreateOFDProtocolMessage [01:53:23]wFMCommunicate request_size=4 [01:53:23]MH_SAM_APDU [01:53:23]CAPDU: 80 11 00 00 [01:53:23]Write to MH i2c: E2 08 00 D9 1F 80 11 00 00 00 00 00 00 72 [01:53:23]Write i2c OK [01:53:23]MH_I2C_Read... [01:53:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:53:23]Read from MH i2c: E2 [01:53:23]MH_I2C_Read... [01:53:23]Read from MH i2c: E2 17 00 [01:53:23]MH_I2C_Read... [01:53:23]Read from MH i2c: E2 17 00 D9 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 C0 [01:53:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [01:53:23]wFMCommunicate OK [01:53:23]CreateOFDProtocolMessage done [01:53:23]OFDSenderStorePacket 30508 [01:53:23]StoreOFDPacket docnum=30508 [01:53: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 AB 61 07 01 A3 E8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 05 00 00 00 F4 03 04 00 13 B4 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 2C 77 00 00 35 04 06 00 92 CA E1 5B 7B 66 E3 69 89 97 91 2C 15 BE [01:53:23]CheckFolder [01:53:23]dirname=/storage/ofd_packets [01:53:23]CheckFolder done [01:53:23]ProducePacketName [01:53:23]name=ofd_packets/00030508 [01:53:23]NVStorageSaveData ofd_packets/00030508 [01:53:23]File name is /storage/ofd_packets/00030508 [01:53:23]Write 301 bytes [01:53:23]NVStorageSaveData done [01:53:23]OFDSenderStorePacket done [01:53:23]KKMCreateOFDPacket done [01:53:23]NVStorageSaveData kkm_last_timestamp [01:53:23]File name is /storage/kkm_last_timestamp [01:53:23]Write 4 bytes [01:53:23]NVStorageSaveData done [01:53:23]ExternCall_PrintAddStr [01:53:23]wPrintStart [01:53:23]Write to MH i2c: 01 00 00 DA 1F F9 [01:53:23]Write i2c OK [01:53:23]MH_I2C_Read... [01:53:23]Read from MH i2c: 01 [01:53:23]MH_I2C_Read... [01:53:23]Read from MH i2c: 01 07 00 [01:53:23]MH_I2C_Read... [01:53:23]Read from MH i2c: 01 07 00 DA 1F 00 00 00 00 00 FF 0F 0E [01:53:23]RasterBufferAndPrint [01:53:23]line Счет N : (1)342910 [01:53:23]line ИНН: 02508201610067 [01:53:23]line Контрольно-Кассовый Чек [01:53:23]line ПРОДАЖА [01:53:23]line ТРК (МРК, ГНК) : 63 [01:53:23]line Товар: 2710124130 [01:53:23]line Аи-92-К-2 [01:53:23]line 2.990 * 66.90 [01:53:23]line = 200.03 [01:53:23]line НДС 12% НСП 1% [01:53:23]line > о реализуемом товаре [01:53:23]line ОКРУГЛЕНИЕ: -0.03 [01:53:23]line ИТОГО: 200.00 [01:53:23]line Внесено: 200.00 [01:53:23]line СДАЧА: 0.00 [01:53:23]line НСП 1% : 1.77 [01:53:23]line НДС 12% : 21.24 [01:53:23]line Наличными: 200.00 [01:53:23]line Безнал.: 0.00 [01:53:23]line Место: АЗС № 78 "Партнер Нефть" [01:53:23]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [01:53:23]line СНО: Общий режим [01:53:23]line Чек 5 21.10.2024 01:53 [01:53:23]line Смена: 115 ФФД: 1.0 [01:53:23]line ЗНМ: 0300000137 [01:53:23]line РНМ: 0000000000186857 [01:53:23]line Версия ККМ: v1.0 [01:53:23]line ФМ: 0000000002094219 [01:53:23]line ФД: 30508 [01:53:23]line ФПД: 161400061918054 [01:53:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T015323&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30508&fm=161400061918054&tin=02508201610067®Number=0000000000186857&sum=20000 [01:53:23]OFD Sender: Processing packet 30508 [packets to send 10, broken 9] [01:53:23]ProducePacketName [01:53:23]name=ofd_packets/00030508 [01:53:23]OFD Sender: To server: pG, [01:53:23]CommunicateWithHost lk.salyk.kg:30040 [01:53:23]ConnectInit lk.salyk.kg [01:53:23]written 0, free lines is 4095 [01:53:23]Connected sock=11 [01:53: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 AB 61 07 01 A3 E8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 05 00 00 00 F4 03 04 00 13 B4 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 2C 77 00 00 35 04 06 00 92 CA E1 5B 7B 66 E3 69 89 97 91 2C 15 BE [01:53: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 EC 98 47 00 A1 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 2C 77 00 00 F4 03 04 00 95 5E 15 67 B6 04 01 00 00 AC 93 3A A9 83 F7 27 99 [01:53:23]CommunicateWithHost err = 0 [01:53:23]CheckOFDResponse [01:53:23]1017 (14) - 77093643461234 [01:53:23]1041 (16) - 0000000002094219 [01:53:23]1040 (4) - 30508 [01:53:23]1012 (4) - 20.10.2024 19:48 [01:53:23]1206 (1) - 0 [01:53:23]OFD Sender: Remove packet 30508 [01:53:23]ProducePacketName [01:53:23]name=ofd_packets/00030508 [01:53:23]NVStorageDeleteData [01:53:23]Write to MH i2c: 01 00 00 05 20 25 [01:53:23]Write i2c OK [01:53:23]MH_I2C_Read... [01:53:23]Read from MH i2c: 01 [01:53:23]MH_I2C_Read... [01:53:23]Read from MH i2c: 01 07 00 [01:53:23]MH_I2C_Read... [01:53:23]Read from MH i2c: 01 07 00 05 20 00 00 00 00 00 E8 0C 20 [01:53:23]RasterBufferAndPrint [01:53:23]line [01:53:23]line [01:53:23]line [01:53:23]line [01:53:23]line [01:53:23]written 0, free lines is 3310 [01:53:23]MH_Cut [01:53:23]Write to MH i2c: D1 01 00 0C 20 01 FE [01:53:23]Write i2c OK [01:53:23]MH_I2C_Read... [01:53:23]Read from MH i2c: D1 [01:53:23]MH_I2C_Read... [01:53:23]Read from MH i2c: D1 01 00 [01:53:23]MH_I2C_Read... [01:53:23]Read from MH i2c: D1 01 00 0C 20 00 FD [01:53:23]Write to MH i2c: 01 00 00 0D 20 2D [01:53:23]Write i2c OK [01:53:23]MH_I2C_Read... [01:53:24]OFD Sender: No OFD packet to send [01:53:24]*** Cut start [01:53:24]*** Partial cut [01:53:24]*** CUTSNS_PIN = 1 [01:53:24]*** CUTSNS_PIN = 0 [01:53:24]*** Brake cut motor [01:53:25]Read from MH i2c: 01 [01:53:25]MH_I2C_Read... [01:53:25]*** Stop cut motor [01:53:25]*** Cut end [01:53:25]Read from MH i2c: 01 07 00 [01:53:25]MH_I2C_Read... [01:53:25]Read from MH i2c: 01 07 00 0D 20 00 00 00 00 00 FF 0F 42 [01:53:25]process_action close_receipt done [01:53:25]requested_data is exist [01:53:25]produce_requested_data [01:53:25]requested_item fm.sn is exist - process it [01:53:25]wFMCommunicate request_size=4 [01:53:25]MH_SAM_APDU [01:53:25]CAPDU: 80 11 00 00 [01:53:25]Write to MH i2c: E2 08 00 0E 20 80 11 00 00 00 00 00 00 A8 [01:53:25]Write i2c OK [01:53:25]MH_I2C_Read... [01:53:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:53:25]Read from MH i2c: E2 [01:53:25]MH_I2C_Read... [01:53:25]Read from MH i2c: E2 17 00 [01:53:25]MH_I2C_Read... [01:53:25]Read from MH i2c: E2 17 00 0E 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 F6 [01:53:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [01:53:25]wFMCommunicate OK [01:53:25]requested_item fd.num is exist - process it [01:53:25]SAM_PROTO_GetFieldsCounters [01:53:25]wFMCommunicate request_size=4 [01:53:25]MH_SAM_APDU [01:53:25]CAPDU: 80 13 00 00 [01:53:25]Write to MH i2c: E2 08 00 0F 20 80 13 00 00 00 00 00 00 AB [01:53:25]Write i2c OK [01:53:25]MH_I2C_Read... [01:53:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:53:25]Read from MH i2c: E2 [01:53:25]MH_I2C_Read... [01:53:25]Read from MH i2c: E2 62 00 [01:53:25]MH_I2C_Read... [01:53:25]Read from MH i2c: E2 62 00 0F 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 2C 77 00 00 0E 04 04 00 73 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 F6 [01:53: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 2C 77 00 00 0E 04 04 00 73 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 [01:53:25]wFMCommunicate OK [01:53:25]SAM_PROTO_GetFieldsCounters done [01:53:25]requested_item shift.num is exist - process it [01:53:25]requested_item shift.opened is exist - process it [01:53:25]req_shift_opened [01:53:25]FM_GetShiftState [01:53:25]SAM_PROTO_GetShiftState [01:53:25]wFMCommunicate request_size=4 [01:53:25]MH_SAM_APDU [01:53:25]CAPDU: 80 13 01 00 [01:53:25]Write to MH i2c: E2 08 00 10 20 80 13 01 00 00 00 00 00 AD [01:53:25]Write i2c OK [01:53:25]MH_I2C_Read... [01:53:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:53:25]Read from MH i2c: E2 [01:53:25]MH_I2C_Read... [01:53:25]Read from MH i2c: E2 0E 00 [01:53:25]MH_I2C_Read... [01:53:25]Read from MH i2c: E2 0E 00 10 20 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 29 [01:53:25]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [01:53:25]wFMCommunicate OK [01:53:25]SAM_PROTO_GetShiftState done [01:53:25]FM_GetShiftState done [01:53:25]req_shift_opened done [01:53:25]requested_item shift.open_date is exist - process it [01:53:25]req_shift_open_date [01:53:25]req_shift_open_date done [01:53:25]produce_requested_data done [01:53:25]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30508,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [01:53:25]process_action_free close_receipt [01:53:25]json_value_free [01:53:25]json_value_free done [01:53:25]process_json_proto returns [01:53:25]Send response to host [01:53:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30508,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [01:53:25]free response buf [01:53:25]execute_script done [01:53:25]execute_script returns [01:53:25]free content buf [01:53:25]Sock 7.Close socket [01:53:25]Sock 7.Thread stoped [01:53:29]OFD Sender: No OFD packet to send [01:53:34]OFD Sender: No OFD packet to send [01:53:39]OFD Sender: No OFD packet to send [01:53:44]OFD Sender: No OFD packet to send [01:53:49]OFD Sender: No OFD packet to send [01:53:54]OFD Sender: No OFD packet to send [01:53:59]OFD Sender: No OFD packet to send [01:54:04]OFD Sender: No OFD packet to send [01:54:09]OFD Sender: No OFD packet to send [01:54:14]OFD Sender: No OFD packet to send [01:54:19]OFD Sender: No OFD packet to send [01:54:24]OFD Sender: No OFD packet to send [01:54:29]OFD Sender: No OFD packet to send [01:54:34]OFD Sender: No OFD packet to send [01:54:39]OFD Sender: No OFD packet to send [01:54:44]OFD Sender: No OFD packet to send [01:54:49]OFD Sender: No OFD packet to send [01:54:54]OFD Sender: No OFD packet to send [01:54:59]OFD Sender: No OFD packet to send [01:55:04]OFD Sender: No OFD packet to send [01:55:09]OFD Sender: No OFD packet to send [01:55:14]OFD Sender: No OFD packet to send [01:55:19]OFD Sender: No OFD packet to send [01:55:24]OFD Sender: No OFD packet to send [01:55:29]OFD Sender: No OFD packet to send [01:55:34]OFD Sender: No OFD packet to send [01:55:39]OFD Sender: No OFD packet to send [01:55:44]OFD Sender: No OFD packet to send [01:55:49]OFD Sender: No OFD packet to send [01:55:54]OFD Sender: No OFD packet to send [01:55:59]OFD Sender: No OFD packet to send [01:56:04]OFD Sender: No OFD packet to send [01:56:09]OFD Sender: No OFD packet to send [01:56:14]OFD Sender: No OFD packet to send [01:56:19]OFD Sender: No OFD packet to send [01:56:24]OFD Sender: No OFD packet to send [01:56:29]OFD Sender: No OFD packet to send [01:56:34]OFD Sender: No OFD packet to send [01:56:39]OFD Sender: No OFD packet to send [01:56:44]OFD Sender: No OFD packet to send [01:56:49]OFD Sender: No OFD packet to send [01:56:54]OFD Sender: No OFD packet to send [01:56:59]OFD Sender: No OFD packet to send [01:57:04]OFD Sender: No OFD packet to send [01:57:09]OFD Sender: No OFD packet to send [01:57:14]OFD Sender: No OFD packet to send [01:57:19]OFD Sender: No OFD packet to send [01:57:24]OFD Sender: No OFD packet to send [01:57:29]OFD Sender: No OFD packet to send [01:57:34]OFD Sender: No OFD packet to send [01:57:39]OFD Sender: No OFD packet to send [01:57:44]OFD Sender: No OFD packet to send [01:57:49]OFD Sender: No OFD packet to send [01:57:54]OFD Sender: No OFD packet to send [01:57:59]OFD Sender: No OFD packet to send [01:58:04]OFD Sender: No OFD packet to send [01:58:09]OFD Sender: No OFD packet to send [01:58:14]OFD Sender: No OFD packet to send [01:58:19]OFD Sender: No OFD packet to send [01:58:24]OFD Sender: No OFD packet to send [01:58:29]OFD Sender: No OFD packet to send [01:58:34]OFD Sender: No OFD packet to send [01:58:39]OFD Sender: No OFD packet to send [01:58:44]OFD Sender: No OFD packet to send [01:58:49]OFD Sender: No OFD packet to send [01:58:54]OFD Sender: No OFD packet to send [01:58:59]OFD Sender: No OFD packet to send [01:59:04]OFD Sender: No OFD packet to send [01:59:09]OFD Sender: No OFD packet to send [01:59:14]OFD Sender: No OFD packet to send [01:59:19]OFD Sender: No OFD packet to send [01:59:24]OFD Sender: No OFD packet to send [01:59:29]OFD Sender: No OFD packet to send [01:59:34]OFD Sender: No OFD packet to send [01:59:39]OFD Sender: No OFD packet to send [01:59:44]OFD Sender: No OFD packet to send [01:59:49]OFD Sender: No OFD packet to send [01:59:54]OFD Sender: No OFD packet to send [01:59:59]OFD Sender: No OFD packet to send [02:00:04]OFD Sender: No OFD packet to send [02:00:09]OFD Sender: No OFD packet to send [02:00:14]OFD Sender: No OFD packet to send [02:00:19]OFD Sender: No OFD packet to send [02:00:24]OFD Sender: No OFD packet to send [02:00:29]OFD Sender: No OFD packet to send [02:00:34]OFD Sender: No OFD packet to send [02:00:39]OFD Sender: No OFD packet to send [02:00:44]OFD Sender: No OFD packet to send [02:00:49]OFD Sender: No OFD packet to send [02:00:54]OFD Sender: No OFD packet to send [02:00:59]OFD Sender: No OFD packet to send [02:01:04]OFD Sender: No OFD packet to send [02:01:09]OFD Sender: No OFD packet to send [02:01:14]OFD Sender: No OFD packet to send [02:01:19]OFD Sender: No OFD packet to send [02:01:24]OFD Sender: No OFD packet to send [02:01:29]OFD Sender: No OFD packet to send [02:01:34]OFD Sender: No OFD packet to send [02:01:39]OFD Sender: No OFD packet to send [02:01:44]OFD Sender: No OFD packet to send [02:01:49]OFD Sender: No OFD packet to send [02:01:54]OFD Sender: No OFD packet to send [02:01:59]OFD Sender: No OFD packet to send [02:02:04]OFD Sender: No OFD packet to send [02:02:09]OFD Sender: No OFD packet to send [02:02:14]OFD Sender: No OFD packet to send [02:02:19]OFD Sender: No OFD packet to send [02:02:24]OFD Sender: No OFD packet to send [02:02:29]OFD Sender: No OFD packet to send [02:02:34]OFD Sender: No OFD packet to send [02:02:39]OFD Sender: No OFD packet to send [02:02:44]OFD Sender: No OFD packet to send [02:02:49]OFD Sender: No OFD packet to send [02:02:54]OFD Sender: No OFD packet to send [02:02:59]OFD Sender: No OFD packet to send [02:03:04]OFD Sender: No OFD packet to send [02:03:09]OFD Sender: No OFD packet to send [02:03:14]OFD Sender: No OFD packet to send [02:03:19]OFD Sender: No OFD packet to send [02:03:24]OFD Sender: No OFD packet to send [02:03:29]OFD Sender: No OFD packet to send [02:03:34]OFD Sender: No OFD packet to send [02:03:39]OFD Sender: No OFD packet to send [02:03:44]OFD Sender: No OFD packet to send [02:03:49]OFD Sender: No OFD packet to send [02:03:54]OFD Sender: No OFD packet to send [02:03:59]OFD Sender: No OFD packet to send [02:04:04]OFD Sender: No OFD packet to send [02:04:09]OFD Sender: No OFD packet to send [02:04:14]OFD Sender: No OFD packet to send [02:04:19]OFD Sender: No OFD packet to send [02:04:24]OFD Sender: No OFD packet to send [02:04:29]OFD Sender: No OFD packet to send [02:04:34]OFD Sender: No OFD packet to send [02:04:39]OFD Sender: No OFD packet to send [02:04:44]OFD Sender: No OFD packet to send [02:04:49]OFD Sender: No OFD packet to send [02:04:54]OFD Sender: No OFD packet to send [02:04:59]OFD Sender: No OFD packet to send [02:05:04]OFD Sender: No OFD packet to send [02:05:09]OFD Sender: No OFD packet to send [02:05:14]OFD Sender: No OFD packet to send [02:05:19]OFD Sender: No OFD packet to send [02:05:24]OFD Sender: No OFD packet to send [02:05:29]OFD Sender: No OFD packet to send [02:05:34]OFD Sender: No OFD packet to send [02:05:39]OFD Sender: No OFD packet to send [02:05:44]OFD Sender: No OFD packet to send [02:05:49]OFD Sender: No OFD packet to send [02:05:54]OFD Sender: No OFD packet to send [02:05:59]OFD Sender: No OFD packet to send [02:06:04]OFD Sender: No OFD packet to send [02:06:09]OFD Sender: No OFD packet to send [02:06:14]OFD Sender: No OFD packet to send [02:06:19]OFD Sender: No OFD packet to send [02:06:24]OFD Sender: No OFD packet to send [02:06:29]OFD Sender: No OFD packet to send [02:06:34]OFD Sender: No OFD packet to send [02:06:39]OFD Sender: No OFD packet to send [02:06:44]OFD Sender: No OFD packet to send [02:06:49]OFD Sender: No OFD packet to send [02:06:54]accept exits with 9 [02:06:54]New connection [02:06:54]New thread 3067346276 created [02:06:54]Thread 3067489636 joined [02:06:54]Waiting for new connection... [02:06:54] Sock 9.Parse request [02:06:54]Sock 9.Check first char [02:06:54]Sock 9.First char is OK [02:06:54]request: POST /json_proto HTTP/1.0 [02:06:54]Method: POST [02:06:54]URL: /json_proto [02:06:54]Method is POST - this is cgi request [02:06:54]url: /json_proto [02:06:54]query_string will be loaded in cgi processing [02:06:54]execute_cgi json_proto POST (null) [02:06:54]execute_cgi path=json_proto method=POST [02:06:54]POST find Content-Length [02:06:54]Host: 172.17.51.3:8080 [02:06:54]Content-Length: 677 [02:06:54]Content-Type: application/json [02:06:54] [02:06:54]POST finish read [02:06:54]Found Content-Length = 677 [02:06:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342911", "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" : 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" ] } } [02:06:54]execute_script... [02:06: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)342911", "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" : 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" ] } } [02:06:54]POST & json_proto [02:06:54]process_json_proto [02:06:54]json parsed OK: [02:06:54]protocol is kg_v1.0 [02:06:54]action value=close_receipt [02:06:54]process_action close_receipt [02:06:54]cmd_close_receipt [02:06:54]MH_GetDate [02:06:54]Write to MH i2c: F0 00 00 11 20 20 [02:06:54]Write i2c OK [02:06:54]MH_I2C_Read... [02:06:54]Read from MH i2c: F0 [02:06:54]MH_I2C_Read... [02:06:54]Read from MH i2c: F0 09 00 [02:06:54]MH_I2C_Read... [02:06:54]Read from MH i2c: F0 09 00 11 20 00 40 B7 15 67 04 C1 95 66 5C [02:06:54]GetLastDocTimeStamp 1729475603 [02:06:54]current date 1729476416 [02:06:54]FM_GetShiftState [02:06:54]SAM_PROTO_GetShiftState [02:06:54]wFMCommunicate request_size=4 [02:06:54]MH_SAM_APDU [02:06:54]CAPDU: 80 13 01 00 [02:06:54]Write to MH i2c: E2 08 00 12 20 80 13 01 00 00 00 00 00 AF [02:06:54]Write i2c OK [02:06:54]MH_I2C_Read... [02:06:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:06:54]Read from MH i2c: E2 [02:06:54]MH_I2C_Read... [02:06:54]Read from MH i2c: E2 0E 00 [02:06:54]MH_I2C_Read... [02:06:54]Read from MH i2c: E2 0E 00 12 20 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 2B [02:06:54]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [02:06:54]wFMCommunicate OK [02:06:54]SAM_PROTO_GetShiftState done [02:06:54]FM_GetShiftState done [02:06:54]opened in 1729471058 [02:06:54]opened+sec_in_day 1729557458 [02:06:54]quantity*price = 50010 [02:06:54]sum+1 = 50012 [02:06:54]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 СНО: Общий режим Чек 6 21.10.2024 02:06 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30509 ФПД: 84227977137184 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T020656&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30509&fm=84227977137184&tin=02508201610067®Number=0000000000186857&sum=50000 [02:06:55]StoreToDocumentArchive [02:06:55]shift 115 fd 30509 [02:06:55]save to /storage/0115/doc_00030509 [02:06:55]save last doc name /storage/0115/doc_00030509 to /storage/kkm_last_doc_name [02:06:55]save OK [02:06:55]Clear old archive folders... [02:06:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [02:06:55]tlvbuf is 01E0BFB0 [02:06:55]SAM_PROTO_ClearQueue [02:06:55]wFMCommunicate request_size=4 [02:06:55]MH_SAM_APDU [02:06:55]CAPDU: 80 09 00 00 [02:06:55]Write to MH i2c: E2 08 00 1F 20 80 09 00 00 00 00 00 00 B1 [02:06:55]Write i2c OK [02:06:55]MH_I2C_Read... [02:06:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:06:55]Read from MH i2c: E2 [02:06:55]MH_I2C_Read... [02:06:55]Read from MH i2c: E2 03 00 [02:06:55]MH_I2C_Read... [02:06:55]Read from MH i2c: E2 03 00 1F 20 00 90 00 B3 [02:06:55]RAPDU: 90 00 [02:06:55]wFMCommunicate OK [02:06:55]SAM_PROTO_ClearQueue done [02:06:55]KKMCreateOFDPacket [02:06:55]OFDProtocolAddRootSTLVToBuf [02:06:55]FM_MakeSignedData [02:06:55]FM_MakeSignedData [02:06:55]SAM_PROTO_SignData [02:06:55]wFMCommunicate request_size=4 [02:06:55]MH_SAM_APDU [02:06:55]CAPDU: 80 0D 01 02 [02:06:55]Write to MH i2c: E2 08 00 20 20 80 0D 01 02 00 00 00 00 B9 [02:06:55]Write i2c OK [02:06:55]MH_I2C_Read... [02:06:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:06:55]Read from MH i2c: E2 [02:06:55]MH_I2C_Read... [02:06:55]Read from MH i2c: E2 03 00 [02:06:55]MH_I2C_Read... [02:06:55]Read from MH i2c: E2 03 00 20 20 00 90 00 B4 [02:06:55]RAPDU: 90 00 [02:06:55]wFMCommunicate OK [02:06:55]wFMCommunicate request_size=255 [02:06:55]MH_SAM_APDU [02:06: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 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 06 00 00 00 F4 03 04 00 40 B7 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 2D 77 00 00 35 04 06 00 4C [02:06:55]Write to MH i2c: E2 02 01 21 20 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 06 00 00 00 F4 03 04 00 40 B7 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 2D 77 00 00 35 04 06 00 4C 00 00 FF [02:06:55]Write i2c OK [02:06:55]MH_I2C_Read... [02:06:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:06:55]Read from MH i2c: E2 [02:06:55]MH_I2C_Read... [02:06:55]Read from MH i2c: E2 03 00 [02:06:55]MH_I2C_Read... [02:06:55]Read from MH i2c: E2 03 00 21 20 00 90 00 B5 [02:06:55]RAPDU: 90 00 [02:06:55]wFMCommunicate OK [02:06:55]wFMCommunicate request_size=10 [02:06:55]MH_SAM_APDU [02:06:55]CAPDU: 80 0D 02 02 05 9A DA A8 4C 20 [02:06:55]Write to MH i2c: E2 0D 00 22 20 80 0D 02 02 05 00 9A DA A8 4C 20 00 00 4E [02:06:55]Write i2c OK [02:06:55]MH_I2C_Read... [02:06:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:06:55]Read from MH i2c: E2 [02:06:55]MH_I2C_Read... [02:06:55]Read from MH i2c: E2 03 00 [02:06:55]MH_I2C_Read... [02:06:55]Read from MH i2c: E2 03 00 22 20 00 90 00 B6 [02:06:55]RAPDU: 90 00 [02:06:55]wFMCommunicate OK [02:06:55]wFMCommunicate request_size=4 [02:06:55]MH_SAM_APDU [02:06:55]CAPDU: 80 0D 03 02 [02:06:55]Write to MH i2c: E2 08 00 23 20 80 0D 03 02 00 00 00 00 BE [02:06:55]Write i2c OK [02:06:55]MH_I2C_Read... [02:06:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:06:55]Read from MH i2c: E2 [02:06:55]MH_I2C_Read... [02:06:55]Read from MH i2c: E2 0B 00 [02:06:55]MH_I2C_Read... [02:06:55]Read from MH i2c: E2 0B 00 23 20 00 9F C1 5E E7 22 61 3B 64 90 00 86 [02:06:55]RAPDU: 9F C1 5E E7 22 61 3B 64 90 00 [02:06:55]wFMCommunicate OK [02:06:55]SAM_PROTO_SignData done [02:06:55]FM_MakeSignedData done [02:06:55]CreateOFDProtocolMessage [02:06:55]wFMCommunicate request_size=4 [02:06:55]MH_SAM_APDU [02:06:55]CAPDU: 80 11 00 00 [02:06:55]Write to MH i2c: E2 08 00 24 20 80 11 00 00 00 00 00 00 BE [02:06:55]Write i2c OK [02:06:55]MH_I2C_Read... [02:06:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:06:55]Read from MH i2c: E2 [02:06:55]MH_I2C_Read... [02:06:55]Read from MH i2c: E2 17 00 [02:06:55]MH_I2C_Read... [02:06:55]Read from MH i2c: E2 17 00 24 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 0C [02:06:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [02:06:55]wFMCommunicate OK [02:06:55]CreateOFDProtocolMessage done [02:06:55]OFDSenderStorePacket 30509 [02:06:55]StoreOFDPacket docnum=30509 [02:06: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 0F A6 07 01 E8 87 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 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 06 00 00 00 F4 03 04 00 40 B7 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 2D 77 00 00 35 04 06 00 4C 9A DA A8 4C 20 9F C1 5E E7 22 61 3B 64 [02:06:55]CheckFolder [02:06:55]dirname=/storage/ofd_packets [02:06:55]CheckFolder done [02:06:55]ProducePacketName [02:06:55]name=ofd_packets/00030509 [02:06:55]NVStorageSaveData ofd_packets/00030509 [02:06:55]File name is /storage/ofd_packets/00030509 [02:06:55]Write 301 bytes [02:06:55]NVStorageSaveData done [02:06:55]OFDSenderStorePacket done [02:06:55]KKMCreateOFDPacket done [02:06:55]NVStorageSaveData kkm_last_timestamp [02:06:55]File name is /storage/kkm_last_timestamp [02:06:55]Write 4 bytes [02:06:55]NVStorageSaveData done [02:06:55]ExternCall_PrintAddStr [02:06:55]wPrintStart [02:06:55]Write to MH i2c: 01 00 00 25 20 45 [02:06:55]Write i2c OK [02:06:55]MH_I2C_Read... [02:06:55]Read from MH i2c: 01 [02:06:55]MH_I2C_Read... [02:06:55]Read from MH i2c: 01 07 00 [02:06:55]MH_I2C_Read... [02:06:55]Read from MH i2c: 01 07 00 25 20 00 00 00 00 00 FF 0F 5A [02:06:55]RasterBufferAndPrint [02:06:55]line Счет N : (1)342911 [02:06:55]line ИНН: 02508201610067 [02:06:55]line Контрольно-Кассовый Чек [02:06:55]line ПРОДАЖА [02:06:55]line ТРК (МРК, ГНК) : 42 [02:06:55]line Товар: 2710124500 [02:06:55]line Аи-95-К-3 [02:06:55]line 6.740 * 74.20 [02:06:55]line = 500.11 [02:06:55]line НДС 12% НСП 1% [02:06:55]line > о реализуемом товаре [02:06:55]line ОКРУГЛЕНИЕ: -0.11 [02:06:55]line ИТОГО: 500.00 [02:06:55]line Внесено: 500.00 [02:06:55]line СДАЧА: 0.00 [02:06:55]line НСП 1% : 4.43 [02:06:55]line НДС 12% : 53.11 [02:06:55]line Наличными: 500.00 [02:06:55]line Безнал.: 0.00 [02:06:55]line Место: АЗС № 78 "Партнер Нефть" [02:06:55]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [02:06:55]line СНО: Общий режим [02:06:55]line Чек 6 21.10.2024 02:06 [02:06:55]line Смена: 115 ФФД: 1.0 [02:06:55]line ЗНМ: 0300000137 [02:06:55]line РНМ: 0000000000186857 [02:06:55]line Версия ККМ: v1.0 [02:06:55]line ФМ: 0000000002094219 [02:06:55]line ФД: 30509 [02:06:55]line ФПД: 84227977137184 [02:06:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T020656&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30509&fm=84227977137184&tin=02508201610067®Number=0000000000186857&sum=50000 [02:06:56]OFD Sender: Processing packet 30509 [packets to send 10, broken 9] [02:06:56]ProducePacketName [02:06:56]name=ofd_packets/00030509 [02:06:56]OFD Sender: To server: pG, [02:06:56]CommunicateWithHost lk.salyk.kg:30040 [02:06:56]ConnectInit lk.salyk.kg [02:06:56]written 0, free lines is 4095 [02:06:56]Connected sock=10 [02:06: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 0F A6 07 01 E8 87 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 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 06 00 00 00 F4 03 04 00 40 B7 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 2D 77 00 00 35 04 06 00 4C 9A DA A8 4C 20 9F C1 5E E7 22 61 3B 64 [02:06: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 5C 1E 47 00 7B 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 2D 77 00 00 F4 03 04 00 C2 61 15 67 B6 04 01 00 00 84 4E BC 1F 1D 30 0F 11 [02:06:56]CommunicateWithHost err = 0 [02:06:56]CheckOFDResponse [02:06:56]1017 (14) - 77093643461234 [02:06:56]1041 (16) - 0000000002094219 [02:06:56]1040 (4) - 30509 [02:06:56]1012 (4) - 20.10.2024 20:02 [02:06:56]1206 (1) - 0 [02:06:56]OFD Sender: Remove packet 30509 [02:06:56]ProducePacketName [02:06:56]name=ofd_packets/00030509 [02:06:56]NVStorageDeleteData [02:06:56]Write to MH i2c: 01 00 00 50 20 70 [02:06:56]Write i2c OK [02:06:56]MH_I2C_Read... [02:06:56]Read from MH i2c: 01 [02:06:56]MH_I2C_Read... [02:06:56]Read from MH i2c: 01 07 00 [02:06:56]MH_I2C_Read... [02:06:56]Read from MH i2c: 01 07 00 50 20 00 00 00 00 00 F9 0C 7C [02:06:56]RasterBufferAndPrint [02:06:56]line [02:06:56]line [02:06:56]line [02:06:56]line [02:06:56]line [02:06:56]written 0, free lines is 3328 [02:06:56]MH_Cut [02:06:56]Write to MH i2c: D1 01 00 57 20 01 49 [02:06:56]Write i2c OK [02:06:56]MH_I2C_Read... [02:06:56]Read from MH i2c: D1 [02:06:56]MH_I2C_Read... [02:06:56]Read from MH i2c: D1 01 00 [02:06:56]MH_I2C_Read... [02:06:56]Read from MH i2c: D1 01 00 57 20 00 48 [02:06:56]Write to MH i2c: 01 00 00 58 20 78 [02:06:56]Write i2c OK [02:06:56]MH_I2C_Read... [02:06:56]OFD Sender: No OFD packet to send [02:06:57]*** Cut start [02:06:57]*** Partial cut [02:06:57]*** CUTSNS_PIN = 1 [02:06:57]*** CUTSNS_PIN = 0 [02:06:57]*** Brake cut motor [02:06:57]Read from MH i2c: 01 [02:06:57]MH_I2C_Read... [02:06:57]*** Stop cut motor [02:06:57]*** Cut end [02:06:57]Read from MH i2c: 01 07 00 [02:06:57]MH_I2C_Read... [02:06:57]Read from MH i2c: 01 07 00 58 20 00 00 00 00 00 FF 0F 8D [02:06:57]process_action close_receipt done [02:06:57]requested_data is exist [02:06:57]produce_requested_data [02:06:57]requested_item fm.sn is exist - process it [02:06:57]wFMCommunicate request_size=4 [02:06:57]MH_SAM_APDU [02:06:57]CAPDU: 80 11 00 00 [02:06:57]Write to MH i2c: E2 08 00 59 20 80 11 00 00 00 00 00 00 F3 [02:06:57]Write i2c OK [02:06:57]MH_I2C_Read... [02:06:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:06:57]Read from MH i2c: E2 [02:06:57]MH_I2C_Read... [02:06:57]Read from MH i2c: E2 17 00 [02:06:57]MH_I2C_Read... [02:06:57]Read from MH i2c: E2 17 00 59 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 41 [02:06:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [02:06:57]wFMCommunicate OK [02:06:57]requested_item fd.num is exist - process it [02:06:57]SAM_PROTO_GetFieldsCounters [02:06:57]wFMCommunicate request_size=4 [02:06:57]MH_SAM_APDU [02:06:57]CAPDU: 80 13 00 00 [02:06:57]Write to MH i2c: E2 08 00 5A 20 80 13 00 00 00 00 00 00 F6 [02:06:57]Write i2c OK [02:06:57]MH_I2C_Read... [02:06:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:06:57]Read from MH i2c: E2 [02:06:57]MH_I2C_Read... [02:06:57]Read from MH i2c: E2 62 00 [02:06:57]MH_I2C_Read... [02:06:57]Read from MH i2c: E2 62 00 5A 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 2D 77 00 00 0E 04 04 00 73 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 45 [02:06: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 2D 77 00 00 0E 04 04 00 73 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:06:58]wFMCommunicate OK [02:06:58]SAM_PROTO_GetFieldsCounters done [02:06:58]requested_item shift.num is exist - process it [02:06:58]requested_item shift.opened is exist - process it [02:06:58]req_shift_opened [02:06:58]FM_GetShiftState [02:06:58]SAM_PROTO_GetShiftState [02:06:58]wFMCommunicate request_size=4 [02:06:58]MH_SAM_APDU [02:06:58]CAPDU: 80 13 01 00 [02:06:58]Write to MH i2c: E2 08 00 5B 20 80 13 01 00 00 00 00 00 F8 [02:06:58]Write i2c OK [02:06:58]MH_I2C_Read... [02:06:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:06:58]Read from MH i2c: E2 [02:06:58]MH_I2C_Read... [02:06:58]Read from MH i2c: E2 0E 00 [02:06:58]MH_I2C_Read... [02:06:58]Read from MH i2c: E2 0E 00 5B 20 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 74 [02:06:58]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [02:06:58]wFMCommunicate OK [02:06:58]SAM_PROTO_GetShiftState done [02:06:58]FM_GetShiftState done [02:06:58]req_shift_opened done [02:06:58]requested_item shift.open_date is exist - process it [02:06:58]req_shift_open_date [02:06:58]req_shift_open_date done [02:06:58]produce_requested_data done [02:06:58]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30509,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [02:06:58]process_action_free close_receipt [02:06:58]json_value_free [02:06:58]json_value_free done [02:06:58]process_json_proto returns [02:06:58]Send response to host [02:06:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30509,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [02:06:58]free response buf [02:06:58]execute_script done [02:06:58]execute_script returns [02:06:58]free content buf [02:06:58]Sock 9.Close socket [02:06:58]Sock 9.Thread stoped [02:07:01]OFD Sender: No OFD packet to send [02:07:06]OFD Sender: No OFD packet to send [02:07:11]OFD Sender: No OFD packet to send [02:07:16]OFD Sender: No OFD packet to send [02:07:21]OFD Sender: No OFD packet to send [02:07:26]OFD Sender: No OFD packet to send [02:07:31]OFD Sender: No OFD packet to send [02:07:36]OFD Sender: No OFD packet to send [02:07:41]OFD Sender: No OFD packet to send [02:07:46]OFD Sender: No OFD packet to send [02:07:51]OFD Sender: No OFD packet to send [02:07:56]OFD Sender: No OFD packet to send [02:08:01]OFD Sender: No OFD packet to send [02:08:06]OFD Sender: No OFD packet to send [02:08:11]OFD Sender: No OFD packet to send [02:08:16]OFD Sender: No OFD packet to send [02:08:21]OFD Sender: No OFD packet to send [02:08:26]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:47]OFD Sender: No OFD packet to send [02:16:52]OFD Sender: No OFD packet to send [02:16:57]OFD Sender: No OFD packet to send [02:17:02]OFD Sender: No OFD packet to send [02:17:07]OFD Sender: No OFD packet to send [02:17:12]OFD Sender: No OFD packet to send [02:17:17]OFD Sender: No OFD packet to send [02:17:22]OFD Sender: No OFD packet to send [02:17:27]OFD Sender: No OFD packet to send [02:17:32]OFD Sender: No OFD packet to send [02:17:37]OFD Sender: No OFD packet to send [02:17:42]OFD Sender: No OFD packet to send [02:17:47]OFD Sender: No OFD packet to send [02:17:52]OFD Sender: No OFD packet to send [02:17:57]OFD Sender: No OFD packet to send [02:18:02]OFD Sender: No OFD packet to send [02:18:07]OFD Sender: No OFD packet to send [02:18:12]OFD Sender: No OFD packet to send [02:18:17]OFD Sender: No OFD packet to send [02:18:22]OFD Sender: No OFD packet to send [02:18:27]OFD Sender: No OFD packet to send [02:18:32]OFD Sender: No OFD packet to send [02:18:37]OFD Sender: No OFD packet to send [02:18:42]OFD Sender: No OFD packet to send [02:18:47]OFD Sender: No OFD packet to send [02:18:52]OFD Sender: No OFD packet to send [02:18:57]OFD Sender: No OFD packet to send [02:19:02]OFD Sender: No OFD packet to send [02:19:07]OFD Sender: No OFD packet to send [02:19:12]OFD Sender: No OFD packet to send [02:19:17]OFD Sender: No OFD packet to send [02:19:22]OFD Sender: No OFD packet to send [02:19:27]OFD Sender: No OFD packet to send [02:19:32]OFD Sender: No OFD packet to send [02:19:37]OFD Sender: No OFD packet to send [02:19:42]OFD Sender: No OFD packet to send [02:19:47]OFD Sender: No OFD packet to send [02:19:52]OFD Sender: No OFD packet to send [02:19:57]OFD Sender: No OFD packet to send [02:20:02]OFD Sender: No OFD packet to send [02:20:07]OFD Sender: No OFD packet to send [02:20:12]OFD Sender: No OFD packet to send [02:20:17]OFD Sender: No OFD packet to send [02:20:22]OFD Sender: No OFD packet to send [02:20:27]OFD Sender: No OFD packet to send [02:20:32]OFD Sender: No OFD packet to send [02:20:37]OFD Sender: No OFD packet to send [02:20:42]OFD Sender: No OFD packet to send [02:20:47]OFD Sender: No OFD packet to send [02:20:52]OFD Sender: No OFD packet to send [02:20:57]OFD Sender: No OFD packet to send [02:21:02]OFD Sender: No OFD packet to send [02:21:07]OFD Sender: No OFD packet to send [02:21:12]OFD Sender: No OFD packet to send [02:21:17]OFD Sender: No OFD packet to send [02:21:22]OFD Sender: No OFD packet to send [02:21:27]OFD Sender: No OFD packet to send [02:21:32]OFD Sender: No OFD packet to send [02:21:37]OFD Sender: No OFD packet to send [02:21:42]OFD Sender: No OFD packet to send [02:21:47]OFD Sender: No OFD packet to send [02:21:52]OFD Sender: No OFD packet to send [02:21:57]OFD Sender: No OFD packet to send [02:22:02]OFD Sender: No OFD packet to send [02:22:07]OFD Sender: No OFD packet to send [02:22:12]OFD Sender: No OFD packet to send [02:22:17]OFD Sender: No OFD packet to send [02:22:22]OFD Sender: No OFD packet to send [02:22:27]OFD Sender: No OFD packet to send [02:22:32]OFD Sender: No OFD packet to send [02:22:37]OFD Sender: No OFD packet to send [02:22:42]OFD Sender: No OFD packet to send [02:22:47]OFD Sender: No OFD packet to send [02:22:52]OFD Sender: No OFD packet to send [02:22:57]OFD Sender: No OFD packet to send [02:23:02]OFD Sender: No OFD packet to send [02:23:07]OFD Sender: No OFD packet to send [02:23:12]OFD Sender: No OFD packet to send [02:23:17]OFD Sender: No OFD packet to send [02:23:22]OFD Sender: No OFD packet to send [02:23:27]OFD Sender: No OFD packet to send [02:23:32]OFD Sender: No OFD packet to send [02:23:37]OFD Sender: No OFD packet to send [02:23:42]OFD Sender: No OFD packet to send [02:23:47]OFD Sender: No OFD packet to send [02:23:52]OFD Sender: No OFD packet to send [02:23:57]OFD Sender: No OFD packet to send [02:24:02]OFD Sender: No OFD packet to send [02:24:07]OFD Sender: No OFD packet to send [02:24:12]OFD Sender: No OFD packet to send [02:24:17]OFD Sender: No OFD packet to send [02:24:22]OFD Sender: No OFD packet to send [02:24:27]OFD Sender: No OFD packet to send [02:24:32]OFD Sender: No OFD packet to send [02:24:37]OFD Sender: No OFD packet to send [02:24:42]OFD Sender: No OFD packet to send [02:24:47]OFD Sender: No OFD packet to send [02:24:52]OFD Sender: No OFD packet to send [02:24:57]OFD Sender: No OFD packet to send [02:25:02]OFD Sender: No OFD packet to send [02:25:07]OFD Sender: No OFD packet to send [02:25:12]OFD Sender: No OFD packet to send [02:25:17]OFD Sender: No OFD packet to send [02:25:22]OFD Sender: No OFD packet to send [02:25:27]OFD Sender: No OFD packet to send [02:25:32]OFD Sender: No OFD packet to send [02:25:37]OFD Sender: No OFD packet to send [02:25:42]OFD Sender: No OFD packet to send [02:25:47]OFD Sender: No OFD packet to send [02:25:52]OFD Sender: No OFD packet to send [02:25:57]OFD Sender: No OFD packet to send [02:26:02]OFD Sender: No OFD packet to send [02:26:07]OFD Sender: No OFD packet to send [02:26:12]OFD Sender: No OFD packet to send [02:26:17]OFD Sender: No OFD packet to send [02:26:22]OFD Sender: No OFD packet to send [02:26:27]OFD Sender: No OFD packet to send [02:26:32]OFD Sender: No OFD packet to send [02:26:37]OFD Sender: No OFD packet to send [02:26:42]OFD Sender: No OFD packet to send [02:26:47]OFD Sender: No OFD packet to send [02:26:52]OFD Sender: No OFD packet to send [02:26:57]OFD Sender: No OFD packet to send [02:27:02]OFD Sender: No OFD packet to send [02:27:07]OFD Sender: No OFD packet to send [02:27:12]OFD Sender: No OFD packet to send [02:27:17]OFD Sender: No OFD packet to send [02:27:22]OFD Sender: No OFD packet to send [02:27:27]OFD Sender: No OFD packet to send [02:27:32]OFD Sender: No OFD packet to send [02:27:37]OFD Sender: No OFD packet to send [02:27:42]OFD Sender: No OFD packet to send [02:27:47]OFD Sender: No OFD packet to send [02:27:52]OFD Sender: No OFD packet to send [02:27:57]OFD Sender: No OFD packet to send [02:28:02]OFD Sender: No OFD packet to send [02:28:07]OFD Sender: No OFD packet to send [02:28:12]OFD Sender: No OFD packet to send [02:28:17]OFD Sender: No OFD packet to send [02:28:22]OFD Sender: No OFD packet to send [02:28:27]OFD Sender: No OFD packet to send [02:28:32]OFD Sender: No OFD packet to send [02:28:37]OFD Sender: No OFD packet to send [02:28:42]OFD Sender: No OFD packet to send [02:28:47]OFD Sender: No OFD packet to send [02:28:52]OFD Sender: No OFD packet to send [02:28:57]OFD Sender: No OFD packet to send [02:29:02]OFD Sender: No OFD packet to send [02:29:07]OFD Sender: No OFD packet to send [02:29:12]OFD Sender: No OFD packet to send [02:29:17]OFD Sender: No OFD packet to send [02:29:22]OFD Sender: No OFD packet to send [02:29:27]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:18]OFD Sender: No OFD packet to send [02:30:23]OFD Sender: No OFD packet to send [02:30:28]OFD Sender: No OFD packet to send [02:30:33]OFD Sender: No OFD packet to send [02:30:38]OFD Sender: No OFD packet to send [02:30:43]OFD Sender: No OFD packet to send [02:30:48]OFD Sender: No OFD packet to send [02:30:53]OFD Sender: No OFD packet to send [02:30:58]OFD Sender: No OFD packet to send [02:31:03]OFD Sender: No OFD packet to send [02:31:08]OFD Sender: No OFD packet to send [02:31:13]OFD Sender: No OFD packet to send [02:31:18]OFD Sender: No OFD packet to send [02:31:23]OFD Sender: No OFD packet to send [02:31:28]OFD Sender: No OFD packet to send [02:31:33]OFD Sender: No OFD packet to send [02:31:38]OFD Sender: No OFD packet to send [02:31:43]OFD Sender: No OFD packet to send [02:31:48]OFD Sender: No OFD packet to send [02:31:53]OFD Sender: No OFD packet to send [02:31:58]OFD Sender: No OFD packet to send [02:32:03]OFD Sender: No OFD packet to send [02:32:08]OFD Sender: No OFD packet to send [02:32:13]OFD Sender: No OFD packet to send [02:32:18]OFD Sender: No OFD packet to send [02:32:23]OFD Sender: No OFD packet to send [02:32:28]OFD Sender: No OFD packet to send [02:32:33]OFD Sender: No OFD packet to send [02:32:38]OFD Sender: No OFD packet to send [02:32:43]OFD Sender: No OFD packet to send [02:32:48]OFD Sender: No OFD packet to send [02:32:53]OFD Sender: No OFD packet to send [02:32:58]OFD Sender: No OFD packet to send [02:33:03]OFD Sender: No OFD packet to send [02:33:08]OFD Sender: No OFD packet to send [02:33:13]OFD Sender: No OFD packet to send [02:33:18]OFD Sender: No OFD packet to send [02:33:23]OFD Sender: No OFD packet to send [02:33:28]OFD Sender: No OFD packet to send [02:33:33]OFD Sender: No OFD packet to send [02:33:38]OFD Sender: No OFD packet to send [02:33:43]OFD Sender: No OFD packet to send [02:33:48]OFD Sender: No OFD packet to send [02:33:53]OFD Sender: No OFD packet to send [02:33:58]OFD Sender: No OFD packet to send [02:34:03]OFD Sender: No OFD packet to send [02:34:08]OFD Sender: No OFD packet to send [02:34:13]OFD Sender: No OFD packet to send [02:34:18]OFD Sender: No OFD packet to send [02:34:23]OFD Sender: No OFD packet to send [02:34:28]OFD Sender: No OFD packet to send [02:34:33]OFD Sender: No OFD packet to send [02:34:38]OFD Sender: No OFD packet to send [02:34:43]OFD Sender: No OFD packet to send [02:34:48]OFD Sender: No OFD packet to send [02:34:53]OFD Sender: No OFD packet to send [02:34:58]OFD Sender: No OFD packet to send [02:35:03]OFD Sender: No OFD packet to send [02:35:08]OFD Sender: No OFD packet to send [02:35:13]OFD Sender: No OFD packet to send [02:35:18]OFD Sender: No OFD packet to send [02:35:23]OFD Sender: No OFD packet to send [02:35:28]OFD Sender: No OFD packet to send [02:35:33]OFD Sender: No OFD packet to send [02:35:38]OFD Sender: No OFD packet to send [02:35:43]OFD Sender: No OFD packet to send [02:35:48]OFD Sender: No OFD packet to send [02:35:53]OFD Sender: No OFD packet to send [02:35:58]OFD Sender: No OFD packet to send [02:36:03]OFD Sender: No OFD packet to send [02:36:08]OFD Sender: No OFD packet to send [02:36:13]OFD Sender: No OFD packet to send [02:36:18]OFD Sender: No OFD packet to send [02:36:23]OFD Sender: No OFD packet to send [02:36:28]OFD Sender: No OFD packet to send [02:36:33]OFD Sender: No OFD packet to send [02:36:38]OFD Sender: No OFD packet to send [02:36:43]OFD Sender: No OFD packet to send [02:36:48]OFD Sender: No OFD packet to send [02:36:53]OFD Sender: No OFD packet to send [02:36:58]OFD Sender: No OFD packet to send [02:37:03]OFD Sender: No OFD packet to send [02:37:08]OFD Sender: No OFD packet to send [02:37:13]OFD Sender: No OFD packet to send [02:37:18]OFD Sender: No OFD packet to send [02:37:23]OFD Sender: No OFD packet to send [02:37:28]OFD Sender: No OFD packet to send [02:37:33]OFD Sender: No OFD packet to send [02:37:38]OFD Sender: No OFD packet to send [02:37:43]OFD Sender: No OFD packet to send [02:37:48]OFD Sender: No OFD packet to send [02:37:53]OFD Sender: No OFD packet to send [02:37:58]OFD Sender: No OFD packet to send [02:38:03]OFD Sender: No OFD packet to send [02:38:08]OFD Sender: No OFD packet to send [02:38:13]OFD Sender: No OFD packet to send [02:38:18]OFD Sender: No OFD packet to send [02:38:23]OFD Sender: No OFD packet to send [02:38:28]OFD Sender: No OFD packet to send [02:38:33]OFD Sender: No OFD packet to send [02:38:38]OFD Sender: No OFD packet to send [02:38:43]OFD Sender: No OFD packet to send [02:38:48]OFD Sender: No OFD packet to send [02:38:53]OFD Sender: No OFD packet to send [02:38:58]OFD Sender: No OFD packet to send [02:39:03]OFD Sender: No OFD packet to send [02:39:08]OFD Sender: No OFD packet to send [02:39:13]OFD Sender: No OFD packet to send [02:39:18]OFD Sender: No OFD packet to send [02:39:23]OFD Sender: No OFD packet to send [02:39:28]OFD Sender: No OFD packet to send [02:39:33]OFD Sender: No OFD packet to send [02:39:38]OFD Sender: No OFD packet to send [02:39:43]OFD Sender: No OFD packet to send [02:39:48]OFD Sender: No OFD packet to send [02:39:53]OFD Sender: No OFD packet to send [02:39:58]OFD Sender: No OFD packet to send [02:40:03]OFD Sender: No OFD packet to send [02:40:08]OFD Sender: No OFD packet to send [02:40:13]OFD Sender: No OFD packet to send [02:40:18]OFD Sender: No OFD packet to send [02:40:23]OFD Sender: No OFD packet to send [02:40:28]OFD Sender: No OFD packet to send [02:40:33]OFD Sender: No OFD packet to send [02:40:38]OFD Sender: No OFD packet to send [02:40:43]OFD Sender: No OFD packet to send [02:40:48]OFD Sender: No OFD packet to send [02:40:53]OFD Sender: No OFD packet to send [02:40:58]OFD Sender: No OFD packet to send [02:41:03]OFD Sender: No OFD packet to send [02:41:08]OFD Sender: No OFD packet to send [02:41:13]OFD Sender: No OFD packet to send [02:41:18]OFD Sender: No OFD packet to send [02:41:23]OFD Sender: No OFD packet to send [02:41:28]OFD Sender: No OFD packet to send [02:41:33]OFD Sender: No OFD packet to send [02:41:38]OFD Sender: No OFD packet to send [02:41:43]OFD Sender: No OFD packet to send [02:41:48]OFD Sender: No OFD packet to send [02:41:53]OFD Sender: No OFD packet to send [02:41:58]OFD Sender: No OFD packet to send [02:42:03]OFD Sender: No OFD packet to send [02:42:08]OFD Sender: No OFD packet to send [02:42:13]OFD Sender: No OFD packet to send [02:42:18]OFD Sender: No OFD packet to send [02:42:23]OFD Sender: No OFD packet to send [02:42:28]OFD Sender: No OFD packet to send [02:42:33]OFD Sender: No OFD packet to send [02:42:38]OFD Sender: No OFD packet to send [02:42:43]OFD Sender: No OFD packet to send [02:42:48]OFD Sender: No OFD packet to send [02:42:53]OFD Sender: No OFD packet to send [02:42:58]OFD Sender: No OFD packet to send [02:43:03]OFD Sender: No OFD packet to send [02:43:08]OFD Sender: No OFD packet to send [02:43:13]OFD Sender: No OFD packet to send [02:43:18]OFD Sender: No OFD packet to send [02:43:23]OFD Sender: No OFD packet to send [02:43:28]OFD Sender: No OFD packet to send [02:43:33]OFD Sender: No OFD packet to send [02:43:38]OFD Sender: No OFD packet to send [02:43:43]OFD Sender: No OFD packet to send [02:43:48]OFD Sender: No OFD packet to send [02:43:53]OFD Sender: No OFD packet to send [02:43:58]OFD Sender: No OFD packet to send [02:44:03]OFD Sender: No OFD packet to send [02:44:08]OFD Sender: No OFD packet to send [02:44:13]OFD Sender: No OFD packet to send [02:44:18]OFD Sender: No OFD packet to send [02:44:23]OFD Sender: No OFD packet to send [02:44:28]OFD Sender: No OFD packet to send [02:44:33]OFD Sender: No OFD packet to send [02:44:38]OFD Sender: No OFD packet to send [02:44:43]OFD Sender: No OFD packet to send [02:44:48]OFD Sender: No OFD packet to send [02:44:53]OFD Sender: No OFD packet to send [02:44:58]OFD Sender: No OFD packet to send [02:45:03]OFD Sender: No OFD packet to send [02:45:08]OFD Sender: No OFD packet to send [02:45:13]OFD Sender: No OFD packet to send [02:45:18]OFD Sender: No OFD packet to send [02:45:23]OFD Sender: No OFD packet to send [02:45:28]OFD Sender: No OFD packet to send [02:45:33]OFD Sender: No OFD packet to send [02:45:38]OFD Sender: No OFD packet to send [02:45:43]OFD Sender: No OFD packet to send [02:45:48]OFD Sender: No OFD packet to send [02:45:53]OFD Sender: No OFD packet to send [02:45:58]OFD Sender: No OFD packet to send [02:46:03]OFD Sender: No OFD packet to send [02:46:08]OFD Sender: No OFD packet to send [02:46:13]OFD Sender: No OFD packet to send [02:46:18]OFD Sender: No OFD packet to send [02:46:23]OFD Sender: No OFD packet to send [02:46:28]OFD Sender: No OFD packet to send [02:46:33]OFD Sender: No OFD packet to send [02:46:38]OFD Sender: No OFD packet to send [02:46:43]OFD Sender: No OFD packet to send [02:46:48]OFD Sender: No OFD packet to send [02:46:53]OFD Sender: No OFD packet to send [02:46:58]OFD Sender: No OFD packet to send [02:47:03]OFD Sender: No OFD packet to send [02:47:08]OFD Sender: No OFD packet to send [02:47:13]OFD Sender: No OFD packet to send [02:47:18]OFD Sender: No OFD packet to send [02:47:23]OFD Sender: No OFD packet to send [02:47:28]OFD Sender: No OFD packet to send [02:47:33]OFD Sender: No OFD packet to send [02:47:38]OFD Sender: No OFD packet to send [02:47:43]OFD Sender: No OFD packet to send [02:47:48]OFD Sender: No OFD packet to send [02:47:53]OFD Sender: No OFD packet to send [02:47:58]OFD Sender: No OFD packet to send [02:48:03]OFD Sender: No OFD packet to send [02:48:08]OFD Sender: No OFD packet to send [02:48:13]OFD Sender: No OFD packet to send [02:48:18]OFD Sender: No OFD packet to send [02:48:23]OFD Sender: No OFD packet to send [02:48:28]OFD Sender: No OFD packet to send [02:48:33]OFD Sender: No OFD packet to send [02:48:38]OFD Sender: No OFD packet to send [02:48:43]OFD Sender: No OFD packet to send [02:48:48]OFD Sender: No OFD packet to send [02:48:53]OFD Sender: No OFD packet to send [02:48:58]OFD Sender: No OFD packet to send [02:49:03]OFD Sender: No OFD packet to send [02:49:08]OFD Sender: No OFD packet to send [02:49:13]OFD Sender: No OFD packet to send [02:49:18]OFD Sender: No OFD packet to send [02:49:23]OFD Sender: No OFD packet to send [02:49:28]OFD Sender: No OFD packet to send [02:49:33]OFD Sender: No OFD packet to send [02:49:38]OFD Sender: No OFD packet to send [02:49:43]OFD Sender: No OFD packet to send [02:49:48]OFD Sender: No OFD packet to send [02:49:53]OFD Sender: No OFD packet to send [02:49:58]OFD Sender: No OFD packet to send [02:50:03]OFD Sender: No OFD packet to send [02:50:08]OFD Sender: No OFD packet to send [02:50:13]OFD Sender: No OFD packet to send [02:50:18]OFD Sender: No OFD packet to send [02:50:23]OFD Sender: No OFD packet to send [02:50:28]OFD Sender: No OFD packet to send [02:50:33]OFD Sender: No OFD packet to send [02:50:38]OFD Sender: No OFD packet to send [02:50:44]OFD Sender: No OFD packet to send [02:50:49]OFD Sender: No OFD packet to send [02:50:54]OFD Sender: No OFD packet to send [02:50:59]OFD Sender: No OFD packet to send [02:51:04]OFD Sender: No OFD packet to send [02:51:09]OFD Sender: No OFD packet to send [02:51:14]OFD Sender: No OFD packet to send [02:51:19]OFD Sender: No OFD packet to send [02:51:24]OFD Sender: No OFD packet to send [02:51:29]OFD Sender: No OFD packet to send [02:51:34]OFD Sender: No OFD packet to send [02:51:39]OFD Sender: No OFD packet to send [02:51:44]OFD Sender: No OFD packet to send [02:51:49]OFD Sender: No OFD packet to send [02:51:54]OFD Sender: No OFD packet to send [02:51:59]OFD Sender: No OFD packet to send [02:52:04]OFD Sender: No OFD packet to send [02:52:09]OFD Sender: No OFD packet to send [02:52:14]OFD Sender: No OFD packet to send [02:52:19]OFD Sender: No OFD packet to send [02:52:24]OFD Sender: No OFD packet to send [02:52:29]OFD Sender: No OFD packet to send [02:52:34]OFD Sender: No OFD packet to send [02:52:39]OFD Sender: No OFD packet to send [02:52:44]OFD Sender: No OFD packet to send [02:52:49]OFD Sender: No OFD packet to send [02:52:54]OFD Sender: No OFD packet to send [02:52:59]OFD Sender: No OFD packet to send [02:53:04]OFD Sender: No OFD packet to send [02:53:09]OFD Sender: No OFD packet to send [02:53:14]OFD Sender: No OFD packet to send [02:53:19]OFD Sender: No OFD packet to send [02:53:24]OFD Sender: No OFD packet to send [02:53:29]OFD Sender: No OFD packet to send [02:53:34]OFD Sender: No OFD packet to send [02:53:39]OFD Sender: No OFD packet to send [02:53:44]OFD Sender: No OFD packet to send [02:53:49]OFD Sender: No OFD packet to send [02:53:54]OFD Sender: No OFD packet to send [02:53:59]OFD Sender: No OFD packet to send [02:54:04]OFD Sender: No OFD packet to send [02:54:09]OFD Sender: No OFD packet to send [02:54:14]OFD Sender: No OFD packet to send [02:54:19]OFD Sender: No OFD packet to send [02:54:24]OFD Sender: No OFD packet to send [02:54:29]OFD Sender: No OFD packet to send [02:54:34]OFD Sender: No OFD packet to send [02:54:39]OFD Sender: No OFD packet to send [02:54:44]OFD Sender: No OFD packet to send [02:54:49]OFD Sender: No OFD packet to send [02:54:54]OFD Sender: No OFD packet to send [02:54:59]OFD Sender: No OFD packet to send [02:55:04]OFD Sender: No OFD packet to send [02:55:09]OFD Sender: No OFD packet to send [02:55:14]OFD Sender: No OFD packet to send [02:55:19]OFD Sender: No OFD packet to send [02:55:24]OFD Sender: No OFD packet to send [02:55:29]OFD Sender: No OFD packet to send [02:55:34]OFD Sender: No OFD packet to send [02:55:39]OFD Sender: No OFD packet to send [02:55:44]OFD Sender: No OFD packet to send [02:55:49]OFD Sender: No OFD packet to send [02:55:54]OFD Sender: No OFD packet to send [02:55:59]OFD Sender: No OFD packet to send [02:56:04]OFD Sender: No OFD packet to send [02:56:09]OFD Sender: No OFD packet to send [02:56:14]OFD Sender: No OFD packet to send [02:56:19]OFD Sender: No OFD packet to send [02:56:24]OFD Sender: No OFD packet to send [02:56:29]OFD Sender: No OFD packet to send [02:56:34]OFD Sender: No OFD packet to send [02:56:39]OFD Sender: No OFD packet to send [02:56:44]OFD Sender: No OFD packet to send [02:56:49]OFD Sender: No OFD packet to send [02:56:54]OFD Sender: No OFD packet to send [02:56:59]OFD Sender: No OFD packet to send [02:57:04]OFD Sender: No OFD packet to send [02:57:09]OFD Sender: No OFD packet to send [02:57:14]OFD Sender: No OFD packet to send [02:57:19]OFD Sender: No OFD packet to send [02:57:24]OFD Sender: No OFD packet to send [02:57:29]OFD Sender: No OFD packet to send [02:57:34]OFD Sender: No OFD packet to send [02:57:39]OFD Sender: No OFD packet to send [02:57:44]OFD Sender: No OFD packet to send [02:57:49]OFD Sender: No OFD packet to send [02:57:54]OFD Sender: No OFD packet to send [02:57:59]OFD Sender: No OFD packet to send [02:58:04]OFD Sender: No OFD packet to send [02:58:09]OFD Sender: No OFD packet to send [02:58:14]OFD Sender: No OFD packet to send [02:58:19]OFD Sender: No OFD packet to send [02:58:24]OFD Sender: No OFD packet to send [02:58:29]OFD Sender: No OFD packet to send [02:58:34]OFD Sender: No OFD packet to send [02:58:39]OFD Sender: No OFD packet to send [02:58:44]OFD Sender: No OFD packet to send [02:58:49]OFD Sender: No OFD packet to send [02:58:54]OFD Sender: No OFD packet to send [02:58:59]OFD Sender: No OFD packet to send [02:59:04]OFD Sender: No OFD packet to send [02:59:09]OFD Sender: No OFD packet to send [02:59:14]OFD Sender: No OFD packet to send [02:59:19]OFD Sender: No OFD packet to send [02:59:24]OFD Sender: No OFD packet to send [02:59:29]OFD Sender: No OFD packet to send [02:59:34]OFD Sender: No OFD packet to send [02:59:39]OFD Sender: No OFD packet to send [02:59:44]OFD Sender: No OFD packet to send [02:59:49]OFD Sender: No OFD packet to send [02:59:54]OFD Sender: No OFD packet to send [02:59:59]OFD Sender: No OFD packet to send [03:00:04]OFD Sender: No OFD packet to send [03:00:09]OFD Sender: No OFD packet to send [03:00:14]OFD Sender: No OFD packet to send [03:00:19]OFD Sender: No OFD packet to send [03:00:24]OFD Sender: No OFD packet to send [03:00:29]OFD Sender: No OFD packet to send [03:00:34]OFD Sender: No OFD packet to send [03:00:39]OFD Sender: No OFD packet to send [03:00:44]OFD Sender: No OFD packet to send [03:00:49]OFD Sender: No OFD packet to send [03:00:54]OFD Sender: No OFD packet to send [03:00:59]OFD Sender: No OFD packet to send [03:01:04]OFD Sender: No OFD packet to send [03:01:09]OFD Sender: No OFD packet to send [03:01:14]OFD Sender: No OFD packet to send [03:01:19]OFD Sender: No OFD packet to send [03:01:24]OFD Sender: No OFD packet to send [03:01:29]OFD Sender: No OFD packet to send [03:01:34]OFD Sender: No OFD packet to send [03:01:39]OFD Sender: No OFD packet to send [03:01:44]OFD Sender: No OFD packet to send [03:01:49]OFD Sender: No OFD packet to send [03:01:54]OFD Sender: No OFD packet to send [03:01:59]OFD Sender: No OFD packet to send [03:02:04]OFD Sender: No OFD packet to send [03:02:09]OFD Sender: No OFD packet to send [03:02:14]OFD Sender: No OFD packet to send [03:02:19]OFD Sender: No OFD packet to send [03:02:24]OFD Sender: No OFD packet to send [03:02:27]accept exits with 7 [03:02:27]New connection [03:02:27]New thread 3067489636 created [03:02:27]Thread 3067346276 joined [03:02:27]Waiting for new connection... [03:02:27] Sock 7.Parse request [03:02:27]Sock 7.Check first char [03:02:27]Sock 7.First char is OK [03:02:27]request: POST /json_proto HTTP/1.0 [03:02:27]Method: POST [03:02:27]URL: /json_proto [03:02:27]Method is POST - this is cgi request [03:02:27]url: /json_proto [03:02:27]query_string will be loaded in cgi processing [03:02:27]execute_cgi json_proto POST (null) [03:02:27]execute_cgi path=json_proto method=POST [03:02:27]POST find Content-Length [03:02:27]Host: 172.17.51.3:8080 [03:02:27]Content-Length: 682 [03:02:27]Content-Type: application/json [03:02:27] [03:02:27]POST finish read [03:02:27]Found Content-Length = 682 [03:02:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342912", "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" ] } } [03:02:27]execute_script... [03:02: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)342912", "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" ] } } [03:02:27]POST & json_proto [03:02:27]process_json_proto [03:02:27]json parsed OK: [03:02:27]protocol is kg_v1.0 [03:02:27]action value=close_receipt [03:02:27]process_action close_receipt [03:02:27]cmd_close_receipt [03:02:27]MH_GetDate [03:02:27]Write to MH i2c: F0 00 00 5C 20 6B [03:02:27]Write i2c OK [03:02:27]MH_I2C_Read... [03:02:27]Read from MH i2c: F0 [03:02:27]MH_I2C_Read... [03:02:27]Read from MH i2c: F0 09 00 [03:02:27]MH_I2C_Read... [03:02:27]Read from MH i2c: F0 09 00 5C 20 00 45 C4 15 67 04 C1 95 66 B9 [03:02:27]GetLastDocTimeStamp 1729476416 [03:02:27]current date 1729479749 [03:02:27]FM_GetShiftState [03:02:27]SAM_PROTO_GetShiftState [03:02:27]wFMCommunicate request_size=4 [03:02:27]MH_SAM_APDU [03:02:27]CAPDU: 80 13 01 00 [03:02:27]Write to MH i2c: E2 08 00 5D 20 80 13 01 00 00 00 00 00 FA [03:02:27]Write i2c OK [03:02:27]MH_I2C_Read... [03:02:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:02:27]Read from MH i2c: E2 [03:02:27]MH_I2C_Read... [03:02:27]Read from MH i2c: E2 0E 00 [03:02:27]MH_I2C_Read... [03:02:27]Read from MH i2c: E2 0E 00 5D 20 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 76 [03:02:27]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [03:02:27]wFMCommunicate OK [03:02:27]SAM_PROTO_GetShiftState done [03:02:27]FM_GetShiftState done [03:02:27]opened in 1729471058 [03:02:27]opened+sec_in_day 1729557458 [03:02:27]quantity*price = 100021 [03:02:27]sum+1 = 100023 [03:02:27]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 СНО: Общий режим Чек 7 21.10.2024 03:02 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30510 ФПД: 192534161598612 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T030229&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30510&fm=192534161598612&tin=02508201610067®Number=0000000000186857&sum=100000 [03:02:28]StoreToDocumentArchive [03:02:28]shift 115 fd 30510 [03:02:28]save to /storage/0115/doc_00030510 [03:02:28]save last doc name /storage/0115/doc_00030510 to /storage/kkm_last_doc_name [03:02:28]save OK [03:02:28]Clear old archive folders... [03:02:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [03:02:28]tlvbuf is 01DFCD40 [03:02:28]SAM_PROTO_ClearQueue [03:02:28]wFMCommunicate request_size=4 [03:02:28]MH_SAM_APDU [03:02:28]CAPDU: 80 09 00 00 [03:02:28]Write to MH i2c: E2 08 00 6A 20 80 09 00 00 00 00 00 00 FC [03:02:28]Write i2c OK [03:02:28]MH_I2C_Read... [03:02:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:02:28]Read from MH i2c: E2 [03:02:28]MH_I2C_Read... [03:02:28]Read from MH i2c: E2 03 00 [03:02:28]MH_I2C_Read... [03:02:28]Read from MH i2c: E2 03 00 6A 20 00 90 00 FE [03:02:28]RAPDU: 90 00 [03:02:28]wFMCommunicate OK [03:02:28]SAM_PROTO_ClearQueue done [03:02:28]KKMCreateOFDPacket [03:02:28]OFDProtocolAddRootSTLVToBuf [03:02:28]FM_MakeSignedData [03:02:28]FM_MakeSignedData [03:02:28]SAM_PROTO_SignData [03:02:28]wFMCommunicate request_size=4 [03:02:28]MH_SAM_APDU [03:02:28]CAPDU: 80 0D 01 02 [03:02:28]Write to MH i2c: E2 08 00 6B 20 80 0D 01 02 00 00 00 00 04 [03:02:28]Write i2c OK [03:02:28]MH_I2C_Read... [03:02:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:02:28]Read from MH i2c: E2 [03:02:28]MH_I2C_Read... [03:02:28]Read from MH i2c: E2 03 00 [03:02:28]MH_I2C_Read... [03:02:28]Read from MH i2c: E2 03 00 6B 20 00 90 00 FF [03:02:28]RAPDU: 90 00 [03:02:28]wFMCommunicate OK [03:02:28]wFMCommunicate request_size=255 [03:02:28]MH_SAM_APDU [03:02:28]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 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 07 00 00 00 F4 03 04 00 45 C4 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 2E 77 00 00 35 04 06 00 AF [03:02:28]Write to MH i2c: E2 02 01 6C 20 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 07 00 00 00 F4 03 04 00 45 C4 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 2E 77 00 00 35 04 06 00 AF 00 00 06 [03:02:28]Write i2c OK [03:02:28]MH_I2C_Read... [03:02:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:02:28]Read from MH i2c: E2 [03:02:28]MH_I2C_Read... [03:02:28]Read from MH i2c: E2 03 00 [03:02:28]MH_I2C_Read... [03:02:28]Read from MH i2c: E2 03 00 6C 20 00 90 00 00 [03:02:28]RAPDU: 90 00 [03:02:28]wFMCommunicate OK [03:02:28]wFMCommunicate request_size=10 [03:02:28]MH_SAM_APDU [03:02:28]CAPDU: 80 0D 02 02 05 1B DA 4F 28 94 [03:02:28]Write to MH i2c: E2 0D 00 6D 20 80 0D 02 02 05 00 1B DA 4F 28 94 00 00 11 [03:02:28]Write i2c OK [03:02:28]MH_I2C_Read... [03:02:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:02:28]Read from MH i2c: E2 [03:02:28]MH_I2C_Read... [03:02:28]Read from MH i2c: E2 03 00 [03:02:28]MH_I2C_Read... [03:02:28]Read from MH i2c: E2 03 00 6D 20 00 90 00 01 [03:02:28]RAPDU: 90 00 [03:02:28]wFMCommunicate OK [03:02:28]wFMCommunicate request_size=4 [03:02:28]MH_SAM_APDU [03:02:28]CAPDU: 80 0D 03 02 [03:02:28]Write to MH i2c: E2 08 00 6E 20 80 0D 03 02 00 00 00 00 09 [03:02:28]Write i2c OK [03:02:28]MH_I2C_Read... [03:02:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:02:28]Read from MH i2c: E2 [03:02:28]MH_I2C_Read... [03:02:28]Read from MH i2c: E2 0B 00 [03:02:28]MH_I2C_Read... [03:02:28]Read from MH i2c: E2 0B 00 6E 20 00 2B 3A DF 28 EC 90 D0 45 90 00 07 [03:02:28]RAPDU: 2B 3A DF 28 EC 90 D0 45 90 00 [03:02:28]wFMCommunicate OK [03:02:28]SAM_PROTO_SignData done [03:02:28]FM_MakeSignedData done [03:02:28]CreateOFDProtocolMessage [03:02:28]wFMCommunicate request_size=4 [03:02:28]MH_SAM_APDU [03:02:28]CAPDU: 80 11 00 00 [03:02:28]Write to MH i2c: E2 08 00 6F 20 80 11 00 00 00 00 00 00 09 [03:02:28]Write i2c OK [03:02:28]MH_I2C_Read... [03:02:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:02:28]Read from MH i2c: E2 [03:02:28]MH_I2C_Read... [03:02:28]Read from MH i2c: E2 17 00 [03:02:28]MH_I2C_Read... [03:02:28]Read from MH i2c: E2 17 00 6F 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 57 [03:02:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [03:02:28]wFMCommunicate OK [03:02:28]CreateOFDProtocolMessage done [03:02:28]OFDSenderStorePacket 30510 [03:02:28]StoreOFDPacket docnum=30510 [03:02: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 BA EC 07 01 A9 A2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 07 00 00 00 F4 03 04 00 45 C4 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 2E 77 00 00 35 04 06 00 AF 1B DA 4F 28 94 2B 3A DF 28 EC 90 D0 45 [03:02:28]CheckFolder [03:02:28]dirname=/storage/ofd_packets [03:02:28]CheckFolder done [03:02:28]ProducePacketName [03:02:28]name=ofd_packets/00030510 [03:02:28]NVStorageSaveData ofd_packets/00030510 [03:02:28]File name is /storage/ofd_packets/00030510 [03:02:28]Write 301 bytes [03:02:28]NVStorageSaveData done [03:02:28]OFDSenderStorePacket done [03:02:28]KKMCreateOFDPacket done [03:02:28]NVStorageSaveData kkm_last_timestamp [03:02:28]File name is /storage/kkm_last_timestamp [03:02:28]Write 4 bytes [03:02:28]NVStorageSaveData done [03:02:28]ExternCall_PrintAddStr [03:02:28]wPrintStart [03:02:28]Write to MH i2c: 01 00 00 70 20 90 [03:02:28]Write i2c OK [03:02:28]MH_I2C_Read... [03:02:28]Read from MH i2c: 01 [03:02:28]MH_I2C_Read... [03:02:28]Read from MH i2c: 01 07 00 [03:02:28]MH_I2C_Read... [03:02:28]Read from MH i2c: 01 07 00 70 20 00 00 00 00 00 FF 0F A5 [03:02:28]RasterBufferAndPrint [03:02:28]line Счет N : (1)342912 [03:02:28]line ИНН: 02508201610067 [03:02:28]line Контрольно-Кассовый Чек [03:02:28]line ПРОДАЖА [03:02:28]line ТРК (МРК, ГНК) : 52 [03:02:28]line Товар: 2710124500 [03:02:28]line Аи-95-К-3 [03:02:28]line 13.480 * 74.20 [03:02:28]line = 1000.22 [03:02:28]line НДС 12% НСП 1% [03:02:28]line > о реализуемом товаре [03:02:28]line ОКРУГЛЕНИЕ: -0.22 [03:02:28]line ИТОГО: 1000.00 [03:02:28]line Внесено: 1000.00 [03:02:28]line СДАЧА: 0.00 [03:02:28]line НСП 1% : 8.85 [03:02:28]line НДС 12% : 106.22 [03:02:28]line Наличными: 1000.00 [03:02:28]line Безнал.: 0.00 [03:02:28]line Место: АЗС № 78 "Партнер Нефть" [03:02:28]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [03:02:28]line СНО: Общий режим [03:02:28]line Чек 7 21.10.2024 03:02 [03:02:28]line Смена: 115 ФФД: 1.0 [03:02:28]line ЗНМ: 0300000137 [03:02:28]line РНМ: 0000000000186857 [03:02:28]line Версия ККМ: v1.0 [03:02:28]line ФМ: 0000000002094219 [03:02:28]line ФД: 30510 [03:02:28]line ФПД: 192534161598612 [03:02:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T030229&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30510&fm=192534161598612&tin=02508201610067®Number=0000000000186857&sum=100000 [03:02:29]OFD Sender: Processing packet 30510 [packets to send 10, broken 9] [03:02:29]ProducePacketName [03:02:29]name=ofd_packets/00030510 [03:02:29]OFD Sender: To server: pG, [03:02:29]CommunicateWithHost lk.salyk.kg:30040 [03:02:29]ConnectInit lk.salyk.kg [03:02:29]written 0, free lines is 4095 [03:02:29]Connected sock=10 [03:02: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 BA EC 07 01 A9 A2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 07 00 00 00 F4 03 04 00 45 C4 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 2E 77 00 00 35 04 06 00 AF 1B DA 4F 28 94 2B 3A DF 28 EC 90 D0 45 [03:02: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 09 77 47 00 AB 4F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 2E 77 00 00 F4 03 04 00 C7 6E 15 67 B6 04 01 00 00 60 68 10 99 E3 FA 94 EB [03:02:29]CommunicateWithHost err = 0 [03:02:29]CheckOFDResponse [03:02:29]1017 (14) - 77093643461234 [03:02:29]1041 (16) - 0000000002094219 [03:02:29]1040 (4) - 30510 [03:02:29]1012 (4) - 20.10.2024 20:57 [03:02:29]1206 (1) - 0 [03:02:29]OFD Sender: Remove packet 30510 [03:02:29]ProducePacketName [03:02:29]name=ofd_packets/00030510 [03:02:29]NVStorageDeleteData [03:02:29]Write to MH i2c: 01 00 00 9B 20 BB [03:02:29]Write i2c OK [03:02:29]MH_I2C_Read... [03:02:29]Read from MH i2c: 01 [03:02:29]MH_I2C_Read... [03:02:29]Read from MH i2c: 01 07 00 [03:02:29]MH_I2C_Read... [03:02:29]Read from MH i2c: 01 07 00 9B 20 00 00 00 00 00 E1 0C AF [03:02:29]RasterBufferAndPrint [03:02:29]line [03:02:29]line [03:02:29]line [03:02:29]line [03:02:29]line [03:02:29]written 0, free lines is 3303 [03:02:29]MH_Cut [03:02:29]Write to MH i2c: D1 01 00 A2 20 01 94 [03:02:29]Write i2c OK [03:02:29]MH_I2C_Read... [03:02:29]Read from MH i2c: D1 [03:02:29]MH_I2C_Read... [03:02:29]Read from MH i2c: D1 01 00 [03:02:29]MH_I2C_Read... [03:02:29]Read from MH i2c: D1 01 00 A2 20 00 93 [03:02:29]Write to MH i2c: 01 00 00 A3 20 C3 [03:02:29]Write i2c OK [03:02:29]MH_I2C_Read... [03:02:30]OFD Sender: No OFD packet to send [03:02:30]*** Cut start [03:02:30]*** Partial cut [03:02:30]*** CUTSNS_PIN = 1 [03:02:30]*** CUTSNS_PIN = 0 [03:02:30]*** Brake cut motor [03:02:30]Read from MH i2c: 01 [03:02:30]MH_I2C_Read... [03:02:30]*** Stop cut motor [03:02:30]*** Cut end [03:02:30]Read from MH i2c: 01 07 00 [03:02:30]MH_I2C_Read... [03:02:30]Read from MH i2c: 01 07 00 A3 20 00 00 00 00 00 FF 0F D8 [03:02:30]process_action close_receipt done [03:02:30]requested_data is exist [03:02:30]produce_requested_data [03:02:30]requested_item fm.sn is exist - process it [03:02:30]wFMCommunicate request_size=4 [03:02:30]MH_SAM_APDU [03:02:30]CAPDU: 80 11 00 00 [03:02:30]Write to MH i2c: E2 08 00 A4 20 80 11 00 00 00 00 00 00 3E [03:02:30]Write i2c OK [03:02:30]MH_I2C_Read... [03:02:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:02:30]Read from MH i2c: E2 [03:02:30]MH_I2C_Read... [03:02:30]Read from MH i2c: E2 17 00 [03:02:30]MH_I2C_Read... [03:02:30]Read from MH i2c: E2 17 00 A4 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 8C [03:02:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [03:02:30]wFMCommunicate OK [03:02:30]requested_item fd.num is exist - process it [03:02:30]SAM_PROTO_GetFieldsCounters [03:02:30]wFMCommunicate request_size=4 [03:02:30]MH_SAM_APDU [03:02:30]CAPDU: 80 13 00 00 [03:02:30]Write to MH i2c: E2 08 00 A5 20 80 13 00 00 00 00 00 00 41 [03:02:31]Write i2c OK [03:02:31]MH_I2C_Read... [03:02:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:02:31]Read from MH i2c: E2 [03:02:31]MH_I2C_Read... [03:02:31]Read from MH i2c: E2 62 00 [03:02:31]MH_I2C_Read... [03:02:31]Read from MH i2c: E2 62 00 A5 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 2E 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 94 [03:02: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 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:02:31]wFMCommunicate OK [03:02:31]SAM_PROTO_GetFieldsCounters done [03:02:31]requested_item shift.num is exist - process it [03:02:31]requested_item shift.opened is exist - process it [03:02:31]req_shift_opened [03:02:31]FM_GetShiftState [03:02:31]SAM_PROTO_GetShiftState [03:02:31]wFMCommunicate request_size=4 [03:02:31]MH_SAM_APDU [03:02:31]CAPDU: 80 13 01 00 [03:02:31]Write to MH i2c: E2 08 00 A6 20 80 13 01 00 00 00 00 00 43 [03:02:31]Write i2c OK [03:02:31]MH_I2C_Read... [03:02:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:02:31]Read from MH i2c: E2 [03:02:31]MH_I2C_Read... [03:02:31]Read from MH i2c: E2 0E 00 [03:02:31]MH_I2C_Read... [03:02:31]Read from MH i2c: E2 0E 00 A6 20 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 BF [03:02:31]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [03:02:31]wFMCommunicate OK [03:02:31]SAM_PROTO_GetShiftState done [03:02:31]FM_GetShiftState done [03:02:31]req_shift_opened done [03:02:31]requested_item shift.open_date is exist - process it [03:02:31]req_shift_open_date [03:02:31]req_shift_open_date done [03:02:31]produce_requested_data done [03:02:31]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30510,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [03:02:31]process_action_free close_receipt [03:02:31]json_value_free [03:02:31]json_value_free done [03:02:31]process_json_proto returns [03:02:31]Send response to host [03:02:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30510,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [03:02:31]free response buf [03:02:31]execute_script done [03:02:31]execute_script returns [03:02:31]free content buf [03:02:31]Sock 7.Close socket [03:02:31]Sock 7.Thread stoped [03:02:35]OFD Sender: No OFD packet to send [03:02:40]OFD Sender: No OFD packet to send [03:02:45]OFD Sender: No OFD packet to send [03:02:50]OFD Sender: No OFD packet to send [03:02:55]OFD Sender: No OFD packet to send [03:03:00]OFD Sender: No OFD packet to send [03:03:05]OFD Sender: No OFD packet to send [03:03:10]OFD Sender: No OFD packet to send [03:03:15]OFD Sender: No OFD packet to send [03:03:20]OFD Sender: No OFD packet to send [03:03:25]OFD Sender: No OFD packet to send [03:03:30]OFD Sender: No OFD packet to send [03:03:35]OFD Sender: No OFD packet to send [03:03:40]OFD Sender: No OFD packet to send [03:03:45]OFD Sender: No OFD packet to send [03:03:50]OFD Sender: No OFD packet to send [03:03:55]OFD Sender: No OFD packet to send [03:04:00]OFD Sender: No OFD packet to send [03:04:05]OFD Sender: No OFD packet to send [03:04:10]OFD Sender: No OFD packet to send [03:04:15]OFD Sender: No OFD packet to send [03:04:20]OFD Sender: No OFD packet to send [03:04:25]OFD Sender: No OFD packet to send [03:04:30]OFD Sender: No OFD packet to send [03:04:35]OFD Sender: No OFD packet to send [03:04:40]OFD Sender: No OFD packet to send